/* tastemaker: Product Demo (guide) · N3 floating pill · H2 split demo, real capture bleeding off the band · F4 steps + F2 card grid + F6 house rules · C2 close · Ft2 inline · mood festive/tactile/clear · palette locked from the app (.tastemaker/style-lock.md), rose #D3245F from the store art · contrast: white on rose 5.02:1, marigold label 7.40:1, text on day 14.5:1, dusk text 12.72:1 · critique show 5 / philosophy 4 / hierarchy 4 / specificity 5 / restraint 4 / variety 4 */

/* Fonts: self-hosted, so the site loads nothing from other websites (the privacy policy says so). */
@font-face {
  font-family: 'Baloo 2';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/baloo-2-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/baloo-2-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Mukta';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/mukta-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Mukta';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/mukta-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Mukta';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/mukta-latin-700-normal.woff2') format('woff2');
}

:root {
  /* Day sky */
  --bg: #e6f0f6;
  --surface: #fafcfe;
  --surface-2: #eef5fa;
  --ink: #14213d;
  --muted: #53627a;
  --line: #c3d4e1;
  --accent: #e8920a;
  --accent-ink: #1e1400;
  --ring: #b86e00;
  --rose: #d3245f;
  --cut: #c42a2a;
  --good: #1d7a52;
  /* Dusk sky, for the fixed dusk bands */
  --dusk: #0f1022;
  --dusk-surface: #23264a;
  --dusk-surface-2: #2d3157;
  --dusk-line: #30355c;
  --dusk-ink: #ecf0fa;
  --dusk-muted: #a0aaca;
  --dusk-accent: #ffb43a;

  /* Card paper: the app's, unchanged */
  --card-face: #f7f2e7;
  --card-face-hi: #fffdf8;
  --card-ink: #14213d;
  --card-edge: #c6d3df;
  --card-bonus: #fff4e0;
  --card-bonus-ink: #a35400;
  --card-frame: #d5c8b5;
  --card-trim: #e8920a;
  --card-gold: #d4af37;
  --action: #141d42;
  --action-hi: #222f63;
  --action-ink: #f2f5fc;
  --ic-gust: #8fd6ff;
  --ic-reel: #ffb43a;
  --ic-spare: #72e3b4;
  --ic-manjha: #ff7b9c;
  --ic-festival: #f9c74f;
  --kite-ink-dark: #14213d;
  --kite-ink-light: #ffffff;
  --kite-shade: rgba(20, 33, 61, 0.16);
  --kite-gloss: rgba(255, 255, 255, 0.3);
  --shadow: rgba(20, 33, 61, 0.14);
  --k0: #6b7a8f;
  --k1: #e63946;
  --k2: #f3722c;
  --k3: #f8961e;
  --k4: #f9c74f;
  --k5: #90be6d;
  --k6: #43aa8b;
  --k7: #277da1;
  --k8: #4361ee;
  --k9: #7209b7;
  --k10: #b5179e;
  --k11: #f72585;
  --k12: #1d3557;

  --f-display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --f-body: 'Mukta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1160px;
  --gut: 16px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}
@media (min-width: 700px) {
  :root {
    --gut: 32px;
  }
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
}
.skip:focus {
  left: 8px;
}
.num-t {
  font-variant-numeric: tabular-nums;
}

/* ---------- Nav: a floating dusk pill ---------- */
.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin: 12px auto 0;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gut));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(15, 16, 34, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 16, 34, 0.25);
  color: var(--dusk-ink);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: 8px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 21px;
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.nav-links {
  display: none;
  gap: 2px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--dusk-muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition:
    color 150ms var(--ease-out),
    background-color 150ms var(--ease-out);
}
@media (hover: hover) {
  .nav-links a:hover {
    color: var(--dusk-ink);
    background: rgba(255, 255, 255, 0.08);
  }
}
@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

/* Marigold action, dark label (7.40:1) — never white on marigold. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition:
    transform 120ms var(--ease-out),
    filter 150ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .btn:hover {
    filter: brightness(1.06);
  }
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Store badges ---------- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: transform 120ms var(--ease-out);
}
.store:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .store:hover {
    transform: translateY(-2px);
  }
}
.store svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}
.store span {
  display: grid;
  line-height: 1.1;
  font-size: 12px;
}
.store b {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Bands ---------- */
.band {
  padding: 96px 0;
}
.band.day {
  background: var(--bg);
}
.band.dusk {
  background: var(--dusk);
  color: var(--dusk-ink);
}
.band.rose {
  background: var(--rose);
  color: #fff;
}
@media (min-width: 1024px) {
  .band {
    padding: 128px 0;
  }
}
.head {
  max-width: 720px;
  margin-bottom: 40px;
}
.head h2 {
  font-size: clamp(32px, 4.4vw, 48px);
}
.head p {
  margin-top: 12px;
  font-size: 19px;
  color: var(--muted);
}
.dusk .head p {
  color: var(--dusk-muted);
}

/* ---------- Hero: copy left, the real table rising out of the band's bottom edge ---------- */
.hero {
  background: var(--rose);
  color: #fff;
  margin-top: -68px; /* the sticky pill floats over the band */
  padding-top: 112px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 40px;
}
.hero-copy {
  align-self: center;
  padding-bottom: 8px;
}
.hero h1 {
  font-size: clamp(44px, 7.2vw, 80px);
  line-height: 1.02;
  max-width: 11ch;
}
.hero .lede {
  margin-top: 20px;
  max-width: 34ch;
  font-size: clamp(18px, 1.8vw, 21px);
}
.hero .stores {
  margin-top: 32px;
}
.hero .alt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 600;
  text-underline-offset: 4px;
}
.hero .alt svg {
  width: 18px;
  height: 18px;
}
.hero-shot {
  justify-self: center;
  width: min(100%, 440px);
  margin-bottom: -2px;
}
@media (min-width: 900px) {
  .hero {
    padding-top: 128px;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 48px;
  }
  .hero-copy {
    padding-bottom: 120px;
  }
  .hero-shot {
    justify-self: end;
  }
}

/* ---------- Cards: a static port of the app's Card (src/ui/components/Card.module.css) ---------- */
.card {
  --cw: 64px;
  --ch: calc(var(--cw) * 1.4);
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--cw);
  height: var(--ch);
  border-radius: calc(var(--cw) * 0.13);
  background: radial-gradient(ellipse at 50% 50%, var(--card-face-hi), var(--card-face) 75%);
  color: var(--card-ink);
  box-shadow:
    0 0 0 1px var(--card-edge),
    0 1px 0 var(--card-edge),
    0 4px 10px var(--shadow);
  font-family: var(--f-display);
  overflow: hidden;
}
.card.lg {
  --cw: 104px;
}
@media (min-width: 700px) {
  .card {
    --cw: 72px;
  }
  .card.lg {
    --cw: 116px;
  }
}
.card::before,
.card::after {
  content: '';
  position: absolute;
  inset: calc(var(--cw) * 0.05);
  border: 1px solid var(--card-frame);
  border-radius: calc(var(--cw) * 0.07);
  pointer-events: none;
}
.card::after {
  inset: calc(var(--cw) * 0.05 + 2px);
  border-color: color-mix(in srgb, var(--card-trim) 40%, transparent);
  border-radius: calc(var(--cw) * 0.05);
}
.patang {
  display: grid;
  justify-items: center;
  transform-origin: 50% 20%;
  filter: drop-shadow(0 calc(var(--cw) * 0.02) calc(var(--cw) * 0.015) var(--kite-shade));
}
.kite {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--cw) * 0.74);
  height: calc(var(--cw) * 0.765);
  color: var(--k);
}
.kite svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tail {
  width: calc(var(--cw) * 0.2);
  height: calc(var(--ch) * 0.17);
  margin-top: -1px;
  color: var(--k);
}
.kv {
  position: relative;
  font-weight: 800;
  font-size: calc(var(--cw) * 0.4);
  line-height: 1;
  color: var(--kt, var(--kite-ink-light));
  transform: translateY(6%);
  font-variant-numeric: tabular-nums;
}
.corner {
  position: absolute;
  top: calc(var(--cw) * 0.1);
  left: calc(var(--cw) * 0.12);
  font-size: calc(var(--cw) * 0.2);
  font-weight: 800;
  line-height: 1;
}
.corner.end {
  top: auto;
  left: auto;
  bottom: calc(var(--cw) * 0.1);
  right: calc(var(--cw) * 0.12);
  transform: rotate(180deg);
}
/* Kite paper and ink per number: dark ink on 2–6, white on the rest (style lock). */
.k0 {
  --k: var(--k0);
}
.k1 {
  --k: var(--k1);
}
.k2 {
  --k: var(--k2);
  --kt: var(--kite-ink-dark);
}
.k3 {
  --k: var(--k3);
  --kt: var(--kite-ink-dark);
}
.k4 {
  --k: var(--k4);
  --kt: var(--kite-ink-dark);
}
.k5 {
  --k: var(--k5);
  --kt: var(--kite-ink-dark);
}
.k6 {
  --k: var(--k6);
  --kt: var(--kite-ink-dark);
}
.k7 {
  --k: var(--k7);
}
.k8 {
  --k: var(--k8);
}
.k9 {
  --k: var(--k9);
}
.k10 {
  --k: var(--k10);
}
.k11 {
  --k: var(--k11);
}
.k12 {
  --k: var(--k12);
}

/* Tassel and Updraft: bonus paper */
.card.mod {
  background: radial-gradient(ellipse at 50% 50%, var(--card-face-hi), var(--card-bonus) 75%);
  color: var(--card-bonus-ink);
  align-content: center;
  gap: calc(var(--cw) * 0.03);
  --pip: var(--card-trim);
  --pip-gap: var(--card-bonus);
}
.card.mod::before {
  border-color: color-mix(in srgb, var(--card-trim) 75%, transparent);
}
.mv {
  font-size: calc(var(--cw) * 0.34);
  font-weight: 800;
  line-height: 1;
}
.art {
  width: 56%;
  height: auto;
}
.name {
  padding: 0 3px;
  font-family: var(--f-body);
  font-size: max(11px, calc(var(--cw) * 0.15));
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  color: var(--card-ink);
}
/* Action cards: Darbar night paper, gold rules, the icon in a ringed medallion */
.card.act {
  background: radial-gradient(ellipse at 50% 50%, var(--action-hi), var(--action) 75%);
  color: var(--action-ink);
  box-shadow:
    0 0 0 1px var(--dusk-line),
    0 4px 10px rgba(0, 0, 0, 0.45);
  align-content: center;
  gap: calc(var(--ch) * 0.04);
  --pip: var(--card-gold);
  --pip-gap: var(--action);
}
.card.act::before {
  border-color: color-mix(in srgb, var(--card-gold) 80%, transparent);
}
.card.act::after {
  border-color: color-mix(in srgb, var(--card-gold) 30%, transparent);
}
.card.act .name {
  color: var(--action-ink);
}
.halo {
  display: grid;
  place-items: center;
  width: calc(var(--cw) * 0.56);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 13%, transparent);
  box-shadow:
    inset 0 0 0 1.5px currentColor,
    0 0 0 2px var(--action-hi),
    0 0 0 3px color-mix(in srgb, var(--card-gold) 55%, transparent);
}
.halo svg {
  width: 70%;
  height: auto;
}
.gust .halo {
  color: var(--ic-gust);
}
.reel .halo {
  color: var(--ic-reel);
}
.spare .halo {
  color: var(--ic-spare);
}
.manjha .halo {
  color: var(--ic-manjha);
}
.festival .halo {
  color: var(--ic-festival);
}
.pips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pips::before,
.pips::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--cw) * 0.05 + 0.5px);
  width: calc(var(--cw) * 0.075);
  aspect-ratio: 1;
  background: var(--pip);
  box-shadow: 0 0 0 calc(var(--cw) * 0.025) var(--pip-gap);
  transform: translate(-50%, -50%) rotate(45deg);
}
.pips::after {
  top: auto;
  bottom: calc(var(--cw) * 0.05 + 0.5px);
  transform: translate(-50%, 50%) rotate(45deg);
}
/* The repeat that cut a kite: a red ring and the manjha slash */
.card.repeat {
  box-shadow:
    0 0 0 2px var(--cut),
    0 4px 10px var(--shadow);
}
.slash {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.slash line {
  stroke: var(--cut);
  stroke-width: 5;
  stroke-linecap: round;
}
.slash .thread {
  stroke: #fff;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

/* ---------- How a turn works ---------- */
.steps {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
.step {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  counter-increment: step;
}
.step h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 26px;
}
.step h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  transform: translateY(-3px);
}
.hand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: calc(72px * 1.4);
}
.hand.tight {
  gap: 6px;
}
.hand.tight .card {
  --cw: 62px;
}
/* The app's bottom bar: score, meter, and the two choices */
.bankbar {
  display: grid;
  align-self: center;
  gap: 8px;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}
.actions span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.actions .go {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.step p {
  color: var(--muted);
}
.step p strong {
  color: var(--ink);
}
/* A slice of the app's score bar under each hand */
.readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--dusk-surface);
  color: var(--dusk-ink);
  font-size: 15px;
}
.readout b {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.readout .hot {
  color: #ff6b6b;
}
.readout .ok {
  color: #4fd18f;
}
.meter {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dusk-muted);
}
.meter i {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--dusk-surface-2);
  overflow: hidden;
}
.meter i::before {
  content: '';
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: #ff6b6b;
}
.meter em {
  font-style: normal;
  font-weight: 700;
  color: #ff6b6b;
  font-variant-numeric: tabular-nums;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.chip.banked {
  box-shadow: inset 0 0 0 1.5px #4fd18f;
  color: #4fd18f;
}
.chip.cut {
  background: #ff6b6b;
  color: #1e0a0a;
}
.chip.rainbow {
  background: linear-gradient(90deg, #e63946, #f3722c, #f9c74f, #43aa8b, #277da1, #4361ee, #7209b7);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* The deck, as a chart: a number's copies equal its value */
.deck {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
@media (min-width: 900px) {
  .deck {
    grid-template-columns: 280px 1fr;
    align-items: end;
    gap: 40px;
    padding: 32px;
  }
}
.deck h3 {
  font-size: 26px;
}
.deck p {
  margin-top: 8px;
  color: var(--muted);
}
.deck .goal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.deck .goal b {
  font-family: var(--f-display);
  font-size: 40px;
  line-height: 1;
}
.bars {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  align-items: end;
  gap: 4px;
  height: 240px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bars li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  height: 100%;
  font-variant-numeric: tabular-nums;
}
.bars .n {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.bars .bar {
  width: 100%;
  max-width: 36px;
  height: calc(var(--c) / 12 * (100% - 48px)); /* room for the two labels */
  min-height: 6px;
  border-radius: 6px 6px 2px 2px;
  background: var(--k);
}
.bars .v {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}

/* ---------- Action cards (dusk) ---------- */
.split {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 300px;
    align-items: start;
    gap: 56px;
  }
  .split.flip {
    grid-template-columns: 300px 1fr;
  }
  .split.flip > .shot {
    order: -1;
  }
}
.deckgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.deckgrid li {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--dusk-line);
  border-radius: 18px;
  background: var(--dusk-surface);
}
.deckgrid h3 {
  font-size: 21px;
}
.deckgrid p {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--dusk-muted);
}
.tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--dusk-surface-2);
  color: var(--dusk-ink);
  font-size: 13px;
  font-weight: 600;
}
.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}
.shot figcaption {
  max-width: 300px;
  margin: 12px auto 0;
  font-size: 15px;
  text-align: center;
  color: var(--dusk-muted);
}

/* ---------- Weather (dusk, the app's play-area sky) ---------- */
.band.sky {
  background: linear-gradient(180deg, #16173a, #33264a);
  color: var(--dusk-ink);
}
.band.sky .head p {
  color: var(--dusk-muted);
}
.weather {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.weather li {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--dusk-line);
  border-radius: 12px;
  background: var(--dusk-surface);
}
.weather b {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 18px;
}
.weather small {
  font-size: 14px;
  font-weight: 600;
  color: var(--dusk-muted);
  font-variant-numeric: tabular-nums;
}
.weather span {
  font-size: 15px;
  color: var(--dusk-muted);
}
.weather .odds {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.weather .odds i {
  width: 14px;
  height: 20px;
  border-radius: 3px;
  background: var(--dusk-surface-2);
}
.weather .odds i.on {
  background: var(--dusk-accent);
}
.note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--dusk-muted);
}

/* ---------- Ways to play (day) ---------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72%, 260px);
  gap: 16px;
  margin: 0 calc(-1 * var(--gut)) 48px;
  padding: 0 var(--gut) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  overscroll-behavior-x: contain;
}
.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}
.gallery img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 32px var(--shadow);
}
.gallery figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}
@media (min-width: 900px) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 48px;
    padding: 0;
    overflow: visible;
  }
}
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .modes {
    grid-template-columns: repeat(3, 1fr);
  }
}
.modes li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.modes b {
  display: block;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
}
.modes span {
  color: var(--muted);
  font-size: 15px;
}
.rules {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.rules h3 {
  padding: 20px 24px 0;
  font-size: 24px;
}
.rules > p {
  padding: 4px 24px 12px;
  color: var(--muted);
}
.rules table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.rules th,
.rules td {
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.rules th {
  width: 34%;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
}
.rules td {
  color: var(--muted);
}

/* ---------- Friendly by design ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface-2);
}
.facts svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.facts b {
  font-size: 17px;
}
.facts span {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Close ---------- */
.close {
  text-align: left;
}
.close .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}
.close h2 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  max-width: 12ch;
}
.close p {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 19px;
}
.close .fan {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}
.close .fan .card {
  margin-left: -18px;
  transform: rotate(var(--r)) translateY(var(--y, 0));
  transform-origin: 50% 120%;
}
.close .fan .card:first-child {
  margin-left: 0;
}
@media (min-width: 900px) {
  .close .wrap {
    grid-template-columns: 1.2fr 1fr;
  }
  .close .fan .card {
    --cw: 104px;
  }
}

/* ---------- Footer ---------- */
.foot {
  background: var(--dusk);
  color: var(--dusk-muted);
  font-size: 15px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  padding-top: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dusk-ink);
  text-decoration: none;
}
@media (hover: hover) {
  .foot a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
.foot .copy {
  margin-left: auto;
}

/* ---------- Motion: CSS only. Kites sway in the air; steps and the cut slash play as they scroll in. ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The app's sway (Card.module.css): an ambient pendulum loop, so ease-in-out on purpose. */
  .flying .patang {
    animation: sway 3.6s ease-in-out infinite;
    animation-delay: var(--sway, 0s);
  }
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
    .slash line {
      stroke-dasharray: 140;
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 45%;
    }
    .slash .thread {
      stroke-dasharray: 4 4;
      animation: fade linear both;
      animation-timeline: view();
      animation-range: cover 40% cover 50%;
    }
    .bars .bar {
      transform-origin: bottom;
      animation: grow linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg) translateY(-2%);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 140;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes grow {
  from {
    transform: scaleY(0.08);
  }
}

/* ---------- Legal and download pages: a plain page that follows the device theme ---------- */
.page {
  --p-bg: var(--bg);
  --p-surface: var(--surface);
  --p-ink: var(--ink);
  --p-muted: var(--muted);
  --p-line: var(--line);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--p-bg);
  color: var(--p-ink);
}
@media (prefers-color-scheme: dark) {
  .page {
    --p-bg: var(--dusk);
    --p-surface: var(--dusk-surface);
    --p-ink: var(--dusk-ink);
    --p-muted: var(--dusk-muted);
    --p-line: var(--dusk-line);
    --ring: #ffb43a;
    color-scheme: dark;
  }
}
.page .nav {
  margin-bottom: 0;
}
.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--gut) 64px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 48px);
}
.legal .meta {
  margin-top: 6px;
  color: var(--p-muted);
  font-size: 15px;
}
.legal .intro {
  margin-top: 24px;
  font-size: 19px;
}
.legal h2 {
  margin: 40px 0 8px;
  font-size: 24px;
}
.legal p + p,
.legal ul + p,
.legal p + ul {
  margin-top: 12px;
}
.legal ul {
  margin: 0;
  padding-left: 22px;
}
.legal li + li {
  margin-top: 4px;
}
.legal a {
  font-weight: 600;
  text-underline-offset: 3px;
}
.legal .toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  background: var(--p-surface);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.page .foot {
  background: transparent;
  color: var(--p-muted);
  border-top: 1px solid var(--p-line);
}
.page .foot a {
  color: var(--p-ink);
}

/* /download: what desktops (and anything the redirect didn't catch) see */
.get {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px var(--gut) 64px;
  text-align: center;
}
.get > div {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 520px;
}
.get .icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(15, 16, 34, 0.3);
}
.get h1 {
  margin-top: 8px;
  font-size: clamp(36px, 6vw, 52px);
}
.get p {
  color: var(--p-muted);
  font-size: 18px;
}
.get .stores {
  justify-content: center;
  margin-top: 8px;
}
