/* SundayPrep — one stylesheet, no framework. */
:root {
  /* Bright, playful palette: sunshine, coral, sky, grass, grape, bubblegum. */
  --brand: #ff5a3c;
  --brand-2: #ff7a3d;
  --sun: #ffc83d;
  --sun-soft: #fff3cf;
  --sky: #2bb4ff;
  --grass: #2ecc71;
  --grape: #8b5cf6;
  --pink: #ff4fa3;
  --bg: #fffaf0;
  --surface: #ffffff;
  --ink: #2a2340;
  --muted: #6b6480;
  --line: #f0e6d6;
  --focus: #2b6cb0;
  --ok: #1e9e57;
  --err: #d92d20;
  --radius: 20px;
  --shadow: 0 2px 0 rgba(42, 35, 64, .06), 0 10px 24px rgba(42, 35, 64, .08);
  --font: ui-rounded, "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --serif: "Fredoka", ui-rounded, "Nunito", system-ui, sans-serif;
  color-scheme: light;
}
@font-face {
  font-family: "Fredoka"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(/fonts/fredoka-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(/fonts/fredoka-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: .5em 1em; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1180px; }
.narrow { max-width: 720px; }
.prose { max-width: 760px; }
.prose-grid { display: block; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand b { color: var(--brand); }
.main-nav { display: flex; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.main-nav a, .mobile-nav nav a { color: var(--ink); text-decoration: none; padding: .4rem .7rem; border-radius: 999px; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--sun-soft); }
.mobile-nav { display: none; margin-left: auto; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: .6rem; display: grid; gap: 4px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-nav nav { position: absolute; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; display: grid; min-width: 220px; }
@media (max-width: 860px) { .main-nav { display: none; } .mobile-nav { display: block; } }

.lang-hint { background: var(--sun-soft); text-align: center; padding: .5rem 16px; font-size: .95rem; }
.lang-hint button { background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: var(--muted); margin-left: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .65rem 1.05rem; border-radius: 999px; font: 600 .98rem/1.2 var(--font); cursor: pointer; text-decoration: none; transition: transform .06s ease, background .15s ease; }
.btn:hover { background: var(--sun-soft); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; }
.btn-small { padding: .45rem .85rem; font-size: .9rem; }
.btn-ghost { background: transparent; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

/* Hero / home */
.hero { background: linear-gradient(180deg, var(--sun-soft), var(--bg)); padding: 3.5rem 0 2rem; }
.hero-inner { max-width: 820px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tool-card { display: grid; gap: .3rem; height: 100%; padding: 1.1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--ink); }
.tool-icon { font-size: 1.8rem; }
.tool-name { font-weight: 700; font-size: 1.08rem; }
.tool-desc { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.why-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.why-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.why-grid h3 { margin-top: 0; }
.why-grid p { margin: 0; color: var(--muted); }

/* Page head */
.page { padding-bottom: 3rem; }
.crumbs ol { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; }
.crumbs a { color: var(--muted); }
.answer-box { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--sun); border-radius: var(--radius); padding: .9rem 1.15rem; max-width: 820px; }
.answer-box p { margin: 0; }
.answer-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .25rem !important; }
.meta-strip { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.meta-strip li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; }
.meta-strip span { color: var(--muted); margin-right: .35rem; }

/* Tool */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: 1.1rem; margin: 1.5rem 0; }
.tool-controls { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: flex-end; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.tool-controls fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tool-controls legend, .select span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .3rem; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 999px; font-size: .92rem; user-select: none; background: var(--bg); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.select select, .select input { font: inherit; padding: .4rem .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-width: 90px; }
.tool-stage { padding-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; justify-items: center; text-align: center; }
.preview-card { width: 100%; max-width: 560px; min-height: 160px; display: grid; place-items: center; padding: 1.5rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow); }
.preview-text { font: 700 clamp(1.4rem, 4vw, 2.1rem)/1.25 var(--serif); margin: 0; }
.preview-sub { margin: .6rem 0 0; opacity: .85; font-size: .95rem; }
.preview-card ul { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.preview-card li { background: rgba(255,255,255,.15); padding: .2rem .6rem; border-radius: 999px; font-size: .95rem; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.tool-count { color: var(--muted); font-size: .9rem; margin: 0; }
.noscript { background: var(--sun-soft); padding: .8rem; border-radius: 10px; }

/* Bingo */
.bingo-preview { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; max-width: 760px; }
.bingo-card { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--surface); container-type: inline-size; }
.bingo-card .cell { aspect-ratio: 1; display: grid; place-items: center; padding: 3px; border: 1px solid var(--line); font-size: calc(15.5cqi / var(--n, 5)); line-height: 1.12; font-weight: 600; overflow-wrap: break-word; hyphens: auto; min-width: 0; text-align: center; }
.bingo-card .cell.free { background: var(--sun-soft); color: var(--brand); font-weight: 800; }
.bingo-label { font-size: .8rem; color: var(--muted); margin: .3rem 0 0; }

/* Prose */
.prose p, .prose li { max-width: 72ch; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: .2rem 0 .8rem 2.6rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--sun); color: #1d2221; font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.tips ul { padding-left: 1.2rem; }
.full-list .count, .list-group .count { color: var(--muted); font-weight: 400; font-size: .85em; }
.word-list { list-style: none; padding: 0; columns: 2 240px; column-gap: 2rem; }
.word-list li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: .5rem; }
.word-list.cols { columns: 3 160px; }
.word-list.cols li { display: block; }
.taboo-list li { display: block; }
.forbidden-inline { display: block; color: var(--muted); font-size: .9rem; }
.lvl { font-size: .72rem; padding: .05rem .5rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; align-self: center; }
.lvl-1 { border-color: #9fd3b5; } .lvl-2 { border-color: #f2cf86; } .lvl-3 { border-color: #f0a39b; }
.whoami-list { padding-left: 1.4rem; }
.whoami-list > li { margin-bottom: .4rem; }
.whoami-list summary { cursor: pointer; }
.ref { color: var(--muted); font-size: .9rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding-right: 1.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .9rem; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { font-family: var(--font); font-size: 1.02rem; margin: .8rem 0; }
.updated { color: var(--muted); font-size: .9rem; margin-top: 2rem; }

/* Hubs */
.intro { font-size: 1.08rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.2rem; margin: 1.2rem 0; }
.toc p { margin: 0 0 .3rem; font-weight: 700; }
.toc ol { columns: 2 220px; margin: 0; padding-left: 1.2rem; }
.game { border-top: 1px solid var(--line); padding-top: .4rem; }
.game h2 { margin-top: 1.2rem; }
.game .num { color: var(--sun); }
.game-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .92rem; margin: 0 0 .5rem; }
.game-facts span { color: var(--muted); }

/* Eggs */
.eggs { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 1rem; }
.egg { display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-align: left; }
.egg-num { width: 3rem; height: 3.7rem; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: var(--sun); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #1d2221; }
.egg h3 { margin: 0 0 .2rem; }
.egg p { margin: .25rem 0; }

/* Signup / upgrade */
.upgrade { background: var(--sun-soft); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 1.2rem 1.3rem; margin: 2rem 0; }
.upgrade h2 { margin-top: 0; }
.signup-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.signup input[type="email"], .signup select { flex: 1 1 200px; font: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); min-width: 0; }
.signup .btn { flex: 0 0 auto; }
.consent { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.signup-msg { margin: .5rem 0 0; font-weight: 600; min-height: 1.2em; }
.signup-msg.ok { color: var(--ok); }
.signup-msg.err { color: var(--err); }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-top: .6rem; }

/* Related */
.related { margin-top: 3rem; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.5rem 0 1.5rem; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem; }
.footer-grid h2 { font: 700 .82rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .3rem 0 .6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand p { color: var(--muted); }
.footer-base { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; color: var(--muted); font-size: .85rem; }
.lang-switch ul { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.lang-switch a { color: var(--muted); }
.lang-switch [aria-current] { font-weight: 700; color: var(--ink); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Gate dialog */
.gate { border: 0; border-radius: 18px; padding: 1.4rem 1.4rem 1rem; max-width: 520px; width: calc(100% - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.gate::backdrop { background: rgba(10, 20, 18, .55); }
.gate h2 { margin-top: 0; }
.gate-close-form { position: absolute; right: .6rem; top: .4rem; margin: 0; }
.gate-x { border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); line-height: 1; }
.gate-skip { text-align: center; margin: .8rem 0 0; font-size: .92rem; }

/* Presenter (projector mode) */
.presenter { position: fixed; inset: 0; z-index: 50; background: #0f2a24; color: #fff; display: grid; grid-template-rows: auto 1fr auto; font-family: var(--font); }
.presenter .p-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 18px; flex-wrap: wrap; }
.presenter .p-teams { display: flex; gap: .6rem; }
.presenter .p-team { display: flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.08); border: 2px solid transparent; border-radius: 999px; padding: .3rem .4rem .3rem .9rem; cursor: pointer; color: #fff; font: inherit; }
.presenter .p-team.active { border-color: var(--sun); background: rgba(242,179,61,.18); }
.presenter .p-team b { font-size: 1.3rem; min-width: 1.6em; text-align: center; }
.presenter .p-team .p-minus { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 50%; width: 1.7rem; height: 1.7rem; cursor: pointer; }
.presenter .p-timer { font: 800 clamp(1.6rem, 4vw, 2.6rem)/1 var(--font); font-variant-numeric: tabular-nums; background: rgba(255,255,255,.08); border: 0; color: #fff; padding: .35rem .9rem; border-radius: 12px; cursor: pointer; }
.presenter .p-timer.low { color: var(--sun); }
.presenter .p-timer.done { background: #b42318; animation: pulse 0.8s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.presenter .p-tools { display: flex; gap: .4rem; }
.presenter .p-icon { background: rgba(255,255,255,.1); border: 0; color: #fff; padding: .55rem .8rem; border-radius: 10px; cursor: pointer; font: 600 .95rem var(--font); }
.presenter .p-main { display: grid; place-items: center; padding: 1rem 5vw; text-align: center; overflow: auto; }
.presenter .p-card { max-width: 1100px; width: 100%; }
.presenter .p-cat { text-transform: uppercase; letter-spacing: .12em; opacity: .7; font-size: clamp(.8rem, 1.6vw, 1rem); margin: 0 0 .6rem; }
.presenter .p-word { font: 800 clamp(2.4rem, 8vw, 6.5rem)/1.08 var(--serif); margin: 0; text-wrap: balance; }
.presenter .p-forbid { list-style: none; padding: 0; margin: 1.6rem auto 0; display: grid; gap: .5rem; max-width: 520px; }
.presenter .p-forbid li { background: rgba(180, 35, 24, .35); border-radius: 12px; padding: .45rem 1rem; font-size: clamp(1.1rem, 3vw, 2rem); font-weight: 700; }
.presenter .p-forbid-label { margin-top: 1.4rem; opacity: .7; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.presenter .p-clues { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: .7rem; max-width: 960px; text-align: left; }
.presenter .p-clues li { background: rgba(255,255,255,.08); border-radius: 14px; padding: .8rem 1.1rem; font-size: clamp(1.1rem, 2.8vw, 2rem); line-height: 1.3; display: flex; gap: .8rem; }
.presenter .p-clues li span { color: var(--sun); font-weight: 800; white-space: nowrap; }
.presenter .p-answer { margin-top: 1.4rem; font: 800 clamp(2rem, 6vw, 4.5rem)/1.1 var(--serif); color: var(--sun); }
.presenter .p-reveal { background: rgba(255,255,255,.1); border: 3px dashed rgba(255,255,255,.4); color: #fff; padding: 2.5rem 3rem; border-radius: 20px; font: 700 clamp(1.4rem, 4vw, 2.6rem) var(--font); cursor: pointer; }
.presenter .p-bottom { display: flex; justify-content: center; gap: .8rem; padding: 16px 18px 22px; flex-wrap: wrap; }
.presenter .p-btn { font: 700 clamp(1rem, 2.2vw, 1.35rem) var(--font); padding: .9rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; }
.presenter .p-btn.go { background: var(--sun); color: #1d2221; }
.presenter .p-btn.ok { background: #2f9e62; }
.presenter .p-left { opacity: .7; font-size: .95rem; }
.presenter .p-called { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; max-width: 1000px; margin: 1.6rem auto 0; }
.presenter .p-called span { background: rgba(255,255,255,.1); padding: .25rem .7rem; border-radius: 999px; font-size: clamp(.85rem, 1.6vw, 1.05rem); }
.presenter .p-count { opacity: .7; margin-top: .8rem; }
body.presenting { overflow: hidden; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .6rem 1.1rem; border-radius: 999px; z-index: 60; font-weight: 600; }

/* Printing */
.print-root { display: none; }
@page { margin: 12mm; }
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .tool-controls, .tool-actions, .upgrade, .related, .gate, .lang-hint, .crumbs, .presenter { display: none !important; }
  a { color: #000; text-decoration: none; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; }
  .p-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .p-cardp { height: 57mm; border: 1px dashed #999; padding: 6mm; display: flex; flex-direction: column; justify-content: center; text-align: center; break-inside: avoid; position: relative; }
  .p-cardp .pc-word { font: 700 17pt/1.2 var(--serif); }
  .p-cardp .pc-cat { position: absolute; top: 3mm; left: 4mm; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .08em; color: #555; }
  .p-cardp .pc-brand { position: absolute; bottom: 3mm; right: 4mm; font-size: 7pt; color: #777; }
  .p-cardp ul { list-style: none; padding: 0; margin: 3mm 0 0; font-size: 11pt; }
  .p-cardp ul li { border-top: 1px solid #ddd; padding: 1mm 0; }
  .p-cardp.who { height: 76mm; text-align: left; justify-content: flex-start; padding-top: 9mm; }
  .p-cardp.who ol { margin: 2mm 0; padding-left: 5mm; font-size: 10pt; }
  .p-cardp.who .pc-ans { font-weight: 700; font-size: 10pt; border-top: 1px solid #ccc; padding-top: 2mm; margin-top: auto; }
  .p-head { text-align: center; margin: 0 0 4mm; }
  .p-head h1 { font-size: 18pt; margin: 0; }
  .p-head p { margin: 1mm 0 0; font-size: 9pt; color: #555; }
  .p-bingo { break-inside: avoid; break-after: auto; padding: 2mm 0 4mm; }
  .p-bingo-pair { display: grid; gap: 6mm; break-after: page; }
  .p-bingo h2 { text-align: center; font: 700 14pt var(--serif); margin: 0 0 2mm; }
  .p-bingo .bingo-card { width: 100mm; margin: 0 auto; border: 2px solid #000; }
  .p-bingo .bingo-card .cell { border: 1px solid #000; color: #000; }
  .p-bingo .bingo-card .cell.free { background: #f3f3f3; color: #000; }
  .p-bingo .p-foot { text-align: center; font-size: 8pt; color: #666; margin-top: 2mm; }
  .p-caller { columns: 3; font-size: 10.5pt; }
  .p-caller li { break-inside: avoid; padding: 1mm 0; }
  .p-eggs .egg { break-inside: avoid; border: 1px solid #ccc; margin-bottom: 3mm; }
  .p-eggs .egg-num { background: #eee; }
}

/* ---------- Playful layer ---------- */
@media screen {
  h1, h2, h3 { font-weight: 600; letter-spacing: 0; }
  h1 { color: var(--ink); }
  body { background:
    radial-gradient(circle at 8% 12%, rgba(255, 200, 61, .18) 0 120px, transparent 121px),
    radial-gradient(circle at 92% 30%, rgba(43, 180, 255, .12) 0 160px, transparent 161px),
    radial-gradient(circle at 15% 70%, rgba(255, 79, 163, .08) 0 140px, transparent 141px),
    var(--bg);
    background-attachment: fixed; }

  /* Header: white with a rainbow stripe */
  .site-header { border-bottom: 0; box-shadow: 0 2px 0 rgba(42,35,64,.05); }
  .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--sun), var(--grass), var(--sky), var(--grape), var(--pink)); }
  .brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
  .brand b { color: var(--brand); font-weight: 600; }
  .main-nav a { font-weight: 600; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--sun); color: var(--ink); }

  /* Chunky, bouncy buttons */
  .btn { border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-weight: 700; transition: transform .08s ease, box-shadow .08s ease, background .15s; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: var(--sun-soft); }
  .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
  .btn-primary { background: var(--brand); border-color: var(--ink); color: #fff; }
  .btn-primary:hover { background: var(--brand-2); color: #fff; }
  .btn-ghost { box-shadow: none; border-color: transparent; }

  /* Hero: sunny gradient with floating emoji */
  .hero { position: relative; overflow: hidden; padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #ffe066 0%, #ffb35c 45%, #ff7aa8 100%); }
  .hero h1 { color: #2a2340; font-size: clamp(2.4rem, 6.5vw, 4rem); line-height: 1.05; }
  .hero .lead { color: #3d3456; font-weight: 600; }
  .hero::before, .hero::after { position: absolute; font-size: clamp(3rem, 8vw, 6rem); opacity: .9; pointer-events: none; animation: bob 4s ease-in-out infinite; }
  .hero::before { content: "🎲"; right: 6%; top: 18%; }
  .hero::after { content: "🎉"; right: 18%; bottom: 8%; animation-delay: -2s; }
  .hero-inner { position: relative; z-index: 1; }
  @keyframes bob { 50% { transform: translateY(-14px) rotate(8deg); } }
  @media (max-width: 760px) { .hero::before, .hero::after { display: none; } }

  /* Colour-coded game cards */
  .tool-grid > li:nth-child(6n+1) .tool-card { --c: var(--brand); --t: #fff0ec; }
  .tool-grid > li:nth-child(6n+2) .tool-card { --c: var(--sky); --t: #e8f6ff; }
  .tool-grid > li:nth-child(6n+3) .tool-card { --c: var(--grape); --t: #f1ebff; }
  .tool-grid > li:nth-child(6n+4) .tool-card { --c: var(--grass); --t: #e7f9ef; }
  .tool-grid > li:nth-child(6n+5) .tool-card { --c: var(--pink); --t: #ffeaf4; }
  .tool-grid > li:nth-child(6n+6) .tool-card { --c: #f4a100; --t: #fff6dc; }
  .tool-card { border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); background: var(--t, #fff); }
  .tool-card:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--ink); box-shadow: 0 9px 0 var(--ink); }
  .tool-icon { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 16px; background: var(--c, var(--sun)); font-size: 1.8rem; border: 2px solid var(--ink); }
  .tool-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
  .why-grid li { border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
  .why-grid li:nth-child(1) { background: #fff3cf; } .why-grid li:nth-child(2) { background: #e8f6ff; }
  .why-grid li:nth-child(3) { background: #e7f9ef; } .why-grid li:nth-child(4) { background: #ffeaf4; }

  /* Answer box, meta pills */
  .answer-box { border: 2px solid var(--ink); border-left-width: 2px; box-shadow: 0 4px 0 var(--ink); background: #fff8dc; }
  .answer-label { color: var(--brand) !important; }
  .meta-strip li { border: 2px solid var(--ink); background: #fff; font-weight: 600; }

  /* The game box */
  .tool { border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 7px 0 var(--ink); background: #fff; }
  .chip span { border: 2px solid var(--ink); font-weight: 700; background: #fff; }
  .chip input:checked + span { background: var(--sky); border-color: var(--ink); color: #fff; }
  .preview-card { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); color: #fff;
    background: linear-gradient(135deg, var(--grape), var(--sky)); transform: rotate(-1deg); }
  [data-key="charades"] .preview-card, [data-key="christmasCharades"] .preview-card { background: linear-gradient(135deg, #ff5a3c, #ffb03b); }
  [data-key="pictionary"] .preview-card { background: linear-gradient(135deg, #2bb4ff, #2ecc71); }
  [data-key="taboo"] .preview-card { background: linear-gradient(135deg, #8b5cf6, #ff4fa3); }
  [data-key="whoami"] .preview-card { background: linear-gradient(135deg, #2bb4ff, #8b5cf6); }
  .preview-text { font-family: var(--serif); font-weight: 600; }
  .bingo-card { border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); }
  .bingo-card .cell.free { background: var(--sun); color: var(--ink); }
  .steps li::before { border: 2px solid var(--ink); background: var(--sun); }
  .steps li:nth-child(2)::before { background: #7fd6ff; } .steps li:nth-child(3)::before { background: #8ef0b2; }
  .steps li:nth-child(4)::before { background: #ffa3cf; }
  .egg-num { border: 2px solid var(--ink); }
  .eggs .egg:nth-child(4n+2) .egg-num { background: #7fd6ff; } .eggs .egg:nth-child(4n+3) .egg-num { background: #8ef0b2; }
  .eggs .egg:nth-child(4n+4) .egg-num { background: #ffa3cf; }
  .game .num { color: var(--brand); }
  .faq details { border: 2px solid var(--ink); }
  .toc { border: 2px solid var(--ink); background: #e8f6ff; }

  /* Signup box */
  .upgrade { background: linear-gradient(135deg, #fff3cf, #ffe1ec); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
  .signup input[type="email"], .signup select { border: 2px solid var(--ink); }
  .gate { border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); }

  .site-footer { background: #2a2340; color: #e9e4ff; border-top: 0; }
  .site-footer .brand, .footer-grid a, .lang-switch [aria-current] { color: #fff; }
  .site-footer .brand b { color: var(--sun); }
  .footer-brand p, .footer-base, .footer-grid h2, .lang-switch a { color: #b9b0d9; }
  .footer-brand a { color: var(--sun); }
  .footer-base { border-top-color: rgba(255,255,255,.12); }

  /* Projector mode: bright, high-contrast party gradient */
  .presenter { background: linear-gradient(135deg, #6a3df0 0%, #2f80ff 55%, #13c2c2 100%); }
  .presenter .p-word { font-family: var(--serif); font-weight: 700; text-shadow: 0 4px 0 rgba(0,0,0,.18); }
  .presenter .p-answer { font-family: var(--serif); color: var(--sun); text-shadow: 0 3px 0 rgba(0,0,0,.2); }
  .presenter .p-team, .presenter .p-timer, .presenter .p-icon, .presenter .p-clues li, .presenter .p-called span { background: rgba(255,255,255,.18); }
  .presenter .p-btn { border: 3px solid #fff; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
  .presenter .p-btn.ok { background: #2ecc71; }
  .presenter .p-btn.go { background: var(--sun); color: #2a2340; }
  .presenter .p-forbid li { background: #ff4f6d; }
}

/* Bible jokes */
.jokes { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.joke { background: #fff; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); padding: .9rem 1.1rem; }
.joke-group:nth-of-type(4n+1) .joke { background: #fff8dc; }
.joke-group:nth-of-type(4n+2) .joke { background: #e8f6ff; }
.joke-group:nth-of-type(4n+3) .joke { background: #e7f9ef; }
.joke-group:nth-of-type(4n+4) .joke { background: #ffeaf4; }
.joke summary { cursor: pointer; list-style: none; display: grid; gap: .25rem; }
.joke summary::-webkit-details-marker { display: none; }
.joke-q { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.joke-tap { font-size: .85rem; font-weight: 700; color: var(--brand); }
.joke-tap::before { content: "👉 "; }
.joke details[open] .joke-tap { display: none; }
.joke-a { margin: .5rem 0 0; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--grape); animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.joke-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.joke-foot .ref { margin: 0; font-size: .85rem; }
@media print {
  .joke { border: 1px solid #999; box-shadow: none; break-inside: avoid; background: #fff !important; }
  .joke details > *:not(summary) { display: block !important; }
  .joke-tap, .joke-foot .btn { display: none; }
}
[id] { scroll-margin-top: 84px; }
