/* the hidden attribute always wins over display rules below */
[hidden] { display: none !important; }

/* ---------- computer cooked games: hub + player ---------- */

/* Ad slots are reserved but EMPTY and collapsed until ads launch (see README). */
.ad-slot:empty {
  display: none;
}

.games-page {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--s-5) var(--s-4);
}

@media (min-width: 720px) {
  .games-page {
    padding: var(--s-6) var(--s-5);
  }
}

/* ---------- hub hero ---------- */

.games-hero {
  position: relative;
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-2) 0 var(--s-6);
  isolation: isolate;
}

/* synthwave floor: a lime grid rolling toward you */
.hero-floor {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 65%;
  translate: -50% 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(197, 255, 73, 0.28) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(197, 255, 73, 0.28) 0 1px, transparent 1px 40px);
  transform: perspective(380px) rotateX(60deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 55% 100% at 50% 100%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 100% at 50% 100%, #000 20%, transparent 72%);
  opacity: 0.45;
  animation: floor-scroll 2.4s linear infinite;
}

@keyframes floor-scroll {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 0 40px; }
}

.hero-copy {
  min-width: 0;
}

.games-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilac);
}

.games-hero .eyebrow .live-dot {
  flex: none;
  background: var(--lime);
}

.games-title {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(2.5rem, 12vw, 5.4rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: var(--lime);
  text-shadow: 0 0 28px rgba(197, 255, 73, 0.28), 3px 0 0 rgba(181, 154, 255, 0.35);
}

.games-title span {
  display: block;
  color: var(--paper);
  text-shadow: 3px 0 0 rgba(181, 154, 255, 0.45);
}

.games-sub {
  margin: var(--s-4) 0 0;
  max-width: 32em;
  color: var(--paper-dim);
  text-wrap: pretty;
}

.games-sub kbd {
  font-family: var(--mono);
  font-weight: 800;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 0 5px;
  color: var(--paper);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.hero-ctas .play-btn,
.ghost-btn {
  flex: 1 1 auto;
  margin-top: 0;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 var(--s-5);
  border: 2px solid var(--line-2);
  border-radius: 12px;
  background: rgba(16, 17, 20, 0.6);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ghost-btn:hover {
  border-color: var(--lilac);
  color: var(--lilac);
}

/* featured game: a little CRT with the game running on it */
.spotlight {
  position: relative;
  display: grid;
  gap: var(--s-4);
  color: var(--paper);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.spot-bezel {
  display: block;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(160deg, #2a2c33, #15161a 60%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.06),
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 60px -10px rgba(197, 255, 73, 0.25);
  transition: box-shadow 0.35s var(--ease-out);
  animation: spot-float 6s ease-in-out infinite;
}

@keyframes spot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.spot-screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #1a1d22, #07080a 75%);
  box-shadow: inset 0 0 0 2px #0a0b0d;
}

.spot-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* scanlines + glass glare + vignette */
.spot-screen::before,
.spot-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spot-screen::before {
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}

.spot-screen::after {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.09) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.5));
}

.spotlight:hover .spot-bezel,
.spotlight:focus-visible .spot-bezel {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.06),
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 90px -4px rgba(197, 255, 73, 0.5);
}

.spot-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: var(--s-3);
  row-gap: 2px;
  padding: 0 var(--s-1);
}

.spot-tag {
  grid-row: span 2;
  align-self: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--carbon);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spot-name {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--lime);
}

.spot-pitch {
  font-size: 0.88rem;
  color: var(--paper-dim);
}

/* phones: the spotlight is the CTA, so it goes compact and the buttons step aside */
@media (max-width: 859px) {
  .games-hero {
    gap: var(--s-5);
  }
  .hero-ctas {
    display: none;
  }
  .spotlight {
    grid-template-columns: minmax(0, 46%) 1fr;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-3);
    border: 2px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(23, 24, 29, 0.85);
  }
  .spot-bezel {
    padding: 6px;
    border-radius: 14px;
    animation: none;
  }
  .spot-screen {
    border-radius: 10px;
  }
  .spot-meta {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .spot-tag {
    grid-row: auto;
    justify-self: start;
    margin-bottom: var(--s-1);
  }
  .spot-name::after {
    content: " \25B6";
    font-size: 0.75em;
  }
}

@media (min-width: 600px) and (max-width: 859px) {
  .hero-ctas {
    display: flex;
  }
}

@media (min-width: 860px) {
  .games-hero {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--s-7);
    padding: var(--s-6) 0 var(--s-7);
  }
  .hero-ctas .play-btn,
  .ghost-btn {
    flex: none;
  }
}

/* ---------- marquee ticker ---------- */

.ticker {
  margin: 0 calc(var(--s-4) * -1);
  padding: 10px 0;
  border-block: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.7);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-track span {
  padding: 0 var(--s-5);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
  white-space: nowrap;
}

.ticker-track span::before {
  content: "\25B6";
  margin-right: var(--s-3);
  color: var(--lime);
  font-size: 0.7em;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@media (min-width: 1152px) {
  .ticker {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
}

/* ---------- shelves ---------- */

.shelf {
  margin-top: var(--s-7);
}

.shelf-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.shelf-head::before {
  content: "//";
  content: "//" / "";
  color: var(--lilac);
}

.shelf-head small {
  margin-left: auto;
  padding: 2px 9px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--paper-dim);
  white-space: nowrap;
}

.shelf-head small:empty {
  display: none;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--s-5) var(--s-4);
  counter-reset: cart;
}

/* ---------- game cards (cartridges) ---------- */

.game-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: var(--radius-lg);
  counter-increment: cart;
  perspective: 900px;
}

.game-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--carbon-2);
  overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s var(--ease-out), border-color 0.2s ease, box-shadow 0.3s var(--ease-out);
}

.game-card.is-tilting .game-card-inner {
  transition: transform 0.08s linear, border-color 0.2s ease, box-shadow 0.3s var(--ease-out);
}

.game-card:hover .game-card-inner,
.game-card:focus-within .game-card-inner {
  border-color: var(--lime);
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.9),
    0 0 40px -8px rgba(197, 255, 73, 0.4),
    6px 6px 0 var(--lilac);
}

/* cartridge number */
.game-card-inner::before {
  content: counter(cart, decimal-leading-zero);
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(10, 11, 13, 0.8);
  color: var(--lime);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* holographic sheen that follows the pointer */
.game-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(197, 255, 73, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card:hover .game-card-inner::after {
  opacity: 1;
}

.game-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at 50% 45%, #1a1d22, #07080a 75%);
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.3s ease;
}

.game-thumb[src$=".svg"] {
  object-fit: contain;
}

.game-card:hover .game-thumb,
.game-card:focus-within .game-thumb {
  transform: scale(1.05);
  filter: saturate(1.2) contrast(1.05);
}

.game-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--s-2);
  padding: var(--s-4);
  border-top: 2px solid var(--line);
}

.game-name {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--lime);
}

.game-pitch {
  margin: 0;
  color: var(--paper);
  font-size: 0.93rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.game-tags li {
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-size: 0.72rem;
  color: var(--paper-dim);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
  min-height: 50px;
  padding: 0 var(--s-5);
  border-radius: 12px;
  background-color: var(--lime);
  color: var(--carbon);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.hero-ctas .play-btn:hover {
  box-shadow: 4px 4px 0 var(--lilac);
  transform: translate(-2px, -2px);
}

/* in cards the button sits at the bottom and its ::after covers the whole card.
   No transform on it here: that would trap the ::after inside the button. */
.game-body .play-btn {
  margin-top: auto;
}

.game-body > :nth-last-child(2) {
  margin-bottom: var(--s-3);
}

.game-body .play-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: var(--radius-lg);
}

/* a light sweep across the button on hover */
.game-card:hover .play-btn {
  background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  animation: sweep 0.9s var(--ease-out) both;
}

@keyframes sweep {
  from { background-position: 130% 0; }
  to   { background-position: -130% 0; }
}

.soon-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border: 2px dashed #3a3c44;
  border-radius: 18px;
  background: repeating-linear-gradient(-45deg, #131418 0 12px, #15161b 12px 24px);
}

.soon-card h3 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--paper);
}

.soon-badge {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--lilac);
  color: var(--carbon);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.soon-card p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.92rem;
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.waitlist .btn {
  flex: 1 1 auto;
  min-height: 50px;
  justify-content: center;
  font-size: 0.92rem;
}

/* cards drift in as they scroll into view (where supported) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card-grid > li {
      animation: card-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes card-in {
  from { opacity: 0.2; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ---------- player page ---------- */

.player-page {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-3) var(--s-3) var(--s-4);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--s-3);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--paper-dim);
}

.crumb-prompt {
  color: var(--lilac);
}

.crumbs a {
  display: inline-block;
  padding: 6px 0;
  color: var(--paper-dim);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.crumbs a:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

.crumbs [aria-current] {
  color: var(--lime);
}

.player-layout {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 1000px) {
  .player-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

/* the cabinet: gradient bezel + soft lime glow around the screen */
.player {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(#07080a, #07080a) padding-box,
    linear-gradient(150deg, rgba(197, 255, 73, 0.7), var(--line) 30%, var(--line) 70%, rgba(181, 154, 255, 0.7)) border-box;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 50px -16px rgba(197, 255, 73, 0.25);
  overflow: hidden;
}

.player-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: min(calc(100dvh - 210px), 760px);
  min-height: 420px;
  background: radial-gradient(ellipse at 50% 40%, #16181d, #07080a 70%);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.player-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #07080a;
}

.player-stage canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  outline: none;
}

/* ---------- boot screen while the game frame loads ---------- */

.stage-boot {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-4);
  background: radial-gradient(ellipse at 50% 45%, #16181d, #07080a 70%);
  pointer-events: none;
  /* fallback: fades by itself even if fx.js never runs */
  animation: boot-out 0.4s ease 6s forwards;
}

.stage-boot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
}

.player-stage.is-ready .stage-boot {
  animation: boot-out 0.35s ease forwards;
}

@keyframes boot-out {
  to { opacity: 0; visibility: hidden; }
}

.boot-logo {
  width: 64px;
  height: 64px;
  background: url("/assets/logo.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(197, 255, 73, 0.35));
  animation: boot-pulse 1.2s ease-in-out infinite;
}

@keyframes boot-pulse {
  50% { transform: scale(0.94); filter: drop-shadow(0 0 30px rgba(197, 255, 73, 0.6)); }
}

.boot-text {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--lime);
}

.boot-dots::after {
  content: "";
  animation: boot-dots 1.2s steps(4, end) infinite;
}

@keyframes boot-dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
}

.boot-bar {
  width: 160px;
  height: 6px;
  border-radius: 99px;
  background: var(--carbon-3);
  overflow: hidden;
}

.boot-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lilac), var(--lime));
  animation: boot-bar 1.1s ease-in-out infinite;
}

@keyframes boot-bar {
  from { transform: translateX(-100%); }
  to   { transform: translateX(250%); }
}

/* ---------- toolbar ---------- */

.player-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--s-2);
  border-top: 2px solid var(--carbon-3);
  background: linear-gradient(180deg, #1b1c22, var(--carbon-2));
}

.player-title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 auto 0 6px;
  min-width: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1rem;
  color: var(--lime);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-title::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: 11px;
  background: var(--carbon);
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s var(--ease-spring);
}

.tool:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.tool:active {
  transform: scale(0.94);
}

.tool[aria-pressed="true"] {
  border-color: var(--lilac);
  color: var(--lilac);
}

.tool svg {
  width: 18px;
  height: 18px;
}

.tool .tool-text {
  display: none;
}

@media (min-width: 640px) {
  .tool .tool-text { display: inline; }
}

/* fullscreen (real API, or the CSS fallback for iPhone Safari) */
.player:fullscreen,
.player.is-pseudo-fs {
  border: 0;
  border-radius: 0;
  width: 100vw;
  height: 100dvh;
}

.player.is-pseudo-fs {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.player:fullscreen .player-stage,
.player.is-pseudo-fs .player-stage {
  flex: 1;
  height: auto;
  min-height: 0;
}

/* ---------- side panel ---------- */

.player-side {
  display: grid;
  gap: var(--s-4);
}

.about-card {
  padding: var(--s-4);
  border: 2px solid var(--carbon-3);
  border-radius: var(--radius-lg);
  background: var(--carbon-2);
}

.about-card h2 {
  margin: 0 0 var(--s-2);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1rem;
  color: var(--lilac);
}

.about-card p,
.about-card li {
  margin: 0 0 var(--s-2);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--paper);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card b {
  font-family: var(--mono);
  color: var(--lime);
}

.about-card ul {
  margin: 0;
  padding-left: 18px;
}

.about-card kbd {
  font-family: var(--mono);
  font-weight: 800;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 0 5px;
}

/* ---------- play next ---------- */

.more-games {
  margin-top: var(--s-7);
}

.more-games[hidden] {
  display: none;
}

.shelf-link {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--paper-dim);
  text-decoration: none;
}

.shelf-link:hover {
  color: var(--lime);
}

/* ---------- game overlays ---------- */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 9, 11, 0.55);
  touch-action: auto;
}

.overlay[hidden] {
  display: none;
}

.ov-card {
  width: min(100%, 340px);
  padding: 22px 20px;
  border: 2px solid var(--lime);
  border-radius: 18px;
  background: rgba(13, 14, 17, 0.94);
  box-shadow: 0 0 40px rgba(197, 255, 73, 0.15), 8px 8px 0 var(--lilac);
  text-align: center;
  animation: ov-in 0.3s cubic-bezier(.2, .8, .2, 1);
}

@keyframes ov-in {
  from { transform: scale(0.94) translateY(8px); opacity: 0; filter: brightness(2); }
  to   { transform: none; opacity: 1; filter: none; }
}

.ov-eyebrow {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilac);
}

.ov-title {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--lime);
  text-shadow: 3px 0 var(--lilac);
}

.ov-title.small {
  font-size: 2rem;
}

.ov-text {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--paper);
}

.c-lime { color: var(--lime); }
.c-lilac { color: var(--lilac); }

.ov-controls {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--paper-dim);
}

.ov-controls kbd {
  display: inline-block;
  min-width: 1.6em;
  margin: 0 1px;
  font-family: var(--mono);
  font-weight: 800;
  border: 1px solid #3a3c44;
  border-radius: 4px;
  padding: 0 4px;
  color: var(--paper);
}

.only-keys { display: none; }
@media (hover: hover) and (pointer: fine) {
  .only-keys { display: inline; }
  .only-touch { display: none; }
}

.ov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 22px;
  border: 2px solid var(--lime);
  border-radius: 12px;
  background: var(--lime);
  color: var(--carbon);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}

.ov-btn:hover {
  box-shadow: 4px 4px 0 var(--lilac);
  transform: translate(-2px, -2px);
}

.ov-btn.ghost {
  background: transparent;
  color: var(--lime);
}

.ov-best {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--paper-dim);
}

.ov-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ov-actions .ov-btn {
  flex: 1 1 130px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 0.95rem;
}

.share-card {
  border-color: #ff6b5b;
  box-shadow: 0 0 50px rgba(255, 107, 91, 0.25), 8px 8px 0 var(--lime);
}

.go-line {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #ff8a7d;
}

.go-time {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 4.6rem;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--lime);
  text-shadow: 4px 0 var(--lilac);
}

.go-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--paper);
}

.go-meta b {
  color: var(--lime);
}

.go-stats {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--paper-dim);
}

.go-share {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px dashed #3a3c44;
  border-radius: 10px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--paper);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  translate: -50% 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--carbon);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.toast.show {
  opacity: 1;
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .game-card-inner {
    transform: none !important;
  }
  .game-card:hover .game-thumb {
    transform: none;
  }
  .ticker {
    display: none;
  }
  .stage-boot {
    animation: none;
  }
  .player-stage.is-ready .stage-boot {
    display: none;
  }
}

/* ---------- platform panel: leaderboard, feedback, account chip ---------- */

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-chip {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid #3a3c44;
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--paper-dim);
  text-decoration: none;
}

.cc-chip.is-in {
  border-color: var(--lime);
  color: var(--lime);
}

.cc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cc-head h2 {
  margin: 0 auto 0 0 !important;
}

.cc-tabs {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: var(--carbon);
}

.cc-tabs button {
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.7rem;
  cursor: pointer;
}

.cc-tabs button[aria-selected="true"] {
  background: var(--lime);
  color: var(--carbon);
}

.cc-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.85rem;
}

.cc-rows li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 6px;
  border-radius: 8px;
}

.cc-rows li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.cc-rows li.is-me {
  background: rgba(197, 255, 73, 0.12);
  color: var(--lime);
}

.cc-rows .cc-empty {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--paper-dim);
}

.cc-rank {
  width: 1.6em;
  color: var(--lilac);
}

.cc-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-score {
  color: var(--lime);
}

.cc-flag {
  min-width: 32px;
  min-height: 32px;
  border: 0;
  background: none;
  color: #6b6d75;
  cursor: pointer;
}

.cc-flag:hover {
  color: #ff6b5b;
}

.cc-guest {
  margin: 10px 0 0 !important;
  font-size: 0.8rem !important;
  color: var(--paper-dim) !important;
}

.cc-guest input,
.cc-fb textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid #3a3c44;
  border-radius: 10px;
  background: var(--carbon);
  color: var(--paper);
  font: inherit;
  font-size: 16px; /* no iOS zoom on focus */
}

.cc-guest input {
  display: block;
  max-width: 220px;
  font-family: var(--mono);
  font-weight: 800;
}

.cc-heart {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #3a3c44;
  border-radius: 10px;
  background: var(--carbon);
  color: #ff6b8a;
  font-size: 1.2rem;
  cursor: pointer;
}

.cc-thumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.cc-thumbs button {
  flex: 1;
  min-height: 48px;
  border: 2px solid #3a3c44;
  border-radius: 12px;
  background: var(--carbon);
  font-size: 1.4rem;
  cursor: pointer;
}

.cc-thumbs button[aria-pressed="true"] {
  border-color: var(--lime);
  background: rgba(197, 255, 73, 0.12);
}

.cc-label {
  display: block;
  font-size: 0.85rem;
  color: var(--paper-dim);
}

.cc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.cc-send {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: var(--carbon);
  font-family: var(--mono);
  font-weight: 800;
  cursor: pointer;
}

.cc-msg {
  font-size: 0.8rem;
  color: var(--lilac);
}

.cc-pulse {
  animation: cc-pulse 1.2s ease 2;
}

@keyframes cc-pulse {
  50% { box-shadow: 0 0 0 3px var(--lime); }
}

.player-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 1000px) {
  .player-panel {
    margin-top: 0;
  }
}

.go-rank {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--lilac);
}


.legal h2 { margin: 18px 0 6px; font-family: var(--mono); font-weight: 800; font-size: 1rem; color: var(--lilac); }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 10px; }


.hub-top { display: flex; align-items: center; gap: 10px; }
.game-body { position: relative; }
.game-new {
  justify-self: start;

/* ---------- spotlight rotation ---------- */

.spot-screen img,
.spot-meta {
  transition: opacity 0.22s ease, filter 0.22s ease;
}

.spotlight.is-swapping .spot-screen img,
.spotlight.is-swapping .spot-meta {
  opacity: 0;
  filter: brightness(2.5) blur(2px);
}

.spot-screen img[src$=".png"],
.spot-screen img[src$=".jpg"],
.spot-screen img[src$=".webp"] {
  object-fit: cover;
}

.spot-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: calc(var(--s-3) * -1);
}

.spot-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.spot-dot::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 99px;
  background: var(--line-2);
  transition: width 0.25s var(--ease-out), background-color 0.2s ease;
}

.spot-dot[aria-pressed="true"]::before {
  width: 22px;
  background: var(--lime);
}

@media (min-width: 860px) {
  .spot-dots {
    grid-column: 2;
    margin-top: calc(var(--s-6) * -1);
  }
}

/* ---------- new badge (also styles the platform's hub.js badge) ---------- */

.game-card .game-new {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 52px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--lilac);
  color: var(--carbon);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
}
.game-plays { font-size: 0.78rem; color: var(--paper-dim); }
.game-heart { position: absolute; top: 10px; right: 12px; z-index: 2; }

  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(181, 154, 255, 0.55);
  animation: new-glow 2.4s ease-in-out infinite;
}

@keyframes new-glow {
  50% { box-shadow: 0 0 4px rgba(181, 154, 255, 0.2); }
}

/* hearts from the platform must sit above the whole-card link */
.game-card .game-heart {
  z-index: 4;
}

.ticker-track span.is-new::after {
  content: "new";
  margin-left: var(--s-2);
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--lilac);
  color: var(--carbon);
  font-size: 0.65rem;
}

/* ---------- today's dailies + continue playing ---------- */

.hub-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.strip-box {
  padding: var(--s-4);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(197, 255, 73, 0.07), transparent 60%),
    var(--carbon-2);
}

.strip-box.continue {
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(181, 154, 255, 0.09), transparent 60%),
    var(--carbon-2);
}

.strip-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.strip-head::before {
  content: "//";
  content: "//" / "";
  color: var(--lilac);
}

.strip-head small {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--lime);
}

.daily-list {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: var(--s-3);
  align-items: center;
  min-height: 52px;
  padding: 6px var(--s-3) 6px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--carbon);
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s var(--ease-out);
}

.daily:hover {
  border-color: var(--lime);
  transform: translateX(3px);
}

.daily img {
  grid-row: span 2;
  width: 64px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #07080a;
}

.daily-name {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.1;
  color: var(--lime);
}

.daily-mode {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--paper-dim);
}

.daily-go {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--lime);
}

.strip-note {
  margin: var(--s-3) 0 0;
  font-size: 0.78rem;
  color: var(--paper-dim);
}

/* ---------- challenge banner (player) ---------- */

.dare {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-3);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  border: 2px solid var(--lime);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(197, 255, 73, 0.14), rgba(181, 154, 255, 0.1));
  box-shadow: 0 0 30px -8px rgba(197, 255, 73, 0.5);
  animation: dare-in 0.5s var(--ease-spring) both;
}

@keyframes dare-in {
  from { transform: translateY(-8px) scale(0.98); opacity: 0; }
}

.dare-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--carbon);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.dare-text {
  flex: 1;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.9rem;
}

.dare-text b {
  color: var(--lime);
  font-size: 1.1em;
}

.dare-x {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: var(--paper-dim);
  cursor: pointer;
}

/* ---------- brag card dialog ---------- */

.tool-brag {
  border-color: rgba(197, 255, 73, 0.45);
  color: var(--lime);
}

.brag {
  width: min(calc(100% - 24px), 420px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 2px solid var(--lime);
  border-radius: 18px;
  background: #0b0c0f;
  color: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(197, 255, 73, 0.15);
}

.brag::backdrop {
  background: rgba(8, 9, 11, 0.75);
  backdrop-filter: blur(4px);
}

.brag[open] {
  animation: cmd-in 0.22s var(--ease-out);
}

.brag-inner {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
}

.brag-head {
  display: flex;
  align-items: center;
}

.brag-head h2 {
  margin: 0 auto 0 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--lime);
}

.brag-x {
  min-height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.72rem;
  cursor: pointer;
}

.brag-label {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.85rem;
}

.brag-label small {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--paper-dim);
}

.brag-input {
  min-height: 48px;
  padding: 0 var(--s-3);
  border: 2px solid var(--line-2);
  border-radius: 12px;
  background: var(--carbon);
  color: var(--lime);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.1rem;
}

.brag-input:focus {
  outline: none;
  border-color: var(--lime);
}

.brag-preview {
  display: grid;
  place-items: center;
}

.brag-preview canvas {
  width: auto;
  height: min(42dvh, 380px);
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line-2);
}

.brag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.brag-actions .ov-btn {
  flex: 1 1 140px;
  margin-top: 0;
  font-size: 0.92rem;
}

.brag-say {
  margin: 0;
  min-height: 1.2em;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--lilac);
}

@media (prefers-reduced-motion: reduce) {
  .game-card .game-new,
  .dare,
  .brag[open] {
    animation: none;
  }
}

/* keep cards calm: show the first three tags only */
.game-card .game-tags li:nth-child(n + 4) {
  display: none;
}

/* ---------- hub filters + search ---------- */

.hub-filters {
  display: grid;
  gap: var(--s-3);
  margin: 0 0 var(--s-5);
}

.hub-search {
  position: relative;
  display: flex;
  align-items: center;
}

.hub-search svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--paper-dim);
  pointer-events: none;
}

.hub-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--s-4) 0 42px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--carbon-2);
  color: var(--lime);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-search input::placeholder {
  color: #7a7c84;
}

.hub-search input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(197, 255, 73, 0.15);
}

.chip-row {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  margin: 0 calc(var(--s-4) * -1);
  padding: 2px var(--s-4) 4px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--s-4), #000 calc(100% - var(--s-5)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--s-4), #000 calc(100% - var(--s-5)), transparent);
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 2px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s var(--ease-spring);
}

.chip:hover {
  border-color: var(--lilac);
}

.chip:active {
  transform: scale(0.95);
}

.chip[aria-pressed="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--carbon);
}

.hub-empty {
  margin: 0;
  padding: var(--s-5);
  border: 2px dashed var(--line-2);
  border-radius: var(--radius-lg);
  color: var(--paper-dim);
  text-align: center;
}

.hub-reset {
  margin-left: var(--s-2);
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--lime);
  color: var(--carbon);
  font-family: var(--mono);
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 720px) {
  .hub-filters {
    grid-template-columns: minmax(220px, 300px) 1fr;
    align-items: center;
  }
  .chip-row {
    margin: 0;
    padding: 2px 0 4px;
    -webkit-mask-image: none;
    mask-image: none;
    flex-wrap: wrap;
  }
  .hub-empty {
    grid-column: 1 / -1;
  }
}

/* ---------- phones: compact list cards so 20 games stay scannable ---------- */

@media (max-width: 599px) {
  #shelf-computer-cooked {
    gap: var(--s-3);
  }
  #shelf-computer-cooked .game-card-inner {
    flex-direction: row;
    align-items: stretch;
  }
  #shelf-computer-cooked .game-thumb {
    flex: none;
    width: 42%;
    height: auto;
    align-self: center;
  }
  #shelf-computer-cooked .game-card-inner::before {
    top: 6px;
    left: 6px;
    font-size: 0.62rem;
  }
  #shelf-computer-cooked .game-new {
    top: auto;
    bottom: 6px;
    left: 6px;
    font-size: 0.6rem;
  }
  #shelf-computer-cooked .game-body {
    gap: 2px;
    min-width: 0;
    padding: var(--s-3);
    border-top: 0;
    border-left: 2px solid var(--line);
  }
  #shelf-computer-cooked .game-name {
    font-size: 1.02rem;
  }
  #shelf-computer-cooked .game-pitch {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--paper-dim);
  }
  #shelf-computer-cooked .game-tags,
  #shelf-computer-cooked .game-plays {
    display: none;
  }
  #shelf-computer-cooked .game-body > :nth-last-child(2) {
    margin-bottom: 0;
  }
  #shelf-computer-cooked .play-btn {
    align-self: flex-start;
    min-height: 34px;
    margin-top: var(--s-2);
    padding: 0 var(--s-3);
    border-radius: 9px;
    font-size: 0.82rem;
  }
}

/* ---------- live previews on hover ---------- */

.card-preview {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07080a;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card-preview.is-live {
  opacity: 1;
}

/* render the game at 2x and scale down, so it lays out like a real (small) screen */
.card-preview iframe {
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: 0 0;
  pointer-events: none;
}

.card-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
}

.preview-tag {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(10, 11, 13, 0.85);
  color: var(--lime);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.preview-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b5b;
  animation: blink 1s steps(1, end) infinite;
}

/* ---------- cooked cup ---------- */

.cup {
  position: relative;
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding: var(--s-5);
  border: 2px solid transparent;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(255, 200, 60, 0.12), transparent 60%),
    linear-gradient(#15161b, #15161b) padding-box,
    linear-gradient(130deg, #ffd25a, var(--lime) 40%, var(--lilac)) border-box;
  box-shadow: 0 20px 60px -30px rgba(255, 210, 90, 0.5);
  overflow: hidden;
}

.cup-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd25a;
}

.cup-title {
  margin: 2px 0 var(--s-2);
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--paper);
  text-shadow: 3px 0 0 rgba(181, 154, 255, 0.5);
}

.cup-game {
  margin: 0;
  max-width: 30em;
  color: var(--paper-dim);
}

.cup-game b {
  font-family: var(--mono);
  color: var(--lime);
}

.cup-play {
  margin-top: var(--s-4);
}

.cup-board {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-weight: 800;
}

.cup-board li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  padding: 0 var(--s-3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.cup-board li.is-king {
  background: linear-gradient(90deg, rgba(255, 210, 90, 0.22), rgba(255, 210, 90, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 210, 90, 0.45);
}

.cup-board li.is-me {
  box-shadow: inset 0 0 0 2px var(--lime);
}

.cup-rank {
  width: 1.8em;
  color: var(--lilac);
  text-align: center;
}

.cup-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cup-score {
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.cup-board .cup-empty {
  justify-content: center;
  min-height: 120px;
  border: 2px dashed var(--line-2);
  background: transparent;
  color: var(--paper-dim);
  font-family: var(--sans);
  font-weight: 500;
  text-align: center;
}

@media (min-width: 760px) {
  .cup {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--s-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-tag::before {
    animation: none;
  }
}
