/* Tallynight's holding site, in the studio house style (playbook README):
   dark ground, Bricolage Grotesque and IBM Plex Mono, one leaf accent. */
@font-face { font-family: "Bricolage"; src: url("/fonts/BricolageGrotesque-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fonts/BricolageGrotesque-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark light;
  --background: #121314;
  --surface: #1c1e20;
  --surface-2: #26292c;
  --line: #2a2d30;
  --card-border: transparent;
  --text: #eeebe5;
  --soft: #d8d4cc;
  --muted: #a6a29a;
  --accent: #5e9e5a;
  --accent-text: #121314;
  --accent-light: #8ebb8c;
  --accent-soft: #181e1a;
  --accent-border: #273a28;
  --amber: #f2b23a;
}
/* Paper, when the device is set to light: the house style's light theme, the accent deepened until it reads. */
@media (prefers-color-scheme: light) {
  :root {
    --background: #f5f1e8;
    --surface: #fbf9f4;
    --surface-2: #efe9dc;
    --line: #dcd3c2;
    --card-border: #e3dbcb;
    --text: #1b1915;
    --soft: #4a443b;
    --muted: #6e665a;
    --accent: #4d824a;
    --accent-text: #ffffff;
    --accent-light: #3f6b3c;
    --accent-soft: #e4e6d8;
    --accent-border: #b5c7ac;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--background); color: var(--text); font-family: "Bricolage", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-light); }
a:hover { color: var(--text); }
img { display: block; max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.meta { font-family: "Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

header.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.links { display: flex; gap: 2px; margin-left: auto; }
nav.links a { padding: 10px 13px; border-radius: 999px; color: var(--soft); text-decoration: none; font-size: 15px; white-space: nowrap; }
nav.links a:hover { color: var(--text); background: var(--surface); }
nav.links a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; }
.get-app { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.get-app:hover { background: var(--accent-light); color: var(--accent-text); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; padding: 36px 0 64px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; margin: 12px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.lede { font-size: 19px; line-height: 1.5; color: var(--soft); margin: 0 0 26px; max-width: 520px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 17px; text-decoration: none; }
.store:hover { background: var(--accent-light); color: var(--accent-text); }
.store svg { flex-shrink: 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.closing .cta { justify-content: center; }
.button.web { padding: 13px 20px; }
.button.web svg { flex-shrink: 0; }
.price { margin: 12px 0 0; color: var(--soft); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: 14px; }

.phones { position: relative; height: 600px; }
.phone { position: absolute; width: 270px; border-radius: 40px; overflow: hidden; border: 6px solid #2a2d30; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.phone img { width: 100%; }
.phone.back { right: 4%; top: 0; transform: rotate(6deg); }
.phone.front { left: 4%; top: 48px; transform: rotate(-5deg); }

section.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 64px; }
.value { background: var(--surface); border-radius: 18px; padding: 22px; }
.value .icon, .item .icon, .privacy .icon { width: 44px; height: 44px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.value h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* The menu on phones: a button that opens the same links in a panel */
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu .shut, .menu[open] .burger { display: none; }
.menu[open] .shut { display: block; }
.menu nav { position: absolute; right: 0; top: 54px; z-index: 20; display: flex; flex-direction: column; width: min(280px, calc(100vw - 40px)); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.menu nav a { padding: 13px 14px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 17px; }
.menu nav a:hover { background: var(--background); }
.menu nav a.store { justify-content: center; margin-top: 8px; padding: 13px 16px; font-size: 16px; color: var(--accent-text); }
.menu nav a.store:hover { background: var(--accent-light); }

/* Features, more, pricing, privacy and the closing call */
#features { scroll-margin-top: 20px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature.flip .copy { order: 2; }
.feature h2, .more h2, .plans h2, .closing h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 10px 0 16px; }
.feature p { font-size: 18px; line-height: 1.55; color: var(--soft); margin: 0 0 18px; max-width: 520px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 32px; color: var(--soft); font-size: 16px; line-height: 1.45; }
.points li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 999px; border: 1px solid var(--accent-border); background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ebb8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.shot { justify-self: center; width: 300px; border-radius: 44px; overflow: hidden; border: 6px solid #2a2d30; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.shot img { width: 100%; }

.more, .plans { padding: 64px 0; border-top: 1px solid var(--line); }
.more .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.item { background: var(--surface); border-radius: 18px; padding: 22px; }
.item h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.plans .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.plan.pro { background: var(--accent-soft); border-color: var(--accent-border); }
.plan h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.plan .cost { font-family: "Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); margin: 8px 0 20px; }

.privacy { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border-radius: 22px; padding: 26px; }
.privacy .icon { flex-shrink: 0; margin: 0; }
.privacy h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.privacy p { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.55; }

.closing { text-align: center; padding: 80px 0 72px; }
.closing p { color: var(--soft); font-size: 18px; margin: 0 0 24px; }


/* Privacy and Support */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 20px 64px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 8px 0 14px; }
.doc h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--soft); font-size: 17px; line-height: 1.6; }
.doc ul { padding-left: 20px; }
.doc .card { background: var(--surface); border-radius: 18px; padding: 20px 22px; margin: 20px 0; }
.doc .card p { margin: 0; }

@media (max-width: 960px) {
  nav.links { display: none; }
  .menu { display: block; }
  .get-app { margin-left: auto; }
}
@media (max-width: 420px) {
  .get-app { height: 40px; padding: 0 14px; font-size: 14px; }
  .get-app svg { display: none; }
}
/* The page in other languages: a globe in the header, the languages' codes at the bottom of the phone menu */
.lang { position: relative; flex-shrink: 0; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 13px 0 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: var(--accent-border); }
.lang nav { position: absolute; right: 0; top: 52px; z-index: 20; display: flex; flex-direction: column; min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.lang nav a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 16px; }
.lang nav a:hover { background: var(--background); }
.lang nav a[aria-current] { font-weight: 700; color: var(--accent-light); }
.lang nav a[aria-current]::after { content: "✓"; }
.menu nav .menu-langs { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin-top: 6px; padding: 10px 4px 2px; border-top: 1px solid var(--line); color: var(--muted); }
.menu-langs svg { flex-shrink: 0; margin: 0 2px 0 6px; }
.menu nav .menu-langs a { padding: 8px 7px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--soft); }
.menu nav .menu-langs a[aria-current] { background: var(--accent-soft); color: var(--accent-light); box-shadow: inset 0 0 0 1px var(--accent-border); }
.menu-langs abbr { text-decoration: none; }
@media (max-width: 960px) {
  .lang { margin-left: auto; }
  .lang + .get-app { margin-left: 0; }
}
@media (max-width: 520px) {
  .lang { display: none; }
  .lang + .get-app { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .phones { height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 210px; border-radius: 32px; }
  section.values { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 44px 0; }
  .feature.flip .copy { order: 0; }
  .shot { width: 260px; border-radius: 38px; }
  .more .grid, .plans .grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  nav.links { gap: 12px; }
  .phones { height: 400px; }
  .phone { width: 176px; border-width: 5px; border-radius: 28px; }
  .hide-small { display: none; }
  .shot { width: 230px; border-width: 5px; border-radius: 34px; }
  .privacy { flex-direction: column; }
}

/* Scoring guides, score sheets and landing pages (written by web/build.py) */
:root { --paper: #ffffff; --ink: #1b1c1d; --ink-soft: #55534f; --rule: #b4b0a8; --paper-shade: #f2f0ec; }
/* One page width everywhere, the header's, so a page starts under the logo whatever it is. Text keeps a reading
   width inside it; the printable sheet, the scoreboard and the game cards use all of it. */
html { scrollbar-gutter: stable; }
.doc, .doc.wide { max-width: 1080px; }
.doc > :not(.paper, .keeper, .cards, .games, .osk-hero, .osk-steps) { max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.doc .lede { font-size: 19px; line-height: 1.5; color: var(--soft); max-width: 720px; }
.doc h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 24px 0 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 24px 0; }
.facts div { background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.facts dt { font-family: "Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.4; }
.get { display: flex; align-items: center; gap: 16px; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 18px; padding: 16px 18px; margin: 8px 0; }
.get img { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.get p { margin: 0; font-size: 16px; line-height: 1.45; }
.get .store { padding: 10px 16px; font-size: 15px; margin-left: auto; white-space: nowrap; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 14px; }
table.score { width: 100%; border-collapse: collapse; font-size: 16px; }
table.score th, table.score td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); color: var(--soft); line-height: 1.4; }
table.score thead th { font-family: "Plex Mono", ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
table.score .r { text-align: right; }
table.score .n { text-align: right; font-family: "Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.score tbody tr:last-child td { border-bottom: 0; }
table.score tfoot td { font-weight: 800; color: var(--text); background: var(--surface); border-bottom: 0; border-top: 1px solid var(--line); }
.app { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: center; background: var(--surface); border-radius: 22px; padding: 28px; margin: 44px 0; }
.app h2 { margin-top: 0; }
.app .shot { width: 220px; border-width: 5px; border-radius: 34px; }
.app .store { margin-top: 18px; }
.faq h3 { margin-top: 22px; }
.faq p { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.cards a { display: block; background: var(--surface); border: 1px solid transparent; border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.cards a:hover { border-color: var(--accent-border); color: var(--text); }
.cards strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.cards span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.doc .cards + h2, .doc section + section { margin-top: 40px; }
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.button:hover { border-color: var(--accent-border); color: var(--text); }
.hero.landing { padding-bottom: 40px; }
.hero.landing .shot { justify-self: center; }

/* The printable sheet: paper on screen, and the only thing on the page when printed */
.paper { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 28px; margin: 8px 0 28px; overflow-x: auto; }
.paper .top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.paper .top h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.paper .top span { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
table.sheet { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; font-size: 12px; color: var(--ink); }
table.sheet th, table.sheet td { border: 1px solid var(--rule); height: 28px; padding: 3px 6px; text-align: left; font-weight: 400; vertical-align: middle; overflow: hidden; }
table.sheet thead th { font-weight: 600; }
table.sheet .names th { height: 34px; }
table.sheet th.sub { text-align: center; font-size: 10px; color: var(--ink-soft); height: 18px; }
table.sheet th.label { width: 84px; font-weight: 600; }
table.sheet.boxes th.label { width: 34%; }
table.sheet .hint { display: block; font-size: 10px; color: var(--ink-soft); line-height: 1.25; }
table.sheet tr.total th, table.sheet tr.total td { border-top: 2px solid var(--ink); font-weight: 800; }
table.sheet tr.part th { font-family: "Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; height: 22px; background: var(--paper-shade); }
.paper .notes { margin: 12px 0 0; padding-left: 18px; }
.doc .paper .notes li { font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.paper .foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 11px; color: var(--ink-soft); }

/* Filling a sheet in on screen (sheet.js) */
.fill-hint { color: var(--muted); font-size: 15px; line-height: 1.5; margin: -8px 0 18px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-light); text-decoration: underline; cursor: pointer; }
button.link:hover { color: var(--text); }
table.sheet [contenteditable] { cursor: text; }
table.sheet [contenteditable]:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: #f4f9f3; }
table.sheet td { font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; }
table.sheet td.word { font-family: "Bricolage", system-ui, sans-serif; }
table.sheet tr.total td, table.sheet tr[data-calc] td { text-align: right; }

/* The online score keeper's bar and tiles (tally/app.js, truco.js) */
.keeper { background: var(--surface); border-radius: 22px; padding: 16px; margin: 8px 0 28px; }
.keeper, .keeper * { touch-action: manipulation; }
.keeper button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.keeper:fullscreen { border-radius: 0; padding: 24px; overflow: auto; background: var(--background); }
.keeper-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.keeper-bar .button { padding: 9px 15px; font-size: 15px; }
.keeper-bar .button:disabled { opacity: 0.4; cursor: default; }
.keeper-field { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.keeper-field select { font: inherit; color: var(--text); background: var(--background); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.keeper-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.keeper-seg button { font: inherit; font-size: 15px; border: 0; border-radius: 999px; padding: 6px 12px; background: none; color: var(--muted); cursor: pointer; }
.keeper-seg button[aria-pressed="true"] { background: var(--text); color: var(--background); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.keeper:fullscreen .tiles { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tile { border-radius: 22px; padding: 14px 16px 16px; color: #121314; display: flex; flex-direction: column; gap: 6px; border: 3px solid transparent; }
.tile.leads { border-color: #121314; }
.tile-top { display: flex; align-items: center; gap: 8px; }
.tile-name { flex: 1; min-width: 0; font: inherit; font-weight: 700; font-size: 18px; color: #121314; background: none; border: 0; border-radius: 8px; padding: 4px 6px; margin-left: -6px; }
.tile-name:focus { outline: none; background: rgba(255, 255, 255, 0.45); }
.tile-badge { font-family: "Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: #121314; color: #eeebe5; border-radius: 999px; padding: 3px 8px; }
.tile-remove { width: 30px; height: 30px; border-radius: 999px; border: 0; background: rgba(18, 19, 20, 0.12); color: #121314; font-size: 18px; line-height: 1; cursor: pointer; }
.tile-score { font-size: clamp(56px, 9vw, 84px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; padding: 6px 0 10px; }
.keeper:fullscreen .tile-score { font-size: clamp(80px, 12vw, 160px); }
.tile-score.bump { animation: bump 0.25s ease-out; }
@keyframes bump { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .tile-score.bump { animation: none; } }
.tile-row { display: flex; align-items: center; gap: 8px; }
.tile-step { flex-shrink: 0; min-width: 56px; height: 48px; border-radius: 999px; border: 0; background: rgba(18, 19, 20, 0.14); color: #121314; font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; }
.tile-step.plus { background: #121314; color: #eeebe5; }
.tile-type { flex: 1; min-width: 0; }
.tile-type input { width: 100%; height: 48px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.5); color: #121314; font: inherit; font-size: 16px; text-align: center; padding: 0 10px; }
.tile-type input::placeholder { color: rgba(18, 19, 20, 0.55); }
.tile-type input:focus { outline: 2px solid #121314; }
.keeper-bar select { font: inherit; font-size: 16px; color: var(--text); background: var(--background); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.button.solid-accent:hover { background: var(--accent-light); color: var(--accent-text); }
.button.solid-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
/* The online score keeper's pages (tally/app.js): the title beside a scoreboard to try (four of the app's player fills),
   the way into /app/, the games with their drawings, the quick starts, every game by kind, the ones in play and the
   finished ones, and how it works as numbered steps. */
:root { --fill-0: #5fb3a6; --fill-1: #8aa4f0; --fill-2: #f2b23a; --fill-3: #e07a5f; --fill-ink: #121314; --fill-paper: #eeebe5; }
.osk-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 56px; align-items: center; margin: 8px 0 48px; }
.osk-copy .lede { margin-bottom: 26px; }
.button.osk-start { padding: 15px 24px; font-size: 17px; }
.osk-board { background: var(--surface); border: 1px solid var(--card-border); border-radius: 28px; padding: 12px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.55); }
.osk-board:empty { display: none; }
.osk-board-top { display: flex; align-items: center; gap: 12px; padding: 2px 4px 12px; }
.osk-board-top strong { display: block; font-size: 17px; line-height: 1.2; }
.osk-board-top span { display: block; font-size: 14px; color: var(--muted); }
.osk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.osk-tile { position: relative; display: flex; flex-direction: column; min-height: 176px; padding: 12px; border-radius: 20px; color: var(--fill-ink); overflow: hidden; }
.osk-tile.f0 { background: var(--fill-0); }
.osk-tile.f1 { background: var(--fill-1); }
.osk-tile.f2 { background: var(--fill-2); }
.osk-tile.f3 { background: var(--fill-3); }
.osk-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 700; font-size: 15px; }
.osk-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osk-crown { display: inline-flex; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.2s; }
.osk-tile.leads .osk-crown { opacity: 1; transform: none; }
.osk-score { margin: auto 0; text-align: center; font-size: 54px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.osk-score.bump { animation: bump 0.25s ease-out; }
.osk-buttons { display: flex; justify-content: space-between; }
.osk-buttons button { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid rgba(18, 19, 20, 0.35); background: none; color: var(--fill-ink); font: inherit; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.osk-buttons button:last-child { background: var(--fill-ink); border-color: var(--fill-ink); color: var(--fill-paper); }
.osk-buttons button:active { transform: scale(0.92); }
.osk-pop { position: absolute; right: 14px; top: 34%; font-weight: 800; font-size: 20px; pointer-events: none; animation: osk-pop 0.9s ease-out forwards; }
@keyframes osk-pop { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34px); } }
.doc .osk-try { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.keeper.osk { background: none; border-radius: 0; padding: 0; margin: 0 0 48px; }
.osk-pick-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.doc .osk-pick-top h2 { margin: 0; font-size: 28px; }
.osk-search { display: flex; align-items: center; gap: 10px; flex: 0 1 360px; padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.osk-search:focus-within { border-color: var(--accent-border); }
.osk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--text); padding: 13px 0; }
.keeper.osk .osk-label { font-family: "Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.keeper.osk .osk-kind { font-size: 14px; font-weight: 700; color: var(--soft); margin: 18px 0 8px; }
.keeper.osk .osk-note, .keeper.osk .osk-kept { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }
.keeper.osk .osk-kept { margin-top: 24px; }
.osk-art { display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; background: var(--surface-2); font-weight: 800; font-size: 28px; color: var(--text); }
.osk-art.on-colour { color: var(--fill-ink); }
.osk-art img { width: 80%; height: 80%; object-fit: contain; }
.osk-art.small { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
.osk-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.osk-card, .osk-quick-one, .osk-chip, .osk-row, .osk-other, .osk-steps li { background: var(--surface); border: 1px solid var(--card-border); color: var(--text); text-decoration: none; }
.osk-card { display: flex; flex-direction: column; border-radius: 22px; padding: 8px 8px 14px; transition: transform 0.15s ease-out, border-color 0.15s; }
.osk-card .osk-art { width: 100%; aspect-ratio: 4 / 3; border-radius: 15px; }
.osk-card strong { font-size: 17px; margin: 10px 6px 2px; }
.osk-card > span:last-child { font-size: 14px; color: var(--muted); margin: 0 6px; }
.osk-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.osk-quick-one { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; }
.osk-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-light); }
.osk-quick-one strong { display: block; font-size: 17px; }
.osk-quick-one span span { display: block; font-size: 14px; color: var(--muted); }
.osk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.osk-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.osk-chip .osk-art.small { width: 34px; height: 34px; border-radius: 999px; font-size: 15px; }
.osk-other { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 20px; padding: 16px 18px; border-radius: 18px; border: 1.5px dashed var(--line); background: none; }
.osk-other strong { font-size: 17px; }
.osk-other span { font-size: 15px; color: var(--muted); }
.osk-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 10px; }
.osk-rows > * { min-width: 0; }
.osk-rows + .osk-pick-top { margin-top: 36px; }
.osk-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; }
.osk-row-words { flex: 1; min-width: 0; }
.osk-row-words strong { display: block; font-size: 16px; }
.osk-row-words span { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osk-go { font-size: 14px; font-weight: 700; color: var(--accent-light); white-space: nowrap; }
.osk-card:hover, .osk-quick-one:hover, .osk-chip:hover, .osk-row:hover, .osk-other:hover { border-color: var(--accent-border); color: var(--text); }
.osk-card:hover { transform: translateY(-2px); }
.osk-steps { list-style: none; padding: 0; margin: 14px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.osk-steps li { border-radius: 20px; padding: 18px 18px 20px; }
.osk-steps li > span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 15px; }
.doc .osk-steps p { margin: 0; font-size: 16px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .osk-score.bump, .osk-pop { animation: none; }
  .osk-card:hover { transform: none; }
}
@media (max-width: 900px) {
  .osk-hero { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .osk-stage { max-width: 460px; }
  .osk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .osk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .osk-quick { grid-template-columns: 1fr; }
  .osk-steps { grid-template-columns: 1fr; }
  .osk-tile { min-height: 150px; }
  .osk-score { font-size: 46px; }
  .doc .osk-pick-top h2 { font-size: 24px; }
  .osk-search { flex: 1 1 100%; }
  .osk-go-word { display: none; }
}
/* The Secret Santa draw (santa.js), in one card as in the app: the felt with names in a top hat and a gift per person,
   who's in, the pairs, budget and day folded away, the draw; then pass the phone or send links. Each person's turn
   takes the whole screen. */
.keeper.santa { max-width: 760px; padding: 0; overflow: hidden; }
.santa-felt { position: relative; overflow: hidden; background: linear-gradient(180deg, #2f5a2d, #1a3319); box-shadow: inset 0 -1px 0 rgba(94, 158, 90, 0.5); }
.santa-scene { display: block; width: 100%; height: clamp(136px, 44vw, 196px); margin: 0 auto; padding-top: 6px; }
.santa-flake { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.santa-hat { transform-box: view-box; transform-origin: 82px 134px; }
.santa-hat-slip, .santa-flyer, .santa-flight, .santa-pop { transform-box: fill-box; transform-origin: center; }
.santa-gift-in { transform-box: fill-box; transform-origin: 50% 100%; }
.santa-flyer { transition: opacity 0.25s; }
.santa-felt.enter .santa-hat { animation: santa-rise 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) 0.1s both; }
.santa-felt.enter .santa-gift-in { animation: santa-drop 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) both; }
.santa-felt.enter .santa-flyer { animation: santa-fly 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) 0.75s both; }
.santa-felt.enter .santa-flake { animation: santa-snow 1.6s ease-out both; }
.santa-felt.drawing .santa-flyer { opacity: 0; }
.santa-felt.shuffling .santa-hat { animation: santa-shake 0.5s ease-in-out 2; }
.santa-felt.shuffling .santa-hat-slip { animation: santa-bob 0.16s ease-in-out infinite alternate; }

.santa-body { padding: 20px 20px 22px; }
.santa-body.busy { pointer-events: none; }
.keeper .santa-h { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 14px; color: var(--text); }
.santa-note, .keeper .santa-note { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 10px 0 0; }
.keeper .santa-note:empty { display: none; }
.keeper .santa-note.strong { color: var(--soft); font-weight: 600; }
.keeper .santa-note.nudge { color: var(--text); font-weight: 600; animation: santa-nudge 0.35s ease-in-out; }
.keeper .santa-chips, .keeper .santa-pairs, .keeper .santa-links { list-style: none; margin: 0; padding: 0; }
.keeper .santa-chips li, .keeper .santa-pairs li, .keeper .santa-links li { line-height: 1.3; }
.keeper .santa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.keeper .santa-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 5px 4px 15px; border-radius: 999px; color: #121314; font-weight: 700; font-size: 17px; }
.keeper .santa-chip.new { animation: santa-pop-in 0.3s cubic-bezier(0.34, 1.5, 0.64, 1); }
.santa-chip button, .santa-pairs button { width: 30px; height: 30px; flex-shrink: 0; border-radius: 999px; border: 0; background: rgba(18, 19, 20, 0.14); color: #121314; font-size: 18px; line-height: 1; cursor: pointer; }
.santa-pairs button { background: var(--surface-2); color: var(--text); }
.santa-add { display: flex; gap: 8px; }
.santa-add input { flex: 1; min-width: 0; height: 54px; font: inherit; font-size: 18px; color: var(--text); background: var(--background); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 20px; }
.santa-add input:focus { outline: none; border-color: var(--accent); }
.santa-plus { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 54px; min-width: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--text); color: var(--background); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.santa-plus:hover { background: var(--soft); }

.santa-more { margin-top: 20px; border-top: 1px solid var(--line); }
.santa-more summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; cursor: pointer; font-weight: 700; font-size: 17px; color: var(--text); }
.santa-more summary::-webkit-details-marker { display: none; }
.santa-more summary::after { content: ""; flex-shrink: 0; margin: 0 6px 4px auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.santa-more[open] summary::after { margin-bottom: -4px; transform: rotate(-135deg); }
.santa-opt { font-family: "Plex Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.santa-more-in { padding: 2px 0 6px; }
.keeper .santa-sub { font-size: 16px; font-weight: 700; letter-spacing: 0; margin: 6px 0 0; color: var(--text); }
.keeper .santa-sub + .santa-note { margin-top: 2px; }
.santa-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.santa-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 15px 0 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--background); color: var(--text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.santa-toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.santa-dot { width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; }
.keeper .santa-pairs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 12px 0 4px; }
.keeper .santa-pairs li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 5px; border-radius: 999px; background: var(--background); color: var(--text); font-weight: 600; font-size: 15px; }
.santa-pairs .santa-avatar + .santa-avatar { margin-left: -14px; box-shadow: 0 0 0 2px var(--background); }
.santa-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.santa-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.santa-field input { display: block; width: 100%; min-width: 0; height: 48px; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--background); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; -webkit-appearance: none; appearance: none; }
.santa-field input:focus { outline: none; border-color: var(--accent); }
.santa-field input::-webkit-date-and-time-value { text-align: left; }
.santa-date { position: relative; display: block; }
.santa-date-text { display: none; position: absolute; left: 15.5px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; font-weight: 400; pointer-events: none; }
.santa-date.empty:not(:focus-within) .santa-date-text { display: block; }
.santa-date.empty:not(:focus-within) input { color: transparent; }

.santa-go { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 60px; margin-top: 22px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 800; font-size: 19px; cursor: pointer; box-shadow: 0 10px 24px rgba(94, 158, 90, 0.25); transition: transform 0.15s, opacity 0.2s; }
.santa-go:hover { background: var(--accent-light); }
.santa-go:active { transform: scale(0.98); }
.santa-go.waiting { opacity: 0.45; box-shadow: none; }
.santa-go span { text-align: center; line-height: 1.2; }
.santa-go.busy { font-size: 17px; animation: santa-pulse 0.9s ease-in-out infinite; }
.keeper .santa-problem { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(224, 122, 95, 0.16); color: var(--text); font-size: 15px; font-weight: 600; }

.keeper .santa-line { font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); margin: -8px 0 16px; }
.santa-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.santa-way { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--background); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.santa-way svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--muted); }
.santa-way > span { min-width: 0; }
.santa-way strong { display: block; font-size: 16px; line-height: 1.25; }
.santa-way span span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.santa-way[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.santa-way[aria-pressed="true"] svg { color: var(--accent-light); }
.santa-progress p { margin: 0 0 8px; font-family: "Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.santa-progress.all p { color: var(--accent-light); }
.santa-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.santa-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.5s; }
.santa-avatar { --size: 40px; width: var(--size); height: var(--size); flex-shrink: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #121314; font-weight: 800; font-size: calc(var(--size) * 0.38); letter-spacing: -0.02em; }
.santa-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.santa-tile { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 112px; padding: 14px 16px 15px; font: inherit; text-align: left; cursor: pointer; transition: transform 0.15s; }
.santa-tile:hover { border-color: rgba(18, 19, 20, 0.35); }
.santa-tile:active { transform: scale(0.97); }
.santa-tile:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.santa-tile-words { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; }
.santa-tile-words strong { font-size: 18px; line-height: 1.2; overflow-wrap: break-word; }
.santa-tile-words span { font-size: 14px; color: rgba(18, 19, 20, 0.7); }
.santa-tile.seen { opacity: 0.8; }
.santa-check { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: #121314; color: #eeebe5; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.santa-gift.small { width: 40px; flex-shrink: 0; margin: -4px 0 0 -2px; filter: none; }
.santa-drawn.fresh .santa-tile { animation: santa-tile-in 0.5s cubic-bezier(0.34, 1.45, 0.64, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.santa-drawn.fresh .santa-h { animation: santa-pop-in 0.4s cubic-bezier(0.34, 1.5, 0.64, 1) both; }
.keeper .santa-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.keeper .santa-links li:last-child { border-bottom: 0; }
.santa-links .santa-who { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; font-size: 17px; color: var(--text); }
.santa-links .button { padding: 9px 15px; font-size: 15px; }
.santa-after { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.santa-text { min-height: 44px; padding: 0; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.santa-text:hover { color: var(--text); }
.santa-ask { width: 100%; padding: 16px; border-radius: 16px; background: var(--background); }
.keeper .santa-ask p { margin: 0 0 12px; color: var(--text); font-size: 15px; line-height: 1.5; }
.santa-ask-row { display: flex; flex-wrap: wrap; gap: 8px; }
.santa-ask .button { padding: 10px 16px; font-size: 15px; }
@media (max-width: 420px) {
  .santa-body { padding: 18px 16px 20px; }
  .santa-plus { padding: 0; width: 54px; }
  .santa-plus span { display: none; }
  .santa-way { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .santa-links .button { padding: 8px 12px; font-size: 14px; }
}

/* One person's turn, over the whole page: the present opens and the slip rises while the button is held */
html.santa-lock, html.santa-lock body { overflow: hidden; }
.santa-moment { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); background: var(--background); color: var(--text); touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; animation: santa-fade 0.25s ease-out; }
.santa-moment:focus { outline: none; }
.santa-x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.santa-reveal { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.santa-reveal::before { content: ""; position: fixed; left: 50%; top: 52%; width: 150vmax; height: 150vmax; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--c), transparent 55%); opacity: 0.16; transition: opacity 0.4s; pointer-events: none; z-index: -1; }
.santa-reveal.open::before { opacity: 0.3; }
.santa-head { position: relative; width: 100%; }
.santa-look { display: flex; flex-direction: column; align-items: center; transition: opacity 0.2s; }
.santa-big { font-size: clamp(26px, 7vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); margin: 14px 0 0; }
.santa-look .santa-note { max-width: 360px; margin-top: 8px; }
.santa-for { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity 0.2s; }
.santa-reveal.open .santa-look { opacity: 0; }
.santa-reveal.open .santa-for { opacity: 1; }
.santa-stage { position: relative; width: 100%; height: clamp(230px, 38vh, 300px); display: flex; align-items: flex-end; justify-content: center; }
.santa-gift { position: relative; width: 160px; height: auto; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28)); transition: opacity 0.2s; }
.santa-gift .lid { transform-box: view-box; transform-origin: 114px 52px; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.santa-reveal.open .santa-gift .lid { transform: translate(26px, 6px) rotate(32deg); }
.santa-sparks { position: absolute; left: 50%; bottom: 66px; width: 200px; height: 200px; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.santa-sparks path { opacity: 0; transform-box: fill-box; transform-origin: center; }
.santa-reveal.open .santa-sparks path { animation: santa-spark 0.7s ease-out both; }
.santa-slip { position: absolute; left: 50%; bottom: 92px; z-index: 1; width: min(300px, 86%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 18px 16px; border-radius: 18px; background: #f6f1e7; color: #1b1915; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); opacity: 0; transform: translate(-50%, 80px) scale(0.35); transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.08s linear; }
.santa-reveal.open .santa-slip { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(-3deg); transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease-out 0.06s; }
.santa-slip strong { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.santa-slip > span:last-child:not(.santa-avatar) { font-size: 14px; color: #55534f; }
.santa-hold-row { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 6px; }
.santa-hold { width: 100%; min-height: 66px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; box-shadow: 0 10px 24px rgba(94, 158, 90, 0.25); transition: transform 0.15s; }
.santa-reveal.open .santa-hold { transform: scale(0.97); }
.santa-offscreen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-height: 640px) {
  .santa-look .santa-avatar { --size: 48px !important; }
  .santa-big { font-size: 24px; margin-top: 8px; }
  .santa-stage { height: 220px; }
  .santa-gift { width: 130px; }
  .santa-slip { bottom: 74px; }
}

@keyframes santa-rise { from { transform: translateY(80px); } to { transform: none; } }
@keyframes santa-drop { from { transform: translateY(-460px) rotate(14deg); } to { transform: none; } }
@keyframes santa-fly { from { transform: translate(-50px, 34px) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes santa-snow { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes santa-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(4deg); } }
@keyframes santa-bob { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes santa-pulse { 50% { transform: scale(0.985); opacity: 0.85; } }
@keyframes santa-pop-in { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes santa-tile-in { from { transform: translateY(-26px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes santa-spark { 0% { transform: translate(0, 0) scale(0.2); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; } }
@keyframes santa-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes santa-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) {
  .santa-felt.enter *, .santa-felt.shuffling *, .keeper .santa-chip, .santa-drawn.fresh *, .santa-moment, .santa-go.busy, .keeper .santa-note.nudge { animation: none !important; }
  .santa-gift .lid, .santa-hold, .santa-tile, .santa-go { transition: none; }
  .santa-reveal.open .santa-gift .lid, .santa-reveal.open .santa-hold { transform: none; }
  .santa-reveal.open .santa-gift { opacity: 0; }
  .santa-reveal.open .santa-sparks path { animation: none; }
  .santa-slip, .santa-reveal.open .santa-slip { transform: translate(-50%, 0); transition: opacity 0.2s; }
}
/* The truco tally (truco.js): matches in squares of five, malas above the line and buenas below */
.tile.truco .matches { width: 100%; max-width: 260px; height: auto; margin: 6px 0 2px; }
.matches line { stroke: #121314; stroke-width: 3.2; stroke-linecap: round; }
.matches line.off { stroke-opacity: 0.13; stroke-width: 2; }
.matches line.half { stroke-opacity: 0.5; stroke-width: 1.5; stroke-dasharray: 4 5; }
.tile-half { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: rgba(18, 19, 20, 0.7); margin-top: 4px; }
.tile-step.wide { flex: 1; }
/* Side by side at any width, as on the paper anotador */
.tiles.truco-tiles { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.tile.truco .tile-step { min-width: 0; flex: 1; }
.tile.truco .tile-step.wide { flex: 2; }
@media (max-width: 560px) {
  .keeper .tiles.truco-tiles { gap: 8px; }
  .tile.truco { padding: 12px 10px; border-radius: 18px; }
  .tile.truco .tile-name { font-size: 16px; }
  .tile.truco .tile-score { font-size: 46px; padding: 2px 0 6px; }
  .tile.truco .tile-half { font-size: 13px; }
  .tile.truco .tile-row { gap: 6px; }
  .tile.truco .tile-step { height: 44px; font-size: 16px; }
  .tile.truco .tile-type input { height: 44px; font-size: 15px; }
  .truco-tiles.three .tile.truco { padding: 12px 8px; }
  .truco-tiles.three .tile-row { gap: 4px; }
  .truco-tiles.three .tile-step { font-size: 14px; letter-spacing: -0.02em; }
}

/* An Apple Watch screen instead of a phone */
.shot.watch { width: 240px; border-width: 10px; border-radius: 58px; background: #000; padding: 8px 4px; }
.app .shot.watch { width: 200px; border-width: 9px; border-radius: 50px; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .app .shot { justify-self: center; }
}
@media (max-width: 560px) {
  .get { flex-wrap: wrap; }
  .get .store { margin-left: 0; }
  .paper { padding: 16px; }
}
@media print {
  @page { margin: 12mm; }
  html, body { background: var(--paper); }
  .no-print { display: none !important; }
  .doc { max-width: none; padding: 0; }
  .paper { padding: 0; margin: 0; border-radius: 0; overflow: visible; }
  table.sheet { min-width: 0; }
  table.sheet th, table.sheet td { height: 32px; }
  table.sheet .names th { height: 40px; }
  table.sheet th.sub, table.sheet tr.part th { height: 20px; }
  table.sheet tr.part th { background: none; }
  table.sheet [contenteditable]:focus { outline: none; background: none; }
}


/* Articles (web/articles/): contents, trivia questions with their answers, and the answer key for print */
.contents { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.contents a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-size: 14px; }
.contents a:hover { border-color: var(--accent-border); color: var(--text); }
ol.quiz { padding-left: 26px; }
ol.quiz li { margin: 0 0 14px; }
ol.quiz li p { margin: 0; }
ol.quiz details { margin-top: 4px; }
ol.quiz summary { cursor: pointer; color: var(--accent-light); font-size: 15px; }
ol.quiz details p { color: var(--text); font-weight: 600; }
.answer-key { display: none; }
@media print {
  .doc h1, .doc h2, .doc p, .doc li { color: var(--ink); }
  .answer-key { display: block; break-before: page; }
}

/* The games pages in the app's look (design canvas "Tallynight games pages", 30 Oct 2026): each game's drawing
   on its colour, as in the app's Games tab, and guides set out for reading. */
.pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--c, var(--surface)); border-radius: 16px; overflow: hidden; color: #121314; }
.pic img { width: 92%; height: auto; }
.pic b { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.game { display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--card-border); transition: transform 0.2s ease; }
.game:hover { color: var(--text); transform: translateY(-2px); }
.game[hidden] { display: none; }
.game .pic { aspect-ratio: 4 / 3; border-radius: 0; }
.game .pic img { width: auto; height: 94%; }
.game .pic b { font-size: 48px; }
.game .name { padding: 12px 14px 0; font-size: 17px; font-weight: 600; line-height: 1.25; }
.game .sum { margin: 4px 14px 16px; font-size: 13px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

main.guide, main.hub { max-width: 1080px; margin: 0 auto; padding: 4px 20px 40px; }
.button.solid { background: #121314; border-color: #121314; color: var(--c); }
.button.solid:hover { color: #eeebe5; border-color: #121314; }
.button.outline { border: 1.5px solid #121314; color: #121314; }
.button.outline:hover { border-color: #121314; color: #121314; background: rgba(255, 255, 255, 0.25); }
.button svg { flex-shrink: 0; }
p.sub { margin: 8px 0 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
a.also { font-size: 14px; font-weight: 600; color: var(--accent-light); text-decoration: none; }
a.also:hover { color: var(--text); }

/* A game's guide */
.guide-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding: 6px 0 32px; }
.guide-hero .copy { flex: 1 1 460px; min-width: 0; }
.guide-hero .meta { color: var(--accent-light); }
.guide-hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; margin: 12px 0 18px; }
.guide-hero .lede { font-size: 20px; line-height: 1.55; color: var(--soft); margin: 0; max-width: 580px; }
.guide-hero .buttons { margin: 26px 0 0; }
.guide-hero .store { padding: 12px 22px; font-size: 16px; }
.poster { flex: 0 1 400px; min-width: 0; margin: 0; scroll-margin-top: 20px; }
.poster .pic { width: 100%; border-radius: 30px; }
.poster .pic img { width: 76%; }
.poster .pic b { font-size: 120px; }
.poster .video { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 30px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.poster .video:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.play-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 20px; background: rgba(18, 19, 20, 0.86); color: #eeebe5; }
.play { width: 50px; height: 50px; flex-shrink: 0; border-radius: 999px; background: #eeebe5; color: #121314; display: grid; place-items: center; transition: transform 0.2s ease; }
.poster .video:hover .play { transform: scale(1.06); }
.play-bar .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.play-bar strong { font-size: 16px; font-weight: 600; line-height: 1.3; }
.play-bar .meta { color: #a6a29a; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.guide .facts { gap: 1px; margin: 0; background: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--card-border); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.guide .facts div { background: var(--surface); border-radius: 0; padding: 18px 22px; }
.guide .facts dd { font-size: 17px; font-weight: 600; line-height: 1.35; }

.guide-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 56px; margin-top: 52px; }
.toc { flex: 0 0 210px; position: sticky; top: 20px; }
.toc summary { list-style: none; pointer-events: none; margin-bottom: 10px; font-family: "Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a[aria-current] { color: var(--text); border-left-color: var(--accent); font-weight: 600; }

.read { flex: 999 1 560px; min-width: 0; max-width: 700px; }
.read > section { scroll-margin-top: 20px; }
.read > section + section { margin-top: 56px; }
.read h2 { font-size: clamp(26px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; color: var(--text); }
.read p, .read li, .read dd { color: var(--soft); font-size: 18px; line-height: 1.7; }
.read p { margin: 0 0 14px; }
.read strong { color: var(--text); }
.read .list { padding-left: 22px; margin: 0 0 14px; }
.read .list li { margin-bottom: 8px; }

.worth, .rules { margin: 18px 0; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--card-border); }
.worth .v { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.worth .v + .v, .rules div + div { border-top: 1px solid var(--line); }
.worth dt { color: var(--text); font-size: 17px; line-height: 1.4; }
.read .worth dd { margin: 0; color: var(--text); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.worth .v.wide { flex-direction: column; gap: 2px; }
.worth .v.wide dt { color: var(--muted); font-size: 15px; }
.read .worth .v.wide dd { font-size: 18px; font-weight: 700; letter-spacing: 0; white-space: normal; }
.rules div { padding: 16px 20px; }
.rules dt { color: var(--text); font-size: 18px; font-weight: 700; }
.read .rules dd { margin: 4px 0 0; font-size: 17px; line-height: 1.6; }

.note { display: flex; gap: 14px; margin: 18px 0 0; padding: 16px 20px; border-radius: 20px; background: var(--accent-soft); border: 1px solid var(--accent-border); }
.note .tick { width: 30px; height: 30px; flex-shrink: 0; border-radius: 999px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; }
.read .note p { color: var(--text); font-size: 17px; line-height: 1.6; margin: 0; }
.read .note p + p { margin-top: 10px; }

.read .table-wrap { border-radius: 20px; background: var(--surface); margin: 16px 0 18px; }
.read table.score { font-size: 17px; }
.read table.score th, .read table.score td { padding: 12px 16px; color: var(--text); }
table.score .dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; background: var(--c); margin-right: 7px; vertical-align: 1px; }
table.sheet-like thead th { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
table.sheet-like thead th:first-child { font-family: "Plex Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
table.score tfoot td { font-size: 18px; }
table.score .lead { display: inline-block; min-width: 42px; padding: 3px 10px; border-radius: 999px; background: var(--c); color: #121314; text-align: center; }

.read > .app { margin-top: 56px; margin-bottom: 0; box-shadow: inset 0 0 0 1px var(--card-border); }
.read > .app + .sheet-card { margin-top: 16px; }
.sheet-card { display: flex; align-items: center; gap: 26px; padding: 24px 28px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--card-border); }
.sheet-card h2 { font-size: 24px; margin-bottom: 6px; }
.read .sheet-card p { font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
.mini-sheet { flex: 0 0 104px; height: 134px; display: flex; padding: 10px; border-radius: 8px; background: #fbf9f4; border: 1px solid #d9d0bf; transform: rotate(-2deg); box-shadow: 0 8px 14px rgba(0, 0, 0, 0.3); }
.mini-sheet span { flex: 1; border: 1px solid #c2b69f; border-radius: 3px; background-image: linear-gradient(#dcd3c2 1px, transparent 1px), linear-gradient(90deg, #dcd3c2 1px, transparent 1px); background-size: 100% 12px, 18px 100%; }

.read .faq h2 { margin-bottom: 8px; }
.read .faq details { border-bottom: 1px solid var(--line); }
.read .faq h2 + details { border-top: 1px solid var(--line); }
.read .faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; color: var(--text); font-size: 18px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.read .faq summary::-webkit-details-marker { display: none; }
.read .faq summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--surface); color: var(--muted); display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform 0.2s ease; }
.read .faq details[open] summary::after { transform: rotate(45deg); }
.read .faq details p { margin: 0 0 20px; padding-right: 48px; font-size: 17px; }
.related { margin-top: 72px; }
.related h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }

/* The games page */
.hub-hero { padding: 20px 0 32px; }
.hub-hero .meta { color: var(--accent-light); }
.hub-hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 12px 0 16px; max-width: 820px; }
.hub-hero .lede { font-size: 20px; line-height: 1.5; color: var(--soft); margin: 0; max-width: 600px; }
.search { margin-top: 26px; max-width: 620px; }
.search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search .field { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.search .field:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 18px; outline: none; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.chips a:hover { border-color: var(--accent-border); color: var(--text); }
.chips a[aria-current] { background: var(--accent-soft); border-color: var(--accent-border); }
.chips span { font-family: "Plex Mono", ui-monospace, monospace; font-size: 12px; font-weight: 400; color: var(--muted); }
main.hub.searching .extra { display: none; }
main.hub .extra, main.hub .all { margin-top: 64px; scroll-margin-top: 16px; }
main.hub .spotlight { margin-top: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.extra h2, .all > h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.all > h2 { font-size: 40px; letter-spacing: -0.03em; }

.month { flex: 3 1 500px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 32px; border-radius: 28px; background: var(--c); color: #121314; }
.month > div { flex: 1 1 260px; min-width: 0; }
.month .meta { color: #121314; }
.month h2 { font-size: clamp(40px, 5vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 10px 0 12px; }
.month p { font-size: 18px; line-height: 1.5; margin: 0; max-width: 420px; }
.month img { width: 230px; height: auto; margin: 0 auto; }
.month .buttons { margin: 22px 0 0; }
.month .button svg { width: 16px; height: 16px; }

.trending { flex: 2 1 320px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 24px 24px 8px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--card-border); }
.trending h2 { font-size: 26px; }
.trending .meta { font-size: 11px; }
.trending ol { flex: 1 1 100%; min-width: 0; list-style: none; margin: 10px 0 0; padding: 0; counter-reset: rank; }
.trending li a { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.trending li a::before { counter-increment: rank; content: "0" counter(rank); width: 20px; flex-shrink: 0; font-family: "Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.trending .pic { width: 50px; flex-shrink: 0; border-radius: 12px; }
.trending .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trending .t strong { font-size: 16px; font-weight: 600; }
.trending .t span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.holidays, .countries, .shelves { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 22px; }
.holiday, .country { padding: 20px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--card-border); }
.holiday { display: flex; align-items: center; gap: 18px; }
.holiday .date { width: 74px; height: 74px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 18px; background: var(--c); color: #121314; }
.holiday .date span { font-family: "Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; }
.holiday .date b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.holiday > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.holiday .title { color: var(--text); text-decoration: none; font-size: 18px; font-weight: 600; line-height: 1.25; }
.holiday .title:hover { color: var(--accent-light); }
.holiday .sub { color: var(--muted); font-size: 14px; line-height: 1.4; }

.country .top { display: flex; align-items: center; gap: 12px; }
.country .flag { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); font-size: 24px; }
.country h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 600; }
.country .tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.country .tiles a { width: 78px; display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.25; }
.country .tiles .pic { width: 78px; border-radius: 16px; }

.shelf { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 26px; background: var(--c); color: #121314; }
.shelf .meta { color: #121314; }
.shelf h3 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.shelf p { margin: 0; font-size: 16px; line-height: 1.45; }
.shelf .arts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.shelf .arts a { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, 0.35); }
.shelf .arts img { width: 52px; height: 52px; }

.kind { margin-top: 40px; scroll-margin-top: 16px; }
.kind[hidden], .no-results[hidden] { display: none; }
.kind-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.kind-head h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.kind-head .meta { font-size: 11px; }
.kind .games { margin-top: 18px; }
.no-results { margin: 24px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--surface); color: var(--soft); font-size: 17px; line-height: 1.5; }
main.hub .app { margin: 80px 0 20px; box-shadow: inset 0 0 0 1px var(--card-border); }
.sheets-line { color: var(--soft); font-size: 17px; }

@media (max-width: 900px) {
  .guide-body { margin-top: 20px; gap: 36px; }
  .toc { flex: 1 1 100%; position: static; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--card-border); }
  .toc summary { pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; padding: 0 18px; font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
  .toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); }
  .toc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .toc ol { margin: 0 18px 14px; }
}
@media (max-width: 860px) {
  .guide-hero .poster { order: -1; flex: 1 1 100%; }
  .poster .pic { aspect-ratio: 6 / 5; }
  .poster .pic img { width: auto; height: 80%; }
}
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 14px -20px 0; padding: 0 20px 4px; }
  .hub-hero .lede, .guide-hero .lede { font-size: 18px; }
  .guide .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide .facts div { padding: 14px 16px; }
  .read p, .read li, .read dd { font-size: 17px; }
  .month { padding: 24px; }
  .month img { width: 180px; order: -1; }
  .play-bar { left: 10px; right: 10px; bottom: 10px; }
  .sheet-card { align-items: flex-start; gap: 18px; padding: 20px; }
  .mini-sheet { flex-basis: 72px; height: 94px; padding: 7px; }
  .read .faq details p { padding-right: 0; }
}
@media (max-width: 520px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game .name { font-size: 15px; }
  main.hub:not(.searching) .kind .games { grid-auto-flow: column; grid-auto-columns: 148px; grid-template-columns: none; overflow-x: auto; margin: 14px -20px 0; padding: 0 20px 6px; scroll-snap-type: x mandatory; }
  main.hub:not(.searching) .kind .game { scroll-snap-align: start; }
  .country .tiles { flex-wrap: nowrap; overflow-x: auto; }
  .country .tiles a { flex-shrink: 0; width: 72px; }
  .country .tiles .pic { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .game, .play, .read .faq summary::after { transition: none; }
  .game:hover { transform: none; }
}

/* Paper: borders where a card meets a ground of nearly its own colour, and lighter shadows */
@media (prefers-color-scheme: light) {
  .value, .item, .privacy, .doc .card, .keeper, .facts div { box-shadow: inset 0 0 0 1px var(--card-border); }
  .guide .facts div { box-shadow: none; }
  .cards a { border-color: var(--card-border); }
  .paper { box-shadow: 0 0 0 1px var(--line); }
  .phone, .shot { box-shadow: 0 18px 40px rgba(27, 25, 21, 0.2); }
  .menu nav, .lang nav { box-shadow: 0 18px 40px rgba(27, 25, 21, 0.16); }
  .points li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f6b3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
  .mini-sheet { box-shadow: 0 6px 12px rgba(27, 25, 21, 0.15); }
}
@media print {
  .guide-body { display: block; }
  .poster, .toc, .guide-hero .buttons { display: none; }
}

/* The footer, after getricordo.app's (the studio's): a dark slab with rounded shoulders on every page, in both themes;
   a card that says the app is ready for tonight, columns of links, the name drawn large in three layers that part on
   hover, and a last line back to the top. The rules between its parts are a 1px background, so they stop at the gutters. */
.site-foot {
  --text: #eeebe5; --soft: #d8d4cc; --muted: #a6a29a; --line: #2a2d30; --surface: #1c1e20;
  --accent: #5e9e5a; --accent-text: #121314; --accent-light: #8ebb8c; --accent-border: #273a28;
  color-scheme: dark; position: relative; margin-top: 56px; overflow: hidden; color: var(--text); background: #0b0c0d;
  border-radius: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 32px) 0 0; border-top: 1px solid var(--line);
}
.site-foot p { margin: 0; }
.site-foot a { text-decoration: none; }
.site-foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.foot-in { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.foot-top { padding-top: clamp(40px, 5vw, 56px); padding-bottom: clamp(32px, 4vw, 44px); }

.foot-card { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: clamp(18px, 2.4vw, 24px); border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, #17181a, #101112); }
.foot-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(94, 158, 90, 0.1), transparent); animation: foot-scan 3.2s ease-in-out infinite; }
.foot-live { position: relative; flex: 1 1 380px; min-width: 0; display: grid; gap: 6px; }
.foot-live .meta { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; color: var(--accent-light); }
.foot-pulse { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: foot-pulse 2s infinite; }
.foot-title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.foot-note { font-size: 14px; color: var(--muted); }
.foot-tiles { position: relative; flex: 1 1 340px; max-width: 420px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.foot-tiles div { display: grid; gap: 7px; padding: 12px; border-radius: 12px; background: var(--surface); }
.foot-tiles b { font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.foot-tiles .meta { font-size: 10.5px; letter-spacing: 0.04em; }
.foot-cta { position: relative; width: fit-content; padding-bottom: 2px; border-bottom: 1px solid var(--accent); color: var(--text); font-size: 14px; font-weight: 600; transition: color 0.2s ease; }
.foot-cta:hover { color: var(--accent-light); }
@keyframes foot-scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes foot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 158, 90, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(94, 158, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 158, 90, 0); }
}

.foot-cols, .foot-end { background: linear-gradient(#1f2123, #1f2123) 20px 0 / calc(100% - 40px) 1px no-repeat; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-top: 44px; padding-bottom: 24px; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; }
.foot-brand p { max-width: 240px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--text); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.foot-logo img { width: 30px; height: 30px; border-radius: 8px; }
.foot-col, .foot-col nav { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-size: 14px; }
.foot-col .meta { margin-bottom: 4px; color: var(--accent-light); }
.foot-col a { color: var(--muted); line-height: 1.35; transition: color 0.2s ease; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--text); }
@media (min-width: 720px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .foot-cols { grid-template-columns: 1.3fr; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 28px; }
  .foot-brand { grid-column: auto; }
}

/* The name, three times: a filled word and two outlines behind it that rise when you hover. */
.foot-mark { position: relative; height: 1.24em; margin-top: 16px; overflow: hidden; user-select: none; font-size: clamp(60px, 15vw, 196px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.foot-mark::before { content: ""; position: absolute; bottom: -0.45em; left: 50%; width: 4.6em; height: 1.2em; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(94, 158, 90, 0.22), transparent); }
.foot-mark span { position: absolute; bottom: 0.1em; left: 50%; white-space: nowrap; color: transparent; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.foot-mark .l1 { transform: translateX(-50%); background: linear-gradient(180deg, var(--text) 30%, var(--accent) 130%); -webkit-background-clip: text; background-clip: text; }
.foot-mark .l2 { transform: translate(-50%, -0.082em); -webkit-text-stroke: 1.5px #47783f; }
.foot-mark .l3 { transform: translate(-50%, -0.165em); -webkit-text-stroke: 1.5px #2f4a30; }
.foot-mark:hover .l2 { transform: translate(-50%, -0.21em); }
.foot-mark:hover .l3 { transform: translate(-50%, -0.42em); }

.foot-end { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; padding-bottom: 22px; font-family: "Plex Mono", ui-monospace, monospace; font-size: 12.5px; line-height: 1.5; color: #8f8a82; }
.foot-end a { width: fit-content; color: var(--muted); }
.foot-end a:hover { color: var(--text); }
@media (min-width: 720px) { .foot-end { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; } }
@media (prefers-reduced-motion: reduce) {
  .foot-scan, .foot-pulse { animation: none; }
  .foot-mark span { transition: none; }
  .foot-mark:hover .l2 { transform: translate(-50%, -0.082em); }
  .foot-mark:hover .l3 { transform: translate(-50%, -0.165em); }
}

/* The score sheets page: the games page's layout, each sheet a game picture with a little sheet of paper on it,
   and the blank sheet drawn large. */
.pic { position: relative; }
.paper-badge { position: absolute; right: 10px; bottom: 10px; width: 28px; height: 36px; border-radius: 4px; border: 1px solid #d9d0bf; background-color: #fbf9f4; background-image: linear-gradient(#d3c9b6 1px, transparent 1px), linear-gradient(90deg, #d3c9b6 1px, transparent 1px); background-size: 100% 6px, 8px 100%; background-position: 0 9px, 6px 0; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); transform: rotate(6deg); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.blank-card { flex: 3 1 520px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px; padding: 32px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--card-border); }
.blank-sheet { flex: 0 0 200px; height: 256px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 10px; border: 1px solid #d9d0bf; background: #fbf9f4; color: #1b1915; transform: rotate(-3deg); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35); }
.bs-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bs-top b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.bs-top i { font-style: normal; font-family: "Plex Mono", ui-monospace, monospace; font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: #6e665a; border-bottom: 1px solid #c2b69f; padding: 0 22px 1px 0; }
.bs-names { height: 14px; border: 1px solid #b4aa96; border-bottom: 0; border-radius: 3px 3px 0 0; background-image: linear-gradient(90deg, #b4aa96 1px, transparent 1px); background-size: 28px 100%; background-position: 34px 0; }
.bs-grid { flex: 1; margin-top: -8px; border: 1px solid #b4aa96; border-radius: 0 0 3px 3px; background-image: linear-gradient(#dcd3c2 1px, transparent 1px), linear-gradient(90deg, #dcd3c2 1px, transparent 1px); background-size: 100% 12px, 28px 100%; background-position: 0 11px, 34px 0; }
.blank-copy { flex: 1 1 260px; min-width: 0; }
.blank-copy h2 { font-size: clamp(32px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 10px 0 12px; }
.blank-copy p { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.55; }
.blank-copy .buttons { margin: 22px 0 0; }
.blank-copy .store { padding: 12px 20px; font-size: 16px; }
.how-sheets { flex: 2 1 320px; min-width: 0; padding: 28px; border-radius: 28px; background: var(--accent-soft); border: 1px solid var(--accent-border); }
.how-sheets h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.how-sheets .points { gap: 14px; }
.how-sheets .points li { color: var(--text); }
.how-sheets p { margin: 20px 0 0; color: var(--soft); font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) {
  .blank-card { padding: 24px; }
  .blank-sheet { flex-basis: 160px; height: 204px; }
}
@media (prefers-color-scheme: light) {
  .blank-sheet { box-shadow: 0 12px 24px rgba(27, 25, 21, 0.18); }
  .paper-badge { box-shadow: 0 3px 8px rgba(27, 25, 21, 0.18); }
}

/* Holiday articles (web/articles/), laid out as the guides are: a poster with the date on the holiday's colour and
   the games it suggests, quick picks as a grid, each game idea a card with who, how long and how loud, prompts as
   tiles, and trivia as numbered cards with the answer behind a tap. */
.holiday-art { position: relative; aspect-ratio: 1; border-radius: 30px; background: var(--c); padding: 26px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; color: #121314; }
.holiday-art .date { width: 92px; height: 92px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 22px; background: #121314; color: var(--c); }
.holiday-art .date span { font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.08em; }
.holiday-art .date b { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.holiday-art .arts { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.holiday-art .arts span { min-height: 0; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: rgba(255, 255, 255, 0.32); }
.holiday-art .arts span:nth-child(odd) { transform: rotate(-3deg); }
.holiday-art .arts span:nth-child(even) { transform: rotate(3deg); }
.holiday-art .arts img { width: auto; height: 88%; max-width: 92%; object-fit: contain; }

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.picks div { padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--card-border); }
.picks strong { display: block; color: var(--text); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.read .picks p { margin: 0; font-size: 16px; line-height: 1.55; }

.ideas { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
.ideas li { padding: 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--card-border); }
.idea-name { display: block; color: var(--text); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.idea-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.idea-tags span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: 13px; line-height: 1.3; }
.idea-tags .noise { border-color: transparent; color: #121314; font-weight: 600; }
.idea-tags .loud { background: #E07A5F; }
.idea-tags .lively { background: #F2B23A; }
.idea-tags .warm { background: #F4A584; }
.idea-tags .quiet { background: #5FB3A6; }
.read .ideas p { margin: 0; font-size: 17px; line-height: 1.6; }

.prompts { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.read .prompts li { display: flex; align-items: center; min-height: 52px; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--card-border); color: var(--text); font-size: 16px; line-height: 1.3; }

.read ol.quiz { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
.read ol.quiz > li { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--card-border); }
.read ol.quiz > li > div { flex: 1; min-width: 0; }
.qn { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-light); font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; }
.read .quiz p.q { margin: 3px 0 0; color: var(--text); font-size: 17px; line-height: 1.5; }
.opts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.read .opts li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: 15px; line-height: 1.3; }
.opts b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-2); color: var(--text); font-family: "Plex Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500; }
.read ol.quiz details { margin-top: 10px; }
.read ol.quiz summary { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent-light); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.read ol.quiz summary::-webkit-details-marker { display: none; }
.read ol.quiz details[open] summary { display: none; }
.read ol.quiz details p { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.5; }

.article .related .holidays { margin-top: 20px; }
@media (max-width: 860px) {
  .holiday-art { aspect-ratio: 6 / 5; padding: 20px; }
  .holiday-art .arts { grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: end; }
  .holiday-art .date { width: 80px; height: 80px; }
}
@media (max-width: 520px) {
  .holiday-art { aspect-ratio: auto; }
  .holiday-art .arts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .holiday-art .arts span { aspect-ratio: 1; }
  .ideas li, .read ol.quiz > li { padding: 16px; }
}
@media print {
  .read ol.quiz > li { box-shadow: none; padding: 0; background: none; }
  .qn, .opts b { border: 0; background: none; color: var(--ink); }
  .ideas li, .picks div, .prompts li { box-shadow: none; background: none; }
  .idea-tags .noise { background: none; color: var(--ink); border: 1px solid var(--rule); }
}
/* Printed, every page is ink on paper, whatever the screen's theme. */
@media print {
  :root { --text: var(--ink); --soft: var(--ink); --muted: var(--ink-soft); --surface: transparent; --surface-2: transparent; --line: var(--rule); --card-border: transparent; --accent-soft: transparent; --accent-border: var(--rule); --accent-light: var(--ink); }
}

/* Support: three ways to help (the help center, email, the game rules), a row of facts, and the questions in groups. */
.support .hub-hero { padding-bottom: 28px; }
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.route { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--card-border); color: var(--text); text-decoration: none; transition: transform 0.2s ease; }
.route:hover { color: var(--text); transform: translateY(-2px); }
.route-icon { width: 48px; height: 48px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-light); }
.route strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.route span { color: var(--soft); font-size: 16px; line-height: 1.55; }
.route em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 600; font-size: 15px; color: var(--accent-light); }
.support .guide-body { margin-top: 48px; }
.support .read > section + section { margin-top: 44px; }
.still-stuck { padding: 24px 26px; border-radius: 22px; background: var(--accent-soft); border: 1px solid var(--accent-border); }
.still-stuck h2 { margin-bottom: 8px; }
.read .still-stuck p { margin: 0; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .route { transition: none; } .route:hover { transform: none; } }

/* App screens are <picture>s now (a dark capture for dark mode); they keep their shape at any width. */
.phone picture, .shot picture { display: block; }
.phone img, .shot img { height: auto; }

/* The homepage film (since 3 Dec 2026): a 9:16 video of a game night, muted until "Sound on" */
#video { scroll-margin-top: 20px; }
.film { justify-self: center; position: relative; width: 320px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 32px; background: #f5f1e8; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.film-sound { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(27, 25, 21, 0.82); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.film-sound:hover { background: rgba(27, 25, 21, 0.95); }
.feature .film-note { font-size: 15px; color: var(--muted); }
.film-words { max-width: 520px; color: var(--soft); }
.film-words summary { cursor: pointer; font-weight: 600; color: var(--accent-light); }
.feature .film-words p { font-size: 15px; margin: 10px 0 0; }
@media (max-width: 860px) { .film { width: 280px; } }
@media (max-width: 420px) { .film { width: 250px; } .film video { border-radius: 26px; } }
