/* ============================================
   BUZZWORD BINGO - 80s Arcade Cabinet Styles
   ============================================ */

:root {
    --bg-dark: #0a0a0a;
    --cabinet-black: #1a1a1a;
    --cabinet-dark: #252525;
    --cabinet-wood: #3d2817;
    --cabinet-wood-light: #5c3d2e;
    --bezel-dark: #0d0d0d;
    --chrome: #c0c0c0;
    --chrome-dark: #808080;
    --screen-bg: #0d1117;
    --neon-green: #39ff14;
    --neon-blue: #00f0ff;
    --neon-pink: #ff00ff;
    --neon-yellow: #ffff00;
    --neon-orange: #ff6600;
    --neon-red: #ff3333;
    --text-dim: #b8c0cc;
    --text-light: #e2e8f0;
    --scanline-opacity: 0.05;
    --marquee-glow: rgba(255, 255, 0, 0.6);
}

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

body {
    font-family: 'Press Start 2P', cursive;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(60, 40, 80, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(30, 60, 90, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(40, 50, 70, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse at center, #2a2a35 0%, #1a1a22 50%, #0d0d12 100%);
    color: var(--neon-green);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow-x: hidden;
    position: relative;
}

/* Starfield background - Layer 1 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(4px 4px at 20px 30px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 40px 70px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 90px 40px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 160px 120px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 230px 80px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 300px 150px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 370px 50px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 450px 180px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 520px 90px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 600px 200px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 680px 60px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 750px 140px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 100px 200px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 200px 300px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 350px 250px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 500px 350px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 650px 280px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 800px 320px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 50px 400px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 150px 500px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 280px 450px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 420px 520px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 580px 480px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 720px 550px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 850px 420px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 920px 100px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 980px 250px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 1050px 180px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 1120px 350px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 1200px 50px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 70px 150px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 180px 220px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 320px 100px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 480px 280px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 620px 380px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 780px 450px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 900px 520px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 1000px 400px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 1150px 280px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 1230px 150px, #fff, rgba(255,255,255,0.3) 50%, transparent);
    background-size: 1300px 600px;
    background-repeat: repeat;
    animation: twinkleStars1 3s ease-in-out infinite;
    filter: blur(0.5px);
}

/* Starfield background - Layer 2 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(3px 3px at 55px 95px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 130px 180px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 250px 60px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 400px 130px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 550px 240px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 700px 100px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 820px 200px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 950px 340px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 1080px 120px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 1180px 220px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 85px 320px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 220px 430px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 380px 380px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 530px 500px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 670px 440px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 810px 560px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 960px 480px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 1100px 530px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 1220px 400px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 35px 550px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 170px 80px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 290px 170px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 440px 50px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 590px 150px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 740px 270px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 880px 70px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 1020px 200px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 1160px 90px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(3px 3px at 120px 480px, #fff, rgba(255,255,255,0.3) 50%, transparent),
        radial-gradient(4px 4px at 260px 560px, #fff, rgba(255,255,255,0.3) 50%, transparent);
    background-size: 1250px 620px;
    background-repeat: repeat;
    animation: twinkleStars2 4s ease-in-out infinite;
    filter: blur(0.5px);
}

@keyframes twinkleStars1 {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes twinkleStars2 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.1; }
}

/* Ensure content is above stars */
.arcade-room {
    position: relative;
    z-index: 1;
}

/* CRT Screen Effect */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, var(--scanline-opacity)),
        rgba(0, 0, 0, var(--scanline-opacity)) 1px,
        transparent 1px,
        transparent 2px
    );
}

.crt-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

/* ============================================
   ARCADE ROOM & SIDE CABINETS
   ============================================ */

.arcade-room {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    padding: 20px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Side Cabinets - Positioned in center of each half */
.bg-cabinet {
    width: 240px;
    flex-shrink: 0;
    display: none;
    position: absolute;
    top: 50%;
}

.bg-cabinet.left {
    left: calc((50vw - 450px) / 2); /* Center between left edge and main cabinet */
    transform: translate(-50%, -50%);
}

.bg-cabinet.right {
    left: calc(50vw + 450px + (50vw - 450px) / 2); /* Center between main cabinet and right edge */
    transform: translate(-50%, -50%);
}

.bg-cabinet-top {
    height: 20px;
    background: linear-gradient(180deg, var(--cabinet-dark) 0%, var(--cabinet-black) 100%);
    border-radius: 15px 15px 0 0;
    border: 3px solid var(--cabinet-dark);
    border-bottom: none;
    position: relative;
}

.bg-cabinet-top::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--chrome-dark), var(--chrome), var(--chrome-dark), transparent);
    border-radius: 3px;
}

.bg-marquee {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    padding: 12px 8px;
    text-align: center;
    border-left: 6px solid var(--cabinet-black);
    border-right: 6px solid var(--cabinet-black);
    position: relative;
    overflow: hidden;
}

.bg-marquee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,0,255,0.1) 0%, rgba(255,0,255,0.2) 50%, rgba(255,0,255,0.1) 100%);
    animation: marquee-glow 3s ease-in-out infinite;
}

.bg-cabinet.right .bg-marquee::before {
    background: linear-gradient(90deg, rgba(0,240,255,0.1) 0%, rgba(0,240,255,0.2) 50%, rgba(0,240,255,0.1) 100%);
}

.bg-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--neon-pink);
    text-shadow:
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    animation: title-glow 2s ease-in-out infinite alternate;
}

.bg-cabinet.right .bg-title {
    color: var(--neon-blue);
    text-shadow:
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-blue);
}

.bg-screen {
    height: 280px;
    background: var(--screen-bg);
    border-left: 6px solid var(--cabinet-black);
    border-right: 6px solid var(--cabinet-black);
    margin: 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.bg-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 8px solid #0a0a0a;
    border-radius: 8px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.bg-screen-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, var(--neon-pink) 0%, transparent 60%);
    opacity: 0.15;
    animation: bg-glow 4s ease-in-out infinite;
}

.bg-cabinet.right .bg-screen-glow {
    background: radial-gradient(ellipse at center, var(--neon-blue) 0%, transparent 60%);
}

@keyframes bg-glow {
    0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.95); }
    50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.05); }
}

/* ============================================
   FAKE GAME SCREENS
   ============================================ */

.fake-game {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    z-index: 5;
    overflow: hidden;
}

.fake-game-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    z-index: 10;
}

.fake-score {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: #fff;
    align-self: flex-end;
}

.fake-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    text-align: center;
    line-height: 1.5;
}

.fake-prompt {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
}

.fake-credit {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.4rem;
    color: #888;
}

/* Space Wars Specific */
.spacewars .fake-title {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.spacewars .fake-prompt {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

.spacewars .fake-score {
    color: var(--neon-pink);
}

/* Starfield */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

.stars span:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.stars span:nth-child(2) { top: 25%; left: 45%; animation-delay: 0.3s; }
.stars span:nth-child(3) { top: 15%; left: 75%; animation-delay: 0.6s; }
.stars span:nth-child(4) { top: 40%; left: 25%; animation-delay: 0.9s; }
.stars span:nth-child(5) { top: 35%; left: 85%; animation-delay: 0.2s; }
.stars span:nth-child(6) { top: 55%; left: 10%; animation-delay: 0.5s; }
.stars span:nth-child(7) { top: 60%; left: 55%; animation-delay: 0.8s; }
.stars span:nth-child(8) { top: 50%; left: 70%; animation-delay: 1.1s; }
.stars span:nth-child(9) { top: 70%; left: 30%; animation-delay: 0.4s; }
.stars span:nth-child(10) { top: 75%; left: 90%; animation-delay: 0.7s; }
.stars span:nth-child(11) { top: 85%; left: 20%; animation-delay: 1s; }
.stars span:nth-child(12) { top: 80%; left: 60%; animation-delay: 0.1s; }
.stars span:nth-child(13) { top: 90%; left: 40%; animation-delay: 1.3s; }
.stars span:nth-child(14) { top: 5%; left: 55%; animation-delay: 0.15s; }
.stars span:nth-child(15) { top: 95%; left: 80%; animation-delay: 0.45s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Drifting Asteroids */
.asteroids {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.asteroid {
    position: absolute;
    color: #888;
    text-shadow: 0 0 3px #fff;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.asteroid.large { font-size: 1.8rem; }
.asteroid.medium { font-size: 1.2rem; }
.asteroid.small { font-size: 0.8rem; }

/* Different drift paths for each asteroid */
.asteroid.a1 {
    animation: drift1 8s linear infinite;
}
.asteroid.a2 {
    animation: drift2 6s linear infinite;
}
.asteroid.a3 {
    animation: drift3 10s linear infinite;
}
.asteroid.a4 {
    animation: drift4 12s linear infinite;
}
.asteroid.a5 {
    animation: drift5 7s linear infinite;
}

@keyframes drift1 {
    0% { top: -10%; left: 80%; transform: rotate(0deg); }
    100% { top: 110%; left: 20%; transform: rotate(360deg); }
}

@keyframes drift2 {
    0% { top: 30%; left: -10%; transform: rotate(0deg); }
    100% { top: 70%; left: 110%; transform: rotate(-270deg); }
}

@keyframes drift3 {
    0% { top: -10%; left: 30%; transform: rotate(0deg); }
    100% { top: 110%; left: 60%; transform: rotate(180deg); }
}

@keyframes drift4 {
    0% { top: 60%; left: 110%; transform: rotate(0deg); }
    100% { top: 20%; left: -10%; transform: rotate(-360deg); }
}

@keyframes drift5 {
    0% { top: 110%; left: 50%; transform: rotate(0deg); }
    100% { top: -10%; left: 10%; transform: rotate(270deg); }
}

/* Spaceship */
.spaceship {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    animation: hover-ship 2s ease-in-out infinite;
    z-index: 7;
}

@keyframes hover-ship {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Laser Shots */
.lasers {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 6;
}

.laser {
    position: absolute;
    width: 2px;
    height: 12px;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green), 0 0 15px var(--neon-green);
    opacity: 0;
}

.laser.l1 {
    left: 50%;
    animation: shoot1 2s ease-out infinite;
}

.laser.l2 {
    left: 48%;
    animation: shoot2 2s ease-out infinite 1s;
}

@keyframes shoot1 {
    0% { bottom: 28%; opacity: 0; }
    5% { opacity: 1; }
    30% { bottom: 90%; opacity: 1; }
    35% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes shoot2 {
    0% { bottom: 28%; opacity: 0; }
    5% { opacity: 1; }
    25% { bottom: 60%; opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* Mega Blast Specific */
.megablast .fake-title {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.megablast .fake-prompt {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px var(--neon-yellow);
}

.megablast .fake-score {
    color: var(--neon-blue);
}

/* City Skyline */
.city-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    z-index: 2;
}

.building {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 1px solid #2a2a4a;
    position: relative;
}

.building::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    right: 20%;
    bottom: 20%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 200, 50, 0.3) 3px,
        rgba(255, 200, 50, 0.3) 5px
    );
}

.b1 { width: 15%; height: 60%; }
.b2 { width: 12%; height: 80%; }
.b3 { width: 18%; height: 50%; }
.b4 { width: 14%; height: 70%; }
.b5 { width: 16%; height: 55%; }

/* Bomber Plane */
.bomber {
    position: absolute;
    top: 12%;
    font-size: 2rem;
    color: #aaa;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
    animation: fly-across 8s linear infinite;
    z-index: 5;
}

@keyframes fly-across {
    0% { left: -10%; }
    100% { left: 110%; }
}

/* Falling Bombs */
.bomb {
    position: absolute;
    font-size: 0.6rem;
    color: #222;
    text-shadow: 0 0 3px #000;
    z-index: 4;
    opacity: 0;
}

/* Bomb 1 -> Explosion 1 (left: 25%, bottom: 35%) */
.bomb1 {
    animation: bomb-drop1 3s ease-in infinite;
    animation-delay: 0s;
}

/* Bomb 2 -> Explosion 2 (left: 60%, bottom: 38%) */
.bomb2 {
    animation: bomb-drop2 3s ease-in infinite;
    animation-delay: 1.5s;
}

/* Bomb 3 -> Explosion 3 (left: 45%, bottom: 32%) */
.bomb3 {
    animation: bomb-drop3 3s ease-in infinite;
    animation-delay: 2.5s;
}

@keyframes bomb-drop1 {
    0% { top: 12%; left: 10%; opacity: 0; }
    5% { opacity: 1; }
    90% { top: 62%; left: 25%; opacity: 1; }
    95% { opacity: 0; }
    100% { top: 65%; left: 25%; opacity: 0; }
}

@keyframes bomb-drop2 {
    0% { top: 12%; left: 45%; opacity: 0; }
    5% { opacity: 1; }
    90% { top: 59%; left: 60%; opacity: 1; }
    95% { opacity: 0; }
    100% { top: 62%; left: 60%; opacity: 0; }
}

@keyframes bomb-drop3 {
    0% { top: 12%; left: 30%; opacity: 0; }
    5% { opacity: 1; }
    90% { top: 65%; left: 45%; opacity: 1; }
    95% { opacity: 0; }
    100% { top: 68%; left: 45%; opacity: 0; }
}

/* CSS Explosions */
.explosion {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0;
    z-index: 3;
}

.exp1 {
    bottom: 35%;
    left: 25%;
    animation: explode-fire 3s ease-out infinite;
    animation-delay: 0s;
}

.exp2 {
    bottom: 38%;
    left: 60%;
    animation: explode-fire 3s ease-out infinite;
    animation-delay: 1.5s;
}

.exp3 {
    bottom: 32%;
    left: 45%;
    animation: explode-fire 3s ease-out infinite;
    animation-delay: 2.5s;
}

@keyframes explode-fire {
    0% {
        opacity: 0;
        transform: scale(0.2);
        background: radial-gradient(circle, #fff 0%, #ff0 30%, #f80 60%, #f00 100%);
        box-shadow: 0 0 10px #ff0, 0 0 20px #f80, 0 0 30px #f00;
    }
    15% {
        opacity: 1;
        transform: scale(1.5);
        background: radial-gradient(circle, #fff 0%, #ff0 20%, #f80 50%, #f00 100%);
        box-shadow: 0 0 15px #ff0, 0 0 30px #f80, 0 0 45px #f00;
    }
    40% {
        opacity: 0.8;
        transform: scale(1.2);
        background: radial-gradient(circle, #f80 0%, #f00 50%, #800 100%);
        box-shadow: 0 0 10px #f80, 0 0 20px #f00;
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
        background: radial-gradient(circle, #444 0%, #222 100%);
        box-shadow: none;
    }
}

/* Target Reticle */
.reticle {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
    animation: reticle-pulse 1.5s ease-in-out infinite;
    z-index: 6;
}

@keyframes reticle-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.bg-controls {
    height: 70px;
    background: linear-gradient(180deg, var(--cabinet-dark) 0%, var(--cabinet-black) 100%);
    border-left: 6px solid var(--cabinet-dark);
    border-right: 6px solid var(--cabinet-dark);
    padding: 8px;
}

.bg-control-surface {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 50%, #0d0d0d 100%);
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    padding: 8px 12px;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    box-shadow:
        inset 0 1px 3px rgba(255,255,255,0.1),
        inset 0 -1px 3px rgba(0,0,0,0.3);
    overflow: visible;
}

.bg-joystick {
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #0d0d0d 100%);
    border-radius: 50%;
    border: 2px solid #3a3a3a;
    position: relative;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        inset 0 2px 6px rgba(0,0,0,0.8);
}

/* Side cabinet joystick handle (moveable part - tilts as one unit) */
.bg-joystick .joystick-handle {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 8px;
    margin-left: -4px; /* Center horizontally without transform */
    cursor: grab;
    z-index: 10;
    transform-origin: center bottom;
}

.bg-joystick .joystick-handle:active {
    cursor: grabbing;
}

/* Side cabinet joystick shaft */
.bg-joystick .joystick-shaft {
    width: 8px;
    height: 22px;
    background: linear-gradient(90deg, #1a1a1a 0%, #4a4a4a 30%, #5a5a5a 50%, #4a4a4a 70%, #1a1a1a 100%);
    border-radius: 3px;
    border: 1px solid #3a3a3a;
    box-shadow: 1px 0 3px rgba(0,0,0,0.3);
}

/* Side cabinet joystick ball top */
.bg-joystick .joystick-ball {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 35% 35%, #ff4444 0%, #cc0000 50%, #880000 100%);
    border-radius: 50%;
    border: 2px solid #660000;
    box-shadow:
        0 2px 3px rgba(0,0,0,0.5),
        inset 0 -2px 4px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.2);
}

.bg-buttons {
    display: flex;
    gap: 8px;
}

.bg-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #3a3a3a;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        inset 0 1px 2px rgba(255,255,255,0.3);
}

.bg-btn.red {
    background: radial-gradient(circle at 30% 30%, #ff6666 0%, #cc0000 70%, #990000 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(255,0,0,0.3);
}

.bg-btn.yellow {
    background: radial-gradient(circle at 30% 30%, #ffff66 0%, #cccc00 70%, #999900 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(255,255,0,0.3);
}

.bg-btn.blue {
    background: radial-gradient(circle at 30% 30%, #66b3ff 0%, #0066cc 70%, #004499 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(0,100,255,0.3);
}

.bg-btn.green {
    background: radial-gradient(circle at 30% 30%, #66ff66 0%, #00cc00 70%, #009900 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(0,255,0,0.3);
}

.bg-base {
    height: 40px;
    background: linear-gradient(180deg, var(--cabinet-black) 0%, #0d0d0d 100%);
    border: 6px solid var(--cabinet-dark);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.bg-coin-slot {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.3rem;
    color: var(--neon-yellow);
    text-shadow: 0 0 5px var(--neon-yellow);
    background: #0a0a0a;
    border: 1px solid var(--chrome-dark);
    border-radius: 3px;
    padding: 4px 6px;
    white-space: nowrap;
}

/* Show side cabinets on larger screens */
@media (min-width: 1200px) {
    .bg-cabinet {
        display: block;
    }
}

@media (min-width: 1400px) {
    .arcade-room {
        gap: 15px;
    }

    .bg-cabinet {
        width: 280px;
    }
}

@media (min-width: 1600px) {
    .arcade-room {
        gap: 20px;
    }

    .bg-cabinet {
        width: 320px;
    }

    .bg-screen {
        height: 340px;
    }

    .bg-title {
        font-size: 0.75rem;
    }
}

/* ============================================
   ARCADE CABINET STRUCTURE
   ============================================ */

.arcade-cabinet {
    max-width: 900px;
    width: 100%;
    perspective: 1000px;
    position: relative;
    z-index: 10;
}

/* Cabinet Top - Curved crown */
.cabinet-top {
    height: 25px;
    background: linear-gradient(180deg, var(--cabinet-dark) 0%, var(--cabinet-black) 100%);
    border-radius: 20px 20px 0 0;
    border: 3px solid var(--cabinet-dark);
    border-bottom: none;
    position: relative;
}

.cabinet-top::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--chrome-dark), var(--chrome), var(--chrome-dark), transparent);
    border-radius: 4px;
}

/* ============================================
   MARQUEE (Lit-up sign)
   ============================================ */

.marquee {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    border-left: 8px solid var(--cabinet-black);
    border-right: 8px solid var(--cabinet-black);
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
}

.marquee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(255,255,0,0.1) 0%, rgba(255,100,0,0.2) 50%, rgba(255,255,0,0.1) 100%);
    animation: marquee-glow 3s ease-in-out infinite;
}

@keyframes marquee-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.marquee-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.title {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--neon-yellow);
    text-shadow:
        0 0 10px var(--neon-yellow),
        0 0 20px var(--neon-yellow),
        0 0 40px var(--neon-orange),
        0 0 60px var(--neon-orange);
    letter-spacing: 3px;
    margin-bottom: 15px;
    animation: title-glow 2s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from {
        text-shadow:
            0 0 10px var(--neon-yellow),
            0 0 20px var(--neon-yellow),
            0 0 40px var(--neon-orange);
        filter: brightness(1);
    }
    to {
        text-shadow:
            0 0 20px var(--neon-yellow),
            0 0 40px var(--neon-yellow),
            0 0 60px var(--neon-orange),
            0 0 80px var(--neon-red);
        filter: brightness(1.2);
    }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--neon-orange);
    letter-spacing: 3px;
    text-shadow: 0 0 15px var(--neon-orange);
}

/* Marquee Lights */
.marquee-lights {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.marquee-lights span {
    width: 8px;
    height: 8px;
    background: var(--neon-yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-yellow), 0 0 20px var(--neon-orange);
    animation: light-chase 1.5s ease-in-out infinite;
}

.marquee-lights span:nth-child(1) { animation-delay: 0s; }
.marquee-lights span:nth-child(2) { animation-delay: 0.15s; }
.marquee-lights span:nth-child(3) { animation-delay: 0.3s; }
.marquee-lights span:nth-child(4) { animation-delay: 0.45s; }
.marquee-lights span:nth-child(5) { animation-delay: 0.6s; }
.marquee-lights span:nth-child(6) { animation-delay: 0.75s; }
.marquee-lights span:nth-child(7) { animation-delay: 0.9s; }
.marquee-lights span:nth-child(8) { animation-delay: 1.05s; }
.marquee-lights span:nth-child(9) { animation-delay: 1.2s; }
.marquee-lights span:nth-child(10) { animation-delay: 1.35s; }

@keyframes light-chase {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ============================================
   CABINET BODY
   ============================================ */

.cabinet-body {
    display: flex;
    background: var(--cabinet-black);
    border-left: 8px solid var(--cabinet-dark);
    border-right: 8px solid var(--cabinet-dark);
}

/* Side Panels with Racing Stripes */
.side-panel {
    width: 30px;
    background: linear-gradient(180deg, var(--cabinet-dark) 0%, var(--cabinet-black) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 20px 5px;
}

.side-panel .stripe {
    height: 80px;
    border-radius: 3px;
    margin: 5px 0;
}

.side-panel.left .stripe:nth-child(1) { background: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink); }
.side-panel.left .stripe:nth-child(2) { background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); }
.side-panel.left .stripe:nth-child(3) { background: var(--neon-yellow); box-shadow: 0 0 10px var(--neon-yellow); }

.side-panel.right .stripe:nth-child(1) { background: var(--neon-yellow); box-shadow: 0 0 10px var(--neon-yellow); }
.side-panel.right .stripe:nth-child(2) { background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); }
.side-panel.right .stripe:nth-child(3) { background: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink); }

/* Screen Bezel */
.screen-bezel {
    flex: 1;
    background: linear-gradient(180deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%);
    padding: 10px;
    border: 4px solid #2a2a2a;
    border-radius: 5px;
    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.8),
        0 0 10px rgba(0,0,0,0.5);
}

/* Speaker Grilles */
.speaker-grille {
    height: 25px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
    margin: 5px 0;
}

.speaker-grille .grille-lines {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        #0d0d0d 0px,
        #0d0d0d 3px,
        #252525 3px,
        #252525 6px
    );
}

/* Main Screen */
.screen {
    background: var(--screen-bg);
    border: 4px solid #000;
    border-radius: 10px;
    min-height: 520px;
    position: relative;
    overflow: visible;
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(0, 50, 50, 0.3),
        0 0 2px #000;
}

/* Slight CRT curve effect */
.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 70%,
        rgba(0,0,0,0.3) 100%
    );
    pointer-events: none;
    z-index: 10;
    border-radius: 10px;
}

/* ============================================
   CONTROL PANEL
   ============================================ */

.control-panel {
    background: linear-gradient(180deg, var(--cabinet-dark) 0%, var(--cabinet-black) 100%);
    border-left: 8px solid var(--cabinet-dark);
    border-right: 8px solid var(--cabinet-dark);
    padding: 15px;
}

.control-panel-surface {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 50%, #0d0d0d 100%);
    border: 3px solid #3a3a3a;
    border-radius: 8px;
    padding: 15px 20px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.1),
        inset 0 -2px 4px rgba(0,0,0,0.3);
}

/* Coin Insert */
.coin-insert {
    text-align: center;
}

.coin-slot-visual {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: var(--neon-yellow);
    text-shadow: 0 0 5px var(--neon-yellow);
    background: #0a0a0a;
    border: 2px solid var(--chrome-dark);
    border-radius: 4px;
    padding: 7px 12px;
    white-space: nowrap;
}

.coin-slot-visual span {
    font-size: inherit;
    color: inherit;
    text-shadow: inherit;
}

/* Joystick */
.joystick-area {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 5px;
}

.joystick {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #0d0d0d 100%);
    border-radius: 50%;
    border: 3px solid #3a3a3a;
    position: relative;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        inset 0 2px 8px rgba(0,0,0,0.8);
}

/* Joystick handle (moveable part - tilts as one unit) */
.joystick .joystick-handle {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 12px;
    margin-left: -6px; /* Center horizontally without transform */
    cursor: grab;
    z-index: 10;
    transform-origin: center bottom;
}

.joystick .joystick-handle:active {
    cursor: grabbing;
}

/* Joystick shaft */
.joystick .joystick-shaft {
    width: 12px;
    height: 35px;
    background: linear-gradient(90deg, #1a1a1a 0%, #4a4a4a 30%, #5a5a5a 50%, #4a4a4a 70%, #1a1a1a 100%);
    border-radius: 4px;
    border: 1px solid #3a3a3a;
    box-shadow: 2px 0 4px rgba(0,0,0,0.3);
}

/* Joystick ball top */
.joystick .joystick-ball {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 35% 35%, #ff4444 0%, #cc0000 50%, #880000 100%);
    border-radius: 50%;
    border: 2px solid #660000;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.5),
        inset 0 -3px 6px rgba(0,0,0,0.3),
        inset 0 3px 6px rgba(255,255,255,0.2);
}

/* Arcade Buttons */
.buttons-area {
    display: flex;
    gap: 15px;
}

.arcade-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #3a3a3a;
    box-shadow:
        0 4px 8px rgba(0,0,0,0.5),
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.arcade-button:hover {
    /* No hover effect - only depress on click */
}

.arcade-button.red {
    background: radial-gradient(circle at 30% 30%, #ff6666 0%, #cc0000 70%, #990000 100%);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.5),
        0 0 15px rgba(255,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.3);
}

.arcade-button.blue {
    background: radial-gradient(circle at 30% 30%, #66b3ff 0%, #0066cc 70%, #004499 100%);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.5),
        0 0 15px rgba(0,100,255,0.3),
        inset 0 2px 4px rgba(255,255,255,0.3);
}

/* Button pressed state */
.arcade-button.pressed,
.arcade-button:active {
    transform: translateY(4px) scale(0.95);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.5),
        inset 0 2px 6px rgba(0,0,0,0.5);
}

.arcade-button.red.pressed,
.arcade-button.red:active {
    background: radial-gradient(circle at 40% 40%, #cc4444 0%, #990000 70%, #660000 100%);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.5),
        0 0 20px rgba(255,0,0,0.5),
        inset 0 2px 6px rgba(0,0,0,0.5);
}

.arcade-button.blue.pressed,
.arcade-button.blue:active {
    background: radial-gradient(circle at 40% 40%, #4488cc 0%, #004499 70%, #002266 100%);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.5),
        0 0 20px rgba(0,100,255,0.5),
        inset 0 2px 6px rgba(0,0,0,0.5);
}

/* Background cabinet button pressed states */
.bg-btn {
    cursor: pointer;
    transition: transform 0.05s, box-shadow 0.05s;
}

.bg-btn.pressed,
.bg-btn:active {
    transform: translateY(2px) scale(0.92);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.5),
        inset 0 2px 4px rgba(0,0,0,0.5);
}

.bg-btn.red.pressed,
.bg-btn.red:active {
    background: radial-gradient(circle at 40% 40%, #cc4444 0%, #990000 70%, #660000 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 12px rgba(255,0,0,0.6);
}

.bg-btn.yellow.pressed,
.bg-btn.yellow:active {
    background: radial-gradient(circle at 40% 40%, #cccc44 0%, #999900 70%, #666600 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 12px rgba(255,255,0,0.6);
}

.bg-btn.blue.pressed,
.bg-btn.blue:active {
    background: radial-gradient(circle at 40% 40%, #4488cc 0%, #004499 70%, #002266 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 12px rgba(0,100,255,0.6);
}

.bg-btn.green.pressed,
.bg-btn.green:active {
    background: radial-gradient(circle at 40% 40%, #44cc44 0%, #009900 70%, #006600 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 12px rgba(0,255,0,0.6);
}

/* Interactive Joystick Handle */
.joystick-handle {
    cursor: grab;
}

.joystick-handle:active,
.joystick-handle.dragging {
    cursor: grabbing;
}

/* ============================================
   CABINET BASE
   ============================================ */

.cabinet-base {
    background: linear-gradient(180deg, var(--cabinet-black) 0%, #0d0d0d 100%);
    border: 8px solid var(--cabinet-dark);
    border-top: none;
    border-radius: 0 0 15px 15px;
    padding: 15px;
    text-align: center;
}

.footer-text {
    font-size: 0.35rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* Back to Portfolio Link - Arcade Button Style */
.back-link {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #000;
    text-decoration: none;
    margin-bottom: 10px;
    padding: 12px 24px;
    background: radial-gradient(circle at 30% 30%, #66ffff 0%, var(--neon-blue) 60%, #0099aa 100%);
    border: 3px solid #007788;
    border-radius: 10px;
    box-shadow:
        0 4px 0 #005566,
        0 6px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 0 10px rgba(0, 240, 255, 0.3);
    transition: all 0.1s ease;
}

.back-link:hover {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #005566,
        0 3px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(0, 240, 255, 0.5);
}

.back-link:active {
    transform: translateY(4px);
    box-shadow:
        0 0 0 #005566,
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   GAME SCREENS
   ============================================ */

.game-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 25px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    z-index: 15;
}

.game-screen.active {
    display: flex;
}

/* Landing Screen */
.landing-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding: 15px 0;
    gap: 15px;
    overflow-y: auto;
}

.coin-slot {
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border: 3px solid var(--neon-green);
    border-radius: 10px;
    padding: 18px 36px;
    display: inline-block;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.4);
}

.coin-slot span {
    font-size: 1.4rem;
    color: var(--neon-green);
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.instructions {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 2;
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed var(--neon-blue);
    border-radius: 15px;
    padding: 12px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 240, 255, 0.05);
    width: 95%;
    max-width: 480px;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
}

.upload-zone .icon-tape {
    display: block;
    font-size: 4rem;
    margin-bottom: 10px;
}

.upload-zone .icon-tape::before {
    content: '📼';
}

.upload-zone p {
    font-size: 1rem;
    margin-bottom: 8px;
}

.upload-zone .small {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.upload-zone .formats {
    font-size: 0.7rem;
    color: var(--neon-blue);
    margin-top: 12px;
}

/* Demo Button */
.demo-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.85rem;
    background: transparent;
    color: var(--neon-pink);
    border: 3px solid var(--neon-pink);
    padding: 16px 32px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    transform: scale(1.05);
}

/* Privacy Badge */
.privacy-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(57, 255, 20, 0.05);
    border: 3px dashed var(--neon-green);
    border-radius: 15px;
    padding: 12px 22px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', cursive;
    color: var(--neon-green);
    position: relative;
    z-index: 100;
    width: 95%;
    max-width: 480px;
}

.privacy-badge:hover {
    background: rgba(57, 255, 20, 0.2);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.privacy-badge .expand-icon {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.privacy-badge.active .expand-icon {
    transform: rotate(180deg);
}

.lock-icon {
    font-size: 1rem;
}

/* Disclaimer */
.disclaimer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
    width: 95%;
    max-width: 500px;
}

.disclaimer.active {
    max-height: 600px;
    opacity: 1;
    margin-top: 10px;
}

.disclaimer-content {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 18px;
    text-align: left;
    font-size: 0.55rem;
    line-height: 2;
}

.disclaimer-content h4 {
    color: var(--neon-blue);
    margin-bottom: 12px;
    font-size: 0.7rem;
    text-align: center;
}

.disclaimer-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.disclaimer-content li {
    padding: 6px 0;
    border-bottom: 1px solid #222;
    color: var(--text-light);
}

.disclaimer-content li:last-child {
    border-bottom: none;
}

.disclaimer-content li strong {
    color: var(--neon-green);
}

.disclaimer-note {
    text-align: center;
    color: var(--text-dim);
    font-style: italic;
    padding-top: 8px;
    border-top: 1px solid #333;
}

/* Processing Screen */
.processing-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-top: 30px;
}

.processing-title {
    font-size: 2rem;
    color: var(--neon-yellow);
    margin-bottom: 35px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.progress-container {
    background: #1a1a1a;
    border: 3px solid var(--neon-blue);
    border-radius: 12px;
    height: 35px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    transition: width 0.3s ease;
    box-shadow: 0 0 20px var(--neon-green);
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.fun-message {
    font-size: 0.8rem;
    color: var(--neon-pink);
    font-style: italic;
}

/* Results Screen */
.results-content {
    text-align: center;
    width: 100%;
    max-width: 650px;
}

.results-title {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
}

.score-display {
    margin-bottom: 25px;
}

.score-value {
    display: block;
    font-size: clamp(3rem, 10vw, 5rem);
    color: var(--neon-yellow);
    text-shadow:
        0 0 20px var(--neon-yellow),
        0 0 40px var(--neon-orange);
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    color: var(--text-dim);
}

.award-display {
    margin-bottom: 25px;
}

.award-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.award-title {
    font-size: 1.3rem;
    color: var(--neon-pink);
    text-shadow: 0 0 20px var(--neon-pink);
}

/* Buzzword Breakdown */
.buzzword-breakdown {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 18px;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 25px;
    text-align: left;
}

.buzzword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #222;
    font-size: 0.8rem;
}

.buzzword-item:last-child {
    border-bottom: none;
}

.buzzword-item .word {
    color: var(--text-light);
}

.buzzword-item .count {
    color: var(--neon-green);
}

.buzzword-item .points {
    color: var(--neon-yellow);
}

/* Buttons */
.results-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.arcade-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    background: linear-gradient(180deg, var(--neon-green) 0%, #1a8f0a 100%);
    color: #000;
    border: none;
    padding: 18px 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow:
        0 5px 0 #0a5f00,
        0 0 25px rgba(57, 255, 20, 0.4);
}

.arcade-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #0a5f00,
        0 0 30px rgba(57, 255, 20, 0.5);
}

.arcade-btn:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #0a5f00,
        0 0 20px rgba(57, 255, 20, 0.3);
}

.arcade-btn.secondary {
    background: linear-gradient(180deg, var(--neon-blue) 0%, #006080 100%);
    box-shadow:
        0 4px 0 #004050,
        0 0 20px rgba(0, 240, 255, 0.3);
}

.arcade-btn.secondary:hover {
    box-shadow:
        0 6px 0 #004050,
        0 0 30px rgba(0, 240, 255, 0.5);
}

/* High Score Entry */
.highscore-content {
    text-align: center;
    margin-top: 20px;
}

.highscore-content h2 {
    font-size: 1.5rem;
    color: var(--neon-yellow);
    margin-bottom: 20px;
}

.your-score {
    font-size: 1rem;
    color: var(--neon-green);
    margin-bottom: 30px;
}

.name-entry p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.initial-slots {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.initial-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.initial-slot .letter {
    font-size: 2.5rem;
    color: var(--neon-yellow);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid var(--neon-yellow);
    border-radius: 10px;
}

.arrow {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    background: none;
    border: none;
    color: var(--neon-blue);
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.arrow:hover {
    color: var(--neon-green);
    transform: scale(1.2);
}

/* Leaderboard */
.leaderboard-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-top: 15px;
}

.leaderboard-content h2 {
    font-size: 1.5rem;
    color: var(--neon-yellow);
    margin-bottom: 25px;
}

.leaderboard-table {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
}

.leaderboard-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid #222;
    font-size: 0.85rem;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row.header {
    color: var(--neon-blue);
    font-size: 0.7rem;
}

.leaderboard-row .rank {
    width: 50px;
    text-align: left;
    color: var(--text-dim);
}

.leaderboard-row .name {
    flex: 1;
    text-align: center;
    color: var(--neon-green);
}

.leaderboard-row .score {
    width: 100px;
    text-align: right;
    color: var(--neon-yellow);
}

.leaderboard-row.highlight {
    background: rgba(57, 255, 20, 0.1);
    border-radius: 5px;
}

/* No scores message */
.no-scores {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 40px 20px;
}

/* Leaderboard mode indicator */
.leaderboard-mode {
    font-size: 0.5rem;
    color: var(--neon-blue);
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

/* Hide Scrollbars */
.buzzword-breakdown,
.leaderboard-table,
.landing-content,
.game-screen {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.buzzword-breakdown::-webkit-scrollbar,
.leaderboard-table::-webkit-scrollbar,
.landing-content::-webkit-scrollbar,
.game-screen::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Score Animation */
@keyframes scoreCount {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.score-value.counting {
    animation: scoreCount 0.1s ease-in-out;
}

/* Screen Transitions */
.game-screen {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-screen.active {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .cabinet-top {
        height: 15px;
    }

    .marquee {
        padding: 10px 15px;
    }

    .title {
        font-size: 1rem;
    }

    .side-panel {
        width: 20px;
        padding: 10px 3px;
    }

    .side-panel .stripe {
        height: 50px;
    }

    .screen {
        min-height: 380px;
    }

    .game-screen {
        padding: 20px 15px;
    }

    .control-panel-surface {
        padding: 10px 15px;
    }

    .joystick {
        width: 40px;
        height: 40px;
    }

    .arcade-button {
        width: 35px;
        height: 35px;
    }

    .coin-slot-visual {
        font-size: 0.4rem;
        padding: 5px 10px;
    }

    .upload-zone {
        padding: 20px;
    }

    .initial-slot .letter {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .results-buttons {
        flex-direction: column;
    }

    .arcade-btn {
        width: 100%;
    }
}

/* ============================================
   ERROR MODAL
   ============================================ */

.error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.error-modal.active {
    display: flex;
}

.error-modal-content {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 3px solid var(--neon-red);
    border-radius: 15px;
    padding: 30px 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 40px rgba(255, 51, 51, 0.4);
    animation: modalShake 0.3s ease-out;
}

@keyframes modalShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.error-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--neon-red);
    text-shadow: 0 0 20px var(--neon-red);
    margin-bottom: 20px;
    animation: blink 0.5s step-end infinite;
}

.error-message {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ============================================
   CANCEL BUTTON
   ============================================ */

.cancel-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    background: transparent;
    color: var(--neon-red);
    border: 3px solid var(--neon-red);
    padding: 14px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 25px;
}

.cancel-btn:hover {
    background: rgba(255, 51, 51, 0.2);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
}

