/* =====================================================
   共通オーバーレイ背景
   Title / Ranking / OST 共通
   ===================================================== */

.overlay-bg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: auto;

    background: radial-gradient(
        circle at 50% 30%,
        rgba(0, 220, 255, 0.10) 0%,
        rgba(0, 120, 255, 0.06) 18%,
        rgba(0, 0, 0, 0.22) 42%,
        rgba(0, 0, 0, 0.72) 72%,
        rgba(0, 0, 0, 0.92) 100%
    );
}

.overlay-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.00) 20%,
        rgba(0,255,255,0.04) 55%,
        rgba(0,0,0,0.14) 100%
    );
    mix-blend-mode: screen;
}

/* =====================================================
   共通ヘッダー枠
   ===================================================== */

.overlay-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px 14px 8px;
    min-width: min(92vw, 720px);
    z-index: 1;
}

.overlay-kicker {
    margin-bottom: 8px;
    color: rgba(180, 255, 255, 0.72);
    font-family: 'Orbitron', monospace;
    font-size: clamp(9px, 1vw, 13px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0,255,255,0.22);
    opacity: 0.9;
}

.overlay-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    text-align: center;
    line-height: 1;
    z-index: 2;
}

.overlay-title-main {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: clamp(20px, 7vw, 32px);
    font-weight: 900;
    letter-spacing: 0.10em;
    text-indent: 0.10em;
    color: #b8ffff;
    text-shadow:
        0 0 8px rgba(180,255,255,0.65),
        0 0 18px rgba(0,255,255,0.50),
        0 0 42px rgba(0,170,255,0.42),
        0 0 80px rgba(0,90,255,0.22);
    animation: overlayTitlePulse 3.2s ease-in-out infinite;
    white-space: nowrap;
}

.overlay-title-sub {
    display: block;
    margin-top: 8px;
    font-family: 'Orbitron', monospace;
    font-size: clamp(10px, 3vw, 16px);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    color: #ffffff;
    opacity: 0.95;
    text-shadow:
        0 0 8px rgba(255,255,255,0.38),
        0 0 18px rgba(0,255,255,0.20);
}

/* =====================================================
   共通リング
   ===================================================== */

.overlay-glow-ring {
    position: absolute;
    top: 52%;
    left: 50%;
    width: min(52vw, 420px);
    height: min(52vw, 420px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.34);
    box-shadow:
        0 0 24px rgba(0,255,255,0.30),
        inset 0 0 28px rgba(0,160,255,0.08);
    z-index: 0;
    pointer-events: none;
}

.overlay-glow-ring::before,
.overlay-glow-ring::after {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px solid rgba(120, 255, 255, 0.20);
    box-shadow:
        0 0 24px rgba(0,255,255,0.10),
        inset 0 0 28px rgba(0,160,255,0.08);
}

.overlay-glow-ring::after {
    inset: 32%;
    border-color: rgba(120, 180, 255, 0.10);
}

/* =====================================================
   共通スキャンライン
   ===================================================== */

.overlay-scanline {
    position: absolute;
    top: 52%;
    left: 50%;
    width: min(78vw, 630px);
    /* ★厚みを少し増して存在感を出す */
    height: 3px; 
    transform: translate(-50%, -50%);
    background: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,255,255,0) 10%,
        rgba(180,255,255,0.9) 50%, /* ★中央を白に近いシアンにして輝度アップ */
        rgba(0,255,255,0) 90%,
        rgba(0,0,0,0) 100%
    );
    /* ★光彩を二重（鋭い光 + 広い光）にして「強く」見せる */
    box-shadow: 
        0 0 12px rgba(0, 255, 255, 0.6),  /* 芯のある光 */
        0 0 24px rgba(0, 255, 255, 0.3);  /* 周囲への広がり */
    
    opacity: 0.9; /* ★少しだけ不透明度を上げる */
    pointer-events: none;
    z-index: 1;
    animation: overlayScanSweep 4.6s ease-in-out infinite;
}

/* =====================================================
   アニメーション
   ===================================================== */

@keyframes overlayTitlePulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.08);
    }
}

@keyframes overlayScanSweep {
    0%, 100% {
        opacity: 0.35;
        transform: translate(-50%, -50%) scaleX(0.92);
    }
    50% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scaleX(1.03);
    }
}

/* =====================================================
   レスポンシブ
   - portrait / landscape のみ
   ===================================================== */

@media (orientation: portrait) {
    .overlay-header {
        min-width: 92vw;
        padding: 10px 10px 8px;
        margin-bottom: 14px;
    }

    .overlay-kicker {
        margin-bottom: 8px;
        font-size: clamp(9px, 2.4vw, 12px);
        letter-spacing: 0.22em;
    }

    .overlay-title-main {
        font-size: clamp(20px, 8vw, 28px);
        letter-spacing: 0.10em;
        text-indent: 0.10em;
        white-space: nowrap;
    }

    .overlay-title-sub {
        margin-top: 8px;
        font-size: clamp(10px, 3vw, 14px);
        letter-spacing: 0.28em;
        text-indent: 0.28em;
    }

    .overlay-glow-ring {
        width: min(62vw, 380px);
        height: min(62vw, 380px);
    }


}

@media (orientation: landscape) {
    .overlay-header {
        margin-bottom: 10px;
        padding: 6px 14px 6px;
        min-width: min(86vw, 680px);
    }

    .overlay-kicker {
        margin-bottom: 6px;
        font-size: clamp(9px, 0.9vw, 12px);
        letter-spacing: 0.24em;
    }

    .overlay-title-main {
        font-size: clamp(20px, 3vw, 38px);
        letter-spacing: 0.12em;
        text-indent: 0.12em;
    }

    .overlay-title-sub {
        margin-top: 6px;
        font-size: clamp(10px, 1vw, 16px);
        letter-spacing: 0.34em;
        text-indent: 0.34em;
    }

    .overlay-glow-ring {
        width: min(46vw, 360px);
        height: min(46vw, 360px);
    }

}