@font-face {
    font-family: 'DungGeunMo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/DungGeunMo.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-dark: #090a14;
    --panel-bg: #121528;
    --panel-border: #00f5d4;
    --neon-cyan: #00f5d4;
    --neon-pink: #ff2a85;
    --neon-yellow: #fee440;
    --neon-green: #00f57a;
    --neon-red: #ff3355;
    --text-light: #f8fafc;
    --btn-scale: 1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'DungGeunMo', 'Press Start 2P', 'Pretendard', monospace, sans-serif;
    background: radial-gradient(circle at 50% 35%, #1a1b3a 0%, #090a14 75%);
    color: var(--text-light);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 레트로 CRT 스캔라인 오버레이 */
.crt-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    background:
        linear-gradient(
            rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.28) 50%
        ),
        radial-gradient(
            circle at center,
            transparent 65%,
            rgba(0, 0, 0, 0.55) 100%
        );
    background-size: 100% 5px, 100% 100%;
}

.hidden {
    display: none !important;
}

/* 1. 첫 화면: 레트로 아케이드 캐비닛 (기본 175% 확대 스케일) */
.title-screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.arcade-cabinet-frame {
    width: 100%;
    max-width: 1120px;
    background: linear-gradient(180deg, #161932 0%, #0d0f21 100%);
    border: 6px solid var(--neon-cyan);
    border-radius: 28px;
    padding: 42px 52px 60px;
    box-shadow:
        0 0 42px rgba(0, 245, 212, 0.28),
        inset 0 0 36px rgba(255, 42, 133, 0.16),
        0 14px 0 #05060c;
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.arcade-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: clamp(14px, 1.8vw, 21px);
    padding-bottom: 20px;
    border-bottom: 3px dashed rgba(0, 245, 212, 0.35);
}

.top-bar-btn {
    font-family: 'DungGeunMo', monospace;
    font-size: clamp(15px, 1.8vw, 22px);
    background: #1e2342;
    color: var(--neon-cyan);
    border: 3px solid var(--neon-cyan);
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 4px 0 #080a14;
}

.top-bar-btn:hover {
    background: var(--neon-cyan);
    color: #090a14;
}

.credit-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.6);
}

.insert-coin {
    color: var(--neon-yellow);
    text-shadow: 0 0 14px rgba(254, 228, 64, 0.85);
}

.blink {
    animation: arcadeBlink 0.9s steps(2, start) infinite;
}

@keyframes arcadeBlink {
    to { visibility: hidden; }
}

.title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
}

.title-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 22px;
}

.cute-skull-badge {
    position: absolute;
    width: 96px;
    height: 96px;
    top: -30px;
    left: -82px;
    transform: rotate(-14deg);
    animation: skullBob 0.85s ease-in-out infinite alternate;
    filter: drop-shadow(0 6px 0 #000000) drop-shadow(0 0 14px rgba(0, 245, 212, 0.65));
    z-index: 2;
}

@keyframes skullBob {
    0% { transform: rotate(-16deg) translateY(0px) scale(1); }
    100% { transform: rotate(-6deg) translateY(-9px) scale(1.08); }
}

.title-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sub-badge {
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: clamp(12px, 1.4vw, 18px);
    color: var(--neon-pink);
    letter-spacing: 0.14em;
    background: rgba(255, 42, 133, 0.15);
    border: 2.5px solid var(--neon-pink);
    padding: 7px 18px;
    border-radius: 6px;
}

.main-title {
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: clamp(46px, 8vw, 90px);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--neon-yellow);
    text-shadow:
        6px 6px 0px var(--neon-pink),
        12px 12px 0px #000000,
        0 0 32px rgba(254, 228, 64, 0.55);
}

.menu-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
}

/* 아케이드 오락실 버튼 스타일 (175% 크기 + 설정 배율 연동) */
.menu-btn {
    min-width: calc(230px * var(--btn-scale));
    padding: calc(24px * var(--btn-scale)) calc(36px * var(--btn-scale));
    font-family: 'DungGeunMo', sans-serif;
    font-size: calc(clamp(20px, 2.4vw, 31px) * var(--btn-scale));
    border-radius: 16px;
    border: 4px solid #ffffff;
    background: #232946;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 0 #090b16, 0 0 18px rgba(0, 245, 212, 0.22);
    transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.1s ease;
    white-space: nowrap;
}

.menu-btn.primary {
    background: var(--neon-pink);
    border-color: #ffe3f0;
    color: #ffffff;
    box-shadow: 0 10px 0 #900c45, 0 0 26px rgba(255, 42, 133, 0.55);
}

.menu-btn.accent {
    background: #00b4d8;
    border-color: #caf0f8;
    color: #090a14;
    font-weight: 900;
    box-shadow: 0 10px 0 #005f73, 0 0 24px rgba(0, 245, 212, 0.45);
}

.menu-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-3px);
}

.menu-btn:active {
    transform: translateY(6px);
    box-shadow: 0 3px 0 #090b16;
}

.arcade-Prompt {
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: clamp(13px, 1.5vw, 19px);
    color: #94a3b8;
    letter-spacing: 0.08em;
}

/* 2. 인게임 화면 (기본 175% 확대 스케일) */
.game-screen {
    width: 100%;
    height: 100vh;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.game-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: #121528;
    border: 4px solid #2e355b;
    border-radius: 18px;
    padding: 16px 24px;
    box-shadow: 0 6px 0 #070810;
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-btn {
    justify-self: start;
    font-family: 'DungGeunMo', monospace;
    background: #1e2342;
    border: 3px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: clamp(15px, 1.7vw, 22px);
    color: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 5px 0 #080a14;
    white-space: nowrap;
}

.text-btn:hover {
    background: var(--neon-cyan);
    color: #090a14;
}

.text-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #080a14;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hud-center {
    display: flex;
    align-items: center;
    gap: 28px;
}

.score-label {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(11px, 1.2vw, 15px);
    letter-spacing: 0.12em;
    color: var(--neon-pink);
}

.score-value {
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    color: var(--neon-yellow);
    text-shadow: 4px 4px 0 #000000, 0 0 18px rgba(254, 228, 64, 0.65);
    font-variant-numeric: tabular-nums;
}

.score-value.sub {
    font-size: clamp(22px, 2.8vw, 34px);
    color: var(--neon-cyan);
    text-shadow: 3px 3px 0 #000000, 0 0 14px rgba(0, 245, 212, 0.55);
}

.score-value.combo {
    font-size: clamp(22px, 2.8vw, 34px);
    color: var(--neon-green);
    text-shadow: 3px 3px 0 #000000, 0 0 14px rgba(0, 245, 122, 0.55);
}

/* 아케이드 CRT 스테이지 박스 (175% 크기) */
.stage {
    position: relative;
    height: clamp(320px, 48vh, 520px);
    background: linear-gradient(180deg, #0d1021 0%, #151934 65%, #1d1536 100%);
    border: 6px solid var(--neon-cyan);
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 28px;
    overflow: hidden;
    box-shadow:
        0 0 36px rgba(0, 245, 212, 0.25),
        inset 0 0 48px rgba(0, 0, 0, 0.7),
        0 12px 0 #06070f;
}

/* 레트로 신스웨이브 격자 배경 */
.stage-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 245, 212, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 212, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.stage.stage-beat-pulse {
    animation: stageBeatPulse 0.14s ease-out;
}

.stage.stage-hit {
    animation: stageHitBounce 0.16s cubic-bezier(0.2, 0.9, 0.3, 1.3);
    border-color: var(--neon-green);
}

.stage.stage-combo-burst {
    animation: stageComboBurst 0.34s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    border-color: var(--neon-yellow);
    box-shadow: 0 0 45px rgba(254, 228, 64, 0.65);
}

.stage.stage-miss-shake {
    animation: stageMissShake 0.36s ease;
    border-color: var(--neon-red);
    box-shadow: 0 0 42px rgba(255, 51, 85, 0.65);
}

/* 🔥 20콤보 10초 피버 모드 연출 */
.stage.fever-mode {
    border-color: var(--neon-yellow);
    box-shadow:
        0 0 48px rgba(254, 228, 64, 0.75),
        inset 0 0 45px rgba(255, 42, 133, 0.32),
        0 12px 0 #06070f;
}

.fever-banner {
    position: absolute;
    top: 14px;
    left: 22px;
    z-index: 6;
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: clamp(14px, 1.8vw, 20px);
    color: #090a14;
    background: linear-gradient(90deg, var(--neon-yellow), #ff9f1c);
    border: 3px solid #ffffff;
    border-radius: 10px;
    padding: 6px 14px;
    box-shadow: 0 4px 0 #000000, 0 0 18px rgba(254, 228, 64, 0.9);
    animation: feverPulse 0.45s ease-in-out infinite alternate;
}

@keyframes feverPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.ad-countdown-num {
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: 64px;
    color: var(--neon-yellow);
    text-shadow: 5px 5px 0 var(--neon-pink);
    margin: 8px 0;
}

.ad-progress-bar {
    width: 100%;
    height: 18px;
    background: #090b16;
    border: 3px solid var(--neon-cyan);
    border-radius: 999px;
    overflow: hidden;
}

.ad-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    transition: width 0.1s linear;
}

@keyframes stageBeatPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.015); }
    100% { transform: scale(1); }
}

@keyframes stageHitBounce {
    0% { transform: scale(1) translateY(0); }
    40% { transform: scale(1.026) translateY(-6px); }
    100% { transform: scale(1) translateY(0); }
}

@keyframes stageComboBurst {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.055) rotate(-1.5deg); }
    65% { transform: scale(1.035) rotate(1.5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes stageMissShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    15% { transform: translate(-16px, 5px) rotate(-1.8deg); }
    35% { transform: translate(15px, -5px) rotate(1.8deg); }
    55% { transform: translate(-12px, 4px) rotate(-1.2deg); }
    75% { transform: translate(10px, -3px) rotate(1.2deg); }
}

/* 카운트다운 (3 2 1 GO!) */
.countdown {
    position: absolute;
    top: 26px;
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: clamp(44px, 5.5vw, 66px);
    color: var(--neon-yellow);
    text-shadow: 6px 6px 0 var(--neon-pink), 0 0 24px rgba(254, 228, 64, 0.9);
    animation: popIn 0.2s ease-out;
    pointer-events: none;
    z-index: 5;
}

@keyframes popIn {
    0% { transform: scale(1.6); opacity: 0.2; }
    100% { transform: scale(1); opacity: 1; }
}

/* 판정 문구 (LISTEN / YOUR TURN / SUCCESS! / MISS) */
.judge-text {
    position: relative;
    z-index: 2;
    min-height: 48px;
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: clamp(22px, 2.8vw, 32px);
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    color: #cbd5e1;
    text-shadow: 3px 3px 0 #000000;
}

.judge-text.success {
    color: var(--neon-green);
    text-shadow: 3px 3px 0 #000000, 0 0 20px rgba(0, 245, 122, 0.8);
}

.judge-text.miss {
    color: var(--neon-red);
    text-shadow: 3px 3px 0 #000000, 0 0 20px rgba(255, 51, 85, 0.8);
}

.judge-text.listen {
    color: var(--neon-cyan);
    text-shadow: 3px 3px 0 #000000, 0 0 20px rgba(0, 245, 212, 0.8);
}

/* 성공 시 잠시 뜨는 +점수 & 콤보 보너스 */
.float-layer {
    position: absolute;
    top: 28px;
    right: 32px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 6;
}

.float-pop {
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--neon-cyan);
    text-shadow: 3px 3px 0 #000000;
    animation: floatUp 0.65s ease-out forwards;
}

.float-pop.combo-bonus {
    font-size: clamp(24px, 3vw, 34px);
    color: var(--neon-yellow);
    text-shadow: 4px 4px 0 var(--neon-pink);
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(8px) scale(0.9); }
    40% { transform: translateY(-8px) scale(1.1); }
    100% { opacity: 0; transform: translateY(-30px) scale(1); }
}

/* 화살표 묶음 아케이드 블록 카드 (175% 크기 + 설정 배율 연동) */
.arrow-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(20px * var(--btn-scale));
    min-height: calc(145px * var(--btn-scale));
    align-items: center;
}

.arrow-card {
    position: relative;
    width: calc(122px * var(--btn-scale));
    height: calc(136px * var(--btn-scale));
    background: #1e2444;
    border: 5px solid #485696;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(62px * var(--btn-scale));
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 10px 0 #0b0e1d, inset 0 3px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.08s ease, border-color 0.08s ease, background 0.08s ease;
}

.arrow-card .skull {
    position: absolute;
    top: -18px;
    right: -18px;
    font-size: calc(26px * var(--btn-scale));
    width: calc(46px * var(--btn-scale));
    height: calc(46px * var(--btn-scale));
    background: var(--neon-pink);
    border: 3.5px solid #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 0 #000000;
}

.arrow-card.beat-active {
    border-color: var(--neon-cyan);
    background: #004e64;
    color: var(--neon-yellow);
    transform: translateY(-12px) scale(1.1);
    box-shadow: 0 14px 0 #06283d, 0 0 28px rgba(0, 245, 212, 0.85);
}

/* 레트로 미스터리 '?' 박스 연출 */
.arrow-card.blind {
    background: #d97706;
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
    text-shadow: 3px 3px 0 #000000;
    box-shadow: 0 10px 0 #78350f, inset 0 3px 0 rgba(255, 255, 255, 0.35);
}

.arrow-card.blind .skull {
    display: none;
}

.arrow-card.target-current {
    border-color: #ffffff;
    box-shadow: 0 10px 0 #0b0e1d, 0 0 26px rgba(255, 255, 255, 0.75);
    transform: translateY(-4px);
}

.arrow-card.done {
    border-color: var(--neon-green);
    background: #064e3b;
    color: var(--neon-green);
    box-shadow: 0 7px 0 #022c22, 0 0 24px rgba(0, 245, 122, 0.65);
    animation: cardHitPop 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.arrow-card.fail {
    border-color: var(--neon-red);
    background: #7f1d1d;
    color: #fecaca;
    box-shadow: 0 7px 0 #450a0a, 0 0 24px rgba(255, 51, 85, 0.7);
    animation: shake 0.32s ease;
}

@keyframes cardHitPop {
    0% { transform: scale(0.84); }
    55% { transform: scale(1.18) translateY(-8px); }
    100% { transform: scale(1) translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-14px) rotate(-6deg); }
    45% { transform: translateX(14px) rotate(6deg); }
    70% { transform: translateX(-10px) rotate(-3deg); }
    85% { transform: translateX(8px) rotate(2deg); }
}

.progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 14px;
    background: #090b16;
    border-top: 3px solid #2e355b;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        var(--neon-cyan) 0px,
        var(--neon-cyan) 18px,
        #00bbf9 18px,
        #00bbf9 24px
    );
    box-shadow: 0 0 14px var(--neon-cyan);
    transition: width 0.06s linear;
}

/* 우측 하단 픽셀 하트 목숨 */
.stage-lives {
    position: absolute;
    bottom: 24px;
    right: 28px;
    display: flex;
    gap: 10px;
    font-size: 38px;
    z-index: 3;
}

.stage-lives .heart {
    color: var(--neon-pink);
    text-shadow: 3px 3px 0 #000000, 0 0 14px rgba(255, 42, 133, 0.8);
    transition: opacity 0.2s, transform 0.2s;
}

.stage-lives .heart.lost {
    color: #334155;
    text-shadow: none;
    transform: scale(0.82);
}

/* 3. 레트로 게임기 십자키 (D-Pad + 설정 배율 연동) */
.pad-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
}

.nintendo-dpad {
    position: relative;
    width: calc(246px * var(--btn-scale));
    height: calc(246px * var(--btn-scale));
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    filter: drop-shadow(0 8px 0 #05060d);
}

.dpad-btn {
    background: #2b3154;
    color: var(--neon-cyan);
    border: 4px solid var(--neon-cyan);
    font-size: calc(30px * var(--btn-scale));
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.06s, transform 0.06s;
}

.dpad-btn.up {
    grid-column: 2;
    grid-row: 1;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
}

.dpad-btn.left {
    grid-column: 1;
    grid-row: 2;
    border-radius: 14px 0 0 14px;
    border-right: none;
}

.dpad-center {
    grid-column: 2;
    grid-row: 2;
    background: #2b3154;
    position: relative;
}

.dpad-center::after {
    content: '';
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: #171b30;
    border: 3px solid #3e4675;
}

.dpad-btn.right {
    grid-column: 3;
    grid-row: 2;
    border-radius: 0 14px 14px 0;
    border-left: none;
}

.dpad-btn.down {
    grid-column: 2;
    grid-row: 3;
    border-radius: 0 0 14px 14px;
    border-top: none;
}

.dpad-btn:active,
.dpad-btn.pressed {
    background: var(--neon-pink);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(4px);
}

/* 모달 공통 (규칙, 설정, 일시정지, GAME OVER - 175% 스케일) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 15, 0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 50;
}

.modal-card {
    width: 100%;
    max-width: 720px;
    background: #14182e;
    border: 5px solid var(--neon-cyan);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 0 42px rgba(0, 245, 212, 0.32), 0 12px 0 #05060c;
    color: #ffffff;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 3px dashed rgba(0, 245, 212, 0.35);
}

.modal-head h2 {
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: 26px;
    color: var(--neon-yellow);
}

.close-btn {
    background: transparent;
    border: 3px solid var(--neon-pink);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    color: var(--neon-pink);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rule-item,
.setting-item {
    background: #1d2242;
    border: 3px solid #323b6b;
    border-radius: 12px;
    padding: 18px 22px;
}

.rule-item strong {
    display: block;
    font-size: 21px;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}

.rule-item p {
    font-size: 19px;
    color: #e2e8f0;
    line-height: 1.55;
}

.setting-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.setting-label-row strong {
    font-size: 22px;
    color: var(--neon-cyan);
}

.setting-val {
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: 20px;
    color: var(--neon-yellow);
}

.arcade-slider {
    width: 100%;
    height: 14px;
    accent-color: var(--neon-pink);
    cursor: pointer;
}

.settings-confirm-btn {
    margin-top: 8px;
}

.modal-pause-title {
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: 42px;
    color: var(--neon-yellow);
    text-shadow: 4px 4px 0 var(--neon-pink);
}

.pause-desc {
    font-size: 22px;
    color: #cbd5e1;
}

.modal-foot {
    margin-top: 10px;
    text-align: right;
}

.detail-link {
    font-size: 20px;
    color: var(--neon-yellow);
    text-decoration: none;
}

/* GAME OVER 모달 전용 */
.gameover-card {
    border-color: var(--neon-pink);
    box-shadow: 0 0 42px rgba(255, 42, 133, 0.38), 0 12px 0 #05060c;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 36px;
}

.gameover-title {
    font-family: 'Press Start 2P', 'DungGeunMo', monospace;
    font-size: 46px;
    color: var(--neon-red);
    text-shadow: 5px 5px 0 #000000, 0 0 22px rgba(255, 51, 85, 0.8);
}

.final-stats {
    width: 100%;
    background: #0d1021;
    border: 3px solid #323b6b;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    font-size: 24px;
    line-height: 1.75;
    color: #cbd5e1;
}

.final-stats strong {
    color: var(--neon-yellow);
}

.gameover-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gameover-sub-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gameover-btn {
    width: 100%;
    padding: 20px 24px;
    font-family: 'DungGeunMo', sans-serif;
    font-size: 24px;
    border-radius: 14px;
    border: 4px solid #ffffff;
    background: #232946;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 0 #090b16;
    transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.gameover-btn.primary {
    background: var(--neon-cyan);
    border-color: #ffffff;
    color: #090a14;
    font-weight: 900;
    box-shadow: 0 8px 0 #007766;
}

.gameover-btn.ad-revive {
    background: var(--neon-pink);
    border-color: var(--neon-yellow);
    color: #ffffff;
    box-shadow: 0 8px 0 #800f45;
}

.gameover-btn:hover {
    filter: brightness(1.12);
}

.gameover-btn:active {
    transform: translateY(4px);
    box-shadow: 0 3px 0 #090b16;
}

.share-toast {
    font-size: 19px;
    color: var(--neon-green);
    background: rgba(0, 245, 122, 0.12);
    border: 2px solid var(--neon-green);
    padding: 12px 20px;
    border-radius: 10px;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
    .arcade-cabinet-frame {
        padding: 24px 18px 32px;
        gap: 32px;
    }
    .cute-skull-badge {
        width: 52px;
        height: 52px;
        left: -32px;
        top: -18px;
    }
    .menu-row {
        gap: 10px;
    }
    .menu-btn {
        min-width: calc(96px * var(--btn-scale));
        padding: calc(14px * var(--btn-scale)) calc(14px * var(--btn-scale));
        font-size: calc(16px * var(--btn-scale));
        border-width: 3px;
    }
    .game-screen {
        padding: 16px;
        gap: 14px;
    }
    .header-actions {
        gap: 6px;
    }
    .hud-center {
        gap: 12px;
    }
    .score-display.sub-stat {
        display: none;
    }
    .text-btn {
        padding: 8px 10px;
        font-size: 14px;
    }
    .stage {
        height: 300px;
        padding: 20px 14px;
    }
    .arrow-card {
        width: calc(64px * var(--btn-scale));
        height: calc(74px * var(--btn-scale));
        font-size: calc(32px * var(--btn-scale));
        border-width: 3px;
    }
    .arrow-card .skull {
        width: calc(28px * var(--btn-scale));
        height: calc(28px * var(--btn-scale));
        font-size: calc(16px * var(--btn-scale));
        top: -10px;
        right: -10px;
    }
    .nintendo-dpad {
        width: calc(174px * var(--btn-scale));
        height: calc(174px * var(--btn-scale));
    }
    .dpad-btn {
        font-size: calc(20px * var(--btn-scale));
    }
}
