/* Party Pack — section pages (/friendsgiving/, /hidden-roles/, /quests/). Extends style.css tokens. */
body[data-page="friendsgiving"] { --accent: #ffb020; --pc: #ffb020; --pc2: #ff7a3d; }
body[data-page="hidden-roles"] { --accent: #8b7dff; --pc: #8b7dff; --pc2: #ff5c8a; }
body[data-page="holiday-party"] { --accent: #2f9e6e; --pc: #5fcf9a; --pc2: #ff6b6b; }
body[data-page="quests"] { --accent: #2fb3a6; --pc: #2fb3a6; --pc2: #8b7dff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }
.pg { width: 100%; max-width: 720px; margin: 0 auto; padding: 4px 16px 32px; }
.sections-nav { display: flex; gap: 8px; flex-wrap: wrap; max-width: 720px; width: 100%; margin: 0 auto; padding: 0 16px 8px; }
.sections-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: .92rem; text-decoration: none; }
.sections-nav a[aria-current="page"] { background: var(--pc); color: #1d1a22; border-color: transparent; }
.pg-hero { position: relative; margin-top: 8px; padding: 26px 22px 24px; border-radius: 26px; color: #1d1a22; background: linear-gradient(135deg, var(--pc), var(--pc2)); overflow: hidden; }
body[data-page="hidden-roles"] .pg-hero { color: #fff; background: linear-gradient(135deg, #2a2540, #6a4fc9 60%, #ff5c8a); }
.pg-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.22); pointer-events: none; }
.pg-hero .kick { font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; opacity: .85; }
.pg-hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); margin-top: 8px; text-wrap: balance; }
.pg-hero p { margin-top: 10px; font-size: 1.05rem; font-weight: 700; max-width: 46ch; }
.pg-hero .row { margin-top: 16px; }
.pg-hero .btn { background: #1d1a22; color: #fff; }
.pg-hero .btn.ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.sec { margin-top: 26px; scroll-margin-top: 12px; }
.sec > h2 { font-size: 1.4rem; margin-bottom: 8px; }
.sec .lead { color: var(--muted); }
.cols { display: grid; gap: 12px; }
@media (min-width: 640px) { .cols.two { grid-template-columns: 1fr 1fr; } }
.tips { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: tip; }
.tips li { counter-increment: tip; display: flex; gap: 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.tips li::before { content: counter(tip); flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #1d1a22; font-weight: 900; font-size: .9rem; }
.tips b { display: block; }
.tips span { color: var(--muted); font-size: .95rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.lbl { display: block; font-weight: 800; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.fld { display: grid; gap: 4px; margin-top: 12px; }
.fld input:not([type=checkbox]), .fld select, .fld textarea, .inp { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; }
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:not([type=checkbox]):focus, .fld select:focus, .fld textarea:focus, .inp:focus { border-color: var(--pc); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 35%, transparent); }
.grid2 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.btn.pc { background: var(--pc); color: #1d1a22; }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: .95rem; border-radius: 14px; }
.seg2 { display: flex; gap: 6px; flex-wrap: wrap; }
.seg2 button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface-2); font-weight: 800; cursor: pointer; }
.seg2 button[aria-pressed="true"] { background: var(--pc); border-color: transparent; color: #1d1a22; }
.toast { color: var(--muted); font-weight: 800; min-height: 1.4em; margin-top: 6px; font-size: .92rem; }
.err-t { color: #b3173f; font-weight: 800; }
@media (prefers-color-scheme: dark) { .err-t { color: #ff8fb0; } }
.hint2 { color: var(--muted); font-size: .92rem; margin-top: 6px; }
details.fold { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; margin-top: 8px; }
details.fold summary { cursor: pointer; font-weight: 800; padding: 14px 0; min-height: 44px; }
details.fold[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
details.fold > :not(summary) { padding-bottom: 12px; }
details.fold p + p { margin-top: 6px; }
details.fold ul, details.fold ol { margin: 6px 0 0; padding-left: 20px; }
details.fold li + li { margin-top: 4px; }
.faq h3 { font-size: 1.02rem; }
.faq p { color: var(--muted); margin-top: 4px; }
.faq > div + div { margin-top: 12px; }
.pg-foot { max-width: 720px; margin: 0 auto; }
.pg-foot .how { max-width: 520px; }
.pg-foot .store-badges { margin-top: 10px; }

/* Friendsgiving */
.slots { display: grid; gap: 8px; margin-top: 12px; }
.slot { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.slot .dish { font-weight: 800; overflow-wrap: anywhere; }
.slot .meta { color: var(--muted); font-size: .88rem; font-weight: 700; }
.slot .who { font-weight: 900; color: var(--text); }
.slot.open { border-style: dashed; }
.slot .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.slot .acts button { min-height: 44px; min-width: 44px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; }
.slot .acts button.take { background: var(--pc); border-color: transparent; color: #1d1a22; }
.prog { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.prog > i { display: block; height: 100%; background: var(--pc); width: 0; transition: width .25s ease; }
.badge-plus { display: inline-block; margin-top: 8px; background: color-mix(in srgb, var(--pc) 22%, var(--surface)); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .88rem; }
.prompt-stage { min-height: 150px; display: grid; place-items: center; text-align: center; border-radius: 22px; padding: 22px 20px; background: linear-gradient(135deg, var(--pc), var(--pc2)); color: #1d1a22; font-size: clamp(1.25rem, 5vw, 1.7rem); font-weight: 900; line-height: 1.25; text-wrap: balance; }
.plist { margin: 12px 0 0; padding-left: 26px; display: grid; gap: 6px; }
.plist li::marker { font-weight: 900; color: var(--muted); }
.tl { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--pc); margin-left: 8px; }
.tl li { position: relative; padding: 4px 0 14px 18px; }
.tl li::before { content: ""; position: absolute; left: -9px; top: 9px; width: 15px; height: 15px; border-radius: 50%; background: var(--pc); border: 3px solid var(--bg); }
.tl time { display: block; font-weight: 900; font-size: .88rem; color: var(--muted); }
.tl b { display: block; }
.tl span { color: var(--muted); font-size: .95rem; }

/* Hidden roles */
.hr-screen { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.hr-screen h2 { font-size: 1.3rem; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); font-size: 1.4rem; font-weight: 900; cursor: pointer; }
.stepper output { min-width: 3ch; text-align: center; font-weight: 900; font-size: 1.6rem; }
.deal { text-align: center; min-height: 54vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.deal .who { font-size: clamp(2rem, 9vw, 3rem); font-weight: 900; overflow-wrap: anywhere; }
.deal.role { cursor: default; color: #fff; border: 0; }
.deal.role.shadow { background: linear-gradient(160deg, #1d1a22, #5b1a3a); }
.deal.role.guest { background: linear-gradient(160deg, #1d6b64, #2fb3a6); color: #08201e; }
.deal.role.seer { background: linear-gradient(160deg, #3b2f86, #8b7dff); }
.deal.role.guard { background: linear-gradient(160deg, #a35f00, #ffb020); color: #241500; }
.deal .rname { font-size: clamp(2rem, 9vw, 3rem); font-weight: 900; }
.deal .rdesc { max-width: 34ch; font-weight: 700; }
.deal .mates { font-weight: 900; background: rgba(255,255,255,.14); border-radius: 14px; padding: 8px 14px; }
.timer { text-align: center; padding: 16px; border-radius: 20px; background: var(--surface-2); }
.timer output { display: block; font-size: clamp(2.6rem, 14vw, 4.2rem); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.timer.end output { color: #b3173f; }
@media (prefers-color-scheme: dark) { .timer.end output { color: #ff8fb0; } }
.timer .row { justify-content: center; margin-top: 10px; }
.timer .row .btn { flex: 0 1 auto; }
.steps-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.steps-bar span { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-weight: 800; font-size: .82rem; color: var(--muted); }
.steps-bar span.on { background: var(--pc); color: #fff; }
.alive { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.alive span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 800; font-size: .92rem; }
.alive span.out { text-decoration: line-through; opacity: .55; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pick button { min-height: 56px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); font-weight: 900; font-size: 1.02rem; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px; }
.pick button:hover { border-color: var(--pc); }
.pick button.sel { background: var(--pc); border-color: transparent; color: #fff; }
.mission { margin-top: 12px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--pc) 16%, var(--surface)); font-weight: 800; font-size: 1.1rem; }
.verdict { text-align: center; padding: 22px 12px; }
.verdict .big { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 900; }
.roster { margin-top: 12px; display: grid; gap: 6px; }
.roster div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-weight: 800; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 900; background: var(--pc); color: #fff; }
.tag.sh { background: #5b1a3a; }
.tag.gu { background: #1d6b64; }
.callout { border-left: 5px solid var(--pc); background: var(--surface); border-radius: 0 14px 14px 0; padding: 12px 14px; margin-top: 12px; font-weight: 700; }
.pcards { display: none; }

/* Quests */
.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.deck-btn { text-align: left; border: 2px solid transparent; border-radius: 18px; padding: 14px; min-height: 96px; background: var(--dc); color: #1d1a22; cursor: pointer; display: grid; align-content: space-between; gap: 6px; box-shadow: var(--shadow); }
.deck-btn b { font-size: 1.02rem; line-height: 1.15; }
.deck-btn small { font-weight: 800; opacity: .8; }
.deck-btn span { font-size: 1.5rem; line-height: 1; }
.deck-btn[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.qcard { min-height: 300px; border-radius: 26px; padding: 26px 22px 20px; background: var(--dc); color: #1d1a22; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; box-shadow: var(--shadow); user-select: none; }
.qcard .qk { font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; opacity: .8; display: flex; justify-content: space-between; gap: 8px; }
.qcard .qt { font-size: clamp(1.4rem, 5.6vw, 1.95rem); font-weight: 900; line-height: 1.22; text-wrap: balance; }
.qcard .qlinks { display: flex; gap: 8px; flex-wrap: wrap; }
.qcard .qlinks a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 14px; background: rgba(29,26,34,.9); color: #fff; font-weight: 800; font-size: .92rem; text-decoration: none; }
.qcard .qlinks a.alt { background: rgba(255,255,255,.55); color: #1d1a22; }
.qcard .qs { margin: 0; font-size: .88rem; line-height: 1.4; font-weight: 600; background: rgba(255,255,255,.5); border-radius: 12px; padding: 8px 12px; user-select: text; }
.qcard.done { opacity: .78; }
.qctl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.qctl .btn { flex: 1 1 130px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); }
.dots i.on { background: var(--dc); border-color: transparent; }
.dots i.cur { box-shadow: 0 0 0 3px var(--text); }

/* Print */
#printsheet, #printcards { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body { display: block; padding: 0; min-height: 0; }
  body > *:not(#printsheet):not(#printcards) { display: none !important; }
  body.print-sheet #printcards { display: none !important; }
  body.print-cards #printsheet { display: none !important; }
  body.print-sheet #printsheet, body.print-cards #printcards { display: block !important; }
  * { box-shadow: none !important; }
}
.ps { font-size: 10.5pt; line-height: 1.35; color: #000; font-family: var(--font); }
.ps h1 { font-size: 20pt; margin: 0 0 2mm; }
.ps h2 { font-size: 12pt; margin: 4mm 0 1.5mm; border-bottom: 1.5pt solid #000; padding-bottom: 1mm; }
.ps .meta { font-size: 11pt; font-weight: 800; }
.ps table { width: 100%; border-collapse: collapse; }
.ps td, .ps th { border: 1pt solid #555; padding: 2mm 2.5mm; text-align: left; vertical-align: top; height: 8.5mm; }
.ps th { background: #eee; font-size: 9pt; }
.ps .two { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.ps ul, .ps ol { margin: 0; padding-left: 5mm; }
.ps li { margin-bottom: 1mm; }
.ps .cut { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1pt dashed #777; }
.ps .cut div { padding: 2mm 3mm; border: 0.5pt dashed #777; font-size: 9.5pt; }
.ps .foot-p { margin-top: 4mm; font-size: 8.5pt; color: #333; }
.cardgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pcard { height: 63mm; border: 1pt dashed #666; padding: 4mm 5mm; page-break-inside: avoid; break-inside: avoid; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--font); color: #000; }
.pcard .pk { font-size: 7.5pt; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pcard .pn { font-size: 17pt; font-weight: 900; }
.pcard .pd { font-size: 9.5pt; font-weight: 600; }
.pcard .pf { font-size: 7.5pt; border-top: 1pt dashed #666; padding-top: 1.5mm; }
.pcard.q { height: 80mm; }
.pcard.q .pn { font-size: 14pt; line-height: 1.2; }
.pcard.q .pd { font-size: 7.5pt; font-weight: 500; line-height: 1.25; }

@media (prefers-reduced-motion: reduce) { .prog > i { transition: none; } }

#stage { margin-top: 14px; }

/* Impostor word packs (/impostor/, /impostor/<pack>/) */
body[data-page="impostor"] { --accent: #ff5c8a; --pc: #ff5c8a; --pc2: #ffb020; }
.pg-hero .theme { font-size: .95rem; font-weight: 700; opacity: .9; }
.pairs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pairs li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.pairs li span { color: var(--muted); font-size: .9rem; }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips2 .btn { min-height: 44px; }
.packlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.packlist li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.packlist a { font-weight: 900; font-size: 1.1rem; }
.packlist .cnt { color: var(--muted); font-weight: 800; font-size: .9rem; margin-left: 6px; }
.packlist p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* Social bingo prompt list */
.bprompts { columns: 2 260px; column-gap: 28px; padding-left: 1.6em; margin: 12px 0 0; }
.bprompts li { break-inside: avoid; padding: 2px 0; }

/* ---- Gift swap helper (/gift-swap/) ---- */
body[data-page="gift-swap"] { --accent: #e0483c; --pc: #ff6b57; --pc2: #ffb020; }
.gs-add { display: flex; gap: 8px; align-items: center; } .gs-add .inp { flex: 1; min-width: 0; }
.gs-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-weight: 700; cursor: pointer; }
.gs-check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.gs-check small { color: var(--muted); font-weight: 500; }
.gs-h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.gs-card { margin-top: 12px; border-width: 2px; border-style: dashed; }
.gs-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.gs-foot { margin-top: 12px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.gs-pair { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gs-pair select { flex: 1; min-width: 120px; min-height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); padding: 6px 10px; font: inherit; color: var(--text); }
.gs-actions { margin-top: 16px; }
.gs-ok { margin-top: 12px; font-weight: 800; }
.gs-warn { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 700; border-left: 4px solid var(--pc); }
.gs-link { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; margin: 10px 0; }
.gs-link b { grid-column: 1 / -1; } .gs-link .inp { min-width: 0; font-size: .8rem; }
.gs-pass { text-align: center; padding: 22px 12px; margin-top: 14px; border-radius: 20px; background: var(--surface-2); }
.gs-pass .sub { color: var(--muted); font-size: 1.05rem; font-weight: 700; }
.gs-pass .who { font-size: clamp(2rem, 9vw, 3rem); font-weight: 900; overflow-wrap: anywhere; margin: 6px 0 16px; }
.gs-now { text-align: center; margin: 14px 0; } .gs-now .who { font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 900; overflow-wrap: anywhere; }
.gs-order { margin: 12px 0 0; padding-left: 1.4em; columns: 2; } .gs-order li { padding: 2px 0; } .gs-order li.cur { font-weight: 900; color: var(--accent); }
.gs-timer { margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.gs-time { font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; margin: 8px 0; } .gs-time.up { color: #b3173f; }
.gs-gift { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.gs-gift .inp { flex: 1 1 160px; min-width: 0; } .gs-gift select { min-height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); padding: 6px 10px; font: inherit; color: var(--text); }
.gs-gift.frozen { opacity: .8; border-color: var(--pc); } .gs-gift .cnt { font-weight: 800; font-size: .9rem; }
.gs-cats { margin-bottom: 12px; } .gs-ul { margin: 6px 0 0; padding-left: 1.2em; } .gs-ul li { padding: 2px 0; }
body.gs-reveal .sections-nav { display: none; }
@media print {
  body.print-rules header, body.print-rules .sections-nav, body.print-rules footer, body.print-rules .pg-hero, body.print-rules .sec:not(#rulesSec), body.print-rules #rulesSec > h2, body.print-rules #rulesSec > .lead,
  body.print-rules #rulesBox, body.print-rules #rulesSec .row, body.print-rules .skip, body.print-rules .toast { display: none !important; }
  body.print-rules { background: #fff; color: #000; } body.print-rules .gs-card { border: 0; box-shadow: none; font-size: 1.15rem; }
}

/* ---- New Year's Eve pack (/new-years-eve/) ---- */
body[data-page="new-years-eve"] { --accent: #6b4de6; --pc: #7c5cff; --pc2: #ffc53d; }
.nye-stage { text-align: center; padding: 28px 12px; border-radius: 24px; background: #15131a; color: #fff; margin-bottom: 12px; }
.nye-stage .nye-sub { font-weight: 800; font-size: 1.05rem; opacity: .85; }
.nye-main { font-size: clamp(2.6rem, 14vw, 6.5rem); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 10px 0; color: #ffc53d; overflow-wrap: anywhere; }
.nye-units { font-weight: 700; opacity: .8; }
.nye-stage.happy .nye-main { font-size: clamp(2.4rem, 11vw, 5.5rem); color: #fff; }
.nye-stage:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.nye-stage:fullscreen .nye-main { font-size: clamp(3rem, 20vw, 14rem); }
.nye-stage.nye-fake-fs { position: fixed; inset: 0; z-index: 50; border-radius: 0; display: flex; flex-direction: column; justify-content: center; margin: 0; }
.nye-stage.nye-fake-fs .nye-main { font-size: clamp(3rem, 20vw, 14rem); }
.nye-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.nye-cell { min-height: 74px; padding: 6px 4px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: clamp(.62rem, 2.4vw, .85rem); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; cursor: pointer; }
.nye-cell.on { background: var(--pc); border-color: var(--pc); color: #fff; }
.nye-num { width: 80px; flex: none; } .nye-lbl { font-weight: 700; }
.nye-q { text-align: center; padding: 24px 16px; } .nye-qtext { font-size: clamp(1.3rem, 5vw, 1.9rem); font-weight: 900; margin: 8px 0 14px; }
.nye-who { font-weight: 800; color: var(--accent); }
.nye-toast p { font-weight: 700; margin: 0 0 10px; }
#printSheet { display: none; }
@media print {
  body.print-nye header, body.print-nye .sections-nav, body.print-nye footer, body.print-nye #tools, body.print-nye .skip, body.print-nye .toast { display: none !important; }
  body.print-nye { background: #fff; color: #000; } body.print-nye #printSheet { display: block; }
  .nye-pcard { page-break-inside: avoid; break-inside: avoid; height: 48vh; margin-bottom: 2vh; } .nye-pcard h3 { text-align: center; margin: 0 0 6px; }
  .nye-pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; } .nye-pcell { border: 1.5px solid #000; padding: 3px; font-size: 8.5pt; line-height: 1.15; min-height: 17vh; display: flex; gap: 3px; align-items: flex-start; }
  .nye-pcell .box { flex: none; width: 9px; height: 9px; border: 1.2px solid #000; margin-top: 2px; } .nye-pfoot { font-size: 8pt; text-align: center; margin: 4px 0 0; }
}

/* RSVP helper (/rsvp/) */
.rsvp-msg h3 { font-size: 1rem; }
.rsvp-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 12px; font-weight: 600; }
.rsvp-msg .row { display: flex; flex-wrap: wrap; gap: 8px; }
.rsvp-tips { padding-left: 1.3em; display: grid; gap: 8px; font-weight: 600; }
body[data-page="rsvp"] { --accent: #1fae7f; --pc: #5fd0a5; --pc2: #ffd36e; }

/* Christmas charades */
body[data-page="charades"] { --accent: #d6454a; --pc: #ff7a7a; --pc2: #5fcf9a; }
.ch-box[hidden] { display: none; }
.ch-gap { margin-top: 16px; }
.ch-center { text-align: center; }
.ch-team { margin-top: 12px; }
.ch-team input { border-left: 8px solid var(--tc); }
.ch-chk { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; margin-top: 16px; cursor: pointer; }
.ch-chk input { width: 28px; height: 28px; flex: 0 0 28px; margin-top: 2px; accent-color: var(--accent); }
.ch-chk small { display: block; color: var(--muted); font-weight: 500; }
.ch-tag { display: inline-block; font-weight: 900; padding: 6px 14px; border-radius: 999px; background: var(--tc, var(--pc)); color: #1d1a22; max-width: 100%; overflow-wrap: anywhere; }
.ch-ready { font-size: 1.25rem; font-weight: 800; margin-top: 14px; text-wrap: balance; }
.ch-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ch-time { font-size: 2.4rem; font-weight: 900; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.ch-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.ch-bar i { display: block; height: 100%; width: 100%; background: var(--pc2); transition: width .3s linear; }
.ch-word { font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 900; line-height: 1.1; text-align: center; text-wrap: balance; overflow-wrap: anywhere; min-height: 40vh; display: grid; place-content: center; padding: 8px 0; }
.ch-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ch-acts .btn { min-height: 64px; }
.ch-got { background: var(--pc2); color: #1d1a22; }
.ch-play.warn { border-color: #e5383b; box-shadow: 0 0 0 4px rgba(229, 56, 59, .35); animation: ch-pulse 1s ease-in-out infinite; }
.ch-play.warn .ch-time { color: #d62828; }
.ch-play.warn .ch-bar i { background: #e5383b; }
@media (prefers-color-scheme: dark) { .ch-play.warn .ch-time { color: #ff7b7e; } }
@keyframes ch-pulse { 50% { box-shadow: 0 0 0 9px rgba(229, 56, 59, .15); } }
.ch-rt { font-size: 1.6rem; }
.ch-scores { display: grid; gap: 8px; margin-top: 14px; }
.ch-score { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border-left: 8px solid var(--tc); font-weight: 800; text-align: left; }
.ch-words { list-style: none; margin-top: 14px; text-align: left; display: grid; gap: 4px; }
.ch-words li { padding: 6px 2px; font-weight: 700; }
.ch-words li.no { color: var(--muted); text-decoration: line-through; }
.ch-words li b { display: inline-block; width: 1.4em; }
@media (prefers-reduced-motion: reduce) { .ch-play.warn { animation: none; } .ch-bar i { transition: none; } }

/* Christmas Jumper Day games */
body[data-page="christmas-jumper-day"] { --accent: #c23b4e; --pc: #ff8a8a; --pc2: #5fcf9a; }
.cj-game { margin-top: 14px; }
.cj-game h3 { font-size: 1.15rem; }
.cj-meta { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; }
.cj-meta b { color: var(--text, inherit); }

/* Dreidel game night */
body[data-page="galette-des-rois"] { --accent: #b8860b; --pc: #e9c46a; --pc2: #c0392b; }
body[data-page="dreidel"] { --accent: #2f6fd6; --pc: #7fb2ff; --pc2: #e9d27a; }
.dr-ctl { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; margin-top: 8px; }
.dr-chk { display: flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 700; }
.dr-chk input { width: 22px; height: 22px; }
.dr-stage { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 18px 0 6px; flex-wrap: wrap; }
.dr-die { width: 132px; height: 132px; border-radius: 28px; display: grid; place-items: center; font-size: 3.4rem; font-weight: 900; background: linear-gradient(135deg, var(--pc), var(--pc2)); color: #1d1a22; box-shadow: var(--shadow); user-select: none; }
.dr-die.spin { animation: dr-spin 1.1s ease-in-out; }
@keyframes dr-spin { from { transform: rotate(0) scale(1); } 50% { transform: rotate(540deg) scale(.9); } to { transform: rotate(1080deg) scale(1); } }
.dr-pot { font-weight: 800; color: var(--muted); font-size: 1.1rem; }
.dr-pot b { display: block; font-size: 2.4rem; color: var(--text, inherit); line-height: 1; }
.dr-turn { text-align: center; font-weight: 800; min-height: 1.4em; margin-bottom: 8px; }
.dr-card .row { justify-content: center; }
.dr-result { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-weight: 700; min-height: 3.2em; }
.dr-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.dr-p { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); }
.dr-p.on { border-color: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 35%, transparent); }
.dr-p.out { opacity: .55; }
.dr-p span { color: var(--muted); font-weight: 700; }
.dr-letters { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.dr-letters li { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.dr-g { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pc); color: #1d1a22; font-weight: 900; font-size: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .dr-die.spin { animation: none; } }
