@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/site-geist-latin-19f9c92546.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}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/site-geist-latin-ext-824f485b5d.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Geist';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/site-geist-cyrillic-6894439694.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Young Serif';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/site-young-serif-0a267e68ab.woff2) format('woff2')}
/* Tavla landing and rules pages — Linktree-style colour bands, a floating pill nav and heavy display type.
   @font-face rules for Geist (latin, latin-ext, cyrillic) and Young Serif are prepended by site/build.mjs. */

:root {
  --forest: #254f1a;
  --lime: #d2e823;
  --purple: #502274;
  --lilac: #e9c0e9;
  --wine: #780016;
  --wine-deep: #5c0011;
  --ink: #1e2330;
  --paper: #f3f3f1;
  --white: #ffffff;
  --muted: #5c5c64;
  --line: rgba(30, 35, 48, 0.12);
  --sky: #5aaee6;
  --sky-ring: #3f8fc4;
  --red: #c9302c;
  --cream: #ecdfc8;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wordmark: 'Young Serif', Georgia, 'Times New Roman', serif;
  --radius-card: 28px;
  --gutter: 16px;
  --nav-h: 68px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 32px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.band-lime :focus-visible, .band-paper :focus-visible, .nav :focus-visible, .footer-card :focus-visible { outline-color: var(--purple); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 16px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---- Colour bands ---- */
.band { padding: clamp(72px, 10vw, 136px) 0; }
.band-forest { background: var(--forest); color: var(--lime); }
.band-purple { background: var(--purple); color: var(--lilac); }
.band-lilac { background: var(--lilac); color: var(--purple); }
.band-wine { background: var(--wine); color: var(--lilac); }
.band-lime { background: var(--lime); color: var(--ink); }
.band-paper { background: var(--paper); color: var(--ink); }

h1, h2, .cta-title, .faq-title {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.2rem + 5.6vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); }
h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-size: 1.45rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  font: 600 1.02rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 0.95rem; }
.btn-lilac { background: var(--lilac); color: var(--ink); }
.btn-lilac:hover { background: #f1d3f1; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2d3345; }
.btn-light { background: #eff0ec; color: var(--ink); }
.btn-light:hover { background: #e3e4df; }
.btn-outline { background: transparent; }
.btn-outline-dark { color: inherit; border-color: currentColor; }
.btn-outline-dark:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline-light { color: var(--ink); border-color: var(--ink); }
.btn-outline-light:hover { background: rgba(30, 35, 48, 0.06); }
.btn .icon { flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.link-arrow .icon { transition: transform 160ms ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---- Nav: a white pill floating over the bands ---- */
.nav-wrap { position: fixed; inset: 12px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: 1240px; margin: 0 auto; min-height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 10px 10px 10px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.wordmark { font-family: var(--wordmark); font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; transform: translateY(-2px); }
.nav-links { display: flex; gap: 6px; list-style: none; flex: 1; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 12px;
  text-decoration: none; font-weight: 500; font-size: 0.97rem; color: #3a3f4d;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { background: #eff0ec; color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-lang {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; text-decoration: none; letter-spacing: 0.04em;
}
.nav-lang:hover { background: #eff0ec; }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 999px; background: #eff0ec;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px;
  background: var(--white); border-radius: 24px; padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.nav-menu-panel ul { list-style: none; display: grid; }
.nav-menu-panel a { display: block; padding: 14px 16px; border-radius: 14px; text-decoration: none; font-weight: 600; }
.nav-menu-panel a:hover { background: #eff0ec; }

@media (max-width: 960px) {
  .nav-links, .nav-lang, .nav-signin { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 380px) {
  .nav { padding-left: 14px; gap: 10px; }
  .wordmark { font-size: 1.5rem; }
}

/* ---- Hero ---- */
.hero { padding-top: calc(var(--nav-h) + 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 28px; align-content: center; }
.hero-text { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); max-width: 34em; color: #e8f3a0; }
.hero-note { font-size: 0.95rem; color: #c3d97a; }
.hero h1 { color: var(--lime); }

.collage { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / 1.02; margin: 0 auto; container-type: inline-size; }
.phone {
  position: relative; aspect-ratio: 1320 / 2868; padding: 1.6%;
  background: #0e0f12; border-radius: 15% / 7%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 13.4% / 6.2%; }
.collage-phone-a { position: absolute; width: 42cqw; left: 25cqw; top: 2cqw; transform: rotate(-6deg); z-index: 2; }
.collage-phone-b { position: absolute; width: 38cqw; right: 0; top: 14cqw; transform: rotate(7deg); z-index: 1; }
.collage-mars {
  position: absolute; left: 0; top: 18cqw; z-index: 3; transform: rotate(-5deg);
  display: grid; gap: 1cqw; padding: 3.4cqw 4.4cqw; border-radius: 4.5cqw;
  background: var(--lime); color: var(--forest); font-weight: 700; font-size: 3.6cqw; letter-spacing: -0.01em;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.collage-mars span { font-size: 13cqw; font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; }
.collage-dice { position: absolute; left: 4cqw; bottom: 9cqw; z-index: 3; display: flex; gap: 2.6cqw; }
.die { width: 14cqw; height: 14cqw; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3)); }
.die-a { transform: rotate(-14deg); }
.die-b { transform: rotate(11deg) translateY(3cqw); }
.collage-chip {
  position: absolute; right: 3cqw; bottom: 6cqw; z-index: 3;
  display: inline-flex; align-items: center; gap: 2cqw; padding: 2.6cqw 4.2cqw; border-radius: 999px;
  background: #14251a; color: var(--white); font-weight: 600; font-size: 3.6cqw;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.collage-chip i, .online-card-b i { width: 2.2cqw; height: 2.2cqw; min-width: 8px; min-height: 8px; border-radius: 50%; background: #5be37d; }
.checker { position: absolute; border-radius: 50%; z-index: 3; }
.checker::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; }
.checker-sky { background: var(--sky); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3), inset 0 -0.8cqw 0 var(--sky-ring); }
.checker-sky::after { border: 0.6cqw solid rgba(30, 80, 120, 0.25); }
.checker-dark { background: #18181c; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), inset 0 -0.8cqw 0 #000; }
.checker-dark::after { border: 0.6cqw solid rgba(255, 255, 255, 0.14); }
.collage-checker-a { width: 15cqw; height: 15cqw; left: 38cqw; bottom: 0; }
.collage-checker-b { width: 11cqw; height: 11cqw; right: 6cqw; top: 2cqw; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
}

/* ---- Section heads ---- */
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.section-head-center { text-align: center; margin-inline: auto; }

/* ---- Two games ---- */
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mode-card { border-radius: var(--radius-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.mode-purple { background: var(--purple); color: var(--lilac); }
.mode-wine { background: var(--wine); color: var(--lilac); }
.mode-shot { height: 320px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 40px; position: relative; }
.mode-purple .mode-shot { background: radial-gradient(120% 90% at 50% 0%, #6e3a96 0%, var(--purple) 70%); }
.mode-wine .mode-shot { background: radial-gradient(120% 90% at 50% 0%, #9a1a2e 0%, var(--wine) 70%); }
.mode-phone { width: 250px; transform: rotate(-4deg); }
.mode-wine .mode-phone { transform: rotate(4deg); }
.mode-body { padding: 32px; display: grid; gap: 18px; align-content: start; }
.mode-body h3 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.04em; }
.mode-body p { color: #f6e2f6; font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; font-weight: 600; }
@media (max-width: 860px) { .mode-grid { grid-template-columns: 1fr; } .mode-shot { height: 280px; } .mode-phone { width: 220px; } }

/* ---- Online ---- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split-copy { display: grid; gap: 40px; }
.online-art { position: relative; max-width: 420px; margin: 0 auto; container-type: inline-size; padding: 4% 14%; }
.online-phone { transform: rotate(-5deg); }
.online-card {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 3cqw;
  background: var(--white); color: var(--ink); border-radius: 5cqw; padding: 3.4cqw 4.4cqw;
  box-shadow: 0 20px 40px rgba(80, 34, 116, 0.25); font-size: 3.6cqw;
}
.online-card b { display: block; font-weight: 700; }
.online-card small { display: block; color: var(--muted); font-size: 3.2cqw; }
.online-card-a { left: 0; top: 24cqw; transform: rotate(-4deg); }
.online-card-b { right: 0; bottom: 22cqw; transform: rotate(5deg); background: var(--lime); font-weight: 700; border-radius: 999px; }
.avatar {
  display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 50%;
  background: var(--purple); color: var(--lilac); font-weight: 800; font-size: 4.4cqw;
}
.online-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.online-list dt { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.online-list dd { margin: 0; color: #5b2f7d; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } .split-art { order: 2; } }
@media (max-width: 560px) { .online-list { grid-template-columns: 1fr; } }

/* ---- Features ---- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature-card { border-radius: var(--radius-card); padding: 28px; display: grid; gap: 14px; align-content: start; min-height: 360px; }
.feature-card h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.feature-lilac { background: var(--lilac); color: var(--purple); }
.feature-forest { background: var(--forest); color: var(--lime); }
.feature-wine { background: var(--wine); color: var(--lilac); }
.feature-ink { background: var(--ink); color: var(--white); }
.feature-card p { opacity: 0.9; }
.feature-art { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.levels { display: grid; gap: 8px; width: 100%; max-width: 200px; }
.levels span { border: 2px solid currentColor; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.9rem; text-align: center; }
.levels .on { background: var(--purple); color: var(--lilac); border-color: var(--purple); }
/* Scroll-driven dice (site/dice): a three.js canvas across the top of the card, which clips it, so the dice enter
   through the card's top edge and leave the same way. Until it loads, or without WebGL, flat dice show 3-3. */
.feature-forest { overflow: hidden; position: relative; }
.feature-forest .feature-art { height: 196px; margin: -28px -28px 4px; display: block; }
.dice-stage { position: relative; width: 100%; height: 100%; }
.dice-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 200ms ease; }
.dice-stage.is-3d .dice-canvas { opacity: 1; }
.dice-stage.is-3d .dice-fallback { visibility: hidden; }
.dice-fallback { position: absolute; inset: auto 0 26px; display: flex; justify-content: center; gap: 20px; }
.dice-fallback .die { width: 66px; height: 66px; }
.dice-fallback .die:first-child { transform: rotate(-8deg); }
.dice-fallback .die:last-child { transform: rotate(10deg); }
.dice-result {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 12px; border-radius: 999px;
  background: var(--lime); color: var(--forest); font-weight: 800; font-size: 0.85rem; letter-spacing: -0.01em;
}
.swatches { display: flex; }
.swatches span { width: 72px; height: 72px; border-radius: 50%; border: 4px solid var(--wine); margin-left: -14px; }
.swatches span:first-child { margin-left: 0; }
.sw-riviera { background: conic-gradient(var(--red) 0 25%, var(--cream) 0 50%, var(--sky) 0 75%, #2e5e3a 0); }
.sw-denim { background: conic-gradient(#2d4a7a 0 25%, #c9d6ea 0 50%, #7a98c9 0 75%, #1c2f52 0); }
.sw-memphis { background: conic-gradient(#f26430 0 25%, #f5d33c 0 50%, #2f5bd8 0 75%, #c9b6ea 0); }
.devices { display: flex; align-items: flex-end; gap: 12px; }
.devices span { border: 3px solid currentColor; border-radius: 14px; display: block; }
.dev-phone { width: 44px; height: 86px; }
.dev-pad { width: 120px; height: 90px; border-radius: 12px !important; }
@media (max-width: 1100px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } .feature-card { min-height: 0; } }

/* ---- FAQ ---- */
.faq-title { text-align: center; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); margin-bottom: 48px; }
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: 24px; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; transition: transform 200ms ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-a { padding: 0 28px 26px; }
.faq-a a { font-weight: 600; }
.faq-dark .faq-item { background: var(--wine-deep); color: var(--lilac); }
.faq-dark .faq-a { color: #f6e2f6; }
.faq-light .faq-item { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.faq-light .faq-a { color: #3a3f4d; }

/* ---- Footer: CTA band and a white card ---- */
.footer { padding-bottom: 32px; }
.cta-band { display: grid; justify-items: center; text-align: center; gap: 22px; margin-bottom: clamp(64px, 9vw, 112px); }
.cta-title { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.2rem); max-width: 14em; }
.cta-text { font-size: 1.15rem; max-width: 36em; color: #f6e2f6; }
.cta-band .cta-row { justify-content: center; }
.footer-card {
  background: var(--white); color: var(--ink); border-radius: 32px; padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px;
}
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 22em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-h { font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; color: #3a3f4d; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 860px) { .footer-card { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---- Rules pages ---- */
.rules-head { padding-top: calc(var(--nav-h) + 64px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.rules-head-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: 48px; align-items: center; }
.rules-head-copy { display: grid; gap: 22px; }
.rules-head h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); }
.band-forest.rules-head h1 { color: var(--lime); }
.rules-lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); max-width: 36em; color: inherit; opacity: 0.92; }
.rules-meta { font-size: 0.95rem; opacity: 0.8; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.95rem; font-weight: 600; opacity: 0.9; }
.crumbs a { text-decoration: none; border-bottom: 1.5px solid currentColor; }
.rules-phone { width: min(260px, 100%); margin: 0 auto; transform: rotate(5deg); }
@media (max-width: 860px) { .rules-head-grid { grid-template-columns: 1fr; } .rules-head-art { display: none; } }

.rules-body { padding-top: clamp(48px, 6vw, 80px); }
.rules-grid { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 64px; justify-content: center; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); background: var(--white); border-radius: 24px; padding: 22px; border: 1px solid var(--line); }
.toc-title { font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; max-height: calc(100vh - var(--nav-h) - 140px); overflow: auto; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; text-decoration: none; font-size: 0.93rem; line-height: 1.35; color: #3a3f4d; }
.toc a::before { content: counter(toc); font-weight: 700; color: var(--purple); min-width: 1.2em; }
.toc a:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 1000px) {
  .rules-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; }
  .toc ol { max-height: none; }
}

.prose { font-size: 1.1rem; line-height: 1.7; color: #262b38; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); margin-top: 2.2em; color: var(--ink); line-height: 1.05; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--purple); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { color: var(--purple); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.98rem; line-height: 1.45;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: block; overflow-x: auto;
}
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--lilac); color: var(--purple); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose .note {
  background: var(--lilac); color: #3c1858; border-radius: 20px; padding: 18px 22px; font-size: 1rem; line-height: 1.6;
}
.prose .note strong { color: var(--purple); }
.prose .faq { margin-top: 1em; }
.prose .faq-item summary { font-size: 1.05rem; padding: 20px 22px; }
.prose .faq-a { padding: 0 22px 22px; font-size: 1rem; }

.board { margin-block: 1.6em; background: var(--white); border-radius: 22px; padding: 16px; border: 1px solid var(--line); }
.board svg { width: 100%; height: auto; }
.board-n { font: 600 13px var(--font); fill: #7a7f8c; }
.board-badge { font: 800 15px var(--font); fill: var(--ink); }
.board figcaption { font-size: 0.93rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }

.next-card {
  margin-top: 3em !important; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 20px;
  background: var(--forest); color: var(--lime); border-radius: var(--radius-card); padding: 28px 32px; text-decoration: none;
}
.page-rules .next-card:hover .icon { transform: translateX(6px); }
.next-card .icon { grid-row: 1 / 3; grid-column: 2; transition: transform 160ms ease; }
.next-label { font-size: 0.95rem; font-weight: 600; opacity: 0.85; }
.next-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
