/* pages.css: the shared look of every tabletales.gg content page (score sheets, guides, the blog,
   press). It is the homepage's own system (index.html): the night, paper bands with perforated
   edges, Literata, the ember accent, the phone and the finale. A page is only its content; built by
   design/score-pages/build.mjs. */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/literata-roman.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400 500; font-display: swap; src: url("/fonts/literata-italic.woff2") format("woff2"); }

:root {
  --night: #130e0a;
  --ink: #261b13;
  --paper: #f4e8d2;
  --print: #fbf4e6;
  --cream: #fff9ed;
  --muted: #bca991;
  --soft: #d9cbb8;
  --ember: #f0a44e;
  --ember-deep: #c86f35;
  --label-paper: #8a5a36;
  --body-paper: #705c49;
  --teal: #65b8aa;
  --rose: #dc7771;
  --line: rgba(255, 249, 237, .13);
  --line-paper: rgba(38, 27, 19, .12);
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-paper: 0 34px 70px rgba(70, 40, 15, .28), 0 6px 16px rgba(70, 40, 15, .14);
  --shadow-dark: 0 40px 90px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--cream); font-family: var(--sans); line-height: 1.55; overflow-x: hidden;
  background:
    radial-gradient(circle at 15% -8%, rgba(240, 164, 78, .19), transparent 34rem),
    radial-gradient(circle at 95% 28%, rgba(101, 184, 170, .07), transparent 28rem),
    linear-gradient(180deg, #1a120c 0%, var(--night) 40%, #0c0806 100%);
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(101, 184, 170, .7); outline-offset: 3px; border-radius: 6px; }
.sr-only { width: 1px; height: 1px; padding: 0; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }


/* the container, the top bar and the footer: web/chrome.css, the one copy every page links */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: #a9977f; font-size: 13px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cream); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.eyebrow { display: flex; align-items: flex-start; gap: 12px; color: var(--ember); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 32px; height: 1px; margin-top: calc(.5lh - .5px); background: currentColor; }
.kicker { font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; color: var(--ember); }

/* the hero: the answer first, the live Scorepad beside it */
.page-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: 34px 0 96px; }
.page-hero .crumbs { margin-bottom: 26px; }
.page-hero h1 { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(44px, 5.2vw, 74px); font-weight: 500; letter-spacing: -.035em; line-height: .98; }
.page-hero h1 em { display: block; color: var(--ember); font-weight: 400; }
.lede { margin: 24px 0 0; max-width: 560px; color: var(--soft); font-size: clamp(17px, 1.45vw, 19px); line-height: 1.65; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 249, 237, .07); border: 1px solid rgba(255, 249, 237, .12); color: #e2d4c0; font-size: 13px; font-weight: 650; }
.facts li.key { background: rgba(240, 164, 78, .14); border-color: rgba(240, 164, 78, .38); color: #f5b36b; }
.get { display: flex; align-items: center; gap: 22px 26px; flex-wrap: wrap; margin-top: 32px; }
.store-badge { display: inline-block; border-radius: 9px; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 54px; width: auto; }
/* Google's badge art carries its clear space (41 of 250 on every side): trimmed to sit level */
.store-badge img.padded { height: calc(54px * 250 / 168); margin: calc(54px * -41 / 168); }
.text-link { color: var(--ember); font-size: 14.5px; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { color: #f6b86c; }
.qr { display: none; align-items: center; gap: 14px; }
.qr-tile { width: 66px; height: 66px; padding: 5px; border-radius: 12px; background: var(--cream); flex: none; }
.qr-tile img { width: 56px; height: 56px; }
.qr strong { display: block; font-size: 14px; font-weight: 650; }
.qr small { display: block; margin-top: 2px; font-size: 12.5px; color: #a9977f; }
@media (hover: hover) and (pointer: fine) and (min-width: 981px) { .qr { display: flex; } }
.dl-sub { margin: 14px 0 0; color: #a9977f; font-size: 13.5px; }

.hero-shot { display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; }
.hero-shot .glow { position: absolute; inset: -6% 0; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(240, 164, 78, .17), rgba(240, 164, 78, .04) 60%, transparent 75%); filter: blur(8px); }
.phone-live { position: relative; width: clamp(280px, 26vw, 340px); padding: 7px; background: #181719; border: 1px solid rgba(0, 0, 0, .35); border-radius: 44px; box-shadow: var(--shadow-dark); }
.phone-live .tt-fit { border-radius: 37px; }
.tt-mount img { display: block; width: 100%; height: auto; border-radius: 37px; }
#tt-score { aspect-ratio: 390 / 844; }
.shot-note { position: relative; margin: 0; max-width: 320px; text-align: center; color: #a9977f; font-size: 13px; line-height: 1.5; }

/* paper bands, perforated top and bottom (the homepage's) */
.paper-band {
  color: var(--ink); position: relative; margin: 14px 0;
  background: radial-gradient(circle at 15% 20%, rgba(200, 111, 53, .09), transparent 28rem), var(--paper);
  box-shadow: inset 0 1px rgba(255, 255, 255, .55), inset 0 -1px rgba(71, 43, 23, .1);
}
.paper-band::before, .paper-band::after { content: ""; position: absolute; left: 0; width: 100%; height: 14px; background-size: 28px 14px; }
.paper-band::before { top: -13px; background-image: radial-gradient(circle at 14px 14px, transparent 13px, var(--paper) 14px); }
.paper-band::after { bottom: -13px; transform: rotate(180deg); background-image: radial-gradient(circle at 14px 14px, transparent 13px, var(--paper) 14px); }
.paper-band .kicker { color: var(--label-paper); }
.band-inner { padding: 92px 0 100px; }
.dark-inner { padding: 100px 0 104px; }

.section-head { max-width: 660px; }
.section-head h2 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 50px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.section-head p { margin: 16px 0 0; font-size: 17px; line-height: 1.65; max-width: 580px; }
.paper-band .section-head p { color: var(--body-paper); }
.dark-inner .section-head p { color: var(--muted); }

/* how it scores: the values card beside the steps */
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: start; margin-top: 44px; }
.card-paper { background: var(--print); border-radius: 20px; padding: 26px 28px 22px; box-shadow: var(--shadow-paper); }
.card-paper h3 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.values { width: 100%; margin-top: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.values th { text-align: left; color: var(--label-paper); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; padding: 0 0 8px; border-bottom: 1px solid var(--line-paper); }
.values th:last-child, .values td.pts { text-align: right; }
.values td { padding: 12px 0; border-bottom: 1px solid var(--line-paper); font-size: 16px; vertical-align: top; }
.values tr:last-child td { border-bottom: 0; }
.values td small { display: block; margin-top: 2px; color: var(--body-paper); font-size: 13px; }
.values td.pts { font-family: var(--serif); font-size: 20px; color: var(--ember-deep); padding-left: 16px; text-wrap: balance; }   /* a long value ("VP or coins, and the ruby") wraps, never widens the page */
.suit { font-family: var(--sans); }
.red { color: #b3412e; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; counter-reset: step; }
.steps li { position: relative; padding-left: 54px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -3px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ember-deep); color: var(--cream); font-size: 15px; font-weight: 800; }
.steps b { display: block; font-size: 18px; font-weight: 650; }
.steps span { display: block; margin-top: 4px; color: var(--body-paper); font-size: 16px; line-height: 1.6; }
/* How to play, in brief (score pages): the steps on the dark band */
.play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.dark-inner .steps span { color: var(--muted); }
.about + .dark-inner { padding-top: 0; }   /* the About block above already ends on its own padding */

/* one hand, scored: a paper score slip with the arithmetic */
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.slip {
  color: var(--ink); border-radius: 4px; padding: 26px 30px 22px; transform: rotate(-1.2deg); box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
  background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(38, 27, 19, .09) 39px 40px), var(--paper);
}
.slip .game { color: var(--label-paper); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.slip table { width: 100%; margin-top: 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.slip th { text-align: left; color: var(--label-paper); font-size: 10.5px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; padding: 8px 0 6px; }
.slip th:first-child { padding-right: 14px; }   /* the gap td.who keeps, so "Player" never runs into the next heading when every name is short ("Dev") */
.slip td { padding: 9px 0; vertical-align: top; font-size: 15px; line-height: 1.45; }
.slip td.who { font-family: var(--serif); font-style: italic; font-size: 18px; white-space: nowrap; padding-right: 14px; }
.slip td.math { color: var(--body-paper); }
.slip td.math .cards { display: block; color: var(--ink); }
.slip td.hand { text-align: right; font-family: var(--serif); font-size: 21px; white-space: nowrap; padding-left: 12px; }
.slip td.hand.neg { color: #b3412e; }
.slip .note { margin: 10px 0 0; color: var(--body-paper); font-family: var(--serif); font-style: italic; font-size: 15px; }

/* the rules people argue about (a page's optional rulings, under its hero): each official answer on a
   card of its own, the house rule many tables play instead below a torn line, and where it comes from */
.rulings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.rulings li { display: flex; flex-direction: column; box-shadow: 0 14px 32px rgba(70, 40, 15, .14), 0 3px 8px rgba(70, 40, 15, .08); }   /* eight cards together: a lighter shadow than one card-paper alone */
.rulings p { margin: 0; }
.rulings p > span { display: block; margin-bottom: 3px; color: var(--label-paper); font-size: 10.5px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.rulings .ruling { margin-top: 14px; color: var(--body-paper); font-size: 16px; line-height: 1.6; }
.rulings .ruling b { margin-right: 2px; color: var(--ember-deep); font-family: var(--serif); font-size: 19px; font-weight: 600; }
.rulings .house { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(38, 27, 19, .22); color: var(--body-paper); font-size: 15px; line-height: 1.55; }
.rulings .cite { margin-top: auto; padding-top: 14px; color: #9a8670; font-size: 12.5px; }

/* why it's easy in Tabletales: the copy and its points beside the app's own night, this game on it
   (design/score-pages/nights.mjs), with callouts on what the screen shows, like the homepage's night */
.why-feature { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(36px, 4.5vw, 64px); align-items: center; }
.why-copy h2 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 50px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.why-p { margin: 16px 0 0; max-width: 540px; color: var(--body-paper); font-size: 17px; line-height: 1.65; }
.why-points { display: grid; gap: 18px; max-width: 560px; margin: 28px 0 0; padding: 0; list-style: none; }
.why-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.why-points .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(200, 111, 53, .13); color: var(--ember-deep); }
.why-points .ico svg { width: 20px; height: 20px; }
.why-points b { display: block; color: var(--ink); font-size: 16.5px; font-weight: 650; }
.why-points div > span { display: block; margin-top: 3px; color: var(--body-paper); font-size: 15px; line-height: 1.55; }
.why-points kbd { font-family: var(--sans); font-size: 13.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: rgba(38, 27, 19, .08); }
.why-more { display: inline-block; margin-top: 28px; }
.why-shot { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); justify-content: center; }
.phone-big { width: clamp(250px, 22vw, 310px); padding: 7px; background: #181719; border: 1px solid rgba(0, 0, 0, .35); border-radius: 44px; box-shadow: var(--shadow-paper); }
.phone-big img { border-radius: 37px; }
.callouts { position: relative; min-width: 190px; margin: 0; padding: 0; list-style: none; }
.callouts li {
  position: absolute; left: 0; top: var(--at); transform: translateY(-50%); width: max-content; max-width: 250px; padding-left: 50px;
  color: var(--ink); font-family: var(--serif); font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.2;
}
.callouts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 38px; height: 1.5px; background: var(--ember-deep); }
.callouts li::after { content: ""; position: absolute; left: -4px; top: .6em; width: 9px; height: 9px; margin-top: -3.75px; border-radius: 50%; background: var(--ember-deep); }

/* common mistakes and questions, on the night */
.pairs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.mistakes { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.mistakes li { padding-left: 24px; position: relative; }
.mistakes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); }
.mistakes b { display: block; font-size: 17px; font-weight: 650; }
.mistakes span { display: block; margin-top: 3px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.faq { margin: 26px 0 0; }
.faq dt { font-family: var(--serif); font-size: 19px; font-weight: 500; margin-top: 22px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.h3 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }

/* the printable sheet */
.sheet { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; margin-top: 8px; }
.sheet-preview { margin: 0; justify-self: start; width: min(320px, 100%); transform: rotate(2deg); }   /* starts at the page's one left edge, like every section */
.sheet-preview img { width: 100%; border-radius: 3px; box-shadow: var(--shadow-paper); background: #fff; }
.sheet .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 24px; }
.button { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 14.5px; font-weight: 750; text-decoration: none; }
.button:hover { background: #3a2a1d; }
.button svg { width: 17px; height: 17px; }
.paper-band .text-link { color: var(--ember-deep); }

/* more score sheets */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 34px; }
.related .hub-card { border-style: dashed; border-color: rgba(240, 164, 78, .45); }
.related .hub-card b::after { content: " \2192"; color: var(--ember); }
.related a { display: block; padding: 20px 20px 18px; border-radius: 18px; text-decoration: none; background: rgba(255, 249, 237, .05); border: 1px solid var(--line); transition: background .15s ease, border-color .15s ease; }
.related a:hover { background: rgba(255, 249, 237, .08); border-color: rgba(240, 164, 78, .4); }
.related b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.related small { display: block; margin-top: 4px; color: #a9977f; font-size: 13px; }
.sources { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: #8f7d68; font-size: 13px; line-height: 1.6; max-width: 820px; }
.sources a { color: #b8a58d; }

/* the ending (the homepage's) */
.finale { padding: 96px 24px 92px; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(circle at 50% 120%, rgba(240, 164, 78, .24), transparent 34rem), #0d0907; }
.finale-mark { width: 54px; height: 54px; margin: 0 auto; }
.finale .kicker { margin-top: 22px; }
.finale h2 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(38px, 4.8vw, 60px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; }
.finale > p { margin: 16px auto 0; max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.finale .get { justify-content: center; margin-top: 30px; }
.finale .qr { text-align: left; }
.finale .more { margin-top: 26px; }


@media (max-width: 980px) {
  .page-hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .page-hero h1 { font-size: clamp(40px, 10.5vw, 68px); }
  /* minmax(0, 1fr), never 1fr: a 1fr track grows to its widest word and pushes the page past the screen */
  .split, .example, .pairs, .sheet, .why-feature, .play { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .rulings { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .phone-live { width: min(340px, 100%); }
}
@media (max-width: 720px) {
  .page-hero { padding-bottom: 72px; }
  .band-inner { padding: 76px 0 84px; }
  .dark-inner { padding: 80px 0 84px; }
  .why-shot { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; }
  .phone-big { width: min(290px, 78vw); border-radius: 40px; }
  .phone-big img { border-radius: 33px; }
  .callouts { min-width: 0; display: grid; gap: 10px; justify-self: stretch; }
  .callouts li { position: relative; top: auto; transform: none; width: auto; max-width: none; padding-left: 22px; font-size: 18px; }   /* a long game name wraps, never widens the page */
  .callouts li::before { display: none; }
  .callouts li::after { left: 0; top: .55em; margin-top: 0; }
  .slip { padding: 22px 20px 18px; }
  .slip td.math { font-size: 14px; }
  .finale { padding: 84px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: #fff; color: #000; }
  .hero-shot, .finale, .related { display: none; }   /* the top bar and footer: web/chrome.css */
}

/* the blog: a dark title, then the story on paper in a reading column */
.article-hero { padding: 40px 0 84px; max-width: 720px; }
.article-hero .crumbs { margin-bottom: 26px; }
.article-hero h1 { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(44px, 5.4vw, 76px); font-weight: 500; letter-spacing: -.035em; line-height: .98; }
.article-hero .dek { margin: 22px 0 0; max-width: 620px; color: var(--soft); font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 0; color: #a9977f; font-size: 14px; }
.byline .dot { opacity: .5; }
.prose { max-width: 720px; margin: 0 auto; padding: 88px 0 96px; color: var(--ink); }
.prose p { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.72; }
.prose p.first::first-letter { float: left; margin: 6px 10px 0 0; font-size: 68px; line-height: .8; color: var(--ember-deep); }
.prose h2 { margin: 44px 0 16px; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.prose blockquote { margin: 34px 0; padding: 0 0 0 24px; border-left: 2px solid var(--ember-deep); font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 27px); line-height: 1.45; color: var(--label-paper); }
.prose blockquote p { font-size: inherit; line-height: inherit; margin: 0; }
.prose figure { margin: 40px auto; width: min(320px, 100%); }
.prose figure .phone-big { padding: 7px; background: #181719; border-radius: 44px; box-shadow: var(--shadow-paper); }
.prose figure .phone-big img { border-radius: 37px; }
.prose figcaption { margin-top: 16px; text-align: center; color: var(--body-paper); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.prose .sign { margin-top: 30px; font-style: italic; }

/* the score sheets hub */
.hub-group { padding-top: 0; padding-bottom: 72px; }
.hub-p { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 560px; }
.related em, .related .soon em { display: inline-block; margin-top: 12px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.related .soon { display: block; padding: 20px 20px 18px; border-radius: 18px; border: 1px dashed rgba(255, 249, 237, .18); color: #a9977f; }
.related .soon b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: #cbbba4; }
.related .soon small { display: block; margin-top: 4px; font-size: 13px; }
.related .soon em { color: #8f7d68; }

/* a game's tile: the app's own (gameStyles), its emoji on its color. "game-glyph", never plain "glyph":
   the live Scorepad's Next key draws its = in a .glyph, and a page style must never reach into the pad */
.game-glyph { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--g, #5a4632); font-size: 24px; line-height: 1; box-shadow: inset 0 1px rgba(255, 255, 255, .14), 0 6px 14px rgba(0, 0, 0, .28); }
.game-glyph.big { width: 72px; height: 72px; border-radius: 19px; font-size: 40px; }
.game-glyph.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; margin-bottom: 12px; }

/* about the game: the facts beside a picture of the game's page in the app */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 5vw, 72px); align-items: center; padding: 76px 0 100px; border-top: 1px solid var(--line); }
.about-head { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.about-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 50px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.about-meta { margin: 6px 0 0; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 999px; background: rgba(255, 249, 237, .07); border: 1px solid rgba(255, 249, 237, .12); color: #e2d4c0; font-size: 13px; font-weight: 650; }
.chips svg { width: 15px; height: 15px; color: var(--ember); }
.about-p { margin: 20px 0 0; max-width: 560px; color: var(--soft); font-size: 17px; line-height: 1.65; }
.about-src { margin: 14px 0 0; color: #8f7d68; font-size: 13px; }
.about-src a { color: #b8a58d; }

.appcard { margin: 0; width: min(390px, 100%); justify-self: center; }
.ac-screen { padding: 22px 20px 20px; border-radius: 30px; background: linear-gradient(180deg, #231a14, #16100c); border: 1px solid rgba(255, 249, 237, .1); box-shadow: var(--shadow-dark); }
.ac-head { display: flex; align-items: center; gap: 14px; }
.ac-head b { display: block; color: var(--cream); font-size: 20px; font-weight: 750; }
.ac-head small { display: block; margin-top: 1px; color: var(--muted); font-size: 13.5px; }
.ac-label { margin: 22px 0 10px; color: #a9977f; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ac-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 18px; background: rgba(255, 249, 237, .05); border: 1px solid rgba(255, 249, 237, .1); }
.ac-stats:has(+ .ac-high) { border-radius: 18px 18px 0 0; }
.ac-stats div { padding: 14px 6px 12px; text-align: center; }
.ac-stats div + div { border-left: 1px solid rgba(255, 249, 237, .1); }
.ac-stats b { display: block; color: var(--cream); font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ac-stats small { display: block; margin-top: 2px; color: #a9977f; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ac-high { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255, 249, 237, .1); border-top: 0; border-radius: 0 0 18px 18px; background: rgba(255, 249, 237, .03); color: #e2d4c0; font-size: 14.5px; }
.ac-high > span b { color: var(--ember); font-weight: 750; }
.ac-high .v { margin-left: auto; color: var(--ember); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.av { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; }
.ac-people { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-people span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 999px; background: rgba(255, 249, 237, .05); border: 1px solid rgba(255, 249, 237, .1); color: var(--cream); font-size: 14px; font-weight: 650; }
.ac-people i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
.appcard figcaption { max-width: 340px; margin: 14px auto 0; text-align: center; color: #a9977f; font-size: 13px; line-height: 1.5; }

/* the hub's way into each kind of game */
.kinds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.kinds a { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(240, 164, 78, .4); color: #f5b36b; font-size: 14px; font-weight: 700; text-decoration: none; }
.kinds a:hover { background: rgba(240, 164, 78, .1); }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 64px 0 84px; }
}

/* written pages (design/pages/build.mjs): features, guides, comparisons */
.prose-wide { max-width: 760px; }
.prose h3 { margin: 30px 0 12px; font-family: var(--serif); font-size: clamp(21px, 1.9vw, 24px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.prose ul, .prose ol { margin: 0 0 24px; padding: 0 0 0 4px; list-style: none; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 26px; font-family: var(--serif); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--ember-deep); }
/* a list under an item (the crew page's three ways to send an invite): tucked under its line,
   with an open dot so it reads as part of the item above */
.prose li > ul, .prose li > ol { margin: 12px 0 0; gap: 10px; }
.prose li li { font-size: clamp(16px, 1.3vw, 18px); }
.prose li > ul > li::before { background: none; border: 1.5px solid var(--ember-deep); width: 7px; height: 7px; box-sizing: border-box; }
.prose ol { counter-reset: item; }
.prose ol > li { padding-left: 34px; }
.prose ol > li::before { counter-increment: item; content: counter(item); position: absolute; left: 0; top: .2em; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ember-deep); color: var(--cream); font-family: var(--sans); font-size: 12.5px; font-weight: 800; }
.prose a { color: var(--ember-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose .table { margin: 6px 0 30px; overflow-x: auto; border-radius: 16px; background: var(--print); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 16px 34px -20px rgba(70, 40, 15, .55); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-family: var(--sans); font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-paper); }
.prose thead th { color: var(--label-paper); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.prose tbody th { font-weight: 650; color: var(--ink); white-space: nowrap; }
.prose tbody tr:last-child th, .prose tbody tr:last-child td { border-bottom: 0; }
.prose td { color: var(--body-paper); }
.page-art { margin: 0; justify-self: center; width: min(460px, 100%); }
.page-art img { width: 100%; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-dark); }
.faq-wide { max-width: 760px; }

/* a line from the story, as a chapter break (the homepage's option B, Tyler 2026-10-19) */
.story-chapter { padding: 104px 0 116px; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse 55% 80% at 50% 0%, rgba(240, 164, 78, .09), transparent 70%), #100b08; }
.story-chapter .qmark { display: flex; align-items: center; gap: 24px; max-width: 520px; height: 52px; margin: 0 auto; overflow: hidden; color: var(--ember); font-family: var(--serif); font-size: 116px; line-height: 1; }
.story-chapter .qmark span { transform: translateY(.2em); }
.story-chapter .qmark::before, .story-chapter .qmark::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 164, 78, .5)); }
.story-chapter .qmark::after { transform: scaleX(-1); }
.story-chapter .kicker { margin-top: 30px; }
.story-chapter blockquote { max-width: 1000px; margin: 20px auto 0; }
.story-chapter blockquote p { margin: 0; color: var(--cream); font-family: var(--serif); font-size: clamp(36px, 5vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1.03; text-wrap: balance; }
.story-chapter blockquote em { display: block; margin-top: .14em; color: var(--ember); font-weight: 400; }
.story-chapter .text-link { display: inline-block; margin-top: 34px; }
@media (max-width: 720px) { .story-chapter { padding: 84px 0 92px; } .story-chapter .qmark { font-size: 96px; } }

/* one left edge: a written page's title, its text, its questions and a hub's cards all start where the
   logo starts (the shell's edge), each kept to a reading width. The story keeps its centered column,
   which lines up with itself. */
.article-hero.flush, .prose.flush { max-width: none; }
.article-hero.flush > *, .prose.flush > * { max-width: 760px; }
.article-hero.flush .dek { max-width: 680px; }

/* the guides hub: one card per written page */
.guide-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-cards a small { line-height: 1.5; }
