/* (15.167) The games (play.js): the Games page, its cards, the quest map and chapters, Santa's mailroom, Elves vs
   Reindeer, the gauntlet, the boss, the moments on Friends, the year in review, the hot streak and the session tally.
   (15.168: the map as a night scene, the gingerbread hunt and the safes, the new mailroom, the rope scene, the home's
   signs, the day's briefing.)
   Built on the site's tokens (ui.css), dark and light; Christmas's gold, elf green and reindeer brown are its own. */
:root { --pl-gold: #f6c945; --pl-elf: #3fbf6e; --pl-deer: #c98a52; --pl-snow: #f2f8fc; --pl-night: #0a1626; }
[data-theme="light"] { --pl-gold: #b07d00; --pl-elf: #1f8f4a; --pl-deer: #8f5520; --pl-snow: #ffffff; }
.games-container { width: 100%; }
.pl-page { width: 100%; max-width: 1080px; margin: 0 auto; box-sizing: border-box; padding: 6px 20px 60px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 760px) { .pl-page { padding: 4px 14px 40px; } }
.games-container > .pl-tabs { max-width: 1080px; padding: 6px 20px 0; margin: 0 auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }   /* one bar above every game: same place, never wraps */
.games-container > .pl-tabs::-webkit-scrollbar { display: none; }
.games-container > .pl-tabs .db-tab { flex: none; }
.games-container > .pl-tabs > .db-tab:first-child { margin-left: auto; }   /* centred, and still scrolls from its start on a phone */
.games-container > .pl-tabs > .db-tab:last-child { margin-right: auto; }
.games-container > .pl-tabs + .pl-page { padding-top: 16px; }
@media (max-width: 760px) { .games-container > .pl-tabs { padding: 4px 14px 0; } .games-container > .pl-tabs + .pl-page { padding-top: 12px; } }
.pl-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pl-wait { color: var(--muted); padding: 30px 0; text-align: center; }
.pl-err { color: var(--red); }
.pl-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); font-size: 13px; line-height: 1.5; }
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pl-grid > .pl-card:only-child, .pl-grid > .pl-level, .pl-grid.xm > .pl-questcard, .pl-grid.xm > .pl-evr, .pl-grid.xm > .pl-passport, .pl-grid > .pl-yearcard { grid-column: 1 / -1; }
@media (max-width: 860px) { .pl-grid { grid-template-columns: minmax(0, 1fr); } }
.pl-qcol { display: flex; flex-direction: column; gap: 16px; }
.pl-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; }
.pl-card h2, .pl-head h2 { margin: 0; font-size: 16px; color: var(--strong); text-wrap: balance; }
.pl-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.pl-head > div { min-width: 0; }
.pl-sub { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
span.pl-sub { margin: 0; }
.pl-fine { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; display: flex; gap: 6px; align-items: baseline; }
.pl-h3 { margin: 4px 0 0; font-size: 13px; color: var(--strong); }
.pl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pl-sp { flex: 1; }
.pl-grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; color: var(--text); white-space: nowrap; align-self: flex-start; }
.pl-chip.live { border-color: var(--accent); color: var(--accent); }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.pl-bar { position: relative; display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; flex: 1; min-width: 50px; }
.pl-bar > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--c, var(--accent)); transition: width 0.9s cubic-bezier(.2,.8,.2,1); }
.pl-bar.sm { flex: 0 0 70px; height: 6px; }
.pl-bar.lg { height: 12px; }
.pl-bar.hp { height: 16px; border-radius: 8px; }
.pl-list { display: flex; flex-direction: column; gap: 6px; }
.pl-li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid transparent; min-width: 0; font-size: 13px; }
.pl-li.me { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.pl-av { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.pl-av.big { width: 52px; height: 52px; font-size: 22px; }
.pl-mv { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.pl-mv.up { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.pl-mv.down { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.pl-ico { display: inline-block; flex: none; vertical-align: -3px; }

/* the level chip (by names, the top bar, the You card) */
.pl-lv { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 6px; margin-left: 6px; font: 800 10.5px var(--font); font-variant-numeric: tabular-nums; color: #fff;
  background: color-mix(in srgb, var(--lv) 78%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lv) 60%, #fff); vertical-align: 1px; flex: none; }
.pl-lv.big { min-width: 58px; height: 58px; border-radius: 16px; font-size: 24px; margin: 0; }
.tb-games .tb-lv { display: inline-grid; place-items: center; min-width: 20px; height: 17px; padding: 0 4px; margin-left: 4px; border-radius: 5px; font-size: 10.5px; color: #fff; background: color-mix(in srgb, var(--lv, var(--accent)) 78%, #000); }
.tb-games .tb-lv[hidden] { display: none; }

/* You */
.pl-lvl-top { display: flex; align-items: center; gap: 14px; }
.pl-lvl-title { font-size: 22px; font-weight: 800; color: var(--strong); }
.pl-lvl-bar { display: flex; flex-direction: column; gap: 6px; }
.pl-lvl-n { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pl-qlist { display: flex; flex-direction: column; gap: 8px; }
.pl-quest { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.pl-q-mid { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pl-bar.q { flex: none; width: 100%; height: 6px; min-width: 0; }
.pl-quest .pl-q-go { justify-self: end; }
.pl-quest.done { background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.pl-q-ic { color: var(--accent); display: inline-flex; } .pl-quest.done .pl-q-ic { color: var(--green); }
.pl-q-t { min-width: 0; color: var(--strong); line-height: 1.35; }
.pl-q-n { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.pl-quest.done .pl-q-n { color: var(--green); font-weight: 600; }
/* Santa's Quest: the route, the lost things, the chapter list */
.pl-lost { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 640px) { .pl-lost { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pl-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 9px; border: 1px dashed var(--line-strong); font-size: 11px; text-align: center; color: var(--muted); min-width: 0; }
.pl-slot.got { border-style: solid; border-color: color-mix(in srgb, var(--pl-gold) 55%, var(--line)); background: color-mix(in srgb, var(--pl-gold) 9%, var(--surface)); color: var(--text); }
.pl-slot-ic { height: 22px; display: grid; place-items: center; color: var(--pl-gold); font-weight: 800; font-size: 15px; }
.pl-chlist { display: flex; flex-direction: column; gap: 5px; max-height: 560px; overflow-y: auto; }
.pl-chapter { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--surface); color: var(--text); font: 13px var(--font); text-align: left; cursor: pointer; }
.pl-chapter:hover:not(:disabled) { border-color: var(--accent); }
.pl-chapter.done { background: color-mix(in srgb, var(--pl-gold) 7%, var(--surface)); }
.pl-chapter.shut { opacity: 0.6; cursor: default; }
.pl-ch-n { min-width: 46px; color: var(--muted); font-size: 12px; }
.pl-ch-item { color: var(--muted); display: inline-flex; } .pl-ch-item.got { color: var(--pl-gold); }
.pl-ch-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 12px; white-space: nowrap; }
.pl-crumbs { display: flex; }
.pl-chpage { max-width: 760px; }
.pl-chcard { padding: 26px 28px; gap: 14px; border-top: 3px solid var(--hue, var(--accent)); }
@media (max-width: 640px) { .pl-chcard { padding: 18px 16px; } }
.pl-chtitle { margin: 0; font-size: 24px !important; color: var(--strong); }
.pl-story { margin: 0; font-style: italic; line-height: 1.65; color: var(--text); font-size: 14px; }
.pl-read { line-height: 1.75; font-size: 14.5px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); color: var(--text); }
.pl-read b { color: var(--pl-gold); }
.pl-itemhint { color: var(--pl-gold); align-items: center; }
.pl-chfoot { padding-top: 4px; }
.pl-stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .pl-stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; padding: 8px 4px; border-radius: 10px; border: 1.5px dashed var(--line); background: none; color: var(--muted); font: 11px var(--font); text-align: center; transform: rotate(var(--r)); cursor: pointer; min-width: 0; overflow-wrap: anywhere; transition: transform 0.15s; }
.pl-stamp b { font-size: 12.5px; color: var(--muted); }
.pl-stamp:hover { transform: rotate(0deg) scale(1.04); }
.pl-stamp.got { border: 3px double var(--ink, var(--accent)); color: var(--ink, var(--accent)); background: color-mix(in srgb, var(--ink, var(--accent)) 9%, var(--surface)); }
.pl-stamp.got b { color: var(--ink, var(--accent)); }
/* Elves vs Reindeer */
.pl-rope-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pl-rope-side { display: inline-flex; align-items: center; gap: 6px; } .pl-rope-side .num { color: var(--strong); font-weight: 700; }
.pl-rope { position: relative; height: 16px; border-radius: 99px; background: var(--pl-deer); }
.pl-rope-e { position: absolute; inset: 0 auto 0 0; border-radius: 99px 0 0 99px; background: var(--pl-elf); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.pl-knot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-sizing: border-box; transition: left 1.2s cubic-bezier(.2,.8,.2,1); }
.pl-fronts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .pl-fronts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-front { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 10px; background: var(--surface-2); min-width: 0; font-size: 12.5px; }
.pl-front.now { box-shadow: inset 0 0 0 1px var(--accent); }
.pl-flag { display: inline-flex; } .pl-flag.elves { color: var(--pl-elf); } .pl-flag.reindeer { color: var(--pl-deer); }
.pl-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.pl-banner.elves { background: color-mix(in srgb, var(--pl-elf) 16%, var(--surface)); }
.pl-banner.reindeer { background: color-mix(in srgb, var(--pl-deer) 18%, var(--surface)); }
.pl-bigh { font-size: 17px; font-weight: 800; color: var(--strong); }
.pl-evr-homecard { padding: 16px 18px; width: 100%; max-width: 1000px; box-sizing: border-box; }
.pl-evr-home { display: flex; flex-direction: column; gap: 10px; }
.pl-evr-home h2 { margin: 0; font-size: 15px; }

/* the gauntlet */
.pl-rungs { display: flex; flex-direction: column; gap: 6px; }
.pl-rung { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); min-width: 0; }
.pl-rung .pl-grow { display: flex; flex-direction: column; }
.pl-rung.past { opacity: 0.75; }
.pl-rung.me { box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.pl-rung.boss { background: color-mix(in srgb, var(--pl-gold) 9%, var(--surface)); }
.pl-gpanel { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.pl-gs { font-size: 20px; color: var(--strong); }

/* the boss */
.pl-boss-top { display: flex; align-items: center; gap: 14px; }

/* events */
.pl-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pl-month { display: flex; flex-direction: column; gap: 5px; padding: 12px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.pl-month.live { box-shadow: inset 3px 0 0 var(--green); }
.pl-month.now { box-shadow: inset 0 0 0 1px var(--accent); }
.pl-month .btn { align-self: flex-start; }

/* the year in review: the Games card that opens it */
.pl-card.pl-yearcard { position: relative; overflow: hidden; padding: 0; gap: 0; color: #fff; border-color: transparent; background: radial-gradient(120% 160% at 0% 0%, rgba(92, 225, 255, 0.18) 0%, rgba(92, 225, 255, 0) 45%), linear-gradient(112deg, #0d0a2e 0%, #33125e 40%, #9b2167 76%, #f07a3a 100%); box-shadow: 0 12px 34px rgba(60, 14, 100, 0.35); }
.pl-year-sky { position: absolute; inset: 0; pointer-events: none; }
.pl-year-sky i { position: absolute; width: 8px; height: 3px; border-radius: 1px; background: var(--c); transform: rotate(var(--r)); opacity: 0.8; animation: pl-year-tw 3.2s var(--d) ease-in-out infinite; }
@keyframes pl-year-tw { 50% { opacity: 0.2; } }
.pl-year-hero { position: relative; display: flex; align-items: center; gap: 18px 30px; flex-wrap: wrap; padding: 28px 30px; }
.pl-year-big { font-size: clamp(64px, 9vw, 104px); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; background: linear-gradient(180deg, #fff6c9 5%, #ffd23f 45%, #ff7ad9 95%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 22px rgba(255, 120, 200, 0.4)); }
.pl-year-txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pl-year-k { font-size: 12.5px; font-weight: 700; color: #ffd23f; }
.pl-card.pl-yearcard h2 { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.15; color: #fff; }
.pl-year-txt p { margin: 0; max-width: 52ch; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.pl-card.pl-yearcard .pl-year-go { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border: 0; border-radius: 999px; background: #fff; color: #2a0f55; font-weight: 800; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.pl-card.pl-yearcard .pl-year-go:hover { background: #ffe98a; color: #2a0f55; }

/* the year in review: the story */
.py-ovl { position: fixed; inset: 0; z-index: 10050; overflow: hidden; background: #05060f; color: #fff; font-family: var(--font); -webkit-font-smoothing: antialiased; }
.py-bars-top { position: absolute; z-index: 6; top: max(12px, env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); right: calc(max(16px, env(safe-area-inset-right, 0px)) + 46px); display: flex; gap: 5px; }
.py-bars-top i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.py-bars-top i b { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; }
.py-bars-top i.done b, .py-bars-top i.held b { width: 100%; }
.py-bars-top i.now b { animation: py-fill 6s linear forwards; }
.py-bars-top i.now.held b { animation: none; }
@keyframes py-fill { to { width: 100%; } }
.py-brandtop { position: absolute; z-index: 6; top: calc(max(12px, env(safe-area-inset-top, 0px)) + 15px); left: max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); pointer-events: none; }
.py-brandtop span { font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.py-x { position: absolute; z-index: 7; top: max(2px, calc(env(safe-area-inset-top, 0px) - 6px)); right: max(8px, env(safe-area-inset-right, 0px)); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.3); color: #fff; cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.py-x:hover { background: rgba(0, 0, 0, 0.5); }
.py-nav { position: absolute; z-index: 3; top: 64px; bottom: 0; width: 30%; padding: 0; border: 0; background: none; cursor: pointer; }
.py-nav.prev { left: 0; } .py-nav.next { right: 0; width: 70%; }
.py-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: calc(max(12px, env(safe-area-inset-top, 0px)) + 54px) max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); box-sizing: border-box; overflow: hidden; }
.py-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; animation: py-fade 0.8s both; }
@keyframes py-fade { from { opacity: 0; } }
.py-card { position: relative; z-index: 4; width: 100%; max-width: 780px; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2.1vh, 20px); text-align: center; pointer-events: none; }
.py-card button, .py-card .py-share { pointer-events: auto; }
/* the type: a small title above, a big number or name, a line under it */
.py-k { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; font-size: clamp(13px, 1.5vw, 16px); font-weight: 700; line-height: 1.3; color: var(--k, #fff); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-wrap: balance; animation: py-in 0.6s 0.05s both; }
.py-huge { --n: 4; font-size: min(clamp(88px, 18vw, 200px), calc((100vw - 40px) / (var(--n) * 0.6)), 25vh); font-weight: 800; line-height: 0.92; letter-spacing: -0.045em; white-space: nowrap; animation: py-pop 0.9s 0.12s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
.py-big { font-size: clamp(44px, 8vw, 100px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; animation: py-pop 0.9s 0.12s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
.py-t { max-width: 32ch; font-size: clamp(17px, 2.2vw, 24px); font-weight: 500; line-height: 1.4; color: rgba(255, 255, 255, 0.94); text-wrap: balance; animation: py-in 0.7s 0.4s both; }
.py-s { max-width: 40ch; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.45; color: rgba(255, 255, 255, 0.74); text-wrap: balance; animation: py-in 0.7s 0.6s both; }
@keyframes py-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes py-pop { from { opacity: 0; transform: translateY(20px) scale(0.72); } }

/* 0. the opening: fireworks over a city at night */
.py-stage.y0 { background: linear-gradient(180deg, #04041a 0%, #100a3a 38%, #35125e 68%, #8e2766 88%, #d9506f 100%); }
.py-star { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.85); animation: py-tw 2.8s var(--d) ease-in-out infinite; }
@keyframes py-tw { 50% { opacity: 0.25; transform: scale(0.6); } }
.py-fw { position: absolute; width: var(--z); height: var(--z); overflow: visible; transform: translate(-50%, -50%); stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--c)); animation: py-fw 3s var(--d) cubic-bezier(0.15, 0.7, 0.3, 1) infinite both; }
.py-fw .a { stroke: var(--c); fill: var(--c); } .py-fw .b { stroke: var(--c2); fill: var(--c2); }
@keyframes py-fw { 0% { transform: translate(-50%, -50%) scale(0.1); opacity: 0; } 8% { opacity: 1; } 55% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0; } }
.py-conf { position: absolute; top: calc(var(--y) * 1vh); width: var(--w); height: calc(var(--w) * 0.42); border-radius: 1px; background: var(--c); rotate: var(--r); opacity: 0.9; animation: py-confall var(--t) var(--d) linear infinite; }
@keyframes py-confall { from { transform: translate(0, calc(-1vh * var(--y) - 12vh)) rotate(0deg); } to { transform: translate(var(--dx), calc(112vh - 1vh * var(--y))) rotate(900deg); } }
.py-city { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(90px, 17vh, 170px); fill: #0a0520; }
.py-city .win { fill: #ffd98a; opacity: 0.75; }
.y0 .py-huge { background: linear-gradient(180deg, #fff7d1 8%, #ffd23f 46%, #ff6fc4 92%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 34px rgba(255, 110, 200, 0.5)); }
.y0 .py-k { --k: #ffe58a; }

/* 1. tossups heard: cards raining down into piles */
.py-stage.y1 { background: radial-gradient(120% 80% at 50% 0%, #3466ff 0%, #1638d0 34%, #0b1c7e 70%, #050c3c 100%); }
.py-tu { --cw: clamp(66px, 8.6vw, 120px); position: absolute; width: var(--cw); height: calc(var(--cw) / 1.45); box-sizing: border-box; padding: calc(var(--cw) * 0.1) calc(var(--cw) * 0.11); border-radius: calc(var(--cw) * 0.08); background: #f5f7ff; box-shadow: 0 8px 22px rgba(0, 8, 60, 0.45); display: flex; flex-direction: column; gap: calc(var(--cw) * 0.065); rotate: var(--r); }
.py-tu b { display: block; height: calc(var(--cw) * 0.1); width: 44%; margin-bottom: calc(var(--cw) * 0.02); border-radius: 3px; background: var(--c); }
.py-tu span { display: block; height: calc(var(--cw) * 0.055); border-radius: 3px; background: #cdd6ee; }
.py-tu span:last-child { width: 62%; }
.py-tu.rain { --cw: clamp(44px, 5.4vw, 80px); top: calc(var(--y) * 1vh); opacity: 0.24; animation: py-rain var(--t) var(--d) linear infinite; }
@keyframes py-rain { from { transform: translateY(calc(-1vh * var(--y) - 20vh)) rotate(0deg); } to { transform: translateY(calc(115vh - 1vh * var(--y))) rotate(var(--spin)); } }
.py-tu.pile { --cw: clamp(74px, 10vw, 140px); bottom: calc(var(--b) * 1px + max(10px, 2.4vh)); margin-left: calc(var(--cw) / -2 + var(--jx)); animation: py-land 0.75s var(--d) cubic-bezier(0.3, 0.7, 0.4, 1.12) both; }
@keyframes py-land { from { transform: translateY(-110vh); } }
.y1 .py-huge { text-shadow: 0 10px 40px rgba(0, 20, 120, 0.6); }
.y1 .py-k { --k: #cfe0ff; }

/* 2. powers: gold lightning and sparks */
.py-stage.y2 { background: radial-gradient(70% 60% at 50% 45%, #6e4300 0%, #3a1d00 46%, #120700 100%); }
.py-bolt { position: absolute; left: 50%; top: 50%; height: min(80vh, 700px); aspect-ratio: 100 / 160; overflow: visible; fill: #ffc83d; stroke: #fff3b0; stroke-width: 1.2; stroke-linejoin: round; transform: translate(-50%, -50%) rotate(var(--rot, 9deg)); opacity: var(--o, 0.24); filter: drop-shadow(0 0 30px #ffaa00); animation: py-bolt 4s 0.15s ease-out infinite both; }
.py-bolt.sm { height: min(24vh, 210px, 30vw); }
@keyframes py-bolt { 0% { opacity: 0; } 4% { opacity: 0.95; } 8% { opacity: 0.12; } 12% { opacity: 0.8; } 30%, 100% { opacity: var(--o, 0.24); } }
.py-flash { position: absolute; inset: 0; background: #fff6cf; opacity: 0; animation: py-flash 0.9s 0.1s ease-out both; }
@keyframes py-flash { 0% { opacity: 0; } 12% { opacity: 0.5; } 100% { opacity: 0; } }
.py-spark { position: absolute; left: 50%; top: 50%; width: var(--l); height: 3px; margin-top: -1.5px; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 210, 63, 0), #ffe27a); transform-origin: 0 50%; transform: rotate(var(--a)) translateX(var(--r)); animation: py-spark 2.2s var(--d) ease-out infinite both; }
@keyframes py-spark { 0% { transform: rotate(var(--a)) translateX(calc(var(--r) * 0.4)); opacity: 0; } 15% { opacity: 1; } 100% { transform: rotate(var(--a)) translateX(calc(var(--r) * 1.6)); opacity: 0; } }
.y2 .py-huge { background: linear-gradient(180deg, #fffbe2 5%, #ffd23f 50%, #ff9800 95%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 180, 30, 0.55)); }
.y2 .py-k { --k: #ffe28a; }

/* 3. the best category: its colour, and bars that grow */
.py-stage.y3 { --cc: #bc8cff; background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--cc) 50%, #0b0716) 0%, color-mix(in srgb, var(--cc) 16%, #0b0716) 48%, #07050e 100%); }
.py-blob { position: absolute; width: var(--z); height: var(--z); margin: calc(var(--z) / -2) 0 0 calc(var(--z) / -2); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 40%, transparent), transparent); animation: py-drift 14s var(--d) ease-in-out infinite alternate; }
@keyframes py-drift { to { transform: translate(6vw, 4vh) scale(1.1); } }
.py-stripes { position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.035) 0 14px, transparent 14px 40px); -webkit-mask: linear-gradient(180deg, #000, transparent 70%); mask: linear-gradient(180deg, #000, transparent 70%); }
.y3 .py-big { color: var(--cc); text-shadow: 0 0 46px color-mix(in srgb, var(--cc) 55%, transparent); }
.y3 .py-k { --k: color-mix(in srgb, var(--cc) 40%, #fff); }
.py-cbars { width: min(640px, 100%); display: flex; flex-direction: column; gap: clamp(8px, 1.3vh, 12px); margin-top: 4px; }
.py-crow { display: grid; grid-template-columns: minmax(0, 1fr) 3.4em; align-items: center; gap: 12px; animation: py-in 0.6s var(--d) both; }
.py-ctrack { position: relative; display: block; height: clamp(34px, 5vh, 46px); border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.08); text-align: left; }
.py-crow.top .py-ctrack { height: clamp(42px, 6.4vh, 58px); }
.py-ctrack i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 50%, #000) 0%, var(--c) 100%); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 45%, transparent); animation: py-grow 1.1s calc(var(--d) + 0.15s) cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes py-grow { from { width: 0; } }
.py-ctrack em { position: relative; display: flex; align-items: center; height: 100%; padding: 0 14px; font-style: normal; font-size: clamp(14px, 1.7vw, 18px); font-weight: 700; color: #fff; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.py-crow.top .py-ctrack em { font-size: clamp(16px, 2vw, 21px); }
.py-crow > b { text-align: right; font-size: clamp(18px, 2.4vw, 28px); font-weight: 800; color: var(--c); }

/* 4. the answer you powered most: a spotlight on a stage */
.py-stage.y4 { --cw: clamp(40px, 13vw, 250px); background: radial-gradient(60% 70% at 50% 42%, #3d0e1a 0%, #1b050a 60%, #0b0204 100%); }
.py-curtain { position: absolute; top: 0; height: 100%; width: var(--cw); filter: drop-shadow(0 0 24px rgba(0, 0, 0, 0.6)); }
.py-curtain.l { left: 0; transform-origin: left center; animation: py-cur 1.3s cubic-bezier(0.5, 0, 0.2, 1) both; }
.py-curtain.r { right: 0; transform-origin: right center; animation: py-cur 1.3s cubic-bezier(0.5, 0, 0.2, 1) both; }
@keyframes py-cur { from { transform: scaleX(3.4); } }
.py-valance { position: absolute; top: 0; left: 0; width: 100%; height: clamp(68px, 10vh, 100px); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
.py-beam { position: absolute; left: 50%; top: 0; width: min(130vw, 1150px); height: 100%; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255, 238, 200, 0.5) 0%, rgba(255, 238, 200, 0.16) 70%, rgba(255, 238, 200, 0) 90%); clip-path: polygon(44% 0, 56% 0, 80% 90%, 20% 90%); filter: blur(14px); animation: py-light 1s 0.7s both; }
@keyframes py-light { from { opacity: 0; } }
.py-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 18vh; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0 2px, transparent 2px 80px), linear-gradient(180deg, #4a240e 0%, #1c0b03 100%); box-shadow: inset 0 3px 0 rgba(255, 200, 140, 0.28); }
.py-pool { position: absolute; left: 50%; bottom: 7vh; width: min(84vw, 760px); height: 13vh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 236, 190, 0.6), rgba(255, 236, 190, 0)); animation: py-light 1s 0.9s both; }
.y4 .py-card { max-width: calc(100vw - 2 * var(--cw) - 24px); }
.y4 .py-k { --k: #ffe7b8; padding: 7px 14px; background: rgba(0, 0, 0, 0.3); }
.py-ans { --lw: 8; --tl: 12; font-size: min(clamp(40px, 8.5vw, 112px), calc((100vw - 2 * var(--cw) - 24px) / (var(--lw) * 0.62)), calc((100vw - 2 * var(--cw) - 24px) * 3 / (var(--tl) * 0.62))); color: #fff8e4; text-shadow: 0 0 40px rgba(255, 220, 150, 0.6), 0 4px 0 rgba(0, 0, 0, 0.25); overflow-wrap: normal; }

/* 5. the earliest buzz: the words up to it, and a buzzer */
.py-stage.y5 { background: repeating-radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 64px), linear-gradient(165deg, #00707a 0%, #01485a 50%, #01222e 100%); }
.y5 .py-huge small { margin-right: 0.12em; font-size: 0.42em; font-weight: 700; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.7); }
.y5 .py-huge { color: #ffe066; text-shadow: 0 0 40px rgba(255, 210, 63, 0.45); }
.y5 .py-k { --k: #b8fbff; }
.py-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 8px; max-width: 640px; margin-top: 26px; }
.py-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: clamp(30px, 4.4vh, 38px); min-width: calc(var(--w) * 1ch + 24px); padding: 0 12px; border-radius: 999px; font-size: clamp(13px, 1.6vw, 16px); font-weight: 700; background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.6); animation: py-in 0.4s var(--d) both; }
.py-chip.next { background: transparent; border: 1.5px dashed rgba(255, 255, 255, 0.28); }
.py-chip.gap { background: none; min-width: 0; padding: 0 2px; }
.py-chip.read, .py-chip.lit { min-width: clamp(34px, 4.4vh, 40px); }
.py-chip.lit { background: #ffd23f; color: #3a2600; box-shadow: 0 0 0 5px rgba(255, 210, 63, 0.25), 0 0 34px rgba(255, 210, 63, 0.75); transform: scale(1.14); margin: 0 6px; animation: py-lit 0.6s var(--d) cubic-bezier(0.2, 0.9, 0.3, 1.5) both; }
@keyframes py-lit { from { opacity: 0; transform: scale(0.4); } }
.py-chip.lit em { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: 7px; font-size: 12px; font-style: normal; font-weight: 800; white-space: nowrap; color: #3a2600; background: #ffd23f; }
.py-chip.lit em::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: #ffd23f; }
.py-buzzer { position: absolute; left: 50%; bottom: max(18px, 3.5vh); width: clamp(120px, 17vh, 180px); transform: translateX(-50%); }
.py-buzzer svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); }
.py-btop { animation: py-press 3s 1.1s ease-in-out infinite both; }
@keyframes py-press { 0%, 14%, 100% { transform: none; } 4%, 9% { transform: translateY(9px); } }
.py-ring { position: absolute; left: 50%; top: 44%; width: 100%; aspect-ratio: 2.3; border: 2px solid rgba(255, 210, 63, 0.6); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); animation: py-ring 3s calc(1.15s + var(--k) * 0.25s) ease-out infinite; }
@keyframes py-ring { 0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; } 70%, 100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; } }

/* 6. the longest streak: a flame, and the days lighting up */
.py-stage.y6 { background: radial-gradient(55% 45% at 50% 34%, rgba(255, 122, 26, 0.42) 0%, rgba(255, 122, 26, 0) 70%), linear-gradient(180deg, #1c0400 0%, #4d0e00 55%, #922800 100%); }
.py-ember { position: absolute; bottom: calc(var(--y) * 1vh); width: var(--s); height: var(--s); border-radius: 50%; background: #ffb347; box-shadow: 0 0 8px #ff7a1a; animation: py-ember var(--t) var(--d) linear infinite; }
@keyframes py-ember { from { transform: translate(0, calc(1vh * var(--y) + 4vh)); opacity: 0; } 15% { opacity: 1; } to { transform: translate(var(--dx), calc(-100vh + 1vh * var(--y))); opacity: 0; } }
.py-flame { width: clamp(84px, 15vh, 150px); aspect-ratio: 100 / 130; margin-bottom: -6px; filter: drop-shadow(0 0 28px rgba(255, 120, 0, 0.85)); animation: py-pop 0.9s 0.05s both; }
.py-flame svg { display: block; width: 100%; height: 100%; overflow: visible; }
.py-fl { transform-box: fill-box; transform-origin: 50% 100%; animation: py-flick 1.3s ease-in-out infinite alternate; }
.py-fl.o { fill: #ff4d1a; } .py-fl.m { fill: #ff9a1f; animation-duration: 1s; animation-delay: -0.3s; } .py-fl.i { fill: #ffe066; animation-duration: 0.8s; animation-delay: -0.5s; }
@keyframes py-flick { 0% { transform: scale(1, 1) skewX(0deg); } 50% { transform: scale(0.96, 1.05) skewX(-2deg); } 100% { transform: scale(1.03, 0.97) skewX(2deg); } }
.y6 .py-huge { background: linear-gradient(180deg, #ffffff 30%, #ffc46b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(255, 110, 0, 0.5)); }
.y6 .py-k { --k: #ffd0a8; }
.py-days { display: grid; grid-template-columns: repeat(7, clamp(36px, 5.4vw, 54px)); justify-content: center; gap: clamp(6px, 1vw, 10px); }
.py-day { position: relative; display: grid; place-items: center; aspect-ratio: 0.9; box-sizing: border-box; padding-top: 22%; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.py-day::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: rgba(255, 255, 255, 0.12); }
.py-day::after { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #d93a12 0 22%, #ffe066 22%, #ff9a1f 100%); }
.py-day b { position: relative; z-index: 1; font-size: clamp(12px, 1.6vw, 17px); font-weight: 800; color: rgba(255, 255, 255, 0.45); }
.py-day.on { border-color: transparent; box-shadow: 0 0 22px rgba(255, 130, 20, 0.55); animation: py-in 0.45s var(--d) both; }
.py-day.on::after { opacity: 1; animation: py-on 0.45s var(--d) both; }
.py-day.on b { color: #4a1500; animation: py-onb 0.45s var(--d) both; }
@keyframes py-on { from { opacity: 0; } }
@keyframes py-onb { from { color: rgba(255, 255, 255, 0.45); } }

/* 7. when you play: the day as an arc, sun at noon and moons at midnight */
.py-stage.y7 { background: linear-gradient(180deg, #030822 0%, #0c174e 55%, #26196a 100%); }
.py-stage.y7.morn { background: linear-gradient(180deg, #16306e 0%, #6c4f9e 45%, #ea8a7e 80%, #ffc27a 100%); }
.py-stage.y7.noon { background: linear-gradient(180deg, #0a4fae 0%, #1f7fd6 55%, #5fb0ea 82%, #f6c27b 100%); }
.py-stage.y7.eve { background: linear-gradient(180deg, #120c38 0%, #4a1f6b 45%, #ad3d6e 78%, #ff8a4c 100%); }
.py-arc { position: relative; width: min(100%, 600px, 46vh * 1.85); margin-bottom: -6px; animation: py-in 0.7s 0.1s both; }
.py-arc svg { display: block; width: 100%; height: auto; overflow: visible; }
.py-arc line { stroke: var(--c); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 1; animation: py-draw 0.8s calc(0.25s + var(--d)) cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.py-arc line.pk { stroke: #fff; stroke-width: 13; filter: drop-shadow(0 0 8px #fff); }
@keyframes py-draw { from { stroke-dashoffset: 1; } }
.py-arc .py-hz { stroke: rgba(255, 255, 255, 0.3); stroke-width: 2; stroke-dasharray: none; animation: none; }
.py-arc .py-trk { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 2; stroke-dasharray: 2 6; }
.py-arc text { fill: rgba(255, 255, 255, 0.75); font-family: var(--font); font-size: 16px; font-weight: 700; text-anchor: middle; }
@media (max-width: 600px) { .py-arc text { font-size: 22px; } }
.py-arc .py-sun circle { fill: #ffd23f; } .py-arc .py-sun line { stroke: #ffd23f; stroke-width: 5; stroke-dasharray: none; animation: none; }
.py-arc .py-sun { filter: drop-shadow(0 0 10px rgba(255, 210, 63, 0.8)); }
.py-arc .py-moon { fill: #e4e9ff; filter: drop-shadow(0 0 8px rgba(200, 215, 255, 0.7)); }
.y7 .py-huge { text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35); }
.y7 .py-k { --k: #e1e6ff; }

/* 8. the level: a medal in a burst of rays */
.py-stage.y8 { --tc: #ffd23f; background: radial-gradient(55% 50% at 50% 42%, color-mix(in srgb, var(--tc) 42%, #1a0733) 0%, #170630 52%, #07020e 100%); }
.py-rays { position: absolute; left: 50%; top: 44%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.1) 0deg 6deg, rgba(255, 255, 255, 0) 6deg 15deg); -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.55) 16%, transparent 42%); mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.55) 16%, transparent 42%); animation: py-spin 70s linear infinite; }
@keyframes py-spin { to { transform: rotate(360deg); } }
.py-twk { position: absolute; width: var(--z); height: var(--z); fill: #fff6c2; filter: drop-shadow(0 0 6px rgba(255, 240, 180, 0.9)); animation: py-tw 2.4s var(--d) ease-in-out infinite; }
.py-medal { position: relative; width: min(66vw, 36vh, 310px); container-type: inline-size; animation: py-medal 1.1s 0.1s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
@keyframes py-medal { 0% { opacity: 0; transform: translateY(-60px) scale(0.6) rotate(-14deg); } 100% { opacity: 1; transform: none; } }
.py-medal svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5)); }
.py-shine { position: absolute; left: 16.5%; top: 11.8%; width: 67%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.py-shine::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)); transform: skewX(-20deg) translateX(-100%); animation: py-shine 4s 1.2s ease-in-out infinite; }
@keyframes py-shine { 0% { transform: skewX(-20deg) translateX(0); } 30%, 100% { transform: skewX(-20deg) translateX(560%); } }
.py-medal-n { position: absolute; left: 0; right: 0; top: 39.2%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; line-height: 1; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28), 0 0 20px rgba(0, 0, 0, 0.25); }
.py-medal-n small { margin-bottom: 1.5cqw; font-size: 7.5cqw; font-weight: 800; }
.py-medal-n b { font-size: min(32cqw, calc(54cqw / (var(--n) * 0.6))); font-weight: 800; letter-spacing: -0.05em; }
.y8 .py-k { --k: color-mix(in srgb, var(--tc) 40%, #fff); }

/* 9. the poster to share (savePicture draws it again on a canvas: keep its background in step) */
.py-stage.y9 { background: radial-gradient(80% 60% at 50% 30%, #2a1060 0%, #0e0626 60%, #06030f 100%); }
.y9 .py-card { gap: 14px; }
.y9 .py-conf { opacity: 0.45; }
.py-share { position: relative; container-type: inline-size; width: min(calc(100vw - 32px), calc((100dvh - 200px) * 0.8), 540px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; text-align: left; color: #fff; background: radial-gradient(62% 49.6% at 88% 6%, rgba(255, 210, 63, 0.38), rgba(255, 210, 63, 0)), radial-gradient(70% 56% at 0% 100%, rgba(80, 200, 255, 0.28), rgba(80, 200, 255, 0)), linear-gradient(155deg, #1d0d5c 0%, #5f1a8c 42%, #c42d6c 78%, #ff8f4a 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14); animation: py-pop 0.9s 0.1s cubic-bezier(0.2, 0.9, 0.25, 1.1) both; }
.py-sin { position: absolute; inset: 0; box-sizing: border-box; padding: 7cqw 7.8cqw; display: flex; flex-direction: column; }
.py-sin > * { position: relative; }
.py-share .py-sd { position: absolute; display: block; border-radius: 1px; rotate: var(--r); opacity: 0.95; }
.py-share .py-sd.dot { border-radius: 50%; }
.py-share .py-sghost { position: absolute; right: -3cqw; top: 30cqw; font-size: 28cqw; font-weight: 800; line-height: 1; letter-spacing: -0.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 0.3cqw rgba(255, 255, 255, 0.2); }
.py-stop { display: flex; justify-content: space-between; align-items: center; font-size: 3.3cqw; font-weight: 800; line-height: 1.2; }
.py-sbrand { color: #fff; } .py-syr { color: #ffd23f; }
.py-stitle { margin-top: 3cqw; font-size: 7.4cqw; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; white-space: nowrap; }
.py-sname { margin-top: 1.2cqw; font-size: 4.2cqw; font-weight: 600; line-height: 1.2; white-space: nowrap; color: rgba(255, 255, 255, 0.82); }
.py-shero { margin-top: 2.6cqw; }
.py-snum { font-size: 15cqw; font-weight: 800; line-height: 1; letter-spacing: -0.045em; white-space: nowrap; color: #ffe27a; text-shadow: 0 0 5cqw rgba(255, 190, 60, 0.5); }
.py-slab { margin-top: 0.8cqw; font-size: 3.6cqw; font-weight: 600; line-height: 1.2; color: rgba(255, 255, 255, 0.85); }
.py-sgrid { margin-top: 3cqw; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4cqw; }
.py-stile { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 2.2cqw 3.2cqw 2.4cqw; border-radius: 3cqw; background: rgba(18, 6, 48, 0.36); border: 0.2cqw solid rgba(255, 255, 255, 0.18); }
.py-stile.wide { margin-top: 2.2cqw; }
.py-stile.wide .py-stv { white-space: normal; overflow-wrap: normal; }
.py-sbar { display: block; width: 5cqw; height: 0.8cqw; border-radius: 0.4cqw; }
.py-stl { margin-top: 1.3cqw; font-size: 2.8cqw; font-weight: 600; line-height: 1.2; white-space: nowrap; color: rgba(255, 255, 255, 0.78); }
.py-stv { align-self: stretch; margin-top: 0.6cqw; font-size: 5.6cqw; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; white-space: nowrap; }
.py-sfoot { position: absolute; left: 7.8cqw; right: 7.8cqw; bottom: 4.8cqw; display: flex; font-size: 2.8cqw; font-weight: 700; line-height: 1.2; color: rgba(255, 255, 255, 0.78); }
.py-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; animation: py-in 0.6s 0.5s both; }
.py-actions .btn { display: inline-flex; align-items: center; gap: 8px; width: auto; margin: 0; padding: 11px 20px; border-radius: 999px; font-weight: 800; }
.py-actions .py-save { border: 0; background: #fff; color: #2a0f55; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.py-actions .py-save:hover { background: #ffe98a; color: #2a0f55; }
.py-actions .py-again { border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.1); color: #fff; }
.py-actions .py-again:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* phones: the low fireworks go below the words, a word chip fewer */
@media (max-width: 600px) { .py-fw.lo { top: 80% !important; } .py-chip.n3 { display: none; } .py-chips { column-gap: 7px; } }

/* with reduced motion every picture is shown still, as it ends */
.py-ovl.rm *, .py-ovl.rm *::before, .py-ovl.rm *::after { animation: none !important; transition: none !important; }
.py-ovl.rm .py-bars-top i.now b { width: 100%; }
.py-ovl.rm .py-fw { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { .pl-year-sky i { animation: none; } }

/* the hot streak by the score */
.pl-fire { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font: 700 11.5px var(--font); color: var(--strong); background: color-mix(in srgb, #ff7a2f 18%, var(--surface)); border: 1px solid color-mix(in srgb, #ff7a2f 50%, var(--line)); white-space: nowrap; }
.pl-fire.lg { font-size: 12.5px; padding: 3px 10px; } .pl-fire.lg svg { width: 16px; height: 16px; }
.pl-fire.xl { font-size: 13.5px; padding: 4px 12px; background: color-mix(in srgb, #ff7a2f 30%, var(--surface)); } .pl-fire.xl svg { width: 18px; height: 18px; }
.pl-fire.pop { animation: pl-pop 0.5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pl-pop { 0% { transform: scale(0.6); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pl-fire.pop { animation: none; } }

/* the session tally */
.pl-tally { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 320px; margin: 4px auto 0; }
.pl-trow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; animation: pl-rowin 0.45s var(--d) both; }
.pl-trow b { color: var(--pl-gold); }
.pl-trow.tot { background: color-mix(in srgb, var(--pl-gold) 12%, var(--surface)); font-weight: 700; }
@keyframes pl-rowin { from { opacity: 0; transform: translateY(6px); } }
.pl-tbar { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 320px; margin: 10px auto 0; }
.pl-lvup .pl-lv.big { animation: pl-pop 0.7s cubic-bezier(.2,1.6,.4,1); }
@media (prefers-reduced-motion: reduce) { .pl-trow, .pl-lvup .pl-lv.big { animation: none; } }

/* the leaderboards' Rank by */
.lb-by { flex: none; }
.lb-by.off { visibility: hidden; }   /* an event's board: no Points / XP, its place kept */
.lb-bar .lb-by button { min-width: 0; }

/* ── (15.167) achievements, reworked for testers (html.games-on): larger icons on a soft tile, earned ones lit in
   their group's gold, the rarer the brighter; hidden ones a dashed mystery; the profile's showcase and level ── */
html.games-on .ach-group .qb-coll-body, html.games-on .ach-group > .achievements-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
html.games-on .achievement-card { position: relative; padding: 14px; gap: 14px; border-radius: 14px; background: var(--surface); overflow: hidden; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
html.games-on .achievement-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
html.games-on .achievement-card .achievement-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 13px; }
html.games-on .achievement-card .achievement-icon-graphic svg { width: 26px; height: 26px; }
html.games-on .achievement-card:not(.earned) .achievement-icon { filter: grayscale(1); opacity: 0.6; }
html.games-on .achievement-card.earned { border-color: color-mix(in srgb, var(--pl-gold) 45%, var(--line)); background: linear-gradient(155deg, color-mix(in srgb, var(--pl-gold) 10%, var(--surface)), var(--surface) 60%); }
html.games-on .achievement-card.earned .achievement-icon { background: color-mix(in srgb, var(--pl-gold) 18%, transparent); color: var(--pl-gold); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pl-gold) 40%, transparent); }
html.games-on .achievement-card.earned::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--pl-gold) 14%, transparent), transparent 45%); }
html.games-on .achievement-done { color: var(--pl-gold); }
html.games-on .achievement-bar { height: 6px; margin-top: 8px; }
html.games-on .achievement-bar-fill { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--pl-gold))); }
html.games-on .achievement-category { font-size: 14px; }
html.games-on .achievement-section-title { font-size: 12px; color: var(--strong); margin-top: 26px; }
.ach-rare { display: inline-flex; margin-top: 6px; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; color: var(--muted); background: var(--surface-2); }
.ach-rare.r-rare { color: #58a6ff; background: color-mix(in srgb, #58a6ff 14%, var(--surface)); }
.ach-rare.r-epic { color: #d2a8ff; background: color-mix(in srgb, #bc8cff 16%, var(--surface)); }
html.games-on .ach-group[data-coll="ach:hidden"] .achievement-card:not(.earned) { border-style: dashed; }
html.games-on .ach-group[data-coll="ach:hidden"] .achievement-card:not(.earned) .achievement-icon { filter: blur(3px) grayscale(1); }
.achd-rare { display: flex; align-items: center; gap: 6px; }
.pf-show { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pf-show-item { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--pl-gold) 45%, var(--line)); background: color-mix(in srgb, var(--pl-gold) 8%, var(--surface)); color: var(--strong); font: 600 12px var(--font); cursor: pointer; }
.pf-show-item .achievement-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--pl-gold) 20%, transparent); color: var(--pl-gold); font-size: 14px; }
.pf-show-item .achievement-icon-graphic svg { width: 15px; height: 15px; }
.pf-level { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; align-self: center; }
.pf-level .pl-lv.big { min-width: 46px; height: 46px; border-radius: 13px; font-size: 19px; }
.pf-level > span:not(.pl-lv) { display: flex; flex-direction: column; } .pf-level b { color: var(--strong); font-size: 14px; } .pf-level small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 640px) { .pf-level { margin-left: 0; } }

/* the site's cards stretch their buttons (.hcard .btn); the games' cards don't */
.pl-card .btn, .pl-evr-homecard .btn, .ml-page .btn { width: auto; margin-top: 0; }
.pl-chfoot .btn { width: auto; }
.pl-lvl-bar .pl-bar { flex: none; }
.pl-month .btn { white-space: normal; text-align: left; height: auto; min-height: 30px; max-width: 100%; }
.pl-stamps { padding: 4px; }


/* ── (15.168) ── */
/* Trials as a tab of Games: the top bar's Trials goes for testers */
html.games-on #tb-trials { display: none; }
.pl-trials .pf-page { padding: 0; max-width: none; }
.pl-quest.mp { background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); }
.pl-quest .btn { padding: 0 12px; min-height: 28px; }
.pl-h3 .qb-info, .pl-head h2 .qb-info { vertical-align: 2px; }

/* Santa's Quest: the map, a night scene in both themes (a game board, so its colours are its own) */
.pl-map { display: flex; flex-direction: column; gap: 10px; }
.mp-svg { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }
.mp-svg text { font-family: var(--font); }
.mp-star { fill: #fff; animation: mp-tw 3.4s ease-in-out var(--d) infinite; }
@keyframes mp-tw { 50% { opacity: 0.25; } }
.mp-hill { fill: #dfe9f3; opacity: 0.92; }
.mp-tree path { fill: #1f6f44; } .mp-tree rect { fill: #5a3a22; }
.mp-lab { fill: #dbe6f3; font-size: 13px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: #0b1a33; stroke-width: 3px; }
.mp-trail { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.mp-trail-dash { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 2.4; stroke-dasharray: 3 9; stroke-linecap: round; }
.mp-trail-done { fill: none; stroke: #f6c945; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(246, 201, 69, 0.7)); }
.mp-stop { cursor: pointer; outline: none; }
.mp-stop .mp-dot { stroke-width: 3; transition: transform 0.18s cubic-bezier(.2,1.4,.4,1); transform-box: fill-box; transform-origin: center; }
.mp-stop text { font-size: 15px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.mp-stop:hover .mp-dot, .mp-stop:focus-visible .mp-dot, .mp-stop.sel .mp-dot { transform: scale(1.14); }
.mp-stop.sel .mp-dot { stroke: #fff !important; }
.mp-stop.done .mp-dot { fill: #f6c945; stroke: #b98d12; } .mp-stop.done text { fill: #3a2a05; }
.mp-stop.here .mp-dot { fill: #e23d48; stroke: #ffd0d4; } .mp-stop.here text { fill: #fff; }
.mp-stop.open .mp-dot { fill: #f2f8fc; stroke: #9cc3ea; } .mp-stop.open text { fill: #13294b; }
.mp-stop.shut { cursor: pointer; } .mp-stop.shut .mp-dot { fill: #22385c; stroke: #3b5379; } .mp-stop.shut text { fill: #7f93b3; }
.mp-pulse { fill: none; stroke: #ff8a93; stroke-width: 3; animation: mp-pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mp-pulse { from { opacity: 0.9; transform: scale(0.75); } to { opacity: 0; transform: scale(1.35); } }
.mp-sleigh { animation: mp-bob 2.4s ease-in-out infinite; }
@keyframes mp-bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.mp-gift rect { fill: #22385c; stroke: #f6c945; stroke-width: 1.4; } .mp-gift path { stroke: #f6c945; stroke-width: 1.4; }
.mp-gift.got rect { fill: #f6c945; } .mp-gift.got path { stroke: #e23d48; }
.mp-flake { fill: #fff; opacity: 0.85; animation: mp-fall var(--t) linear var(--d) infinite; }
@keyframes mp-fall { from { transform: translate(0, 0); } to { transform: translate(18px, var(--h)); } }
.pl-stopcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--c, var(--accent)); min-height: 48px; }
.pl-stopcard .pl-grow { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.pl-stop-day { font-weight: 800; color: var(--strong); min-width: 52px; }
@media (prefers-reduced-motion: reduce) { .mp-star, .mp-pulse, .mp-sleigh, .mp-flake { animation: none; } }

/* the gingerbread hunt: a row a safe, its five crew beside it */
.gb-rows { display: flex; flex-direction: column; gap: 12px; }
.gb-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: stretch; }
@media (max-width: 640px) { .gb-row { grid-template-columns: minmax(0, 1fr); } }
.gb-safe { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px 8px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); color: var(--text); font: 12.5px var(--font); cursor: pointer; text-align: center; transition: transform 0.15s, border-color 0.15s; }
.gb-safe b { color: var(--strong); font-size: 13px; }
.gb-safe:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--pl-gold); }
.gb-safe.opened { border-color: color-mix(in srgb, var(--pl-gold) 60%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--pl-gold) 14%, var(--surface)), var(--surface)); }
.gb-safe.shut { opacity: 0.55; cursor: default; }
.gb-crew { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .gb-crew { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gb-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 8px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--muted); font: 11.5px var(--font); cursor: pointer; min-width: 0; transition: transform 0.15s, border-color 0.15s; }
.gb-slot b { color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gb-slot:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--pl-gold); }
.gb-slot.got { border-style: solid; border-color: color-mix(in srgb, #c47a3a 55%, var(--line)); background: color-mix(in srgb, #c47a3a 9%, var(--surface)); }
.gb-slot.shut { opacity: 0.5; cursor: default; }
.gb-ck { display: block; overflow: visible; }
.gb-ck .gb-body { fill: #c47a3a; stroke: #8a4f22; stroke-width: 1.2; }
.gb-ck .gb-eye { fill: #3a1f0c; } .gb-ck .gb-btn { fill: #e23d48; }
.gb-ck .gb-ice { stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.gb-ck .gb-letter { fill: #fff; font: 800 13px var(--font); text-anchor: middle; paint-order: stroke; stroke: #8a4f22; stroke-width: 2px; }
.gb-ck.ghost .gb-body { fill: none; stroke: var(--line-strong); stroke-dasharray: 3 3; stroke-width: 1.4; }
.gb-ck .gb-q { fill: var(--muted); font: 800 13px var(--font); text-anchor: middle; }
.gb-slot.open:not(.got) .gb-ck { animation: gb-wig 3s ease-in-out infinite; }
@keyframes gb-wig { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-8deg); } 95% { transform: rotate(8deg); } }
.gb-mini { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px 4px; justify-items: center; }
.gb-mini-c.shut { opacity: 0.4; }
.gb-tile { display: inline-grid; place-items: center; min-width: 26px; height: 30px; padding: 0 6px; border-radius: 7px; background: #c47a3a; color: #fff; font: 800 15px var(--font); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.gb-tile.none { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.gb-tiles { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.gb-info .td-body { text-align: center; align-items: center; }
.gb-big { display: grid; place-items: center; }
.gb-big.hop { animation: gb-hop 0.9s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes gb-hop { 0% { transform: translateY(40px) scale(0.4) rotate(-20deg); opacity: 0; } 60% { transform: translateY(-14px) scale(1.06) rotate(6deg); opacity: 1; } 100% { transform: none; } }
/* the safe: its door swings open */
.gb-safe-svg .sf-box { fill: #4a5568; stroke: #2d3748; stroke-width: 2; } .gb-safe-svg .sf-in { fill: #1a202c; }
.gb-safe-svg .sf-face { fill: #718096; stroke: #4a5568; stroke-width: 2; } .gb-safe-svg .sf-dial { fill: #cbd5e0; stroke: #2d3748; stroke-width: 2; }
.gb-safe-svg .sf-hub { fill: #2d3748; } .gb-safe-svg .sf-tick { stroke: #2d3748; stroke-width: 2; } .gb-safe-svg .sf-handle { fill: #f6c945; } .gb-safe-svg .sf-foot { stroke: #2d3748; stroke-width: 4; stroke-linecap: round; }
.gb-safe-svg .sf-door { transform-box: view-box; transform-origin: 12px 37px; transition: transform 0.9s cubic-bezier(.3,1.2,.5,1); }
.gb-safe-svg.open .sf-door { transform: skewY(-10deg) scaleX(0.16); }
.gb-safebox.opening .gb-safe-svg.open .sf-door { animation: sf-swing 0.9s cubic-bezier(.3,1.2,.5,1) both; }
@keyframes sf-swing { from { transform: none; } }
.gb-safe-svg .sf-glow { fill: #f6c945; opacity: 0.55; filter: blur(4px); }
.gb-safebox .td-body { text-align: center; align-items: center; gap: 12px; }
.gb-safe-big { position: relative; display: grid; place-items: center; }
.gb-prize { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); color: #f6c945; filter: drop-shadow(0 0 8px rgba(246, 201, 69, 0.8)); }
.gb-prize.pop { animation: gb-prize 1.1s 0.5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes gb-prize { from { transform: translate(-50%, -20%) scale(0.2); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.gb-riddle { max-width: 420px; text-align: center; }
.gb-wheels { display: flex; gap: 8px; justify-content: center; }
.gb-wheel { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: #2d3748; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5); }
.gb-wheel button { width: 40px; height: 24px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, 0.08); color: #e2e8f0; cursor: pointer; display: grid; place-items: center; }
.gb-wheel button:hover { background: rgba(255, 255, 255, 0.18); }
.gb-wheel b { width: 40px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(180deg, #e2e8f0, #fff 45%, #cbd5e0); color: #1a202c; font-size: 24px; cursor: pointer; }
.gb-wheel.at { box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--pl-gold); }
.gb-wheel.tick b { animation: gb-tick 0.22s ease-out; }
@keyframes gb-tick { from { transform: translateY(-8px); opacity: 0.4; } }
.gb-msg { min-height: 20px; margin: 0; color: var(--text); font-size: 13px; }
.gb-safebox.shake { animation: gb-shake 0.45s; }
@keyframes gb-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
/* a gingerbread man peeking out of a page */
.pl-gb-host { position: relative; }
/* (round 6) he peeks over the top edge of the page's own box: head and hands above it, the rest behind (the button ends at
   the edge); crisp, so no filter and no scaling. He ducks behind the edge now and then, and looks up when pointed at */
.pl-gb { position: absolute; right: 14px; top: -36px; z-index: 6; width: 52px; height: 37px; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
.pl-gb.in { top: auto; bottom: -4px; }   /* no room above: inside the box, peeking over its bottom edge */
.pl-gb .gb-peek { display: block; width: 52px; height: 40px; }
.pl-gb .gb-hd { animation: gb-peekduck 5.2s ease-in-out infinite; transform-box: view-box; }
.pl-gb:hover .gb-hd, .pl-gb:focus-visible .gb-hd { animation: none; transform: translateY(-2px); }
.pl-gb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@keyframes gb-peekduck { 0%, 62%, 100% { transform: translateY(0); } 70%, 82% { transform: translateY(15px); } 74% { transform: translateY(15px); } }
.pl-gb.caught { animation: gb-caught 0.45s ease-in forwards; }
@keyframes gb-caught { to { transform: translateY(-40px) rotate(20deg); opacity: 0; } }
#question-area > .pl-gb { top: 6px; right: 6px; }
@media (prefers-reduced-motion: reduce) { .pl-gb .gb-hd, .pl-gb .gb-ck, .gb-slot .gb-ck, .gb-big.hop, .gb-prize.pop { animation: none !important; } .gb-safe-svg .sf-door { transition: none; } }

/* Elves vs Reindeer: the rope scene */
.tw-svg { width: 100%; height: auto; display: block; max-height: 150px; }
/* (round 6) a thick rope: a body, a twist of darker strands along it, a highlight */
.tw-rope { stroke: #b98a4e; stroke-width: 3.6; stroke-linecap: round; }
.tw-knot { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.tw-team { transform: translateX(var(--shift)); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.tw-pull { animation: tw-pull 1.6s ease-in-out var(--d) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes tw-pull { 50% { transform: translateX(-3px) rotate(-6deg); } }
.tw-pull.r { animation-name: tw-pull-r; } @keyframes tw-pull-r { 50% { transform: translateX(3px) rotate(6deg); } }
.tw-mine { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.tw-pts { display: flex; align-items: baseline; gap: 8px; } .tw-pts b { font-size: 26px; color: var(--strong); }
.tw-sack { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; } .tw-sack span { flex: 1; min-width: 140px; }
.pl-sq-n { min-width: 48px; text-align: right; }
@media (prefers-reduced-motion: reduce) { .tw-pull { animation: none; } }

/* Santa's mailroom */
.ml-page { max-width: 820px; }
.ml-desk { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .ml-desk { grid-template-columns: 1fr 1fr; } .ml-stat.sack { grid-column: 1 / -1; } }
.ml-stat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ml-stat > b, .ml-stat div > b { font-size: 24px; color: var(--strong); display: block; }
.ml-stat span { font-size: 12px; color: var(--muted); }
.ml-stat:not(.sack) { flex-direction: column; align-items: flex-start; gap: 0; }
.ml-mini { display: flex; align-items: center; gap: 18px; } .ml-mini b { font-size: 20px; color: var(--strong); display: block; }
.ml-letter { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); animation: ml-in 0.6s cubic-bezier(.2,.9,.3,1) both; }
@keyframes ml-in { from { transform: translateY(30px) rotate(-1.5deg); opacity: 0; } }
.ml-env { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: repeating-linear-gradient(135deg, #e23d48 0 14px, #f2f8fc 14px 28px, #2f6fd1 28px 42px, #f2f8fc 42px 56px); }
.ml-env > span { background: var(--surface); border-radius: 8px; padding: 4px 10px; font-size: 12.5px; color: var(--text); }
.ml-stamp { color: var(--c, var(--pl-gold)); display: inline-grid !important; place-items: center; width: 34px; height: 34px; padding: 0 !important; border: 2px dashed var(--c, var(--pl-gold)); }
.ml-to { margin-left: auto; font-style: italic; }
.ml-paper { padding: 20px 24px 16px; font-size: 15px; line-height: 1.7; display: flex; flex-direction: column; gap: 8px; color: var(--text); background: linear-gradient(transparent 31px, color-mix(in srgb, var(--accent) 10%, transparent) 32px) 0 6px / 100% 32px, color-mix(in srgb, var(--pl-gold) 4%, var(--surface)); font-family: Georgia, "Times New Roman", serif; }
.ml-paper p { margin: 0; }
.ml-dear { font-weight: 700; color: var(--strong); }
.ml-clues { display: flex; flex-direction: column; gap: 6px; }
.ml-clue { max-height: 0; opacity: 0; overflow: hidden; transition: opacity 0.45s, max-height 0.45s; }
.ml-clue.shown { max-height: 260px; opacity: 1; }
.ml-sign { font-style: italic; color: var(--strong); }
/* (15.169) the answer: a gift tag and Pack it, the same height, then another clue and skip under them */
.ml-act { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 10px; padding: 14px 16px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.ml-tag { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: text; min-width: 0; }
.ml-tag:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.ml-tag-ic { color: var(--pl-gold); display: inline-flex; flex: none; }
.ml-tag-in { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--strong); font: 15px var(--font); outline: none; }
.ml-pack { height: 42px; padding: 0 20px; font-size: 14px; }
.ml-act-sub { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ml-act-sub .ml-act-hint { flex: 1; min-width: 0; font-size: 12px; }
.ml-act-done { align-self: center; }
.ml-wish { font-weight: 700; color: var(--strong); }
.ml-rlist { display: flex; flex-direction: column; gap: 4px; }
.ml-rrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ml-rrow:hover:not(:disabled), .ml-rrow:focus-visible { background: var(--surface-2); border-color: var(--line); outline: none; }
.ml-rrow:disabled { cursor: default; }
.ml-rrow .pl-grow { display: flex; flex-direction: column; min-width: 0; }
.ml-rrow .pl-grow .pl-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-rav { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--pl-gold) 18%, var(--surface-2)); color: var(--strong); font-weight: 700; }
.ml-rwhen { white-space: nowrap; }
.pl-chip.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.ml-old-modal { width: min(560px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.ml-letter.static { animation: none; box-shadow: none; border: 0; border-radius: 0; }
.ml-old-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.ml-old-foot .ml-postmark.ok { color: var(--green); } .ml-old-foot .ml-postmark.miss { color: var(--red); }
@media (max-width: 560px) { .ml-act { grid-template-columns: minmax(0, 1fr); } .ml-pack { width: 100%; } .ml-act-sub .ml-act-hint { display: none; } .ml-act-sub { justify-content: space-between; } }
.pl-ans { flex: 1 1 180px; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--strong); font: 14px var(--font); }
.pl-ans:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ml-result { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; font-family: var(--font); font-size: 13.5px; }
.ml-result.ok { background: color-mix(in srgb, var(--green) 12%, var(--surface)); } .ml-result.miss, .ml-result.err { background: color-mix(in srgb, var(--red) 10%, var(--surface)); }
.ml-postmark { display: inline-grid; place-items: center; padding: 4px 10px; border: 2.5px solid currentColor; border-radius: 8px; font-weight: 800; transform: rotate(-6deg); animation: ml-stamp 0.4s cubic-bezier(.2,1.6,.4,1) both; }
.ml-result.ok .ml-postmark { color: var(--green); } .ml-result.miss .ml-postmark { color: var(--red); }
@keyframes ml-stamp { from { transform: rotate(-6deg) scale(2.2); opacity: 0; } }
.ml-fly { position: absolute; right: 30px; bottom: 60px; animation: ml-fly 1.4s cubic-bezier(.4,0,.6,1) forwards; pointer-events: none; }
@keyframes ml-fly { 0% { transform: scale(0.4); opacity: 0; } 25% { transform: translateY(-10px) scale(1.2); opacity: 1; } 100% { transform: translate(120px, -220px) scale(0.6) rotate(30deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ml-letter, .ml-postmark, .ml-fly { animation: none; } .ml-fly { display: none; } }

/* the Christmas home's snowy floor, in front of the page along its bottom: the signs stand in it and the policy links are
   written on it; the page gets room to scroll clear of it */
/* (the top: the sleigh flies down to about 140 px, and the taller home had pushed the title into it; play.js fitHome gives
   up some of it, --pl-top, when the page would otherwise scroll. The bottom: the tallest sign stands 93 px high.) Kept from
   the first paint, like the cards' room */
#title-screen.pl-floored .home-inner, html.xm.games-on #title-screen .home-inner { padding-bottom: 100px; padding-top: var(--pl-top, 100px); }
#title-screen.pl-floored .home-foot, html.xm.games-on #title-screen .home-foot { display: none; }
.pl-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 3; pointer-events: none; }
.pl-drift { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 50px; filter: drop-shadow(0 -3px 6px rgba(0, 0, 0, 0.25)); }
.pl-drift path { fill: #eef6fb; }
[data-theme="light"] .pl-drift path { fill: #ffffff; }
.pl-signrow { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: clamp(28px, 6vw, 90px); }
.pl-signpost { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.pl-sign { pointer-events: auto; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 17px; border: 0; color: #fff7e6; font: 700 13.5px var(--font); white-space: nowrap; cursor: pointer; background: linear-gradient(180deg, #8b5a2b, #6b4220); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.3); transform: rotate(var(--t)); transition: transform 0.18s cubic-bezier(.2,1.4,.4,1); }
.pl-sign.l { clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); padding-left: 24px; border-radius: 0 6px 6px 0; }
.pl-sign.r { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-right: 24px; border-radius: 6px 0 0 6px; }
.pl-sign:hover, .pl-sign:focus-visible { transform: rotate(0) scale(1.06); outline: none; }
.pl-sign svg { color: #ffd56b; }
.pl-sign-s { display: none; }
.pl-stick { position: relative; width: 10px; height: var(--sh, 34px); margin-top: -6px; border-radius: 2px 2px 0 0; background: linear-gradient(90deg, #4a2e16, #8b5a2b 45%, #6b4220 70%, #4a2e16); }
/* each post is pushed into the drift to its own depth, with a little heap of snow round its foot */
.pl-stick::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 30px; height: 11px; transform: translateX(-50%); border-radius: 50%; background: #eef6fb; box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.12); }
[data-theme="light"] .pl-stick::after { background: #ffffff; }
.pl-signpost { margin-bottom: var(--sink, 0px); }
.pl-signpost:nth-child(3n + 1) { --sh: 40px; --sink: -4px; }
.pl-signpost:nth-child(3n + 2) { --sh: 16px; --sink: 2px; }
.pl-signpost:nth-child(3n + 3) { --sh: 28px; --sink: -8px; }
.pl-floor-links { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; font-size: 11.5px; pointer-events: auto; }
.pl-floor-links a { color: #4d6378; text-decoration: none; }
.pl-floor-links a:hover, .pl-floor-links a:focus-visible { color: #1d2b38; text-decoration: underline; }
/* a phone: short names, a deeper drift the page scrolls behind, the policy links back in the page */
@media (max-width: 760px) {
  #title-screen.pl-floored .home-inner, html.xm.games-on #title-screen .home-inner { padding-bottom: 104px; padding-top: 70px; }
  #title-screen.pl-floored .home-foot, html.xm.games-on #title-screen .home-foot { display: flex; }
  .pl-floor { height: 92px; }
  .pl-drift { height: 46px; }
  .pl-signrow { bottom: 16px; gap: 10px; }
  .pl-sign { font-size: 12px; padding: 7px 12px; gap: 6px; }
  .pl-sign.l { padding-left: 19px; } .pl-sign.r { padding-right: 19px; }
  .pl-sign-t { display: none; } .pl-sign-s { display: inline; }
  .pl-stick { width: 8px; }
  .pl-signpost:nth-child(3n + 1) { --sh: 26px; --sink: -3px; } .pl-signpost:nth-child(3n + 2) { --sh: 10px; --sink: 1px; } .pl-signpost:nth-child(3n + 3) { --sh: 18px; --sink: -6px; }
  .pl-stick::after { width: 22px; height: 9px; }
  .pl-floor-links { display: none; }
}
.pl-evr-homecard { padding: 16px 18px; width: 100%; max-width: 1000px; box-sizing: border-box; }
.pl-evr-home .tw-svg { max-height: 130px; }

/* the day's briefing */
.pl-briefbox { max-width: 560px; }
.pl-briefbox .modal-head { display: flex; align-items: center; gap: 12px; }
.pl-briefbox .modal-head h2 { margin: 0; font-size: 18px; }
.pl-brief { display: flex; flex-direction: column; gap: 10px; line-height: 1.65; font-size: 14.5px; max-height: 56vh; overflow-y: auto; }
.pl-brief p { margin: 0; } .pl-brief b { color: var(--pl-gold); }

/* the moments on Friends */
.pl-moments .pl-list { margin-top: 8px; }

/* phone widths: quest rows and the rope's numbers wrap instead of pushing the page wider */
.pl-quest { gap: 10px; padding: 10px 12px; }
.pl-rope-row { flex-wrap: wrap; row-gap: 4px; }
.pl-card { min-width: 0; } .pl-grid.xm > * { min-width: 0; }
.pl-li .pl-chip { white-space: normal; min-width: 0; flex-shrink: 1; text-align: center; }
@media (max-width: 480px) { .pl-li .btn { padding-left: 8px; padding-right: 8px; } .pl-sq-n { min-width: 34px; } }
.pl-front .pl-chip, .pl-chip { max-width: 100%; white-space: normal; }

/* (15.168b) Santa's Quest challenges: a badge on a day's stop, a row in the day's card */
.mp-ch circle { fill: #f2f8fc; stroke: #c9a46a; stroke-width: 2; }
.mp-ch path, .mp-ch rect { fill: #c47a3a; stroke: #8a4f22; stroke-width: 0.8; }
.mp-ch.puzzle rect { fill: #718096; stroke: #2d3748; } .mp-ch.puzzle path { fill: none; stroke: #2d3748; }
.mp-ch .mp-chq { font: 800 13px var(--font); fill: #2f6fd1; text-anchor: middle; }
.mp-ch.done circle { fill: #f6c945; stroke: #b98d12; }
.mp-ch.shut { opacity: 0.55; }
/* (round 6; the user: "dont like how these icons move") a stop's challenge badge (the lock, the gingerbread man) stays still */
.mp-stop .mp-ch { transform-box: fill-box; transform-origin: center; }
.mp-stop .mp-ch.done, .mp-stop .mp-ch.shut { animation: none; }
.pl-stopcard { flex-direction: column; align-items: stretch; gap: 10px; }
.pl-stoprow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-stoprow .pl-grow { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.pl-stoprow.ch { padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.pl-chic { width: 52px; display: grid; place-items: center; flex: none; }
.pl-chic svg { overflow: visible; }
/* a trivia round */
.tv-box { max-width: 560px; }
.tv-box .modal-head { display: flex; align-items: center; gap: 10px; }
.tv-box .modal-head h2 { margin: 0; font-size: 17px; }
.tv-body { display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
/* (15.169) the round again after it's done: each question, the answer picked and the right one (the window keeps its size
   and the list scrolls) */
.tv-box .tv-body { height: min(440px, 62vh); overflow-y: auto; }
.tv-review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tv-rev { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.tv-rev p { margin: 0 0 2px; color: var(--strong); line-height: 1.45; }
.tv-ans { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.tv-ans.ok { color: var(--green); } .tv-ans.no { color: var(--red); }
.tv-ans em { font-style: normal; color: var(--muted); font-size: 12px; }
.tv-pips { display: flex; gap: 6px; } .tv-pips i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); }
/* the question being asked: a light bar (the accent is red at Christmas, so it read as a wrong answer) */
.tv-pips i.now { background: color-mix(in srgb, var(--strong) 55%, var(--surface-2)); } .tv-pips i.ok { background: var(--green); } .tv-pips i.no { background: var(--red); }
.tv-q { margin: 4px 0 0; font-size: 17px; line-height: 1.5; color: var(--strong); text-wrap: balance; }
.tv-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .tv-opts { grid-template-columns: minmax(0, 1fr); } }
.tv-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 14px var(--font); text-align: left; cursor: pointer; transition: transform 0.12s, border-color 0.12s, background 0.2s; }
.tv-opt:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.tv-key { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: 12px; flex: none; }
.tv-opt.right { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, var(--surface)); }
.tv-opt.wrong { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--surface)); animation: gb-shake 0.4s; }
.tv-opt:disabled { cursor: default; }
.tv-end { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 8px; text-align: center; }
.tv-big { font-size: 40px; font-weight: 800; color: var(--strong); }
.gb-from { text-align: center; } .gb-hint2 { color: var(--pl-gold); }
/* Elves vs Reindeer on top of the home's two cards: the elves on Play, the reindeer on Question database, the rope
   across the gap; on a phone (the cards stacked) both teams on Play. The figures' feet sink into the cards' snow caps. */
/* (15.169) the room is kept from the first paint (html.games-on, set before it from the last visit), so the teams don't
   push the cards down when they come; the countdown moves up beside the greeting, out of the labels' way */
.home-cards.pl-towed, html.xm.games-on #title-screen .home-cards { position: relative; margin-top: 86px; }
html.xm.games-on #title-screen .hero { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 12px; }
html.xm.games-on #title-screen .hero .wordmark { flex: 0 0 100%; justify-content: center; }
html.xm.games-on #title-screen .xm-count { margin: 0; }
.pl-cardtow { position: absolute; left: 0; right: 0; bottom: calc(100% - 8px); z-index: 3; pointer-events: none; outline: none; }
.pl-cardtow .tw-svg { display: block; width: 100%; height: auto; max-height: none; pointer-events: none; cursor: pointer; overflow: visible; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35)); }
.pl-cardtow .tw-svg :is(.tw-hit, .tw-team, .tw-rope, .tw-knot) { pointer-events: visiblePainted; }
.pl-cardtow .tw-narrow { display: none; }
/* hovering only brightens it: changing the sway's speed on hover made every figure jump (the user saw them twitch) */
.pl-cardtow .tw-svg { transition: filter 0.2s; }
.pl-cardtow .tw-svg:hover { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35)) brightness(1.08); }
.pl-cardtow:focus-visible .tw-svg { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
/* (15.169) the team boards stand beside their teams, level with them (above them they ran into the greeting) */
.pl-tow-n { position: absolute; top: 60%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 7px; background: linear-gradient(180deg, #8b5a2b, #6b4220); color: #fff7e6; font: 700 12.5px var(--font); white-space: nowrap; pointer-events: auto; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 3px 6px rgba(0, 0, 0, 0.3); }
.pl-tow-n b { color: #ffd56b; }
.pl-tow-n.e { right: 76%; } .pl-tow-n.r { left: 76%; }
/* the elves stand where the wreath hung, and anywhere else on Play it covered the title: no wreath for testers */
html.games-on .home-cards .xm-wreath { display: none; }
@media (max-width: 760px) {
  /* the narrow scene is 400 by 120, so its height is 0.3 of its width (at most 440 wide, centred on Play) */
  .home-cards.pl-towed, html.xm.games-on #title-screen .home-cards { margin-top: calc(min(100vw - 48px, 440px) * 0.3 - 10px); }
  .pl-cardtow { left: 50%; right: auto; width: min(100%, 440px); transform: translateX(-50%); }
  .pl-cardtow .tw-wide { display: none; } .pl-cardtow .tw-narrow { display: block; }
  .pl-tow-n { font-size: 11.5px; padding: 3px 9px; top: -6px; transform: translateX(-50%); }
  .pl-tow-n.e { left: 21%; right: auto; } .pl-tow-n.r { left: 78%; }
}



/* ── (15.169) Santa's Quest in 3D: the North Pole (northpole.js). A full-screen view over the site, styled like a Duolingo
   lesson: Nunito, white cards with a thick bottom edge, chunky green buttons, a progress bar with an X, a green or red bar
   after each answer. Its own light look in either scheme (the village is a bright day). ── */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("vendor/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("vendor/fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("vendor/fonts/nunito-latin-900-normal.woff2") format("woff2"); }
.np-root {
  --np-green: #58cc02; --np-green-d: #58a700; --np-red: #ff4b4b; --np-red-d: #ea2b2b; --np-blue: #1cb0f6; --np-blue-d: #1899d6;
  --np-yellow: #ffc800; --np-purple: #ce82ff; --np-ink: #3c3c3c; --np-sub: #777777; --np-line: #e5e5e5; --np-card: #ffffff;
  position: fixed; inset: 0; z-index: 9000; background: #bfe7ff; color: var(--np-ink); font: 700 16px/1.45 Nunito, ui-rounded, system-ui, sans-serif;
  animation: np-in 0.35s ease both; overflow: hidden; color-scheme: light; -webkit-font-smoothing: antialiased;
}
.np-root button { font-family: inherit; }
.np-root.np-leaving { animation: np-out 0.25s ease both; }
@keyframes np-in { from { opacity: 0; } } @keyframes np-out { to { opacity: 0; } }
/* a fetch's card: what they need, and what's out on the stands (not buttons: you walk to the right one) */
.np-fetch-list { display: flex; flex-wrap: wrap; gap: 8px; }
.np-fetch-o { cursor: default; pointer-events: none; }
.np-fetch-list + .np-sub { margin-top: 12px; }
/* (15.169) the day's card while the 3D engine is still on its way: at once, no fade, outlines where the story goes */
.np-root.np-wait { animation: none; }
.np-wait .np-story .sk { display: block; height: 14px; margin: 9px 0; border-radius: 7px; background: #e9eef3; }
.np-wait .np-btn[disabled] { opacity: 0.6; }
.np-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.np-root.np-dim .np-canvas { filter: brightness(0.75) saturate(0.8); }

/* the top: an X, the day's progress, the day */
.np-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 14px; padding: max(16px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.np-top > * { pointer-events: auto; }
.np-x { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.92); color: #afafaf; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); }
.np-x:hover { color: var(--np-ink); }
.np-x:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); }
.np-progress { flex: 1; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.85); overflow: hidden; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.06); max-width: 720px; margin: 0 auto; }
.np-progress i { display: block; height: 100%; width: 4%; border-radius: 99px; background: var(--np-green); position: relative; transition: width 0.5s cubic-bezier(.3,1.3,.5,1); }
.np-progress i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); }
.np-daychip { flex: none; display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); }
.np-daychip b { font-weight: 900; color: var(--np-red); padding: 0 4px; white-space: nowrap; }
.np-daychip button { width: 30px; height: 36px; border: 0; border-radius: 10px; background: none; color: #afafaf; font-size: 22px; font-weight: 900; cursor: pointer; line-height: 1; }
.np-daychip button:hover { color: var(--np-ink); background: #f2f2f2; }

/* the day's list, under the bar */
.np-tasks { position: absolute; left: max(18px, env(safe-area-inset-left, 0px)); top: calc(max(16px, env(safe-area-inset-top, 0px)) + 58px); width: 250px; background: var(--np-card); border: 2px solid var(--np-line); border-bottom-width: 4px; border-radius: 16px; padding: 12px 14px; }
.np-tasks-t { font-weight: 900; font-size: 15px; margin-bottom: 6px; line-height: 1.3; }
.np-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.np-list li { display: flex; align-items: center; gap: 9px; color: var(--np-ink); }
.np-list li span { flex: 1; min-width: 0; }
.np-list li em { display: none; font-style: normal; }
.np-list li b { color: var(--np-sub); font-size: 13px; }
.np-list li i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--np-line); flex: none; display: grid; place-items: center; }
.np-list li.done i { background: var(--np-green); border-color: var(--np-green); }
.np-list li.done i::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 3px 3px; transform: translateY(-1px) rotate(-45deg); }
.np-list li.done span { color: var(--np-green-d); }

/* "E Talk to Dasher": the green pill at the bottom */
.np-prompt { position: absolute; left: 50%; bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 14px)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 12px 22px; border: 0; border-radius: 16px; background: var(--np-green); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 0 var(--np-green-d); animation: np-pop 0.25s cubic-bezier(.2,1.4,.4,1); max-width: calc(100% - 32px); }
.np-prompt { white-space: normal; text-align: left; line-height: 1.25; }   /* (never cut with an ellipsis: the user, "should not happen") */
.np-prompt span { overflow: visible; }
/* the key to press, a white key cap (the site's own kbd style drew a gray one, hard to read on the green) */
.np-prompt kbd { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border: 0; border-radius: 8px; background: #fff; color: var(--np-green-d); font: 900 15px/1 Nunito, sans-serif; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); }
.np-prompt:hover { filter: brightness(1.05); }
.np-prompt:active { transform: translateX(-50%) translateY(3px); box-shadow: 0 1px 0 var(--np-green-d); }
@keyframes np-pop { from { transform: translateX(-50%) scale(0.8); opacity: 0; } }

/* the panels */
.np-panel { position: absolute; inset: 0; display: flex; justify-content: center; padding: 16px; pointer-events: none; }
.np-panel.center { align-items: center; background: rgba(40, 70, 100, 0.35); pointer-events: auto; }
.np-panel.bottom { align-items: flex-end; padding-bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 12px)); }
.np-panel.sheet { align-items: flex-end; padding: 0; flex-direction: column; justify-content: flex-end; pointer-events: auto; }
.np-panel.sheet .np-talk { align-self: center; width: min(760px, calc(100% - 32px)); margin-bottom: 14px; }
.np-card { pointer-events: auto; width: min(540px, 100%); max-height: calc(100% - 32px); overflow-y: auto; background: var(--np-card); border: 2px solid var(--np-line); border-bottom-width: 5px; border-radius: 22px; padding: 22px 24px 20px; animation: np-card 0.32s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes np-card { from { transform: translateY(18px) scale(0.97); opacity: 0; } }
.np-card h2 { margin: 2px 0 8px; font-size: 24px; font-weight: 900; line-height: 1.2; color: var(--np-ink); text-wrap: balance; }
.np-eyebrow { font-size: 14px; font-weight: 900; color: var(--np-red); }
.np-eyebrow.blue { color: var(--np-blue); }
.np-story { margin: 6px 0 10px; color: var(--np-sub); font-weight: 700; line-height: 1.55; }
.np-steps { list-style: none; margin: 12px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.np-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 2px solid var(--np-line); border-radius: 14px; font-weight: 800; }
.np-steps li b { color: #e5a800; font-weight: 900; }
.np-dot { width: 30px; height: 30px; border-radius: 50%; flex: none; position: relative; }
.np-dot.read { background: var(--np-blue); } .np-dot.ask { background: var(--np-yellow); } .np-dot.board { background: var(--np-purple); }
.np-dot::after { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px; }
.np-dot.read::after { content: ""; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linejoin='round'%3E%3Cpath d='M3 5.5l8 1.5v12l-8-1.5zM21 5.5l-8 1.5v12l8-1.5z'/%3E%3C/svg%3E") center / 18px no-repeat; } .np-dot.ask::after { content: "!"; } .np-dot.board::after { content: "★"; font-size: 15px; }
.np-text { font-size: 17px; line-height: 1.65; font-weight: 700; color: var(--np-ink); }
.np-text p { margin: 0 0 10px; }
.np-text b, .np-text strong { color: var(--np-blue-d); font-weight: 900; }
.np-sub { color: var(--np-sub); font-size: 14px; font-weight: 700; }
.np-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.np-foot.col { flex-direction: column; align-items: stretch; gap: 10px; }

/* chunky buttons: white with a grey edge, green, red */
.np-btn { min-height: 48px; padding: 0 22px; border-radius: 16px; border: 2px solid var(--np-line); border-bottom-width: 4px; background: #fff; color: var(--np-blue); font-size: 16px; font-weight: 900; cursor: pointer; transition: filter 0.1s; }
.np-btn:hover { filter: brightness(0.97); }
.np-btn:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.np-btn.green { background: var(--np-green); border-color: var(--np-green-d); color: #fff; }
.np-btn.red { background: var(--np-red); border-color: var(--np-red-d); color: #fff; }
.np-btn.green:hover, .np-btn.red:hover { filter: brightness(1.06); }
.np-btn.wide { width: 100%; }
.np-btn:focus-visible { outline: 3px solid rgba(28, 176, 246, 0.5); outline-offset: 2px; }

/* someone talking: their face and a speech bubble */
.np-talk { pointer-events: auto; display: flex; align-items: flex-end; gap: 14px; width: min(640px, 100%); animation: np-card 0.32s cubic-bezier(.2,1.2,.4,1) both; }
.np-panel.wide .np-talk { width: min(760px, 100%); }
.np-face { --c: #1cb0f6; flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--c) 26%, #fff); border: 4px solid #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12); margin-bottom: 4px; }
.np-face svg { display: block; width: 100%; height: 100%; }
.np-bubble { position: relative; flex: 1; min-width: 0; background: var(--np-card); border: 2px solid var(--np-line); border-bottom-width: 5px; border-radius: 20px; padding: 14px 18px 16px; }
.np-bubble::before { content: ""; position: absolute; left: -12px; bottom: 26px; width: 18px; height: 18px; background: var(--np-card); border-left: 2px solid var(--np-line); border-bottom: 2px solid var(--np-line); transform: rotate(45deg); }
.np-who { display: block; font-size: 14px; font-weight: 900; color: var(--np-sub); margin-bottom: 2px; }
.np-bubble p { margin: 0 0 4px; font-size: 18px; font-weight: 800; line-height: 1.5; }
.np-bubble .np-sub { font-size: 14px; font-weight: 700; margin-top: 6px; }
.np-qtext { min-height: 3em; font-size: 17px !important; font-weight: 700 !important; line-height: 1.6 !important; }
.np-answer { margin-top: 10px; }
.np-input { width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--np-line); background: #f7f7f7; color: var(--np-ink); font: 700 18px Nunito, sans-serif; }
.np-input:focus { outline: none; border-color: var(--np-blue); background: #fff; }
.np-input::placeholder { color: #afafaf; }

/* the bar after an answer: green or red across the bottom */
.np-sheet { pointer-events: auto; width: 100%; padding: 20px max(18px, env(safe-area-inset-right, 0px)) max(22px, calc(env(safe-area-inset-bottom, 0px) + 14px)) max(18px, env(safe-area-inset-left, 0px)); animation: np-up 0.3s cubic-bezier(.2,1,.4,1) both; }
@keyframes np-up { from { transform: translateY(100%); } }
.np-sheet.ok { background: #d7ffb8; color: #58a700; } .np-sheet.no { background: #ffdfe0; color: #ea2b2b; }
.np-sheet-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.np-sheet-ic { width: 60px; height: 60px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.np-sheet-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.np-sheet-t b { font-size: 22px; font-weight: 900; }
.np-sheet-t span { font-size: 16px; font-weight: 800; }
.np-sheet .np-btn { min-width: 150px; }

/* the end of a day */
.np-result { text-align: center; }
.np-burst { width: 92px; height: 92px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-size: 50px; background: #ffe58a; color: #ff9600; box-shadow: 0 5px 0 #f5c400; animation: np-burst 0.6s cubic-bezier(.2,1.6,.4,1) both; }
.np-result:not(.ok) .np-burst { background: #ddf4ff; color: var(--np-blue); box-shadow: 0 5px 0 #b8e4fb; }
@keyframes np-burst { from { transform: scale(0.3) rotate(-30deg); opacity: 0; } }
.np-stats { display: flex; gap: 10px; margin: 16px 0 6px; }
.np-stats > div { flex: 1; border-radius: 16px; border: 2px solid; overflow: hidden; display: flex; flex-direction: column; }
.np-stats span { font-size: 13px; font-weight: 900; color: #fff; padding: 4px 0; }
.np-stats b { font-size: 20px; font-weight: 900; padding: 10px 0; background: #fff; }
.np-stats .s1 { border-color: var(--np-yellow); } .np-stats .s1 span { background: var(--np-yellow); } .np-stats .s1 b { color: #e5a800; }
.np-stats .s2 { border-color: var(--np-blue); } .np-stats .s2 span { background: var(--np-blue); } .np-stats .s2 b { color: var(--np-blue); }
.np-stats .s3 { border-color: var(--np-green); } .np-stats .s3 span { background: var(--np-green); } .np-stats .s3 b { color: var(--np-green-d); }

@media (max-width: 760px) {
  .np-tasks { width: auto; right: max(18px, env(safe-area-inset-right, 0px)); padding: 8px 12px; border-radius: 14px; }
  .np-tasks-t { display: none; }
  .np-list { flex-direction: row; justify-content: space-between; gap: 8px; font-size: 12.5px; }
  .np-list li { gap: 5px; min-width: 0; } .np-list li span { display: none; } .np-list li em { display: inline; }
  .np-list li b { font-size: 12.5px; }
  .np-daychip button { width: 24px; } .np-x { width: 40px; height: 40px; } .np-daychip { height: 40px; }
  .np-top { gap: 10px; }
  .np-face { width: 54px; height: 54px; border-width: 3px; }
  .np-talk { gap: 8px; }
  .np-bubble p { font-size: 16px; } .np-qtext { font-size: 15.5px !important; }
  .np-card { padding: 18px 18px 16px; border-radius: 20px; } .np-card h2 { font-size: 21px; }
  .np-text { font-size: 16px; }
  .np-sheet-in { flex-wrap: wrap; } .np-sheet-ic { width: 46px; height: 46px; } .np-sheet .np-btn { width: 100%; }
  .np-sheet-t b { font-size: 19px; }
}
.pl-over3d { z-index: 9100 !important; }
/* ── (15.169, round 4) the days' tasks: cards that scroll inside with their buttons always in view (on a phone the button
   was cut off at the bottom), answer tiles, a line to put things in order, pairs to match, the telescope, the map ── */
.np-root .np-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.np-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 22px 24px 6px; overscroll-behavior: contain; }
.np-card > .np-foot { flex: none; margin: 0; padding: 12px 24px 18px; }
.np-col { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.np-panel.wide .np-card { width: min(880px, 100%); }
.np-skycard { width: min(560px, 100%) !important; }
.np-tasks-w { margin: -4px 0 8px; font-size: 12.5px; font-weight: 800; color: var(--np-sub); }
.np-eyebrow.gold { color: #d99a00; }
.np-btn.gold { background: var(--np-yellow); border-color: #e5a800; color: #fff; }
.np-btn.gold:hover { filter: brightness(1.05); }
.np-btn:disabled { opacity: 0.55; cursor: default; filter: none; }
.np-btn.green:disabled { background: #e5e5e5; border-color: #d0d0d0; color: #afafaf; opacity: 1; }
.np-burst.gift { background: #ffe0e0; box-shadow: 0 5px 0 #ffb3b3; }
/* the bar after an answer sits over the bottom of whatever card is open, and the card moves up out of its way */
.np-panel > .np-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.np-panel.center.has-sheet { padding-bottom: 136px; }
.np-panel.bottom.has-sheet { padding-bottom: 150px; }
/* pick one */
.np-opts { display: grid; gap: 10px; margin: 14px 0 6px; }
.np-opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 2px solid var(--np-line); border-bottom-width: 4px; border-radius: 14px; background: #fff; color: var(--np-ink); font: 800 17px/1.35 Nunito, sans-serif; text-align: left; cursor: pointer; }
.np-opt:hover:not(:disabled) { background: #f7f7f7; }
.np-key { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 2px solid var(--np-line); border-radius: 8px; color: #afafaf; font-size: 14px; font-weight: 900; }
.np-opt.sel { border-color: #84d8ff; background: #ddf4ff; color: var(--np-blue-d); } .np-opt.sel .np-key { border-color: #84d8ff; color: var(--np-blue-d); }
.np-opt.right, .np-tile.right { border-color: var(--np-green); background: #d7ffb8; color: var(--np-green-d); }
.np-opt.wrong, .np-tile.wrong { border-color: var(--np-red); background: #ffdfe0; color: var(--np-red-d); }
.np-opt:disabled { cursor: default; }
/* tiles: put in order, match */
.np-tile { min-height: 46px; padding: 8px 14px; border: 2px solid var(--np-line); border-bottom-width: 4px; border-radius: 12px; background: #fff; color: var(--np-ink); font: 800 16px/1.3 Nunito, sans-serif; cursor: pointer; text-align: left; display: inline-flex; align-items: center; transition: background 0.15s, border-color 0.15s; }
.np-tile:hover:not(:disabled) { background: #f7f7f7; }
.np-tile.sel { border-color: #84d8ff; background: #ddf4ff; color: var(--np-blue-d); }
.np-tile:disabled { cursor: default; }
.np-line { min-height: 62px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 14px; padding: 8px 0 12px; border-bottom: 2px solid var(--np-line); }
.np-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.np-num { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--np-blue); color: #fff; font-size: 12px; font-weight: 900; flex: none; }
.np-match { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.np-match > div { display: flex; flex-direction: column; gap: 8px; }
.np-match .np-tile { width: 100%; }
/* the telescope */
.np-sky { display: block; width: min(100%, 420px, 50vh); height: auto; margin: 8px auto 0; cursor: crosshair; touch-action: manipulation; }
.np-star { fill: #ffffff; }
.np-skyline { stroke: rgba(160, 190, 255, 0.5); stroke-width: 1.4; } .np-skyline.on { stroke: #ffd24a; stroke-width: 2.2; }
.np-ring { fill: none; stroke: #58cc02; stroke-width: 2.5; }
.np-aim { fill: none; stroke: #ffc800; stroke-width: 2.5; }
.np-starname { fill: #ffffff; font: 900 14px Nunito, sans-serif; paint-order: stroke; stroke: #0c1430; stroke-width: 4px; } .np-starname.no { fill: #ff9b9b; }
/* the map */
.np-map { display: block; width: 100%; height: auto; max-height: 50vh; margin-top: 10px; border-radius: 14px; cursor: crosshair; touch-action: manipulation; }
.np-land path { fill: #f6ecc8; stroke: #c9b98a; stroke-width: 0.8px; vector-effect: non-scaling-stroke; }
.np-mapline { stroke: #ff4b4b; } .np-mapme { fill: #ff4b4b; } .np-mappin { fill: #58cc02; stroke: #ffffff; }
.np-mapname { fill: #2b4a2b; font-family: Nunito, sans-serif; font-weight: 900; paint-order: stroke; stroke: #ffffff; }
/* what someone asked you to bring, at the top while you look */
.np-goal { position: absolute; left: 50%; top: calc(max(16px, env(safe-area-inset-top, 0px)) + 58px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100% - 320px)); padding: 10px 16px; border: 2px solid var(--np-line); border-bottom-width: 4px; border-radius: 16px; background: #fff; font-weight: 900; font-size: 15px; line-height: 1.35; animation: np-card 0.3s cubic-bezier(.2,1.2,.4,1) both; }
.np-goal-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #ff9600; color: #fff; font-weight: 900; }
@media (max-width: 760px) {
  .np-scroll { padding: 18px 18px 6px; } .np-card > .np-foot { padding: 10px 18px 14px; }
  .np-opt { min-height: 50px; font-size: 16px; } .np-tile { font-size: 15px; min-height: 42px; }
  .np-goal { left: 0; right: 0; margin: 0 auto; width: fit-content; transform: none; max-width: calc(100% - 24px); top: calc(max(10px, env(safe-area-inset-top, 0px)) + 82px); padding: 5px 12px 5px 6px; gap: 8px; font-size: 13px; border-width: 1.5px 1.5px 2.5px; border-radius: 12px; background: rgba(255, 255, 255, 0.9); }
  .np-goal-ic { width: 22px; height: 22px; font-size: 13px; }
  .np-panel.center.has-sheet { padding-bottom: 170px; } .np-panel.bottom.has-sheet { padding-bottom: 180px; }
  .np-panel.wide .np-card { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .np-root, .np-card, .np-prompt, .np-talk, .np-sheet, .np-burst { animation: none; } .np-progress i { transition: none; } }

/* (15.169) the level and the week's quests on the profile (play.js drawYou in #pf-play) */
.pf-play:empty { display: none; }
.pf-play .pl-you { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pf-play .pl-you > .pl-level { grid-column: auto; }
/* (round 6; the user: "move the player level thing up into the player name box") the level in the profile's name box,
   beside the name (under it on a phone); the week's and today's quests side by side below */
.pf-card .pf-level { display: block; flex: 1 1 460px; max-width: 640px; min-width: 260px; margin-left: auto; }
.pf-lvl-row { display: flex; align-items: center; gap: 18px; width: 100%; }
.pf-lvl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-lvl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pf-lvl-head .pl-lvl-title { font-size: 18px; }
.pf-lvl-main .pl-bar { flex: none; width: 100%; }
@media (max-width: 700px) { .pf-card .pf-level { flex-basis: 100%; max-width: none; min-width: 0; margin-left: 0; } .pf-lvl-row { gap: 14px; } }
/* a quest's pop-up (the achievement card, with the quest's icon) */
.ach-quest-ic { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); }
/* (round 6; the user: "make these boxes the same height") the level and the week's quests side by side, one height;
   the level card's title and bar sit together in its middle */
.pf-play .pl-you { align-items: stretch; }
.pf-play .pl-you > .pl-level { justify-content: center; gap: 22px; }
.pf-play .pl-card { margin: 0; }
@media (max-width: 860px) { .pf-play .pl-you { grid-template-columns: minmax(0, 1fr); } }

/* ── (15.169) "New to quizbowl?" (tutorial.js): the welcome, how to play, how to study, and the tour's spotlight ── */
.tb-tutorial { width: 36px; padding: 0; justify-content: center; color: var(--pl-gold, #e0b23a); }
.tb-tutorial[hidden] { display: none; }
.tut-ovl { position: fixed; inset: 0; z-index: 10020; display: flex; align-items: center; justify-content: center; padding: 12px; }
.tut-modal { width: min(760px, calc(100vw - 24px)); height: min(640px, calc(100vh - 48px)); height: min(640px, calc(100dvh - 48px)); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg, 16px); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; animation: tut-in 0.28s cubic-bezier(.2,.9,.3,1) both; }
@keyframes tut-in { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
.tut-top { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line-soft); }
.tut-top > b { display: inline-flex; align-items: center; gap: 8px; color: var(--strong); font-size: 15px; white-space: nowrap; }
.tut-top > b svg { color: var(--pl-gold, #e0b23a); }
.tut-tabs { display: flex; gap: 4px; margin: 0 auto; }
.tut-tab { padding: 7px 14px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.tut-tab:hover { color: var(--strong); background: var(--surface-2); }
.tut-tab.on { color: var(--strong); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tut-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.tut-x:hover { color: var(--strong); background: var(--surface-2); }
.tut-body { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 30px 30px; }
.tut-h { margin: 0 0 6px; font-size: 22px; color: var(--strong); text-wrap: balance; }
.tut-hello { display: flex; align-items: center; gap: 18px; margin: 6px 0 24px; }
.tut-hello p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tut-bulb { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, var(--pl-gold, #e0b23a) 16%, var(--surface-2)); color: var(--pl-gold, #e0b23a); }
.tut-bulb svg { width: 32px; height: 32px; }
.tut-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tut-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.tut-choice:hover, .tut-choice:focus-visible { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); outline: none; }
.tut-choice b { color: var(--strong); font-size: 15px; margin-top: 6px; }
.tut-choice > span:last-child { color: var(--muted); font-size: 13px; line-height: 1.45; }
.tut-ci { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; }
.tut-ci.t1 { background: #2f7fd6; } .tut-ci.t2 { background: #d6862f; } .tut-ci.t3 { background: #2f9e63; }
.tut-foot { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }
.tut-foot svg { width: 15px; height: 15px; color: var(--pl-gold, #e0b23a); flex: none; }
/* (2026-11-28) the welcome: a hero (what this is, one button) beside a tossup that reads itself, then the three ways in */
.tut-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: center; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }   /* (flat: the user, "remove the gradient") */
.tut-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 99px; background: color-mix(in srgb, var(--pl-gold, #e0b23a) 16%, transparent); color: color-mix(in srgb, var(--pl-gold, #e0b23a) 70%, var(--strong)); font-size: 12.5px; font-weight: 700; }
.tut-kicker svg { width: 15px; height: 15px; color: var(--pl-gold, #e0b23a); }
.tut-hero-h { margin: 12px 0 8px; font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; color: var(--strong); text-wrap: balance; }
.tut-hero-l p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.6; max-width: 34ch; }
.tut-hero-cta { display: flex; gap: 10px; margin-top: 18px; }
.tut-hero-cta .btn { width: auto; margin: 0; }
.tut-demo { min-width: 0; }
.tut-demo-in { padding: 14px 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
.tut-demo-k { display: flex; align-items: center; gap: 6px; }
.tut-chip { padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 700; }
.tut-chip.lit { color: #bc8cff; background: color-mix(in srgb, #bc8cff 14%, var(--surface-2)); }
html[data-scheme="light"] .tut-chip.lit { color: #7446c2; }
.tut-buzz { margin-left: auto; padding: 3px 10px; border-radius: 99px; background: var(--red, #e5484d); color: #fff; font-size: 11.5px; font-weight: 800; opacity: 0; transform: scale(0.6);
  animation: tut-buzz 0.45s cubic-bezier(.2, 1.6, .4, 1) forwards; animation-delay: calc(var(--t) + 0.15s); }
.tut-demo-q { min-height: 6.6em; margin: 10px 0 12px; color: var(--strong); font-size: 14px; line-height: 1.65; }
.tut-c { opacity: 0; animation: tut-w 0.05s linear forwards; animation-delay: calc(var(--i) * 0.03s); }   /* letter by letter, as the reader reads */
.tut-bz { opacity: 0; animation: tut-w 0.01s linear forwards; animation-delay: var(--t); }   /* the reader's own buzz mark, where the buzz came */
.tut-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--accent); opacity: 0; animation: tut-w 0.01s linear forwards, tut-blink 0.9s steps(2) infinite; animation-delay: var(--t), var(--t); }   /* (shows where the buzz stopped the reading; before that the unread words still hold their room) */
.tut-demo-a { display: flex; align-items: center; gap: 10px; }
.tut-demo-box { flex: 1; display: flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); opacity: 0.45;
  animation: tut-on 0.3s ease forwards; animation-delay: calc(var(--t) + 0.3s); }
.tut-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; max-width: 100%; color: var(--strong); font-size: 14px; font-weight: 700;
  animation: tut-type 0.8s steps(var(--steps, 9), end) forwards; animation-delay: calc(var(--t) + 0.7s); }
.tut-pts { padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--c-power, var(--yellow, #f6c945)) 22%, var(--surface-2)); color: var(--c-power, var(--yellow, #e0b23a)); font-size: 15px; font-weight: 800; opacity: 0; transform: translateY(6px) scale(0.8);
  animation: tut-pop 0.5s cubic-bezier(.2, 1.6, .4, 1) forwards; animation-delay: calc(var(--t) + 1.6s); }
@keyframes tut-w { to { opacity: 1; } }
@keyframes tut-buzz { to { opacity: 1; transform: none; } }
@keyframes tut-on { to { opacity: 1; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); } }
@keyframes tut-type { to { width: calc(var(--n, 9) * 1ch + 0.2ch); } }
@keyframes tut-pop { to { opacity: 1; transform: none; } }
@keyframes tut-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .tut-c, .tut-bz, .tut-buzz, .tut-demo-box, .tut-type, .tut-pts { animation-duration: 0.01s; animation-delay: 0s; } }
.tut-hero + .tut-choices { margin-top: 16px; }
.tut-choice { position: relative; }
.tut-go { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; color: var(--muted); background: var(--surface); transition: transform 0.2s, color 0.2s; }
.tut-choice:hover .tut-go, .tut-choice:focus-visible .tut-go { color: var(--strong); transform: translateX(3px); }
.tut-ci.t1 { background: linear-gradient(145deg, #4b95e6, #2a6fc2); } .tut-ci.t2 { background: linear-gradient(145deg, #e89a45, #c9741f); } .tut-ci.t3 { background: linear-gradient(145deg, #3fb173, #26864f); }
.tut-ci { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18); }
@media (max-width: 680px) {
  .tut-hero { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; }
  .tut-hero-h { font-size: 24px; }
  .tut-choices { grid-template-columns: minmax(0, 1fr); }
  .tut-art { height: 84px; }
  .tq-pins span, .tq-zones span { font-size: 10.5px; }
  .tq-game { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .tnw-item { flex-wrap: wrap; }
}
.tut-sec { margin-top: 22px; }
.tut-sec h4 { margin: 0 0 6px; font-size: 15px; color: var(--strong); }
.tut-sec p { margin: 0 0 8px; color: var(--text); font-size: 14.5px; line-height: 1.65; }   /* (the whole width: the user saw a column with empty space beside it) */
.tut-pyr { display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 14px 0; }
.tut-pyr > div { width: var(--w); display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); font-size: 13px; }
.tut-pyr > div:nth-child(2) { background: color-mix(in srgb, var(--accent) 15%, var(--surface-2)); } .tut-pyr > div:nth-child(3) { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); } .tut-pyr > div:nth-child(4) { background: color-mix(in srgb, var(--accent) 30%, var(--surface-2)); }
.tut-pyr b { color: var(--strong); white-space: nowrap; } .tut-pyr span { color: var(--muted); text-align: right; }
.tut-pts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.tut-pts > div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text); }
.tut-pts b.num { flex: none; min-width: 44px; font-size: 22px; font-weight: 800; text-align: center; }
.tut-pts .p15 b.num { color: var(--c-power, var(--yellow)); } .tut-pts .p10 b.num { color: var(--green); } .tut-pts .pn5 b.num { color: var(--red); } .tut-pts .p0 b.num { color: var(--muted); }
.tut-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.tut-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tut-steps li { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface-2); }
.tut-n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--strong); font-weight: 700; font-size: 13px; }
.tut-steps b { color: var(--strong); font-size: 14.5px; }
.tut-steps p { margin: 3px 0 8px; color: var(--text); font-size: 13.5px; line-height: 1.55; }
.tut-steps li > div > :last-child { margin-bottom: 0; }
.tut-shield { position: fixed; inset: 0; z-index: 10030; }
.tut-spot { position: fixed; z-index: 10031; border-radius: 12px; box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(5, 10, 20, 0.62); pointer-events: none; transition: left 0.3s cubic-bezier(.2,.9,.3,1), top 0.3s cubic-bezier(.2,.9,.3,1), width 0.3s, height 0.3s; }
.tut-tip { position: fixed; z-index: 10032; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); transition: left 0.3s cubic-bezier(.2,.9,.3,1), top 0.3s cubic-bezier(.2,.9,.3,1); }
.tut-tip > b { display: block; color: var(--strong); font-size: 15px; }
.tut-tip p { margin: 4px 0 12px; color: var(--text); font-size: 13.5px; line-height: 1.5; }
.tut-tip-k { color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.tut-tip-foot { display: flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  /* (the user: "fix the welcome on mobile. the top text doesnt show") 100vh is taller than a phone's visible screen (it counts
     the room under the browser's bars), so the window ran under them and its top was cut off: it fills the overlay, which is
     the visible screen, inside the notch and home bar */
  .tut-ovl { align-items: stretch; padding: max(10px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .tut-modal { width: 100%; height: auto; max-height: none; }
  .tut-top { flex-wrap: wrap; gap: 8px; padding: 10px 10px 8px 14px; }
  .tut-top > b { flex: 1; }
  .tut-tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .tut-tabs::-webkit-scrollbar { display: none; }
  .tut-tab { padding: 6px 12px; white-space: nowrap; }
  .tut-body { padding: 18px 16px 22px; }
  .tut-hello { align-items: flex-start; gap: 14px; } .tut-bulb { width: 48px; height: 48px; border-radius: 14px; } .tut-bulb svg { width: 24px; height: 24px; }
  .tut-choices { grid-template-columns: minmax(0, 1fr); }
  .tut-pts { grid-template-columns: minmax(0, 1fr); }
  .tut-pyr > div { width: 100% !important; flex-direction: column; gap: 0; } .tut-pyr span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .tut-modal { animation: none; } .tut-spot, .tut-tip { transition: none; } .tut-choice { transition: none; } }

/* ── (15.169) a passport stop (play.js renderStop / stopQuiz): the lesson, its quick checks, the stamp quiz ── */
/* (15.169) the stop's page uses the width: the lesson and, beside it, the stop's chapters and the quiz (the user: bad
   alignment and use of the page; the text sat indented under the chapter numbers in a narrow column) */
.pp-page { max-width: 1180px; margin: 0 auto; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; margin-top: 18px; }
.pp-grid .pp-lesson { margin-top: 0; }
.pp-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pp-side-k { font-size: 12.5px; font-weight: 700; color: var(--hue); }
.pp-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pp-toc a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.3; }
.pp-toc a:hover { background: var(--surface-2); color: var(--strong); }
.pp-toc a > span:not(.pp-chn) { flex: 1; min-width: 0; }
.pp-toc .pp-chn { width: 26px; height: 26px; font-size: 12.5px; }
.pp-tick { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line); }
.pp-toc a.done .pp-tick { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px var(--surface); }
.pp-side-go { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.pp-side-go b { color: var(--strong); font-size: 15px; } .pp-side-go .btn { margin-top: 6px; justify-content: center; }
.pp-grid ~ .pp-go { display: none; }
@media (max-width: 1080px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } .pp-side { display: none; } .pp-grid ~ .pp-go { display: flex; } .pp-page { max-width: 860px; } }
.pp-hero { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--hue) 14%, var(--surface)), var(--surface) 70%); }
.pp-hero-t { flex: 1; min-width: 0; }
.pp-k { color: var(--hue); font-size: 12.5px; font-weight: 700; }
.pp-hero h2 { margin: 4px 0 6px; font-size: 26px; color: var(--strong); text-wrap: balance; }
.pp-hero p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pp-stamp { flex: none; width: 112px; height: 112px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2.5px dashed var(--line); color: var(--muted); text-align: center; transform: rotate(-8deg); padding: 10px; }
.pp-stamp span { font-weight: 800; font-size: 13px; line-height: 1.15; overflow-wrap: anywhere; }
.pp-stamp b { font-size: 11px; font-weight: 600; }
.pp-stamp i { font-style: normal; font-size: 10px; letter-spacing: 0.08em; }
.pp-stamp.got { border: 3px double var(--hue); color: var(--hue); background: color-mix(in srgb, var(--hue) 10%, transparent); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--hue) 8%, transparent); }
.pp-stamp.big { width: 150px; height: 150px; margin: 0 auto 10px; }
.pp-stamp.big span { font-size: 17px; }
.pp-stamp.thump { animation: pp-thump 0.55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pp-thump { from { transform: rotate(-8deg) scale(2.2); opacity: 0; } }
.pp-lesson { margin-top: 18px; padding: 6px 26px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pp-intro { margin: 18px 0 4px; font-size: 16.5px; line-height: 1.7; color: var(--strong); }
.pp-ch { display: block; padding: 22px 0 4px; border-top: 1px solid var(--line-soft); margin-top: 18px; scroll-margin-top: 16px; }
.pp-chh { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pp-chh h3 { margin: 0; font-size: 18px; color: var(--strong); }
.pp-chh .pp-dek { margin: 2px 0 0; }
.pp-chn { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--hue) 20%, var(--surface-2)); color: var(--strong); font-weight: 700; }
.pp-chb { flex: 1; min-width: 0; }
.pp-chb h3 { margin: 2px 0 2px; font-size: 18px; color: var(--strong); }
.pp-dek { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.pp-text { font-size: 15.5px; line-height: 1.75; color: var(--text); }
.pp-text p { margin: 0 0 12px; }
.pp-text b, .pp-text strong { color: var(--strong); background: color-mix(in srgb, var(--hue) 14%, transparent); padding: 0 3px; border-radius: 4px; }
.pp-check { margin: 8px 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.pp-check-k { font-size: 12px; font-weight: 700; color: var(--hue); margin-bottom: 4px; }
.pp-q { margin: 0 0 10px; color: var(--strong); font-size: 15px; line-height: 1.5; font-weight: 600; }
.pp-mcq.big .pp-q { font-size: 18px; margin: 6px 0 16px; }
.pp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pp-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.pp-opt:hover:not(:disabled) { border-color: color-mix(in srgb, var(--hue) 55%, var(--line)); }
.pp-opt:disabled { cursor: default; }
.pp-key { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.pp-opt.right { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: var(--strong); }
.pp-opt.wrong { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.pp-why { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.pp-mcq.ok .pp-why b { color: var(--green); } .pp-mcq.no .pp-why b { color: var(--red); }
.pp-go { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--hue) 40%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--hue) 8%, var(--surface)); }
.pp-go .pl-grow { display: flex; flex-direction: column; gap: 2px; }
.pp-go b { color: var(--strong); font-size: 15.5px; }
.pp-go-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--hue) 22%, var(--surface)); color: var(--hue); }
/* the quiz */
.pp-quiz { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.pp-qtop { display: flex; align-items: center; gap: 14px; }
.pp-qbar { flex: 1; height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pp-qbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width 0.4s cubic-bezier(.3,1.2,.5,1); }
.pp-qscore { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pp-qcard { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); min-height: 320px; display: flex; flex-direction: column; }
.pp-qk { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pp-tag { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text); }
.pp-tag.mcq { color: #2f7fd6; background: color-mix(in srgb, #2f7fd6 14%, var(--surface)); } .pp-tag.tu { color: #d6862f; background: color-mix(in srgb, #d6862f 14%, var(--surface)); } .pp-tag.bonus { color: #9a5bd6; background: color-mix(in srgb, #9a5bd6 14%, var(--surface)); }
.pp-read { min-height: 7.2em; margin: 6px 0 12px; font-size: 17px; line-height: 1.7; color: var(--strong); }
.pp-read.held::after { content: ""; display: inline-block; width: 0.6em; height: 0.72em; margin-left: 0.4em; box-sizing: border-box; border-left: 0.18em solid var(--muted); border-right: 0.18em solid var(--muted); vertical-align: -0.04em; }   /* paused: two bars drawn (no emoji) */
.pp-pmark { color: var(--c-power, var(--yellow)); font-weight: 700; }
.pp-ans { display: flex; gap: 8px; margin: 4px 0 8px; }
.pp-ans .pp-in { height: 42px; font-size: 15px; }
.pp-ans .btn { height: 42px; }
.pp-qslot { margin-top: auto; }
.pp-qfoot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; }
.pp-qfoot > .pl-sub { flex: 1; min-width: 0; }
.pp-verdict { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.pp-verdict.ok { background: color-mix(in srgb, var(--green) 14%, var(--surface)); } .pp-verdict.ok b { color: var(--green); }
.pp-verdict.no { background: color-mix(in srgb, var(--red) 11%, var(--surface)); } .pp-verdict.no b { color: var(--red); }
.pp-verdict.sm { margin: 2px 0 10px; padding: 8px 12px; font-size: 13.5px; }
.pp-lead { margin: 6px 0 12px; font-size: 16px; line-height: 1.6; color: var(--strong); }
.pp-part p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.pp-pn { color: var(--muted); font-size: 13px; margin-right: 4px; }
.pp-result { text-align: center; padding: 10px 0 0; }
.pp-result h2 { margin: 8px 0 2px; font-size: 24px; color: var(--strong); }
.pp-rnum { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.pp-result .pp-qfoot { margin-top: 18px; text-align: left; }
@media (max-width: 640px) {
  .pp-hero { flex-direction: column-reverse; align-items: flex-start; padding: 18px; }
  .pp-stamp { width: 88px; height: 88px; align-self: flex-end; margin-top: -8px; }
  .pp-hero h2 { font-size: 22px; }
  .pp-lesson { padding: 4px 16px 18px; }
  .pp-ch { gap: 10px; } .pp-chn { width: 26px; height: 26px; font-size: 13px; }
  .pp-opts { grid-template-columns: minmax(0, 1fr); }
  .pp-qcard { padding: 18px 16px; }
  .pp-go { flex-wrap: wrap; } .pp-go .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pp-stamp.thump { animation: none; } .pp-qbar i { transition: none; } }

/* (15.169) Christmas pages, tidied: the squads' rows line up, the mailroom card spans the row, the rope's tally on a phone */
.pl-squads { display: flex; flex-direction: column; gap: 6px; }
.pl-sq { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px 72px; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; }
.pl-sq.me { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.pl-sq-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pl-sq-name b { color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sq-home { justify-self: end; white-space: nowrap; }
.pl-sq .pl-sq-n { min-width: 0; text-align: right; color: var(--strong); }
.pl-sq-act { display: flex; justify-content: flex-end; }
.pl-sq-act .btn { width: 100%; justify-content: center; }
.pl-sq-mine { font-size: 12px; font-weight: 600; color: var(--accent); }
.pl-grid.xm > .pl-mailcard { grid-column: 1 / -1; }
.ml-mini { gap: 28px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .pl-sq { grid-template-columns: minmax(0, 1fr) 48px 64px; row-gap: 4px; }
  .pl-sq-home { grid-column: 1; grid-row: 2; justify-self: start; white-space: normal; }
  .pl-sq-name { grid-column: 1; grid-row: 1; }
  .pl-sq .pl-sq-n { grid-column: 2; grid-row: 1 / span 2; }
  .pl-sq-act { grid-column: 3; grid-row: 1 / span 2; }
  .pl-rope-row { flex-wrap: wrap; row-gap: 4px; }
  .pl-rope-row > .pl-sub { order: 3; width: 100%; text-align: center; }
  .pl-rope-row > .pl-sp { display: none; }
  .pl-rope-row > :last-child { margin-left: auto; }
}

/* (15.169) a chapter's lesson in three parts: each under its heading, paragraphs apart */
.pl-read h4 { margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 15.5px; color: var(--strong); }
.pl-read h4:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pl-read p { margin: 0 0 10px; }
.pl-read p:last-child { margin-bottom: 0; }

/* (15.169) the mailroom with an empty sack: no letter until there's a present to ship */
.ml-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; text-align: center; }
.ml-empty h3 { margin: 6px 0 0; font-size: 18px; color: var(--strong); }
.ml-empty .pl-sub { max-width: 42ch; margin: 0 0 8px; }

/* ── (round 5) Santa's Quest as stories: the story card keeps one size from its first line to its last (the user:
   popups stay the same size through everything in them); a stage for what's shown or the task, the person's words
   under it, the button at the bottom; the bar after an answer lies over the bottom of the card ── */
.np-panel.story { align-items: flex-end; padding: 12px 12px max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px)); pointer-events: auto; background: linear-gradient(rgba(20, 40, 70, 0) 35%, rgba(20, 40, 70, 0.28)); }
.np-scard { position: relative; pointer-events: auto; width: min(780px, 100%); height: min(610px, calc(100% - 64px)); display: flex; flex-direction: column; background: var(--np-card); border: 2px solid var(--np-line); border-bottom-width: 5px; border-radius: 22px; overflow: hidden; animation: np-card 0.32s cubic-bezier(.2,1.2,.4,1) both; }
.np-sstage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px 20px 10px; overflow-y: auto; background: #f7f9fc; }
.np-sstage > svg, .np-sstage .np-art, .np-sstage .np-lat { display: block; width: auto; height: 100%; max-width: 100%; max-height: 100%; }
.np-scard.see { background: transparent; border-color: rgba(255, 255, 255, 0.9); }
.np-scard.see .np-sstage { background: transparent; }
.np-scard.see .np-sline, .np-scard.see .np-sfoot { background: var(--np-card); }
/* (a phone: the task strip sits over the top of the card, so while the card is a window on the world it steps aside) */
@media (max-width: 760px) { .np-root:has(.np-scard.see) .np-tasks { visibility: hidden; } }
.np-sstage.sky { background: #eef2fb; } .np-sstage.lat { background: #eef2fb; } .np-sstage.task { align-items: flex-start; background: #fff; }
.np-sline { flex: 0 0 auto; height: 140px; display: flex; gap: 14px; align-items: flex-start; padding: 12px 20px 4px; border-top: 2px solid var(--np-line); }
.np-sface { flex: none; display: block; }
.np-sface .np-face { display: block; width: 62px; height: 62px; margin: 0; }
.np-sline-t { flex: 1; min-width: 0; height: 100%; overflow-y: auto; }
.np-stext { margin: 2px 0 0; font-size: 18px; font-weight: 800; line-height: 1.45; color: var(--np-ink); }
.np-sfoot { flex: 0 0 64px; display: flex; align-items: center; gap: 12px; padding: 0 20px 12px; }
.np-spacer { flex: 1; }
.np-sfoot .np-btn { min-width: 150px; }
.np-scard > .np-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 18px; border-top: 2px solid rgba(0, 0, 0, 0.05); }
.np-scard > .np-sheet .np-sheet-in { max-width: none; }
/* a task in the stage */
.np-task { width: 100%; max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; min-height: 100%; }
.np-tq { margin: 0 0 12px; font-size: 20px; font-weight: 900; line-height: 1.35; color: var(--np-ink); text-wrap: balance; }
.np-task .np-opts { margin-top: 2px; }
.np-task.sky { align-items: center; }
/* the telescope's sky: one size whether it's shown or you're asked to tap a star (a fixed band for the question on top) */
.np-skywrap { width: 100%; height: 100%; max-width: none; margin: 0; display: grid; grid-template-rows: 58px minmax(0, 1fr); justify-items: center; align-items: center; min-height: 0; }
.np-skywrap > .np-tq { margin: 0; height: 58px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.np-skywrap > .np-sky { height: 100%; width: auto; max-width: 100%; aspect-ratio: 1; min-height: 0; margin: 0; }
.np-sstage.sky { padding-top: 6px; }
/* a person, big, when nothing else is shown */
.np-bigface { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.np-bigface .np-face { width: 132px; height: 132px; border-width: 6px; }
.np-bigface b { font-size: 20px; font-weight: 900; color: var(--np-ink); } .np-bigface > span:not(.np-face) { color: var(--np-sub); font-size: 14px; }
/* (round 6) the thing you found, on the card when you hand it over: its own picture, not a face */
.np-gotpic { width: 180px; height: 150px; display: grid; place-items: center; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.16)); }   /* (the user: "dont put it in a circle") the thing itself, no round frame */
.np-gotpic img { width: 100%; height: 100%; object-fit: contain; }
.np-gotpic svg { width: 120%; height: auto; }
@media (max-width: 760px) { .np-gotpic { width: 140px; height: 116px; } }
.np-gotit { padding: 6px 14px; border-radius: 99px; background: #fff3c4; color: #8a6500; font-weight: 900; }
/* what's shown: the sky drawing its lines, arrows and rings; pictures; a timeline; a quote; words */
.np-art-cap { font: 800 14px Nunito, sans-serif; fill: #4b4b4b; }
.np-sstage .np-art { border-radius: 4.5% / 6%; overflow: hidden; }
.np-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: np-draw 1.1s ease-out forwards; }
.np-skylines .np-draw:nth-child(2) { animation-delay: 0.12s; } .np-skylines .np-draw:nth-child(3) { animation-delay: 0.24s; } .np-skylines .np-draw:nth-child(4) { animation-delay: 0.36s; } .np-skylines .np-draw:nth-child(5) { animation-delay: 0.48s; } .np-skylines .np-draw:nth-child(6) { animation-delay: 0.6s; } .np-skylines .np-draw:nth-child(7) { animation-delay: 0.72s; }
@keyframes np-draw { to { stroke-dashoffset: 0; } }
.np-skyline { stroke: rgba(255, 214, 90, 0.85); stroke-width: 2; }
.np-skylabel { fill: #ffd24a; font: 900 15px Nunito, sans-serif; paint-order: stroke; stroke: #0c1430; stroke-width: 4px; }
.np-skyarrow { stroke: #ff9600; stroke-width: 3; stroke-dasharray: 8 6; animation: np-flow 0.9s linear infinite; }
@keyframes np-flow { to { stroke-dashoffset: -14; } }
.np-pulse { transform-box: fill-box; transform-origin: center; animation: np-pulse 1.4s ease-in-out infinite; }
@keyframes np-pulse { 50% { transform: scale(1.35); opacity: 0.6; } }
.np-trails { animation: np-trails 60s linear infinite; }
@keyframes np-trails { to { transform: rotate(360deg); } }
.np-art-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: np-art-draw 2.2s ease-out forwards; }
@keyframes np-art-draw { to { stroke-dashoffset: 0; } }
.np-tl { width: 100%; max-width: 640px; display: flex; align-items: flex-start; position: relative; padding-top: 28px; }
.np-tl::before { content: ""; position: absolute; left: 6%; right: 6%; top: 37px; height: 4px; border-radius: 2px; background: #d9dee8; }
.np-tl-i { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 6px; animation: np-card 0.4s var(--d) both; }
.np-tl-dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #1cb0f6; }
.np-tl-i b { font-size: 17px; font-weight: 900; color: var(--np-ink); } .np-tl-i span:last-child { font-size: 13.5px; color: var(--np-sub); line-height: 1.35; }
.np-tl-i.on .np-tl-dot { background: #ffc800; border-color: #e5a800; transform: scale(1.25); }
.np-quote { margin: 0; max-width: 560px; text-align: center; }
.np-quote blockquote { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.35; color: var(--np-ink); }
.np-quote blockquote::before { content: "“"; display: block; font-size: 64px; line-height: 0.6; color: #ffc800; }
.np-quote figcaption { margin-top: 12px; color: var(--np-sub); font-size: 15px; }
.np-words { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 620px; }
.np-words span { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 14px; border: 2px solid var(--np-line); border-bottom-width: 4px; background: #fff; animation: np-card 0.35s var(--d) both; }
.np-words b { font-size: 17px; font-weight: 900; color: var(--np-ink); } .np-words em { font-style: normal; color: var(--np-sub); font-size: 13.5px; }
/* the intro and a lesson part keep their size too */
.np-card.np-fixed.np-intro { height: min(560px, calc(100% - 40px)); }
.np-card.np-fixed.np-note { height: min(620px, calc(100% - 40px)); }
/* going through a door, or into a book and out again */
.np-fx { position: absolute; inset: 0; z-index: 60; pointer-events: auto; display: grid; place-items: center; overflow: hidden; }
.np-fx.fade { background: #0b1020; animation: np-fadein 0.4s ease both; }
.np-fx.fall, .np-fx.rise { background: radial-gradient(circle at 50% 50%, #fff8e6 0%, #f3d9a6 35%, #2b1d14 100%); animation: np-fadein 0.35s ease both; }
.np-fx i { position: absolute; left: var(--x); top: -20%; width: 70px; height: 92px; border-radius: 4px; background: #fffdf6; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); transform: rotate(var(--r)); animation: np-page 1.3s cubic-bezier(.4,0,.6,1) var(--d) both; }
.np-fx.rise i { animation-name: np-page-up; }
.np-fx b { position: relative; font: 900 28px Nunito, sans-serif; color: #5b3a12; text-shadow: 0 2px 0 #fff; animation: np-card 0.5s 0.2s both; }
.np-fx.out { opacity: 0; transition: opacity 0.4s; }
/* (round 5) the other ways in: notes, paint, snow, stars, a launch (pages are the default particles above) */
.np-fx.notes i { width: auto; height: auto; background: none; box-shadow: none; font: 900 46px Nunito, sans-serif; color: #5b3a12; }
.np-fx.paint { background: radial-gradient(circle at 50% 50%, #fffaf0 0%, #e9dcc0 45%, #4a3b2a 100%); }
.np-fx.paint i { width: 64px; height: 44px; border-radius: 50% 40% 55% 45%; background: var(--c); box-shadow: none; opacity: 0.85; }
.np-fx.swirl, .np-fx.rise.snow { background: radial-gradient(circle at 50% 50%, #ffffff 0%, #dfeefd 40%, #3b5f8a 100%); animation: np-fadein 0.35s ease both; }
.np-fx.snow i { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.9); animation-name: np-swirl; animation-duration: 1.4s; }
.np-fx.rise.snow i { animation-name: np-page-up; }
.np-fx.swirl b, .np-fx.rise.snow b { color: #1d3b63; }
.np-fx.fly { background: linear-gradient(180deg, #0b1330 0%, #1c2d5e 60%, #3a4f8f 100%); animation: np-fadein 0.35s ease both; }
.np-fx.fly i { top: var(--y); left: 110%; width: 90px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); box-shadow: none; transform: none; animation: np-streak 0.9s linear var(--d) infinite; }
.np-fx.fly b, .np-fx.launch b { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.np-fx.launch { background: radial-gradient(circle at 50% 110%, #ffd27a 0%, #ff7a2a 22%, #2a1a3a 60%, #0b1020 100%); animation: np-fadein 0.3s ease both, np-shake 0.12s linear 0.2s 8; }
.np-fx.launch i { top: auto; bottom: -10%; width: 40px; height: 60px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle, #fff3b0, #ff9a3c 60%, rgba(255, 90, 40, 0)); box-shadow: none; animation-name: np-flame; animation-duration: 1.2s; }
@keyframes np-swirl { from { transform: translate(0, 0) rotate(0); opacity: 0; } 20% { opacity: 1; } to { transform: translate(calc(50vw - var(--x)), 120vh) rotate(540deg); opacity: 0.2; } }
@keyframes np-streak { from { transform: translateX(0); } to { transform: translateX(-140vw); } }
@keyframes np-flame { from { transform: translateY(0) scale(1); opacity: 1; } to { transform: translateY(-60vh) scale(2.2); opacity: 0; } }
@keyframes np-shake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(3px, -2px); } 75% { transform: translate(-3px, 2px); } }
@keyframes np-fadein { from { opacity: 0; } }
@keyframes np-page { from { transform: translateY(0) rotate(var(--r)) scale(0.6); } to { transform: translateY(150vh) rotate(calc(var(--r) + 540deg)) scale(1.2); } }
@keyframes np-page-up { from { transform: translateY(150vh) rotate(var(--r)); } to { transform: translateY(-40vh) rotate(calc(var(--r) - 360deg)); } }
@media (max-width: 760px) {
  .np-scard { height: calc(100% - 62px); border-radius: 20px; }
  .np-sline { height: 200px; padding: 10px 14px 4px; gap: 10px; } .np-sface .np-face { width: 50px; height: 50px; }
  .np-stext { font-size: 16px; } .np-tq { font-size: 17.5px; }
  .np-sstage { padding: 12px 12px 8px; } .np-sfoot { padding: 0 14px 10px; } .np-sfoot .np-btn { min-width: 0; flex: 1; }
  .np-bigface .np-face { width: 96px; height: 96px; }
  .np-quote blockquote { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .np-draw { animation: none; stroke-dashoffset: 0; } .np-trails, .np-pulse, .np-skyarrow, .np-fx i { animation: none; } }

/* ── (round 5) a day's bonus round, on its own page like the site's Tossups ── */
.bq-page { max-width: 880px; margin: 0 auto; }
.bq-head { display: flex; align-items: flex-end; gap: 16px; margin: 6px 0 14px; }
.bq-k { color: var(--accent); font-size: 12.5px; font-weight: 700; }
.bq-head h2 { margin: 2px 0 4px; font-size: 26px; color: var(--strong); }
.bq-head .pl-sub { margin: 0; max-width: 60ch; }
.bq-score { margin-left: auto; text-align: right; flex: none; }
.bq-score b { display: block; font-size: 30px; color: var(--strong); line-height: 1; } .bq-score span { color: var(--muted); font-size: 13px; }
.bq-card { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; }
.bq-end { align-items: center; justify-content: center; text-align: center; min-height: 260px; }
.bq-end h3 { margin: 4px 0 0; font-size: 26px; color: var(--strong); }
.bq-gift { color: var(--accent); }
@media (max-width: 640px) { .bq-head { align-items: flex-start; gap: 12px; } .bq-head h2 { font-size: 22px; } .bq-score b { font-size: 26px; } .bq-score span { font-size: 12px; } .bq-card { padding: 22px 16px; } }

/* (2026-11-28; the user: "idk what to think about these icons", "i dont want descriptions here") the welcome's cards: a
   picture of each, its name under it */
.tut-choice { padding: 0; gap: 0; overflow: hidden; align-items: stretch; background: var(--surface-2); }
.tut-art { display: block; height: 92px; background: var(--art-bg); border-bottom: 1px solid var(--line-soft); }
.tut-art svg { display: block; width: 100%; height: 100%; }
.tut-choice > b { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 12px 14px 13px; font-size: 15px; color: var(--strong); }
.tut-choice > b svg { flex: none; color: var(--muted); transition: transform 0.2s, color 0.2s; }
.tut-choice:hover > b svg, .tut-choice:focus-visible > b svg { color: var(--strong); transform: translateX(3px); }
.tut-choice.c1 { --art-bg: color-mix(in srgb, #4b95e6 18%, var(--surface-2)); }
.tut-choice.c2 { --art-bg: color-mix(in srgb, #f6a945 20%, var(--surface-2)); }
.tut-choice.c3 { --art-bg: color-mix(in srgb, #3fb173 18%, var(--surface-2)); }   /* (solid: the user, "solid color will look better") */
.tut-art .a-win { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.tut-art .a-sep { stroke: var(--line); stroke-width: 1.5; }
.tut-art .a-tile { fill: var(--surface-2); }
.tut-art .a-hi { fill: color-mix(in srgb, #4b95e6 30%, var(--surface)); }
.tut-art .a-ring { fill: none; stroke: #4b95e6; stroke-width: 2.5; }
.tut-art .a-cur { fill: var(--strong); stroke: var(--surface); stroke-width: 1.4; stroke-linejoin: round; }
.tut-art .a-shadow { fill: #000; opacity: 0.18; }
.tut-art .a-card2 { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.tut-art .a-line { stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; }
/* What Is Quizbowl: a picture for each part, a line or two under it */
.tq-sec { margin-top: 22px; padding: 16px 18px 14px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface-2); }
.tq-sec h4 { margin: 0 0 12px; font-size: 15px; color: var(--strong); }
.tq-sec p { margin: 12px 0 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.tq-scene { display: block; width: 100%; height: auto; max-height: 120px; }
.tq-scene .s-floor { fill: var(--line-soft); } .tq-scene .s-desk { fill: color-mix(in srgb, #a06a3a 55%, var(--surface)); } .tq-scene .s-pod { fill: color-mix(in srgb, #7a5230 60%, var(--surface)); }
.tq-scene .s-head.a, .tq-scene .s-body.a { fill: #4b95e6; } .tq-scene .s-head.b, .tq-scene .s-body.b { fill: #e5484d; } .tq-scene .s-head.m, .tq-scene .s-body.m { fill: var(--muted); }
.tq-scene .s-buzz { fill: var(--line-strong); } .tq-scene .s-buzz.on { fill: #f6c945; } .tq-scene .s-ring { fill: none; stroke: #f6c945; stroke-width: 2; animation: tq-ring 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.tq-scene .s-paper { fill: var(--surface); } .tq-scene .s-wave { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
@keyframes tq-ring { from { opacity: 1; transform: scale(0.5); } to { opacity: 0; transform: scale(1.6); } }
/* a tossup as it's read: hard to easy left to right, the power mark, who buzzes where */
.tq-line { position: relative; padding: 26px 0 0; }
.tq-pins span { position: absolute; top: 0; left: var(--x); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--strong); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tq-pins span:first-child { transform: none; }
.tq-pins span:last-child { transform: translateX(-80%); }
.tq-pins svg { color: var(--pl-gold, #e0b23a); }
.tq-bar { position: relative; height: 16px; margin-top: 6px; border-radius: 99px; background: linear-gradient(90deg, #6e4bd6, #4b95e6 45%, #3fb173 75%, #c8e08a); }
.tq-pm { position: absolute; top: -5px; bottom: -5px; left: var(--x); width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--strong); }
.tq-pm b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; color: var(--c-power, #e0b23a); font-size: 12px; font-weight: 800; }
.tq-zones { position: relative; height: 34px; }
.tq-zones span { position: absolute; top: 18px; left: var(--a); width: calc(var(--b) - var(--a)); text-align: center; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* points: +15 before the power mark, +10 after it, 0 after the end; -5 for a wrong buzz while it's read */
.tq-ptbar { display: flex; gap: 4px; height: 46px; }
.tq-ptbar span { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.tq-ptbar b { font-size: 20px; font-weight: 800; }
.tq-ptbar .z15 { flex: 0 0 var(--w); background: color-mix(in srgb, #f6c945 26%, var(--surface)); color: color-mix(in srgb, #f6c945 50%, var(--strong)); }
.tq-ptbar .z10 { flex: 1 1 auto; background: color-mix(in srgb, #3fb173 24%, var(--surface)); color: color-mix(in srgb, #3fb173 55%, var(--strong)); }
.tq-ptbar .z0 { flex: none; justify-content: center; min-width: 46px; padding: 0; background: var(--surface); color: var(--muted); border: 1px dashed var(--line-strong); }
.tq-ptcap { display: flex; gap: 4px; margin-top: 4px; }
.tq-ptcap span { flex: 1 1 auto; padding: 0 4px; color: var(--muted); font-size: 11.5px; }
.tq-ptcap span:first-child { flex: 0 0 var(--w); }
.tq-ptcap span.z0 { flex: none; min-width: 46px; text-align: center; white-space: nowrap; }
.tq-neg { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, #e5484d 14%, var(--surface)); color: var(--text); font-size: 13px; }
.tq-neg .num { color: #e5484d; font-size: 18px; font-weight: 800; }
/* bonuses: three parts of 10 */
.tq-bonus { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tq-bonus span { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tq-bonus small { color: var(--muted); font-size: 11px; } .tq-bonus b { font-size: 20px; font-weight: 800; color: var(--strong); }
.tq-bonus span.tot { background: color-mix(in srgb, #3fb173 18%, var(--surface)); border-color: color-mix(in srgb, #3fb173 40%, var(--line)); }
.tq-bonus i { font-style: normal; color: var(--muted); font-weight: 800; }
/* a game: 20 tossups, a bonus dot under each one answered */
.tq-game { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 5px; }
.tq-game span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tq-game span::before { content: ""; width: 100%; aspect-ratio: 1; border-radius: 6px; background: #4b95e6; }
.tq-game span i { width: 7px; height: 7px; border-radius: 50%; background: #3fb173; }
.tq-game span.miss::before { background: var(--line-strong); } .tq-game span.miss i { visibility: hidden; }
/* an answer line: what to say, what's also right, what gets a prompt */
.tq-ans { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.tq-ans-k { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.tq-ans-v b { color: var(--strong); }
.tq-ans-keys { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tq-ans-keys span { padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.tq-ans-keys .say { background: color-mix(in srgb, #3fb173 20%, var(--surface)); color: color-mix(in srgb, #3fb173 55%, var(--strong)); }
.tq-ans-keys .ok { background: color-mix(in srgb, #4b95e6 18%, var(--surface)); color: color-mix(in srgb, #4b95e6 55%, var(--strong)); }
.tq-ans-keys .pr { background: color-mix(in srgb, #f6c945 22%, var(--surface)); color: color-mix(in srgb, #f6c945 45%, var(--strong)); }
/* what comes up: about how much of a packet */
.tq-comes { display: grid; gap: 6px; }
.tq-comes div { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 10px; }
.tq-comes span { color: var(--text); font-size: 12.5px; }
.tq-comes i { display: block; height: 10px; width: var(--w); border-radius: 99px; background: var(--c); }
/* What's New */
.tnw { margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.tnw-art svg { display: block; width: 100%; height: auto; }
.tnw-head { padding: 14px 18px 4px; }
.tnw-head h4 { margin: 4px 0 0; font-size: 20px; color: var(--strong); }
.tnw-date { color: var(--muted); font-size: 12px; font-weight: 700; }
.tnw-pre { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--strong); font-size: 11px; font-weight: 700; }
.tnw-items { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 16px; }
.tnw-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); }
.tnw-item > div { flex: 1; min-width: 0; } .tnw-item b { color: var(--strong); font-size: 14px; } .tnw-item p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tnw-item .btn { width: auto; margin: 0; flex: none; }
.tnw-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, #e5484d 16%, var(--surface-2)); color: #e5484d; }
.tnw-item:nth-child(2) .tnw-ic { background: color-mix(in srgb, #4b95e6 16%, var(--surface-2)); color: #4b95e6; }
.tnw-item:nth-child(3) .tnw-ic { background: color-mix(in srgb, #3fb173 16%, var(--surface-2)); color: #3fb173; }
.tnw-item:nth-child(4) .tnw-ic { background: color-mix(in srgb, #f6c945 20%, var(--surface-2)); color: #c99a14; }
.tnw-item:nth-child(5) .tnw-ic { background: color-mix(in srgb, #bc8cff 18%, var(--surface-2)); color: #9a6be0; }
.tnw-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 60px; color: var(--muted); }
.tnw-empty svg { width: 34px; height: 34px; color: var(--pl-gold, #e0b23a); }
.tut-tab.dot { position: relative; }
.tut-tab.dot::after, #tb-tutorial.tut-has-new::after { content: ""; position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--red, #e5484d); box-shadow: 0 0 0 2px var(--surface); }
#tb-tutorial.tut-has-new { position: relative; }

/* (2026-11-28) the tossup pyramid: four bands of one blue, lighter toward the base; each named beside it; the power mark */
.tq-pyr { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.tq-pyr .tq-p1 { fill: #3d6fc4; } .tq-pyr .tq-p2 { fill: #4b88db; } .tq-pyr .tq-p3 { fill: #6aa3e8; } .tq-pyr .tq-p4 { fill: #94c0f2; }
.tq-pyr .tq-pt { fill: var(--strong); font: 700 15px var(--font); }
.tq-pyr .tq-ps { fill: var(--muted); font: 500 12.5px var(--font); }
.tq-pyr .tq-pm-l { stroke: var(--c-power, #e0b23a); stroke-width: 2; stroke-dasharray: 5 4; }
.tq-pyr .tq-pm-t { fill: var(--c-power, #e0b23a); font: 800 14px var(--font); }
/* points: a row each, the number in its color and when you get it */
.tq-pts2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tq-pts2 > div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); }
.tq-pts2 b { flex: none; display: grid; place-items: center; width: 52px; height: 40px; border-radius: 10px; font-size: 18px; font-weight: 800; color: #fff; }
.tq-pts2 .p15 b { background: #c99a14; } .tq-pts2 .p10 b { background: #2f9e63; } .tq-pts2 .n5 b { background: #d6404a; } .tq-pts2 .p0 b { background: var(--line-strong); color: var(--strong); }
.tq-pts2 span { display: flex; flex-direction: column; gap: 1px; min-width: 0; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tq-pts2 strong { color: var(--strong); font-size: 14px; }
/* an answer line as plain text; each part's name hangs under it in its color */
.tq-ans2 { padding: 14px 16px 36px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--muted); }
.tq-a { position: relative; color: var(--text); }
.tq-a b { color: var(--strong); font-weight: 800; }
.tq-a small { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tq-a.say small { background: color-mix(in srgb, #2f9e63 20%, var(--surface)); color: color-mix(in srgb, #2f9e63 60%, var(--strong)); }
.tq-a.ok small { background: color-mix(in srgb, #4b88db 20%, var(--surface)); color: color-mix(in srgb, #4b88db 60%, var(--strong)); }
.tq-a.pr small { background: color-mix(in srgb, #c99a14 22%, var(--surface)); color: color-mix(in srgb, #c99a14 55%, var(--strong)); }
@media (max-width: 680px) { .tq-pts2 { grid-template-columns: minmax(0, 1fr); } }

/* (2026-11-28; the user: "on mobile the boxes up top kinda cover everything") a phone's top: one slim row, the place's list
   as a thin strip under it, the day's aim a line under that */
@media (max-width: 760px) {
  .np-top { padding-top: max(10px, env(safe-area-inset-top, 0px)); padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); gap: 8px; }
  .np-x { width: 36px; height: 36px; border-radius: 11px; } .np-x svg { width: 18px; height: 18px; }
  .np-daychip { height: 36px; border-radius: 11px; } .np-daychip b { font-size: 14px; } .np-daychip button { width: 22px; height: 30px; font-size: 18px; }
  .np-progress { height: 12px; }
  .np-tasks { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 44px); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); padding: 5px 10px; border-width: 1.5px 1.5px 2.5px; border-radius: 12px; background: rgba(255, 255, 255, 0.9); }
  .np-tasks-w { display: none; }
  .np-list { font-size: 12px; } .np-list li i { width: 16px; height: 16px; border-width: 2px; }
}
/* the joystick: see-through, bottom left, on a touch screen; the action button moves to the bottom right */
.np-joy { position: absolute; left: max(22px, env(safe-area-inset-left, 0px)); bottom: max(26px, calc(env(safe-area-inset-bottom, 0px) + 16px)); width: 124px; height: 124px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); border: 2px solid rgba(255, 255, 255, 0.38); box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.12); touch-action: none; -webkit-user-select: none; user-select: none; z-index: 3; transition: opacity 0.2s; }
.np-joy i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, 0.42); border: 2px solid rgba(255, 255, 255, 0.65); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22); transition: transform 0.14s ease-out; pointer-events: none; }
.np-joy.on { background: rgba(255, 255, 255, 0.2); } .np-joy.on i { transition: none; background: rgba(255, 255, 255, 0.6); }
.np-joy.off { opacity: 0; pointer-events: none; }
.np-root.np-touch .np-prompt { left: auto; right: max(18px, env(safe-area-inset-right, 0px)); transform: none; max-width: calc(100% - 190px); }
.np-root.np-touch .np-prompt:active { transform: translateY(3px); }

/* (2026-11-28; the user: "not the best use of space") a story card on a phone: the speaker's line as tall as its words, no
   empty button row, the task taking the rest; the place's list and the day's aim step aside while a card is open */
@media (max-width: 760px) {
  .np-sline { height: auto; max-height: 36%; min-height: 76px; overflow-y: auto; }
  .np-sline-t { height: auto; overflow: visible; }
  .np-sfoot:not(:has(.np-btn:not([hidden]))) { display: none; }
  .np-root:has(.np-scard) .np-tasks, .np-root:has(.np-scard) .np-goal { visibility: hidden; }
  /* a task (not the sky, a picture or a window on the world) is as tall as it needs, at the bottom, the place above it */
  .np-scard:has(> .np-sstage.task:not(.sky)) { height: auto; max-height: calc(100% - 62px); }
  .np-scard:has(> .np-sstage.task:not(.sky)) > .np-sstage { flex: 0 1 auto; }
}
