:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --paper: #f7f8fc;
  --panel: #ffffff;
  --line: #d7dce8;
  --teal: #12b5a5;
  --coral: #f05d5e;
  --gold: #ffcb47;
  --blue: #3578ff;
  --green: #4caf50;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
  --arcade-glow: 0 0 0 1px rgba(255, 203, 71, 0.28), 0 18px 40px rgba(18, 181, 165, 0.16);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#play, #games, #team { scroll-margin-top: 7.5rem; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 203, 71, 0.22), transparent 24rem),
    radial-gradient(circle at 90% 18%, rgba(18, 181, 165, 0.18), transparent 22rem),
    var(--paper);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
}
button.secondary { background: #e6ebf5; color: var(--ink); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 248, 252, 0.92);
  border-bottom: 1px solid rgba(16, 24, 40, 0.12);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(16px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--coral));
}
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  box-shadow: var(--arcade-glow);
  color: var(--ink);
  font-weight: 900;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand strong, .brand small { display: block; white-space: nowrap; }
.brand strong {
  font-size: 1.02rem;
  letter-spacing: -0.035em;
  text-transform: none;
}
.brand small { color: var(--muted); font-size: 0.78rem; margin-top: 0.1rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.top-nav { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); font-weight: 750; }
.top-nav a { border-radius: 8px; padding: 0.55rem 0.75rem; }
.top-nav a:hover, .top-nav a:focus-visible { background: #e9eef8; color: var(--ink); outline: none; }
.play-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(17rem, 0.76fr) minmax(20rem, 1.24fr);
  align-items: stretch;
  gap: clamp(1rem, 3vw, 2rem);
  min-height: calc(100svh - 4.4rem);
  padding: clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(255, 203, 71, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(18, 181, 165, 0.09), transparent 40%);
}
.play-band::before {
  content: "";
  position: absolute;
  inset: clamp(0.7rem, 2vw, 1.4rem);
  pointer-events: none;
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.7), transparent 68%);
}
.play-copy, .game-shell { position: relative; z-index: 1; }
.play-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-block: 2rem; }
.eyebrow { margin: 0 0 0.65rem; color: var(--blue); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 9ch; margin-bottom: 0.8rem; font-size: clamp(3.4rem, 13vw, 8.4rem); line-height: 0.88; letter-spacing: -0.08em; text-shadow: 0.06em 0.06em 0 rgba(255, 203, 71, 0.26); }
h2 { margin-bottom: 0.8rem; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1; }
h3 { margin-bottom: 0.35rem; font-size: 1.25rem; }
.lede { max-width: 34rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.55; }
.control-hint, .section-note { max-width: 36rem; color: var(--muted); line-height: 1.45; }
.control-hint { margin: 0.9rem 0 0; font-size: 0.94rem; font-weight: 700; }
.section-note { margin: -0.25rem 0 0; }
.score-row, .action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 1.1rem; }
.score-row > span {
  min-width: 6.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-weight: 800;
}
.score-row strong { color: var(--ink); }
.score-row > span.score-pulse { animation: score-chip-pulse 420ms ease-out; }
.score-row > span.danger-pulse { animation: danger-chip-pulse 420ms ease-out; }
@keyframes score-chip-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 203, 71, 0.72); border-color: var(--gold); transform: translateY(0); }
  45% { box-shadow: 0 0 0 7px rgba(255, 203, 71, 0.16); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 0 rgba(255, 203, 71, 0); transform: translateY(0); }
}
@keyframes danger-chip-pulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 93, 94, 0.64); border-color: var(--coral); }
  45% { box-shadow: 0 0 0 7px rgba(240, 93, 94, 0.14); }
  100% { box-shadow: 0 0 0 0 rgba(240, 93, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .score-row > span.score-pulse,
  .score-row > span.danger-pulse { animation: none; }
}
.game-shell {
  display: grid;
  place-items: center;
  min-height: 26rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111827;
  box-shadow: var(--shadow), var(--arcade-glow);
  overflow: hidden;
}
#gameCanvas { display: block; width: 100%; height: min(72vh, 42rem); min-height: 24rem; touch-action: none; }
.catalog-band, .crew-band { padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.catalog-band { background: #ffffff; }
.section-heading { max-width: 56rem; margin-bottom: 1.4rem; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.game-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 21rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.game-card:has(.status-dot.playable) { border-color: #c7b6ff; box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.12), 0 12px 28px rgba(124, 58, 237, 0.1); }
.game-card img, .tile-art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #182133; }
.game-card div:last-child { padding: 1rem; }
.game-card p { margin-bottom: 0; color: var(--muted); line-height: 1.45; }
.card-play { margin-top: 0.9rem; padding: 0.62rem 0.8rem; border-radius: 8px; background: #e8f0ff; color: var(--ink); font-size: 0.9rem; }
.card-play:hover, .card-play:focus-visible { background: #dbe7ff; outline: 2px solid #9bbcff; outline-offset: 2px; }
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}
.status-dot::before { content: ""; width: 0.58rem; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.status-dot.live { color: var(--green); }
.status-dot.playable { color: #7c3aed; }
.status-dot.next { color: #7c3aed; }
.status-dot.idea { color: var(--coral); }
.tile-art { position: relative; }
.tile-art::before, .tile-art::after { content: ""; position: absolute; border-radius: 8px; }
.tile-zip { background: linear-gradient(135deg, #101828, #204c7a 50%, #12b5a5); }
.tile-zip::before { inset: 18% 52% 18% 18%; background: var(--gold); }
.tile-zip::after { inset: 30% 18% 30% 58%; background: #ffffff; }
.tile-bounce { background: linear-gradient(135deg, #202235, #f05d5e 58%, #ffcb47); }
.tile-bounce::before { left: 18%; top: 28%; width: 20%; aspect-ratio: 1; background: #ffffff; }
.tile-bounce::after { right: 16%; bottom: 20%; width: 30%; height: 18%; background: #101828; }
.next-note {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  border: 1px solid #d8c8ff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5f0ff, #eefcf9);
  padding: 1rem;
  color: var(--ink);
}
.next-note span { color: var(--muted); line-height: 1.45; }
.crew-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.crew-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 0.75rem;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
}
.crew-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #182133; }
.crew-card strong, .crew-card span { display: block; }
.crew-card strong { font-size: 1rem; line-height: 1.15; }
.crew-card span { color: var(--muted); line-height: 1.25; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem clamp(1rem, 4vw, 3rem); color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .play-band { grid-template-columns: 1fr; min-height: auto; }
  .play-copy { padding-block: 1.5rem 0; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .site-header { gap: 0.65rem; padding-block: 0.72rem; }
  .top-nav { width: 100%; justify-content: space-between; }
  .top-nav a { padding: 0.45rem 0.5rem; }
  .play-band { padding-inline: 1rem; overflow: hidden; }
  .play-copy { width: 100%; }
  h1 { max-width: 100%; font-size: clamp(2.85rem, 15vw, 4.45rem); }
  .lede, .control-hint { max-width: 100%; overflow-wrap: anywhere; }
  .score-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }
  .score-row > span { min-width: 0; padding: 0.65rem 0.55rem; font-size: 0.95rem; }
  .score-row > span:last-child { grid-column: 1 / -1; }
  .action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    width: 100%;
  }
  .action-row button { min-width: 0; }
  .action-row button:last-child { grid-column: 1 / -1; }
  #gameCanvas { height: 24rem; }
  .game-grid { grid-template-columns: 1fr; }
  .crew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
