/* Shared styles for the scroll-built 3D scene templates.
   Each page sets its own colour and font tokens; the shape of the page lives here. */
:root {
  --radius: 0px; --bw: 1.5px; --hard: 0px;
  --out: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background-color: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: clip; }
body.pat-grid { background-image: linear-gradient(var(--pat) 1px, transparent 1px), linear-gradient(90deg, var(--pat) 1px, transparent 1px); background-size: 28px 28px; }
body.pat-dots { background-image: radial-gradient(var(--pat) 1.6px, transparent 1.8px); background-size: 22px 22px; }
body.pat-lines { background-image: repeating-linear-gradient(-45deg, var(--pat) 0 1px, transparent 1px 14px); }
body.pat-plain { background-image: radial-gradient(ellipse at 50% -10%, var(--pat), transparent 60%); background-attachment: fixed; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font: 500 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text, var(--accent)); }

/* top bar */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: var(--brand-weight, 800) 1.1rem/1 var(--display); letter-spacing: var(--brand-track, -0.01em); }
.brand i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: calc(var(--radius) * .6); background: var(--accent); color: var(--accent-ink); font: 800 13px/1 var(--body); font-style: normal; box-shadow: var(--hard) var(--hard) 0 var(--ink); }
.top-r { display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: var(--bw) solid var(--line-2); border-radius: var(--radius); background: var(--sheet); cursor: pointer; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; color: var(--ink); }
.chip i { width: 28px; height: 15px; border-radius: 8px; background: var(--line); position: relative; }
.chip i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); transition: transform .45s var(--spring); }
:root[data-theme="dark"] .chip i { background: var(--accent); }
:root[data-theme="dark"] .chip i::after { transform: translateX(13px); }

/* intro */
.intro { min-height: 88vh; display: grid; align-content: center; gap: 22px; padding: 110px var(--gutter) 40px; max-width: 1240px; margin-inline: auto; }
.intro h1 { font-size: clamp(2.8rem, 1.2rem + 6vw, 6.4rem); font-weight: var(--h-weight, 800); letter-spacing: var(--h-track, -0.03em); text-transform: var(--h-case, none); }
.intro h1 .w { display: inline-block; animation: wordIn 1s var(--out) both; animation-delay: calc(var(--i) * 95ms + 80ms); }
.intro h1 .hl { color: var(--accent-text, var(--accent)); }
@keyframes wordIn { from { opacity: 0; transform: translateY(26px) rotate(var(--wr, 0deg)); filter: blur(6px); } }
.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 56ch; }
.hint { display: inline-flex; gap: 12px; align-items: center; font: 400 13px var(--mono); color: var(--ink-3); }
.hint i { width: 16px; height: 26px; border: 1.5px solid var(--ink-3); border-radius: 9px; position: relative; }
.hint i::after { content: ''; position: absolute; left: 50%; top: 5px; width: 2px; height: 6px; margin-left: -1px; background: var(--ink-3); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(7px); opacity: 0; } }
.badge { display: inline-flex; gap: 8px; align-items: center; justify-self: start; padding: 7px 12px; border: var(--bw) dashed var(--line-2); border-radius: 999px; font: 500 12px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

/* stage */
.stage { position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-rows: auto 1fr auto; padding: calc(78px + env(safe-area-inset-top, 0px)) var(--gutter) calc(22px + env(safe-area-inset-bottom, 0px)); }
.hud > * { pointer-events: auto; }
.title { display: grid; gap: 8px; max-width: 540px; text-shadow: 0 0 22px var(--paper), 0 0 6px var(--paper), 0 0 2px var(--paper); }
.title .no { font: 500 12.5px var(--mono); color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.title .no b { padding: 5px 8px; border: var(--bw) solid var(--ink); border-radius: calc(var(--radius) * .5); color: var(--ink); font-weight: 500; text-shadow: none; }
.title h2 { font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.8rem); font-weight: var(--h-weight, 800); letter-spacing: var(--h-track, -0.03em); text-transform: var(--h-case, none); }
.title h2 span { display: inline-block; }
.title h2 .swap { animation: swapIn .7s var(--out) both; }
.title h2 .swap.back { animation-name: swapBack; }
@keyframes swapIn { from { transform: translateX(60px); opacity: 0; } }
@keyframes swapBack { from { transform: translateX(-60px); opacity: 0; } }
.title p { color: var(--ink-2); }
.mid { display: grid; grid-template-columns: 270px 1fr 220px; align-items: end; gap: 20px; min-height: 0; }
.panel { background: color-mix(in srgb, var(--sheet) 90%, transparent); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard) var(--hard) 0 var(--ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.steps { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 4px; align-self: end; }
.steps li { display: grid; grid-template-columns: 22px 14px 1fr; gap: 8px; align-items: center; font: 400 13px/1.35 var(--mono); color: var(--ink-3); }
.steps li .sw { width: 12px; height: 12px; border-radius: calc(var(--radius) * .25); border: 1px solid rgb(0 0 0 / .25); background: var(--c); }
.steps li.done { color: var(--ink-2); }
.steps li.done .t { text-decoration: line-through; text-decoration-color: var(--line-2); }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now .n { color: var(--accent-text, var(--accent)); }
.steps li.now .t::after { content: ' ◂'; color: var(--accent-text, var(--accent)); }
.meter { justify-self: end; align-self: end; display: grid; gap: 6px; text-align: right; padding: 14px 16px; min-width: 200px; }
.meter small { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.meter b { font: var(--h-weight, 800) 3rem/1 var(--display); }
.meter .now { font: 400 13px var(--mono); color: var(--ink-2); min-height: 2.6em; }
.meter .now em { font-style: normal; color: var(--accent-text, var(--accent)); }
.bar { height: 5px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0; transform-origin: 0; transform: scaleX(var(--p, 0)); background: var(--accent); }
.nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.arrow { width: 46px; height: 46px; flex: none; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--sheet); cursor: pointer; display: grid; place-items: center; box-shadow: var(--hard) var(--hard) 0 var(--ink); transition: transform .4s var(--spring), background-color .25s, color .25s; }
.arrow:hover { background: var(--ink); color: var(--paper); }
.arrow:active { transform: scale(.92); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow svg { width: 18px; height: 18px; }
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: min(760px, calc(100vw - 140px)); padding: 4px; }
.pill { position: relative; flex: none; min-height: 44px; padding: 0 16px; border: var(--bw) solid var(--line-2); border-radius: var(--radius); background: var(--sheet); cursor: pointer; font: 700 13px/1 var(--body); overflow: hidden; isolation: isolate; }
.pill::before { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--accent); transform-origin: 0; transform: scaleX(var(--p, 0)); z-index: -1; }
.pill[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.fallback[hidden] { display: none; }
@media (max-width: 480px) { .brand { font-size: .95rem; } .chip span { display: none; } }
@media (max-width: 860px) {
  .mid { grid-template-columns: 1fr; }
  .steps { display: none; }
  .meter { justify-self: stretch; text-align: left; min-width: 0; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .meter small, .meter .bar { grid-column: 1 / -1; }
  .meter b { font-size: 2.2rem; }
  .title h2 { font-size: clamp(2rem, 1rem + 6vw, 3rem); }
  .title p { font-size: 15px; }
}

/* outro */
.outro { padding: clamp(80px, 11vw, 140px) var(--gutter); max-width: 1240px; margin-inline: auto; display: grid; gap: 28px; }
.outro h2 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.4rem); font-weight: var(--h-weight, 800); letter-spacing: var(--h-track, -0.03em); text-transform: var(--h-case, none); }
.list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.list article { padding: 18px; display: grid; gap: 8px; align-content: start; }
.list b { font: var(--h-weight, 800) 1.25rem var(--display); }
.list ol { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; display: grid; gap: 2px; }
.cta { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--body); text-decoration: none; justify-self: start; box-shadow: var(--hard) var(--hard) 0 var(--ink); transition: transform .45s var(--spring); }
.cta:hover { transform: translateY(-3px); }
footer { border-top: var(--bw) solid var(--ink); padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom, 0px)); font: 400 13px var(--mono); color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* HUD variants: set hud: 'classic' | 'minimal' | 'side' | 'cinema' in the template config */
.hud { z-index: 2; }
.hud-minimal .steps, .hud-minimal #blurb { display: none; }
.hud-minimal .meter { min-width: 0; padding: 10px 14px; gap: 4px; }
.hud-minimal .meter b { font-size: 1.8rem; }
.hud-minimal .meter .now { min-height: 0; font-size: 12px; }
.hud-minimal .title h2 { font-size: clamp(1.8rem, 1rem + 2.6vw, 3.2rem); }
.hud-side .title { justify-self: end; text-align: right; }
.hud-side .title .no { justify-content: flex-end; }
.hud-side .mid { grid-template-columns: 1fr 270px; grid-template-rows: auto auto; align-content: end; }
.hud-side .mid > span { display: none; }
.hud-side .steps { grid-column: 2; grid-row: 1; }
.hud-side .meter { grid-column: 2; grid-row: 2; justify-self: stretch; text-align: left; }
.hud-cinema .sticky::before, .hud-cinema .sticky::after { content: ''; position: absolute; left: 0; right: 0; height: 11vh; background: #050505; z-index: 1; pointer-events: none; }
.hud-cinema .sticky::before { top: 0; } .hud-cinema .sticky::after { bottom: 0; }
.hud-cinema .hud { grid-template-rows: 1fr auto auto; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.hud-cinema .title { grid-row: 2; max-width: 700px; margin-bottom: 12px; }
.hud-cinema .mid { display: none; }
.hud-cinema .nav { grid-row: 3; }
.hud-cinema .pill { background: transparent; color: #f2f2f2; border-color: #444; }
.hud-cinema .pill[aria-current="true"] { background: #f2f2f2; color: #050505; border-color: #f2f2f2; }
.hud-cinema .arrow { background: transparent; color: #f2f2f2; border-color: #444; box-shadow: none; }
@media (max-width: 860px) {
  .hud-side .mid { grid-template-columns: 1fr; }
  .hud-side .steps { display: none; }
  .hud-side .meter { grid-column: 1; grid-row: auto; }
  .hud-cinema .sticky::before, .hud-cinema .sticky::after { height: 7vh; }
}

/* ---------- notebook layout: left page text, right page drawing, scroll turns the page ---------- */
.layout-notebook .sticky { display: grid; place-items: center; padding: calc(70px + env(safe-area-inset-top, 0px)) var(--gutter) calc(84px + env(safe-area-inset-bottom, 0px)); }
.book { --ruled: repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px); --f: 0; position: relative; width: min(1120px, 100%); height: min(660px, 100%); display: grid; grid-template-columns: 1fr 1fr; perspective: 2600px; }
.book::before { content: ''; position: absolute; inset: -12px -14px -15px; border-radius: 14px; background: var(--cover); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45); z-index: -1; }
.page { position: relative; background-color: var(--page); background-image: var(--ruled); background-position: 0 56px; overflow: hidden; }
.page.left { border-radius: 8px 0 0 8px; background-image: linear-gradient(90deg, transparent 54px, var(--margin) 54px 56px, transparent 56px), var(--ruled); box-shadow: inset -34px 0 40px -30px rgb(0 0 0 / .32); }
.page.right { border-radius: 0 8px 8px 0; box-shadow: inset 34px 0 40px -30px rgb(0 0 0 / .28); }
.page.right .gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-in { position: absolute; inset: 0; padding: 44px 36px 40px 78px; display: grid; align-content: start; gap: 10px; overflow: hidden; }
.pg-in .no { font: 500 12.5px var(--mono); color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.pg-in .no b { padding: 3px 8px; border: 1.5px solid var(--ink-3); border-radius: 4px; font-weight: 500; }
.pg-in h2 { font: var(--h-weight, 700) clamp(2.6rem, 1.4rem + 3.4vw, 4.6rem)/1 var(--display); color: var(--accent-text, var(--accent)); transform: rotate(-1.5deg); transform-origin: left; }
.pg-in .blurb { font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; line-height: 32px; }
.layout-notebook .steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.layout-notebook .steps li { display: grid; grid-template-columns: 26px 1fr; align-items: center; min-height: 32px; font: 400 1.05rem/1.2 var(--body); color: var(--ink-3); }
.layout-notebook .steps li .n, .layout-notebook .steps li .sw { display: none; }
.layout-notebook .steps li::before { content: ''; width: 15px; height: 15px; border: 1.8px solid var(--ink-3); border-radius: 3px; transform: rotate(-3deg); }
.layout-notebook .steps li.done { color: var(--ink-2); }
.layout-notebook .steps li.done::before { content: '✓'; border-color: var(--accent); color: var(--accent); font: 700 16px/12px var(--body); text-indent: 1px; }
.layout-notebook .steps li.done .t { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.layout-notebook .steps li.now { color: var(--ink); }
.layout-notebook .steps li.now .t::after { content: ' ←'; color: var(--accent); }
.layout-notebook .meter { margin-top: 8px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; row-gap: 4px; }
.layout-notebook .meter small { grid-column: 1 / -1; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.layout-notebook .meter b { font: var(--h-weight, 700) 2.4rem/1 var(--display); color: var(--ink); }
.layout-notebook .meter .now { font: 400 1rem var(--body); color: var(--ink-2); }
.layout-notebook .meter .now em { color: var(--accent); font-style: normal; }
.layout-notebook .meter .bar { grid-column: 1 / -1; height: 3px; background: var(--rule); }
.pg-no { position: absolute; bottom: 14px; font: 400 13px var(--mono); color: var(--ink-3); z-index: 2; }
.page.left .pg-no { left: 24px; } .page.right .pg-no, .leaf-front .pg-no { right: 24px; }
.rings { position: absolute; left: 50%; top: 22px; bottom: 22px; width: 36px; margin-left: -18px; z-index: 6; pointer-events: none;
  background: radial-gradient(ellipse 13px 8px at 50% 50%, transparent 52%, var(--ring) 56% 78%, transparent 82%) 0 0 / 36px 30px repeat-y; filter: drop-shadow(0 2px 1px rgb(0 0 0 / .35)); }
.leaf { display: none; position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transform: rotateY(calc(var(--f) * -180deg)); z-index: 5; }
.leaf-front, .leaf-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-color: var(--page); background-image: var(--ruled); background-position: 0 56px; overflow: hidden; }
.leaf-front { border-radius: 0 8px 8px 0; background-size: 100% 100%, auto; background-repeat: no-repeat, repeat; background-position: 0 0, 0 56px; }
.leaf-back { transform: rotateY(180deg); border-radius: 8px 0 0 8px; background-image: linear-gradient(90deg, transparent 54px, var(--margin) 54px 56px, transparent 56px), var(--ruled); }
.leaf-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / calc(var(--f) * .5)), transparent 70%); pointer-events: none; }
.leaf-back::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgb(0 0 0 / calc((1 - var(--f)) * .45)), transparent 70%); pointer-events: none; }
.layout-notebook .hud { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.layout-notebook .pill { font-family: var(--body); }
@media (max-width: 860px) {
  .layout-notebook .sticky { padding-top: calc(64px + env(safe-area-inset-top, 0px)); padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .book { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
  .page.left { border-radius: 8px 8px 0 0; box-shadow: inset 0 -30px 40px -30px rgb(0 0 0 / .3); }
  .page.right { border-radius: 0 0 8px 8px; box-shadow: inset 0 30px 40px -30px rgb(0 0 0 / .25); transform-origin: top center; transform: perspective(1400px) rotateX(calc(sin(var(--f) * 180deg) * -28deg)); }
  .pg-in { position: relative; padding: 18px 18px 26px 66px; gap: 6px; }
  .pg-in h2 { font-size: 2.3rem; }
  .pg-in .blurb { font-size: 1rem; line-height: 26px; }
  .layout-notebook .steps, .layout-notebook .meter .now { display: none; }
  .layout-notebook .meter b { font-size: 1.8rem; }
  .rings, .leaf { display: none !important; }
}

/* Player mode (mode: 'player' or ?mode=player): one stage you drive, instead of a long scroll */
.mode-player .sticky { position: relative; height: min(100svh, 980px); min-height: 620px; user-select: none; -webkit-user-select: none; cursor: grab; touch-action: pan-y; }
.mode-player .sticky.dragging { cursor: grabbing; }
.ctrl { display: grid; justify-items: center; gap: 10px; }
.ctrl .nav { margin-top: 0; }
.dock { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.show { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: 800 15px/1 var(--body); letter-spacing: .02em; cursor: pointer; box-shadow: var(--hard) var(--hard) 0 var(--ink); transition: transform .4s var(--spring); }
.show:hover { transform: translateY(-2px); }
.show:active { transform: scale(.95); }
.show .ico { width: 1.1em; text-align: center; font-size: 13px; }
.show.pulse { animation: showPulse 2.2s ease-in-out infinite; }
@keyframes showPulse { 0%, 100% { box-shadow: var(--hard) var(--hard) 0 var(--ink), 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: var(--hard) var(--hard) 0 var(--ink), 0 0 0 14px color-mix(in srgb, var(--accent) 0%, transparent); } }
.scrub { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: var(--bw) solid var(--line-2); border-radius: var(--radius); background: color-mix(in srgb, var(--sheet) 92%, transparent); font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); cursor: default; }
.scrub input { width: clamp(140px, 22vw, 280px); height: 28px; accent-color: var(--accent); cursor: pointer; }
.tour { min-height: 52px; padding: 0 16px; border: var(--bw) solid var(--line-2); border-radius: var(--radius); background: var(--sheet); color: var(--ink); font: 700 13px/1 var(--body); cursor: pointer; }
.tour[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.swipe-hint { margin: 0; font: 400 12px var(--mono); color: var(--ink-3); text-shadow: 0 0 10px var(--paper); }
.mode-player .hint i { display: none; }
@media (hover: hover) and (pointer: fine) { .swipe-hint { display: none; } }
@media (max-width: 860px) {
  .mode-player .sticky { min-height: 560px; }
  .dock { gap: 6px; }
  .show { min-height: 46px; padding: 0 16px; font-size: 14px; }
  .scrub { min-height: 46px; padding: 0 10px; } .scrub span { display: none; } .scrub input { width: 110px; }
  .tour { min-height: 46px; padding: 0 12px; }
  .mode-player .meter .now { display: none; }
}
@media (prefers-reduced-motion: reduce) { .show.pulse { animation: none; } }
.hud-cinema .ctrl { grid-row: 3; }
.hud-cinema .ctrl .nav { grid-row: auto; }

/* Timelapse (timelapse: { days, cycles }): a sky that follows the sun, and a day counter */
.tl-sky { position: absolute; inset: 0; background: linear-gradient(var(--sky1, #6fb1e6), var(--sky2, #cfe7f7)); }
.tl-clock { display: flex; gap: 10px; align-items: baseline; margin: 2px 0 0; font: 500 13px var(--mono); color: var(--ink-2); }
.tl-clock b { padding: 4px 9px; border-radius: calc(var(--radius) * .5); background: var(--ink); color: var(--paper); font: 600 13px var(--mono); text-shadow: none; font-variant-numeric: tabular-nums; }
.timelapse .hud .title { justify-self: start; padding: 12px 16px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--paper) 62%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-shadow: none; }
.timelapse .hud .title .no b { text-shadow: none; }
@media (max-width: 860px) { .timelapse .hud .title #blurb { display: none; } .timelapse .hud .title { padding: 10px 12px; } }
