@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Lexend:wght@400;500;600;700;800&display=swap');

:root {
  --gold: #E5BC10;
  --charcoal: #434345;
  --black: #000000;
  --white: #FFFFFF;
  --sand: #E2E0D7;
  --gray: #737373;
  --blue: #2F6FED;
  --radius: 16px;
  --cabinet: #19191b;
  --cabinet-panel: #29292d;
  --neon-gold: 0 0 6px rgba(229,188,16,0.85), 0 0 18px rgba(229,188,16,0.5), 0 0 34px rgba(229,188,16,0.22);
  --neon-blue: 0 0 6px rgba(47,111,237,0.9), 0 0 18px rgba(47,111,237,0.55), 0 0 34px rgba(47,111,237,0.25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  background: var(--white);
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.4em; }

/* Retro marquee-style display face — used sparingly, for titles only.
   Press Start 2P is unreadable at body-text sizes, so this never applies
   to paragraphs or long strings. */
.arcade-title {
  font-family: 'Press Start 2P', 'Lexend', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--charcoal);
}

/* Cabinet-panel look: a dark, slightly raised console panel with a neon
   accent border. Used to frame key screens against the arcade background. */
.cabinet-panel {
  background: var(--cabinet-panel);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid rgba(255,255,255,0.08);
}
.cabinet-panel.glow-gold { border-color: rgba(229,188,16,0.6); box-shadow: var(--neon-gold); }
.cabinet-panel.glow-blue { border-color: rgba(47,111,237,0.6); box-shadow: var(--neon-blue); }

/* Chunky arcade cabinet button: a bottom "ledge" that compresses on press,
   like a real arcade button, instead of a flat web button. */
.btn {
  font-family: inherit;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 4px 0 #a8890b, 0 7px 12px rgba(0,0,0,0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a8890b, 0 2px 5px rgba(0,0,0,0.35); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.dark { background: var(--charcoal); color: var(--white); box-shadow: 0 4px 0 #222223, 0 7px 12px rgba(0,0,0,0.35); }
.btn.dark:active { box-shadow: 0 1px 0 #222223, 0 2px 5px rgba(0,0,0,0.35); }
.btn.outline { background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal); box-shadow: none; }
.btn.outline:active { transform: translateY(1px); }
.btn.strike { background: #C4453B; color: var(--white); box-shadow: 0 4px 0 #7d2c25, 0 7px 12px rgba(0,0,0,0.35); }
.btn.strike:active { box-shadow: 0 1px 0 #7d2c25, 0 2px 5px rgba(0,0,0,0.35); }
.btn.small { padding: 8px 16px; font-size: 13px; box-shadow: 0 3px 0 rgba(0,0,0,0.3); }
.btn.small:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.3); }

input[type="text"], select {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid var(--sand);
  background: var(--white);
  color: var(--charcoal);
  width: 100%;
}
input[type="text"]:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229,188,16,0.35); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
}

.team-gold { color: var(--gold); }
.team-blue { color: var(--blue); }
.bg-team-gold { background: var(--gold); }
.bg-team-blue { background: var(--blue); }

/* Faint CRT scanline texture — a fixed overlay, very low opacity so it reads
   as arcade-monitor texture rather than interfering with reading text. */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.035) 0px,
    rgba(255,255,255,0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 9999;
}

::selection { background: var(--gold); color: var(--charcoal); }
