/* AI-julekalenderen: the app. Design v2: a calm winter night for the home page and the board (big type, 3D art,
   almost no boxes), and a white Apple-style page for the open door (the sheet). */

/* ---------- Scene ---------- */
body { background: var(--night-0); overflow-x: hidden; }
body.sheet-open { overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: #fff; color: #1d1d1f; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1100px 640px at 78% -14%, rgba(52, 80, 154, .40), transparent 62%),
    radial-gradient(900px 560px at 6% 2%, rgba(15, 123, 75, .14), transparent 64%),
    linear-gradient(180deg, var(--night-1) 0%, #070b1a 52%, var(--night-0) 100%);
}
.stars { position: absolute; inset: 0; opacity: .75;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 22% 8%, #fff 60%, transparent 61%),
    radial-gradient(1.4px 1.4px at 34% 26%, #fff8e0 60%, transparent 61%), radial-gradient(1px 1px at 46% 12%, #fff 60%, transparent 61%),
    radial-gradient(1.2px 1.2px at 58% 30%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 66% 6%, #fff 60%, transparent 61%),
    radial-gradient(1.6px 1.6px at 78% 22%, #fff3cf 60%, transparent 61%), radial-gradient(1px 1px at 88% 14%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 94% 34%, #fff 60%, transparent 61%), radial-gradient(1.2px 1.2px at 6% 38%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 28% 44%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 52% 48%, #fff 60%, transparent 61%),
    radial-gradient(1.3px 1.3px at 72% 42%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 84% 52%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 16% 58%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 40% 62%, #fff 60%, transparent 61%);
}
.twinkle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 244, 210, .7); animation: twinkle 4.8s ease-in-out infinite; }
.twinkle:nth-child(2) { left: 18%; top: 14%; animation-delay: -1.2s; }
.twinkle:nth-child(3) { left: 63%; top: 9%; animation-delay: -2.6s; }
.twinkle:nth-child(4) { left: 86%; top: 27%; animation-delay: -3.4s; }
.twinkle:nth-child(5) { left: 38%; top: 33%; animation-delay: -0.4s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.hero .moon { position: absolute; right: clamp(20px, 9vw, 160px); top: clamp(4px, 3vw, 44px); width: clamp(34px, 3.4vw, 46px); height: clamp(34px, 3.4vw, 46px); border-radius: 50%; box-shadow: inset -10px 3px 0 0 #fff3d1; filter: drop-shadow(0 0 16px rgba(255, 236, 190, .4)); transform: rotate(-18deg); opacity: .9; pointer-events: none; animation: rv-in 1.2s var(--ease-out) .3s backwards; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 70vh; filter: blur(50px); opacity: .38; mix-blend-mode: screen; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 38s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 55vw; height: 22vh; left: 4%; top: 22%; background: radial-gradient(closest-side, rgba(47, 211, 154, .55), transparent); transform: rotate(-12deg); }
.aurora i:nth-child(2) { width: 48vw; height: 18vh; left: 34%; top: 12%; background: radial-gradient(closest-side, rgba(62, 199, 214, .45), transparent); animation-duration: 46s; animation-delay: -12s; }
.aurora i:nth-child(3) { width: 40vw; height: 20vh; left: 58%; top: 26%; background: radial-gradient(closest-side, rgba(139, 92, 246, .4), transparent); animation-duration: 52s; animation-delay: -20s; }
@keyframes drift { 0% { transform: translate3d(-4%, 0, 0) rotate(-10deg) scale(1); } 100% { transform: translate3d(6%, 4%, 0) rotate(6deg) scale(1.15); } }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: calc(6px + var(--safe-t)) clamp(12px, 4vw, 32px) 6px; transition: background-color var(--t-med), backdrop-filter var(--t-med); }
.top.scrolled { background: rgba(5, 7, 13, .72); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; min-width: 0; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(160deg, #22356a, #0d1736); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-name b { font-weight: 700; }
.brand-year { margin-left: .3em; color: var(--ink-3); font-weight: 500; }
.lang { display: inline-flex; padding: 2px; border-radius: var(--r-pill); background: rgba(245, 245, 247, .08); }
.lang a { position: relative; min-width: 44px; height: 32px; display: grid; place-items: center; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); text-decoration: none; transition: background-color var(--t-med), color var(--t-med); }
.lang a::after { content: ""; position: absolute; inset: -6px 0; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: rgba(245, 245, 247, .16); color: var(--ink); }
.top .jk-btn.icon { width: 44px; height: 44px; min-height: 44px; border-radius: 50%; background: rgba(245, 245, 247, .08); }
.top .jk-btn.icon:hover { background: rgba(245, 245, 247, .14); }
.preview-badge { display: none; flex: none; padding: 4px 10px; border-radius: var(--r-pill); background: var(--st-frontier); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.is-preview .preview-badge { display: inline-flex; }
@media (max-width: 420px) { .brand-year { display: none; } .brand-name { font-size: .875rem; } }
@media (max-width: 520px) { .is-preview .brand-name { display: none; } }

/* ---------- Hero: a floating trio of 3D art, one big headline, one action ---------- */
main { position: relative; z-index: 2; }
.hero { position: relative; z-index: 2; padding: clamp(0px, 2vw, 24px) 24px 0; text-align: center; }
.hero-art { position: relative; width: clamp(264px, 34vw, 410px); aspect-ratio: 1.6; margin: 0 auto clamp(10px, 2vw, 22px); pointer-events: none; }
.hero-art .glow { position: absolute; left: 50%; top: 56%; width: 74%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 210, 122, .26), rgba(255, 210, 122, .07) 58%, transparent); }
.hero-art .ha { position: absolute; display: block; transform: translate3d(0, calc(var(--sy, 0) * var(--k, .2) * 1px), 0); }
.hero-art .bob { display: block; animation: bob 6s ease-in-out infinite; }
.hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .45)); animation: art-pop .9s var(--ease-spring) backwards; }
.ha-c { z-index: 2; left: 50%; bottom: 2%; width: 52%; margin-left: -26%; --k: .1; }
.ha-l { left: 3%; bottom: 3%; width: 32%; --k: .28; }
.ha-r { right: 4%; bottom: 7%; width: 30%; --k: .2; }
.ha-l .bob { animation-delay: -2s; animation-duration: 6.6s; }
.ha-r .bob { animation-delay: -4s; animation-duration: 5.6s; }
.ha-c img { animation-delay: .05s; }
.ha-l img { animation-delay: .18s; }
.ha-r img { animation-delay: .28s; }
.hero-copy { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }
.hero-copy > :is(.hero-eyebrow, h1, .hero-sub) { animation: rv-in .7s var(--ease-out) backwards; }
.hero-copy > h1 { animation-delay: .08s; }
.hero-copy > .hero-sub { animation-delay: .16s; }
.hero-eyebrow { margin: 0 0 14px; font-size: clamp(.9375rem, .88rem + .3vw, 1.1875rem); font-weight: 600; color: var(--gold-hi); }
.hero h1 { margin: 0 auto; max-width: 14ch; font-size: var(--fs-hero); line-height: 1.02; }
@media (min-width: 760px) { .hero h1 { max-width: 18ch; } .hero-sub { max-width: 46ch; } }
.hero h1 em { background: linear-gradient(100deg, #fff0c8 0%, var(--gold-hi) 38%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.hero-sub { margin: 20px auto 0; max-width: 32ch; font-size: clamp(1.125rem, 1rem + .7vw, 1.5rem); line-height: 1.4; color: var(--ink-2); text-wrap: balance; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 26px; min-height: 52px; margin: 32px 0 0; }
.hero-ctas > * { animation: rv-in .6s var(--ease-out) backwards; }
.hero-ctas > :nth-child(2) { animation-delay: .06s; }

.today { display: flex; justify-content: center; margin: clamp(28px, 5vw, 44px) 0 0; }
.today-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) 20px; align-items: center; gap: 14px; width: min(100%, 420px); min-height: 80px; margin: 0; padding: 12px 18px 12px 12px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .07); color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); transition: background-color var(--t-med), transform var(--t-med) var(--ease-out); animation: rv-in .6s var(--ease-out) .1s backwards; }
button.today-card:hover { background: rgba(255, 255, 255, .11); }
button.today-card:active { transform: scale(.98); }
.tc-art { display: block; width: 56px; height: 56px; }
.tc-art .bob { display: block; animation: bob 5s ease-in-out infinite; }
.tc-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.tc-txt { display: grid; gap: 3px; min-width: 0; }
.tc-label { font-size: .8125rem; font-weight: 600; color: var(--gold-hi); }
.tc-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-go { width: 20px; height: 20px; color: var(--ink-3); transition: transform var(--t-med) var(--ease-out); }
button.today-card:hover .tc-go { transform: translateX(3px); color: var(--ink); }
.today-card.is-count { grid-template-columns: 1fr; justify-items: center; gap: 12px; width: auto; padding: 18px 30px 16px; text-align: center; cursor: default; }
.countdown { display: flex; gap: clamp(16px, 4vw, 28px); }
.countdown span { display: grid; justify-items: center; min-width: 2ch; }
.countdown b { font-size: clamp(2.125rem, 1.7rem + 2vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.countdown small { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- The village: lit windows for the doors you have opened ---------- */
.village-wrap { position: relative; z-index: 1; height: clamp(120px, 17vw, 230px); margin-top: clamp(28px, 6vw, 64px); pointer-events: none; }
.village { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
.v-hill3 { fill: #0f1a3c; } .v-hill2 { fill: #0b1532; } .v-hill1 { fill: #080f26; }
.v-snowcap { fill: none; stroke: rgba(220, 232, 255, .28); stroke-width: 2; }
.v-tree polygon { fill: #0a132e; } .v-tree.far polygon { fill: #0e1838; } .v-tree.near polygon { fill: #070c20; }
.v-trunk { fill: #070c20; }
.v-snowline { fill: none; stroke: rgba(220, 232, 255, .5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-tree.far .v-snowline { stroke-width: 1.4; opacity: .5; }
.v-snow { fill: rgba(232, 240, 255, .8); }
.v-roofsnow { fill: none; stroke: rgba(232, 240, 255, .78); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.v-wall { fill: #17244c; } .v-wall.b { fill: #142046; } .v-wall.c { fill: #1a2852; }
.v-roof { fill: #0b132c; }
.v-church-wall { fill: #1e2d5c; } .v-church-roof { fill: #0b132c; } .v-church-slit, .v-church-door { fill: #080f26; }
.win rect, .win circle, .win > path:first-child { fill: #0a1128; transition: fill .8s var(--ease-out); }
.win path { fill: none; stroke: rgba(0, 0, 0, .4); stroke-width: 1.2; }
.win.arch > path:first-child { stroke: none; }
.win.lit rect, .win.lit circle, .win.lit > path:first-child { fill: var(--gold-hi); }
.win.lit { filter: url(#winglow); }
.win.just-lit { animation: winpop 1.2s var(--ease-out); }
@keyframes winpop { 0% { opacity: .2; } 40% { opacity: 1; } 60% { opacity: .7; } 100% { opacity: 1; } }

/* ---------- Sections: whitespace, not lines ---------- */
.sec { padding: var(--sec) 24px; }
.sec-in { max-width: var(--max); margin: 0 auto; }
.sec-head { max-width: 780px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.sec-head h2 { margin: 0; font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.sec-head p { margin: 16px auto 0; max-width: 42ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.45; color: var(--ink-3); text-wrap: balance; }
.cal { padding-top: clamp(16px, 3vw, 40px); }
.village-line { max-width: 46ch; margin: 36px auto 0; text-align: center; font-size: .9375rem; color: var(--ink-3); }
.village-line .lit-count { color: var(--gold-hi); font-weight: 600; white-space: nowrap; }

/* ---------- The board: festive tiles, 3D art behind the open doors ---------- */
.board { --cols: 4; --gap: 8px; container-type: inline-size; max-width: 980px; margin: 0 auto; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: 78px; grid-auto-rows: calc((100cqw - var(--gap) * (var(--cols) - 1)) / var(--cols)); }
@media (min-width: 560px) { .board { --cols: 6; --gap: 12px; } }
@media (min-width: 900px) { .board { --gap: 14px; } }

@property --door-r { syntax: '<length>'; inherits: true; initial-value: 16px; }
.door { --c1: #ef3343; --c2: #b8101f; --fg: #fff; --door-r: clamp(14px, 2.4cqw, 24px); container-type: size; position: relative; display: block; margin: 0; padding: 0; border: 0; border-radius: var(--door-r); color: var(--fg); font: inherit; text-align: left; cursor: pointer; isolation: isolate; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(155deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .14), 0 14px 28px -14px rgba(0, 0, 0, .7);
  transition: transform .45s var(--ease-out), filter var(--t-med), box-shadow var(--t-med); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 85% at 18% 0%, rgba(255, 255, 255, .26), transparent 56%); }
.door:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (hover: hover) { .door:hover { transform: translateY(-3px); } }
.door:active { transform: scale(.97); transition-duration: .12s; }
.door .num { position: absolute; left: 0; top: 0; padding: 9cqmin 0 0 10cqmin; font-family: var(--font-sans); font-weight: 700; font-size: 26cqmin; line-height: .9; letter-spacing: -.05em; }
.door.is-locked .num { inset: 0; display: grid; place-items: center; padding: 0; font-size: 46cqmin; text-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.door .lockic { position: absolute; right: 9cqmin; top: 9cqmin; width: clamp(11px, 12cqmin, 15px); height: clamp(11px, 12cqmin, 15px); opacity: .6; }
.door .dart { position: absolute; right: 5cqmin; bottom: 5cqmin; width: 66cqmin; aspect-ratio: 1; pointer-events: none; }
.door .dart .bob { display: block; width: 100%; height: 100%; }
.door .dart img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4cqmin 5cqmin rgba(0, 0, 0, .3)); }
.door.is-open:not(.is-visited) .dart .bob { animation: tile-bob 5.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.73s); }
@keyframes tile-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5%) rotate(-2deg); } }
@container (aspect-ratio > 1.5) { .door .dart { width: auto; height: 84cqh; right: 7cqw; bottom: 8cqh; } }
@container (aspect-ratio < .67) { .door .dart { width: 84cqw; right: 8cqw; bottom: 7cqh; } }
.door .badge { position: absolute; left: 50%; bottom: -9px; z-index: 3; transform: translateX(-50%); padding: 3px 9px; border-radius: var(--r-pill); background: #fff; color: #1d1d1f; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.door .newdot { position: absolute; right: 10cqmin; top: 10cqmin; z-index: 3; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px 1px currentColor; }

/* tile colours: rich solids with a soft gradient; numbers >= 3:1 */
.t-red { --c1: #ef3343; --c2: #b8101f; --fg: #fff; }
.t-spruce { --c1: #1c9a62; --c2: #0b5c39; --fg: #fff; }
.t-night { --c1: #34509a; --c2: #18275a; --fg: #fff; }
.t-berry { --c1: #b83a6e; --c2: #6f1739; --fg: #fff; }
.t-cream { --c1: #fffaf0; --c2: #efe2c8; --fg: #c8102e; }
.t-gold, .t-present { --c1: #ffd27a; --c2: #e39a1f; --fg: #9c0f22; }
.door .ribbon { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(50% - 7cqmin), #c8102e calc(50% - 7cqmin), #f0394a 50%, #c8102e calc(50% + 7cqmin), transparent calc(50% + 7cqmin)),
              linear-gradient(0deg, transparent calc(50% - 7cqmin), #c8102e calc(50% - 7cqmin), #f0394a 50%, #c8102e calc(50% + 7cqmin), transparent calc(50% + 7cqmin)); }
.door .bow { position: absolute; left: 50%; top: 50%; width: 46cqmin; height: auto; transform: translate(-50%, -64%); pointer-events: none; filter: drop-shadow(0 2cqmin 3cqmin rgba(0, 0, 0, .3)); }
.door.t-present.is-locked .num { place-items: end end; padding: 0 9cqmin 7cqmin 0; font-size: 24cqmin; }

/* states */
.door.is-locked { filter: saturate(.72) brightness(.8); }
.door.t-present.is-locked, .door.t-cream.is-locked, .door.t-gold.is-locked { filter: brightness(.84); }
@media (hover: hover) { .door.is-locked:hover { filter: saturate(.85) brightness(.9); } }
.door.is-locked.shake { animation: shake .5s var(--ease-out); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px) rotate(-1deg); } 40% { transform: translateX(5px) rotate(1deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.door.is-today { z-index: 2; }
.door.is-today::after { content: ""; position: absolute; inset: -4px; z-index: -2; border-radius: calc(var(--door-r) + 4px); pointer-events: none; box-shadow: 0 0 0 2px var(--gold-hi), 0 0 28px 4px rgba(245, 184, 61, .5); animation: halo 3.2s ease-in-out infinite; }
@keyframes halo { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.door.opening { animation: door-pop .43s var(--ease-out); }
.door.opening .dart .bob { animation: art-jump .43s var(--ease-out); }
@keyframes door-pop { 40% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes art-jump { 45% { transform: translateY(-14%) scale(1.14) rotate(-4deg); } }

/* ---------- How it works: four 3D objects, one line each ---------- */
.how-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 56px) clamp(16px, 4vw, 40px); max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 900px) { .how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.how-item { text-align: center; }
.how-item .art { display: block; width: clamp(88px, 11vw, 128px); height: auto; margin: 0 auto 20px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .4)); transition: transform .5s var(--ease-spring); }
@media (hover: hover) { .how-item:hover .art { transform: translateY(-4px) rotate(-4deg) scale(1.05); } }
.how-item h3 { margin: 0 0 8px; font-size: clamp(1.0625rem, .98rem + .45vw, 1.375rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.how-item p { max-width: 26ch; margin: 0 auto; font-size: .9375rem; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }

/* ---------- The theme song: one album, a record that spins while it plays ---------- */
.album { display: grid; justify-items: center; gap: clamp(32px, 5vw, 64px); max-width: 940px; margin: 0 auto; text-align: center; }
@media (min-width: 760px) { .album { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; text-align: left; } }
.album-art { position: relative; width: clamp(240px, 34vw, 340px); aspect-ratio: 1.3; }
.sleeve { position: absolute; left: 0; top: 0; z-index: 2; width: 77%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 22px; overflow: hidden;
  background: radial-gradient(110% 80% at 20% 0%, rgba(255, 255, 255, .24), transparent 55%), linear-gradient(150deg, #ef3343, #a8101f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 30px 60px -22px rgba(0, 0, 0, .75); }
.sleeve img { width: 64%; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); transition: transform .6s var(--ease-spring); }
@media (hover: hover) { .album:hover .sleeve img { transform: rotate(-6deg) scale(1.05); } }
.vinyl { position: absolute; right: 0; top: 4.5%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 20deg, rgba(255, 255, 255, .1), transparent 18%, transparent 32%, rgba(255, 255, 255, .08) 50%, transparent 68%, transparent 82%, rgba(255, 255, 255, .1)), repeating-radial-gradient(circle at 50% 50%, #0b0b10 0 2px, #16161d 2px 4px);
  box-shadow: 0 24px 44px -16px rgba(0, 0, 0, .7), inset 0 0 0 5px #0b0b10; transition: transform .8s var(--ease-out); }
.vinyl::after { content: ""; position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle, #0b0b10 0 6%, transparent 7%), linear-gradient(135deg, var(--gold-hi), var(--gold)); }
@media (hover: hover) { .album:hover .vinyl:not(.spin) { transform: translateX(6%) rotate(40deg); } }
.vinyl.spin { animation: spin 3.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.album-eyebrow { margin: 0 0 12px; font-size: .9375rem; font-weight: 600; color: var(--gold-hi); }
.album h2 { margin: 0; font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.album-lead { max-width: 34ch; margin: 16px auto 28px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.45; color: var(--ink-3); }
@media (min-width: 760px) { .album-lead { margin-left: 0; } }

/* ---------- Share ---------- */
.share .sec-head { margin-bottom: 32px; }
.share-art { display: block; width: clamp(88px, 10vw, 116px); height: auto; margin: 0 auto 24px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .4)); }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer: small and quiet, with room for the music player ---------- */
.foot { position: relative; z-index: 2; padding: clamp(40px, 6vw, 72px) 24px calc(120px + var(--safe-b)); }
.foot-in { display: grid; justify-items: center; gap: 12px; max-width: 64ch; margin: 0 auto; text-align: center; font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }
.foot-in p { margin: 0; }
.foot-in a:not(.ab-credit) { color: var(--ink-2); }
.foot-credits summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; }
.foot-credits summary::-webkit-details-marker { display: none; }
.foot-credits summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--t-med) var(--ease-out); }
.foot-credits[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.foot-credits p { margin: 2px 0 8px; }
.foot .ab-credit { margin-top: 10px; min-height: 44px; }

/* ---------- Home motion off when asked ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-art .ha { transform: none; }
  .hero-art .bob, .hero-art img, .hero-copy > *, .hero-ctas > *, .hero .moon, .today-card, .tc-art .bob, .door .dart .bob, .door.is-today::after, .door.opening, .twinkle, .aurora i, .vinyl.spin { animation: none !important; }
  .door, .how-item .art, .sleeve img, .vinyl { transition: none; }
}

/* ---------- The open door (sheet): a white page with a full-bleed colour hero ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: stretch; }
.sheet-wrap[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(3, 7, 15, .56); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); opacity: 0; transition: opacity var(--t-slow) var(--ease-out); }
.sheet-wrap.in .sheet-back { opacity: 1; }
.sheet { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100dvh; overflow: hidden; background: var(--paper); color: var(--paper-ink); clip-path: inset(var(--ct, 40%) var(--cr, 40%) var(--cb, 40%) var(--cl, 40%) round 22px); transition: clip-path .64s var(--ease-out); }
.sheet-wrap.in .sheet { clip-path: inset(0 0 0 0 round 0); }
@media (min-width: 900px) {
  .sheet-wrap { place-items: center; }
  .sheet { width: min(1120px, calc(100vw - 48px)); height: calc(100dvh - 48px); border-radius: 28px; box-shadow: 0 40px 120px rgba(0, 0, 0, .55); }
  .sheet-wrap.in .sheet { clip-path: inset(0 0 0 0 round 28px); }
}
.sheet-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* The bar floats over the hero, then turns frosted white once the hero has scrolled away */
.sheet-bar { position: absolute; z-index: 5; top: 0; left: 0; right: var(--sbw, 0px); display: flex; align-items: center; gap: 8px; min-height: 64px; padding: calc(10px + var(--safe-t)) 12px 10px 20px; color: #fff; transition: background-color .3s var(--ease-out), box-shadow .3s, color .3s; }
.sheet-bar.on-light { color: var(--paper-ink); }
.sheet-bar.solid { color: var(--paper-ink); background: rgba(255, 255, 255, .82); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); }
.sheet-bar .pill { flex: 1; min-width: 0; margin-right: auto; font-size: var(--fs-small); font-weight: 600; letter-spacing: -.01em; }
.sheet-bar .pill-txt { display: grid; grid-template-columns: minmax(0, 1fr); }
.sheet-bar .pill-txt > span { grid-area: 1 / 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity .28s var(--ease-out), transform .28s var(--ease-out); }
.sheet-bar .pd { opacity: .88; }
.sheet-bar .pt { opacity: 0; transform: translateY(8px); }
.sheet-bar .pt b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-right: 8px; padding: 0 6px; border-radius: var(--r-pill); background: var(--paper-red); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; vertical-align: 1px; }
.sheet-bar.solid .pd { opacity: 0; transform: translateY(-8px); }
.sheet-bar.solid .pt { opacity: 1; transform: none; }
.sheet-bar .jk-btn.icon { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; --b-bg: rgba(255, 255, 255, .18); --b-fg: #fff; --b-hover: rgba(255, 255, 255, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sheet-bar.on-light .jk-btn.icon, .sheet-bar.solid .jk-btn.icon { --b-bg: rgba(0, 0, 0, .06); --b-fg: var(--paper-ink); --b-hover: rgba(0, 0, 0, .1); }
.sheet-bar .jk-btn.icon svg { width: 20px; height: 20px; }
.sheet-bar :focus-visible { outline-color: currentColor; }

/* Hero */
.sheet-hero {
  --h-bg: #d71a2c; --h-bg2: #a10f20; --h-fg: #fff; --h-fg2: rgba(255, 255, 255, .88); --h-chip: rgba(255, 255, 255, .18); --h-hi: rgba(255, 255, 255, .2);
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: var(--h-fg);
  padding: calc(76px + var(--safe-t)) 24px clamp(52px, 8vw, 80px);
  background: radial-gradient(90% 70% at 50% 18%, var(--h-hi), transparent 62%), linear-gradient(180deg, var(--h-bg), var(--h-bg2));
}
.sheet-hero.t-red { --h-bg: #d71a2c; --h-bg2: #a10f20; }
.sheet-hero.t-spruce { --h-bg: #0f7b4b; --h-bg2: #09553a; --h-hi: rgba(255, 255, 255, .16); }
.sheet-hero.t-night { --h-bg: #1b2b57; --h-bg2: #0b1430; --h-hi: rgba(139, 160, 255, .24); }
.sheet-hero.t-berry { --h-bg: #9b2457; --h-bg2: #5e1234; --h-hi: rgba(255, 190, 220, .2); }
.sheet-hero.t-cream, .sheet-hero.t-gold, .sheet-hero.t-present { --h-fg: var(--paper-ink); --h-fg2: #2c2c2e; --h-chip: rgba(0, 0, 0, .07); --h-hi: rgba(255, 255, 255, .55); }
.sheet-hero.t-cream { --h-bg: #f6efe2; --h-bg2: #eadcc3; }
.sheet-hero.t-gold, .sheet-hero.t-present { --h-bg: #f7c255; --h-bg2: #e39a1f; }
.dh-in { position: relative; max-width: 760px; margin: 0 auto; }
.dh-art { position: relative; width: clamp(168px, 30vw, 220px); aspect-ratio: 1; margin: 0 auto clamp(20px, 3vw, 28px); }
.dh-art .halo { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0)); }
.dh-art .main, .dh-art .acc { position: absolute; display: block; will-change: transform; }
.dh-art .main { inset: 0; transform: translate3d(0, calc(var(--sy, 0) * .2px), 0); }
.dh-art .acc { width: 34%; aspect-ratio: 1; transform: translate3d(0, calc(var(--sy, 0) * .38px), 0); }
.dh-art .acc-1 { left: -30%; top: 6%; }
.dh-art .acc-2 { right: -28%; bottom: 4%; width: 30%; }
.dh-art .bob { display: block; width: 100%; height: 100%; animation: bob 6s ease-in-out infinite; }
.dh-art .acc-1 .bob { animation-duration: 7s; animation-delay: -2.2s; }
.dh-art .acc-2 .bob { animation-duration: 8s; animation-delay: -4.4s; }
.dh-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .24)); }
.dh-art .acc img { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .18)); }
.dh-art .main img { animation: art-pop .9s var(--ease-spring) .1s backwards; }
.dh-art .acc-1 img { animation: acc-pop .8s var(--ease-spring) .32s backwards; }
.dh-art .acc-2 img { animation: acc-pop .8s var(--ease-spring) .42s backwards; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@keyframes art-pop { from { opacity: 0; transform: translateY(28px) scale(.72) rotate(-6deg); } }
@keyframes acc-pop { from { opacity: 0; transform: scale(.3) rotate(18deg); } }
.dh-copy > * { animation: rv-in .6s var(--ease-out) backwards; }
.dh-copy > :nth-child(2) { animation-delay: .06s; }
.dh-copy > :nth-child(3) { animation-delay: .12s; }
.dh-copy > :nth-child(4) { animation-delay: .18s; }
.dh-meta { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--h-fg2); }
.dh-meta .no { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px; border-radius: var(--r-pill); background: var(--h-chip); color: var(--h-fg); font-family: var(--font-festive); font-size: 1.125rem; font-weight: 600; font-variant-numeric: lining-nums; line-height: 1; }
.sheet-hero h1 { max-width: 20ch; margin: 14px auto 0; font-size: var(--fs-title); color: var(--h-fg); text-wrap: balance; }
.sheet-hero .dek { max-width: 34ch; margin: 16px auto 0; font-size: clamp(1.0625rem, .98rem + .5vw, 1.3125rem); line-height: 1.4; font-weight: 500; color: var(--h-fg2); text-wrap: pretty; }
.dh-secret { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 26px; padding: 9px 18px 9px 12px; border: 0; border-radius: var(--r-pill); background: var(--h-chip); color: var(--h-fg); font-size: var(--fs-small); font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform var(--t-fast) var(--ease-out), background-color var(--t-med); }
.dh-secret:hover { background: color-mix(in srgb, var(--h-chip), var(--h-fg) 10%); }
.dh-secret:active { transform: scale(.97); }
.dh-secret .wax { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ef5a62, #b3112a 60%, #6e0818); box-shadow: inset 0 0 0 2px rgba(255, 217, 138, .55); }
.dh-secret svg { width: 16px; height: 16px; }
.sheet-hero :focus-visible { outline-color: var(--h-fg); }

/* Content column */
.sheet-main { container-type: inline-size; background: var(--paper); }
.sheet-body { max-width: calc(var(--max-read) + 48px); margin: 0 auto; padding: clamp(48px, 7vw, 76px) 24px 0; font-size: var(--fs-body); line-height: 1.5; }
.sheet-body.wide { max-width: calc(var(--max-read) + 48px); }
:where(.sheet-body, .more-body) > * { margin: 0; }
/* Vertical rhythm: whitespace, not lines. Scoped high enough to win over the blocks' own margin resets. */
.sheet-main :is(.sheet-body, .more-body) > * + * { margin-top: clamp(40px, 5.5vw, 56px); }
.sheet-main :is(.sheet-body, .more-body) > :is(.b-p, .b-list) + :is(.b-p, .b-list) { margin-top: 18px; }
.sheet-main :is(.sheet-body, .more-body) > .b-lead + :is(.b-p, .b-list) { margin-top: 24px; }
.sheet-main :is(.sheet-body, .more-body) > * + .b-h { margin-top: clamp(64px, 9vw, 96px); }
.sheet-main :is(.sheet-body, .more-body) > .b-h + * { margin-top: 20px; }
.sheet-main :is(.sheet-body, .more-body) > * + :is(.nugget, .secret) { margin-top: clamp(64px, 9vw, 96px); }
.sheet-main .sheet-body > * + .more { margin-top: clamp(56px, 8vw, 80px); }
/* Visual blocks may use more width than the reading column; modules get the most */
.sheet-main :is(.sheet-body, .more-body) > :is(.b-icons.n3, .b-icons.n4, .b-ba, .b-stats.n3, .b-stats.n4) { width: min(880px, calc(100cqw - 48px)); margin-inline: calc(50% - min(440px, 50cqw - 24px)); }
.sheet-main :is(.sheet-body, .more-body) > .b-module { width: min(960px, calc(100cqw - 48px)); margin-inline: calc(50% - min(480px, 50cqw - 24px)); }
.mod-loading, .mod-error { display: grid; place-items: center; align-content: center; min-height: 180px; padding: 32px 24px; border-radius: var(--r-xl); background: var(--surface); text-align: center; font-size: var(--fs-small); color: var(--paper-ink-3); }
.mod-loading .spinner { margin-bottom: 14px; }
.sheet-loading, .sheet-error { padding: 120px 24px; text-align: center; color: var(--paper-ink-3); }
.spinner { width: 30px; height: 30px; margin: 0 auto 16px; border-radius: 50%; border: 3px solid var(--paper-3); border-top-color: var(--red); animation: spin .9s linear infinite; }

/* Door footer: quiet pills, tomorrow's teaser, sources */
.sheet-foot { max-width: calc(var(--max-read) + 48px); margin: 0 auto; padding: clamp(72px, 10vw, 112px) 24px calc(56px + var(--safe-b)); }
.door-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.door-nav .prev { justify-self: start; }
.door-nav .next { justify-self: end; grid-column: 3; }
.door-nav .back { grid-column: 2; }
@media (max-width: 520px) {
  .door-nav { grid-template-columns: 1fr 1fr; }
  .door-nav .back { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .door-nav .prev { grid-column: 1; grid-row: 2; }
  .door-nav .next { grid-column: 2; grid-row: 2; }
}
.tomorrow { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 32px 0 0; text-align: center; color: var(--paper-ink-3); font-size: var(--fs-small); }
.tomorrow .ic { width: 16px; height: 16px; }
.sources { margin-top: 36px; font-size: var(--fs-fine); color: var(--paper-ink-3); }
.sources summary { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary:hover { color: var(--paper-ink); }
.sources summary svg { width: 15px; height: 15px; transition: transform var(--t-med) var(--ease-out); }
.sources[open]:not(.closing) summary svg { transform: rotate(180deg); }
.sources ol { margin: 8px 0 0; padding-left: 1.3em; line-height: 1.45; }
.sources li { margin: 6px 0; overflow-wrap: anywhere; }
.sources a { color: var(--paper-ink-2); text-decoration: underline; text-decoration-color: var(--paper-line-2); text-underline-offset: 2px; }
.sources a:hover { color: var(--paper-red); }

/* ---------- Content blocks (on white) ---------- */
.b-p { color: var(--paper-ink); }
:is(.b-p, .b-list, .b-tip, .b-steps, .b-tips, .b-trends, .faq, .b-icons, .b-lead, .more-body) a:not(.jk-btn, .src) { color: inherit; text-decoration: underline; text-decoration-color: rgba(208, 20, 42, .5); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:is(.b-p, .b-list, .b-tip, .b-steps, .b-tips, .b-trends, .faq, .b-icons, .b-lead, .more-body) a:not(.jk-btn, .src):hover { color: var(--paper-red); }
.sheet-body strong, .sheet-body b { font-weight: 650; }
.b-h { font-size: var(--fs-h2); font-weight: 700; line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; color: var(--paper-ink); }
.b-lead { font-size: var(--fs-lead); font-weight: 600; line-height: 1.24; letter-spacing: -.019em; color: var(--paper-ink); text-wrap: pretty; }
.b-lead.duo { color: var(--paper-ink-3); }
.b-lead.duo strong { color: var(--paper-ink); font-weight: inherit; }
.b-list { padding: 0; list-style: none; }
.b-list li { position: relative; padding-left: 28px; }
.b-list li + li { margin-top: 10px; }
.b-list li::before { content: ""; position: absolute; left: 8px; top: .64em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
ol.b-list { counter-reset: li; }
ol.b-list li { counter-increment: li; }
ol.b-list li::before { content: counter(li); top: 0; left: 0; width: auto; height: auto; background: none; color: var(--paper-red); font-weight: 700; font-variant-numeric: tabular-nums; }
.b-quote blockquote { margin: 0; }
.b-quote blockquote::before { content: "“"; display: block; height: .5em; margin-bottom: .1em; font-family: var(--font-festive); font-size: 4.5rem; line-height: 1; color: var(--red); }
.b-quote p { margin: 0; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 600; line-height: 1.28; letter-spacing: -.018em; text-wrap: pretty; }
.b-quote figcaption { margin-top: 14px; font-size: var(--fs-small); color: var(--paper-ink-3); }
.divider { display: flex; justify-content: center; gap: 12px; }
.divider i { width: 5px; height: 5px; border-radius: 50%; background: #c7c7cc; }

/* Icons: 3D art or an app icon, a short title and a line. No boxes. */
.b-icons { display: grid; gap: 28px; padding: 0; list-style: none; }
.b-icons li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: start; }
.b-icons .vis { grid-row: span 2; }
.b-icons .t { margin: 6px 0 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.25; letter-spacing: -.012em; }
.b-icons .d { margin: 4px 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--paper-ink-3); }
.vis { position: relative; display: grid; place-items: center; width: 64px; height: 64px; }
.vis .art { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .14)); transition: transform .5s var(--ease-spring); }
.vis .app { width: 48px; height: 48px; object-fit: contain; }
.vis .app.badge { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; padding: 3px; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.vis.is-n { border-radius: 50%; background: var(--surface); font-weight: 700; font-size: 1.25rem; color: var(--paper-ink); font-variant-numeric: tabular-nums; }
img.broken { visibility: hidden; }
@media (hover: hover) { li:hover > .vis .art, .b-tip:hover .vis .art { transform: translateY(-4px) rotate(-4deg) scale(1.04); } }
@container (min-width: 540px) {
  .b-icons.n2, .b-icons.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
  .b-icons.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
  .b-icons li { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .b-icons .vis { width: 96px; height: 96px; margin-bottom: 14px; }
  .b-icons .vis .app { width: 64px; height: 64px; }
  .b-icons .vis .app.badge { width: 36px; height: 36px; padding: 4px; border-radius: 11px; }
  .b-icons .t { margin: 0; font-size: 1.25rem; }
  .b-icons .d { max-width: 28ch; margin-top: 6px; }
}
@container (min-width: 820px) { .b-icons.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 28px; } }

/* Apps: the official product icons, small and unaltered, next to their names */
.b-apps { text-align: center; }
.b-apps .lbl { margin: 0 0 16px; font-size: var(--fs-fine); font-weight: 600; color: var(--paper-ink-3); }
.b-apps ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 28px; margin: 0; padding: 0; list-style: none; }
.b-apps li { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 84px; font-size: var(--fs-fine); font-weight: 600; line-height: 1.25; color: var(--paper-ink-2); }
.b-apps .app { width: 48px; height: 48px; object-fit: contain; }

/* Big number: the one stat that matters, counting up when it comes into view */
.b-bignum { text-align: center; }
.b-bignum .num, .b-stats .num { display: flex; justify-content: center; align-items: baseline; gap: .06em; margin: 0; font-weight: 700; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.b-bignum .num { font-size: clamp(4.5rem, 2.6rem + 9vw, 8.5rem); }
.b-bignum .v, .b-bignum .u, .b-stats .v { background: var(--warm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .04em .02em .08em; }
.b-bignum .u { font-size: .42em; letter-spacing: -.02em; }
.b-bignum figcaption { max-width: 30ch; margin: 14px auto 0; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); font-weight: 600; line-height: 1.35; color: var(--paper-ink-2); text-wrap: balance; }
.b-bignum figcaption > span { display: block; }
.src { display: inline-flex; align-items: center; gap: 3px; margin-top: 10px; font-size: var(--fs-fine); font-weight: 500; color: var(--paper-ink-3); text-decoration: none; }
.src { position: relative; }
.src::after { content: ""; position: absolute; inset: -13px -6px; }
.src:hover { color: var(--paper-ink); text-decoration: underline; text-underline-offset: 2px; }
.src .ic { width: 13px; height: 13px; }
.b-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; text-align: center; }
.b-stats.n1 { grid-template-columns: 1fr; }
.b-stats figure { margin: 0; }
.b-stats .num { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); }
.b-stats figcaption { margin-top: 8px; font-size: var(--fs-small); line-height: 1.4; color: var(--paper-ink-3); }
.b-stats figcaption > span { display: block; }
@container (min-width: 620px) { .b-stats.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .b-stats.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 619.98px) { .b-stats.n3 figure:last-child { grid-column: 1 / -1; } }

/* Charts: SVG and CSS, drawn in on reveal, with a table for screen readers */
.b-chart figcaption { margin-top: 18px; font-size: var(--fs-fine); line-height: 1.45; color: var(--paper-ink-3); }
.b-chart figcaption > span { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--paper-ink-2); }
.b-chart figcaption .src { margin-top: 4px; }
.bars { display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 16px; }
.bar-row .l { font-size: var(--fs-small); font-weight: 600; line-height: 1.3; color: var(--paper-ink); }
.bar-row .v { font-size: var(--fs-small); font-weight: 700; color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.bar-row .track { grid-column: 1 / -1; display: block; height: 14px; border-radius: var(--r-pill); background: var(--surface); overflow: hidden; }
.bar-row .track i { display: block; width: calc(var(--w) * 100%); height: 100%; border-radius: var(--r-pill); background: var(--c); }
.b-chart.bar.in .track i { animation: bar-in 1s var(--ease-out) calc(var(--i) * 90ms + 120ms) backwards; }
@keyframes bar-in { from { clip-path: inset(0 100% 0 0 round 99px); } to { clip-path: inset(0 0 0 0 round 99px); } }
.dn-wrap { display: grid; justify-items: center; gap: 28px; }
.dn { position: relative; width: min(240px, 70vw); aspect-ratio: 1; }
.dn svg { width: 100%; height: 100%; overflow: visible; }
.dn circle { fill: none; stroke-width: 15; }
.dn .trk { stroke: var(--surface); }
.dn .seg { stroke: var(--c); stroke-dasharray: var(--p) 100; stroke-dashoffset: var(--o); transform: rotate(-90deg); transform-origin: 60px 60px; }
.b-chart.donut.in .seg { animation: seg-in 1.1s var(--ease-out) calc(var(--i) * 140ms + 150ms) backwards; }
@keyframes seg-in { from { stroke-dasharray: 0 100; } }
.dn-c { position: absolute; inset: 22%; display: grid; place-content: center; margin: 0; text-align: center; }
.dn-c b { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dn-c span { margin-top: 6px; font-size: var(--fs-fine); font-weight: 500; line-height: 1.3; color: var(--paper-ink-3); }
.legend { display: grid; gap: 12px; width: 100%; max-width: 360px; margin: 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; font-size: var(--fs-small); line-height: 1.3; }
.legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.legend b { font-weight: 700; font-variant-numeric: tabular-nums; }
@container (min-width: 600px) { .dn-wrap { grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 48px; } .dn { width: 240px; } }

/* Before and after: grey and quiet versus bright */
.b-ba { display: grid; gap: 12px; position: relative; }
.ba { display: flex; flex-direction: column; align-items: center; padding: 32px 24px 34px; border-radius: var(--r-xl); text-align: center; }
.ba .vis { width: 80px; height: 80px; margin-bottom: 14px; }
.ba .lbl { margin: 0; font-size: var(--fs-fine); font-weight: 700; letter-spacing: .02em; }
.ba .t { margin: 8px 0 0; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.018em; text-wrap: balance; }
.ba .d { margin: 8px 0 0; max-width: 30ch; font-size: var(--fs-small); line-height: 1.45; }
.ba.before { background: var(--surface); color: var(--paper-ink-3); }
.ba.before .lbl { color: var(--paper-ink-3); }
.ba.before .t { color: var(--paper-ink-2); }
.ba.before .art { filter: grayscale(1) opacity(.55); }
.ba.after { background: radial-gradient(90% 70% at 50% 0%, rgba(139, 160, 255, .22), transparent 60%), linear-gradient(180deg, #1b2b57, #0b1430); color: rgba(255, 255, 255, .82); }
.ba.after .lbl { color: var(--gold-hi); }
.ba.after .t { color: #fff; }
.ba.after .art { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .4)); }
.ba-arrow { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: var(--paper-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .16); transform: rotate(90deg); }
.ba-arrow svg { width: 20px; height: 20px; }
@container (min-width: 600px) { .b-ba { grid-template-columns: 1fr 1fr; } .ba-arrow { transform: none; } }

/* Tip: art, a bold short title and a line. No box. */
.b-tip { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.b-tip .t { margin: 4px 0 0; font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.b-tip .d { margin: 6px 0 0; color: var(--paper-ink-2); }
.b-tip .t + .d { margin-top: 6px; }
.b-tip.callout .tx > .d:first-child { margin-top: 4px; }

/* Steps: a clean numbered timeline */
.b-steps { position: relative; display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.b-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; }
.b-steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 48px; bottom: -24px; width: 2px; border-radius: 2px; background: var(--paper-3); }
.b-steps .mk { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-ink); color: #fff; font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.b-steps .t { margin: 6px 0 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -.012em; }
.b-steps .d { margin: 4px 0 0; color: var(--paper-ink-2); }
.b-steps.has-art li { grid-template-columns: 60px 1fr; }
.b-steps.has-art li:not(:last-child)::before { left: 29px; top: 70px; }
.b-steps.has-art .mk { width: 60px; height: 60px; background: none; }
.b-steps.has-art .mk .art { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .14)); }
.b-steps.has-art .mk .n { position: absolute; right: -6px; top: -4px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--paper-ink); color: #fff; font-size: 13px; box-shadow: 0 0 0 3px #fff; }
.b-steps.has-art .t { margin-top: 14px; }

/* Tips: rows with art or an app icon, prompt cards inside */
.b-tips { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; }
.b-tips > li { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; align-items: start; }
.b-tips .vis { width: 56px; height: 56px; }
.b-tips .vis.is-app .app { width: 44px; height: 44px; }
.b-tips h3 { margin: 4px 0 0; font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.b-tips .tx p { margin: 6px 0 0; color: var(--paper-ink-2); }
.b-tips .prompt.inner { grid-column: 1 / -1; margin-top: 18px; }
@container (min-width: 560px) { .b-tips .prompt.inner { grid-column: 2; } }

/* Trends: numbered rows with art */
.b-trends { display: grid; gap: 44px; margin: 0; padding: 0; list-style: none; }
.b-trends > li { display: grid; gap: 0 22px; }
.b-trends.has-art > li { grid-template-columns: 72px 1fr; }
.b-trends .vis { width: 72px; height: 72px; }
.b-trends .no { margin: 0; font-size: var(--fs-fine); font-weight: 700; letter-spacing: .04em; color: var(--paper-red); font-variant-numeric: tabular-nums; }
.b-trends h3 { margin: 4px 0 0; font-size: clamp(1.25rem, 1.12rem + .55vw, 1.5rem); font-weight: 700; line-height: 1.22; letter-spacing: -.018em; }
.b-trends .d { margin: 6px 0 0; color: var(--paper-ink-2); }
.b-trends .watch { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 0; font-size: var(--fs-small); font-weight: 600; color: var(--paper-spruce); }
.b-trends .watch .ic { width: 15px; height: 15px; align-self: center; }

/* Prompt: the one card on the page, with a copy button */
.prompt { padding: clamp(24px, 4vw, 36px); border-radius: var(--r-xl); background: var(--surface); }
.prompt .lbl { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-fine); font-weight: 700; color: var(--paper-ink-3); }
.prompt .lbl .art { width: 24px; height: 24px; }
.prompt .txt { margin: 12px 0 0; font-size: clamp(1.125rem, 1.04rem + .4vw, 1.3125rem); font-weight: 600; line-height: 1.42; letter-spacing: -.012em; color: var(--paper-ink); white-space: pre-line; overflow-wrap: anywhere; }
.prompt .where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; font-size: var(--fs-fine); color: var(--paper-ink-3); }
.prompt .where .app { width: 20px; height: 20px; object-fit: contain; }
.prompt .where span { margin-left: 2px; }
.prompt .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 20px; }
.prompt .jk-btn.done { --b-bg: var(--spruce); --b-fg: #fff; --b-hover: var(--spruce); }
.prompt .note { margin: 14px 0 0; font-size: var(--fs-fine); color: var(--paper-ink-3); }
.prompt.inner { padding: 20px 22px; border-radius: 22px; }
.prompt.inner .txt { font-size: var(--fs-body); }
.prompt.inner .row { margin-top: 14px; }

/* Checklist */
.checklist .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.checklist .count { font-size: var(--fs-small); font-weight: 700; color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.checklist .bar { flex: 1; min-width: 80px; height: 6px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.checklist .bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--spruce); transition: width .5s var(--ease-out); }
.checklist .head .jk-btn.link { --b-fg: var(--paper-ink-3); }
.checklist ul { margin: 0; padding: 0; list-style: none; }
.checklist label { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 12px 0; cursor: pointer; }
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checklist .box { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px #c7c7cc; color: transparent; transition: background-color .2s, box-shadow .2s, transform .2s var(--ease-spring); }
.checklist .box svg { width: 16px; height: 16px; stroke-width: 3; }
.checklist label:hover .box { box-shadow: inset 0 0 0 2px var(--paper-ink-3); }
.checklist input:checked + .box { background: var(--spruce); box-shadow: none; color: #fff; transform: scale(1.06); }
.checklist input:focus-visible + .box { outline: 2px solid var(--paper-red); outline-offset: 3px; }
.checklist .tx { display: block; padding-top: 2px; }
.checklist .t { display: block; font-weight: 600; line-height: 1.35; transition: color .2s; }
.checklist .d { display: block; margin-top: 3px; font-size: var(--fs-small); line-height: 1.45; color: var(--paper-ink-3); }
.checklist input:checked ~ .tx .t { color: var(--paper-ink-3); }
.checklist .ck-link { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -6px 0 -6px -2px; border-radius: 50%; color: var(--paper-ink-3); vertical-align: middle; transition: background-color var(--t-fast), color var(--t-fast); }
.checklist .ck-link:hover { background: var(--surface); color: var(--paper-ink); }
.checklist .ck-link svg { width: 15px; height: 15px; }
.checklist.all-done .count { color: var(--paper-spruce); }

/* Quiz */
.quiz .q + .q { margin-top: 48px; }
.quiz .qn { margin: 0 0 6px; font-size: var(--fs-fine); font-weight: 700; color: var(--paper-ink-3); font-variant-numeric: tabular-nums; }
.quiz h4 { margin: 0 0 18px; font-size: clamp(1.25rem, 1.12rem + .55vw, 1.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -.018em; }
.quiz .opts { display: grid; gap: 10px; }
.quiz .opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 18px 12px 12px; border: 0; border-radius: 18px; background: var(--surface); color: var(--paper-ink); text-align: left; font-size: var(--fs-body); font-weight: 500; line-height: 1.35; transition: background-color .2s, transform var(--t-fast) var(--ease-out), opacity .3s; }
.quiz .opt:hover:not(:disabled) { background: var(--paper-3); }
.quiz .opt:active:not(:disabled) { transform: scale(.985); }
.quiz .opt .k { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--paper-ink-3); font-size: var(--fs-fine); font-weight: 700; transition: background-color .2s, color .2s; }
.quiz .opt .k svg { width: 16px; height: 16px; stroke-width: 3; }
.quiz .opt:disabled { cursor: default; }
.quiz .answered .opt:not(.right):not(.wrong) { opacity: .5; }
.quiz .opt.right { background: #e3f3ea; }
.quiz .opt.right .k { background: var(--spruce); color: #fff; }
.quiz .opt.wrong { background: #fdecee; }
.quiz .opt.wrong .k { background: var(--red); color: #fff; }
.quiz .explain { margin: 16px 0 0; color: var(--paper-ink-2); animation: rv-in .4s var(--ease-out); }
.quiz .explain b { color: var(--paper-ink); }
.quiz .score { margin: 28px 0 0; font-size: var(--fs-lead); font-weight: 700; letter-spacing: -.018em; }
.quiz .score:empty { display: none; }

/* FAQ */
.faq details + details { box-shadow: 0 -1px 0 var(--paper-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--paper-ink-3); transition: transform .3s var(--ease-out); }
.faq details[open]:not(.closing) summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 36px 22px 0; color: var(--paper-ink-2); }
.faq .a p { margin: 0 0 .7em; }
.faq .a > :last-child { margin-bottom: 0; }

/* Ignite session link */
.ignite { display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px; border-radius: 22px; background: var(--surface); color: var(--paper-ink); text-decoration: none; transition: background-color .2s, transform var(--t-fast) var(--ease-out); }
.ignite:hover { background: var(--paper-3); }
.ignite:active { transform: scale(.985); }
.ignite .play { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--midnight); color: #fff; }
.ignite .play svg { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.ignite .tx { display: grid; gap: 2px; min-width: 0; }
.ignite small { font-size: var(--fs-fine); font-weight: 600; color: var(--paper-ink-3); }
.ignite b { font-size: var(--fs-body); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.ignite em { font-style: normal; font-size: var(--fs-fine); color: var(--paper-ink-3); }
.ignite .go { width: 20px; height: 20px; margin-left: auto; color: var(--paper-ink-3); }

/* Video */
.vid video { width: 100%; border-radius: 22px; background: #000; }
.vid .missing { display: grid; justify-items: center; gap: 12px; padding: 44px 24px; border-radius: var(--r-xl); background: var(--surface); text-align: center; color: var(--paper-ink-3); font-size: var(--fs-small); }
.vid .missing .art { width: 72px; height: 72px; }
.vid .missing p { margin: 0; }

/* Door 24: every nugget and every secret */
.b-nuggets, .b-secrets { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.b-nuggets li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.b-nuggets .n { font-family: var(--font-festive); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--paper-red); text-align: center; font-variant-numeric: lining-nums; }
.b-nuggets p { margin: 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.38; letter-spacing: -.01em; }
.b-nuggets small { display: block; margin-top: 4px; font-size: var(--fs-fine); color: var(--paper-ink-3); }

/* Go deeper: the nuance, collapsed at the end */
.more { text-align: center; }
.more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill); background: var(--surface); color: var(--paper-ink); font-size: var(--fs-small); font-weight: 600; cursor: pointer; list-style: none; transition: background-color .2s, transform var(--t-fast) var(--ease-out); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { background: var(--paper-3); }
.more > summary:active { transform: scale(.97); }
.more > summary svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.more[open]:not(.closing) > summary svg { transform: rotate(180deg); }
.more-body { padding-top: clamp(40px, 6vw, 56px); text-align: left; }

/* Nugget: one big centred line */
.nugget { text-align: center; }
.nugget .star { width: 48px; height: 48px; margin: 0 auto; animation: none; }
.nugget.in .star { animation: star-in .9s var(--ease-spring) .1s backwards; }
@keyframes star-in { from { opacity: 0; transform: scale(.4) rotate(-40deg); } }
.nugget .lbl { margin: 14px 0 0; font-size: var(--fs-fine); font-weight: 700; color: var(--paper-gold); }
.nugget blockquote { margin: 14px auto 0; max-width: 22ch; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem); font-weight: 700; line-height: 1.12; letter-spacing: -.028em; }
.nugget blockquote p { margin: 0; font: inherit; letter-spacing: inherit; text-wrap: balance; }
.nugget .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin-top: 18px; }

/* Status: one compact line */
.status .st-h { margin: 0 0 10px; font-size: var(--fs-fine); font-weight: 600; color: var(--paper-ink-3); }
.status ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); line-height: 1.35; }
.status ul > li { position: relative; padding-left: 15px; }
.status li i { position: absolute; left: 0; top: .52em; width: 8px; height: 8px; border-radius: 50%; background: var(--st-roadmap); }
.status .nm { font-weight: 600; color: var(--paper-ink); }
.status .sv { margin-left: 7px; font-weight: 600; color: var(--st-roadmap); white-space: nowrap; }
.status .st-ga i { background: var(--st-ga); } .status .st-ga .sv { color: var(--st-ga); }
.status .st-preview i { background: var(--st-preview); } .status .st-preview .sv { color: var(--st-preview); }
.status .st-frontier i { background: var(--st-frontier); } .status .st-frontier .sv { color: var(--st-frontier); }
.status sup { font-size: .7em; color: var(--paper-ink-3); }
.status .st-notes { margin: 12px 0 0; padding-left: 1.2em; font-size: var(--fs-fine); line-height: 1.45; color: var(--paper-ink-3); }
.status .st-notes li { display: list-item; margin: 3px 0; }

/* Old v1 compare */
.b-compare { display: grid; gap: 12px; }
.b-compare .col { padding: 24px; border-radius: var(--r-xl); background: var(--surface); }
.b-compare .t { margin: 0 0 10px; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.b-compare ul { margin: 0; padding-left: 1.1em; color: var(--paper-ink-2); font-size: var(--fs-small); }
.b-compare li + li { margin-top: 6px; }
@container (min-width: 560px) { .b-compare { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

/* Scroll reveal (only when JS runs and motion is allowed) */
html.js-reveal .rv:not(.in) { opacity: 0; }
.rv.in { animation: rv-in var(--t-reveal) var(--ease-out) var(--d, 0ms) backwards; }
@keyframes rv-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .dh-art .bob, .dh-art img, .dh-copy > *, .rv.in, .b-chart.in .track i, .b-chart.in .seg, .nugget.in .star, .quiz .explain { animation: none !important; }
  .dh-art .main, .dh-art .acc { transform: none !important; }
  html.js-reveal .rv:not(.in) { opacity: 1; }
  .sheet-bar .pill-txt > span, .vis .art { transition: none; }
}

/* ---------- Icons, share menu, module focus ---------- */
.ic { width: 1.1em; height: 1.1em; flex: none; }
.ic.tiny { display: inline; width: 14px; height: 14px; vertical-align: -2px; }
.sharemenu { position: fixed; inset: 0; z-index: 95; display: grid; place-items: end center; }
@media (min-width: 640px) { .sharemenu { place-items: center; } }
.sharemenu .sm-back { position: absolute; inset: 0; background: rgba(3, 7, 15, .55); opacity: 0; transition: opacity var(--t-med); }
.sharemenu .sm-card { position: relative; width: min(440px, 100%); margin: 0; padding: 22px 20px calc(18px + var(--safe-b)); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-3); transform: translateY(30px); opacity: 0; transition: transform var(--t-med) var(--ease-out), opacity var(--t-med); }
@media (min-width: 640px) { .sharemenu .sm-card { border-radius: 24px; } }
.sharemenu.in .sm-back { opacity: 1; }
.sharemenu.in .sm-card { transform: none; opacity: 1; }
.sharemenu h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.3rem; }
.sharemenu p { margin: 0 0 16px; color: var(--paper-ink-2); font-size: var(--fs-sm); }
.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm-grid .jk-btn { justify-content: flex-start; }
.sm-close { width: 100%; margin-top: 10px; }
/* Focus mode must beat the wide-module sizing above (.sheet-main … > .b-module) */
.b-module.focus, .sheet-main :is(.sheet-body, .more-body) > .b-module.focus { position: fixed; inset: 0; z-index: 75; width: auto; max-width: none; margin: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--night-0); padding: calc(8px + var(--safe-t)) 8px calc(8px + var(--safe-b)); }
.b-module.focus > .jk-module { min-height: 100%; }

/* ---------- Effects ---------- */
.burst { position: fixed; z-index: 70; pointer-events: none; width: 0; height: 0; }
.burst i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 10px rgba(255, 217, 138, .9); animation: fly .9s var(--ease-out) forwards; }
.burst i.star { width: 10px; height: 10px; border-radius: 2px; background: #fff3c4; transform: rotate(45deg); }
@keyframes fly { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .twinkle, .c-flame, .c-glow, .door.is-today .door-leaf, .vinyl.spin { animation: none; }
  .door-leaf, .sheet { transition: none; }
}

/* ---------- Creator credit (shared kit, workspace\ab-credit) ---------- */
/* The creator's credit (Artur Bagrancev), the same on every Agent Airlines experience, the hub and AI Class HQ.
   Copy ab-mark.svg next to the app's other images and this block into its stylesheet, then set the three colours to
   the app's own tokens (each must keep 4.5:1 against what's behind it). The credit stays in English in every
   language: it is a signature. */
.ab-credit {
  --ab-by: #6e6e73;        /* secondary text: "Designed and built by", "bagrancev.com" */
  --ab-name: #1d1d1f;      /* primary text: the name */
  --ab-focus: #0071e3;     /* the focus ring */
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 6px 10px 6px 6px; border-radius: 14px;
  color: var(--ab-name); text-decoration: none; text-align: left; line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
.ab-credit-mark { flex: none; width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 1px 2px rgba(0, 0, 0, .12); }
.ab-credit-text { display: grid; gap: 1px; min-width: 0; }
.ab-credit-by { font-size: 11px; font-weight: 500; letter-spacing: .01em; color: var(--ab-by); }
.ab-credit-name { font-size: 13px; font-weight: 600; color: var(--ab-name); }
.ab-credit-site { font-weight: 500; color: var(--ab-by); }
.ab-credit:hover .ab-credit-name { text-decoration: underline; text-underline-offset: 2px; }
.ab-credit:focus-visible { outline: 2px solid var(--ab-focus); outline-offset: 2px; }
/* on a dark surface */
.ab-credit.on-dark { --ab-by: rgba(235, 235, 245, .66); --ab-name: #f5f5f7; --ab-focus: #ffd98a; }
/* on a big screen seen from across the room (1920 x 1080 stages) */
.ab-credit.big { gap: 14px; padding: 8px 14px 8px 8px; border-radius: 18px; }
.ab-credit.big .ab-credit-mark { width: 46px; height: 46px; border-radius: 11px; }
.ab-credit.big .ab-credit-by { font-size: 16px; }
.ab-credit.big .ab-credit-name { font-size: 20px; }
@media print { .ab-credit, .ab-credit.on-dark { --ab-by: #444; --ab-name: #000; } }

/* ---------- The Ignite secret: a sealed midnight envelope in every door ---------- */
.secret { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); color: #fff; scroll-margin-top: 80px;
  background:
    radial-gradient(1.5px 1.5px at 14% 78%, rgba(255, 217, 138, .9), transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 70%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 72% 88%, rgba(255, 217, 138, .8), transparent 60%),
    radial-gradient(1px 1px at 26% 92%, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(120% 80% at 50% 100%, rgba(139, 160, 255, .16), transparent 60%),
    linear-gradient(180deg, #16244c, #0b1430);
  box-shadow: 0 24px 60px rgba(11, 20, 48, .22);
}
.secret .env { position: relative; display: flex; flex-direction: column; align-items: center; padding: 20px 24px 34px; text-align: center; }
.secret .env-top { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; width: 100%; }
.secret .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-fine); font-weight: 700; color: var(--gold-hi); }
.secret .eyebrow svg { width: 15px; height: 15px; }
.secret .code { font-size: var(--fs-fine); font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .62); }
.secret .flap { position: absolute; z-index: 0; inset: 0 0 auto 0; height: 132px; background: linear-gradient(180deg, #2a3d78, #1f2f62); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transition: transform .6s var(--ease-out), opacity .5s; }
.secret .flap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 70%); }
.secret .seal-hit { position: relative; z-index: 2; width: 88px; height: 88px; margin-top: 18px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transform: rotate(-9deg); transition: transform .25s var(--ease-out); }
.secret .seal-hit:hover { transform: rotate(-4deg) scale(1.06); }
.secret .seal-hit:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 4px; }
.secret .seal { position: absolute; inset: 0; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.secret .seal svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.3, .7, .2, 1), opacity .5s ease .05s; }
.secret .seal .l { clip-path: polygon(0 0, 54% 0, 47% 38%, 53% 62%, 45% 100%, 0 100%); }
.secret .seal .r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 45% 100%, 53% 62%, 47% 38%); }
.secret:not(.is-open):not(.cracking) .seal-hit { animation: seal-breathe 3.2s ease-in-out infinite; }
@keyframes seal-breathe { 0%, 100% { transform: rotate(-9deg) scale(1); } 50% { transform: rotate(-6deg) scale(1.05); } }
.secret .tease { position: relative; z-index: 2; max-width: 24ch; margin: 22px 0 0; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.secret .seal-btn { position: relative; z-index: 2; margin-top: 22px; }
.secret.cracking .seal .l { transform: translate(-20px, 18px) rotate(-28deg); opacity: 0; }
.secret.cracking .seal .r { transform: translate(20px, 20px) rotate(26deg); opacity: 0; }
.secret.cracking .flap { transform: scaleY(.15); opacity: 0; }
.secret.cracking .seal-btn, .secret.cracking .tease { opacity: .4; transition: opacity .3s; pointer-events: none; }
.secret.is-open .env { padding-bottom: 8px; }
.secret.is-open .flap, .secret.is-open .tease, .secret.is-open .seal-hit, .secret.is-open .seal-btn { display: none; }
.secret .letter { position: relative; z-index: 1; padding: 8px 10px 16px; }
.secret .paper { padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 36px); border-radius: 22px; background: #fff; color: var(--paper-ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.secret.just-open .paper { animation: letter-out .75s var(--ease-out) both; }
@keyframes letter-out { from { opacity: 0; transform: translateY(36px) scale(.97); } }
.secret .paper { position: relative; }
.secret .sticker-wrap { position: absolute; top: -26px; right: clamp(14px, 3vw, 26px); width: 76px; height: 76px; transform: rotate(8deg); filter: drop-shadow(0 10px 14px rgba(11, 20, 48, .28)); pointer-events: none; }
.secret .sticker-wrap .art { width: 100%; height: 100%; }
.secret.just-open .sticker-wrap { animation: sticker-in .8s var(--ease-spring) .25s both; }
@keyframes sticker-in { from { opacity: 0; transform: rotate(-20deg) scale(.4); } }
.secret .has-art .tags { padding-right: 72px; min-height: 28px; }
.secret .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.secret .sapp { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; font-size: var(--fs-fine); font-weight: 600; color: var(--paper-ink-2); }
.secret .sapp .app { width: 20px; height: 20px; }
.secret h3 { margin: 0; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; outline: none; text-wrap: balance; }
.secret .txt { margin: 10px 0 0; color: var(--paper-ink-2); }
.secret .sq { margin: 20px 0 0; }
.secret .sq blockquote { margin: 0; font-family: var(--font-festive); font-style: italic; font-size: 1.25rem; line-height: 1.4; color: var(--paper-ink); font-variation-settings: "SOFT" 100; }
.secret .sq figcaption { margin-top: 6px; font-size: var(--fs-fine); color: var(--paper-ink-3); }
.secret .pt { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; margin-top: 18px; }
.secret .pt .art { width: 36px; height: 36px; }
.secret .pt p { margin: 4px 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--paper-ink-2); }
.secret .pt b { color: var(--paper-ink); }
.secret .watch { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--midnight); color: #fff; text-decoration: none; transition: transform var(--t-fast) var(--ease-out), background-color .2s; }
.secret .watch:hover { background: #16244c; }
.secret .watch:active { transform: scale(.985); }
.secret .watch .play { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--red); }
.secret .watch .play svg { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; }
.secret .watch .tx { display: grid; gap: 2px; min-width: 0; }
.secret .watch small { font-size: var(--fs-fine); font-weight: 600; color: rgba(255, 255, 255, .72); }
.secret .watch b { font-size: var(--fs-small); font-weight: 700; line-height: 1.3; }
.secret .watch em { font-style: normal; font-size: var(--fs-fine); color: rgba(255, 255, 255, .72); }
.secret .watch .go { width: 18px; height: 18px; margin-left: auto; flex: none; color: rgba(255, 255, 255, .72); }
.secret .count { margin: 14px 0 2px; text-align: center; font-size: var(--fs-fine); font-weight: 700; color: var(--gold-hi); }
.secret .count:empty { display: none; }
@media (max-width: 380px) { .secret .env { padding: 18px 18px 30px; } .secret .seal-hit { width: 76px; height: 76px; } .secret .flap { height: 120px; } }
@media (prefers-reduced-motion: reduce) { .secret .seal-hit, .secret .seal svg, .secret .flap { animation: none !important; transition: none !important; } .secret.just-open .paper, .secret.just-open .sticker-wrap { animation: none; } }

.chip-secret { cursor: pointer; font: inherit; font-size: inherit; background: rgba(200, 16, 46, .22); border-color: rgba(255, 179, 189, .45); color: #fff1f2; }
.chip-secret:hover { background: rgba(200, 16, 46, .34); }

.door .sealdot { position: absolute; z-index: 3; top: 8cqmin; right: 8cqmin; width: clamp(12px, 14cqmin, 16px); height: clamp(12px, 14cqmin, 16px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ef5a62, #a50e26 60%, #6e0818); box-shadow: 0 1px 3px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 217, 138, .55); pointer-events: none; }

/* Door 24: all secrets as a compact visual list; the story opens on tap */
.sheet-main .b-secrets { gap: 0; }
.b-secrets li + li { box-shadow: 0 -1px 0 var(--paper-line); }
.b-secrets summary { display: grid; grid-template-columns: 52px 1fr 20px; gap: 16px; align-items: center; min-height: 76px; padding: 12px 0; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.b-secrets summary::-webkit-details-marker { display: none; }
.b-secrets summary > svg { width: 20px; height: 20px; color: var(--paper-ink-3); transition: transform var(--t-med) var(--ease-out); }
.b-secrets details[open]:not(.closing) summary > svg { transform: rotate(180deg); }
.b-secrets summary:hover .t { color: var(--paper-red); }
.b-secrets .vis { position: relative; display: block; width: 52px; height: 52px; }
.b-secrets .vis .art { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.85) opacity(.55); transition: filter .4s var(--ease-out), transform .4s var(--ease-spring); }
.b-secrets .found .vis .art, .b-secrets summary:hover .vis .art { filter: none; }
.b-secrets summary:hover .vis .art { transform: rotate(-6deg) scale(1.06); }
.b-secrets .n { position: absolute; right: -6px; bottom: -4px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: var(--r-pill); background: var(--paper-3); color: var(--paper-ink-2); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; box-shadow: 0 0 0 2px var(--paper); }
.b-secrets .vis:not(:has(.art)) .n { inset: 0; width: 44px; height: 44px; margin: auto; font-size: 15px; }
.b-secrets .found .n { color: #ffe3a3; background: radial-gradient(circle at 35% 30%, #e8464f, #a50e26 60%, #6e0818); }
.b-secrets .tx { display: block; min-width: 0; }
.b-secrets .sdn { display: block; font-size: var(--fs-fine); font-weight: 600; color: var(--paper-ink-3); }
.b-secrets .sdn b { color: var(--paper-red); font-weight: 700; }
.b-secrets .t { display: block; margin-top: 2px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--paper-ink); transition: color var(--t-fast); text-wrap: pretty; }
.b-secrets .a { padding: 0 36px 22px 68px; }
.b-secrets .d { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--paper-ink-2); }
.b-secrets a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-size: var(--fs-fine); font-weight: 600; color: var(--paper-red); text-decoration: none; }
.b-secrets a:hover { text-decoration: underline; text-underline-offset: 2px; }
.b-secrets a svg { width: 13px; height: 13px; fill: currentColor; }
@media (max-width: 480px) { .b-secrets .a { padding-left: 0; padding-right: 0; } }

.lang-hint { position: fixed; z-index: 70; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 72px); display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: var(--r-pill); background: rgba(22, 30, 58, .86); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 12px 32px rgba(0, 0, 0, .4); color: var(--ink-2); font-size: var(--fs-sm); opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; white-space: nowrap; }
.lang-hint::before { content: ''; position: absolute; top: -5px; right: calc(var(--ax, 30px) - 6px); width: 12px; height: 12px; border-radius: 2px; background: rgb(22, 30, 58); transform: rotate(45deg); }
.lang-hint.in { opacity: 1; transform: none; }
.lang-hint > svg { width: 16px; height: 16px; color: var(--gold-hi); }
.lang-hint a { color: var(--gold-hi); font-weight: 600; text-decoration: none; }
.lang-hint .x { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.lang-hint .x svg { width: 16px; height: 16px; }
.lang-hint .x::after { content: ""; position: absolute; inset: -6px; }
