/* Sumery landing skeleton — shared by every product site.
   Only the "Product tokens" block differs between products; the rest is the
   brand's desk scene (work/docs/brand/DESIGN.md §0, §3). Light scene = tools,
   html[data-scene="night"] = games. */

/* ---------- Product tokens: Corvus violet (DESIGN.md §3) ---------- */
:root {
  --accent: #7c3aed;        /* fills: buttons, markers — white on it is 5.7:1 */
  --accent-text: #6d28d9;   /* accent used as text on paper (6.8:1) */
  --accent-ink: #ffffff;    /* text on an accent fill */
  --accent-soft: rgba(168, 85, 247, 0.16);
  --hue: #a855f7;           /* icon gradient ends, decoration only */
  --hue-light: #d8b4fe;
}
html[data-scene="night"] {
  --accent: #7c3aed;        /* the dark-UI accent #c084fc is too light for white text (2.6:1), so fills stay #7c3aed */
  --accent-text: #c084fc;   /* 7.3:1 on the night wall, 6.4:1 on night paper */
  --accent-soft: rgba(192, 132, 252, 0.16);
}

/* ---------- Brand tokens ---------- */
:root {
  --wall: #f7efe4;
  --wall-deep: #efe3d2;
  --paper: #fffaf3;
  --ink: #2a2740;
  --ink-soft: #5c5675;
  --line: rgba(42, 39, 64, 0.14);
  --line-strong: rgba(42, 39, 64, 0.26);
  --wood: #e4c9a4;
  --wood-deep: #c9a677;
  --night: #0a0c1a;
  --night-2: #1c2044;
  --cream: #fffbf3;
  --ok: #2f7d5b;
  --warn: #b45309;
  --shadow: 0 18px 40px -22px rgba(42, 39, 64, 0.5), 0 2px 6px -2px rgba(42, 39, 64, 0.12);
  --display: "Yuanti SC", "YouYuan", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --w: 1120px;
  color-scheme: light;
}
:root:lang(en) {
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-scene="night"] {
  --wall: #0a0c1a;
  --wall-deep: #121633;
  --paper: #161a38;
  --ink: #fffbf3;
  --ink-soft: #b9b4d4;
  --line: rgba(255, 251, 243, 0.12);
  --line-strong: rgba(255, 251, 243, 0.24);
  --wood: #262b5c;
  --wood-deep: #1c2044;
  --ok: #6ee7b7;
  --warn: #fbbf24;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--accent);
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { display: block; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.08em 0.4em;
  border-radius: 6px;
  background: var(--accent-soft);
  overflow-wrap: anywhere;
}
kbd { background: var(--paper); border: 1px solid var(--line-strong); border-bottom-width: 2px; }
strong { font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--wall); z-index: 10; }
.skip:focus { top: 12px; }
.i { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Status strip + header ---------- */
.status {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--wall-deep);
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-align: center;
}
.status-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}
.top {
  max-width: var(--w); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; gap: 24px;
}
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark-icon { border-radius: 22.5%; }
.mark-text { display: grid; line-height: 1.25; }
.kicker { font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.12em; color: var(--ink-soft); }
.wordmark { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.nav ul { display: flex; gap: 4px; }
.nav a, .lang {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--wall-deep); color: var(--ink); }
.lang { border: 1px solid var(--line-strong); color: var(--ink); }
.lang:hover { background: var(--ink); color: var(--wall); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-text { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--w); margin: 0 auto; padding: 48px 24px 96px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center;
}
.eyebrow { font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.12em; color: var(--accent-text); text-transform: uppercase; }
.hero h1 {
  margin-top: 18px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.12; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .line + .line { color: var(--accent-text); }
.lede { margin-top: 22px; max-width: 36em; color: var(--ink-soft); font-size: 1.06rem; }
.lede strong { color: var(--ink); }
.hero .actions { margin-top: 30px; }
.fine { margin-top: 14px; color: var(--ink-soft); font-size: 0.86rem; }
.hero-art { position: relative; }
.hero-art figcaption { margin-top: 14px; text-align: center; font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; color: var(--ink-soft); }

/* The desk the product object sits on: wall above, a wooden edge below. */
.desk {
  position: relative; padding: 28px 22px 44px; border-radius: 22px;
  background:
    linear-gradient(to bottom, transparent 0 78%, var(--wood) 78% 94%, var(--wood-deep) 94%),
    radial-gradient(120% 90% at 30% 0%, var(--paper) 0%, transparent 70%);
  border: 1px solid var(--line);
}

/* ---------- Bands (screens 2–6) ---------- */
.band { max-width: var(--w); margin: 0 auto; padding: 88px 24px; }
.band-paper {
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  border-block: 1px solid var(--line);
}
.band-head { max-width: 46em; margin-bottom: 40px; }
.band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; text-wrap: balance; }
.band-sub { margin-top: 12px; color: var(--ink-soft); }
.band-note { margin-top: 32px; max-width: 60em; color: var(--ink-soft); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.step-n { font: 600 0.8rem/1 var(--mono); letter-spacing: 0.1em; color: var(--accent-text); }
.step h3 { margin-top: 14px; font-size: 1.08rem; line-height: 1.4; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 0.96rem; }

.bounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.bounds li { padding-left: 18px; border-left: 3px solid var(--accent); }
.bounds h3 { font-size: 1.06rem; line-height: 1.45; }
.bounds p { margin-top: 6px; color: var(--ink-soft); font-size: 0.96rem; }

.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.catalog-item { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.catalog dt { font-weight: 650; font-size: 1.04rem; }
.catalog dt::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--accent); }
.catalog dd { margin-top: 10px; color: var(--ink-soft); font-size: 0.96rem; }

.get { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: start; }
.get-copy p { max-width: 38em; color: var(--ink-soft); }
.get-copy p + p { margin-top: 14px; }
.get-copy .actions { margin-top: 28px; }
.platforms { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; font-size: 0.95rem; }
.platforms th, .platforms td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.platforms thead th { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.platforms tbody tr:last-child th, .platforms tbody tr:last-child td { border-bottom: 0; }
.platforms td { color: var(--accent-text); font-weight: 600; }

/* ---------- Footer ---------- */
.foot { max-width: var(--w); margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.86rem; }
.foot-note { margin-top: 6px; font-size: 0.8rem; }
.foot-filing { margin-top: 8px; font-size: 0.78rem; }
.foot-filing a { color: inherit; text-decoration: none; }
.foot-filing a:hover { text-decoration: underline; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-art { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-art { animation-delay: 0.22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 28px; }
  .get { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .bounds, .catalog { grid-template-columns: 1fr; }
  .band { padding-block: 64px; }
}

/* ======================================================================
   Product object: one Corvus room — the lobby with four people in it and
   the room code on a note stuck to its corner. Only brand colours: violet
   for one side, cream for the other (the game's own team colours stay in
   the game, DESIGN.md §3). src/art.mjs renders the markup.
   ====================================================================== */
.room { --note-w: 184px; }
.code-note {
  position: relative; z-index: 2;
  width: var(--note-w); margin: 0 12px -46px auto;
  padding: 18px 16px 12px; border-radius: 3px;
  background: var(--cream); color: var(--night);
  box-shadow: 0 18px 28px -16px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.35);
  transform: rotate(3.5deg);
}
/* a strip of tape holding the note to the screen */
.code-note::before {
  content: ""; position: absolute; top: -9px; left: 50%;
  width: 68px; height: 20px; margin-left: -34px;
  background: rgba(216, 180, 254, 0.55);
  transform: rotate(-4deg);
}
.code-label { font: 600 0.66rem/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #6d28d9; }
.code-value { margin-top: 2px; font: 700 1.8rem/1.15 var(--mono); letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.code-hint { margin-top: 6px; font-size: 0.74rem; line-height: 1.45; color: #5c5675; text-wrap: balance; }

.lobby {
  position: relative; z-index: 1;
  padding: 18px 18px 14px; border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
.lobby-head { padding: 0 calc(var(--note-w) + 4px) 14px 0; border-bottom: 1px solid var(--line); }
.lobby-title { font: 700 1.14rem/1.3 var(--display); }
.lobby-mode { margin-top: 4px; font: 500 0.7rem/1.45 var(--mono); letter-spacing: 0.04em; color: var(--ink-soft); }
.lobby-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 0; }
.team--a { --team: var(--hue); }
.team--b { --team: var(--cream); }
.team-name { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.02em; }
.team-pips { margin-left: auto; display: inline-flex; gap: 3px; }
.team-pips i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--team); opacity: 0.55; }
.team-pips i.is-on { background: var(--team); opacity: 1; }
.seats { margin-top: 10px; display: grid; gap: 6px; }
.seat {
  display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  min-height: 32px; padding: 4px 6px 4px 9px; border-radius: 8px;
  background: rgba(255, 251, 243, 0.05);
  font-size: 0.82rem; line-height: 1.3;
}
.seat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--team); }
.seat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.seat-tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px 3px 6px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.68rem; font-weight: 600; line-height: 1.2; color: var(--ink-soft); white-space: nowrap;
}
.seat-tag .i { width: 0.95em; height: 0.95em; stroke-width: 2.4; color: var(--accent-text); }
.seat-tag--host { padding-left: 8px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seat--ai { grid-template-columns: 9px minmax(0, 1fr); background: none; border: 1px dashed var(--line-strong); color: var(--ink-soft); }
.seat--ai .seat-dot { background: none; border: 1.5px solid var(--ink-soft); }
.seat--ai .seat-name { font-weight: 500; }
.lobby-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lobby-count { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.04em; color: var(--ink-soft); }
.lobby-start {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 14px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.8rem; font-weight: 650; white-space: nowrap;
}
@media (max-width: 520px) {
  .room { --note-w: 164px; }
  .code-note { margin: 0 6px -14px auto; padding: 16px 14px 10px; }
  .code-value { font-size: 1.55rem; }
  .lobby { padding: 16px 12px 12px; }
  .lobby-head { padding-right: 0; }
  .lobby-teams { gap: 10px; }
  .team-name { font-size: 0.76rem; gap: 6px; }
  .seat { gap: 6px; padding-left: 7px; font-size: 0.78rem; }
  .seat-tag { padding-right: 6px; font-size: 0.64rem; }
  .seat-tag .i { display: none; } /* the word says it; keeps a four-letter call sign whole at 390px */
}
