/* The day look (lane first-run-day-1125): the parts every page in the founder's picked look of Nov 25 is made of.
   (lane cr-obsidian-studio-ux-1125, Nov 25: "make it look like this, but add our own aesthetic onto it") the Obsidian
   Studio: a #131315 obsidian ground, #1A1A1D cards on one #26262A hairline, light ink words, and one orange thing to press. The arm (one brushed dark-titanium arm with orange
   joints holding a phone with a real ad) only where an ad is handed to a person. No grid, panel field or texture behind any
   other screen. docs/DESIGN.md, "The day look (Nov 25)", names the rules; pages/day.ts draws the parts.
   Colours mean one thing each: orange the one press and the current step; green money and a step done; blue waiting on
   the brand; amber waiting to clear. Nothing else is coloured. */

@font-face { font-family: "Outfit"; src: url(/fonts/Outfit-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/home/fonts/GeistMono-100-900.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---- the tokens ---- */
:root {
  --dy-rail: #0C0C0D; --dy-ground: #131315; --dy-surface: #1A1A1D; --dy-surface-2: #202024; --dy-line: #26262A; --dy-edge: #34343C; --dy-seg: #2A2A30;
  --dy-ink: #F4F4F5; --dy-body: #A1A1AA; --dy-soft: #71717A;
  --dy-or: #FF5C00; --dy-or-h: #FF6E1A; --dy-or-t: #2B180E; --dy-gr: #22C55E; --dy-gr-t: #12281B; --dy-bl: #60A5FA; --dy-bl-t: #142236; --dy-am: #F59E0B; --dy-am-t: #2B2110;
  --dy-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --dy-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --dy-lift: 0 12px 32px -12px rgb(0 0 0 / .65), inset 0 1px 0 rgb(255 255 255 / .04);
  --dy-pad: 20px;
}
/* the ground on every engine: html and body both, one flat obsidian, and the page holds still like an app */
html, body { background: #131315; color: #F4F4F5; margin: 0; color-scheme: dark; }
html { overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overscroll-behavior: none; }
.dy { font-family: var(--dy-sans); color: var(--dy-ink); background: var(--dy-ground); min-height: var(--wh, 100svh); display: flex; flex-direction: column;
  text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
.dy *, .dy *::before, .dy *::after { box-sizing: border-box; }
.dy :where(h1, h2, h3, p, ol, ul, li, figure, form) { margin: 0; padding: 0; }
.dy :where(ol, ul) { list-style: none; }
.dy :where(a) { color: inherit; }
.dy :where(button, input) { font: inherit; color: inherit; }
.dy [hidden] { display: none !important; }
.dy :focus-visible { outline: 2px solid var(--dy-or); outline-offset: 3px; }
.dy h1:focus { outline: none; }
.dy-main { flex: 1; display: flex; flex-direction: column; }

/* ---- type ---- */
.dy-label { font-family: var(--dy-mono); font-size: 12px; line-height: 16px; letter-spacing: .07em; text-transform: uppercase; color: var(--dy-soft); font-weight: 500; }
.dy-label.is-or { color: var(--dy-or); }
.dy-h { font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -.035em; color: var(--dy-ink); text-wrap: balance; }
.dy-h em { font-style: normal; }
.dy-sub { font-size: 16px; line-height: 22px; color: var(--dy-body); }
.dy-sub b, .dy-small b { color: var(--dy-ink); font-weight: 600; }
.dy-small { font-size: 14px; line-height: 19px; color: var(--dy-body); }
.dy-fine { font-size: 14px; line-height: 19px; color: var(--dy-soft); text-align: center; }
.dy-fine a, .dy-small a, .dy-sub a { color: var(--dy-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--dy-edge); text-underline-offset: 3px; }
.dy-q { font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: -.015em; color: var(--dy-ink); }
/* a big money figure: green, the day's one size for money said loud */
.dy-money { display: block; font-size: 60px; line-height: 62px; font-weight: 700; letter-spacing: -.05em; color: var(--dy-gr); }
.dy-gr { color: var(--dy-gr); font-weight: 600; }

/* ---- the first run's bar: Back at the left, then thin segments (ink once reached) ---- */
.dy-top { display: flex; align-items: center; gap: 12px; height: 40px; flex: none; padding: 0 var(--dy-pad); margin-top: 8px; }
.dy-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -11px; flex: none;
  font-size: 26px; line-height: 26px; font-weight: 400; text-decoration: none; color: var(--dy-ink); border-radius: 22px; }
.dy-back svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dy-segs { display: flex; align-items: center; gap: 6px; flex: 1; }
.dy-segs i { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--dy-seg); }
.dy-segs i.on { background: var(--dy-ink); }

/* ---- a card ---- */
.dy-card { background: var(--dy-surface); border: 1px solid var(--dy-line); border-radius: 14px; padding: 18px 20px; }
.dy-card.is-raised { box-shadow: var(--dy-lift); }
/* the money card: a label, the figure, its condition */
.dy-cash { display: flex; flex-direction: column; gap: 2px; }
.dy-cash .dy-small { font-size: 15px; line-height: 21px; }

/* ---- keys and fields ---- */
.dy-key { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; flex: none; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--dy-or); color: #FFFFFF; font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease; -webkit-tap-highlight-color: transparent; }
.dy-key:hover { background: var(--dy-or-h); }
.dy-key:active { transform: scale(.98); background: #E65300; }
.dy-key[aria-busy=true] { background: #E65300; }
.dy-key .dy-arr { font-weight: 500; }
.dy-quiet { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--dy-surface-2); border: 1px solid var(--dy-edge); color: var(--dy-ink); font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; }
.dy-quiet:hover { background: #28282E; border-color: #42424C; }
.dy-quiet:active { transform: scale(.98); }
.dy-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--dy-ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.dy-links { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dy-links > span { color: var(--dy-soft); font-size: 15px; }
.dy-links form { display: contents; }
.dy-field { display: flex; flex-direction: column; gap: 8px; }
.dy-input { display: block; width: 100%; height: 52px; padding: 0 18px; border-radius: 12px; background: var(--dy-surface-2); border: 1px solid var(--dy-edge);
  font-size: 17px; color: var(--dy-ink); outline: none; -webkit-appearance: none; appearance: none; }
.dy-input::placeholder { color: var(--dy-soft); }
.dy-input:focus-visible { outline: none; }
.dy-input:focus { border-color: var(--dy-or); box-shadow: 0 0 0 3px rgb(255 92 0 / .22); }

/* ---- a chip: a tint ground with its colour's words ---- */
.dy-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; line-height: 17px; font-weight: 600; white-space: nowrap;
  background: var(--dy-surface-2); color: var(--dy-ink); border: 1px solid var(--dy-line); }
.dy-chip.is-or { background: var(--dy-or-t); color: #FF7A33; border-color: transparent; }
.dy-chip.is-gr { background: var(--dy-gr-t); color: #4ADE80; border-color: transparent; }
.dy-chip.is-bl { background: var(--dy-bl-t); color: #60A5FA; border-color: transparent; }
.dy-chip.is-am { background: var(--dy-am-t); color: #FBBF24; border-color: transparent; }
.dy-chip i { width: 18px; height: 18px; border-radius: 9px; background: center / cover no-repeat var(--dy-line); flex: none; margin-left: -6px; }

/* ---- the six-dot track: Offered, Claimed, Sent, Opened, Joined, Paying ---- */
.dy-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.dy-track li { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-family: var(--dy-mono); font-size: 12px; line-height: 16px; letter-spacing: .04em; color: var(--dy-soft); text-transform: uppercase; }
.dy-track li::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--dy-surface); border: 2px solid var(--dy-seg); position: relative; z-index: 1; }
.dy-track li::after { content: ""; position: absolute; top: 4px; left: calc(50% + 5px); width: calc(100% - 6px); height: 2px; background: var(--dy-seg); }
.dy-track li:last-child::after { display: none; }
.dy-track li.done::before { background: var(--dy-gr); border-color: var(--dy-gr); }
.dy-track li.done::after { background: var(--dy-gr); }
.dy-track li.on::before { background: var(--dy-or); border-color: var(--dy-or); box-shadow: 0 0 0 4px var(--dy-or-t); }
.dy-track li.on, .dy-track li.done { color: var(--dy-ink); }

/* ---- the code's six boxes: one real field under them (one-time-code fills it), the boxes drawn by public/day.js ---- */
.dy-code { position: relative; }
.dy-boxes { display: none; justify-content: center; gap: 8px; }
.dy-boxes i { display: flex; align-items: center; justify-content: center; width: 50px; height: 62px; flex: 0 1 50px; min-width: 38px; border-radius: 12px; background: var(--dy-surface-2);
  border: 1px solid var(--dy-edge); font-size: 28px; font-weight: 600; font-style: normal; color: var(--dy-ink); }
.dy-code.dy-js .dy-boxes { display: flex; }
.dy-code.dy-js .dy-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; color: transparent; caret-color: transparent; letter-spacing: 1em; font-size: 17px; }
.dy-code.dy-js.is-focus .dy-boxes i.on { border: 2px solid var(--dy-or); }
.dy-code.dy-js .dy-boxes i.on { border: 2px solid var(--dy-or); }

/* ---- a screen: the bar, then the words and the act (with the picture between on a phone), then what reads on below ---- */
.dy-screen { display: flex; flex-direction: column; min-height: var(--wh, 100svh); }
.dy-body { flex: 1 0 auto; display: flex; flex-direction: column; min-height: calc(var(--wh, 100svh) - 48px); }
.dy-words { display: flex; flex-direction: column; padding: 6px var(--dy-pad) 0; }
.dy-pic { position: relative; padding: 16px var(--dy-pad) 0; }
.dy-pic.is-arm { padding: 0; }
@media (max-width: 999px) { .dy-grid-w, .dy-big { display: none !important; } .dy-pic:has(> .dy-grid-w:only-child), .dy-pic:has(> .dy-big:only-child) { display: none; } }
.dy-dock { margin-top: auto; position: sticky; bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  padding: 16px var(--dy-pad) calc(22px + env(safe-area-inset-bottom)); background: rgb(19 19 21 / .96); }
.dy-dock.is-line { border-top: 1px solid var(--dy-line); gap: 8px; }
.dy-dock > .dy-links { min-height: 34px; }
.dy-sp2, .dy-sp3 { display: none; }
.dy-more { padding: 24px var(--dy-pad) 32px; display: flex; flex-direction: column; gap: 16px; }
/* the gaps the drawings use between a screen's parts */
.dy-words > .dy-label + .dy-h { margin-top: 8px; }
.dy-words > .dy-h + .dy-sub, .dy-words > .dy-h + .dy-small { margin-top: 8px; }
.dy-words > .dy-sub + .dy-card, .dy-words > .dy-sub + .dy-field, .dy-words > .dy-sub + form { margin-top: 20px; }
.dy-words > .dy-card + .dy-label, .dy-words > .dy-card + .dy-strip-w { margin-top: 20px; }
.dy-words > * + .dy-key, .dy-words > * + .dy-quiet { margin-top: 12px; }
.dy-words > .dy-flash { margin-bottom: 12px; }
.dy-words > .dy-said { margin-top: 8px; }
.dy-words > form { margin-top: 20px; }
.dy-words > form + * { margin-top: 12px; }
.dy-words > form + * + * { margin-top: 8px; }
.dy-stack { display: flex; flex-direction: column; gap: 12px; }
.dy-stack > .dy-fine { margin-top: 4px; }

/* a said line: what was last said (a wrong code, a used code), in ink on white, never a coloured ground */
.dy-flash { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--dy-surface); border: 1px solid var(--dy-line); font-size: 15px; line-height: 20px; color: var(--dy-ink); }
.dy-flash.bad { font-weight: 600; border-color: var(--dy-ink); }
.dy-said { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 19px; color: var(--dy-body); }

/* ---- ads as pictures: a row of stills, a grid of them on a computer ---- */
.dy-strip-w { display: flex; flex-direction: column; gap: 8px; }
.dy-strip { display: flex; gap: 8px; overflow: hidden; }
.dy-still { display: block; width: 52px; height: 92px; flex: none; border-radius: 10px; border: 1px solid var(--dy-line); background: #0F0F12; object-fit: contain; }
.dy-pic .dy-grid { display: none; }

/* ---- rows: a picture, a step's number, its title and line (the three beats) ---- */
.dy-rows { display: flex; flex-direction: column; gap: 8px; }
.dy-row { display: flex; align-items: center; gap: 16px; padding: 12px 14px; background: var(--dy-surface); border: 1px solid var(--dy-line); border-radius: 14px; }
.dy-row-pic { width: 44px; height: 78px; flex: none; border-radius: 10px; border: 1px solid var(--dy-line); display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #0F0F12 center / contain no-repeat; font-size: 22px; font-weight: 700; }
.dy-row-pic.is-bl { background-color: var(--dy-bl-t); color: var(--dy-bl); border-color: transparent; font-weight: 400; }
.dy-row-pic.is-gr { background-color: var(--dy-gr-t); color: var(--dy-gr); border-color: transparent; }
.dy-row-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dy-row-h { display: flex; align-items: baseline; gap: 8px; font-size: 17px; line-height: 21px; font-weight: 600; color: var(--dy-ink); }
.dy-row-h > i { font-style: normal; font-family: var(--dy-mono); font-size: 13px; line-height: 17px; letter-spacing: .07em; color: var(--dy-or); font-weight: 500; }
.dy-row-h em { font-style: normal; color: var(--dy-gr); }
.dy-row-t > span { font-size: 14px; line-height: 19px; color: var(--dy-body); }
/* a card that is a way on (Know a brand? Add it): its words and a line under them */
a.dy-row { text-decoration: none; }
a.dy-row > .dy-row-t { flex: 1; }
.dy-row-go { font-size: 20px; color: var(--dy-ink); flex: none; }
/* a small ad beside a fact (the brand's sign-in) */
.dy-adcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; }
.dy-adcard .dy-still { width: 40px; height: 71px; }
.dy-adcard-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dy-adcard-t b { font-size: 15px; line-height: 19px; font-weight: 600; }
.dy-adcard-t span { font-size: 14px; line-height: 18px; color: var(--dy-soft); }

/* ---- the arm: one brushed dark-titanium arm with orange joints holding a phone with a real ad, obsidian panels only near it ---- */
.dy-pic.is-arm { flex: 1 1 0; min-height: 300px; container-type: size; overflow: hidden; }
.dy-hold { --w: 170px; position: absolute; width: calc(var(--w) * 1.96); height: calc(var(--w) * 2.26); left: calc(50% - var(--w) * .98); top: calc(50% - var(--w) * .98); }
@container (min-height: 10px) { .dy-hold { --w: clamp(118px, calc((100cqh - 16px) / 1.95), 190px); } }
.dy-panels { position: absolute; left: calc(var(--w) * -.5); top: calc(var(--w) * -.25); width: calc(var(--w) * 2.6); height: calc(var(--w) * 2.7); display: grid;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc(var(--w) * .62); gap: calc(var(--w) * .06); pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side at 36% 66%, #000 18%, rgb(0 0 0 / .5) 52%, transparent 100%); mask-image: radial-gradient(closest-side at 36% 66%, #000 18%, rgb(0 0 0 / .5) 52%, transparent 100%); }
.dy-panels i { border-radius: calc(var(--w) * .07); background: linear-gradient(170deg, #1B1B1F, #151518); box-shadow: inset 0 -1px 0 #26262A; }
.dy-arm { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.dy-glass { position: absolute; z-index: 1; left: calc(var(--w) * .48); top: calc(var(--w) * .04); width: var(--w); margin: 0; padding: calc(var(--w) * .04); border-radius: calc(var(--w) * .13);
  background: linear-gradient(170deg, #27272E, #16161A); box-shadow: var(--dy-lift), 0 0 0 1px #383842; }
.dy-glass-in { position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 16; border-radius: calc(var(--w) * .095); background: #0A0A0B; }
.dy-glass-in img, .dy-glass-in video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.dy-glass-in video { opacity: 0; transition: opacity 300ms ease; }
.dy-glass-in video.on { opacity: 1; }
.dy-glass-foot { position: absolute; left: 0; right: 0; bottom: calc(var(--w) * .1); display: flex; justify-content: center; padding: 0 8px; z-index: 2; }
.dy-glass-foot .dy-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 12px rgb(0 0 0 / .45); }
.dy-glass-foot .dy-chip small { font-size: 13px; font-weight: 500; }
/* a claim landing: the Claimed chip waits hidden and lands the moment Claim it is pressed (public/start.js is-claimed) */
.dy-later { display: none !important; }
.is-claimed .dy-later { display: inline-flex !important; animation: dy-land 420ms cubic-bezier(.22, 1, .36, 1) both; }
.is-claimed .dy-name-chip { display: none; }
@keyframes dy-land { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
/* the film's sound key: a round key on the phone, its words beside the phone */
.dy-snd { position: absolute; z-index: 3; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 30px; border: 0; padding: 0 0 0 4px;
  background: rgb(19 19 21 / .88); border: 1px solid rgb(255 255 255 / .18); box-shadow: 0 8px 24px rgb(0 0 0 / .55); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 150ms ease, opacity 200ms ease; }
.dy-snd:active { transform: scale(.94); }
.dy-snd svg { width: 20px; height: 20px; fill: #F4F4F5; }
.dy-snd .dy-snd-on { display: none; }
.dy-snd.on { width: 44px; height: 44px; margin: 0; left: auto; top: 10px; right: 10px; padding: 0; opacity: .9; }
.dy-snd.on .dy-snd-play { display: none; }
.dy-snd.on .dy-snd-on { display: block; }
.dy-snd-t { position: absolute; left: calc(30px + var(--w) / 2 + 16px); top: 50%; transform: translateY(-50%); width: 84px; text-align: left; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--dy-ink); }
.dy-snd.on .dy-snd-t { left: auto; right: 0; top: auto; bottom: -9999px; }
@container (max-width: 359px) { .dy-snd-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---- the screens that fit: a short window gets less air (the key and the field stay in the first screen) ---- */
@media (max-height: 720px) and (max-width: 999px) {
  .dy-words > .dy-sub + .dy-card { margin-top: 12px; }
  .dy-words > .dy-card + .dy-label, .dy-words > .dy-card + .dy-strip-w { margin-top: 12px; }
  .dy-money { font-size: 52px; line-height: 54px; }
  .dy-row { padding: 8px 12px; }
  .dy-row-pic { width: 30px; height: 53px; font-size: 18px; }
  .dy-pic .dy-rows { gap: 8px; }
  .dy-dock { padding-top: 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (max-height: 600px) and (max-width: 359px) { .dy-pic .dy-row-t > span, .dy-pic .dy-row-pic { display: none; } }
/* (the combined branch) a 320 x 660 or 360 x 640 phone: the third screen's three rows were 9 to 29 px taller than what is
   left above the key */
@media (max-height: 780px) and (max-width: 389px) { .dy-pic .dy-rows { gap: 4px; } .dy-pic .dy-row { padding: 6px 12px; } .dy-pic .dy-row-pic { width: 26px; height: 46px; } }
@media (max-height: 600px) and (max-width: 999px) {
  .dy-words .dy-strip-w { display: none; }
  .dy-h { font-size: 28px; line-height: 32px; }
}

/* ---- a computer: the same screen in a column up to 1100 wide, the words and the act at the left (up to 520), the
   screen's picture at the right; the column at the window's optical centre (2 parts over it, 3 under) ---- */
@media (min-width: 1000px) {
  :root { --dy-pad: 0px; }
  .dy-screen { padding: 0 48px; }
  .dy-top { width: 100%; max-width: 1100px; margin: 0 auto 24px; }
  .dy-screen { position: relative; }
  .dy-top.is-bare { position: absolute; top: 24px; left: 48px; width: auto; margin: 0; }
  .dy-sp2, .dy-sp3 { display: block; min-height: 24px; }
  .dy-sp2 { flex: 2; } .dy-sp3 { flex: 3; }
  .dy-body { flex: none; min-height: 0; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: ". pic" "words pic" "dock pic" "more pic" ". pic"; column-gap: 48px; width: 100%; max-width: 1100px; margin: 0 auto; }
  .dy-body.is-one { grid-template-columns: minmax(0, 520px); grid-template-areas: "." "words" "dock" "more" "."; justify-content: center; }
  .dy-words { grid-area: words; min-width: 0; }
  .dy-dock { grid-area: dock; margin-top: 24px !important; }
  .dy-more { grid-area: more; margin-top: 24px; }
  .dy-pic { grid-area: pic; align-self: center; }
  .dy-words { padding: 0; }
  .dy-dock { position: static; margin: 0; padding: 0; background: none; border: 0; align-items: stretch; }
  .dy-dock.is-line { border: 0; }
  .dy-dock > .dy-fine, .dy-dock > .dy-links { align-self: flex-start; text-align: left; justify-content: flex-start; }
  .dy-pic { display: flex; align-items: center; justify-content: center; min-width: 0; }
  .dy-links > .dy-phone-only + span { display: none; }
  .dy-pic.is-arm { overflow: visible; flex: none; height: min(600px, calc(var(--wh, 100vh) - 180px)); min-height: 440px; }
  @container (min-height: 10px) { .dy-hold { --w: clamp(150px, calc((100cqh - 16px) / 2.1), 240px); } }
  .dy-more { padding: 0; }
  .dy-flash { margin: 0; }
  .dy-words .dy-strip-w { display: none; }
  .dy-pic .dy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 12px; justify-content: center; }
  .dy-pic .dy-grid .dy-still { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 12px; }
  .dy-pic .dy-grid-w { display: flex; flex-direction: column; gap: 12px; }
  .dy-pic .dy-rows { width: 100%; max-width: 460px; gap: 12px; }
  .dy-pic .dy-row { padding: 16px 18px; border-radius: 14px; }
  .dy-pic .dy-row-pic { width: 56px; height: 100px; }
  .dy-big { position: relative; width: min(340px, calc(var(--wh, 100vh) * .58 * .5625)); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #0A0A0B; box-shadow: var(--dy-lift), 0 0 0 1px var(--dy-line); }
  .dy-big img, .dy-big video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .dy-big video { opacity: 0; transition: opacity 300ms ease; }
  .dy-big video.on { opacity: 1; }
  .dy-phone-only { display: none !important; }
}
@media (max-width: 999px) { .dy-computer-only { display: none !important; } }
@media (min-width: 1000px) and (max-height: 820px) {
  .dy-pic .dy-grid { grid-template-columns: repeat(3, minmax(0, 124px)); }
}
/* from 1800 the type steps once (docs/DESIGN.md, Typography) */
@media (min-width: 1800px) {
  .dy-body { max-width: 1240px; } .dy-top { max-width: 1240px; }
  .dy-h { font-size: 36px; line-height: 40px; }
  .dy-sub { font-size: 17px; line-height: 24px; }
  .dy-pic .dy-grid { grid-template-columns: repeat(3, minmax(0, 170px)); }
}
@media (prefers-reduced-motion: reduce) {
  .dy-key, .dy-snd, .dy-glass-in video, .dy-big video { transition: none; }
  .is-claimed .dy-later { animation: none; }
}
/* a step the person took slides in (public/start.js dy-enter), only its place */
.dy-enter { animation: dy-in 280ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes dy-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dy-enter { animation: none; } }
/* the Claimed chip on a held phone: its day under it when the phone is narrow */
.dy-glass-foot .dy-chip.is-gr { height: auto; min-height: 26px; padding: 4px 10px; flex-wrap: wrap; justify-content: center; column-gap: 4px; row-gap: 0; white-space: normal; text-align: center; }

/* ---- nothing a page draws for show (the arm's fading panels, a lift's shadow) may widen the page: on a window between
   1000 and 1180 wide the panels behind the arm reached 19 to 103 px past the right edge and the page scrolled sideways.
   clip, not hidden: no scroll box is made, so a sticky bar and the window's own scroll are untouched ---- */
.dy { overflow-x: clip; }

/* ---- the mark: Cracked's orange tile, the word and its orange stop, the same on every page's bar (the front door's:
   public/door-wall.css .wordmark). pages/day.ts dyBrand draws it; an area's sheet only places it ---- */
.dy-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.03em; color: var(--dy-ink); text-decoration: none; }
.dy-brand > i { display: block; width: 28px; height: 28px; flex: none; color: var(--dy-or); }
.dy-brand > i svg { display: block; width: 100%; height: 100%; }
.dy-brand .dy-mark-c { fill: #FFFFFF; }
.dy-brand > b { font-weight: inherit; }
.dy-brand > b::after { content: "."; color: var(--dy-or); }
@media (max-width: 359px) { .dy-brand > i { display: none; } }
@media (min-width: 1000px) { .dy-brand { font-size: 24px; } .dy-brand > i { width: 30px; height: 30px; } }

/* ---- Sign in, on a signed-out page's bar: one quiet white pill, the same on every page (the front door's) ---- */
.dy .dy-in-pill, .dy .dy-pill { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 36px; min-height: 0; padding: 0 16px; flex: none; border-radius: 10px;
  background: var(--dy-surface-2); border: 1px solid var(--dy-edge); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--dy-ink); text-decoration: none; white-space: nowrap; }
.dy .dy-in-pill::after { content: ""; position: absolute; inset: -4px 0; }
.dy .dy-in-pill:active { transform: scale(.98); }
@media (min-width: 1000px) { .dy .dy-in-pill, .dy .dy-pill { height: 40px; border-radius: 10px; padding: 0 18px; } }

/* A large window (the founder's own is 2985 x 1634): never a zoom (lane cr-obsidian-studio-ux-1125). The column widens in
   fixed px steps and the type steps once more, so a page is never a small island and never a blown-up laptop page. */
@media (min-width: 2400px) {
  .dy-body, .dy-top { max-width: 1340px; }
  .dy-h { font-size: 40px; line-height: 44px; }
  .dy-pic.is-arm { height: min(680px, calc(var(--wh, 100vh) - 180px)); }
  @container (min-height: 10px) { .dy-hold { --w: clamp(150px, calc((100cqh - 16px) / 2.1), 280px); } }
}
@media (min-width: 1000px) { .dy-cols > .dy-num { align-self: start; } }
