:root {
  --yellow: #ffd400;
  --yellow-deep: #f2b705;
  --ink: #0b0b0b;
  --ink-2: #15161a;
  --ink-3: #1e2027;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f7f2;
  --muted: #a6a8b3;
  --danger: #ff5a5f;
  --cyan: #27e0ff;
  --pink: #ff5a8f;
  --green: #39e58c;
  --purple: #a56bff;
  --orange: #ff9f1c;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(700px 420px at 12% 18%, rgba(39, 224, 255, 0.13), transparent 62%),
    radial-gradient(720px 440px at 88% 12%, rgba(165, 107, 255, 0.16), transparent 62%),
    radial-gradient(900px 480px at 50% -10%, rgba(255, 212, 0, 0.2), transparent 65%),
    var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button {
  font-family: inherit;
}

.app {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(8px, 2vw, 20px);
}

.screen-wrap {
  width: 100%;
  max-width: min(90vw, 1600px);
}

.touch-only {
  display: none;
}

body.is-touch .touch-only {
  display: inline-block;
}

.screen {
  display: none;
  width: 100%;
}

.screen.is-active {
  display: block;
  animation: rise 0.35s ease both;
}

#screen-start.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

.hero {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 0;
  text-align: center;
}

.mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.mode-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.mode-btn:hover {
  color: var(--text);
}

.mode-btn.is-active {
  background: var(--yellow);
  color: var(--ink);
}

.mode-btn:focus-visible {
  outline: 3px solid rgba(255, 212, 0, 0.45);
  outline-offset: 2px;
}

.hero-logo {
  display: block;
  width: clamp(76px, 11vw, 104px);
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 14px 28px rgba(255, 212, 0, 0.24));
}

.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 0.94;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title span {
  color: transparent;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--orange) 42%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  margin: 0 auto 22px;
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 212, 0, 0.45);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(255, 212, 0, 0.2);
}

.btn-primary:hover {
  background: #ffdf3a;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 212, 0, 0.55);
  color: var(--yellow);
}

.btn-small {
  padding: 9px 16px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

.facts {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  gap: 1px;
}

.facts strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--yellow);
}

.facts li:nth-child(2) strong {
  color: var(--cyan);
}

.facts li:nth-child(3) strong {
  color: var(--purple);
}

.facts span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage {
  position: relative;
  width: min(90vw, calc(90vh * 16 / 9), 1600px);
  width: min(90vw, calc(90dvh * 16 / 9), 1600px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05070a;
  box-shadow: var(--shadow);
  touch-action: none;
  user-select: none;
}

.game-root {
  position: absolute;
  inset: 0;
}

.game-root canvas {
  display: block;
  image-rendering: pixelated;
  touch-action: none;
}

.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  padding: clamp(6px, 1.4vw, 12px) clamp(8px, 1.8vw, 16px);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.hud-side {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(11, 11, 11, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  width: max-content;
  max-width: 100%;
}

.hud-side:first-child {
  border-color: rgba(39, 224, 255, 0.34);
}

.hud-side:first-child .hud-score {
  color: var(--cyan);
}

.hud-side:first-child .hud-score.is-lives {
  color: var(--danger);
}

.hud-away {
  justify-self: end;
  border-color: rgba(255, 90, 143, 0.3);
}

.hud-name {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud-score {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1;
  color: var(--yellow);
}

.hud-score.is-lives {
  font-family: var(--font-body);
  font-size: clamp(13px, 2.1vw, 18px);
  letter-spacing: 2px;
  color: var(--danger);
}

.hud-clock {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 5px 16px;
  border-radius: 12px;
  background: rgba(11, 11, 11, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.hud-timer {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 26px);
  line-height: 1;
  letter-spacing: 1px;
}

.hud-timer.is-low {
  color: var(--danger);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

.hud-clock-label {
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage[data-mode="v2"] {
  border-radius: 2px;
  border-width: 2px;
}

.stage[data-mode="v2"] .hud-side,
.stage[data-mode="v2"] .hud-clock {
  border-radius: 0;
  backdrop-filter: none;
}

.stage[data-mode="v2"] .hud-clock {
  display: none;
}

.stage[data-mode="v2"] .hud-away {
  grid-column: 3;
}

.stage[data-mode="v2"] .hud-name,
.stage[data-mode="v2"] .hud-clock-label,
.stage[data-mode="v2"] .hud-score,
.stage[data-mode="v2"] .hud-timer,
.stage[data-mode="v2"] .btn-quit {
  font-family: "Press Start 2P", "Courier New", monospace;
}

.stage[data-mode="v2"] .hud-name,
.stage[data-mode="v2"] .hud-clock-label {
  font-size: 7px;
  letter-spacing: 0.04em;
}

.stage[data-mode="v2"] .hud-score {
  font-size: clamp(12px, 1.7vw, 16px);
}

.stage[data-mode="v2"] .hud-score.is-lives {
  font-size: clamp(9px, 1.4vw, 12px);
  letter-spacing: 1px;
}

.stage[data-mode="v2"] .hud-timer {
  font-size: clamp(12px, 1.7vw, 16px);
  letter-spacing: 0;
}

.stage[data-mode="v2"] .btn-quit {
  border-radius: 0;
  font-size: 8px;
}

.btn-quit {
  position: absolute;
  top: clamp(52px, 11vw, 66px);
  right: clamp(8px, 1.8vw, 14px);
  z-index: 3;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.66);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 11px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.btn-quit:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.dpad {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(8px, 2vw, 18px);
  padding: 0 clamp(8px, 2.2vw, 18px);
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  z-index: 4;
  touch-action: none;
  user-select: none;
}

.dpad-left,
.dpad-right {
  width: clamp(76px, 13vw, 96px);
  height: clamp(76px, 13vw, 96px);
  font-size: clamp(24px, 4.6vw, 34px);
}

.dpad-left {
  background: linear-gradient(180deg, rgba(39, 224, 255, 0.34), rgba(11, 11, 11, 0.68));
  border-color: rgba(39, 224, 255, 0.52);
}

.dpad-right {
  background: linear-gradient(180deg, rgba(255, 90, 143, 0.34), rgba(11, 11, 11, 0.68));
  border-color: rgba(255, 90, 143, 0.52);
}

.dpad-jump {
  width: clamp(60px, 12vw, 80px);
  height: clamp(60px, 12vw, 80px);
  margin-left: auto;
  background: rgba(255, 212, 0, 0.9);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.35);
}

.dpad-jump.is-pressed {
  background: #fff;
  color: var(--ink);
}

.dpad-btn {
  appearance: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: rgba(11, 11, 11, 0.55);
  color: var(--text);
  font-size: clamp(16px, 3.2vw, 22px);
  line-height: 1;
  display: grid;
  place-items: center;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.dpad-btn.is-pressed {
  transform: scale(0.94);
  background: rgba(255, 212, 0, 0.9);
  color: var(--ink);
}

body.is-touch .dpad {
  display: flex;
}

body[data-mode="v2"] .dpad-jump {
  display: none;
}

.hint {
  margin: 10px auto 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

body.is-touch .hint {
  display: none;
}

.rotate-note {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.rotate-note .btn {
  flex: 0 0 auto;
}

body.is-fullscreen .app {
  min-height: 100dvh;
  padding: 0;
}

body.is-fullscreen .screen-wrap {
  max-width: 100vw;
}

body.is-fullscreen .stage {
  width: min(100vw, calc(100dvh * 16 / 9));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text);
}

.panel {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 32, 39, 0.9), rgba(15, 16, 20, 0.94));
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4.4vw, 38px);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.leaderboard-layout {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  width: min(100%, 840px);
  margin: 0 auto;
}

.leaderboard-layout .panel {
  flex: 1 1 640px;
  min-width: 0;
  margin: 0;
}

.leaderboard-bahlil {
  position: relative;
  display: flex;
  flex: 0 0 150px;
  align-items: flex-end;
  justify-content: center;
  width: 150px;
  height: 190px;
  animation: bahlil-hop 1.9s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

.leaderboard-bahlil::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  z-index: -1;
  width: 96px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.42), transparent);
  transform: translateX(-50%);
}

.leaderboard-bahlil-sprite {
  display: block;
  width: 120px;
  height: 150px;
  background: url("assets/bahlil-celebrate.png") 0 0 / 600px 150px no-repeat;
  image-rendering: pixelated;
  animation: bahlil-celebrate 0.8s steps(5) infinite;
}

@keyframes bahlil-celebrate {
  to {
    background-position: -600px 0;
  }
}

@keyframes bahlil-hop {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-18px);
  }
  55% {
    transform: translateY(-18px);
  }
  70% {
    transform: translateY(0);
  }
}

.table-wrap {
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.leaderboard th {
  padding: 10px 12px;
  text-align: left;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(90deg, rgba(39, 224, 255, 0.13), rgba(165, 107, 255, 0.13));
}

.leaderboard td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.leaderboard .num {
  text-align: right;
}

.leaderboard td.num {
  text-align: right;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--yellow);
}

.leaderboard tr.is-me td {
  background: rgba(255, 212, 0, 0.1);
}

.leaderboard .name {
  display: block;
}

.leaderboard .sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.leaderboard .rank {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--muted);
}

.leaderboard tr.is-podium .rank {
  color: var(--yellow);
}

.leaderboard tr.is-podium:nth-child(2) .rank {
  color: #d8e0ea;
}

.leaderboard tr.is-podium:nth-child(3) .rank {
  color: #ff9f6e;
}

.leaderboard .empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 5, 7, 0.78);
  backdrop-filter: blur(6px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 400px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: clamp(18px, 3.4vw, 28px);
  border-radius: 20px;
  border: 1px solid rgba(255, 212, 0, 0.28);
  background: linear-gradient(180deg, #1b1c22, #101116);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: rise 0.3s ease both;
}

.modal-title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.challenge-text {
  margin: 12px 0 18px;
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.modal-actions .btn {
  flex: 1;
  max-width: 140px;
}

.modal-score {
  margin: 8px 0 2px;
  font-family: var(--font-display);
  font-size: clamp(44px, 10vw, 60px);
  line-height: 1;
  color: var(--yellow);
}

.modal-verdict {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 5px;
}

.field span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input::placeholder {
  color: #6c6f7c;
}

.field input:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255, 212, 0, 0.06);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.consent input {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--yellow);
  flex: 0 0 auto;
}

.form-error {
  margin: 0;
  font-size: 12px;
  color: var(--danger);
}

.btn-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  justify-self: center;
}

.btn-link:hover {
  color: var(--text);
}

.btn-link:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 820px) {
  .leaderboard-bahlil {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaderboard-bahlil,
  .leaderboard-bahlil-sprite {
    animation: none;
  }
}

@media (max-width: 560px) {
  .app {
    padding: 10px;
  }

  .hud-side {
    padding: 5px 9px;
    gap: 5px;
  }

  .hud-name {
    display: none;
  }

  .hud-clock {
    padding: 4px 11px;
  }

  .btn-quit {
    top: 46px;
    right: 8px;
  }

  .leaderboard th,
  .leaderboard td {
    padding: 9px 9px;
    font-size: 12px;
  }

  .panel-actions {
    justify-content: stretch;
  }

  .panel-actions .btn {
    width: 100%;
  }
}

@media (pointer: coarse) and (orientation: portrait) {
  body[data-screen="game"] .screen-wrap {
    max-width: 100vw;
  }

  body[data-screen="game"] .app {
    padding: 4px;
  }

  body[data-screen="game"] .stage {
    width: calc(100vw - 8px);
  }

  .rotate-note {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .app {
    padding: 4px;
  }

  .screen-wrap {
    max-width: 100vw;
  }

  .stage {
    width: min(90vw, calc(90dvh * 16 / 9), 1600px);
  }
}

.hero-kicker {
  margin: -2px 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-brief {
  max-width: 540px;
  margin: 0 auto 22px;
  padding: 12px 16px;
  border: 1px solid rgba(165, 107, 255, 0.34);
  border-radius: 12px;
  background: rgba(165, 107, 255, 0.08);
  text-align: left;
}

.hero-brief-label {
  display: block;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
}

.hero-brief .hero-copy {
  margin: 0;
  max-width: none;
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.55;
}

.creator {
  margin: 22px 0 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.creator strong {
  color: var(--text);
  font-weight: 700;
}

.hero-story {
  max-width: 540px;
  margin: 0 auto 10px;
  padding: 12px 16px 12px 18px;
  border-left: 3px solid var(--cyan);
  border-radius: 4px 12px 12px 4px;
  background: rgba(39, 224, 255, 0.07);
  text-align: left;
}

.hero-story .hero-brief-label {
  color: var(--cyan);
}

.hero-story p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.55;
}

/* ============ ARCADE UI ============ */

body {
  background:
    radial-gradient(1200px 700px at 50% -20%, rgba(255, 212, 0, 0.16), transparent 62%),
    radial-gradient(900px 600px at -10% 20%, rgba(39, 224, 255, 0.12), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(255, 90, 143, 0.1), transparent 60%),
    linear-gradient(180deg, #071014 0%, #05080b 55%, #030507 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 78%);
  opacity: 0.55;
}

.app {
  position: relative;
  z-index: 1;
}

.game-shell {
  position: relative;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 26px);
  overflow: hidden;
  border: 2px solid rgba(255, 212, 0, 0.44);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 28, 33, 0.97), rgba(5, 9, 12, 0.99));
  box-shadow:
    0 0 0 6px rgba(255, 212, 0, 0.05),
    0 0 0 7px rgba(0, 0, 0, 0.65),
    0 34px 90px rgba(0, 0, 0, 0.7),
    inset 0 0 90px rgba(39, 224, 255, 0.045);
}

.game-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 4px);
  opacity: 0.55;
}

.game-shell > * {
  position: relative;
  z-index: 1;
}

.shell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: clamp(14px, 2.2vw, 24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shell-logo,
.board-trophy {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
}

.shell-logo {
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(255, 212, 0, 0.28));
}

.board-trophy {
  display: grid;
  place-items: center;
  border: 2px solid #634f00;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe45c, #ffc400);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}

.shell-brand-text {
  min-width: 0;
}

.shell-kicker {
  display: block;
  margin-bottom: 1px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cyan);
}

.shell-name {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 400;
  letter-spacing: 1.4px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.shell-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.status-live,
.status-chip,
.board-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
}

.status-live {
  border: 1px solid rgba(57, 229, 140, 0.4);
  background: rgba(57, 229, 140, 0.08);
  color: var(--green);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(57, 229, 140, 0.14);
  animation: statusPulse 1.6s ease-in-out infinite;
}

@keyframes statusPulse {
  50% {
    box-shadow: 0 0 0 7px rgba(57, 229, 140, 0.04);
    opacity: 0.65;
  }
}

.status-chip,
.board-badge {
  border: 1px solid rgba(255, 212, 0, 0.42);
  background: rgba(255, 212, 0, 0.1);
  color: var(--yellow);
}

.home-shell .hero {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: clamp(18px, 3.8vw, 42px);
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(14px, 2.2vw, 22px);
  text-align: left;
}

.hero-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 350px;
  padding: 20px 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(39, 224, 255, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(39, 224, 255, 0.2), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, rgba(8, 40, 30, 0.72), rgba(4, 12, 10, 0.94));
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: auto 12% 74px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.hero-showcase::after {
  content: "";
  position: absolute;
  bottom: 48px;
  left: 50%;
  width: 160px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  transform: translateX(-50%);
}

.showcase-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
}

.bahlil-idle {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 225px;
  background: url("assets/bahlil-spritesheet.png") 0 0 / 1080px 900px no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.68));
  animation: bahlilBob 2.6s ease-in-out infinite;
}

@keyframes bahlilBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.showcase-name {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  padding: 6px 14px;
  border: 2px solid #634f00;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe45c, #ffc400);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-align: left;
}

.home-shell .hero-title {
  margin-bottom: 10px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 0.9;
}

.home-shell .hero-kicker {
  margin: 0 0 15px;
  color: var(--cyan);
}

.home-shell .hero-story,
.home-shell .hero-brief {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.home-shell .hero-story {
  margin-bottom: 8px;
}

.home-shell .hero-brief {
  margin-bottom: 16px;
}

.home-shell .hero-actions {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.home-shell .facts {
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.home-shell .facts li {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.home-shell .facts strong {
  font-size: clamp(20px, 2.8vw, 26px);
}

.home-shell .facts span {
  font-size: 8px;
  letter-spacing: 0.1em;
}

.shell-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-footer .creator {
  margin: 0;
  text-align: left;
}

.shell-footer-tip {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Arcade buttons */
.btn {
  border: 2px solid rgba(0, 0, 0, 0.9);
  border-radius: 6px;
  padding: 11px 21px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1.2px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.55);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.btn-primary {
  border-color: #5c4900;
  background: linear-gradient(180deg, #ffe45c, #ffc400);
  box-shadow: 0 4px 0 #5c4900;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffe97a, #ffd21a);
  box-shadow: 0 6px 0 #5c4900;
}

.btn-ghost {
  border-color: rgba(39, 224, 255, 0.48);
  background: linear-gradient(180deg, rgba(39, 224, 255, 0.13), rgba(8, 12, 16, 0.92));
  color: #c9f8ff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
}

.home-shell #btn-start {
  min-width: 180px;
  font-size: 18px;
}

.btn-small {
  padding: 8px 14px;
  font-size: 11px;
}

/* Leaderboard */
.board-shell {
  width: min(100%, 980px);
}

.leaderboard-layout {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: 0;
}

.board-shell .panel {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(39, 224, 255, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 22, 27, 0.96), rgba(5, 10, 13, 0.98));
  box-shadow: inset 0 0 40px rgba(39, 224, 255, 0.04), 0 20px 50px rgba(0, 0, 0, 0.45);
}

.board-shell .panel-head {
  align-items: center;
  margin-bottom: 12px;
}

.board-shell .panel-head h2 {
  margin-top: 1px;
  font-size: clamp(26px, 4vw, 40px);
}

.board-shell .eyebrow {
  margin-bottom: 3px;
  color: var(--cyan);
}

.table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.leaderboard {
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 13px;
}

.leaderboard th {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(39, 224, 255, 0.1);
  color: #c7f5ff;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.leaderboard td {
  padding: 9px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.045);
}

.leaderboard tbody tr:first-child td {
  border-top: 0;
}

.leaderboard th.num,
.leaderboard td.num {
  width: 86px;
}

.leaderboard tbody tr:hover td {
  background: rgba(39, 224, 255, 0.1);
}

.leaderboard .rank {
  width: 44px;
  font-size: 15px;
}

.leaderboard tr.is-podium td {
  background: linear-gradient(90deg, rgba(255, 212, 0, 0.16), rgba(255, 255, 255, 0.035));
}

.leaderboard tr.is-podium:nth-child(2) td {
  background: linear-gradient(90deg, rgba(216, 224, 234, 0.13), rgba(255, 255, 255, 0.03));
}

.leaderboard tr.is-podium:nth-child(3) td {
  background: linear-gradient(90deg, rgba(255, 159, 110, 0.13), rgba(255, 255, 255, 0.03));
}

.leaderboard tr.is-podium .rank {
  color: var(--yellow);
}

.board-shell .leaderboard td.num {
  font-size: 19px;
}

.leaderboard .sub {
  color: rgba(201, 248, 255, 0.55);
}

.board-shell .panel-actions {
  margin-top: 14px;
}

.leaderboard-bahlil {
  flex: 0 0 170px;
  width: 170px;
  height: 230px;
}

.leaderboard-bahlil-sprite {
  width: 150px;
  height: 187px;
  background-size: 750px 187px;
  animation-name: bahlil-celebrate-lg;
  filter: drop-shadow(0 0 18px rgba(255, 212, 0, 0.28));
}

@keyframes bahlil-celebrate-lg {
  to {
    background-position: -750px 0;
  }
}

.board-shell .panel-actions .btn {
  min-width: 160px;
}

@media (max-width: 900px) {
  .home-shell .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .hero-showcase {
    order: -1;
    width: min(100%, 260px);
    min-height: 0;
    margin: 0 auto;
    padding-top: 26px;
  }

  .hero-content,
  .home-shell .hero-content {
    text-align: center;
  }

  .home-shell .hero-actions,
  .home-shell .facts {
    justify-content: center;
  }

  .home-shell .hero-story,
  .home-shell .hero-brief {
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .shell-footer {
    text-align: center;
  }
}

@media (max-width: 820px) {
  .leaderboard-layout {
    gap: 0;
  }

  .board-shell .panel {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .game-shell {
    padding: 12px;
    border-radius: 8px;
  }

  .shell-bar {
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }

  .shell-logo,
  .board-trophy {
    width: 38px;
    height: 38px;
  }

  .board-trophy {
    font-size: 20px;
  }

  .shell-status .status-live {
    display: none;
  }

  .status-chip,
  .board-badge {
    padding: 6px 8px;
    font-size: 9px;
  }

  .home-shell .hero-title {
    font-size: clamp(34px, 11vw, 54px);
  }

  .bahlil-idle {
    width: 140px;
    height: 175px;
    background-size: 840px 700px;
  }

  .hero-showcase {
    width: min(100%, 220px);
    padding: 22px 10px 14px;
  }

  .showcase-name {
    font-size: 13px;
  }

  .home-shell .facts {
    gap: 5px;
  }

  .home-shell .facts li {
    padding: 8px 6px;
  }

  .shell-footer {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .shell-footer .creator {
    text-align: center;
  }

  .board-shell .panel {
    padding: 12px;
  }

  .board-shell .panel-head {
    margin-bottom: 10px;
  }

  .board-shell .panel-head h2 {
    font-size: clamp(22px, 8vw, 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bahlil-idle,
  .status-dot {
    animation: none;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .home-shell .hero {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    gap: 16px;
    text-align: left;
  }

  .hero-showcase {
    order: 0;
    width: auto;
    min-height: 230px;
    margin: 0;
    padding-top: 20px;
  }

  .bahlil-idle {
    width: 120px;
    height: 150px;
    background-size: 720px 600px;
  }

  .home-shell .hero-content {
    text-align: left;
  }

  .home-shell .hero-actions,
  .home-shell .facts {
    justify-content: flex-start;
  }

  .home-shell .hero-story,
  .home-shell .hero-brief {
    margin-right: 0;
    margin-left: 0;
  }

  .home-shell .hero-title {
    font-size: clamp(34px, 5vw, 52px);
  }

  .home-shell .hero-story p,
  .home-shell .hero-brief .hero-copy {
    font-size: 11px;
    line-height: 1.45;
  }

  .shell-footer {
    text-align: left;
  }

  .shell-footer .creator {
    text-align: left;
  }
}

/* Home fit + side-by-side info */
.home-shell {
  padding: clamp(12px, 2vw, 22px);
}

.home-shell .hero {
  gap: clamp(16px, 3vw, 34px);
  padding-bottom: 10px;
}

.hero-showcase {
  min-height: 320px;
}

.home-shell .hero-title {
  font-size: clamp(38px, 5.6vw, 68px);
}

.home-shell .hero-kicker {
  margin-bottom: 12px;
}

.hero-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-info .hero-story,
.hero-info .hero-brief {
  height: 100%;
  margin: 0;
  padding: 10px 13px;
}

.hero-info .hero-story p,
.hero-info .hero-brief .hero-copy {
  font-size: clamp(11px, 1.15vw, 13px);
  line-height: 1.5;
}

.home-shell .hero-actions {
  margin-bottom: 12px;
}

.home-shell .facts li {
  padding: 8px 10px;
}

@media (max-width: 900px) {
  .hero-info {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-height: 850px) {
  .home-shell {
    padding: 12px 18px;
  }

  .shell-bar {
    padding-bottom: 9px;
    margin-bottom: 12px;
  }

  .home-shell .hero {
    grid-template-columns: minmax(180px, 235px) minmax(0, 1fr);
    gap: 20px;
  }

  .hero-showcase {
    min-height: 285px;
    padding: 16px 12px 12px;
  }

  .bahlil-idle {
    width: 150px;
    height: 187px;
    background-size: 900px 750px;
  }

  .showcase-name {
    margin-top: 7px;
    padding: 5px 12px;
    font-size: 13px;
  }

  .home-shell .hero-title {
    font-size: clamp(34px, 4.2vw, 56px);
  }

  .home-shell .hero-story,
  .home-shell .hero-brief {
    padding: 9px 12px;
  }

  .home-shell .hero-story p,
  .home-shell .hero-brief .hero-copy {
    font-size: 11px;
    line-height: 1.42;
  }

  .home-shell .hero-actions {
    margin-bottom: 9px;
  }

  .home-shell .facts strong {
    font-size: 19px;
  }

  .home-shell .facts span {
    font-size: 7px;
  }

  .shell-footer {
    padding-top: 8px;
  }
}

@media (max-width: 560px) {
  .home-shell .hero {
    gap: 12px;
  }

  .hero-showcase {
    flex-direction: row;
    width: 100%;
    max-width: none;
    min-height: 0;
    gap: 14px;
    padding: 12px;
  }

  .showcase-tag {
    top: 8px;
    left: 8px;
    padding: 3px 5px;
    font-size: 8px;
  }

  .bahlil-idle {
    width: 105px;
    height: 131px;
    background-size: 630px 525px;
  }

  .showcase-name {
    margin-top: 0;
    padding: 5px 10px;
    font-size: 11px;
  }

  .home-shell .hero-title {
    font-size: clamp(32px, 9.5vw, 46px);
  }

  .home-shell .hero-kicker {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .hero-info {
    gap: 6px;
    margin-bottom: 10px;
  }

  .hero-info .hero-story,
  .hero-info .hero-brief {
    padding: 8px 10px;
  }

  .hero-info .hero-story p,
  .hero-info .hero-brief .hero-copy {
    font-size: 10.5px;
    line-height: 1.4;
  }

  .home-shell .hero-actions {
    margin-bottom: 8px;
  }

  .home-shell .facts {
    gap: 4px;
  }

  .home-shell .facts li {
    padding: 6px 5px;
  }

  .home-shell .facts strong {
    font-size: 18px;
  }

  .home-shell .facts span {
    font-size: 6.5px;
  }

  .shell-footer {
    padding-top: 6px;
  }

  .shell-footer-tip {
    display: none;
  }
}

/* ============ BRIGHT ARCADE THEME (home + leaderboard) ============ */

body:has(#screen-start.is-active),
body:has(#screen-leaderboard.is-active) {
  background:
    radial-gradient(820px 480px at 50% -14%, #fff3bf, transparent 68%),
    radial-gradient(680px 420px at 6% 10%, #d7f4ff, transparent 62%),
    radial-gradient(680px 420px at 94% 14%, #ffe0ee, transparent 62%),
    linear-gradient(180deg, #fffef8 0%, #fff7e0 55%, #ffeec4 100%);
  color: #16181d;
}

body:has(#screen-start.is-active)::before,
body:has(#screen-leaderboard.is-active)::before {
  background-image:
    linear-gradient(rgba(22, 24, 29, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 24, 29, 0.05) 1px, transparent 1px);
  opacity: 0.7;
}

body:has(#screen-start.is-active) .hint,
body:has(#screen-leaderboard.is-active) .hint {
  color: #6b6f7a;
}

.game-shell {
  border: 3px solid #ffcf00;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf4 58%, #fff7e2 100%);
  color: #16181d;
  box-shadow:
    0 0 0 5px #ffffff,
    0 0 0 8px rgba(255, 207, 0, 0.5),
    0 22px 44px rgba(255, 150, 20, 0.18),
    0 6px 0 rgba(255, 207, 0, 0.35);
}

.game-shell::before {
  background: repeating-linear-gradient(180deg, rgba(22, 24, 29, 0.018) 0 1px, transparent 1px 4px);
  opacity: 1;
}

.shell-bar {
  border-bottom: 2px solid #ffe6a3;
}

.shell-kicker {
  color: #ff5a1f;
}

.shell-name {
  color: #16181d;
}

.shell-logo {
  filter: drop-shadow(0 6px 12px rgba(255, 170, 0, 0.32));
}

.status-live {
  border: 2px solid #8fdcae;
  background: #eafaf0;
  color: #12803f;
}

.status-dot {
  background: #17a350;
  box-shadow: 0 0 0 4px rgba(23, 163, 80, 0.16);
}

.status-chip,
.board-badge {
  border: 2px solid #f0c200;
  background: #fff4c2;
  color: #7a5c00;
}

.board-trophy {
  border: 2px solid #e0a800;
  box-shadow: 0 4px 0 rgba(224, 168, 0, 0.3);
}

.home-shell .eyebrow {
  color: #ff5a1f;
}

.hero-showcase {
  border: 2px solid #ffcf00;
  background:
    radial-gradient(ellipse at 50% 16%, #fff6c6 0%, rgba(255, 246, 198, 0) 58%),
    linear-gradient(180deg, #dcf6ff 0%, #ecfbe2 52%, #a9e07c 100%);
}

.hero-showcase::before {
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  opacity: 0.9;
}

.hero-showcase::after {
  background: radial-gradient(closest-side, rgba(20, 70, 24, 0.26), transparent);
}

.showcase-tag {
  border: 2px solid #ffcf00;
  background: #ffffff;
  color: #7a5c00;
}

.bahlil-idle {
  filter: drop-shadow(0 14px 18px rgba(20, 70, 24, 0.3));
}

.hero-title {
  color: #16181d;
}

.hero-title span {
  color: transparent;
  background: linear-gradient(92deg, #ff8a00 0%, #ff4d2e 48%, #e01b6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-kicker,
.home-shell .hero-kicker {
  color: #ff5a1f;
}

.hero-story {
  border-left: 5px solid #27a9ff;
  border-radius: 6px 12px 12px 6px;
  background: #ffffff;
  box-shadow: 0 3px 0 rgba(39, 169, 255, 0.16);
}

.hero-story .hero-brief-label {
  color: #0f7fd1;
}

.hero-story p {
  color: #4a4d57;
}

.hero-brief {
  border: 2px solid #ead9ff;
  border-left: 5px solid #a56bff;
  background: #ffffff;
  box-shadow: 0 3px 0 rgba(165, 107, 255, 0.14);
}

.hero-brief-label {
  color: #7c33e0;
}

.hero-brief .hero-copy {
  color: #4a4d57;
}

.home-shell .facts li {
  border: 2px solid #ffe6a3;
  background: #ffffff;
  box-shadow: 0 3px 0 rgba(255, 207, 0, 0.2);
}

.home-shell .facts li strong {
  color: #ff7a00;
}

.home-shell .facts li:nth-child(1) strong {
  color: #ff7a00;
}

.home-shell .facts li:nth-child(2) strong {
  color: #0f9b8e;
}

.home-shell .facts li:nth-child(3) strong {
  color: #7c33e0;
}

.home-shell .facts span {
  color: #6b6f7a;
}

.shell-footer {
  border-top: 2px solid #ffe6a3;
}

.shell-footer .creator {
  color: #6b6f7a;
}

.shell-footer .creator strong {
  color: #16181d;
}

.shell-footer-tip {
  color: #ff5a1f;
}

.game-shell .btn {
  border: 2px solid #16181d;
  box-shadow: 0 4px 0 rgba(22, 24, 29, 0.85);
  color: #16181d;
}

.game-shell .btn:hover {
  box-shadow: 0 6px 0 rgba(22, 24, 29, 0.85);
}

.game-shell .btn:active {
  box-shadow: 0 2px 0 rgba(22, 24, 29, 0.85);
}

.game-shell .btn-primary {
  border-color: #b8860b;
  background: linear-gradient(180deg, #ffe45c, #ffc400);
  box-shadow: 0 4px 0 #b8860b;
}

.game-shell .btn-primary:hover {
  background: linear-gradient(180deg, #ffe97a, #ffd21a);
  box-shadow: 0 6px 0 #b8860b;
}

.game-shell .btn-ghost {
  border-color: #16181d;
  background: #ffffff;
  color: #16181d;
}

.board-shell .panel {
  border: 3px solid #ffcf00;
  background: linear-gradient(180deg, #ffffff, #fffdf3);
  box-shadow:
    0 0 0 5px #ffffff,
    0 0 0 7px rgba(255, 207, 0, 0.45),
    0 18px 40px rgba(255, 150, 20, 0.16);
}

.board-shell .eyebrow {
  color: #ff5a1f;
}

.board-shell .panel-head h2 {
  color: #16181d;
}

.table-wrap {
  border: 2px solid #ffe6a3;
  background: #ffffff;
}

.leaderboard {
  color: #16181d;
}

.leaderboard th {
  border-bottom: 2px solid #ffe6a3;
  background: #fff4c2;
  color: #7a5c00;
}

.leaderboard td {
  border-top: 1px solid #fff1cf;
  background: #ffffff;
  color: #16181d;
}

.leaderboard tbody tr:hover td {
  background: #fffbe8;
}

.leaderboard tr.is-podium td {
  background: linear-gradient(90deg, #fff2b8, #ffffff);
}

.leaderboard tr.is-podium:nth-child(2) td {
  background: linear-gradient(90deg, #eef1f6, #ffffff);
}

.leaderboard tr.is-podium:nth-child(3) td {
  background: linear-gradient(90deg, #ffe6d6, #ffffff);
}

.leaderboard tr.is-podium .rank {
  color: #b8860b;
}

.leaderboard .rank {
  color: #16181d;
}

.leaderboard .sub {
  color: #8a8f9a;
}

.leaderboard-bahlil-sprite {
  filter: drop-shadow(0 10px 14px rgba(20, 70, 24, 0.26));
}

/* ============ BRIGHT IN-GAME CHROME ============ */

.stage {
  border: 2px solid #ffcf00;
  background: #fff8e6;
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 6px rgba(255, 207, 0, 0.45),
    0 18px 40px rgba(255, 150, 20, 0.18);
}

.stage .hud-side,
.stage .hud-clock {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ffcf00;
  box-shadow: 0 3px 0 rgba(255, 207, 0, 0.35);
}

.stage .hud-name,
.stage .hud-clock-label {
  color: #7a5c00;
}

.stage .hud-score,
.stage .hud-timer {
  color: #16181d;
}

.stage .hud-score.is-lives {
  color: #e5484d;
}

.stage .hud-timer.is-low {
  color: #e5484d;
}

.stage .btn-quit {
  border: 2px solid #16181d;
  border-radius: 4px;
  background: #ffffff;
  color: #16181d;
  box-shadow: 0 3px 0 rgba(22, 24, 29, 0.8);
}

.stage .btn-quit:hover {
  background: #fff6d8;
  color: #16181d;
}

.stage .dpad-btn {
  border: 2px solid #16181d;
  background: rgba(255, 255, 255, 0.92);
  color: #16181d;
  box-shadow: 0 4px 0 rgba(22, 24, 29, 0.75);
}

.stage .dpad-btn.is-pressed {
  background: #ffd400;
  color: #16181d;
  transform: scale(0.94);
}

#screen-game .rotate-note {
  color: #6b6f7a;
}
