/* Generated by scripts/copy-fonts.mjs — self-hosted, latin subset. Do not edit. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/fonts/archivo-latin-standard-normal.woff2') format('woff2-variations'), url('/fonts/archivo-latin-standard-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* "Wall" design tokens — docs/DESIGN.md. Light is the default; <html data-theme="dark"> switches. */
:root {
  /* Brand v3 "warm charcoal" (docs/DESIGN.md) */
  --bg: #ffffff;
  --side: #f5f4f2;
  --card: #ffffff;
  --ph: #ece9e5;
  --ink: #24211f;
  --muted: #5e5853;
  --line: #e3e0dc;
  --on: #a2300b; /* darker than DESIGN.md's #C93F14 so white on it reaches 7:1 on the projector */
  --on-ink: #ffffff;
  --done: #24211f;
  --done-ink: #ffffff;
  --idle-border: #d3ccc4;
  --idle-ink: #6e665f;
  --bar: #b3aba3;
  --correct: #16707a;
  --podium-block: var(--done);
  --podium-ink: var(--done-ink);

  --head: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head-stretch: 112%;
  --head-weight: 780;
  --chip-stretch: 82%;
  /* corners: controls, cards/screens, chips */
  --r-ctl: 8px;
  --r-card: 12px;
  --r-chip: 999px;
  --speed: 160ms;
  color-scheme: light;
}

:root[data-theme='dark'],
.theme-dark {
  --bg: #24211f;
  --side: #2e2a27;
  --card: #2e2a27;
  --ph: #34302c;
  --ink: #ffffff;
  --muted: #d2cbc3;
  --line: #4f4842;
  --on: #ff8a4c;
  --on-ink: #24211f;
  --done: #ede8e2;
  --done-ink: #24211f;
  --idle-border: #4f4842;
  --idle-ink: #b3aba3;
  --bar: #7d746c;
  --correct: #5bc0c9;
  --podium-block: #34302c;
  --podium-ink: #ffffff;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --speed: 0ms;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Brand v3 corners: 8px controls, 12px cards and panels, round chips */
button,
input,
select,
textarea,
dialog,
.btn,
.input {
  border-radius: var(--r-ctl);
}
dialog,
.card,
.notice {
  border-radius: var(--r-card);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

h1,
h2,
h3,
.head {
  font-family: var(--head);
  font-weight: var(--head-weight);
  font-stretch: var(--head-stretch);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

.num {
  font-family: var(--head);
  font-weight: 760;
  font-stretch: 105%;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--on);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.55em 1.1em;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--ink);
  font: 600 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed), color var(--speed);
}
.btn:hover:not(:disabled) {
  background: var(--side);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.primary {
  background: var(--on);
  border-color: var(--on);
  color: var(--on-ink);
}
.btn.primary:hover:not(:disabled) {
  background: var(--on);
  filter: brightness(1.06);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.ghost:hover:not(:disabled) {
  border-color: var(--line);
  background: transparent;
}
.btn.danger {
  border-color: var(--line);
  color: var(--muted);
}
.btn.big {
  width: 100%;
  min-height: 56px;
  font-size: 1.15rem;
}
.btn.small {
  min-height: 36px;
  padding: 0.3em 0.8em;
  font-size: 0.9rem;
}

.input,
select.input,
textarea.input {
  width: 100%;
  min-height: 48px;
  padding: 0.6em 0.8em;
  border: 1px solid var(--muted);
  background: var(--card);
  color: var(--ink);
  font: 400 1rem/1.4 var(--body);
}
.input::placeholder {
  color: var(--idle-ink);
}
.input:focus {
  outline: 2px solid var(--on);
  outline-offset: 0;
}
.input.invalid {
  border-color: var(--on);
  border-style: dashed;
}
.field-error {
  color: var(--on);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.3em 0 0;
}
label.lbl {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.4em;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.notice {
  padding: 0.7em 1em;
  background: var(--side);
  color: var(--ink);
  border-left: 4px solid var(--on);
  font-weight: 500;
}

/* letter key (A/B/C/D) */
.key {
  display: inline-grid;
  place-items: center;
  flex: none;
  font-family: var(--head);
  font-weight: 700;
}
.key.filled {
  background: var(--ink);
  color: var(--bg);
}
.key {
  border-radius: 6px;
}
.key.outline {
  border: 2px solid var(--ink);
  color: var(--ink);
}
.key.on {
  background: var(--on);
  border-color: var(--on);
  color: var(--on-ink);
}

/* name chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.7em;
  font: 600 1rem/1.25 var(--body);
  font-stretch: var(--chip-stretch);
  border: 1px solid transparent;
  border-radius: var(--r-chip);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip.idle {
  border: 1px dashed var(--idle-border);
  color: var(--idle-ink);
  background: transparent;
}
.chip.done {
  background: var(--done);
  color: var(--done-ink);
}
.chip.new {
  background: var(--on);
  color: var(--on-ink);
  animation: chip-pop 240ms ease-out;
}
@keyframes chip-pop {
  from {
    transform: scale(0.85);
    opacity: 0.4;
  }
}

/* brand mark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: var(--head-weight);
  font-stretch: var(--head-stretch);
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.brand::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--on);
  flex: none;
}

/* ---------- team colors (docs/GAMES.md §2; values mirror src/lib/teams.ts) — always shown with the team name ---------- */
.tc0 { --tc: #0f766e; }
.tc1 { --tc: #4338ca; }
.tc2 { --tc: #a21caf; }
.tc3 { --tc: #a16207; }
.tc4 { --tc: #4d7c0f; }
.tc5 { --tc: #0369a1; }
.tc6 { --tc: #be123c; }
.tc7 { --tc: #57534e; }
.tcx { --tc: var(--idle-border); --tc-ink: var(--ink); }
.tc0, .tc1, .tc2, .tc3, .tc4, .tc5, .tc6, .tc7 { --tc-ink: #ffffff; }
:root[data-theme='dark'] .tc0 { --tc: #2dd4bf; }
:root[data-theme='dark'] .tc1 { --tc: #a5b4fc; }
:root[data-theme='dark'] .tc2 { --tc: #f0abfc; }
:root[data-theme='dark'] .tc3 { --tc: #facc15; }
:root[data-theme='dark'] .tc4 { --tc: #a3e635; }
:root[data-theme='dark'] .tc5 { --tc: #7dd3fc; }
:root[data-theme='dark'] .tc6 { --tc: #fda4af; }
:root[data-theme='dark'] .tc7 { --tc: #d6d3d1; }
:root[data-theme='dark'] :is(.tc0, .tc1, .tc2, .tc3, .tc4, .tc5, .tc6, .tc7) { --tc-ink: #24211f; }
/* small square swatch before a team name */
.swatch {
  display: inline-block;
  flex: none;
  width: 0.7em;
  height: 0.7em;
  background: var(--tc);
}
/* team badge: swatch + name */
.tbadge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tbadge::before {
  content: '';
  flex: none;
  width: 0.7em;
  height: 0.7em;
  background: var(--tc);
}

/* segmented controls (radio groups drawn as joined buttons): round only the outer corners */
.seg > label:first-child {
  border-radius: var(--r-ctl) 0 0 var(--r-ctl);
}
.seg > label:last-child {
  border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
}
.seg.col > label:first-child {
  border-radius: var(--r-ctl) var(--r-ctl) 0 0;
}
.seg.col > label:last-child {
  border-radius: 0 0 var(--r-ctl) var(--r-ctl);
}

/* Marketing pages (static HTML) + the homepage sections around the app. Tokens come from app.css. */

/* homepage: hide the marketing blocks on app routes (index.html is also the SPA fallback) and while playing */
body[data-app] .mk,
body[data-playing] .mk {
  display: none !important;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 72rem;
  margin: 0 auto;
  padding: 16px 24px;
}
.site-header .brand {
  font-size: 20px;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
}
.site-nav a:not(.btn) {
  text-decoration: none;
}
.site-nav a:not(.btn):hover {
  text-decoration: underline;
}
.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.theme-toggle span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, var(--ink) 50%, transparent 50%);
}
@media (max-width: 560px) {
  .site-nav a[href='/templates/'],
  .site-nav a[href='/pricing/'],
  .site-nav a[href='/party-games/'] {
    display: none;
  }
}

.site-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8px 24px 48px;
}
.page-head {
  max-width: 46rem;
  padding: 24px 0 8px;
}
.site-main h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.site-main h2 {
  font-size: 26px;
  margin: 0 0 12px;
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
}
.small {
  font-size: 14px;
}
.meta {
  font-size: 14px;
}
.crumbs {
  font-size: 14px;
  color: var(--muted);
  padding-top: 16px;
}

/* ---------- homepage (approved design W-E-home: warm charcoal, games first) ----------
   The hero band and the CTA band are dark in both themes (.theme-dark tokens); the rest follows the page theme.
   Hero-art shades below are illustration-only (a projector screen and a phone in a dark room). */
.hx {
  --cta: #a2300b; /* the light theme's ember: white text on it is 7:1 */
  --cta-ink: #ffffff;
  --screen: #1a1817;
  --table: #2a2623;
  --phone: #121010;
  --line2: #6e665f;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}
.hs-cta {
  --cta: #a2300b;
  --cta-ink: #ffffff;
  --line2: #6e665f;
}
.hx-in,
.hs-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.hx a {
  color: inherit;
}
.hx .btn.primary,
.hs-cta .btn.primary {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--cta-ink);
}
.hx .btn:not(.primary),
.hs-cta .btn:not(.primary) {
  border-color: var(--line2);
  color: var(--ink);
}
.hx-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  min-height: 80px;
  padding: 10px 0;
}
.hx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-stretch: 108%;
  font-weight: 760;
  font-size: 21px;
}
.hx-brand span,
.site-footer .brand::before {
  width: 14px;
  height: 14px;
  background: var(--on);
  display: block;
}
.hx-nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.hx-nav a,
.hx-signin {
  color: var(--muted) !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.hx-nav a:hover,
.hx-signin:hover {
  color: var(--ink) !important;
  text-decoration: underline;
}
.hx-pin {
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hx-pin label {
  font-size: 14px;
  color: var(--muted);
}
.hx-pin input {
  width: 112px;
  height: 40px;
  padding: 0 12px;
  background: var(--side);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  color: var(--ink);
  font: 600 16px var(--body);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.hx-pin input::placeholder {
  color: var(--idle-ink);
}
.hx-pin button {
  height: 40px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--line2);
  border-radius: var(--r-ctl);
  color: var(--ink);
  font: 600 15px var(--body);
  cursor: pointer;
}
.btn.hx-host {
  min-height: 44px;
  font-size: 15px;
}
.hx h1 {
  margin: 64px 0 0;
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 0.98;
  font-stretch: 115%;
  font-weight: 780;
  letter-spacing: -0.02em;
  max-width: 13em;
}
.hx-row {
  display: grid;
  gap: 48px;
  margin-top: 48px;
  padding-bottom: 72px;
}
.hx-lead {
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 25em;
}
.hx-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
}
.btn.hx-big {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 18px;
}
.hx-free {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--idle-ink);
}
.hx-trust {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 15px;
  color: var(--muted);
}
.hx-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hi {
  stroke: var(--on);
  flex: none;
}

/* hero art: the big screen (sizes in cqw so it scales like a picture) + a phone */
.hx-art {
  position: relative;
  min-width: 0;
}
.hx-screen {
  background: var(--side);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 48px 90px -30px rgba(8, 6, 5, 0.75);
}
.hx-stage {
  container-type: inline-size;
  background: var(--screen);
  border-radius: 7px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.hx-stage > * {
  margin: 0;
}
.hx-stage {
  display: flex;
  flex-direction: column;
  gap: 2cqw;
  padding: 2.9cqw 3.1cqw 2.3cqw;
}
.hx-stage p {
  margin: 0;
}
.hx-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.7cqw;
}
.hx-small {
  font-size: 1.75cqw;
  color: var(--idle-ink);
}
.hx-phase {
  font-size: 4.2cqw;
  line-height: 1.05;
  font-weight: 780;
  font-stretch: 112%;
}
.hx-timer {
  height: 0.85cqw;
  background: var(--ph);
  border-radius: 0.5cqw;
  overflow: hidden;
}
.hx-timer i {
  display: block;
  height: 100%;
  width: 46%; /* reduced motion: the design's still frame */
  background: var(--on);
  animation: hx-timer 16s linear infinite;
}
@keyframes hx-timer {
  from {
    width: 100%;
  }
  to {
    width: 6%;
  }
}
.hx-tables {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1cqw;
}
.hx-table {
  background: var(--table);
  border-radius: 0.85cqw;
  padding: 1.4cqw 1.7cqw;
  display: flex;
  flex-direction: column;
  gap: 1cqw;
}
.hx-table p:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  font-size: 1.7cqw;
  color: var(--idle-ink);
}
.hx-table b {
  color: var(--ink);
  font-weight: 650;
}
.hx-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55cqw;
}
.hx-dots i {
  width: 1.7cqw;
  height: 1.7cqw;
  border-radius: 50%;
  background: var(--done);
}
.hx-dots i.out {
  background: var(--line);
}
.hx-tip {
  font-size: 1.8cqw;
  color: var(--muted);
}
.hx-phone {
  position: absolute;
  right: -26px;
  bottom: -58px;
  width: 172px;
  height: 352px;
  padding: 7px;
  background: var(--phone);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.5);
}
.hx-phone-in {
  height: 100%;
  background: var(--bg);
  border-radius: 23px;
  padding: 22px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hx-phone p {
  margin: 0;
}
.hx-tiny {
  font-size: 10px;
  color: var(--idle-ink);
}
.hx-card {
  display: grid;
  height: 112px;
  perspective: 600px;
}
.hx-face {
  grid-area: 1 / 1;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  backface-visibility: hidden;
}
.hx-role {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 780;
  font-stretch: 110%;
}
.hx-hidden {
  background: var(--ph);
  color: var(--ink);
  opacity: 0; /* reduced motion: the card shows the role */
  animation: hx-hide 16s infinite;
}
.hx-hidden p:not(.hx-role) {
  color: var(--idle-ink);
}
.hx-shown {
  background: var(--on);
  color: var(--on-ink);
  animation: hx-show 16s infinite;
}
@keyframes hx-show {
  0%,
  22% {
    opacity: 0;
    transform: rotateY(-90deg);
  }
  26%,
  70% {
    opacity: 1;
    transform: rotateY(0);
  }
  74%,
  100% {
    opacity: 0;
    transform: rotateY(90deg);
  }
}
@keyframes hx-hide {
  0%,
  20% {
    opacity: 1;
    transform: rotateY(0);
  }
  24%,
  72% {
    opacity: 0;
    transform: rotateY(90deg);
  }
  76%,
  100% {
    opacity: 1;
    transform: rotateY(0);
  }
}
.hx-ask {
  font-size: 11px;
  font-weight: 650;
  margin-top: 2px !important;
}
.hx-opt {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  background: var(--side);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
}
.hx-opt.on {
  border: 2px solid var(--on);
  font-weight: 650;
}

/* the join card (the app's player form) right under the hero, left column */
body[data-page='home']:not([data-app]):not([data-playing]) .home-join {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 0;
  display: grid;
}
body[data-page='home']:not([data-app]):not([data-playing]) .home-join .player {
  margin: 0;
  max-width: 480px;
}
body[data-page='home'] #app {
  min-height: 430px; /* reserve the join card so the sections below don't shift when it mounts */
}

@media (min-width: 1080px) {
  .hx-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    padding-bottom: 64px;
  }
  .hx-art {
    z-index: 2;
    margin-bottom: -214px; /* hangs into the join area, like the design */
  }
  .hx-copy {
    padding-top: 6px;
  }
  body[data-page='home']:not([data-app]):not([data-playing]) .home-join {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 48px;
  }
}

/* sections */
.hs {
  padding: 104px 0;
}
.hs h2 {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.04;
  font-stretch: 110%;
  font-weight: 770;
  letter-spacing: -0.015em;
  max-width: 11em;
}
.hs-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 64px;
  align-items: flex-end;
  justify-content: space-between;
}
.hs-head p,
.hs-split > div > p:last-child {
  margin: 0;
  max-width: 28em;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}
.hs-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
  margin-top: 56px;
}
.hs-games article {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hs-games h3 {
  margin: 0;
  font-size: 23px;
  font-stretch: 106%;
  font-weight: 720;
}
.hs-games h3 a {
  text-decoration: none;
}
.hs-games article > p {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.hs-also {
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.hs-also a {
  color: var(--ink);
  font-weight: 650;
}
.hs-side {
  background: var(--side);
}
.hs-rooms {
  list-style: none;
  padding: 0;
  margin: 60px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 36px;
}
.hs-rooms li {
  flex: 1 1 230px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.hs-rooms h3 {
  margin: 14px 0 0;
  font-size: 22px;
  font-stretch: 106%;
  font-weight: 720;
}
.hs-rooms p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.hs-rooms .hi {
  stroke: var(--on);
}
.hs-tag {
  display: inline-block;
  margin: 0;
  padding: 4px 11px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.hs-soon {
  padding: 96px 0;
}
.hs-soon .hs-tag {
  color: var(--muted);
  background: transparent;
}
.hs-soon h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.2vw, 44px);
  max-width: 14em;
}
.hs-split {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: center;
  justify-content: space-between;
}
.hs-split > div:first-child {
  flex: 1 1 420px;
  min-width: 0;
}
.hs-split > div > p:last-child {
  margin-top: 14px;
  max-width: 30em;
}
.hs-wait {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hs-wait p {
  margin: 0;
}
.hs-wait-l {
  font-size: 15px;
  font-weight: 600;
}
.btn.hs-ink-btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  font-size: 17px;
}
.btn.hs-ink-btn:hover:not(:disabled) {
  background: var(--ink);
  filter: brightness(1.2);
}
.hs-note {
  font-size: 14px;
  color: var(--muted);
}
.hs-cta {
  background: var(--bg);
  color: var(--ink);
  padding: 96px 0;
}
.hs-cta h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  font-stretch: 112%;
  font-weight: 780;
  max-width: none;
}
.hs-cta .hs-split > div:first-child {
  flex: 0 1 640px;
}
.hs-cta .hx-ctas {
  margin: 0;
}
.hs-cta .hs-split > div > p:last-child {
  margin-top: 12px;
}

/* homepage footer: brand first (all marketing footers share it) */
.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-stretch: 108%;
  font-weight: 760;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.site-footer .brand::before {
  content: '';
  width: 11px;
  height: 11px;
}
body[data-page='home'] .site-footer {
  max-width: none;
  padding: 36px max(40px, calc((100% - 1200px) / 2)) 44px;
  background: var(--side);
  border-top: 0;
  font-size: 15px;
}

@media (max-width: 760px) {
  .hx-in,
  .hs-in {
    padding: 0 20px;
  }
  body[data-page='home']:not([data-app]):not([data-playing]) .home-join {
    padding: 28px 20px 0;
  }
  .hx-top {
    gap: 12px 18px;
  }
  .hx-nav {
    order: 3;
    width: 100%;
    gap: 18px;
  }
  .hx-pin {
    order: 4;
    margin: 0;
    width: 100%;
  }
  .hx-pin input {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
  .hx-signin {
    margin-left: auto;
  }
  .hx h1 {
    margin-top: 36px;
  }
  .hx-lead {
    font-size: 18px;
  }
  .hx-phone {
    right: 6px;
    bottom: -64px;
    transform: scale(0.72);
    transform-origin: bottom right;
  }
  .hx-row {
    padding-bottom: 88px;
  }
  .hs {
    padding: 64px 0;
  }
  .hs-head p,
  .hs-split > div > p:last-child {
    font-size: 17px;
  }
}
@media (max-width: 400px) {
  .btn.hx-host {
    display: none; /* "Host your first game" is right below */
  }
  .btn.hx-big {
    width: 100%;
  }
}

/* numbered steps (party game pages) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  font-size: 17px;
  line-height: 1.5;
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: var(--r-ctl);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--head);
  font-weight: 700;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0 40px;
}
.plan {
  border: 2px solid var(--ink);
  padding: 28px;
  background: var(--card);
}
.plan h2 {
  font-size: 30px;
}
.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--ink);
}
.badge.on {
  background: var(--on);
  border-color: var(--on);
  color: var(--on-ink);
}
.price {
  font-family: var(--head);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px;
}
.price.muted {
  font-size: 20px;
  font-weight: 600;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.ticks li {
  position: relative;
  padding: 6px 0 6px 26px;
  border-bottom: 1px solid var(--line);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 10px;
  height: 10px;
  background: var(--on);
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
}
.faq details p {
  margin: 10px 0 0;
  max-width: 46rem;
  line-height: 1.55;
}

/* templates + compare */
.cards {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.tcard {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 20px;
}
.tcard h2 {
  font-size: 21px;
}
.tcard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.qlist {
  padding-left: 1.4em;
  max-width: 46rem;
}
.qlist > li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
/* scoped to the template pages: the homepage also runs the player app, whose .qtext/.opts are its own */
.qlist .qtext {
  font-weight: 600;
  margin: 0 0 8px;
}
.qlist .opts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.qlist .opts .key {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
}
.answers {
  margin: 20px 0;
  max-width: 46rem;
}
.answers summary {
  font-weight: 600;
  cursor: pointer;
}
.tlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  list-style: none;
}
.table-wrap {
  overflow-x: auto;
  margin: 24px 0 8px;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: var(--head);
  font-size: 18px;
}
.compare tbody th {
  font-weight: 600;
  width: 32%;
}

/* legal */
.legal {
  max-width: 46rem;
  padding-top: 24px;
  line-height: 1.6;
}
.legal ol {
  padding-left: 1.4em;
}
.legal li {
  margin-bottom: 10px;
}

/* footer (marketing pages + host app pages) */
.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.site-footer a {
  color: var(--muted);
}
.site-footer .copy {
  margin: 0 0 0 auto;
}

/* illustrations (inline SVG, themed) */
.il {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
}
.il-ink {
  fill: var(--ink);
  stroke: var(--ink);
}
.il-on {
  fill: var(--on);
}
.il-muted {
  fill: var(--bar);
}
.il-line {
  fill: var(--line);
}
path.il-ink[fill='none'] {
  fill: none;
}

/* party games */
.badge {
  vertical-align: middle;
}
h2 .badge {
  font-family: var(--body);
  margin: 0 0 0 8px;
}
.games {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.game {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 20px;
}
.game .il,
.games-cards .il {
  max-width: 160px;
  margin-bottom: 12px;
}
.game h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.game p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.with-art {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: none;
}
.with-art .art .il {
  max-width: 320px;
}
@media (max-width: 760px) {
  .games,
  .with-art {
    grid-template-columns: 1fr;
  }
}

/* pricing: "try every game free" + four plans */
.try-free {
  padding: 14px 18px;
  border-left: 6px solid var(--on);
  background: var(--card, transparent);
  margin: 8px 0 0;
}
.plans.four {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.plans.four .plan {
  padding: 22px;
}
.plans.four .plan h2 {
  font-size: 26px;
}
.plans.four .price {
  font-size: 20px;
  line-height: 1.3;
}
.plan.highlight {
  border-color: var(--on);
  border-width: 3px;
}
.hl {
  font-weight: 600;
  margin: 0 0 12px;
}
.compare-note {
  max-width: 50rem;
}
@media (max-width: 1100px) {
  .plans.four {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .plans.four {
    grid-template-columns: 1fr;
  }
}
.ad-free {
  margin: 16px 0 0;
  font-weight: 600;
}

/* demo clips (src/site/demos.ts): a 16:9 dark frame with the poster until the clip plays */
.demo-clip {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #171513;
  border: 1px solid var(--line);
}
.demo-clip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #ff8a4c;
  color: #24211f;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.demo-play span {
  width: 0;
  height: 0;
  border-left: 13px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.demo-clip.playing .demo-play {
  top: auto;
  bottom: 12px;
  left: auto;
  right: 12px;
  transform: none;
}
.demo-clip.playing .demo-play span {
  width: 11px;
  height: 14px;
  border: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}
.demo-play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.demo-fig {
  margin: 8px 0 40px;
  max-width: 1040px;
}
.demo-fig figcaption {
  margin-top: 10px;
}
.demo-play[hidden] {
  display: none;
}
