:root {
  --bg: #0b0e14;
  --panel: #161b27;
  --line: #28304a;
  --text: #e9ecf5;
  --muted: #8f98ad;
  --gold: #ffd23f;
  --magenta: #d6249f;
  --purple: #6d28d9;
  --cyan: #22d3ee;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}

body {
  background:
    radial-gradient(1100px 520px at 50% -8%, #20294a 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font:
    16px/1.5 ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* subtle CRT scanlines over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(120, 160, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.6;
}

/* ---------- top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(11, 14, 20, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.nav .brand {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--magenta);
}
.nav nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav nav a {
  font:
    700 13px/1 ui-sans-serif,
    system-ui,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.nav nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}
.nav nav a.active {
  color: #0b0e14;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 2px 2px 0 var(--magenta);
}

/* ---------- hero (arcade) + section heads ---------- */
.hero {
  text-align: center;
  padding: 46px 20px 22px;
}
.kicker {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cyan);
  margin: 0 0 24px;
  text-transform: uppercase;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.12;
  }
}
.hero h1 {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: clamp(20px, 4.4vw, 46px);
  line-height: 1.35;
  margin: 0;
  color: var(--gold);
  letter-spacing: 1px;
  text-shadow:
    3px 3px 0 var(--magenta),
    6px 6px 0 var(--purple),
    0 0 22px rgba(255, 210, 63, 0.35);
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.section-head {
  text-align: center;
  padding: 50px 20px 6px;
}
.section-head h1 {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: clamp(18px, 3.6vw, 34px);
  margin: 0;
  color: var(--gold);
  text-shadow:
    3px 3px 0 var(--magenta),
    0 0 18px rgba(255, 210, 63, 0.3);
}
.tag-line {
  margin: 20px auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* ---------- genre chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.chip {
  appearance: none;
  cursor: pointer;
  font:
    600 12px/1 ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 8px 13px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  transition:
    transform 0.1s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.1s ease;
}
.chip:hover {
  color: var(--text);
  border-color: #3f4a6b;
  transform: translateY(-1px);
}
.chip:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.chip.active {
  color: #0b0e14;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 2px 2px 0 var(--magenta);
}

/* "Most loved" sort toggle: looks like a chip, but kept off the .chip class so the
   genre-filter script never treats it as a filter. Hidden until vote tallies load. */
.sort-toggle {
  appearance: none;
  cursor: pointer;
  font:
    600 12px/1 ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.sort-toggle:hover {
  color: var(--text);
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.sort-toggle.active {
  color: #0b0e14;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 2px 2px 0 var(--purple);
}

/* per-card vote count, filled in by the home page tally script */
.vote-badge {
  display: inline-block;
  font:
    600 12px/1.2 ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 10px;
}

/* ---------- grid + cards (shared) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px 44px;
}
.card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.card:hover {
  transform: translate(-2px, -4px);
  border-color: var(--purple);
  box-shadow: 8px 10px 0 rgba(109, 40, 217, 0.35);
}
.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
}
.thumb .shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.thumb:hover .shot {
  transform: scale(1.06);
}
.thumb .emoji {
  font-size: 54px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease;
}
.thumb:hover .emoji {
  transform: scale(1.12) rotate(-5deg);
}
.thumb.local {
  filter: grayscale(0.4);
  opacity: 0.6;
}

.body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tag {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 5px;
}
.price {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 11px;
  color: var(--gold);
  white-space: nowrap;
}
.blurb {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.meta-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- star rating ---------- */
.stars {
  position: relative;
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.stars-bg {
  color: #39425e;
}
.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}

/* ---------- arcade play / generic button ---------- */
.btn {
  align-self: flex-start;
  margin-top: 6px;
  text-decoration: none;
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 10px;
  background: var(--gold);
  color: #0b0e14;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--purple);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    background 0.15s ease;
}
.btn:hover {
  background: #ffe06b;
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.btn.disabled {
  background: transparent;
  color: var(--muted);
  border: 2px dashed var(--line);
  box-shadow: none;
  cursor: not-allowed;
  font-size: 9px;
  padding: 9px 12px;
}

/* ---------- single review page ---------- */
.review {
  max-width: 760px;
  margin: 26px auto 10px;
  padding: 0 20px;
}
.review .back {
  display: inline-block;
  color: var(--cyan);
  text-decoration: none;
  font-size: 13px;
  margin: 8px 0;
}
.review .back:hover {
  text-decoration: underline;
}
.review-cover {
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--line);
  margin: 10px 0;
}
.review h1 {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: clamp(17px, 3vw, 25px);
  line-height: 1.45;
  color: var(--text);
  margin: 14px 0 12px;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}
.review-meta .score {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 10px;
  color: var(--gold);
}
.prose {
  color: #cfd6e6;
  font-size: 16px;
  line-height: 1.75;
}
.prose h2 {
  font-size: 20px;
  margin: 26px 0 8px;
  color: var(--text);
}
.prose h3 {
  font-size: 17px;
  margin: 22px 0 6px;
  color: var(--text);
}
.prose a {
  color: var(--cyan);
}
.prose blockquote {
  border-left: 3px solid var(--purple);
  margin: 16px 0;
  padding: 4px 16px;
  color: var(--muted);
  font-style: italic;
}
.prose code {
  background: #0e1320;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 14px;
}
.prose img {
  max-width: 100%;
  border-radius: 8px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin: 4px 0;
}
.empty {
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 30px;
}

/* ---------- footer ---------- */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 0 20px 52px;
  line-height: 1.7;
}
footer a {
  color: var(--cyan);
}

/* ---------- buttons as <button> + ghost variant ---------- */
button.btn,
.thumb-btn {
  border: 0;
  cursor: pointer;
}
.thumb-btn {
  width: 100%;
  padding: 0;
  font: inherit;
}
.btn.ghost {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 2px 2px 0 var(--purple);
}
.btn.ghost:hover {
  background: rgba(255, 210, 63, 0.12);
}
.kicker.still {
  animation: none;
  color: var(--magenta);
}

/* ---------- learn-more modal ---------- */
body.modal-open {
  overflow: hidden;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(3px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  margin: auto;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.5);
}
.modal-x {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.modal-x:hover {
  color: var(--text);
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 14px;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(135deg, rgba(163, 112, 47, 0.25), transparent);
}
.modal-emoji {
  font-size: 42px;
}
.modal-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.modal-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.modal-body {
  padding: 6px 22px 18px;
  color: #cfd6e6;
  line-height: 1.7;
}
.modal-body h3 {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 11px;
  color: var(--gold);
  margin: 22px 0 10px;
}
.modal-body p {
  margin: 0 0 10px;
}
.modal-body ul {
  padding-left: 20px;
  margin: 0;
}
.modal-body li {
  margin: 6px 0;
}
/* numbered "pick your favorite" pixel-art gallery in the modal */
.pick-gallery {
  margin: 4px 0 8px;
  padding: 14px 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(
      420px 160px at 50% -30%,
      rgba(34, 211, 238, 0.12),
      transparent 70%
    ),
    rgba(11, 14, 20, 0.5);
}
.pick-head {
  margin: 2px 0 4px !important;
  color: var(--cyan) !important;
}
.pick-sub {
  margin: 0 0 12px !important;
  font-size: 13px;
  color: var(--muted);
}
.pick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pick {
  position: relative;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0b0e14;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.pick:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.25);
}
.pick-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  image-rendering: pixelated;
}
.pick-num {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 11px;
  color: #0b0e14;
  background: var(--gold);
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--magenta);
}
@media (max-width: 520px) {
  .pick-row {
    grid-template-columns: 1fr;
  }
}
.modal-cta {
  padding: 16px 22px 20px;
  border-top: 2px solid var(--line);
  background: rgba(109, 40, 217, 0.08);
  border-radius: 0 0 12px 12px;
}
.cta-line {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- polish pass: focus, texture, motion ---------- */
/* keyboard focus rings (mouse users keep the clean look via :focus-visible) */
a:focus-visible,
button:focus-visible,
.chip:focus-visible,
.thumb-btn:focus-visible,
.modal-x:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}
.thumb-btn:focus-visible {
  outline-offset: -3px;
}
/* keyboard focus inside a card mirrors the hover lift */
.card:focus-within {
  transform: translate(-2px, -4px);
  border-color: var(--purple);
  box-shadow: 8px 10px 0 rgba(109, 40, 217, 0.35);
}

/* give the emoji/gradient tiles a crafted pixel-grid + spotlight (hidden under real screenshots) */
.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 255, 255, 0.18),
      transparent 48%
    ),
    radial-gradient(135% 105% at 50% 132%, rgba(0, 0, 0, 0.5), transparent 62%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.13) 0 1px,
      transparent 1px 7px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.13) 0 1px,
      transparent 1px 7px
    );
}
.thumb .shot,
.thumb .emoji {
  position: relative;
  z-index: 1;
}

/* selection colour on-brand */
::selection {
  background: var(--magenta);
  color: #fff;
}

/* modal entrance */
.modal:not([hidden]) .modal-backdrop {
  animation: fade-in 0.18s ease;
}
.modal:not([hidden]) .modal-card {
  animation: modal-in 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

/* respect reduced-motion: stop the bob/blink/zoom and snap transitions */
@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;
  }
}

/* ---------- printable build-plan page ---------- */
.plan-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(11, 14, 20, 0.9);
}
.plan-bar .back {
  color: var(--cyan);
  text-decoration: none;
  font-size: 13px;
}
.plan {
  max-width: 760px;
  margin: 24px auto 60px;
  padding: 0 22px;
  color: #cfd6e6;
  line-height: 1.7;
}
.plan h1 {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: clamp(16px, 3vw, 24px);
  line-height: 1.4;
  color: var(--gold);
}
.plan-sub {
  color: var(--magenta);
  margin: 6px 0 18px;
  font-size: 14px;
}
.plan-summary {
  font-size: 16px;
}
.plan h2 {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 12px;
  color: var(--cyan);
  margin: 26px 0 10px;
}
.plan ul,
.plan ol {
  padding-left: 22px;
}
.plan li {
  margin: 6px 0;
}
.plan-foot {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-style: italic;
}

@media print {
  body::after,
  .plan-bar {
    display: none !important;
  }
  body.plan-page {
    background: #fff;
  }
  .plan {
    color: #111;
    margin: 0;
    max-width: 100%;
  }
  .plan h1,
  .plan h2 {
    color: #000;
    font-family: ui-sans-serif, system-ui, sans-serif;
  }
  .plan-sub,
  .plan-foot {
    color: #444;
  }
}

/* ---------- in-site game player shell (/play/<id>/) ---------- */
body.play-page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* no page scroll: arrows / space / WASD have nothing to scroll */
}
/* keep the CRT scanline overlay off the live game */
body.play-page::after {
  display: none;
}

.game-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(11, 14, 20, 0.92);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.gb-back {
  flex: 0 0 auto;
  font:
    700 13px/1 ui-sans-serif,
    system-ui,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-decoration: none;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 6px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.gb-back:hover {
  color: var(--gold);
  background: rgba(255, 210, 63, 0.12);
  border-color: var(--gold);
}
.gb-mid {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.gb-title {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 12px;
  color: var(--text);
  text-shadow: 2px 2px 0 var(--magenta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gb-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}
.gb-btn {
  appearance: none;
  cursor: pointer;
  font:
    700 12px/1 ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0.03em;
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.gb-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.gb-btn[data-rate]:hover {
  color: #ff5fbf;
  border-color: var(--magenta);
}

.stage {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
  display: flex;
  background: #05070c;
}
.game-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #05070c;
}

/* poster: the card screenshot, shown until the iframe fires its load event */
.poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--a1, #334155), var(--a2, #1e293b));
  transition: opacity 0.35s ease;
}
.poster .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.9);
}
.poster .emoji {
  position: relative;
  z-index: 1;
  font-size: 64px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
.poster-load {
  position: relative;
  z-index: 1;
  font:
    700 12px/1 ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 7, 12, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.16);
  padding: 9px 15px;
  border-radius: 999px;
  animation: poster-pulse 1.1s ease-in-out infinite;
}
@keyframes poster-pulse {
  50% {
    opacity: 0.45;
  }
}
.stage.is-ready .poster {
  opacity: 0;
  pointer-events: none;
}

/* floating controls: shown only while fullscreen / maximized (the top bar is hidden then) */
.stage-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: none;
  gap: 8px;
}
.sc-btn {
  cursor: pointer;
  font:
    700 12px/1 ui-sans-serif,
    system-ui,
    sans-serif;
  color: var(--text);
  text-decoration: none;
  background: rgba(11, 14, 20, 0.82);
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  backdrop-filter: blur(6px);
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.sc-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.stage:fullscreen .stage-controls,
.stage:-webkit-full-screen .stage-controls,
body.is-maximized .stage-controls {
  display: flex;
}

/* iOS / no-API fullscreen fallback: cover the viewport with CSS */
body.is-maximized .stage {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

@media (max-width: 560px) {
  .game-bar {
    gap: 8px;
    padding: 8px 10px;
  }
  .gb-title {
    font-size: 10px;
  }
  .gb-mid .tag {
    display: none;
  }
  .gb-back,
  .gb-btn {
    padding: 7px 9px;
    font-size: 11px;
  }
}

/* ---- staged release: beta club, what's new, stage pill ---- */
.gb-stage {
  background: #78350f;
  color: #fde68a;
}
.beta-auth {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.join-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.join-form input {
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  min-width: 240px;
}
.beta-ok {
  color: var(--gold);
}
.beta-empty {
  text-align: center;
  margin: 24px 0 60px;
}
.news-feed {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 20px 80px;
  display: grid;
  gap: 16px;
}
.news-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.news-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.news-head h3 {
  margin: 0;
}
.news-date {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 8px;
}
.news-body {
  margin: 0 0 12px;
  white-space: pre-wrap;
}
