:root {
  --bg: #0b0c15;
  --panel: #151725;
  --panel-2: #1c1e31;
  --neon-red: #ff2a6d;
  --neon-blue: #05d9e8;
  --neon-gold: #ffd300;
  --text: #f0f0f0;
  --muted: #7a7d9c;
  --border: rgba(255, 255, 255, 0.1);
}

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

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,42,109,0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(5,217,232,0.12), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.screen.active { display: flex; }

.arcade-card {
  position: relative;
  width: min(900px, 95vw);
  background: var(--panel);
  border-radius: 28px;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(255,42,109,0.08), 0 0 100px rgba(5,217,232,0.05);
}

.arcade-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  background: linear-gradient(90deg, var(--neon-red), var(--neon-gold), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.arcade-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-gold);
}

.arcade-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.mode-select {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.mode-btn {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  overflow: hidden;
}

.mode-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.mode-btn.neon-red::before {
  background: radial-gradient(circle, rgba(255,42,109,0.18), transparent 70%);
}

.mode-btn.neon-blue::before {
  background: radial-gradient(circle, rgba(5,217,232,0.18), transparent 70%);
}

.mode-btn.primary::before {
  background: radial-gradient(circle, rgba(255,211,0,0.15), transparent 70%);
}

.mode-btn:hover::before { opacity: 1; }

.mode-btn:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

.mode-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.mode-btn .icon {
  font-size: 2.2rem;
  z-index: 1;
}

.mode-btn span:nth-of-type(2) {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  z-index: 1;
}

.mode-btn small {
  color: var(--muted);
  font-size: 0.85rem;
  z-index: 1;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  z-index: 10;
}

.back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}

.back:hover {
  border-color: var(--neon-gold);
  color: var(--neon-gold);
}

.score-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
}

.score-bar .red { color: var(--neon-red); font-weight: 900; text-shadow: 0 0 12px rgba(255,42,109,0.5); }
.score-bar .blue { color: var(--neon-blue); font-weight: 900; text-shadow: 0 0 12px rgba(5,217,232,0.5); }
.score-bar .vs { color: var(--muted); font-size: 0.9rem; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 6rem;
  width: min(960px, 95vw);
}

.game-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  background: radial-gradient(circle at 80% 20%, rgba(255,211,0,0.12), transparent 70%);
}

.game-card:hover::before { opacity: 1; }
.game-card:hover { border-color: var(--neon-gold); transform: translateY(-4px); }

.game-card .game-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.game-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.game-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.game-card.tournament {
  grid-column: span 2;
  border-color: rgba(255,211,0,0.35);
}

.game-ui {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding-top: 6rem;
}

.top-bar.absolute {
  position: absolute;
  top: 1.25rem;
  left: 1rem;
  right: 1rem;
  justify-content: center;
  font-size: 2.2rem;
  gap: 1.5rem;
  align-items: center;
}

.top-bar .back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}

.top-bar .back:hover {
  border-color: var(--neon-gold);
  color: var(--neon-gold);
}

.top-bar .label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

#game-stage {
  width: min(980px, 95vw);
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.controls-hint {
  display: flex;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
}

.controls-hint b { color: var(--neon-gold); }

.room-code {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.4em;
  color: var(--neon-gold);
  margin: 1rem 0;
  text-shadow: 0 0 20px rgba(255,211,0,0.4);
}

.players-joined {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.player-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 8px currentColor;
}

.player-dot.red { background: var(--neon-red); }
.player-dot.blue { background: var(--neon-blue); }

.qr-glow {
  display: inline-block;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(5,217,232,0.25);
  margin-bottom: 0.5rem;
}

.case-card {
  background: var(--panel-2);
  color: var(--text);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 760px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  font-size: 1.5rem;
  line-height: 1.5;
  position: relative;
}

.timer-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.timer-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-gold), var(--neon-red));
  width: 100%;
  transition: width 0.1s linear;
}

.choices {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
  justify-content: center;
}

.choice-btn {
  flex: 1;
  max-width: 260px;
  padding: 1.4rem 2rem;
  font-size: 1.3rem;
  font-weight: 800;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.1s ease;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.choice-btn:active { transform: scale(0.96); }

.choice-btn { position: relative; }

.choice-btn.selected {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.choice-btn.locked {
  opacity: 0.25;
  transform: scale(0.95);
  filter: grayscale(0.7);
}

.choice-real { background: var(--neon-blue); color: #000; box-shadow: 0 0 24px rgba(5,217,232,0.4); }
.choice-fake { background: var(--neon-red); color: #000; box-shadow: 0 0 24px rgba(255,42,109,0.4); }

.reveal-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  padding: 0.5rem 1.25rem;
  border: 5px solid;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 10;
  background: rgba(11,12,21,0.95);
}

.reveal-stamp.real { color: var(--neon-blue); border-color: var(--neon-blue); text-shadow: 0 0 20px rgba(5,217,232,0.6); }
.reveal-stamp.fake { color: var(--neon-red); border-color: var(--neon-red); text-shadow: 0 0 20px rgba(255,42,109,0.6); }

.verdict {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.round-label {
  font-family: 'Orbitron', sans-serif;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.countdown {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 900;
  color: var(--neon-gold);
  text-shadow: 0 0 40px rgba(255,211,0,0.5);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.winner-screen h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--neon-gold);
  text-shadow: 0 0 30px rgba(255,211,0,0.4);
  margin-bottom: 1rem;
}

.winner-screen .winner-name {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.winner-screen .winner-name.red { color: var(--neon-red); text-shadow: 0 0 20px rgba(255,42,109,0.5); }
.winner-screen .winner-name.blue { color: var(--neon-blue); text-shadow: 0 0 20px rgba(5,217,232,0.5); }

.locked { opacity: 0.35; transform: scale(0.98); pointer-events: none; }

@media (max-width: 800px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
  .game-card.tournament { grid-column: span 2; }
  .controls-hint { flex-direction: column; gap: 0.5rem; }
  .choices { flex-direction: column; align-items: center; }
}

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: 140px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
}

.form-row .mode-btn {
  flex: 0 0 auto;
  padding: 1rem 1.5rem;
}

.tournament-chambers, .tournament-players {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chamber-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 0.7rem 1rem;
}

.chamber-name { font-weight: 700; font-family: 'Orbitron', sans-serif; font-size: 0.9rem; }
.chamber-score { color: var(--muted); font-size: 0.85rem; }

.player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.player-name { font-weight: 600; }
.player-stats { color: var(--muted); font-size: 0.85rem; }

.match-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
}

.versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.combatant {
  flex: 1;
  text-align: center;
}

.combatant-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.combatant-chamber {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: var(--muted);
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border-left: 4px solid var(--neon-gold);
}

.juror-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.juror-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.juror-bias {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.juror-clue {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

@media (max-width: 640px) {
  .form-row { flex-direction: column; }
  .form-row .mode-btn { width: 100%; }
  .versus { flex-direction: column; }
  .juror-card { min-height: 130px; }
}


/* ============================================================
   GAME UI — shared additions for Games 2–5 (neon arcade)
   ============================================================ */
:root { --neon-green: #39ff9e; }

.stage-wrap { width: min(1000px, 96vw); display: flex; flex-direction: column; gap: 1rem; }
.stage-q {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 20px;
  padding: 1.6rem 1.8rem; text-align: center; box-shadow: 0 16px 50px rgba(0,0,0,0.45);
}
.stage-q .lab { font-family: 'Orbitron', sans-serif; font-size: 0.7rem; letter-spacing: 0.2em; color: var(--neon-gold); text-transform: uppercase; }
.stage-q .qtext { font-size: clamp(1.2rem, 3vw, 1.9rem); line-height: 1.35; margin-top: 0.6rem; }

/* ---- Objection! ---- */
.obj-arena {
  position: relative; width: min(980px, 95vw); min-height: 46vh; display: flex; overflow: hidden;
  border: 1px solid var(--border); border-radius: 24px; background: var(--panel-2);
  transition: background 0.12s ease; cursor: pointer;
}
.obj-arena.go { background: radial-gradient(circle, rgba(255,42,109,0.5), rgba(120,10,40,0.4)); }
.obj-arena.sustain { background: radial-gradient(circle, rgba(5,217,232,0.4), rgba(10,50,60,0.35)); }
.obj-half { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-family: 'Orbitron', sans-serif; font-size: 0.85rem; letter-spacing: 0.12em; transition: background 0.12s; }
.obj-half.left { border-right: 1px solid var(--border); }
.obj-half.buzzed.red { background: radial-gradient(circle, rgba(255,42,109,0.45), transparent 70%); }
.obj-half.buzzed.blue { background: radial-gradient(circle, rgba(5,217,232,0.45), transparent 70%); }
.obj-signal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 1rem; }
.obj-big { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(2.4rem, 9vw, 6rem); text-transform: uppercase; letter-spacing: 0.04em; }
.obj-arena.go .obj-big { color: #fff; text-shadow: 0 0 40px rgba(255,42,109,0.9); }
.obj-arena.sustain .obj-big { color: var(--neon-blue); text-shadow: 0 0 30px rgba(5,217,232,0.7); }
.obj-sub { color: var(--muted); font-family: 'Inter', sans-serif; margin-top: 0.6rem; font-size: 1.05rem; }
.obj-big.red { color: var(--neon-red); text-shadow: 0 0 24px rgba(255,42,109,0.6); }
.obj-big.blue { color: var(--neon-blue); text-shadow: 0 0 24px rgba(5,217,232,0.6); }

/* ---- Sustained + Order shared answer tiles ---- */
.split-cols { display: flex; gap: 1.25rem; width: 100%; }
.split-col { flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.split-col > .tag { font-family: 'Orbitron', sans-serif; font-size: 0.8rem; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.split-col.red > .tag { color: var(--neon-red); }
.split-col.blue > .tag { color: var(--neon-blue); }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.opt-tile {
  display: flex; align-items: center; gap: 0.6rem; text-align: left; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 0.8rem 0.9rem; color: var(--text); font-family: 'Inter', sans-serif; transition: all 0.12s ease;
}
.opt-tile:hover { border-color: var(--neon-gold); }
.opt-tile .k { flex: 0 0 auto; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 7px; border: 1px solid var(--border); font-family: 'Orbitron', sans-serif; font-size: 0.75rem; color: var(--neon-gold); }
.opt-tile .t { font-size: 0.98rem; line-height: 1.2; }
.split-col.red .opt-tile.picked { background: rgba(255,42,109,0.28); border-color: var(--neon-red); }
.split-col.blue .opt-tile.picked { background: rgba(5,217,232,0.28); border-color: var(--neon-blue); }
.opt-tile.correct { background: rgba(57,255,158,0.22) !important; border-color: var(--neon-green) !important; }
.opt-tile.wrong { background: rgba(255,42,109,0.22) !important; border-color: var(--neon-red) !important; opacity: 0.85; }
.split-col.locked .opt-tile { cursor: default; }
.col-status { text-align: center; font-family: 'Inter', sans-serif; font-style: italic; color: var(--neon-gold); font-size: 0.9rem; min-height: 18px; }

/* Order option cards (stacked, bigger) */
.order-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.order-grid .opt-tile { padding: 1rem; }
.order-grid .opt-tile .t { font-size: 1.05rem; }

/* Vote overlay */
.vote-overlay { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 1.5rem; background: radial-gradient(circle at 50% 40%, rgba(11,12,21,0.9), rgba(6,6,12,0.96)); }
.vote-overlay h3 { font-family: 'Orbitron', sans-serif; color: var(--neon-gold); font-size: clamp(1.3rem, 3.5vw, 2.2rem); text-align: center; text-transform: uppercase; }
.vote-picks { display: flex; gap: 1.25rem; width: min(940px, 96vw); flex-wrap: wrap; }
.vote-pick { flex: 1; min-width: 260px; cursor: pointer; border-radius: 16px; padding: 1.5rem; text-align: center; background: var(--panel-2); border: 2px solid var(--border); transition: transform 0.15s, box-shadow 0.15s; }
.vote-pick.red { border-color: rgba(255,42,109,0.6); }
.vote-pick.blue { border-color: rgba(5,217,232,0.6); }
.vote-pick:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.vote-pick .who { font-family: 'Orbitron', sans-serif; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
.vote-pick.red .who { color: var(--neon-red); }
.vote-pick.blue .who { color: var(--neon-blue); }
.vote-pick .sentence { font-size: 1.15rem; line-height: 1.35; }
.vote-pick .sentence b { color: var(--neon-gold); }
.vote-cue { font-family: 'Inter', sans-serif; font-style: italic; color: var(--muted); }

/* ---- Beat the Gavel ---- */
.gavel-cols { display: flex; gap: 1.5rem; width: min(1000px, 96vw); }
.gavel-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.gavel-col .tag { font-family: 'Orbitron', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
.gavel-col.red .tag { color: var(--neon-red); }
.gavel-col.blue .tag { color: var(--neon-blue); }
.meter { position: relative; width: 100%; max-width: 420px; height: 74px; border-radius: 14px; overflow: hidden;
  border: 1.5px solid var(--border); background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2)); cursor: pointer; }
.meter .mlabels { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; pointer-events: none; font-family: 'Orbitron', sans-serif; font-size: 0.6rem; letter-spacing: 0.06em; color: var(--muted); }
.meter .mlabels .mid { color: var(--neon-green); }
.zone { position: absolute; top: 0; bottom: 0; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(57,255,158,0.5), rgba(57,255,158,0.28)); border-left: 1px solid var(--neon-green); border-right: 1px solid var(--neon-green); }
.needle { position: absolute; top: -3px; bottom: -3px; width: 4px; left: 0; border-radius: 2px; background: var(--neon-gold); box-shadow: 0 0 12px rgba(255,211,0,0.9); }
.meter.hit { box-shadow: 0 0 0 2px var(--neon-green), 0 0 24px rgba(57,255,158,0.5) inset; }
.meter.miss { box-shadow: 0 0 0 2px var(--neon-red), 0 0 24px rgba(255,42,109,0.4) inset; }
.gavel-btn { font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: 0.05em; color: var(--text); cursor: pointer;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 0.8rem 1.6rem; background: rgba(255,255,255,0.04); transition: 0.12s; }
.gavel-btn:hover { border-color: var(--neon-gold); }
.gavel-btn b { color: var(--neon-gold); }
.gavel-result { font-family: 'Inter', sans-serif; font-style: italic; font-size: 1rem; min-height: 22px; }
.gavel-result.good { color: var(--neon-green); }
.gavel-result.bad { color: var(--neon-red); }
.gavel-greens { font-family: 'Orbitron', sans-serif; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--neon-gold); }
.stage-banner { font-family: 'Inter', sans-serif; font-style: italic; color: var(--neon-gold); text-align: center; margin-bottom: 0.4rem; }

/* ============================================================
   NEON-PLUS UPGRADE — atmosphere, glass, gradient title,
   per-game accents. Overrides only the shell look; all
   functional hooks (ids, classes, data-*) are untouched.
   ============================================================ */
:root { --violet: #a56bff; --neon-green: #39ff9e; }

/* atmospheric background layer */
.fx { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.fx-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.fx-glow.g1 { width: 60vw; height: 60vw; left: -15vw; top: -10vw; background: radial-gradient(circle, rgba(255,42,109,0.32), transparent 65%); }
.fx-glow.g2 { width: 60vw; height: 60vw; right: -15vw; top: -5vw; background: radial-gradient(circle, rgba(5,217,232,0.30), transparent 65%); }
.fx-glow.g3 { width: 50vw; height: 50vw; left: 25vw; bottom: -25vw; background: radial-gradient(circle, rgba(165,107,255,0.26), transparent 65%); }
.fx-grid { position: absolute; left: 50%; bottom: -2vh; width: 260vw; height: 52vh; transform: translateX(-50%) perspective(46vh) rotateX(66deg);
  background-image: linear-gradient(rgba(5,217,232,0.26) 1px, transparent 1px), linear-gradient(90deg, rgba(255,42,109,0.20) 1px, transparent 1px);
  background-size: 5vh 5vh; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: fxflow 4s linear infinite; }
@keyframes fxflow { to { background-position: 0 5vh, 0 0; } }
.fx-scan { position: absolute; inset: 0; opacity: 0.4; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.22) 2px 4px); }
.fx-vig { position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0,0,0,0.68)); }
body::before { display: none; }   /* replaced by .fx layer */

/* fonts */
.arcade-subtitle { font-family: 'Rajdhani', sans-serif; font-weight: 600; letter-spacing: 0.06em; }
.controls-hint { font-family: 'Rajdhani', sans-serif !important; font-weight: 600; }

/* glass panels */
.arcade-card {
  background: rgba(21,23,37,0.62) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 60px rgba(255,42,109,0.06), 0 0 80px rgba(5,217,232,0.05) !important;
}

/* gradient title with echo */
.arcade-title { position: relative; letter-spacing: 0.06em; filter: drop-shadow(0 0 22px rgba(165,107,255,0.35)); }
.arcade-title::after { content: "THE BAR GAMES"; position: absolute; inset: 0; color: transparent; -webkit-text-stroke: 1px rgba(5,217,232,0.22); transform: translate(2px, 2px); z-index: -1; }

/* mode buttons — glass + neon */
.mode-btn { background: rgba(21,23,37,0.55) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.12) !important; }
.mode-btn.neon-red { border-color: rgba(255,42,109,0.45) !important; }
.mode-btn.neon-blue { border-color: rgba(5,217,232,0.45) !important; }
.mode-btn.primary { border-color: rgba(255,211,0,0.5) !important; }
.mode-btn.neon-red:hover { box-shadow: 0 16px 40px rgba(255,42,109,0.28), 0 0 0 1px var(--neon-red) inset !important; }
.mode-btn.neon-blue:hover { box-shadow: 0 16px 40px rgba(5,217,232,0.28), 0 0 0 1px var(--neon-blue) inset !important; }

/* game cards — per-game neon accent + spine */
.game-card { background: rgba(21,23,37,0.55) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; }
.game-card[data-game="guilty"]     { --c: #ff2a6d; }
.game-card[data-game="objection"]  { --c: #05d9e8; }
.game-card[data-game="sustained"]  { --c: #a56bff; }
.game-card[data-game="order"]      { --c: #39ff9e; }
.game-card[data-game="gavel"]      { --c: #ffd300; }
.game-card[data-game="tournament"] { --c: #ffd300; }
.game-card::before { background: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--c, #05d9e8) 20%, transparent), transparent 70%) !important; }
.game-card::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--c, #05d9e8); box-shadow: 0 0 16px var(--c, #05d9e8); opacity: 0.9; }
.game-card:hover { border-color: var(--c, var(--neon-gold)) !important; box-shadow: 0 20px 46px rgba(0,0,0,0.5), 0 0 26px -6px var(--c, #05d9e8) !important; transform: translateY(-5px); }
.game-card h3 { color: var(--c, #fff); }
.game-card p { color: var(--muted); }
