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

/* ------------------------------------------------------------------ */
/* Shared arcade cabinet theme                                         */
/* ------------------------------------------------------------------ */

:root {
    --arcade-bg: #050510;
    --arcade-bg-soft: #0d0d24;
    --arcade-panel: #111133;
    --cyan: #00f0ff;
    --magenta: #ff2bd6;
    --yellow: #ffe600;
    --lime: #39ff14;
    --orange: #ff9d00;
    --red: #ff3b5c;
    --pixel-font: 'Press Start 2P', 'Courier New', monospace;
    --terminal-font: 'VT323', 'Courier New', monospace;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--arcade-bg);
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(70, 40, 150, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 120%, rgba(0, 180, 180, 0.18) 0%, transparent 55%);
    color: var(--cyan);
    font-family: var(--terminal-font);
    font-size: 1.4rem;
    line-height: 1.35;
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

/* CRT vignette and scanlines sit above the page but never eat clicks. */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

body::after {
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.22) 3px,
        rgba(0, 0, 0, 0.22) 4px
    );
}

h1,
h2,
h3,
h4 {
    font-family: var(--pixel-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.6;
    margin: 0 0 0.75em;
    color: var(--magenta);
    text-shadow: 0 0 10px var(--magenta), 3px 3px 0 #000;
}

h1 { font-size: clamp(1.2rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1rem, 3vw, 1.6rem); color: var(--yellow); text-shadow: 0 0 10px var(--yellow), 2px 2px 0 #000; }
h3 { font-size: clamp(0.9rem, 2.5vw, 1.2rem); color: var(--cyan); text-shadow: 0 0 8px var(--cyan), 2px 2px 0 #000; }

p,
li {
    margin: 0 0 0.6em;
}

a {
    color: var(--yellow);
    text-shadow: 0 0 6px var(--yellow);
}

/* Chunky neon arcade buttons. */
button,
input[type="button"],
input[type="submit"] {
    font-family: var(--pixel-font);
    font-size: 0.8rem;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--yellow);
    background: #141438;
    border: 3px solid var(--cyan);
    border-radius: 0;
    padding: 14px 18px;
    cursor: pointer;
    text-shadow: 0 0 8px var(--yellow);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.55), inset 0 0 12px rgba(0, 240, 255, 0.12);
    transition: background-color 0.08s, color 0.08s, box-shadow 0.08s, transform 0.08s;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    color: var(--arcade-bg);
    background: var(--cyan);
    text-shadow: none;
    box-shadow: 0 0 24px var(--cyan), inset 0 0 14px #e6ffff;
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 8px var(--cyan);
}

button:disabled,
input[type="button"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

/* Terminal-style text inputs. */
input[type="text"] {
    font-family: var(--terminal-font);
    font-size: 1.5rem;
    color: var(--lime);
    background: #05050f;
    border: 2px solid var(--lime);
    border-radius: 0;
    padding: 6px 12px;
    outline: none;
    text-shadow: 0 0 6px var(--lime);
    box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.18), 0 0 10px rgba(57, 255, 20, 0.35);
}

input[type="text"]:focus {
    box-shadow: inset 0 0 14px rgba(57, 255, 20, 0.3), 0 0 18px var(--lime);
}

/* Reusable panel and blinking "insert coin" style text. */
.arcade-panel {
    background: linear-gradient(160deg, rgba(17, 17, 51, 0.95), rgba(5, 5, 16, 0.95));
    border: 3px solid var(--cyan);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3), inset 0 0 24px rgba(0, 0, 0, 0.7);
    padding: 1.25rem;
}

.blink {
    animation: arcade-blink 1.1s steps(2, start) infinite;
}

@keyframes arcade-blink {
    50% { opacity: 0; }
}

::selection {
    background: var(--magenta);
    color: var(--arcade-bg);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--arcade-bg); }
::-webkit-scrollbar-thumb { background: var(--magenta); border: 2px solid var(--arcade-bg); }

@media (prefers-reduced-motion: reduce) {
    .blink { animation: none; }
    * { transition-duration: 0.01ms !important; }
}
