/* TOP countdown banner — 背景(world) / サムネイル / 中央オーバーレイ(title + count) の 3 レイヤ構成 */

.top-countdown-banner {
    --tcb-bar-h: 80px;
    --tcb-gold: #e3b552;
    --tcb-gold-lite: #ffeeb8;

    display: block;
    position: relative;
    height: var(--tcb-bar-h);
    overflow: hidden;
    isolation: isolate;
    color: inherit;
    text-decoration: none;
    background: #0d0433;
}
.top-countdown-banner:hover,
.top-countdown-banner:focus {
    text-decoration: none;
    color: inherit;
}

/* Layer 1: event-lp/world 背景 (fixed → absolute にスコープ)
   64px 内で不自然な viewport 前提要素だけ隠す。streak / prism / dust は残して LP と同じ空気感を作る */
.top-countdown-banner .event-lp-world {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0;
}
.top-countdown-banner .event-lp-world__bolt,
.top-countdown-banner .event-lp-world__beam,
.top-countdown-banner .event-lp-world__burst,
.top-countdown-banner .event-lp-world__bubbles {
    display: none !important;
}
/* prism は LP では 24vh の帯だが banner 内でも横に光る帯として使える */
.top-countdown-banner .event-lp-world__prism {
    top: 30% !important;
    height: 40% !important;
}

/* Layer 2: サムネイル — 画像を優先してはっきり見せる。世界背景は fallback として下に残す */
.top-countdown-banner__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    opacity: 1;
    filter: brightness(1.08) saturate(1.05);
}

/* Layer 3: readability scrim — 全体は透け気味・中央だけ弱めの暗幕 */
.top-countdown-banner__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 55% 90% at 50% 50%,
            rgba(0, 2, 10, .5) 0%,
            rgba(0, 2, 10, .28) 60%,
            rgba(0, 2, 10, 0) 100%);
    pointer-events: none;
}

/* Layer 4: 中央オーバーレイ (title 上 / countdown 下・上下厳密に中央) */
.top-countdown-banner__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 12px;
    white-space: nowrap;
    text-align: center;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
                 "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* タイトル: 小さめゴールド系 */
/* タイトル: 黒の透過ピル (アニメーションなし・静的) */
.top-countdown-banner__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 14px;
    max-width: 100%;
    background: rgba(0, 2, 10, .28);
    border-radius: 999px;
}
/* urgent モードの数字用シマー */
@keyframes tcb-title-shimmer {
    from { background-position: 0% 50%; }
    to   { background-position: 200% 50%; }
}
/* イベント名テキスト: 背景なし、ゴールドグラデーション文字だけ */
.top-countdown-banner__title-text {
    display: block;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .06em;
    /* 全体的に明るく輝くゴールドグラデ (暗い色を排除) */
    background: linear-gradient(180deg, #ffffff 0%, #fff6c8 25%, #ffe98a 55%, #ffd85a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* 縁取りは焦茶ではなく暖色ゴールドで軽く縁取り + 下影のみ (暗色を避ける) */
    filter:
        drop-shadow(.6px 0 0 #a55c00) drop-shadow(-.6px 0 0 #a55c00)
        drop-shadow(0 1.5px 2px rgba(0, 0, 0, .55));
}
/* 「開催まで」タグ: ガラスピル内側の赤バッジ。ガラスピルにピッタリ収まる高さ */
.top-countdown-banner__title-tag {
    display: block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .1em;
    color: #ffffff;
    background: linear-gradient(180deg, #ff5a52 0%, #c9152b 100%);
    border-radius: 999px;
}

/* カウントダウン: 中央大きく */
.top-countdown-banner__count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-family: "Antonio", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0;
    color: #fffbe6;
    /* サブピクセル AA を有効にしてジャギ抑制 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

/* 数字は text-stroke (ラスタライズが粗い) をやめて filter drop-shadow 多方向で滑らかに太字化 */
.top-countdown-banner__num {
    font-size: 42px;
    line-height: 1;
    filter:
        drop-shadow(.35px 0 0 #fffbe6) drop-shadow(-.35px 0 0 #fffbe6)
        drop-shadow(0 .35px 0 #fffbe6) drop-shadow(0 -.35px 0 #fffbe6)
        drop-shadow(1px 1px 0 rgba(0, 0, 0, .5))
        drop-shadow(0 3px 6px rgba(0, 0, 0, .65));
}

.top-countdown-banner__unit {
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    color: var(--tcb-gold);
    margin: 0 .3em 0 .1em;
    letter-spacing: .04em;
    text-shadow: 0 1px 2px #000;
}

.top-countdown-banner__colon {
    font-family: "Antonio", "Zen Kaku Gothic New", sans-serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    padding-bottom: 4px;
    margin: 0 1px;
    color: var(--tcb-gold);
    text-shadow: 0 0 8px rgba(227, 181, 82, .55);
    animation: tcb-blink 1s steps(1, end) infinite;
}

/* --- 開催 1 時間を切ったら水色 + 常時キラキラ (brightness pulse)。
       秒 (--sec) だけは tcb-tick の scale パルスも同時に走る --- */
.top-countdown-banner--urgent .top-countdown-banner__num,
.top-countdown-banner--urgent .top-countdown-banner__unit,
.top-countdown-banner--urgent .top-countdown-banner__colon {
    color: #67e8f9;
    text-shadow: none;
    animation: tcb-kirakira 1.4s ease-in-out infinite;
}
.top-countdown-banner--urgent .top-countdown-banner__num--sec {
    animation:
        tcb-tick 1s ease-out infinite,
        tcb-kirakira 1.4s ease-in-out infinite;
}
@keyframes tcb-kirakira {
    0%, 100% { filter: brightness(1)   saturate(1); }
    50%      { filter: brightness(1.6) saturate(1.15); }
}

@keyframes tcb-blink {
    50% { opacity: .35; }
}

.top-countdown-banner__num--sec {
    display: inline-block;
    animation: tcb-tick 1s ease-out infinite;
}

@keyframes tcb-tick {
    0%   { transform: scale(1.08); }
    30%  { transform: scale(1); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .top-countdown-banner__colon,
    .top-countdown-banner__num--sec {
        animation: none;
    }
}
