/* VOID 遊樂場 · Mini-Games Hub */

.playground-view {
    max-width: 1100px;
    margin: 0 auto;
}

.playground-hero {
    text-align: center;
    margin-bottom: 1.25rem;
}

.playground-hero h2 {
    margin: 0 0 0.35rem;
    font-family: Orbitron, 'Noto Sans TC', sans-serif;
    font-size: clamp(1.4rem, 3.2vw, 1.9rem);
    letter-spacing: 0.1em;
    background: linear-gradient(105deg, #5eead4 0%, #c084fc 45%, #ffd56a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.playground-hero__sub {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(200, 220, 255, 0.78);
    letter-spacing: 0.06em;
}

.playground-hub {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 auto 1.25rem;
    width: 100%;
    max-width: 960px;
}

/* 遊樂場 · 遊戲說明 */
.playground-guide {
    max-width: 960px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(94, 234, 212, 0.22);
    background: linear-gradient(165deg, rgba(8, 14, 32, 0.92), rgba(4, 6, 18, 0.96));
    box-shadow: 0 0 36px rgba(0, 0, 0, 0.35);
}

.playground-guide__head {
    text-align: center;
    margin-bottom: 1rem;
}

.playground-guide__head h3 {
    margin: 0 0 0.4rem;
    font-family: Orbitron, 'Noto Sans TC', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    letter-spacing: 0.1em;
    color: #a5f3fc;
}

.playground-guide__sub {
    margin: 0;
    font-size: clamp(0.88rem, 1.8vw, 0.98rem);
    color: rgba(186, 230, 253, 0.82);
}

.playground-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.playground-guide-card {
    padding: 1rem 0.85rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    text-align: center;
}

.playground-guide-card__icon {
    font-size: 1.75rem;
    line-height: 1;
    display: block;
    margin: 0 auto 0.45rem;
}

.playground-guide-card h4 {
    margin: 0 0 0.5rem;
    font-size: clamp(0.92rem, 1.6vw, 1.02rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.4;
}

.playground-guide-card__play {
    margin: 0 0 0.6rem;
    font-size: clamp(0.8rem, 1.4vw, 0.88rem);
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.95);
}

.playground-guide-card__rewards {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: clamp(0.76rem, 1.3vw, 0.84rem);
    line-height: 1.6;
    color: rgba(203, 213, 225, 0.92);
    text-align: center;
}

.playground-guide-card__rewards li {
    margin-bottom: 0.25rem;
    padding-left: 0;
}

.playground-guide-card__rewards li::before {
    content: '◆ ';
    font-size: 0.55em;
    color: rgba(148, 163, 184, 0.75);
    vertical-align: middle;
}

.playground-guide-card--mines {
    border-color: rgba(248, 113, 113, 0.35);
    background: linear-gradient(160deg, rgba(40, 10, 16, 0.5), rgba(8, 6, 16, 0.7));
}

.playground-guide-card--scratch {
    border-color: rgba(192, 132, 252, 0.35);
    background: linear-gradient(160deg, rgba(40, 12, 60, 0.45), rgba(8, 6, 16, 0.7));
}

.playground-guide-card--runner {
    border-color: rgba(56, 189, 248, 0.35);
    background: linear-gradient(160deg, rgba(8, 30, 60, 0.5), rgba(8, 6, 16, 0.7));
}

.playground-guide-card--quiz {
    border-color: rgba(45, 212, 191, 0.35);
    background: linear-gradient(160deg, rgba(8, 40, 36, 0.45), rgba(8, 6, 16, 0.7));
}

.playground-guide-card--match {
    border-color: rgba(129, 140, 248, 0.35);
    background: linear-gradient(160deg, rgba(20, 16, 50, 0.5), rgba(8, 6, 16, 0.7));
}

.playground-guide-card--wheel {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(160deg, rgba(50, 30, 8, 0.45), rgba(8, 6, 16, 0.7));
}

.playground-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    max-width: none;
    min-height: 168px;
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 255, 0.28);
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(0, 255, 255, 0.12), transparent 55%),
        linear-gradient(165deg, rgba(8, 12, 28, 0.95), rgba(4, 2, 14, 0.98));
    color: #eef4ff;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
    overflow: hidden;
    box-sizing: border-box;
}

.playground-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.06) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.playground-card:hover:not(:disabled)::before {
    transform: translateX(120%);
}

.playground-card:hover:not(:disabled) {
    transform: translateY(-4px);
    border-color: rgba(192, 132, 252, 0.55);
    box-shadow: 0 12px 40px rgba(127, 0, 255, 0.28);
}

.playground-card:disabled,
.playground-card--soon {
    cursor: not-allowed;
    opacity: 0.72;
}

.playground-card__icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.35));
}

.playground-card__title {
    display: block;
    width: 100%;
    font-family: Orbitron, 'Noto Sans TC', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
}

.playground-card__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(210, 225, 255, 0.82);
    flex: 1;
    width: 100%;
}

/* 遊樂場 · 統一「立即遊玩」霓虹按鈕（對齊命運神諭 · 虛空刮刮樂） */
.playground-card__tag,
.scratch-buy-btn,
.mines-action-btn--bet,
.wheel-spin-btn,
.wheel-prize-reveal__btn,
.runner-result__btn,
.playground-diff-btn {
    --void-play-btn-text: #fff;
    --void-play-btn-border: rgba(255, 210, 230, 0.85);
    --void-play-btn-bg: linear-gradient(135deg, #7c3aed 0%, #db2777 52%, #c026d3 100%);
    --void-play-btn-shadow:
        0 0 12px rgba(219, 39, 119, 0.55),
        0 0 24px rgba(168, 85, 247, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    --void-play-btn-shadow-hover:
        0 0 18px rgba(219, 39, 119, 0.72),
        0 0 36px rgba(168, 85, 247, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: var(--void-play-btn-text);
    border: 1px solid var(--void-play-btn-border);
    background: var(--void-play-btn-bg);
    box-shadow: var(--void-play-btn-shadow);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.playground-card__tag {
    margin-top: auto;
    align-self: center;
    padding: 0.42rem 1.15rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.playground-card:hover:not(:disabled) .playground-card__tag {
    box-shadow: var(--void-play-btn-shadow-hover);
}

.playground-card--quiz {
    border-color: rgba(192, 132, 252, 0.45);
}

.playground-card--match {
    border-color: rgba(94, 234, 212, 0.45);
}

.playground-card--soon .playground-card__tag {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: none;
    text-shadow: none;
}

.playground-quiz-panel {
    border-radius: 20px;
    border: 1px solid rgba(168, 120, 255, 0.35);
    background: linear-gradient(165deg, rgba(10, 6, 26, 0.96), rgba(4, 2, 14, 0.98));
    padding: 1.25rem 1.1rem 1.5rem;
    box-shadow: 0 0 48px rgba(127, 0, 255, 0.15);
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.playground-quiz-panel__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.playground-quiz-panel__head h3 {
    margin: 0;
    font-family: Orbitron, 'Noto Sans TC', sans-serif;
    font-size: 1.15rem;
    color: #ffe8cf;
    letter-spacing: 0.08em;
}

.playground-back-btn {
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #e8e8ff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.playground-diff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

@media (min-width: 560px) {
    .playground-diff-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.playground-diff-btn {
    min-height: 52px;
    padding: 0.65rem 0.5rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
}

.playground-diff-btn small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 230, 245, 0.88);
}

.playground-diff-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--void-play-btn-shadow-hover);
}

.playground-diff-btn--novice,
.playground-diff-btn--easy,
.playground-diff-btn--normal,
.playground-diff-btn--hard {
    border-color: var(--void-play-btn-border);
}

.playground-quiz-hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(200, 215, 255, 0.75);
    text-align: center;
}

/* Quiz modal */
.quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(2, 0, 10, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quiz-modal.hidden {
    display: none !important;
}

body.quiz-modal-open {
    overflow: hidden;
}

.quiz-modal__panel {
    width: min(520px, 100%);
    max-height: min(92dvh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: linear-gradient(165deg, rgba(12, 8, 28, 0.98), rgba(6, 4, 16, 0.99));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(127, 0, 255, 0.2);
    overflow: hidden;
}

.quiz-modal__head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.85rem 2.75rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.quiz-modal__head h4 {
    margin: 0;
    width: 100%;
    font-size: 1rem;
    color: #7df9ff;
    letter-spacing: 0.06em;
    text-align: center;
}

.quiz-modal__progress {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 215, 0, 0.9);
    text-align: center;
}

.quiz-modal__close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.quiz-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1rem 0.5rem;
    text-align: center;
}

#quiz-question-wrap {
    text-align: center;
}

.quiz-modal__question {
    margin: 0 auto 1rem;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 700;
    color: #f4f0ff;
    text-align: center;
}

.quiz-modal__options {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.quiz-option-btn {
    text-align: center;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.45);
    color: #eef4ff;
    font-size: 0.9rem;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.quiz-option-btn:hover:not(:disabled) {
    border-color: rgba(192, 132, 252, 0.55);
    background: rgba(40, 20, 70, 0.5);
}

.quiz-option-btn.is-selected {
    border-color: rgba(255, 215, 0, 0.65);
    background: rgba(60, 40, 10, 0.45);
}

.quiz-option-btn.is-correct {
    border-color: rgba(94, 234, 212, 0.7);
    background: rgba(10, 60, 50, 0.5);
}

.quiz-option-btn.is-wrong {
    border-color: rgba(248, 113, 113, 0.65);
    background: rgba(60, 15, 15, 0.45);
}

.quiz-option-btn:disabled {
    cursor: default;
    opacity: 0.95;
}

.quiz-modal__foot {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-modal__next {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.45), rgba(255, 120, 0, 0.35));
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
}

.quiz-modal__next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.quiz-result {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.quiz-result__score {
    font-family: Orbitron, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #ffd56a;
    margin: 0 0 0.35rem;
}

.quiz-result__meta {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: rgba(210, 225, 255, 0.85);
}

.quiz-result__rewards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.quiz-result__reward {
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: rgba(0, 0, 0, 0.4);
    font-weight: 800;
}

.quiz-result__reward--coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.wheel-prize-reveal__main--coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.wheel-prize-reveal__main--coin .void-coin-icon--lg {
    flex-shrink: 0;
}

/* 卡牌連連看 modal */
.match-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(2, 0, 10, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.match-modal.hidden {
    display: none !important;
}

body.match-modal-open {
    overflow: hidden;
}

.match-modal__panel {
    width: min(96vw, 720px);
    max-height: min(94dvh, 900px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid rgba(94, 234, 212, 0.35);
    background: linear-gradient(165deg, rgba(8, 14, 28, 0.98), rgba(4, 8, 18, 0.99));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(94, 234, 212, 0.15);
    overflow: hidden;
}

.match-modal__head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 2.75rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.match-modal__head h4 {
    margin: 0;
    font-size: 1rem;
    color: #5eead4;
    letter-spacing: 0.06em;
}

.match-modal__meta {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 215, 0, 0.9);
}

.match-timer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem 0.35rem;
}

.match-timer__track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(94, 234, 212, 0.25);
    overflow: hidden;
}

.match-timer__bar {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6, #a78bfa, #fbbf24);
    transition: width 0.2s linear;
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.45);
}

.match-timer__label {
    flex-shrink: 0;
    min-width: 3.2rem;
    font-family: Orbitron, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffd56a;
    text-align: right;
}

.match-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.65rem 0.75rem 1rem;
}

.match-board {
    display: grid;
    grid-template-columns: repeat(var(--match-cols, 4), minmax(0, 1fr));
    gap: clamp(4px, 1.2vw, 8px);
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
}

.match-board.is-locked {
    pointer-events: none;
}

.match-card {
    aspect-ratio: 2 / 3;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    perspective: 900px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.match-card:disabled,
.match-card.is-matched {
    cursor: default;
}

.match-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 8px;
}

.match-card.is-flipped .match-card__inner,
.match-card.is-matched .match-card__inner {
    transform: rotateY(180deg);
}

.match-card__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.match-card__face--back {
    background: var(--void-card-back-url, linear-gradient(135deg, #1a1030, #0a0814));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 255, 255, 0.28);
}

.match-card__face--front {
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 215, 0, 0.35);
}

.match-card__face--front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.match-card.is-matched .match-card__face--front {
    border-color: rgba(94, 234, 212, 0.75);
    box-shadow:
        0 0 20px rgba(94, 234, 212, 0.55),
        0 0 40px rgba(167, 139, 250, 0.35);
    animation: match-card-pop 0.45s ease;
}

@keyframes match-card-pop {
    0% {
        transform: rotateY(180deg) scale(1);
    }
    40% {
        transform: rotateY(180deg) scale(1.06);
    }
    100% {
        transform: rotateY(180deg) scale(1);
    }
}

.match-card:not(.is-flipped):not(.is-matched):hover .match-card__inner {
    filter: brightness(1.08);
}

@media (max-width: 900px) {
    .playground-hub,
    .playground-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .playground-hub {
        max-width: 640px;
    }

    .playground-guide {
        max-width: 640px;
    }
}

@media (max-width: 520px) {
    .playground-hub,
    .playground-guide-grid {
        grid-template-columns: 1fr;
    }

    .playground-hub {
        max-width: 320px;
    }

    .playground-guide {
        max-width: 320px;
    }
}

@media (max-width: 720px) {
    .quiz-modal__panel {
        width: 100%;
        max-height: min(94dvh, 100%);
    }

    .quiz-modal__head {
        padding: 0.75rem 2.5rem 0.65rem;
    }

    .quiz-result__score {
        font-size: 1.65rem;
    }

    .quiz-result__rewards {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .playground-diff-grid {
        grid-template-columns: 1fr;
    }

    .playground-view {
        text-align: center;
    }

    .playground-card {
        align-items: center;
        text-align: center;
    }

    .match-modal__panel {
        width: 100%;
    }
}

/* 幸運大轉盤 · 豪華熱血版 */
.playground-card--wheel {
    border-color: rgba(255, 180, 0, 0.55);
    box-shadow: 0 0 32px rgba(255, 120, 0, 0.2);
}

.wheel-modal {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 80, 0, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 80%, rgba(127, 0, 255, 0.15), transparent 55%),
        rgba(2, 0, 10, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.wheel-modal.hidden {
    display: none !important;
}

body.wheel-modal-open {
    overflow: hidden;
}

.wheel-modal__panel {
    position: relative;
    width: min(460px, 100%);
    max-width: 100%;
    max-height: min(94dvh, 860px);
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    border-radius: 24px;
    border: 2px solid transparent;
    background:
        linear-gradient(165deg, rgba(22, 10, 42, 0.98), rgba(8, 4, 18, 0.99)) padding-box,
        linear-gradient(135deg, #ffd700, #ff6b35, #ff0055, #c084fc, #ffd700) border-box;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 32px 100px rgba(0, 0, 0, 0.75),
        0 0 80px rgba(255, 140, 0, 0.22),
        0 0 120px rgba(255, 0, 80, 0.12);
    padding: 0 0 1rem;
}

.wheel-modal__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255, 200, 80, 0.18), transparent 55%);
    pointer-events: none;
}

.wheel-modal__head {
    position: relative;
    text-align: center;
    padding: 1rem 2.75rem 0.65rem;
    border-bottom: 1px solid rgba(255, 200, 80, 0.2);
}

.wheel-modal__head h4 {
    margin: 0;
    font-family: Orbitron, 'Noto Sans TC', sans-serif;
    font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    font-weight: 900;
    letter-spacing: 0.14em;
    background: linear-gradient(105deg, #fff9e6 0%, #ffd700 35%, #ff8c00 65%, #ff3366 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(255, 180, 0, 0.55));
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.wheel-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0.75rem 0.75rem 0.35rem;
    box-sizing: border-box;
}

.wheel-stage__bg {
    position: absolute;
    width: min(100%, 400px);
    height: min(100%, 400px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 120, 0, 0.08),
        rgba(255, 0, 100, 0.1),
        rgba(127, 0, 255, 0.1),
        rgba(255, 200, 0, 0.08),
        rgba(255, 120, 0, 0.08)
    );
    animation: wheel-bg-spin 18s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes wheel-bg-spin {
    to {
        transform: translate(-50%, -52%) rotate(360deg);
    }
}

.wheel-stage.is-spinning .wheel-stage__bg {
    animation-duration: 4s;
}

.wheel-stage.is-spinning .wheel-aura {
    animation-duration: 1.2s;
    opacity: 1;
}

.wheel-pointer {
    position: absolute;
    top: 0.15rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    width: 36px;
    height: 44px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(255, 200, 0, 0.9));
}

.wheel-pointer__blade {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #fff8dc 0%, #ffd700 35%, #ff6b00 100%);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    border-radius: 2px 2px 0 0;
    box-shadow: inset 0 -4px 8px rgba(180, 60, 0, 0.5);
}

.wheel-disc-wrap {
    position: relative;
    z-index: 2;
    max-width: 100%;
    overflow: hidden;
    padding: 1.5rem 0.5rem 0.85rem;
    box-sizing: border-box;
}

.wheel-aura {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 200, 0, 0.5),
        rgba(255, 0, 80, 0.35),
        rgba(127, 0, 255, 0.4),
        rgba(255, 200, 0, 0.5)
    );
    opacity: 0.65;
    animation: wheel-aura-pulse 3s ease-in-out infinite;
    filter: blur(10px);
    pointer-events: none;
}

@keyframes wheel-aura-pulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

.wheel-frame-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px dashed rgba(255, 220, 100, 0.35);
    animation: wheel-frame-spin 24s linear infinite reverse;
    pointer-events: none;
    box-shadow:
        0 0 24px rgba(255, 180, 0, 0.25),
        inset 0 0 20px rgba(255, 100, 0, 0.08);
}

@keyframes wheel-frame-spin {
    to {
        transform: rotate(360deg);
    }
}

.wheel-disc {
    position: relative;
    border-radius: 50%;
    transform: rotate(0deg);
    will-change: transform;
    box-shadow:
        0 0 0 3px rgba(255, 230, 150, 0.5),
        0 0 0 8px rgba(255, 120, 0, 0.25),
        0 0 50px rgba(255, 80, 0, 0.45),
        0 0 80px rgba(127, 0, 255, 0.35),
        0 16px 48px rgba(0, 0, 0, 0.65);
}

#wheel-canvas {
    display: block;
    border-radius: 50%;
}

.wheel-spin-btn {
    position: relative;
    z-index: 3;
    margin-top: 0.25rem;
    min-width: 200px;
    min-height: 56px;
    padding: 0.7rem 2.25rem;
    border-radius: 999px;
    border-width: 2px;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s, opacity 0.2s;
    animation: wheel-spin-btn-glow 2s ease-in-out infinite;
}

.wheel-spin-btn__text {
    font-family: Orbitron, 'Noto Sans TC', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.45),
        0 0 16px rgba(255, 255, 255, 0.6);
}

@keyframes wheel-spin-btn-glow {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.12);
    }
}

.wheel-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--void-play-btn-shadow-hover);
}

.wheel-spin-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.wheel-spin-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    animation: none;
}

.wheel-daily-hint {
    margin: 0;
    padding: 0.35rem 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffe8a8;
    line-height: 1.55;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.04em;
}

.wheel-odds-list {
    list-style: none;
    margin: 0.55rem 1rem 0;
    padding: 0.75rem 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 200, 80, 0.25);
    background: linear-gradient(165deg, rgba(0, 0, 0, 0.55), rgba(30, 10, 50, 0.45));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.4rem 0.5rem;
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
    overflow: hidden;
    font-size: clamp(0.62rem, 2.8vw, 0.75rem);
    font-weight: 700;
    color: rgba(240, 245, 255, 0.92);
    letter-spacing: 0;
}

.wheel-odds-list li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wheel-odds-list li span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c, #888);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--c, #888);
}

/* 獲獎彈窗 */
.wheel-prize-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wheel-prize-modal.hidden {
    display: none !important;
}

.wheel-prize-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.wheel-prize-modal__card {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 1.75rem 1.25rem 1.35rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.55);
    background: linear-gradient(165deg, rgba(20, 10, 40, 0.98), rgba(8, 4, 20, 0.99));
    text-align: center;
    box-shadow: 0 0 80px rgba(255, 180, 0, 0.35);
    animation: wheel-prize-pop 0.55s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.wheel-prize-modal.is-active .wheel-prize-modal__card {
    animation: wheel-prize-pop 0.55s cubic-bezier(0.2, 1.2, 0.3, 1);
}

@keyframes wheel-prize-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.wheel-prize-modal__rays {
    position: absolute;
    inset: -40%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 215, 0, 0.08),
        transparent,
        rgba(192, 132, 252, 0.1),
        transparent
    );
    animation: wheel-rays-spin 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes wheel-rays-spin {
    to {
        transform: rotate(360deg);
    }
}

.wheel-prize-reveal__title {
    position: relative;
    z-index: 2;
    margin: 0 0 0.75rem;
    font-family: Orbitron, 'Noto Sans TC', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.45rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.wheel-prize-reveal__title-icon {
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255, 180, 0, 0.5));
}

.wheel-prize-reveal__title-text {
    background: linear-gradient(105deg, #fff9e6, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 180, 0, 0.5));
}

.wheel-prize-reveal__body {
    margin-bottom: 0.5rem;
}

.wheel-prize-reveal__main {
    display: block;
    font-size: clamp(1.25rem, 4.5vw, 1.55rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.04em;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.5),
        0 0 24px rgba(255, 215, 0, 0.55);
}

.wheel-prize-reveal__main.rarity-ur {
    color: #f472b6;
    text-shadow: 0 0 24px rgba(244, 114, 182, 0.6);
}

.wheel-prize-reveal__main.rarity-ssr {
    color: #c4b5fd;
    text-shadow: 0 0 24px rgba(167, 139, 250, 0.55);
}

.wheel-prize-reveal__sub {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: rgba(200, 215, 255, 0.8);
}

.wheel-prize-reveal__btn {
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.wheel-prize-reveal__btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--void-play-btn-shadow-hover);
}

.wheel-prize-modal__x {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
}

/* 虛空奪寶 · 炸彈礦場 */
.playground-card--mines {
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 0 28px rgba(255, 60, 0, 0.15);
}

.playground-mines-panel {
    border-radius: 20px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: linear-gradient(165deg, rgba(18, 6, 12, 0.97), rgba(6, 4, 14, 0.99));
    padding: 1.1rem 1rem 1.25rem;
    max-width: 920px;
    margin-inline: auto;
    overflow-x: hidden;
    box-shadow: 0 0 48px rgba(255, 60, 0, 0.12);
}

.mines-layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.mines-console {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 120, 80, 0.3);
    background: linear-gradient(165deg, rgba(40, 10, 20, 0.65), rgba(10, 6, 18, 0.85));
}

.mines-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 220, 200, 0.9);
}

.mines-field input[type='number'] {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 150, 100, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    box-sizing: border-box;
}

.mines-field input[type='range'] {
    width: 100%;
    accent-color: #ff6b35;
}

.mines-field input:disabled {
    opacity: 0.5;
}

.mines-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.mines-stat strong {
    font-family: Orbitron, sans-serif;
    font-size: 1.05rem;
    color: #7df9ff;
}

.mines-stat--cashout strong {
    color: #ffd56a;
    font-size: 1.15rem;
}

.mines-action-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s, opacity 0.2s;
}

.mines-action-btn--bet {
    border-radius: 999px;
}

.mines-action-btn--cashout {
    border-color: rgba(255, 215, 0, 0.7);
    background: linear-gradient(135deg, #ca8a04, #ffd700, #ff8c00);
    color: #1a0a00;
    box-shadow: 0 0 28px rgba(255, 200, 0, 0.45);
    animation: mines-cashout-pulse 1.8s ease-in-out infinite;
}

@keyframes mines-cashout-pulse {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.mines-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.mines-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    animation: none;
}

.mines-console-hint {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(200, 210, 255, 0.72);
}

.mines-board-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.mines-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(6px, 1.5vw, 10px);
    width: min(100%, 400px);
    aspect-ratio: 1;
}

.mines-cell {
    aspect-ratio: 1;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(50, 30, 60, 0.9), rgba(15, 8, 25, 0.95));
    border: 2px solid rgba(120, 80, 160, 0.45);
    color: rgba(200, 180, 255, 0.85);
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s, background 0.2s;
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.06);
}

.mines-cell:hover:not(:disabled) {
    transform: scale(1.04);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.25);
}

.mines-cell--gem.is-revealed {
    background: linear-gradient(145deg, #065f46, #10b981);
    border-color: rgba(110, 255, 200, 0.7);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.55);
    animation: mines-gem-pop 0.35s ease;
}

.mines-cell--bomb.is-revealed {
    background: linear-gradient(145deg, #7f1d1d, #ef4444);
    border-color: rgba(255, 120, 120, 0.8);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.65);
    animation: mines-bomb-boom 0.45s ease;
}

.mines-cell.is-ghost {
    opacity: 0.45;
    cursor: default;
}

.mines-cell.is-ghost.mines-cell--gem {
    background: linear-gradient(145deg, #064e3b, #059669);
}

.mines-cell.is-ghost.mines-cell--bomb {
    background: linear-gradient(145deg, #450a0a, #b91c1c);
}

@keyframes mines-gem-pop {
    0% {
        transform: scale(0.7);
    }
    70% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes mines-bomb-boom {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

#mines-panel-root.is-busted {
    animation: mines-board-shake 0.5s ease;
}

@keyframes mines-board-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-8px);
    }
    40% {
        transform: translateX(8px);
    }
    60% {
        transform: translateX(-6px);
    }
    80% {
        transform: translateX(6px);
    }
}

@media (max-width: 720px) {
    .mines-layout {
        grid-template-columns: 1fr;
    }

    .mines-console {
        order: 2;
    }

    .mines-board-wrap {
        order: 1;
    }
}

/* 命運神諭 · 虛空刮刮樂 */
.playground-card--scratch {
    border-color: rgba(192, 132, 252, 0.55);
    box-shadow:
        0 0 32px rgba(168, 85, 247, 0.22),
        inset 0 0 24px rgba(255, 200, 100, 0.06);
    background: linear-gradient(145deg, rgba(40, 12, 60, 0.85), rgba(12, 8, 28, 0.95));
}

.playground-scratch-panel {
    border-radius: 20px;
    border: 1px solid rgba(192, 132, 252, 0.4);
    background: linear-gradient(165deg, rgba(22, 8, 36, 0.98), rgba(8, 6, 20, 0.99));
    padding: 1.1rem 1rem 1.25rem;
    max-width: 920px;
    margin-inline: auto;
    overflow-x: hidden;
    box-shadow:
        0 0 56px rgba(168, 85, 247, 0.18),
        0 0 80px rgba(251, 146, 60, 0.08);
}

.scratch-layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.scratch-layout.is-win {
    animation: scratch-win-pulse 0.75s ease;
}

@keyframes scratch-win-pulse {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.25);
    }
}

.scratch-console {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(192, 132, 252, 0.35);
    background: linear-gradient(165deg, rgba(50, 16, 72, 0.7), rgba(14, 8, 28, 0.9));
    box-shadow: inset 0 0 20px rgba(251, 191, 36, 0.06);
}

.scratch-console__title {
    margin: 0;
    font-family: Orbitron, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #fde68a, #f472b6, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.scratch-daily-hint {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(233, 213, 255, 0.85);
}

.scratch-status {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 220, 255, 0.88);
}

.scratch-buy-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}

.scratch-buy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--void-play-btn-shadow-hover);
}

.scratch-buy-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.scratch-odds {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.72rem;
    line-height: 1.55;
    color: rgba(216, 180, 254, 0.75);
}

.scratch-board-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

.scratch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 10px;
    width: min(100%, 380px);
    padding: 14px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.12), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.15), transparent 55%),
        linear-gradient(160deg, rgba(30, 10, 50, 0.95), rgba(8, 6, 18, 0.98));
    border: 1px solid rgba(192, 132, 252, 0.45);
    box-shadow:
        0 0 40px rgba(168, 85, 247, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.scratch-cell {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(20, 12, 36, 0.9), rgba(8, 6, 16, 0.95));
    box-shadow: inset 0 0 16px rgba(251, 191, 36, 0.08);
}

.scratch-cell__prize {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.scratch-icon {
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 0 0 12px currentColor;
}

.scratch-icon--ur {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px #f59e0b);
}

.scratch-icon--ssr {
    color: #f472b6;
    filter: drop-shadow(0 0 8px #ec4899);
}

.scratch-icon--sr {
    color: #a78bfa;
}

.scratch-icon--gold {
    color: #fcd34d;
}

.scratch-icon--silver {
    color: #e2e8f0;
}

.scratch-fog {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: crosshair;
    touch-action: none;
    transition: opacity 0.35s ease;
}

.scratch-fog.is-cleared {
    pointer-events: none;
}

.scratch-prize-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.scratch-prize-modal.hidden {
    display: none !important;
}

.scratch-prize-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
}

.scratch-prize-modal__card {
    position: relative;
    z-index: 1;
    width: min(380px, 100%);
    padding: 1.75rem 1.25rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: linear-gradient(165deg, rgba(40, 12, 60, 0.98), rgba(12, 6, 24, 0.99));
    text-align: center;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.35);
}

.scratch-prize-modal.is-active .scratch-prize-modal__card {
    animation: scratch-prize-pop 0.55s cubic-bezier(0.2, 1.2, 0.3, 1);
}

@keyframes scratch-prize-pop {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.scratch-prize-modal__orbs {
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(251, 191, 36, 0.15),
        transparent,
        rgba(192, 132, 252, 0.2),
        transparent
    );
    animation: scratch-orbs-spin 8s linear infinite;
    pointer-events: none;
}

@keyframes scratch-orbs-spin {
    to {
        transform: rotate(360deg);
    }
}

.scratch-prize-reveal__title {
    position: relative;
    z-index: 2;
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.scratch-prize-reveal__title-icon {
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.45));
}

.scratch-prize-reveal__title-text {
    background: linear-gradient(90deg, #fde68a, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.scratch-prize-reveal__main {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.scratch-prize__card {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid currentColor;
}

.scratch-prize-reveal__sub {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: rgba(233, 213, 255, 0.8);
}

.scratch-prize-reveal__btn {
    width: 100%;
    padding: 0.7rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #7c3aed, #db2777);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.scratch-prize-modal__x {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 720px) {
    .scratch-layout {
        grid-template-columns: 1fr;
    }

    .scratch-console {
        order: 2;
    }

    .scratch-board-wrap {
        order: 1;
    }
}

/* 虛空跑者 · 彈跳節奏 */
.playground-card--runner {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow:
        0 0 32px rgba(14, 165, 233, 0.22),
        inset 0 0 20px rgba(251, 146, 60, 0.08);
    background: linear-gradient(145deg, rgba(8, 24, 48, 0.9), rgba(12, 8, 28, 0.95));
}

.playground-runner-panel {
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(165deg, rgba(6, 16, 36, 0.98), rgba(8, 6, 20, 0.99));
    padding: 1.1rem 1rem 1.25rem;
    max-width: 960px;
    margin-inline: auto;
    overflow-x: hidden;
    box-shadow: 0 0 48px rgba(14, 165, 233, 0.15);
}

.runner-layout {
    display: grid;
    grid-template-columns: minmax(200px, 240px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.runner-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.runner-sidebar__title {
    margin: 0;
    font-family: Orbitron, sans-serif;
    font-weight: 800;
    font-size: 1rem;
    background: linear-gradient(90deg, #7dd3fc, #f472b6, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.runner-daily-hint {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(186, 230, 253, 0.85);
}

.runner-diff-grid {
    grid-template-columns: 1fr 1fr;
}

.runner-sidebar__hint {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.9);
    line-height: 1.45;
}

.runner-stage-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.runner-stage {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow:
        0 0 40px rgba(14, 165, 233, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    background: #050510;
}

.runner-stage.is-idle::after {
    content: none;
}

.runner-idle-tip {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(186, 230, 253, 0.75);
    pointer-events: none;
    z-index: 2;
}

.runner-stage:not(.is-idle) .runner-idle-tip {
    display: none;
}

#runner-canvas {
    display: block;
    touch-action: none;
    cursor: grab;
}

#runner-canvas:active {
    cursor: grabbing;
}

.runner-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.65rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent);
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    z-index: 3;
    pointer-events: none;
}

.runner-hud__hearts {
    color: #f87171;
    letter-spacing: 2px;
}

.runner-hud__timer {
    font-family: Orbitron, sans-serif;
    color: #7dd3fc;
}

.runner-hud__score {
    color: #fde68a;
}

.runner-result {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.runner-result.hidden {
    display: none !important;
}

.runner-result__card {
    position: relative;
    width: min(300px, 100%);
    padding: 1.25rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: linear-gradient(165deg, rgba(12, 30, 60, 0.98), rgba(8, 8, 20, 0.99));
    text-align: center;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.15);
}

.runner-result__card h4 {
    margin: 0 0 0.75rem;
    color: #fde68a;
}

.runner-result__rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.65rem;
}

.runner-result__card {
    font-size: 0.88rem;
    color: rgba(226, 232, 240, 0.95);
}

.runner-result__sub {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.8rem;
    color: rgba(186, 230, 253, 0.85);
}

.runner-result__ssr {
    margin: 0.5rem 0 0;
    color: #fecaca;
    font-weight: 800;
}

.runner-result__btn {
    width: 100%;
    padding: 0.65rem;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.runner-result__btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--void-play-btn-shadow-hover);
}

.runner-result__x {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 720px) {
    .runner-layout {
        grid-template-columns: 1fr;
    }

    .runner-sidebar {
        order: 2;
    }

    .runner-stage-wrap {
        order: 1;
    }
}
