/* =========================================================
   ZAPPO STUDIO — Arcade / Synthwave / CRT theme
   Shared across index.html, privacy.html, terms.html
   ========================================================= */

:root {
    --bg: #08060F;
    --bg-2: #0D0A18;
    --panel: #140D24;
    --panel-2: #1B1230;
    --magenta: #FF2E97;
    --cyan: #00E5FF;
    --coin: #FFE600;
    --text: #F5F3FF;
    --dim: #A99FC7;
    --border: rgba(255, 46, 151, 0.28);
    --border-cyan: rgba(0, 229, 255, 0.28);
    --pixel: 'Press Start 2P', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 20px;
    line-height: 1.45;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: none;
}

.pixel { font-family: var(--pixel); line-height: 1.5; letter-spacing: 1px; }
.neon-magenta { color: var(--magenta); text-shadow: 0 0 6px rgba(255,46,151,0.85), 0 0 18px rgba(255,46,151,0.45); }
.neon-cyan { color: var(--cyan); text-shadow: 0 0 6px rgba(0,229,255,0.85), 0 0 18px rgba(0,229,255,0.45); }
.coin { color: var(--coin); }

::selection { background: var(--magenta); color: #fff; }

a { color: var(--cyan); }

a:focus-visible, button:focus-visible, .game-card:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

/* --- BACKGROUND: STARFIELD --- */
@keyframes animStar { from { transform: translateY(0px); } to { transform: translateY(-2000px); } }
.stars-layer { position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none; }
#stars { width: 1px; height: 1px; background: transparent; box-shadow: 1745px 566px #FFF , 492px 1466px #FFF , 1532px 169px #FFF , 1766px 832px #FFF , 261px 881px #FFF; animation: animStar 100s linear infinite; }
#stars:after { content: " "; position: absolute; top: 2000px; width: 1px; height: 1px; background: transparent; box-shadow: 1745px 566px #FFF , 492px 1466px #FFF , 1532px 169px #FFF , 1766px 832px #FFF , 261px 881px #FFF; }
#stars2 { width: 2px; height: 2px; background: transparent; box-shadow: 1745px 566px #FFF , 492px 1466px #FFF , 1532px 169px #FFF , 1766px 832px #FFF , 261px 881px #FFF; animation: animStar 50s linear infinite; }
#stars2:after { content: " "; position: absolute; top: 2000px; width: 2px; height: 2px; background: transparent; box-shadow: 1745px 566px #FFF , 492px 1466px #FFF , 1532px 169px #FFF , 1766px 832px #FFF , 261px 881px #FFF; }
#stars3 { width: 3px; height: 3px; background: transparent; box-shadow: 1745px 566px #00E5FF , 492px 1466px #FF2E97 , 1532px 169px #FFF , 1766px 832px #00E5FF , 261px 881px #FF2E97; animation: animStar 25s linear infinite; }
#stars3:after { content: " "; position: absolute; top: 2000px; width: 3px; height: 3px; background: transparent; box-shadow: 1745px 566px #00E5FF , 492px 1466px #FF2E97 , 1532px 169px #FFF , 1766px 832px #00E5FF , 261px 881px #FF2E97; }

/* --- BACKGROUND: SYNTHWAVE GRID FLOOR --- */
.grid-floor { position: fixed; bottom: 0; left: 0; width: 100%; height: 42vh; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0.5;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 90%);
    mask-image: linear-gradient(to top, #000 0%, transparent 90%);
    perspective: 320px; }
.grid-floor::before { content: ''; position: absolute; left: -50%; right: -50%; bottom: -60%; top: -10%;
    background-image:
        linear-gradient(to right, rgba(255,46,151,0.55) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,229,255,0.45) 1px, transparent 1px);
    background-size: 44px 44px;
    transform: rotateX(72deg);
    transform-origin: bottom center;
    animation: gridMove 6s linear infinite; }
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 0 44px; } }

/* --- CRT OVERLAY --- */
.crt { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.crt::before { content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.28) 3px, rgba(0,0,0,0) 4px);
    animation: scan 8s linear infinite; }
.crt::after { content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
    box-shadow: inset 0 0 120px rgba(0,0,0,0.6); }
@keyframes scan { from { background-position: 0 0; } to { background-position: 0 100px; } }
.crt-flicker { position: fixed; inset: 0; z-index: 901; pointer-events: none; background: rgba(120, 80, 200, 0.02); animation: flicker 0.15s steps(2) infinite; }
@keyframes flicker { 0% { opacity: 0.18; } 100% { opacity: 0.02; } }
body.crt-off .crt, body.crt-off .crt-flicker { display: none; }

/* --- HUD CONTROLS --- */
.hud { position: fixed; top: 14px; right: 14px; z-index: 950; display: flex; gap: 8px; }
.hud-btn { font-family: var(--pixel); font-size: 0.55rem; letter-spacing: 1px; padding: 9px 11px; min-height: 44px;
    background: rgba(8,6,15,0.85); color: var(--cyan); border: 2px solid var(--border-cyan); border-radius: 4px;
    cursor: pointer; transition: all 0.15s ease; text-transform: uppercase; }
.hud-btn:hover { border-color: var(--cyan); color: #fff; box-shadow: 0 0 12px rgba(0,229,255,0.5); }
.hud-btn[aria-pressed="true"] { color: var(--magenta); border-color: var(--border); }
.hud-btn[aria-pressed="true"]:hover { border-color: var(--magenta); box-shadow: 0 0 12px rgba(255,46,151,0.5); }

/* --- BRAND (top-left wordmark) --- */
.brand { position: fixed; top: 14px; left: 14px; z-index: 950; font-family: var(--pixel); font-size: 0.62rem;
    letter-spacing: 1px; color: var(--magenta); text-decoration: none; text-shadow: 0 0 8px rgba(255,46,151,0.6);
    padding: 9px 11px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
    background: rgba(8,6,15,0.6); border: 2px solid transparent; border-radius: 4px; transition: all 0.15s ease; }
.brand:hover { border-color: var(--border); }
.brand .zap { color: var(--coin); }

/* --- BOOT / INSERT COIN SCREEN --- */
.boot { position: fixed; inset: 0; z-index: 2000; background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
    text-align: center; padding: 1.5rem; cursor: pointer;
    background-image: radial-gradient(ellipse at center, rgba(255,46,151,0.08) 0%, transparent 60%); }
.boot.hide { animation: bootOut 0.6s ease forwards; }
@keyframes bootOut { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }
.boot-logo { font-family: var(--pixel); font-size: clamp(1.1rem, 6vw, 2.6rem); color: var(--magenta);
    text-shadow: 0 0 10px rgba(255,46,151,0.9), 0 0 26px rgba(255,46,151,0.5); line-height: 1.4; }
.boot-logo .zap { color: var(--coin); text-shadow: 0 0 10px rgba(255,230,0,0.8); }
.boot-sub { font-family: var(--pixel); font-size: clamp(0.5rem, 2.4vw, 0.95rem); color: var(--cyan);
    text-shadow: 0 0 8px rgba(0,229,255,0.7); letter-spacing: 4px; }
.boot-coin { font-family: var(--pixel); font-size: clamp(0.55rem, 2.6vw, 1rem); color: var(--coin); letter-spacing: 2px; margin-top: 1rem; }
.boot-start { font-family: var(--pixel); font-size: clamp(0.6rem, 3vw, 1.1rem); color: #fff; border: none; background: none; cursor: pointer; padding: 0; }
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.boot-hint { color: var(--dim); font-size: 1.1rem; margin-top: 0.5rem; }

/* --- LAYOUT --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding-bottom: 4rem; position: relative; z-index: 10; }
header { padding: 6rem 1.5rem 1rem; text-align: center; position: relative; z-index: 10; }

.section-title { font-family: var(--pixel); font-size: clamp(1rem, 3.5vw, 1.6rem); color: #fff; margin: 0 0 2.5rem;
    display: flex; align-items: center; gap: 14px; }
.section-title::before { content: '\25AE'; color: var(--magenta); text-shadow: 0 0 10px rgba(255,46,151,0.8); }
.category-title { font-family: var(--pixel); font-size: clamp(0.7rem, 2.6vw, 1rem); color: var(--cyan);
    text-shadow: 0 0 8px rgba(0,229,255,0.5); margin: 3rem 0 1.6rem; letter-spacing: 1px; }
.category-title .stage-no { color: var(--coin); }

/* --- HERO --- */
.studio-logo { font-family: var(--pixel); font-size: clamp(1.6rem, 9vw, 4rem); margin: 0; line-height: 1.3;
    color: var(--magenta); text-shadow: 3px 3px 0 rgba(0,229,255,0.55), 0 0 18px rgba(255,46,151,0.5); }
.studio-logo .zap { color: var(--coin); text-shadow: 3px 3px 0 rgba(255,46,151,0.4), 0 0 18px rgba(255,230,0,0.6); }
.subtitle { font-family: var(--pixel); color: var(--cyan); font-size: clamp(0.55rem, 2.4vw, 0.95rem);
    text-transform: uppercase; letter-spacing: 5px; margin-top: 1.2rem; text-shadow: 0 0 10px rgba(0,229,255,0.6); }
.tagline { font-family: var(--pixel); font-size: clamp(0.6rem, 2.6vw, 1rem); color: #fff; letter-spacing: 1px;
    margin-top: 1.6rem; line-height: 1.7; }
.player-tag { display: inline-block; font-family: var(--pixel); font-size: 0.5rem; color: var(--coin);
    border: 2px solid rgba(255,230,0,0.4); border-radius: 4px; padding: 6px 10px; margin-top: 1.4rem; letter-spacing: 2px; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* Terminal panel (about) */
.terminal { max-width: 760px; margin: 1.8rem auto 0; background: var(--panel); border: 2px solid var(--border);
    border-radius: 8px; text-align: left; box-shadow: 0 0 24px rgba(255,46,151,0.12); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--panel-2);
    border-bottom: 2px solid var(--border); }
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .dot.r { background: var(--magenta); }
.terminal-bar .dot.y { background: var(--coin); }
.terminal-bar .dot.g { background: var(--cyan); }
.terminal-bar .title { font-family: var(--pixel); font-size: 0.5rem; color: var(--dim); margin-left: 6px; letter-spacing: 1px; }
.terminal-body { padding: 1.5rem 1.6rem; font-size: 1.25rem; line-height: 1.55; color: #d9d2f0; }
.terminal-body .prompt { color: var(--cyan); }
.terminal-body strong { color: var(--cyan); }
.cursor { display: inline-block; width: 11px; height: 1.1rem; background: var(--magenta); margin-left: 2px;
    vertical-align: text-bottom; animation: blink 1s steps(2, start) infinite; }

.social-area { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 2rem; }
.social-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.social-btn { width: 52px; height: 52px; background: var(--panel); border: 2px solid var(--border-cyan); border-radius: 6px;
    display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 1.4rem; text-decoration: none;
    transition: all 0.15s steps(2); }
.social-btn:hover { background: var(--cyan); color: var(--bg); transform: translateY(-5px); box-shadow: 0 5px 0 rgba(0,229,255,0.3), 0 0 18px rgba(0,229,255,0.6); }

.arcade-btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--pixel); font-size: 0.7rem;
    letter-spacing: 1px; padding: 16px 26px; min-height: 44px; background: var(--magenta); color: #fff; border: none;
    border-radius: 6px; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 #a01060, 0 0 22px rgba(255,46,151,0.4);
    transition: transform 0.1s steps(2), box-shadow 0.1s; text-transform: uppercase; }
.arcade-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #a01060, 0 0 30px rgba(255,46,151,0.6); }
.arcade-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #a01060; }
.arcade-btn.ghost { background: transparent; color: var(--cyan); border: 2px solid var(--border-cyan); box-shadow: none; }
.arcade-btn.ghost:hover { border-color: var(--cyan); box-shadow: 0 0 22px rgba(0,229,255,0.4); transform: translateY(-3px); }

/* --- STUDIO STATS / HIGH SCORES --- */
.stats-section { margin-top: 4rem; }
.scoreboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; max-width: 960px; margin: 0 auto; }
.score { background: var(--panel); border: 2px solid var(--border-cyan); border-radius: 10px; padding: 1.6rem 1rem; text-align: center;
    transition: transform 0.15s steps(2), border-color 0.15s, box-shadow 0.15s; }
.score:hover { transform: translateY(-5px); border-color: var(--magenta); box-shadow: 0 8px 0 rgba(255,46,151,0.12), 0 0 22px rgba(255,46,151,0.3); }
.score-num { font-family: var(--pixel); font-size: clamp(1.1rem, 4vw, 1.7rem); color: var(--coin);
    text-shadow: 0 0 12px rgba(255,230,0,0.5); line-height: 1.3; }
.score-label { font-family: var(--pixel); font-size: 0.5rem; color: var(--dim); letter-spacing: 1px; margin-top: 0.9rem; }

.inventory-label { font-family: var(--pixel); font-size: 0.6rem; color: var(--dim); letter-spacing: 2px; text-align: center; margin: 3rem 0 1.2rem; }
.inventory-group { max-width: 920px; margin: 0 auto 1.6rem; }
.inventory-subheader { font-family: var(--pixel); font-size: 0.5rem; color: var(--dim); opacity: 0.6; letter-spacing: 1.5px; text-align: center; margin-bottom: 0.7rem; }
.inventory { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 920px; margin: 0 auto; }
.chip { font-family: var(--pixel); font-size: 0.55rem; letter-spacing: 0.5px; color: var(--cyan);
    background: var(--panel); border: 2px solid var(--border-cyan); border-radius: 4px; padding: 10px 12px; transition: all 0.15s steps(2); }
.chip:hover { color: #fff; background: var(--panel-2); border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 0 12px rgba(0,229,255,0.4); }

/* --- GAMES GRID --- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; margin-bottom: 2rem; }
.game-card { background: var(--panel); border-radius: 10px; border: 2px solid var(--border-cyan); overflow: hidden;
    cursor: pointer; transition: transform 0.12s steps(2), border-color 0.15s, box-shadow 0.15s; display: flex; flex-direction: column;
    position: relative; }
.game-card:hover { transform: translateY(-7px); border-color: var(--magenta); box-shadow: 0 10px 0 rgba(255,46,151,0.15), 0 0 26px rgba(255,46,151,0.35); }
.game-card:hover .card-thumb { filter: saturate(1.15); }
.press-hint { position: absolute; bottom: 12px; right: 12px; font-family: var(--pixel); font-size: 0.5rem; color: var(--coin);
    background: rgba(8,6,15,0.85); padding: 7px 9px; border-radius: 4px; opacity: 0; transform: translateX(6px);
    transition: all 0.15s steps(2); z-index: 3; letter-spacing: 1px; }
.game-card:hover .press-hint, .game-card:focus-visible .press-hint { opacity: 1; transform: translateX(0); }
.card-thumb { width: 100%; height: 200px; object-fit: cover; border-bottom: 2px solid var(--border-cyan); display: block; transition: filter 0.2s; background: var(--panel-2); }
.card-body { padding: 1.4rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-family: var(--pixel); font-size: 0.78rem; line-height: 1.5; color: #fff; margin-bottom: 0.8rem; letter-spacing: 0.5px; }
.card-short-desc { font-size: 1.15rem; line-height: 1.35; color: var(--dim); margin-bottom: 1.1rem; flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { font-family: var(--pixel); font-size: 0.46rem; letter-spacing: 0.5px; text-transform: uppercase;
    background: rgba(255,46,151,0.12); color: var(--magenta); padding: 7px 9px; border-radius: 4px; border: 1px solid var(--border); }

/* status badges */
.badge { position: absolute; top: 12px; left: 12px; z-index: 4; font-family: var(--pixel); font-size: 0.5rem;
    letter-spacing: 1px; padding: 7px 10px; border-radius: 4px; }
.badge-live { background: var(--coin); color: var(--bg); box-shadow: 0 0 14px rgba(255,230,0,0.5); }
.badge-dev { background: var(--cyan); color: var(--bg); box-shadow: 0 0 14px rgba(0,229,255,0.5); }
.badge-soon { background: var(--magenta); color: #fff; box-shadow: 0 0 14px rgba(255,46,151,0.5); }

.placeholder-thumb { height: 200px; display: flex; align-items: center; justify-content: center; background: var(--panel-2);
    border-bottom: 2px solid var(--border-cyan); color: var(--cyan); font-size: 3.5rem; }

/* --- MODAL --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(4, 2, 10, 0.88); backdrop-filter: blur(4px); z-index: 1500;
    display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-2); width: 100%; max-width: 900px; max-height: 90vh; border-radius: 12px;
    border: 3px solid var(--magenta); box-shadow: 0 0 0 2px var(--bg), 0 0 40px rgba(255,46,151,0.4); overflow-y: auto;
    position: relative; padding: 0; animation: slideUp 0.25s steps(5); }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-btn { position: absolute; top: 12px; right: 14px; font-family: var(--pixel); font-size: 0.9rem; color: var(--magenta);
    background: var(--panel); border: 2px solid var(--border); border-radius: 4px; width: 42px; height: 42px; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s steps(2); }
.close-btn:hover { background: var(--magenta); color: #fff; }
.modal-body { padding: 2.5rem 2rem 2.2rem; }
.modal-title { font-family: var(--pixel); font-size: clamp(0.95rem, 4vw, 1.5rem); line-height: 1.5; margin: 0 0 1.3rem; color: #fff;
    text-shadow: 0 0 14px rgba(255,46,151,0.5); text-align: center; }
.modal-desc { font-size: 1.3rem; line-height: 1.5; color: #d9d2f0; margin-bottom: 2rem; }
.modal-desc strong { color: var(--cyan); }
.modal-gallery { display: flex; justify-content: center; gap: 16px; margin-bottom: 2rem; flex-wrap: wrap; }
.modal-img { width: 200px; aspect-ratio: 9/16; object-fit: cover; border-radius: 8px; border: 2px solid var(--border-cyan); background: var(--panel); }
.modal-img.landscape { width: 100%; max-width: 600px; aspect-ratio: 16/9; }
.modal-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { font-family: var(--pixel); font-size: 0.65rem; padding: 15px 24px; min-height: 44px; border-radius: 6px;
    text-decoration: none; transition: 0.12s steps(2); text-align: center; display: inline-flex; align-items: center; gap: 10px; letter-spacing: 1px; }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 4px 0 #a01060; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #a01060, 0 0 20px rgba(255,46,151,0.5); }
.btn-secondary { border: 2px solid var(--border-cyan); color: var(--cyan); }
.btn-secondary:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0,229,255,0.4); }

/* --- CONTACT --- */
.contact-section { max-width: 640px; margin: 4rem auto 0; background: var(--panel); padding: 0; border-radius: 10px;
    border: 2px solid var(--border); overflow: hidden; box-shadow: 0 0 24px rgba(255,46,151,0.12); }
.contact-section .terminal-bar { border-bottom: 2px solid var(--border); }
.contact-inner { padding: 2rem; text-align: center; }
.contact-inner p { font-size: 1.3rem; color: #d9d2f0; line-height: 1.55; margin: 0 0 1.6rem; }
.contact-email { font-family: var(--pixel); font-size: clamp(0.6rem, 2.6vw, 0.85rem); color: var(--coin); word-break: break-all; }

/* --- LEGAL PAGES --- */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 6rem 1.5rem 2rem; position: relative; z-index: 10; }
.legal-card { background: var(--panel); border: 2px solid var(--border); border-radius: 10px; overflow: hidden;
    box-shadow: 0 0 24px rgba(255,46,151,0.12); }
.legal-body { padding: 2rem 2rem 2.4rem; }
.legal-body h1 { font-family: var(--pixel); font-size: clamp(1rem, 4vw, 1.6rem); color: var(--magenta);
    text-shadow: 0 0 14px rgba(255,46,151,0.5); margin: 0 0 0.6rem; line-height: 1.5; }
.legal-body h2 { font-family: var(--pixel); font-size: clamp(0.7rem, 2.6vw, 0.95rem); color: var(--cyan);
    text-shadow: 0 0 8px rgba(0,229,255,0.4); margin: 2.4rem 0 1rem; letter-spacing: 1px; line-height: 1.6; }
.legal-body p, .legal-body li { font-size: 1.25rem; line-height: 1.6; color: #d9d2f0; }
.legal-body ul { padding-left: 1.4rem; }
.legal-body li { margin-bottom: 0.5rem; }
.legal-body strong { color: var(--cyan); }
.legal-body a { color: var(--coin); }
.legal-updated { font-family: var(--pixel); font-size: 0.5rem; color: var(--dim); letter-spacing: 1px; }
.legal-disclaimer { font-family: var(--pixel); font-size: 0.5rem; line-height: 1.8; color: var(--coin);
    border: 2px dashed rgba(255,230,0,0.4); border-radius: 6px; padding: 1rem; margin: 1.4rem 0 0; letter-spacing: 0.5px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: 0.6rem;
    color: var(--cyan); text-decoration: none; letter-spacing: 1px; margin-bottom: 1.5rem; padding: 10px 0; }
.back-link:hover { color: #fff; text-shadow: 0 0 10px rgba(0,229,255,0.6); }

/* --- FOOTER --- */
footer { text-align: center; color: var(--dim); padding: 3rem 1.5rem; position: relative; z-index: 10; }
footer .footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
footer .footer-links a { font-family: var(--pixel); font-size: 0.55rem; color: var(--cyan); text-decoration: none; letter-spacing: 1px; }
footer .footer-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(0,229,255,0.6); }
footer .pixel { font-size: 0.6rem; color: var(--dim); letter-spacing: 1px; line-height: 2; }
footer .continue { color: var(--coin); }

/* --- SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.4s ease, transform 0.4s steps(6); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    body { font-size: 18px; }
    header { padding: 5rem 1rem 1rem; }
    .terminal-body { font-size: 1.1rem; }
    .hud-btn { font-size: 0.45rem; padding: 8px; }
    .brand { font-size: 0.5rem; padding: 8px; }
    .modal-body { padding: 2.5rem 1.2rem 1.8rem; }
    .modal-img { width: 150px; }
    .legal-body { padding: 1.5rem 1.2rem 1.8rem; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    #stars, #stars2, #stars3, .grid-floor::before { animation: none; }
    .blink, .cursor { animation: none; opacity: 1; }
    .reveal { opacity: 1; transform: none; }
}
