/* Swivel Chair Games
   Tokens first, then layout, then components. Light and dark follow the system. */

:root {
  --sticky: #FFD23F;
  --ink: #14213D;
  --teal: #0E7C86;
  --teal-deep: #0A5C64;
  --paper: #F2F4F1;
  --paper-2: #E9ECE7;
  --rule: #C9D2CD;
  --muted: #4A5670;
  --card: #FFFFFF;
  --accent: var(--sticky);

  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1rem, 5vw, 4rem);
  --wrap: 78rem;
  --radius: 8px;
  --shadow-x: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1626;
    --paper-2: #151E31;
    --rule: #2A3650;
    --ink: #F2F4F1;
    --muted: #B6BFCF;
    --card: #182239;
    --teal: #2BB1BC;
    --teal-deep: #0E7C86;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1626; --paper-2: #151E31; --rule: #2A3650; --ink: #F2F4F1; --muted: #B6BFCF; --card: #182239; --teal: #2BB1BC; --teal-deep: #0E7C86;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--sticky); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- buttons */
.btn {
  display: inline-block;
  background: var(--ink); color: var(--sticky);
  font: 700 1.05rem/1 var(--display);
  padding: .95rem 1.5rem; border-radius: 10px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--teal-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { font-size: .95rem; padding: .6rem 1rem; border-radius: 8px; }
.btn--play { font-size: clamp(1.1rem, 2.4vw, 1.5rem); padding: 1.1rem 2rem; box-shadow: 6px 6px 0 var(--accent); }
.btn--play:hover { box-shadow: 3px 3px 0 var(--accent); transform: translate(3px, 3px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn { background: var(--sticky); color: #14213D; }
  :root:not([data-theme="light"]) .btn:hover { background: #fff; color: #14213D; }
  :root:not([data-theme="light"]) .btn--ghost { background: transparent; color: var(--ink); }
  :root:not([data-theme="light"]) .btn--ghost:hover { background: var(--ink); color: var(--paper); }
}

/* ---------- top bar */
.topbar { background: var(--sticky); color: #14213D; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(20, 33, 61, .12); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.6rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 800 1.15rem/1 var(--display); letter-spacing: -0.02em; }
.brand__chair { width: 1.9rem; height: 1.9rem; display: block; color: #14213D; }
.brand__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand__name { white-space: nowrap; }
.brand__name span { color: var(--teal-deep); }
.topnav { display: flex; gap: clamp(.6rem, 2vw, 1.4rem); font-weight: 600; font-size: .98rem; }
.topnav a { text-decoration: none; padding: .35rem .1rem; border-bottom: 2px solid transparent; }
.topnav a:hover { border-bottom-color: #14213D; }

/* ---------- hero */
.hero { background: var(--sticky); color: #14213D; padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1rem, 4vw, 4rem); align-items: end; }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 8.5rem); font-weight: 800; line-height: .88; letter-spacing: -.035em; margin: clamp(1rem, 5vw, 3.5rem) 0 1.25rem; font-variation-settings: "opsz" 96; }
.hero__lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; max-width: 30ch; font-weight: 500; margin-bottom: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.hero .btn--ghost { color: #14213D; }
.hero .btn--ghost:hover { background: #14213D; color: var(--sticky); }
.chair { all: unset; display: block; cursor: pointer; justify-self: center; width: min(100%, 20rem); color: #14213D; }
.chair__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chair:focus-visible { outline: 3px solid #14213D; outline-offset: 8px; border-radius: 8px; }
.chair__hint { display: block; text-align: center; font-size: .95rem; font-weight: 500; margin-top: .5rem; }

/* ---------- bands */
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band--alt { background: var(--paper-2); }
.band--first { padding-top: clamp(2rem, 5vw, 3.5rem); }
.band__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.25rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); padding-top: 1rem; border-top: 1px solid var(--rule); }
.band__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.band__head p { margin: 0; color: var(--muted); font-weight: 500; }
.band__head--big { border-top: 0; padding-top: 0; }
.band__head--big h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }

/* ---------- cards */
.grid { display: grid; gap: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.25rem, 3vw, 2rem); }
.grid--lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--md { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.5rem); }
.card { display: flex; flex-direction: column; }
.card__media {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: #14213D; box-shadow: var(--shadow-x) var(--shadow-x) 0 var(--accent);
  margin-bottom: calc(var(--shadow-x) + .9rem);
  transition: transform .15s, box-shadow .15s;
}
.card__media:hover { transform: translate(4px, 4px); box-shadow: calc(var(--shadow-x) - 4px) calc(var(--shadow-x) - 4px) 0 var(--accent); }
.card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.card__soon { position: absolute; right: .6rem; bottom: .6rem; background: var(--ink); color: var(--paper); font: 700 .75rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; padding: .4rem .55rem; border-radius: 6px; }
.card__title { font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; }
.card--lg .card__title { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.card--sm .card__title { font-size: 1.2rem; }
.card--sm { --shadow-x: 7px; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
.card__tagline { margin: 0 0 .6rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
.card--sm .card__tagline { font-size: .95rem; }
.card__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.chip { font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--rule); padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; }

/* ---------- game page */
.game__head { background: var(--accent); color: #14213D; padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.crumbs { font-size: .9rem; font-weight: 600; margin-bottom: .75rem; opacity: .85; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.game__head h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .5rem; }
.game__tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 500; max-width: 48ch; margin: 0; }
.game__play { background: var(--paper-2); padding: clamp(1.25rem, 3vw, 2rem) 0; }

.player { max-width: 960px; margin: 0 auto; }
.player__stage { position: relative; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-x) var(--shadow-x) 0 var(--accent); }
.player__stage iframe { position: absolute; left: 0; top: 0; width: 960px; height: 540px; border: 0; transform-origin: 0 0; background: #000; }
.player__poster { position: absolute; inset: 0; }
.player__poster img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.player__poster-ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: clamp(.75rem, 3vw, 2rem); text-align: center; color: #F2F4F1; }
.player__note { margin: 0; max-width: 44ch; font-size: clamp(.8rem, 1.6vw, .95rem); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.player__note a { color: var(--sticky); }
.player__bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: calc(var(--shadow-x) + .9rem); }
.player--soon { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-x) var(--shadow-x) 0 var(--accent); }
.player--soon img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.player__soon { font: 800 clamp(1.4rem, 4vw, 2.4rem)/1 var(--display); color: var(--sticky); margin: 0; }
.player.is-fullscreen .player__stage, .player__stage:fullscreen { border-radius: 0; box-shadow: none; }
.player__stage:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; display: flex; align-items: center; justify-content: center; }

.game__about { padding: clamp(2rem, 5vw, 4rem) 0; }
.game__cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .8fr); gap: clamp(2rem, 5vw, 4rem); }
.game__about h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 .75rem; padding-top: .75rem; border-top: 1px solid var(--rule); }
.game__text h2 + * { margin-top: 0; }
.game__text p { max-width: 62ch; }
.game__side h2 { margin-top: 1.5rem; }
.game__side h2:first-child { margin-top: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 1rem; font-size: .98rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.controls { border-collapse: collapse; width: 100%; font-size: .95rem; margin-bottom: 1rem; }
.controls th { text-align: left; font-weight: 500; padding: .3rem .6rem .3rem 0; vertical-align: top; white-space: nowrap; }
.controls td { padding: .3rem 0; vertical-align: top; }
kbd { font: 600 .82em/1 var(--body); background: var(--card); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; padding: .2em .45em; white-space: nowrap; }
.tags { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--rule); padding: .15rem .5rem; border-radius: 999px; }
.side__itch { font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.shots a { display: block; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 5px 5px 0 var(--accent); }
.shots img { display: block; width: 100%; height: auto; }

/* ---------- prose pages */
.prose { max-width: 64ch; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 2rem 0 .75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }

/* ---------- footer */
.foot { padding: 2rem 0 3rem; }
.foot__inner { border-top: 1px solid var(--rule); padding-top: 1.5rem; font-size: .95rem; color: var(--muted); }
.foot__inner p { margin: 0 0 .5rem; }
.foot__links a { color: inherit; }

/* ---------- responsive */
@media (max-width: 980px) {
  .grid--lg, .grid--md { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game__cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero__inner { grid-template-columns: 1fr; }
  .chair { width: min(60%, 14rem); }
  .grid--lg, .grid--md { grid-template-columns: 1fr; }
  .grid--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { --shadow-x: 6px; }
  .topbar__inner { flex-wrap: wrap; padding-block: .5rem; row-gap: .25rem; }
  .topnav { width: 100%; justify-content: space-between; font-size: .95rem; }
  .player__poster img { filter: brightness(.45); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card__media, .btn { transition: none; }
}
