@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
    --bg-color: #070d14;
    --neon-teal: #00f5d4;
    --neon-teal-dark: #00bfa5;
    --neon-teal-glow: rgba(0, 245, 212, 0.45);
    --neon-cyan: #00d2ff;
    --neon-pink: #ff007f;
    --neon-yellow: #ffe600;
    --neon-green: #39ff14;
    --cabinet-body: #101924;
    --cabinet-border: #1a2a3a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: #e2e8f0;
    font-family: 'Press Start 2P', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header & Top Bar */
header {
    background: #0b1420;
    border-bottom: 3px solid var(--neon-teal);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 4px 25px rgba(0, 245, 212, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.teal-coin-logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px #00f5d4) drop-shadow(0 0 16px #00f5d4);
    animation: coinPulse 2.5s infinite alternate ease-in-out;
}

@keyframes coinPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 6px #00f5d4); }
    100% { transform: scale(1.08); filter: drop-shadow(0 0 16px #00f5d4) drop-shadow(0 0 24px #00d2ff); }
}

.logo-text {
    font-size: 1.35rem;
    color: #fff;
    text-shadow: 0 0 8px var(--neon-teal), 0 0 18px var(--neon-teal), 0 0 28px rgba(0, 245, 212, 0.6);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-badge {
    font-size: 0.65rem;
    color: var(--neon-teal);
    border: 1px solid var(--neon-teal);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 2px;
    text-shadow: none;
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.35);
}

.user-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
}

.wallet-badge {
    background: #111d2b;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--neon-teal);
    box-shadow: 0 0 14px rgba(0, 245, 212, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0f7f6;
}

.wallet-badge.interactive {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.wallet-badge.interactive:hover {
    border-color: #fff;
    box-shadow: 0 0 22px rgba(0, 245, 212, 0.7);
    transform: translateY(-1px);
}

.wallet-badge-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--neon-teal);
    color: #070d14;
    font-weight: bold;
    font-size: 0.75rem;
    border-radius: 50%;
    margin-left: 2px;
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.6);
    transition: transform 0.2s;
}

.wallet-badge.interactive:hover .wallet-badge-plus {
    transform: scale(1.18) rotate(90deg);
}

.ticket-badge {
    background: #111d2b;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sound-toggle {
    background: #111d2b;
    border: 1px solid var(--neon-teal);
    color: #fff;
    padding: 9px 14px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sound-toggle:hover {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.5);
}

.btn-sound-toggle.muted {
    border-color: #4a5068;
    color: #6c7499;
    box-shadow: none;
}

.btn-buy-tokens {
    background: linear-gradient(135deg, #00f5d4 0%, #00b4d8 100%);
    color: #070d14;
    font-weight: bold;
    border: none;
    padding: 10px 18px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 0 18px rgba(0, 245, 212, 0.5);
    transition: transform 0.1s, box-shadow 0.2s;
}

.btn-buy-tokens:hover {
    transform: scale(1.05);
    box-shadow: 0 0 28px rgba(0, 245, 212, 0.85);
}

.btn-ad-reward {
    background: linear-gradient(135deg, #00f0ff, #0088cc);
    color: #0b0c16;
    border: none;
    padding: 10px 14px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    transition: transform 0.1s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-ad-reward:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.8);
}

.btn-lang-toggle {
    background: #1f233a;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 9px 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-lang-toggle:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
    transform: scale(1.05);
}

/* Main Arcade Hall */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

/* View Toggle */
.view-hidden {
    display: none !important;
}

/* Arcade Lobby / Machine Browser */
.lobby-container {
    width: 100%;
    max-width: 1150px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lobby-hero {
    text-align: center;
    margin-bottom: 5px;
}

.lobby-hero h1 {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 15px var(--neon-blue);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.lobby-hero p {
    font-size: 0.75rem;
    color: #7aa2f7;
    line-height: 1.6;
}

.lobby-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #131522;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #232840;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #1a1e30;
    border: 2px solid #2f3654;
    color: #8a93b8;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--neon-pink);
    color: #fff;
    background: #251b33;
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.4);
}

.search-box {
    display: flex;
    align-items: center;
    background: #1a1e30;
    border: 2px solid #2f3654;
    border-radius: 6px;
    padding: 8px 14px;
    gap: 10px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    outline: none;
    width: 200px;
}

.search-box input::placeholder {
    color: #555d80;
}

.search-box:focus-within {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Game Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

.game-card {
    background: #151724;
    border: 3px solid #2a304a;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-blue);
    box-shadow: 0 12px 35px rgba(0, 240, 255, 0.25);
}

.game-card.upcoming-game-card {
    border-color: #343b5b;
}

.game-card.upcoming-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--neon-pink);
    box-shadow: 0 12px 35px rgba(255, 0, 127, 0.18);
}

.game-card-banner {
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border-bottom: 2px solid #2a304a;
    background: radial-gradient(circle, #1e2238 0%, #0d0f17 100%);
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(13, 15, 23, 0.85);
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
    font-size: 0.55rem;
    padding: 5px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.card-cost {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1a1e30;
    border: 1px solid var(--neon-blue);
    color: #fff;
    font-size: 0.55rem;
    padding: 5px 8px;
    border-radius: 4px;
}

.card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(13, 15, 23, 0.9);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    font-size: 0.55rem;
    padding: 5px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.7);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card-title {
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: #7aa2f7;
    margin-bottom: 4px;
}

.card-desc {
    color: #a9b1d6;
    font-size: 0.75rem;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    flex: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn-play-card {
    flex: 1;
    background: linear-gradient(180deg, #ffcc00, #cc9900);
    border: 2px solid #ffee66;
    color: #000;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.4);
    transition: transform 0.1s;
}

.btn-play-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.7);
}

.btn-play-card.upcoming-button,
.btn-play-card.upcoming-button:disabled {
    background: linear-gradient(180deg, #343b5b, #242a42);
    border-color: #626b91;
    color: #c1c7df;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.85;
}

.btn-play-card.upcoming-button:hover,
.btn-play-card.upcoming-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-card-rank {
    background: #1a1e30;
    border: 2px solid #39ff14;
    color: #39ff14;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    padding: 12px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-rank:hover {
    background: #142e1b;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

/* Cabinet View Container */
.cabinet-view-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Cabinet View Back Button */
.btn-back-lobby {
    background: #161827;
    border: 2px solid var(--neon-pink);
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
    transition: all 0.2s;
}

.btn-back-lobby:hover {
    background: #251b33;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.7);
    transform: translateX(-4px);
}


/* The Arcade Cabinet Display */
.arcade-cabinet {
    background: #181a24;
    border: 8px solid #282a36;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 240, 255, 0.2);
    width: 520px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    position: relative;
}

.cabinet-marquee {
    background: linear-gradient(180deg, #321b4f, #1b0f2e);
    border: 3px solid var(--neon-pink);
    border-radius: 8px;
    width: 96%;
    padding: 12px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: inset 0 0 15px var(--neon-pink), 0 0 15px var(--neon-pink);
}

.marquee-title {
    color: #ffeff7;
    font-size: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-pink);
}

.screen-bezel {
    background: #0f1017;
    border: 6px solid #232533;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

/* CRT Scanlines Filter */
.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

canvas#gameCanvas {
    display: block;
    background: #000;
    max-width: 100%;
    height: auto;
}

/* Coin Door & Controls */
.cabinet-control-panel {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cabinet-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.insert-coin-btn {
    background: linear-gradient(180deg, #00f5d4 0%, #009688 100%);
    color: #070d14;
    border: 3px solid #80ffea;
    padding: 14px 24px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.1s;
    animation: pulseTealCoin 1.5s infinite;
}

.pause-btn {
    background: #111d2b;
    border: 2px solid var(--neon-teal);
    color: var(--neon-teal);
    padding: 14px 18px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pause-btn:hover {
    background: #18283a;
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.6);
}

.pause-btn.paused {
    background: var(--neon-pink);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.8);
}


@keyframes pulseTealCoin {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 245, 212, 0.6); }
    50% { transform: scale(1.04); box-shadow: 0 0 32px rgba(0, 245, 212, 0.95); }
}

.insert-coin-btn:disabled {
    background: #444;
    border-color: #666;
    color: #888;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
}

.cabinet-info-text {
    font-size: 0.65rem;
    color: #7aa2f7;
    text-align: center;
    line-height: 1.5;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

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

.modal-box {
    background: #161827;
    border: 4px solid var(--neon-blue);
    border-radius: 12px;
    padding: 2rem;
    width: 480px;
    max-width: 90vw;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    position: relative;
}

.modal-title {
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px var(--neon-blue);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #ff3366;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    cursor: pointer;
}

.token-packs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.pack-card {
    background: #1f233a;
    border: 2px solid #3b4261;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.pack-card:hover {
    border-color: var(--neon-yellow);
    transform: translateY(-4px);
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.4);
}

.pack-price {
    font-size: 1.1rem;
    color: var(--neon-yellow);
    margin: 8px 0;
}

.pack-tokens {
    font-size: 0.75rem;
    color: #fff;
}

.pack-bonus {
    font-size: 0.6rem;
    color: var(--neon-green);
    margin-top: 6px;
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.7rem;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 8px;
    text-align: left;
}

.leaderboard-table th {
    border-bottom: 2px solid var(--neon-green);
    color: var(--neon-green);
}

.leaderboard-table tr:nth-child(1) td {
    color: var(--neon-yellow);
    font-weight: bold;
}

/* Virtual Touch Arcade Controls */
.virtual-touch-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    margin-top: 15px;
    padding: 14px 10px;
    background: #111320;
    border: 2px solid #282f4d;
    border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

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

.dpad-middle-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dpad-center {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #191c2b;
    border-radius: 6px;
    border: 1px solid #2b314d;
}

.dpad-btn {
    width: 48px;
    height: 48px;
    background: #1a1e30;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
    transition: transform 0.05s, background 0.05s;
    touch-action: none;
}

.dpad-btn:active, .dpad-btn.pressed {
    background: var(--neon-blue);
    color: #000;
    transform: scale(0.92);
    box-shadow: 0 0 16px var(--neon-blue);
}

.touch-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.touch-action-btn {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff3388, #b80058);
    border: 3px solid #ff99cc;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.5), inset 0 -4px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.05s;
    touch-action: none;
}

.touch-action-btn:active, .touch-action-btn.pressed {
    transform: scale(0.92);
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.9), inset 0 2px 8px rgba(0, 0, 0, 0.6);
    background: radial-gradient(circle at 35% 35%, #ff0055, #8a0040);
}

.action-btn-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.action-btn-sub {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--neon-yellow);
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
        gap: 12px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .user-status {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .wallet-badge, .ticket-badge {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .btn-sound-toggle, .btn-buy-tokens {
        padding: 7px 10px;
        font-size: 0.6rem;
    }

    .lobby-hero h1 {
        font-size: 1.2rem;
    }

    .lobby-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 10px;
    }

    .filter-chips {
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.55rem;
        padding: 8px 10px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    /* Cabinet view on mobile */
    .arcade-cabinet {
        width: 100%;
        max-width: 100%;
        padding: 10px 8px;
        border-width: 4px;
        border-radius: 12px;
    }

    .cabinet-marquee {
        padding: 8px;
        margin-bottom: 8px;
        border-width: 2px;
    }

    .marquee-title {
        font-size: 0.85rem;
    }

    .screen-bezel {
        border-width: 4px;
        border-radius: 8px;
        width: 100%;
    }

    canvas#gameCanvas {
        width: 100%;
        height: auto;
        max-height: 52vh;
        object-fit: contain;
    }

    .cabinet-buttons-row {
        gap: 8px;
    }

    .insert-coin-btn {
        font-size: 0.7rem;
        padding: 10px 14px;
    }

    .pause-btn {
        font-size: 0.65rem;
        padding: 10px 12px;
    }

    .cabinet-info-text {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.6rem 0.8rem;
    }

    .logo-container span {
        font-size: 1.4rem !important;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .user-status {
        gap: 6px;
    }

    .wallet-badge, .ticket-badge {
        font-size: 0.6rem;
        padding: 5px 8px;
    }

    .btn-sound-toggle, .btn-buy-tokens, .btn-ad-reward, .btn-lang-toggle {
        font-size: 0.55rem;
        padding: 6px 8px;
    }

    #userInfo {
        width: 100%;
        text-align: center;
    }

    .dpad-btn {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }

    .dpad-center {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .touch-action-btn {
        width: 74px;
        height: 74px;
    }
}

/* ==========================================================================
   AD REWARD & OUT-OF-TOKENS MODALS (Cyberpunk Retro Advertising System)
   ========================================================================== */

/* 1. Store Ad Reward Banner Card */
.ad-reward-banner-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 127, 0.12));
    border: 2px solid var(--neon-blue);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
    transition: all 0.2s ease;
}

.ad-reward-banner-card:hover {
    border-color: #fff;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.ad-card-icon {
    font-size: 2rem;
}

.ad-card-info {
    flex: 1;
    text-align: left;
}

.ad-card-info h4 {
    color: var(--neon-blue);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.ad-card-info p {
    color: #a9b1d6;
    font-size: 0.65rem;
    margin: 0;
}

.btn-watch-ad {
    background: linear-gradient(135deg, var(--neon-blue), #0077aa);
    color: #0b0c16;
    border: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transition: transform 0.1s;
}

.btn-watch-ad:hover {
    transform: scale(1.05);
}

/* 2. Simulated Ad Video Screen Player */
.ad-modal-box {
    width: 520px;
    border-color: var(--neon-pink);
    box-shadow: 0 0 40px rgba(255, 0, 127, 0.4);
}

.ad-subtitle {
    font-size: 0.7rem;
    text-align: center;
    color: #a9b1d6;
    margin-bottom: 1.2rem;
}

.ad-video-container {
    background: #000;
    border: 3px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.ad-screen {
    position: relative;
    height: 200px;
    background: radial-gradient(circle at center, #1b0f2e 0%, #06020c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    overflow: hidden;
}

/* CRT Scanline Overlay */
.ad-screen::before {
    content: " ";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
    z-index: 2;
}

.ad-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: #000;
}

.ad-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.ad-sponsor-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(8, 12, 24, 0.85);
    border: 1px solid var(--neon-teal);
    color: var(--neon-teal);
    font-size: 0.5rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 0.5px;
    pointer-events: auto;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.4);
}

.btn-ad-mute {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(8, 12, 24, 0.85);
    border: 1.5px solid var(--neon-teal);
    color: var(--neon-teal);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    pointer-events: auto;
}

.btn-ad-mute:hover {
    background: var(--neon-teal);
    color: #000;
    box-shadow: 0 0 15px var(--neon-teal);
    transform: scale(1.1);
}

.ad-retro-commercial {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ad-badge-neon {
    background: var(--neon-pink);
    color: #fff;
    font-size: 0.55rem;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--neon-pink);
}

.ad-brand-logo {
    color: #ffe600;
    font-size: 0.85rem;
    text-shadow: 0 0 12px #ffe600;
    margin-top: 4px;
}

.ad-brand-tagline {
    color: var(--neon-blue);
    font-size: 0.55rem;
    letter-spacing: 1px;
}

.ad-visual-anim {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.retro-equalizer {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 28px;
}

.retro-equalizer span {
    width: 6px;
    background: var(--neon-blue);
    border-radius: 1px;
    animation: bounceEq 0.6s infinite ease-in-out alternate;
}

.retro-equalizer span:nth-child(1) { height: 40%; animation-delay: 0.1s; background: #ff007f; }
.retro-equalizer span:nth-child(2) { height: 80%; animation-delay: 0.3s; background: #00f0ff; }
.retro-equalizer span:nth-child(3) { height: 50%; animation-delay: 0.2s; background: #ffe600; }
.retro-equalizer span:nth-child(4) { height: 100%; animation-delay: 0.5s; background: #39ff14; }
.retro-equalizer span:nth-child(5) { height: 60%; animation-delay: 0.15s; background: #00f0ff; }
.retro-equalizer span:nth-child(6) { height: 90%; animation-delay: 0.4s; background: #ff007f; }
.retro-equalizer span:nth-child(7) { height: 35%; animation-delay: 0.25s; background: #ffe600; }

@keyframes bounceEq {
    0% { height: 20%; }
    100% { height: 100%; }
}

.ad-countdown-pill {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(8, 12, 24, 0.9);
    border: 1px solid var(--neon-pink);
    color: #fff;
    font-size: 0.5rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Press Start 2P', monospace;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
    pointer-events: auto;
}

.ad-progress-bar-track {
    width: 100%;
    height: 6px;
    background: #222;
}

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

.ad-status-msg {
    font-size: 0.65rem;
    color: #a9b1d6;
    text-align: center;
    margin-bottom: 1.2rem;
}

.btn-claim-ad {
    width: 100%;
    background: #333;
    color: #888;
    border: none;
    padding: 14px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: not-allowed;
    transition: all 0.2s;
}

.btn-claim-ad.ready {
    background: linear-gradient(135deg, #39ff14, #00aa22);
    color: #0b0c16;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.7);
    animation: pulseClaim 1.2s infinite;
}

@keyframes pulseClaim {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(57, 255, 20, 0.6); }
    50% { transform: scale(1.02); box-shadow: 0 0 35px rgba(57, 255, 20, 0.95); }
}

/* 3. Out-Of-Tokens Modal */
.out-of-tokens-box {
    width: 480px;
    text-align: center;
    border-color: #ffe600;
    box-shadow: 0 0 40px rgba(255, 230, 0, 0.4);
}

.out-of-tokens-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-card {
    background: #1f233a;
    border: 2px solid #414868;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}

.choice-card:hover {
    transform: translateY(-2px);
}

.choice-card.choice-ad {
    border-color: var(--neon-blue);
}

.choice-card.choice-ad:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.choice-card.choice-store {
    border-color: var(--neon-pink);
}

.choice-card.choice-store:hover {
    background: rgba(255, 0, 127, 0.15);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
}

.choice-icon {
    font-size: 2.2rem;
}

.choice-content {
    flex: 1;
}

.choice-content h3 {
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #fff;
}

.choice-card.choice-ad h3 { color: var(--neon-blue); }
.choice-card.choice-store h3 { color: var(--neon-pink); }

.choice-content p {
    font-size: 0.65rem;
    color: #a9b1d6;
    margin-bottom: 6px;
}

.choice-badge {
    display: inline-block;
    font-size: 0.55rem;
    padding: 3px 6px;
    border-radius: 3px;
    background: rgba(0, 240, 255, 0.2);
    color: var(--neon-blue);
}

.choice-badge.bonus {
    background: rgba(255, 0, 127, 0.2);
    color: var(--neon-pink);
}

/* ==========================================================================
   AUTHENTICATION & PROFILE STYLES
   ========================================================================== */

.btn-auth {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(0, 240, 255, 0.25));
    border: 2px solid var(--neon-teal);
    color: var(--neon-teal);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0, 245, 212, 0.3);
    transition: all 0.2s;
    text-shadow: 0 0 6px var(--neon-teal);
}

.btn-auth:hover {
    background: var(--neon-teal);
    color: #0d0614;
    box-shadow: 0 0 20px var(--neon-teal);
    transform: translateY(-1px);
}

.user-info-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 20, 40, 0.85);
    border: 1px solid var(--neon-teal);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.7rem;
    color: #a9b1d6;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.user-info-pill:hover {
    border-color: #fff;
    box-shadow: 0 0 18px rgba(0, 245, 212, 0.55);
    transform: translateY(-1px);
}

.user-badge-tag {
    background: rgba(0, 245, 212, 0.2);
    color: var(--neon-teal);
    font-size: 0.55rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 245, 212, 0.4);
}

.btn-logout {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px;
    transition: transform 0.2s;
}

.btn-logout:hover {
    transform: scale(1.2);
}

/* Auth Modal Specifics */
.auth-modal-box {
    max-width: 440px;
    border: 2px solid var(--neon-teal);
    box-shadow: 0 0 35px rgba(0, 245, 212, 0.4), inset 0 0 20px rgba(0, 245, 212, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 16px;
}

.auth-icon-circle {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    border: 1px solid rgba(0, 245, 212, 0.4);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
}

.auth-subtitle {
    font-size: 0.65rem;
    color: #a9b1d6;
    margin-top: 4px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #222b45;
    margin-bottom: 18px;
    gap: 8px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #7a889b;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    color: var(--neon-teal);
    border-bottom-color: var(--neon-teal);
    text-shadow: 0 0 8px rgba(0, 245, 212, 0.6);
}

/* Feedback Banner */
.auth-feedback {
    padding: 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    line-height: 1.4;
    margin-bottom: 14px;
    text-align: center;
}

.auth-feedback.error {
    background: rgba(255, 0, 85, 0.2);
    border: 1px solid #ff0055;
    color: #ff6699;
}

.auth-feedback.success {
    background: rgba(0, 245, 212, 0.2);
    border: 1px solid var(--neon-teal);
    color: var(--neon-teal);
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 0.6rem;
    color: #c0caf5;
    font-family: 'Press Start 2P', monospace;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 10px;
    font-size: 0.9rem;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 10px 10px 36px;
    background: #0d1117;
    border: 1.5px solid #28345a;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.2s;
}

.input-with-icon input:focus {
    border-color: var(--neon-teal);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.35);
}

.form-row-duo {
    display: flex;
    gap: 10px;
}

.form-group.half {
    flex: 1;
}

.reg-bonus-callout {
    background: rgba(0, 245, 212, 0.1);
    border: 1px dashed var(--neon-teal);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.6rem;
    color: #e0e6ed;
    line-height: 1.4;
    text-align: center;
}

.btn-auth-submit {
    background: linear-gradient(135deg, var(--neon-teal), #00b4d8);
    border: none;
    color: #090a16;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 16px rgba(0, 245, 212, 0.4);
    transition: all 0.2s;
    margin-top: 4px;
}

.btn-auth-submit:hover {
    box-shadow: 0 0 25px var(--neon-teal);
    transform: translateY(-2px);
}

.auth-switch-prompt {
    font-size: 0.65rem;
    color: #7a889b;
    text-align: center;
    margin-top: 4px;
}

.auth-link {
    color: var(--neon-teal);
    text-decoration: none;
    font-weight: bold;
    margin-left: 4px;
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 6px var(--neon-teal);
}

.auth-footer-guest {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #28345a;
    text-align: center;
}

.btn-guest-link {
    background: transparent;
    border: none;
    color: #7a889b;
    font-size: 0.65rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-guest-link:hover {
    color: #c0caf5;
}

/* Auth Profile View */
.auth-profile-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-card {
    background: #0d1117;
    border: 1.5px solid #28345a;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #111d2b, #1f233a);
    border: 2px solid var(--neon-teal);
    color: var(--neon-teal);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

.profile-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.profile-username {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: #fff;
}

.profile-email {
    font-size: 0.68rem;
    color: #7a889b;
    word-break: break-all;
}

.profile-balances {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #1a2238;
}

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

.profile-balance-label {
    font-size: 0.55rem;
    color: #7a889b;
    font-family: 'Press Start 2P', monospace;
}

.profile-balance-val {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.05rem;
    color: #00f5d4;
    text-shadow: 0 0 8px rgba(0, 245, 212, 0.5);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.btn-profile-action {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    font-weight: bold;
}

.btn-profile-action.ad-btn {
    background: linear-gradient(135deg, #00f0ff, #0088cc);
    color: #0b0c16;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.btn-profile-action.ad-btn:hover {
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.7);
    transform: translateY(-1px);
}

.btn-profile-action.store-btn {
    background: linear-gradient(135deg, #00f5d4 0%, #00b4d8 100%);
    color: #070d14;
    box-shadow: 0 0 14px rgba(0, 245, 212, 0.35);
}

.btn-profile-action.store-btn:hover {
    box-shadow: 0 0 22px rgba(0, 245, 212, 0.7);
    transform: translateY(-1px);
}

.btn-profile-action.logout-btn {
    background: #191c2b;
    border: 1px solid #ff0055;
    color: #ff6699;
}

.btn-profile-action.logout-btn:hover {
    background: rgba(255, 0, 85, 0.2);
    box-shadow: 0 0 16px rgba(255, 0, 85, 0.4);
}

/* ==========================================================================
   GAME OVER MODAL STYLES
   ========================================================================== */

.game-over-modal-box {
    max-width: 460px;
    border: 3px solid var(--neon-pink);
    box-shadow: 0 0 45px rgba(255, 0, 127, 0.45), inset 0 0 25px rgba(255, 0, 127, 0.15);
    text-align: center;
    position: relative;
}

.game-over-header {
    margin-bottom: 12px;
}

.game-over-skull-icon {
    font-size: 2.4rem;
    margin-bottom: 6px;
    animation: gameOverPulse 1.2s infinite ease-in-out;
}

@keyframes gameOverPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px #ff007f); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 20px #ff007f); }
}

.game-over-title {
    color: var(--neon-pink);
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-shadow: 0 0 16px var(--neon-pink);
    margin: 0;
}

.game-over-game-name {
    color: var(--neon-teal);
    font-size: 0.65rem;
    font-family: 'Press Start 2P', monospace;
    margin-top: 6px;
    letter-spacing: 1px;
}

.game-over-results-card {
    display: flex;
    gap: 12px;
    margin: 18px 0;
}

.game-over-stat {
    flex: 1;
    background: rgba(13, 17, 34, 0.9);
    border: 1.5px solid #28345a;
    border-radius: 8px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-over-stat .stat-label {
    font-size: 0.55rem;
    color: #7a889b;
    font-family: 'Press Start 2P', monospace;
}

.game-over-stat .stat-value {
    font-size: 1.1rem;
    font-family: 'Press Start 2P', monospace;
}

.game-over-stat .stat-value.neon-yellow {
    color: #ffe600;
    text-shadow: 0 0 12px rgba(255, 230, 0, 0.8);
}

.game-over-stat .stat-value.neon-pink {
    color: var(--neon-teal);
    text-shadow: 0 0 12px rgba(0, 245, 212, 0.8);
}

.game-over-record-pill {
    background: linear-gradient(135deg, rgba(255, 230, 0, 0.2), rgba(255, 0, 127, 0.25));
    border: 1.5px dashed #ffe600;
    border-radius: 20px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffe600;
    font-size: 0.65rem;
    font-family: 'Press Start 2P', monospace;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.35);
}

.game-over-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-game-over-play {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-teal), #00b4d8);
    border: none;
    padding: 14px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    font-weight: bold;
    color: #090a16;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
    transition: all 0.2s;
}

.btn-game-over-play:hover {
    box-shadow: 0 0 30px var(--neon-teal);
    transform: translateY(-2px);
}

.game-over-secondary-row {
    display: flex;
    gap: 10px;
}

.btn-game-over-secondary {
    flex: 1;
    background: rgba(22, 24, 39, 0.9);
    border: 1.5px solid #28345a;
    color: #c0caf5;
    padding: 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-game-over-secondary:hover {
    border-color: var(--neon-teal);
    color: var(--neon-teal);
    box-shadow: 0 0 12px rgba(0, 245, 212, 0.3);
}

/* ==========================================================================
   UNIVERSAL ARCADE ALERT MODAL STYLES
   ========================================================================== */

.arcade-alert-box {
    max-width: 440px;
    text-align: center;
    border: 2px solid var(--neon-teal);
    box-shadow: 0 0 35px rgba(0, 245, 212, 0.35);
}

.alert-icon-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    border: 1.5px solid rgba(0, 245, 212, 0.4);
    box-shadow: 0 0 16px rgba(0, 245, 212, 0.3);
}

.arcade-alert-message {
    font-size: 0.75rem;
    color: #c0caf5;
    line-height: 1.6;
    margin: 16px 0 22px;
    white-space: pre-line;
    word-break: break-word;
}

.arcade-alert-actions {
    display: flex;
    justify-content: center;
}

.btn-arcade-alert-ok {
    background: linear-gradient(135deg, var(--neon-teal), #00b4d8);
    border: none;
    padding: 12px 28px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #090a16;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 16px rgba(0, 245, 212, 0.4);
    transition: all 0.2s;
    min-width: 140px;
}

.btn-arcade-alert-ok:hover {
    box-shadow: 0 0 25px var(--neon-teal);
    transform: translateY(-2px);
}


