/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
}

body {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
    background-color: #f5f5f5;
    height: calc(var(--vh, 1vh) * 100);
}

/* アプリコンテナ（PC/タブレット用の中央配置） */
.app-container {
    opacity: 0;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #000;

}

/* スマホ枠（428px） */
.phone-frame {
    width: 100%;
    max-width: 428px;
    background-color: #000;
    /* padding: 8px; */
    transform: translate(0, 0);
    overflow: hidden;
    position: relative;
}

/* アプリコンテンツ */
.app-content {
    opacity: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    background-image: url('../images/main_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 600px;
    position: relative;
}

/* アプリビュー */
.app-view {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ページ（疑似SPA用） */
.page {
    display: none;
    width: 100%;
    min-height: 100%;
    padding: 0;
}

.page.active {
    display: block;
}

/* ヘッダー */
.header {
    background-color: #4a90e2;
    color: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

/* メインコンテンツ */
.main-content {
    opacity: 0;
    padding: 0;
    position: relative;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* トップ画像コンテナ */
.top-image-container {
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* 画像分割コンテナ */
.image-split {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
}

/* 左半分 */
.image-left {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
}


/* 右半分 */
.image-right {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.image-right .top-human-image:not(.glitch-image) {
    display: none;
}

/* top_human.pngの上部80%を表示 */
.top-human-image {
    width: 200%;
    height: 110%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.image-left .top-human-image {
    margin-left: 0;
}

.image-right .top-human-image {
    margin-left: -100%;
}

/* グリッチ効果用CSS変数 */
:root {
    --f-size: 15;
    --f-unit: 1vmin;
    --f: calc(var(--f-size) * var(--f-unit));
    --bg: #ffffff;
    --glitch-top: 0;
    --glitch-left: 0;
    --glitch-v-height: 30%;
    --glitch-scale: 1;
}

/* グリッチ効果 */
.glitch-container {
    position: relative;
    --glitch-top: 0;
    --glitch-left: 0;
    --glitch-v-height: 30%;
    --glitch-scale: 1;
}

.glitch-container::after {
    --slice-0: inset(50% 50% 50% 50%);
    --slice-1: inset(80% -6px 10% 0);
    --slice-2: inset(50% -6px 40% 0);
    --slice-3: inset(10% -6px 90% 0);
    --slice-4: inset(40% -6px 50% 0);
    --slice-5: inset(80% -6px 15% 0);

    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
    clip-path: var(--slice-0);
    animation: glitch-filter 3s infinite;
    animation-timing-function: steps(20, end);
}

@keyframes glitch-filter {
    0% {
        clip-path: var(--slice-1);
        transform: translate(-20px, -10px);
    }

    10% {
        clip-path: var(--slice-3);
        transform: translate(10px, 10px);
    }

    20% {
        clip-path: var(--slice-1);
        transform: translate(-10px, 10px);
    }

    30% {
        clip-path: var(--slice-3);
        transform: translate(0px, 5px);
    }

    40% {
        clip-path: var(--slice-2);
        transform: translate(-5px, 0px);
    }

    50% {
        clip-path: var(--slice-3);
        transform: translate(5px, 0px);
    }

    60% {
        clip-path: var(--slice-4);
        transform: translate(5px, 10px);
    }

    70% {
        clip-path: var(--slice-2);
        transform: translate(-10px, 10px);
    }

    80% {
        clip-path: var(--slice-5);
        transform: translate(20px, -10px);
    }

    90% {
        clip-path: var(--slice-1);
        transform: translate(-10px, 0px);
    }

    100% {
        clip-path: var(--slice-1);
        transform: translate(0);
    }
}

.glitch-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 110%;
    object-fit: cover;
    object-position: top center;
    margin-left: -100%;
    opacity: 0;
    transform: scaleX(var(--glitch-scale, 1));
    filter: drop-shadow(0 0 transparent);
}

.glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    --glitch-top: 0;
    --glitch-left: 0;
    --glitch-v-height: 30%;
}

.glitch-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 110%;
    background-image: url('../images/top_human.png');
    background-size: cover;
    background-position: top center;
    margin-left: -100%;

    --n-tenth: calc(var(--f-size) * .1 * var(--glitch-top));
    --t-cut: calc(var(--n-tenth) / var(--f-size) * 100%);
    --b-cut: calc(var(--t-cut) + var(--glitch-v-height));

    transform: translateX(calc(var(--glitch-left) * 100%));
    filter: drop-shadow(0 0 transparent);
    clip-path: polygon(0% var(--t-cut), 100% var(--t-cut), 100% var(--b-cut), 0% var(--b-cut));
}

.glitch-layer-1::before {
    filter: drop-shadow(calc(var(--glitch-left) * -3em) 0 .02em lime) drop-shadow(calc(var(--glitch-left) * -6em) 0 .02em #ff00e1) hue-rotate(300deg) saturate(1.5) brightness(1.2);
    mix-blend-mode: screen;
}

.glitch-layer-2::before {
    filter: drop-shadow(calc(var(--glitch-left) * -3em) 0 .02em lime) drop-shadow(calc(var(--glitch-left) * -6em) 0 .02em #ff00e1) hue-rotate(320deg) saturate(1.3) brightness(0.9);
    mix-blend-mode: multiply;
}

.glitch-layer-3::before {
    filter: drop-shadow(calc(var(--glitch-left) * -3em) 0 .02em lime) drop-shadow(calc(var(--glitch-left) * -6em) 0 .02em #ff00e1) hue-rotate(310deg) saturate(1.4) brightness(1.1);
    mix-blend-mode: screen;
}

/* 赤紫のフィルターを右半分全体に適用 */
/* .image-right {
    filter: hue-rotate(300deg) saturate(1.2) brightness(0.95);
} */

/* グリッチアニメーション */
.glitch-active .glitch-image {
    opacity: 1;
    animation: glitch-p 11s infinite alternate;
}

.glitch-active .glitch-layer-1 {
    opacity: 0.8;
    animation: glitch-a 3.1s infinite alternate;
}

.glitch-active .glitch-layer-2 {
    opacity: 0.6;
    animation: glitch-b 1.7s infinite alternate-reverse;
}

.glitch-active .glitch-layer-3 {
    opacity: 0.7;
    animation: glitch-a 2.5s infinite alternate;
}

@keyframes glitch-p {
    17% {
        --glitch-scale: 1.07;
    }

    31% {
        --glitch-scale: 1.1;
    }

    37% {
        --glitch-scale: 1.3;
    }

    47% {
        --glitch-scale: 1.11;
    }

    87% {
        --glitch-scale: 1;
    }
}

@keyframes glitch-a {

    10%,
    30%,
    50%,
    70%,
    90% {
        --glitch-top: 0;
        --glitch-left: 0;
    }

    0% {
        --glitch-v-height: 15%;
    }

    20% {
        --glitch-left: .005;
    }

    40% {
        --glitch-left: .01;
        --glitch-v-height: 20%;
        --glitch-top: 3;
    }

    60% {
        --glitch-left: .03;
        --glitch-v-height: 25%;
        --glitch-top: 6;
    }

    80% {
        --glitch-left: .07;
        --glitch-v-height: 5%;
        --glitch-top: 8;
    }

    100% {
        --glitch-left: .083;
        --glitch-v-height: 30%;
        --glitch-top: 1;
    }
}

@keyframes glitch-b {

    10%,
    30%,
    50%,
    70%,
    90% {
        --glitch-top: 0;
        --glitch-left: 0;
    }

    0% {
        --glitch-v-height: 15%;
        --glitch-top: 10;
    }

    20% {
        --glitch-left: -.005;
    }

    40% {
        --glitch-left: -.01;
        --glitch-v-height: 17%;
        --glitch-top: 3;
    }

    60% {
        --glitch-left: -.03;
        --glitch-v-height: 35%;
        --glitch-top: 6;
    }

    80% {
        --glitch-left: -.07;
        --glitch-v-height: 5%;
        --glitch-top: 8;
    }

    100% {
        --glitch-left: -.083;
        --glitch-v-height: 30%;
        --glitch-top: 1;
    }
}


/* トップ */

.waku {
    display: none;
    opacity: 0;
    position: absolute;
    position: absolute;
    top: 2vh;
    left: 9%;
    z-index: 6;
    width: 90%;
    height: 99%;

}

.waku_bottom {
    position: absolute;
    bottom: 0;
    text-align: center;
    margin-left: -8px;
}

.top_start_btn {
    width: 184px;
    margin-bottom: -3vh;
    margin-left: -16px;
}

.top-policy-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 0vh;
    margin-bottom: 1vh;
    bottom: 0;
    background: #ffffff;
    color: #000000;
    width: 101vw;
    padding: 6px 54px;
    max-width: 427px;
    margin-left: -29px;
    margin-bottom: 6px;
}



.top-policy-links a {
    color: #7b7b7b;
    font-size: 10px;
    text-decoration: underline;
    white-space: nowrap;
}

.top-policy-links-m {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 0vh;
    margin-bottom: 3vh;
}

.top-policy-links-m a {
    color: #ffffff;
    font-size: 10px;
    text-decoration: underline;
    white-space: nowrap;
}


/* 
@media (max-width: 376px) {
    .waku {
        top: 2vh;
        left: 13vw;
        z-index: 6;
        width: 74vw;
    }
} */

.waku-image_top {
    width: 90%;
    height: auto;
    object-position: center;
    display: block;
}

.waku-image_bot {
    width: 93%;
    height: auto;
    object-position: center;
    display: block;
}


/* waku用グリッチ効果 */
.waku-glitch {
    --glitch-top: 0;
    --glitch-left: 0;
    --glitch-v-height: 80%;
    position: relative;
}

.waku-glitch::before {

    animation: glitch-b 0.2s;
}

.top_logo {
    opacity: 0;
    position: absolute;
    top: 348px;
    width: 106%;
    z-index: 2;
    left: -2%;
}

.top_logo_image {
    width: 100%;
    height: auto;
    object-position: center;
    display: block;
}

.top_btn {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 32vw;
    width: 42vw;
    z-index: 2;
}

/* モバイルファースト（スマホサイズ） */
@media (max-width: 440px) {
    .app-container {
        padding: 0;
    }

    .phone-frame {
        max-width: 100%;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        /* height: 100vh; */
    }

    .app-content {
        border-radius: 0;
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

/* PC/タブレット表示: 414×896の固定枠 */
@media (min-width: 441px) {
    .app-container {
        padding: 20px;
        background-color: #1a1a1a;
        align-items: center;
        justify-content: center;
        height: 100vh;
    }

    .phone-frame {
        width: 414px;
        max-width: 414px;
        height: 896px;
        flex-shrink: 0;
        border-radius: 12px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);

    }

    .app-content {
        height: 896px;
        min-height: unset;

        border-radius: 12px;
    }

    .game-select-card {
        width: 414px;
        height: 896px;
    }

    .top-image-container {
        height: 896px !important;
    }

    .download-image-container_2 {
        margin-top: 38px !important;
    }
}

/* ぼかしオーバーレイ */
.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.blur-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(10px);
}

/* テキストオーバーレイ */
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 6;
    pointer-events: none;
}

/* テキスト用「次へ」ボタン（画面下部右） */
.intro-next-btn {
    position: fixed;
    right: 28px;
    bottom: 30px;
    z-index: 7;
    display: none;
    pointer-events: auto;
}

.intro-next-btn-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.intro-next-btn-image {
    display: block;
    width: 41px;
}

/* ゲーム用「次へ」ボタン（画面下部右） */
.game-next-btn {
    position: fixed;
    right: 28px;
    bottom: 30px;
    z-index: 7;
    display: block;
    pointer-events: none;
}

.game-next-btn-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.game-next-btn-image {
    display: block;
    width: 41px;
}

.blk-next-btn-image {
    width: 180px;
}

.text-item {
    position: absolute;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0;
    line-height: 27px;
    font-family: "M PLUS Rounded 1c", sans-serif;
}

/* =========================
   ゲームページ
   ========================= */
.game-page-inner {
    position: relative;
    width: 100%;
    min-height: calc(calc(var(--vh, 1vh) * 100));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.game-text {
    position: relative;
    transform: none;
    color: #fff;
    font-size: 16px;
    line-height: 27px;
    text-align: center;
    opacity: 0;
    padding: 0;
    /* text-shadow: 0 0 8px rgba(0, 0, 0, 0.8); */
    z-index: 5;
    font-weight: 500;
    letter-spacing: 2px;
}

.game-select {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 50px);
    height: calc(100% - 50px);
    max-width: 360px;
    color: #333;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    transition: filter 0.3s ease;
    top: 25px;
}

/* Step3: ネガポジ反転（画像は除外） */
.game-select-negative {
    filter: invert(1);
}

/* Step3: 画像は反転しない */
.game-select-negative .game-select-main-image-wrap {
    filter: invert(1);
    /* 親の反転を打ち消す */
}

/* Step4: 画像もネガポジ反転（step3の打ち消しを無効化） */
.game-select-negative .game-select-main-image-wrap-negative {
    filter: none !important;
    /* 親の反転をそのまま適用 = 反転状態 */
}

/* カード全体 */
.game-select-card {
    width: 100%;
    height: 100%;
    background: #fff;
    /* border-radius: 18px; */
    padding: 12px 12px 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ヘッダー */
.game-select-header {
    display: flex;
    align-items: center;
    margin-bottom: 7px;
}

.game-select-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

.game-select-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-select-username {
    font-size: 13px;
    font-weight: 700;
    color: #969696;
    letter-spacing: 1px;
}

.game-select-menu {
    margin-left: auto;
    font-size: 20px;
    line-height: 1;
    color: #262626;
    cursor: pointer;
}

/* メイン画像 */
.game-select-main-image-wrap {
    width: 100%;
    max-height: 58%;
    min-height: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    --f-size: 15;
    --scale: 1;
    transition: filter 0.3s ease;
    background-color: #ffffff;
}

/* Step4: 画像もネガポジ反転 */
.game-select-main-image-wrap-negative {
    filter: invert(1);
}

/* Step4: 親が反転している場合は、親の反転をそのまま適用 */
.game-select-negative .game-select-main-image-wrap-negative {
    filter: none !important;
    /* 親の反転をそのまま適用 = 反転状態 */
}

.game-select-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    touch-action: none;
    transform-origin: center center;
}

/* 画像グリッチエフェクト */
.image-glitch-active .game-select-main-image {
    animation: image-glitch-p 5s infinite alternate;
}

.image-glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    --top: 0;
    --left: 0;
    --v-height: 30%;
    --f-size: 15;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-glitch-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    --n-tenth: calc(var(--f-size) * .1 * var(--top));
    --t-cut: calc(var(--n-tenth) / var(--f-size) * 100%);
    --b-cut: calc(var(--t-cut) + var(--v-height));

    transform: translateX(calc(var(--left) * 100%));
    filter: drop-shadow(calc(var(--left) * -3em) 0 .02em lime) drop-shadow(calc(var(--left) * -6em) 0 .02em #ff00e1);
    clip-path: polygon(0% var(--t-cut), 100% var(--t-cut), 100% var(--b-cut), 0% var(--b-cut));
}

.image-glitch-active .image-glitch-layer {
    opacity: 0.8;
}

.image-glitch-active .image-glitch-layer-1 {
    animation: image-glitch-a 3.1s infinite alternate;
}

.image-glitch-active .image-glitch-layer-2 {
    animation: image-glitch-b 1.7s infinite alternate-reverse;
}

@keyframes image-glitch-p {
    17% {
        --scale: .87;
    }

    31% {
        --scale: 1.1;
    }

    37% {
        --scale: 1.4;
    }

    47% {
        --scale: .81;
    }

    87% {
        --scale: 1;
    }
}

@keyframes image-glitch-a {

    10%,
    30%,
    50%,
    70%,
    90% {
        --top: 0;
        --left: 0;
    }

    0% {
        --v-height: 15%;
    }

    20% {
        --left: .005;
    }

    40% {
        --left: .01;
        --v-height: 20%;
        --top: 3;
    }

    60% {
        --left: .03;
        --v-height: 25%;
        --top: 6;
    }

    80% {
        --left: .07;
        --v-height: 5%;
        --top: 8;
    }

    100% {
        --left: .083;
        --v-height: 30%;
        --top: 1;
    }
}

@keyframes image-glitch-b {

    10%,
    30%,
    50%,
    70%,
    90% {
        --top: 0;
        --left: 0;
    }

    0% {
        --v-height: 15%;
        --top: 10;
    }

    20% {
        --left: -.005;
    }

    40% {
        --left: -.01;
        --v-height: 17%;
        --top: 3;
    }

    60% {
        --left: -.03;
        --v-height: 35%;
        --top: 6;
    }

    80% {
        --left: -.07;
        --v-height: 5%;
        --top: 8;
    }

    100% {
        --left: -.083;
        --v-height: 30%;
        --top: 1;
    }
}

/* アクションアイコン行 */
.game-select-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 6px;
}

.game-select-actions-left,
.game-select-actions-right {
    display: flex;
    align-items: center;
    gap: 60px;
}

.game-select-icon {
    width: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game-select-icon-image {
    width: 100%;
    /* width: 100%;
    height: 100%; */
    /* object-fit: contain; */
}

.game-select-like-count,
.game-select-comment-count {
    font-size: 11px;
    color: #EE92BA;
    margin-left: -14px;
    margin-right: 8px;
    align-self: center;
    display: none;
    width: 10px;
}

/* キャプション */
.game-select-caption {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 2px 8px;
    height: 60px;
    letter-spacing: 1px;
}


.game-select-caption-name {
    color: #969696;
    margin-right: 8px;
    font-weight: 700;
}

/* ========== GAME OVER グリッチ ========== */
.game-over-image {
    animation:
        game-over-jitter 0.15s steps(2, end) infinite,
        game-over-glitch-shadow 2s steps(4, end) infinite;
}

.game-over-under {
    /* animation:
        game-over-jitter 0.18s steps(2, end) infinite reverse,
        game-over-glitch-shadow 2s steps(4, end) 0.5s infinite; */
}

/* 細かい揺れ */
@keyframes game-over-jitter {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    20% {
        transform: translate3d(-2px, 0, 0);
    }

    40% {
        transform: translate3d(2px, 1px, 0);
    }

    60% {
        transform: translate3d(-1px, -1px, 0);
    }

    80% {
        transform: translate3d(1px, 0, 0);
    }
}

/* シアン＋マゼンタの色ずれシャドウ */
@keyframes game-over-glitch-shadow {

    0%,
    100% {
        filter: drop-shadow(0 0 0 transparent);
    }

    8% {
        filter: drop-shadow(3px 0 0 rgba(0, 255, 255, 0.7)) drop-shadow(-2px 0 0 rgba(255, 0, 255, 0.4));
    }

    10% {
        filter: drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.5)) drop-shadow(3px 0 0 rgba(255, 0, 255, 0.3));
    }

    12% {
        filter: drop-shadow(0 0 0 transparent);
    }

    40% {
        filter: drop-shadow(0 0 0 transparent);
    }

    42% {
        filter: drop-shadow(4px 1px 0 rgba(0, 255, 255, 0.6)) drop-shadow(-3px -1px 0 rgba(255, 0, 255, 0.35));
    }

    44% {
        filter: drop-shadow(-1px 0 0 rgba(0, 255, 255, 0.4));
    }

    46% {
        filter: drop-shadow(0 0 0 transparent);
    }

    70% {
        filter: drop-shadow(0 0 0 transparent);
    }

    72% {
        filter: drop-shadow(2px 0 0 rgba(0, 255, 255, 0.8)) drop-shadow(-2px 0 0 rgba(255, 0, 255, 0.5));
    }

    75% {
        filter: drop-shadow(-3px 1px 0 rgba(0, 255, 255, 0.6));
    }

    77% {
        filter: drop-shadow(0 0 0 transparent);
    }
}

.game-select-caption-text {
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    background: linear-gradient(to right, rgb(125, 204, 243), rgb(238, 146, 186));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.game-select-caption-text .emoji {
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: initial;
}

/* コメントリスト */
.game-select-comments {
    display: none;
    margin: 4px 2px 8px;
    padding: 0 2px;
    height: 45%;

    min-height: 216px;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    /* IE, Edge */
    scrollbar-width: none;
    /* Firefox */
}

.game-select-comments::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.game-select-comment-list {
    list-style: none;
}

.game-select-comment-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.game-select-comment-meta {
    color: #999;
    font-size: 10px;
}

.game-select-comment-name {
    font-weight: 700;
    font-size: 10px;
}

.game-select-comment-text {
    flex: 1;
    color: #969696;
    font-size: 13px;
}

/* コメント左側（アイコン＋テキスト） */
.game-select-comment-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 12px 0 4px;
}

.alert-comment-item .game-select-comment-left {
    padding: 0;
}

.game-select-comment-icon {
    width: 30px;
    height: 30px;
    background-image: url('../images/user_icon_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
}

.alert-comment-icon {
    width: 52px;
    height: 52px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    background-size: 52px;
}

.game-select-comment-body {
    width: 232px;
    display: flex;
    flex-direction: column;
}

.game-select-comment-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

/* 右側の小さなハート */
.game-select-comment-like {
    font-size: 14px;
    color: #ddd;
    padding-right: 4px;
}

/* サムネイル */

.game-select-thumbs-container {
    position: relative;
    width: 100%;
    max-height: 19%;
}

.game-select-thumbs {
    display: flex;
    /* gap: 4px; */
    /* margin-top: 20px; */
    margin-left: -11px;
    width: calc(100% + 23px);
    height: 115px;
    gap: 3px;
}



.game-select-thumb {
    flex: 1;
    position: relative;
    border: none;
    padding: 0;
    /* border-radius: 6px; */
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.game-select-thumb-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.game-select-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 選択中のサムネイルは白いオーバーレイ */
.game-select-thumb.is-selected .game-select-thumb-overlay {
    opacity: 1;
}

/* 決定ボタン */
.game-select-btn {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    /* padding-bottom: 16px; */
    align-items: center;
    padding-bottom: 7px;
}

.game-select-btn-image {
    display: block;
    width: 184px;
    height: auto;
    margin: 0 auto;
}

/* =========================
   問6用画面
   ========================= */
.game-q6 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 50px);
    height: calc(100% - 50px);
    max-width: 360px;
    color: #333;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    transition: filter 0.3s ease;
    top: 25px;
}

.game-q6-card {
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 12px 12px 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-q6-main-image-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 8px;
    flex: 1 1 0;
    min-height: 50%;
    max-height: 58%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    --f-size: 15;
    --scale: 1;
    transition: filter 0.3s ease;
    background-color: #ffffff;
}

.game-q6-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    touch-action: none;
    transform-origin: center center;
}

.game-q6-caption-text {
    font-size: 13px;
    line-height: 1.5;
    background: linear-gradient(to right, rgb(125, 204, 243), rgb(238, 146, 186));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.game-q6-caption-text .emoji {
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: initial;
}

.game-q6-buttons {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 16px;
}

.game-q6-btn {
    display: block;
    text-align: center;
}

.game-q6-btn-image {
    width: 210px;
    display: block;
}

/* VHS風グリッチエフェクト */
.vhs-glitch-active {
    position: relative;
    overflow: hidden;
}

.vhs-scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 5px,
            transparent 2px);
    animation: vhs-scan 0.1s linear infinite;
    opacity: 1s;
}

@keyframes vhs-scan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* VHS白スキャンライン（画面全体・ノイズ飛び） */
.vhs-scan-lines-white {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1003;
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 2px,
            rgb(253, 127, 186) 2px,
            rgb(247, 87, 180) 3px,
            transparent 3px,
            transparent 7px,
            rgba(175, 247, 187, 0.849) 7px,
            rgba(107, 252, 114, 0.75) 8px,
            transparent 8px,
            transparent 12px,
            rgba(255, 255, 255, 0.24) 12px,
            rgba(255, 255, 255, 0.6) 13px,
            transparent 13px,
            transparent 17px);
    background-size: 100% 17px;
    animation: vhs-white-scan-lines 0.18s steps(1, end) infinite;
}

@keyframes vhs-white-scan-lines {
    0% {
        background-position: 0 0px;
        opacity: 0.35;
    }

    13% {
        background-position: 0 11px;
        opacity: 0.22;
    }

    26% {
        background-position: 0 4px;
        opacity: 0.48;
    }

    39% {
        background-position: 0 15px;
        opacity: 0.30;
    }

    52% {
        background-position: 0 7px;
        opacity: 0.45;
    }

    65% {
        background-position: 0 2px;
        opacity: 0.20;
    }

    78% {
        background-position: 0 13px;
        opacity: 0.42;
    }

    91% {
        background-position: 0 6px;
        opacity: 0.28;
    }

    100% {
        background-position: 0 17px;
        opacity: 0.38;
    }
}

/* VHS黒スキャンライン（step3用・白と同構成） */
.vhs-scan-lines-black {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1003;
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            rgba(0, 0, 0, 0.8) 2px,
            rgba(255, 7, 152, 0.849) 3px,
            transparent 3px,
            rgba(0, 0, 0, 0.7) 7px,
            rgba(0, 0, 0, 1) 8px,
            transparent 8px,
            rgba(61, 7, 7, 0.233) 12px,
            rgba(0, 0, 0, 0.6) 13px,
            transparent 17px);
    background-size: 100% 17px;
    animation: vhs-black-scan-lines 0.18s steps(1, end) infinite;
}

@keyframes vhs-black-scan-lines {
    0% {
        background-position: 0 0px;
        opacity: 0.35;
    }

    13% {
        background-position: 0 11px;
        opacity: 0.22;
    }

    26% {
        background-position: 0 4px;
        opacity: 0.48;
    }

    39% {
        background-position: 0 15px;
        opacity: 0.30;
    }

    52% {
        background-position: 0 7px;
        opacity: 0.45;
    }

    65% {
        background-position: 0 2px;
        opacity: 0.20;
    }

    78% {
        background-position: 0 13px;
        opacity: 0.42;
    }

    91% {
        background-position: 0 6px;
        opacity: 0.28;
    }

    100% {
        background-position: 0 17px;
        opacity: 0.38;
    }
}

/* VHS赤スキャンライン（step4用） */
.vhs-scan-lines-last {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1003;
    background: repeating-linear-gradient(to bottom,
            rgba(255, 255, 255, 0.7) 1px, 0px,
            rgba(227, 0, 0, 1) 1px, 1px,
            rgba(227, 0, 0, 0.7) 1px,
            rgba(0, 0, 0, 0.7) 1px,
            rgba(227, 0, 0, 1) 1px, 3px,
            rgba(227, 0, 0, 0.7) 1px, 1px,
            rgba(0, 0, 0, 0.5) 1px,
            rgba(200, 0, 0, 1) 1px);
    background-size: 100% 8px;
    animation: vhs-last-scan-lines 0.12s steps(1, end) infinite;
}

@keyframes vhs-last-scan-lines {
    0% {
        background-position: 0 0px;
        opacity: 0.6;
    }

    13% {
        background-position: 0 5px;
        opacity: 0.45;
    }

    26% {
        background-position: 0 2px;
        opacity: 0.7;
    }

    39% {
        background-position: 0 7px;
        opacity: 0.5;
    }

    52% {
        background-position: 0 3px;
        opacity: 0.65;
    }

    65% {
        background-position: 0 1px;
        opacity: 0.4;
    }

    78% {
        background-position: 0 6px;
        opacity: 0.55;
    }

    91% {
        background-position: 0 4px;
        opacity: 0.5;
    }

    100% {
        background-position: 0 8px;
        opacity: 0.6;
    }
}

.vhs-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1002;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.4"/></svg>');
    opacity: 0.15;
    animation: vhs-noise 0.2s steps(4) infinite;
    mix-blend-mode: overlay;
    background: #c502ff;
}

@keyframes vhs-noise {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.2;
    }
}

.vhs-color-shift {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: linear-gradient(90deg,
            rgba(255, 0, 0, 0.03) 0%,
            rgba(0, 255, 0, 0.03) 50%,
            rgba(0, 0, 255, 0.03) 100%);
    animation: vhs-color-shift 3s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes vhs-color-shift {

    0%,
    100% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }

    25% {
        transform: translateX(-2px);
        filter: hue-rotate(5deg);
    }

    50% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }

    75% {
        transform: translateX(2px);
        filter: hue-rotate(-5deg);
    }
}

/* Step4専用：ざらざらノイズ（SVGタービュランス＋ランダム移動） */
.step4-grain-noise {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 10000;
    opacity: 1;
    background-image: url('../images/noize.webp');
    scale: 1.4;
    animation: step4-grain-shift 0.07s steps(1) infinite;
}

@keyframes step4-grain-shift {
    0% {
        transform: translate(0, 0);
    }

    9% {
        transform: translate(-8%, -12%);
    }

    18% {
        transform: translate(12%, 5%);
    }

    27% {
        transform: translate(-5%, 20%);
    }

    36% {
        transform: translate(18%, -8%);
    }

    45% {
        transform: translate(-12%, 15%);
    }

    54% {
        transform: translate(6%, -20%);
    }

    63% {
        transform: translate(-18%, 8%);
    }

    72% {
        transform: translate(10%, 18%);
    }

    81% {
        transform: translate(-6%, -15%);
    }

    90% {
        transform: translate(15%, 10%);
    }

    100% {
        transform: translate(-10%, -5%);
    }
}

/* Step2専用：.game-select-card自体に適用するRGBチャンネルずれグリッチ */
.card-rgb-glitch {
    position: relative;
    /* 既存の白背景はJS側で設定済みなのでここでは変更しない */
    overflow: visible;
}

.card-rgb-glitch::before,
.card-rgb-glitch::after {
    content: "";
    position: absolute;
    /* 上下にははみ出さないように少し内側にオフセット */
    top: 3px;
    bottom: 3px;
    left: 0;
    right: 0;
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -1;
}

/* 左：赤チャンネル風アウトライン */
.card-rgb-glitch::before {
    border-left: 7px solid #fc147f66;
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
    transform: translate(-3px, 0);
    animation: card-rgb-glitch-r 0.3s steps(1, end) infinite;
}

/* 右：紫（R+B）チャンネル風アウトライン */
.card-rgb-glitch::after {
    border-right: 7px solid #dff689f2;
    border-left: 0;
    border-top: 0;
    border-bottom: 0;
    transform: translate(3px, 0);
    animation: card-rgb-glitch-c 0.3s steps(1, end) infinite;
}

@keyframes card-rgb-glitch-r {
    0% {
        transform: translate(-3px, 0);
    }

    33% {
        transform: translate(-5px, 1px);
    }

    66% {
        transform: translate(-2px, -1px);
    }

    100% {
        transform: translate(-3px, 0);
    }
}

@keyframes card-rgb-glitch-c {
    0% {
        transform: translate(3px, 0);
    }

    33% {
        transform: translate(1px, -1px);
    }

    66% {
        transform: translate(4px, 1px);
    }

    100% {
        transform: translate(3px, 0);
    }
}

/* VHS風グリッチエフェクト - アプリコンテンツへの適用 */
.vhs-glitch-active.app-content,
.vhs-glitch-active.main-content {
    /* animation: vhs-glitch-main 0.3s infinite; */
}

/* VHSグリッチ中のgame-selectカードのコントラスト強調 */
.vhs-glitch-active .game-select {
    filter: saturate(2.6) contrast(1);
    mix-blend-mode: hard-light;
}

/* step2: 揺れ幅1/2 */
.game-select-shake_1 {
    animation: game-select-shake_1 0.15s steps(1, end) infinite;
}

/* step3: 揺れ幅フル */
.game-select-shake_2 {
    animation: game-select-shake_2 0.15s steps(1, end) infinite;
}

@keyframes game-select-shake_1 {
    0% {
        transform: translateX(-50%) translateY(0px);
    }

    33% {
        transform: translateX(calc(-50% + 2px)) translateY(-1px);
    }

    44% {
        transform: translateX(calc(-50% - 1.5px)) translateY(0.5px);
    }

    77% {
        transform: translateX(calc(-50% + 1px)) translateY(-0.5px);
    }

    88% {
        transform: translateX(calc(-50% - 0.5px)) translateY(1.5px);
    }

    100% {
        transform: translateX(-50%) translateY(0px);
    }
}

@keyframes game-select-shake_2 {
    0% {
        transform: translateX(-50%) translateY(0px);
    }

    33% {
        transform: translateX(calc(-50% + 7px)) translateY(-5px);
    }

    44% {
        transform: translateX(calc(-50% - 6px)) translateY(4px);
    }

    77% {
        transform: translateX(calc(-50% + 5px)) translateY(-1px);
    }

    88% {
        transform: translateX(calc(-50% - 2px)) translateY(5px);
    }

    100% {
        transform: translateX(-50%) translateY(0px);
    }
}

/* Step3: テキスト色変更 */
.step3-text-dark {
    color: #a45f14 !important;
    font-weight: 300;
}

.step3-caption-dark {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #620e30 !important;
    color: #620e30 !important;
}

/* Step3: コメントアイコン反転 */
.step3-icon-invert {
    filter: invert(1);
}

@keyframes vhs-glitch-main {

    0%,
    100% {
        filter: brightness(1) contrast(1) saturate(1);
        transform: translateX(0);
    }

    10% {
        filter: brightness(1.1) contrast(1.1) saturate(1.1);
        transform: translateX(-1px);
    }

    20% {
        filter: brightness(0.9) contrast(0.9) saturate(0.9);
        transform: translateX(1px);
    }

    30% {
        filter: brightness(1.05) contrast(1.05) saturate(1.05);
        transform: translateX(0);
    }

    40% {
        filter: brightness(0.95) contrast(0.95) saturate(0.95);
        transform: translateX(-0.5px);
    }

    50% {
        filter: brightness(1) contrast(1) saturate(1);
        transform: translateX(0.5px);
    }

    60% {
        filter: brightness(1.02) contrast(1.02) saturate(1.02);
        transform: translateX(0);
    }

    70% {
        filter: brightness(0.98) contrast(0.98) saturate(0.98);
        transform: translateX(-0.3px);
    }

    80% {
        filter: brightness(1.01) contrast(1.01) saturate(1.01);
        transform: translateX(0.3px);
    }

    90% {
        filter: brightness(1) contrast(1) saturate(1);
        transform: translateX(0);
    }
}

/* ブラックアウトオーバーレイ */
.blackout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

/* semaru.pngオーバーレイ */
.semaru-overlay,
.semaru-last-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.semaru-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: inline-block;
}

.semaru-image {
    width: 100%;
    height: auto;
    display: block;
}

/* semaru_last.png - 初期非表示 */
.semaru-last-overlay {
    opacity: 0;
    width: 0;
}

/* alert.pngオーバーレイ */
.alert-overlay {
    position: fixed;
    top: 34%;
    left: 58%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    scale: 1.2;
}

.alert-image-wrap {
    position: relative;
    display: inline-block;
    /* scale: 1.2 */
}

.alert-image {
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 60vh;
    display: block;
    position: relative;
    /* animation: alert-glitch-jitter-img 0.22s steps(2, end) infinite alternate; */
}


@keyframes alert-glitch-jitter {

    0%,
    100% {
        transform: translateX(-50%) skewX(0deg);
    }

    20% {
        transform: translate(-51%, -1px) skewX(-1deg);
    }

    40% {
        transform: translate(-49%, 1px) skewX(0.5deg);
    }

    60% {
        transform: translate(-50%, 0) skewX(-0.5deg);
    }

    80% {
        transform: translate(-50%, 1px) skewX(0.8deg);
    }
}

/* .alert-image 用: 親のflexで中央寄せされるため -50% translateX を含まない版 */
@keyframes alert-glitch-jitter-img {

    0%,
    100% {
        transform: skewX(0deg);
    }

    20% {
        transform: translate(-1%, -1px) skewX(-1deg);
    }

    40% {
        transform: translate(1%, 1px) skewX(0.5deg);
    }

    60% {
        transform: translate(0, 0) skewX(-0.5deg);
    }

    80% {
        transform: translate(0, 1px) skewX(0.8deg);
    }
}

/* 細いスキャンラインとごく弱いブラーを重ねる */
.alert-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.12) 1px,
            rgba(0, 0, 0, 0) 1px,
            rgba(0, 0, 0, 0) 3px);
    mix-blend-mode: soft-light;
    opacity: 0.55;
    pointer-events: none;
    filter: blur(0.3px);
}

/* alert_comment.png */
.alert-comment-item {
    position: relative;
    max-width: 345px;
    z-index: 99998;
}

.alert-comment-image {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    position: relative;
    transform-origin: center center;
}

/* ========== success-overlay関連のスタイル ========== */
.success-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal {
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    margin-bottom: 100px;
}

.success-modal-image {
    display: block;
    margin: 0 auto;
    width: 350px;
}

.success-text-image {
    display: none;
    height: auto;
    margin: 16px auto 0;
}

.success-image-wrapper {
    position: relative;
    display: inline-block;
}

.success-flare-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 428px;
    pointer-events: none;
    z-index: 0;
}

.success-flare-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.success-flare-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}

.success-circle-progress-container {
    left: 173px !important;
    position: absolute;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 10001;
    display: block;
}

.success-level-up-text .emoji {
    -webkit-text-fill-color: initial;
    -webkit-background-clip: initial;
    background-clip: initial;
    background: none;
    color: initial;
}

.success-level-up-text {
    display: none;
    position: relative;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    z-index: 10001;
    pointer-events: none;
    line-height: 1.5;
    background: linear-gradient(to right, rgb(125, 204, 243), rgb(238, 146, 186));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    top: 94px;
}

.success-count-up-container {
    left: 168px;
    position: absolute;
    pointer-events: none;
    z-index: 10002;
    text-align: center;
    transform: translateX(-50%);
}

.success-count-up-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(to right, rgb(125, 204, 243), rgb(238, 146, 186));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-align: center;
    white-space: nowrap;
    margin-top: 78px;
    margin-left: 30px;
}

.success-text-wrapper {
    position: absolute;
    bottom: 54px;
    left: -8px;
}

/* correct-next-btn */
.correct-next-btn {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 10001;
    pointer-events: auto;
}

.correct-next-btn-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.correct-next-btn-image {
    width: 210px;
    display: block;
}

/* グリッチエフェクト（参考エフェクト） */
.glitch-effect {
    position: relative;
    overflow: hidden;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.glitch-effect::before,
.glitch-effect::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.glitch-effect .channel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    mix-blend-mode: lighten;
    pointer-events: none;
}

.glitch-effect .channel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    mix-blend-mode: multiply;
}

.glitch-effect .channel.r::before {
    background: #f00;
}

.glitch-effect .channel.g::before {
    background: #0f0;
}

.glitch-effect .channel.b::before {
    background: #00f;
}

/* ========== グリッチエフェクト（失敗エフェクトstep1用） ========== */
/* 変数定義 */
:root {
    --static-duration: 3s;
    --glitch-duration: 0.3s;
    --total-duration: 3.3s;
}

/* グリッチコンテナ */
.glitch {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: apply-final-filter var(--total-duration) forwards;
}

/* チャンネル要素（RGB） */
.glitch .channel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mix-blend-mode: lighten;
    pointer-events: none;
    opacity: 0;
}

.glitch .channel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.glitch .channel.r {
    animation: glitch-r var(--total-duration) forwards;
}

.glitch .channel.r::before {
    background: #f00;
}

.glitch .channel.g {
    animation: glitch-g var(--total-duration) forwards;
}

.glitch .channel.g::before {
    background: #0f0;
}

.glitch .channel.b {
    animation: glitch-b var(--total-duration) forwards;
}

.glitch .channel.b::before {
    background: #00f;
}

/* 断層クリップ用の疑似要素（::before/::after） */
.glitch::before,
.glitch::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
}

.glitch::before {
    animation: glitch-clip-before var(--total-duration) forwards;
}

.glitch::after {
    animation: glitch-clip-after var(--total-duration) forwards;
}

/* 最終フィルタ適用アニメーション */
@keyframes apply-final-filter {
    0% {
        filter: none;
    }

    90.91% {
        filter: none;
    }

    100% {
        filter: url(#final-tone-curve);
    }
}

/* 赤チャンネルアニメーション */
@keyframes glitch-r {
    0% {
        opacity: 0;
        transform: translateX(0);
    }

    90.91% {
        opacity: 0;
        transform: translateX(0);
    }

    92.73% {
        opacity: 1;
        transform: translateX(2px) translateY(1px);
    }

    94.55% {
        opacity: 1;
        transform: translateX(-3px) translateY(-1px);
    }

    96.36% {
        opacity: 1;
        transform: translateX(4px) translateY(1px);
    }

    98.18% {
        opacity: 1;
        transform: translateX(-2px) translateY(-1px);
    }

    100% {
        opacity: 1;
        transform: translateX(4px);
    }
}

/* 緑チャンネルアニメーション（基準） */
@keyframes glitch-g {
    0% {
        opacity: 0;
        transform: translateX(0);
    }

    90.91% {
        opacity: 0;
        transform: translateX(0);
    }

    92.73% {
        opacity: 1;
        transform: translateX(2px) translateY(1px);
    }

    94.55% {
        opacity: 1;
        transform: translateX(-3px) translateY(-1px);
    }

    96.36% {
        opacity: 1;
        transform: translateX(4px) translateY(1px);
    }

    98.18% {
        opacity: 1;
        transform: translateX(-2px) translateY(-1px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 青チャンネルアニメーション */
@keyframes glitch-b {
    0% {
        opacity: 0;
        transform: translateX(0);
    }

    90.91% {
        opacity: 0;
        transform: translateX(0);
    }

    92.73% {
        opacity: 1;
        transform: translateX(2px) translateY(1px);
    }

    94.55% {
        opacity: 1;
        transform: translateX(-3px) translateY(-1px);
    }

    96.36% {
        opacity: 1;
        transform: translateX(4px) translateY(1px);
    }

    98.18% {
        opacity: 1;
        transform: translateX(-2px) translateY(-1px);
    }

    100% {
        opacity: 1;
        transform: translateX(-4px);
    }
}

/* 断層クリップアニメーション（::before） */
@keyframes glitch-clip-before {
    0% {
        opacity: 0;
        clip-path: none;
        transform: translateX(0);
    }

    90.91% {
        opacity: 0;
        clip-path: none;
        transform: translateX(0);
    }

    92.73% {
        opacity: 1;
        clip-path: polygon(0 20%, 100% 20%, 100% 25%, 0 25%);
        transform: translateX(5px);
    }

    94.55% {
        opacity: 1;
        clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
        transform: translateX(-7px);
    }

    96.36% {
        opacity: 1;
        clip-path: polygon(0 70%, 100% 70%, 100% 75%, 0 75%);
        transform: translateX(8px);
    }

    98.18% {
        opacity: 1;
        clip-path: polygon(0 30%, 100% 30%, 100% 35%, 0 35%);
        transform: translateX(-5px);
    }

    100% {
        opacity: 0;
        clip-path: none;
        transform: translateX(0);
    }
}

/* 断層クリップアニメーション（::after） */
@keyframes glitch-clip-after {
    0% {
        opacity: 0;
        clip-path: none;
        transform: translateX(0);
    }

    90.91% {
        opacity: 0;
        clip-path: none;
        transform: translateX(0);
    }

    92.73% {
        opacity: 1;
        clip-path: polygon(0 20%, 100% 20%, 100% 25%, 0 25%);
        transform: translateX(5px);
    }

    94.55% {
        opacity: 1;
        clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
        transform: translateX(-7px);
    }

    96.36% {
        opacity: 1;
        clip-path: polygon(0 70%, 100% 70%, 100% 75%, 0 75%);
        transform: translateX(8px);
    }

    98.18% {
        opacity: 1;
        clip-path: polygon(0 30%, 100% 30%, 100% 35%, 0 35%);
        transform: translateX(-5px);
    }

    100% {
        opacity: 0;
        clip-path: none;
        transform: translateX(0);
    }
}

/* アクセシビリティ対応（アニメーション無効化） */
@media (prefers-reduced-motion: reduce) {

    .glitch,
    .glitch .channel,
    .glitch::before,
    .glitch::after {
        animation: none !important;
    }

    .glitch {
        filter: url(#final-tone-curve);
    }

    .glitch .channel.r {
        opacity: 1;
        transform: translateX(4px);
    }

    .glitch .channel.g {
        opacity: 1;
        transform: translateX(0);
    }

    .glitch .channel.b {
        opacity: 1;
        transform: translateX(-4px);
    }

    .glitch::before,
    .glitch::after {
        opacity: 0;
    }
}

/* 画像DLページ */
#download-page {
    background-color: #000000;
}

.download-page-inner {
    width: 100%;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
    background-color: #000000;
    /* padding-bottom: 100px; */
    /* padding-top: 100px; */
}


.download-content {
    width: 93vw;
    max-width: 428px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-top: 220px; */
}



.download-image-container {
    width: 100%;
    /* margin-bottom: 40px; */
}

.download-image-container_2 {
    margin-top: 138px;
}

.download-image {
    width: 90%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 画像DL画面用「次へ」ボタン（画面下部中央） */
.download-next-btn {
    z-index: 7;
}

.download-next-btn-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.download-next-btn-image {
    display: block;
}

/* シェア画面 */
.share-preview-image {
    width: 90%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.share-section {
    width: 88%;
    padding: 0;
    text-align: center;
}

.share-note-buttons-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 2px;
}

.share-left-content {
    flex: 1;
    text-align: left;
}

.share-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
    margin-top: 0;
    font-family: "M PLUS Rounded 1c", sans-serif;
}

.share-note {
    color: #ffffff;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.6;
    font-family: "M PLUS Rounded 1c", sans-serif;
    margin: 0;
    text-align: left;
}

.share-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.share-btn {
    display: block;
    width: 60px;
    height: 60px;
}

.share-btn-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.retry-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.retry-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.retry-btn-image {
    display: block;
    height: auto;
    max-width: 100%;
    width: 220px;
}

.correct-answer-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/main_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10007;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.correct-answer-text,
.correct-answer-text-last {
    color: #ffffff;
    font-size: 16px;
    line-height: 27px;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    font-weight: 400;
}

.correct-answer-next-btn {
    position: fixed;
    right: 28px;
    bottom: 30px;
    z-index: 10008;
}

.correct-answer-next-btn-button {
    background: none;
    border: none;
    padding: 0;
    cursor: default;
    pointer-events: none;
}

.correct-answer-next-btn-image {
    width: 41px;
    height: auto;
    display: block;
}

img[src="images/arw_next_p.png"] {
    width: 41px;
    height: auto;
}

.q6-ending-next-btn-image {
    width: 41px;
    height: auto;
    display: block;
}

/* ========== q6-good-overlay（正解エンド） ========== */
.q6-good-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: calc(var(--vh, 1vh) * 100);
    background: #000000;
    z-index: 10004;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    pointer-events: none;
    opacity: 0;
}

.q6-good-text {
    background: linear-gradient(to right, #7DCCF3, #EE92BA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 16px;
    line-height: 27px;
    text-align: center;
    opacity: 0;
    font-weight: bold;
    letter-spacing: 1.2px;
}

.bad-end-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10004;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bad-end-text {
    font-size: 16px;
    line-height: 27px;
    text-align: left;
    margin-bottom: 40px;
    opacity: 0;
    font-weight: 500;
    padding-left: 12px;
}

.bad-end-next-btn {
    position: fixed;
    right: 28px;
    bottom: 30px;
    z-index: 10005;
    opacity: 0;
    pointer-events: none;
}

.bad-end-next-btn-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 41px;
}

.bad-end-next-btn-image {
    display: block;
    max-width: 100%;
}

.q6-good-next-btn {
    position: fixed;
    right: 28px;
    bottom: 30px;
    z-index: 10005;
    opacity: 0;
    pointer-events: none;
}

.q6-good-next-btn-image {
    display: block;
    width: 41px;
}

/* ========== クリア後ステージ共通 ========== */
.clear-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: calc(var(--vh, 1vh) * 100);
    background-image: url(../images/last_bg.png);
    background-size: cover;
    background-position: center;
    z-index: 20100;
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 28px 37px;
    box-sizing: border-box;
    cursor: pointer;
}

.clear-white-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: calc(var(--vh, 1vh) * 100);
    background: #ffffff;
    z-index: 20099;
    pointer-events: none;
}

/* ステージ03: チェックポイント */
.clear-stage03-title {
    color: #fff;
    font-size: 24px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    margin: 0 0 30px;
    width: 100%;
    letter-spacing: 1.2px;
}

.clear-stage03-list {
    width: 100%;
}

.clear-stage03-item {
    text-align: center;
    margin-bottom: 35px;
}

.clear-stage03-item:last-child {
    margin-bottom: 0;
}

.clear-stage03-item-img {
    width: 44px;
    height: auto;
    display: block;
    margin: 0 auto 6px;
}

.clear-stage03-item-title {
    color: #fff;
    font-size: 24px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 600;
    margin-bottom: 4px;
}

.clear-stage03-item-desc {
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 1.2px;
}

/* ステージ04: まとめ */
.clear-stage04-title {
    color: #fff;
    font-size: 26px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
    text-align: center;
    line-height: 1.8;
    margin: 0;
    width: 100%;
    letter-spacing: 1.2px;
}

.clear-stage04-btn-wrap {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.clear-list-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.clear-list-btn img {
    display: block;
    width: 220px;
}

/* ========== ステージ05: 漏れPOINT一覧 ========== */
.clear-overlay-05 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20100;
    overflow: hidden;
}

.clear-overlay-05-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../images/last_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.clear-overlay-05-scroll {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1;
}

.clear-stage05-inner {
    padding: 32px 16px 0;
    box-sizing: border-box;
    min-height: 100%;
}

.clear-stage05-title {
    color: #fff;
    font-size: 20px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
    text-align: center;
    margin: 0 0 16px;
}

.clear-stage05-desc {
    color: #fff;
    font-size: 13px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    line-height: 1.8;
    margin: 0 0 16px;
    font-weight: 400;
}

.clear-stage05-hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin: 0 0 16px;
}

.clear-stage05-hr-bottom {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin: 16px 0;
}

/* アコーディオンセクション */
.clear-accordion-section {
    margin-bottom: 26px;
}

.clear-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.clear-accordion-header-title {
    color: #fff;
    font-size: 16px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.clear-accordion-toggle {
    color: #fff;
    font-size: 20px;
    line-height: 1;
    user-select: none;
}

.clear-accordion-body-img {
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* アコーディオン内シェアセクション */
.clear-accordion-share-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: 12px auto 4px;
}

.clear-accordion-share-title {
    color: #fff;
    font-size: 14px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
    margin: 0 0 4px;
}

.clear-accordion-share-note {
    color: #fff;
    font-size: 10px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.clear-share-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.clear-share-btns-accordion {
    padding-top: 9px;
}

.clear-share-btns img {
    width: 56px;
    height: 56px;
}

/* 下部シェア・リトライ */
.clear-stage05-share-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    margin: 0 auto;
}

.clear-stage05-retry-wrap {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 100px;
}

.clear-retry-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.clear-retry-btn img {
    display: block;
    width: 220px;
}

.clear-stage05-retry-wrap .top-policy-links-m {
    margin-top: 20px;
}

.clear-overlay-arrow-btn {
    position: fixed;
    right: 28px;
    bottom: 30px;
    z-index: 20101;
    pointer-events: none;
}

.clear-overlay-arrow-btn-image {
    width: 41px;
    height: auto;
    display: block;
}

/* ステージ01: 9割統計 */
.clear-stage01-text-wrap {
    text-align: center;
    width: 100%;
}

.clear-stage01-text-top {
    color: #fff;
    font-size: 16px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 600;
    margin: 0 0 8px;
}

.clear-stage01-text-mid {
    color: #fff;
    font-size: 24px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.2;
}

.clear-stage01-text-bot {
    color: #fff;
    font-size: 16px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 600;
    margin: 0;
}

.clear-stage01-footnote {
    position: absolute;
    left: 16px;
    bottom: 20px;
    color: #fff;
    font-size: 9px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    margin: 0;
    font-weight: 400;
}

/* ステージ02: ダミーテキスト */
.clear-stage02-text {
    color: #fff;
    font-size: 16px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
    line-height: 1.9;
    width: 100%;
    text-align: center;
}

/* createArrowNextBtn ヘルパー用（未使用だが互換のため） */
.clear-arrow-btn-wrap {
    position: fixed;
    right: 28px;
    bottom: 30px;
    z-index: 20101;
}

.clear-arrow-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.clear-arrow-btn img {
    display: block;
}

.clear-active {
    /* height: 100vh; */
}


/* ========== グリッチテキスト（ピンク文字＋紫ズレ） ========== */
.glitch-text-wrap {
    position: relative;
    display: inline-block;
}

.glitch-text-shadow {
    font-family: "IBM Plex Sans JP", sans-serif;
    position: absolute;
    left: 0px;
    top: 0px;
    color: #8a2be2b0;
    z-index: 0;
    pointer-events: none;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 28px;
}

.glitch-text-front {
    font-family: "IBM Plex Sans JP", sans-serif;
    position: relative;
    color: #E3007F;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 2px;
    right: 4px;
    line-height: 28px;
}

/* タブレット以上 */
@media (min-width: 442px) {
    .alert-overlay {
        width: 280px !important;
    }

    .alert-comment-item {
        max-width: 345px;
    }

    .top_btn {
        left: 30%;
        width: 190px;
    }

    .game-page-inner {
        height: 896px !important;
        min-height: 896px !important;
    }

    .correct-next-btn {
        bottom: 80px !important;
    }

    .success-flare-container {
        top: 0 !important;
        height: 100%;
        max-width: 412px !important;
    }

    .semaru-image-wrap {
        width: 80%;
    }

    .top_start_btn {
        width: 240px;
        margin-bottom: -1vh;
        margin-left: -16px;
    }

    .q6-good-overlay {
        min-height: 100% !important;
    }

    .q6-ending-overlay {
        min-height: 100% !important;
    }

    .q6-dummy-text-overlay {
        min-height: 100% !important;
    }

    .q6-clear-overlay {
        min-height: 100% !important;
    }

    .clear-overlay {
        min-height: unset !important;
    }

    .phone-frame.clear-active {
        height: 896px !important;
    }

    .download-image {
        width: 94%;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .waku_bottom {
        position: absolute;
        bottom: 0;
        text-align: center;
        margin-left: -14px;
    }

    .download-page-inner {
        min-height: 896px;

    }

    .top-policy-links {
        padding: 6px 54px 12px;
    }

    /* .game-select-card {
        width: 100%;
        height: 80%;
        background: #fff;
        padding: 12px 12px 0;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin-top: 18%;
    } */
}

@media (max-width: 396px) {
    .game-select-thumb {
        height: 110px;
    }

    .game-select-comments {
        min-height: 180px;
    }

    .game-select-main-image-wrap {
        height: 42%;
        min-height: 45%;
    }

    .game-select-caption {

        height: 42px;
    }

    .game-select-thumbs {
        height: 125px;
    }
}

@media (max-width: 376px) {
    .top-policy-links {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 0vh;
        margin-bottom: 1vh;
        bottom: 0;
        background: #ffffff;
        color: #000000;
        width: 100vw;
        padding: 6px 54px;
        max-width: 427px;
        margin-left: -58px;
        margin-bottom: 5px;
    }

    c {
        width: 100%;
        height: 112%;
        object-fit: cover;
        object-position: center;
    }

    .waku {
        left: 17.5%;
    }

    .waku-image_top {
        width: 70%;
        height: auto;
        object-position: center;
        display: block;
    }

    .waku-image_bot {
        width: 74%;
        height: auto;
        object-position: center;
        display: block;
    }

    .waku_bottom {
        position: absolute;
        bottom: 0;
        text-align: center;
        left: 0;
    }

    .top_start_btn {
        width: 183px;
        margin-bottom: -3vh;
        margin-left: -80px;
    }

    .game-select-thumb {
        height: 88px;
    }

    .game-select-thumbs {
        height: 92px;
    }

    .game-select-comments {
        min-height: 50px;
    }

    .blur-image {
        object-fit: contain !important;
        height: 112%;
    }

    /* JS */
    .blk-next-btn {
        bottom: 85px !important;
    }


    .clear-stage03-title {
        margin-bottom: 12px;
    }

    .clear-stage03-item {
        text-align: center;
        margin-bottom: 12px;
    }

    .clear-stage03-item-title {
        color: #fff;
        font-size: 21px;
    }

    .clear-stage03-item-desc {
        color: #fff;
        font-size: 13px;
    }

    .clear-stage05-retry-wrap {
        text-align: center;
        margin-top: 24px;
        margin-bottom: 50px;
    }

    .download-image {
        width: 78%;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .share-preview-image {
        width: 78%;
    }

    .success-image-wrapper {
        scale: 0.8;
        margin-left: -4px;
    }

    .success-text-wrapper {
        bottom: -5px;
        scale: 0.8;
    }

    .correct-next-btn {
        bottom: 25px;
    }

    .correct-next-btn-image {
        width: 160px;
        display: block;
        margin-bottom: -22px;
    }

    .success-circle-progress-container {
        left: 172px !important;
    }

    .game-text {
        font-size: 14px;
    }

    .bad-end-text {
        font-size: 14px;
    }

    .correct-answer-text,
    .correct-answer-text-last {
        font-size: 14px;
    }

    .q6-good-text {
        font-size: 14px;
    }


    /* .clear-overlay-arrow-btn {
        bottom: 80px;
    }

    .clear-stage01-footnote {
        bottom: 80px;
    } */

}