/* comic-scroll.css (2026-10-15): THE SCROLL READER — /good-boy/comics/<slug>/ for a comic built from a spec in
   deploy/comics/. FULLY IMMERSIVE (James: "full 9:16 no yellow borders or whatever, this is fully immersive"): every page
   is the whole screen, a sheet of comic-book paper: the panels inked on it, WHITE GUTTERS between them and round the edge
   (James, 2026-10-16: "white panel separators like a comic book"); the strip scrolls
   free, no snapping (James, 2026-10-16: "just do continous scroll cause that forced scroll is annoying"). A desk shows the same pages as a full-height 9:16 column on black. The back button
   and the Found counter float over the art. Loaded after style.css (its fonts, tokens and .btn); the lettering is live
   text laid over the art in % of the panel and sized in % of the page width (cqw). Page-built panels: Sean's texts
   (.cs-chat), the choice (.cs-choice), the end (.cs-end). OPENABLE OBJECTS open over the comic in a device frame with
   their own screens: the phone (.ph-) and the laptop (.lt-). */

/* THE LETTERING (2026-10-16, James: "have the font be more comic like in the text bubbles"): Comic Neue Bold Italic, the
   slanted all-caps hand of comic-book lettering, in every bubble; the laptop's system face (Inter) for screens without SF. */
@font-face { font-family: "Comic Neue"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/comic-neue-700i-latin.woff2") format("woff2"); }
@font-face { font-family: "LT Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter-var-latin.woff2") format("woff2"); }

html:has(> body.comic-scroll) { background: #05070c; overscroll-behavior-y: none; }
body.comic-scroll {
  --cs-dark: oklch(0.16 0.045 262);
  --cs-red: oklch(0.62 0.22 25);
  --cs-page-w: min(100vw, calc(100svh * 9 / 16));
  --cs-paper: #fdfcf7; --cs-line: #0c0d12; --cs-gut: calc(var(--cs-page-w) * 0.022);
  background: #05070c;
  -webkit-tap-highlight-color: transparent;
}
body.comic-scroll.cs-locked { overflow: hidden; }

/* floating over the art: back (the player's chevron) and the Found counter */
.cs-top {
  position: fixed; z-index: 20; top: 0; left: 50%; transform: translateX(-50%);
  width: var(--cs-page-w);
  display: flex; align-items: center; gap: 10px; pointer-events: none;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
}
.cs-top > * { pointer-events: auto; }
.cs-top { transition: transform 260ms var(--ease-out), opacity 260ms; }
.cs-top.tuck { transform: translate(-50%, -110%); opacity: 0; }
.cs-back { display: grid; place-items: center; width: 44px; height: 44px; color: var(--cream); filter: drop-shadow(2px 2px 0 var(--ink)); }
.cs-back svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cs-kicker { display: none; }
.cs-found { margin-left: auto; font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--cream); background: oklch(0.12 0.03 262 / 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 12px; }

/* the column: the pages, nothing between them but the gutter */
.cs { margin: 0 auto; padding: 0; width: var(--cs-page-w); }
.cs-title, .cs-lede { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cs-pages { display: grid; gap: 0; padding-bottom: var(--cs-gut); background: var(--cs-paper); }

/* a page = one screen */
.cs-page {
  width: var(--cs-page-w); height: 100svh;
  background: var(--cs-paper); padding: var(--cs-gut) var(--cs-gut) 0; display: grid; gap: var(--cs-gut);
  container-type: inline-size;
}
.cs-page[hidden] { display: none; }
.cs-p { position: relative; overflow: hidden; background: #0b0d14; min-height: 0; min-width: 0; }
.cs-p::after { content: ""; position: absolute; inset: 0; z-index: 4; border: 2.5px solid var(--cs-line); pointer-events: none; }   /* the panel's ink line */
.cs-cue { position: absolute; z-index: 6; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; margin-left: -22px; color: var(--cream); filter: drop-shadow(2px 2px 0 var(--ink)); pointer-events: none; animation: cs-cue 1.6s ease-in-out infinite; transition: opacity 300ms; }
.cs-cue svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cs-cue.gone { opacity: 0; }
@keyframes cs-cue { 50% { transform: translateY(6px); } }
.cs-p > img, .cs-p > video.cs-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* the lettering: x / y in % of the panel, size in % of the page */
.cs-l { position: absolute; z-index: 3; pointer-events: none; }
.cs-say, .cs-off {
  max-width: 58%; background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 18px;
  padding: 0.5em 0.75em 0.55em; box-shadow: 2px 2px 0 var(--ink);
  font-family: "Comic Neue", var(--body); font-style: italic; font-weight: 700; font-size: clamp(11px, 3.3cqw, 17px); line-height: 1.12; text-transform: uppercase; letter-spacing: 0;
}
.cs-say::after { content: ""; position: absolute; bottom: -11px; left: 22px; width: 16px; height: 16px; background: var(--cream); border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: skewX(24deg) rotate(45deg); }
.cs-say.tail-r::after { left: auto; right: 22px; transform: skewX(-24deg) rotate(45deg); }
/* tails pointing UP, for a bubble under its speaker (Bid Night 10-16: narrow panels where both heads fill the top) */
.cs-say.tail-u::after, .cs-say.tail-ur::after { bottom: auto; top: -11px; transform: skewX(-24deg) rotate(225deg); }
.cs-say.tail-ur::after { left: auto; right: 22px; transform: skewX(24deg) rotate(225deg); }
.cs-say.lg { font-size: clamp(20px, 6.6cqw, 34px); line-height: 1; letter-spacing: -0.01em; }
.cs-off { border-radius: 10px; border-style: solid; background: oklch(0.95 0.03 95); }
.cs-off::before { content: attr(data-who); display: block; font-size: 0.7em; letter-spacing: 0.08em; opacity: 0.6; margin-bottom: 2px; }
/* VOICED LINES (James, 10-16: "a button for audio ... subtle and not too big"): a 22 px cream dot with the ink line on the
   bubble's corner, a speaker in it; a 40 px tap target; yellow + the waves pulsing while the line plays */
.cs-aud {
  position: absolute; right: -10px; bottom: -10px; width: 22px; height: 22px; padding: 0; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--cream); color: var(--ink); box-shadow: 1.5px 1.5px 0 var(--ink);
  cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; transition: background-color 160ms;
}
.cs-aud::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.cs-aud svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cs-aud .sp { fill: currentColor; stroke: none; }
@media (hover: hover) { .cs-aud:hover { background: var(--yellow); } }
.cs-aud.on { background: var(--yellow); }
.cs-aud.on .w1, .cs-aud.on .w2 { animation: cs-aud-wave 0.9s ease-in-out infinite; }
.cs-aud.on .w2 { animation-delay: 0.2s; }
@keyframes cs-aud-wave { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.cs-aud:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.cs-cap {
  background: var(--yellow); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  padding: 0.35em 0.6em 0.3em; font-family: var(--display); font-size: clamp(11px, 3.2cqw, 16px); text-transform: uppercase; letter-spacing: 0.03em;
}
.cs-sfx {
  font-family: var(--display); font-size: clamp(22px, 8cqw, 44px); line-height: 1; color: var(--yellow); white-space: nowrap;
  -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); transform: rotate(var(--rot, 0deg));
}
/* THE TITLE (James, 2026-10-16: "styled much more like the comic. same font tho"): a comic cover logo in the comic's own SFX
   colours. Per letter, back to front: the ink block (the letter itself: fat ink line + extrusion), the red side (::before,
   nudged up-left), the face (::after, nudged further: yellow-to-orange with halftone dots, thin ink line). Letters bounce. */
.cs-sfx.xl {
  display: flex; font-size: clamp(44px, 16cqw, 90px); line-height: 0.9; letter-spacing: 0; color: var(--ink);
  -webkit-text-stroke: 0; text-shadow: none; transform: rotate(var(--rot, 0deg)) skewX(-7deg);
}
.cs-sfx.xl .ch {
  position: relative; display: inline-block; margin-right: -0.035em; color: var(--ink);
  -webkit-text-stroke: 0.15em var(--ink); paint-order: stroke fill;
  text-shadow: 0.03em 0.03em 0 var(--ink), 0.06em 0.06em 0 var(--ink), 0.09em 0.09em 0 var(--ink);
}
.cs-sfx.xl .ch:nth-child(odd) { transform: translateY(-0.035em) rotate(-3deg); }
.cs-sfx.xl .ch:nth-child(even) { transform: translateY(0.03em) rotate(2.5deg); }
.cs-sfx.xl .ch::before, .cs-sfx.xl .ch::after { content: attr(data-t); position: absolute; text-shadow: none; }
.cs-sfx.xl .ch::before { left: -0.05em; top: -0.05em; color: var(--cs-red); -webkit-text-stroke: 0; }
.cs-sfx.xl .ch::after {
  left: -0.1em; top: -0.1em; -webkit-text-stroke: 0.045em var(--ink);
  background:
    radial-gradient(circle, oklch(0.62 0.19 45 / 0.5) 0 28%, transparent 32%) 0 0 / 0.11em 0.11em,
    linear-gradient(180deg, oklch(0.96 0.13 102) 0%, var(--yellow) 42%, oklch(0.78 0.18 62) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cs-bpm {
  display: inline-flex; align-items: center; gap: 0.35em; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700;
  font-size: clamp(12px, 3.6cqw, 19px); color: var(--cs-red); background: oklch(0.12 0.03 262 / 0.9); border: 2px solid var(--cs-red);
  border-radius: 6px; padding: 0.2em 0.5em; letter-spacing: 0.04em;
}
.cs-bpm::before { content: "♥"; animation: cs-beat 0.8s ease-in-out infinite; }
.cs-bpm::after { content: "BPM"; font-size: 0.6em; opacity: 0.8; }
@keyframes cs-beat { 50% { transform: scale(1.3); } }
.cs-p > img.cs-paint { inset: auto; height: auto; object-fit: contain; transform: rotate(var(--rot, 0deg)); }   /* not the panel art: its own size */
.cs-board { font-family: var(--marker); font-size: clamp(16px, 6.4cqw, 34px); color: oklch(0.32 0.12 262); transform: rotate(-2deg); white-space: nowrap; }
.cs-p.go .cs-l { animation: cs-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.cs-p.go .cs-l:nth-of-type(2) { animation-delay: 300ms; }
.cs-p.go .cs-l:nth-of-type(3) { animation-delay: 600ms; }
.cs-p.go .cs-l:nth-of-type(4) { animation-delay: 900ms; }
.cs-p.armed .cs-l { opacity: 0; }
@keyframes cs-pop { from { opacity: 0; transform: scale(0.6) rotate(var(--rot, 0deg)); } to { opacity: 1; } }

/* a thing you can open: a slow shimmer + an OPEN tag */
.cs-hot { position: absolute; z-index: 4; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 10px; overflow: hidden; }
.cs-hot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, oklch(1 0 0 / 0.38) 50%, transparent 65%); background-size: 260% 100%; animation: cs-shine 3.6s ease-in-out infinite; }
.cs-hot::after { content: "Open"; position: absolute; right: 6px; bottom: 6px; font-family: var(--display); font-size: clamp(11px, 3cqw, 15px); text-transform: uppercase; color: var(--ink); background: var(--cyan); border: 2px solid var(--ink); padding: 3px 7px 2px; box-shadow: 2px 2px 0 var(--ink); }
.cs-hot.found::before { animation: none; opacity: 0; }
/* THE THING AS A STICKER (James, 2026-10-16: "the 3d laptop has to look like it does in the comic tho ... just a sticker on
   top of it thats stylized to look like it popping off the page a bit more"): the panel's own drawing, cut out with a cream
   die-cut edge (comic-demo/cut_sticker.py), on a layer that repeats the picture's object-fit: cover box (container units of the
   cell: --ar = the art's w / h, --fx/--fy = its focus) so x / y / w are % OF THE ART; lifted, tilted, the ink shadow, a bob.
   The hotspot keeps the tap; with a sticker it loses its shine and its Open tag. */
.cs-hot.has-stk::before, .cs-hot.has-stk::after { content: none; }
.cs-stk-layer { position: absolute; inset: 0; z-index: 2; container-type: size; pointer-events: none; }
.cs-stk-art {
  position: absolute;
  width: max(100cqw, 100cqh * var(--ar)); height: max(100cqh, 100cqw / var(--ar));
  left: calc((100cqw - max(100cqw, 100cqh * var(--ar))) * var(--fx));
  top: calc((100cqh - max(100cqh, 100cqw / var(--ar))) * var(--fy));
}
.cs-stk {
  position: absolute; height: auto; transform-origin: 55% 65%;
  transform: translate(-1%, -4.5%) rotate(-3deg) scale(1.07);
  filter: drop-shadow(5px 6px 0 var(--ink)) drop-shadow(0 14px 16px oklch(0 0 0 / 0.42));
  animation: cs-stk-bob 3s ease-in-out infinite;
}
@keyframes cs-stk-bob { 50% { transform: translate(-1%, -7.5%) rotate(-2deg) scale(1.07); } }
@media (hover: hover) { .cs-p:has(.cs-hot.has-stk:hover) .cs-stk { transform: translate(-1.2%, -8%) rotate(-4deg) scale(1.1); animation: none; } }
.cs-p:has(.cs-hot.has-stk:active) .cs-stk { transform: translate(0, -1%) rotate(-1deg) scale(1.01); animation: none; }
.cs-stk > img { display: block; width: 100%; height: auto; }
.cs-stk-over { position: absolute; height: auto; pointer-events: none; }   /* the hand over the phone: at its spot in the art */
/* the shimmer (James, 10-16: "put a shimmer on the laptop"): a white glint swept across the sticker every few seconds, clipped
   to the die-cut shape by the sticker's own alpha as a mask (set inline by comic-scroll.js) */
.cs-stk-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(115deg, transparent 36%, oklch(1 0 0 / 0.22) 43%, oklch(1 0 0 / 0.85) 50%, oklch(1 0 0 / 0.22) 57%, transparent 64%) 0 0 / 260% 100% no-repeat;
  animation: cs-stk-glint 3s ease-in-out infinite;
}
/* the band crosses the sticker while the position runs 81% -> 19% (size 260%), the middle of this sweep: ~0.5 s on it, then a rest */
@keyframes cs-stk-glint { 0%, 52% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
@keyframes cs-shine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.cs-hot:focus-visible, .cs-open:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }

/* page-built panels */
.cs-p.ui { background: var(--cs-dark); display: grid; }
.cs-chat { position: relative; display: grid; align-content: end; gap: 1.4cqw; padding: 3cqw 2.6cqw 3.4cqw; font-size: clamp(12px, 3.5cqw, 17px); color: var(--cream); cursor: pointer; border: 0; background: radial-gradient(130% 90% at 20% 0%, oklch(0.32 0.09 285), oklch(0.17 0.05 262) 70%); text-align: left; overflow: hidden; }
.cs-chat-h { font-size: 0.78em; font-weight: 700; color: oklch(0.8 0.03 262); letter-spacing: 0.04em; display: flex; justify-content: space-between; gap: 6px; }
.cs-chat .m { justify-self: start; max-width: 88%; background: oklch(0.32 0.03 262); border-radius: 14px 14px 14px 4px; padding: 0.4em 0.7em; line-height: 1.25; }
.cs-chat .m.me { justify-self: end; background: oklch(0.6 0.17 250); color: #fff; border-radius: 14px 14px 4px 14px; }
.cs-chat.cs-open::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, oklch(1 0 0 / 0.12) 50%, transparent 65%); background-size: 260% 100%; animation: cs-shine 3.6s ease-in-out infinite; pointer-events: none; }
.cs-chat .tag { font-family: var(--display); font-size: 0.82em; text-transform: uppercase; color: var(--ink); background: var(--cyan); border: 2px solid var(--ink); padding: 2px 6px 1px; }
/* THE CHOICE, part of the comic (James, 2026-10-16: "the choose your path ... should be styled like actually part of the
   comic"): panel 19 is drawn (Brody frozen at "Good boy."), and the choice is lettered over it like any other panel: the
   yellow caption box asks, and the two paths are BRODY'S THOUGHT BUBBLES (an oval, the trail of two little ovals toward his
   head, the bubble lettering). Tap one: it goes yellow, the other fades. The bubbles drift a little so they read as live. */
.cs-choice { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cs-ccap { display: grid; gap: 0.15em; transform: rotate(-1deg); }
.cs-ccap .k { font-size: 0.66em; letter-spacing: 0.08em; opacity: 0.72; }
.cs-ccap h2 { margin: 0; font: inherit; font-size: 1.12em; line-height: 1; color: var(--ink); text-wrap: balance; }
.cs-opt {
  position: absolute; z-index: 1; pointer-events: auto; cursor: pointer;
  padding: 0.9em 1.15em 0.85em; background: var(--cream); color: var(--ink);
  border: 2.5px solid var(--cs-line); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink);
  font-family: "Comic Neue", var(--body); font-style: italic; font-weight: 700; font-size: clamp(11px, 3.4cqw, 17.5px); line-height: 1.1;
  text-transform: uppercase; text-align: center;
  animation: cs-think 3.2s ease-in-out infinite;
  transition: background-color 160ms, opacity 220ms, filter 220ms;
}
.cs-opt::before, .cs-opt::after { content: ""; position: absolute; background: inherit; border: 2.5px solid var(--cs-line); border-radius: 50%; }
.cs-opt::before { width: 15px; height: 11px; bottom: -16px; }
.cs-opt::after { width: 9px; height: 7px; bottom: -28px; }
.cs-opt.tail-r::before { right: 20%; } .cs-opt.tail-r::after { right: 10%; }
.cs-opt.tail-l::before { left: 20%; } .cs-opt.tail-l::after { left: 10%; }
.cs-opt + .cs-opt { animation-delay: -1.6s; }
@keyframes cs-think { 50% { transform: translateY(-3px); } }
@media (hover: hover) { .cs-opt:hover { background: oklch(0.97 0.08 95); } }
.cs-opt:active { filter: brightness(0.92); }
.cs-opt:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.cs-opt[aria-pressed="true"] { background: var(--yellow); animation: none; }
.cs-opt[aria-pressed="false"] { opacity: 0.45; filter: saturate(0.3); animation: none; }
/* THE END (James, 2026-10-16: "the last panel with the buttons should also be stylized like the comic"): a drawn panel (the
   projector's heart line, cropped from panel 8) with BEEEEEEP lettered from the spec, a yellow THE END. caption and the two
   ways out as the comic's cream lettered boxes, tilted, the hard ink shadow; the foot shaded in ink so they read */
.cs-end {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; padding: 3.2cqw; pointer-events: none;
  background: linear-gradient(to top, oklch(0.16 0.045 262 / 0.82) 0%, oklch(0.16 0.045 262 / 0.35) 45%, oklch(0.16 0.045 262 / 0) 70%);
}
.cs-end-cap {
  position: absolute; top: 3.2cqw; right: 3.2cqw; background: var(--yellow); color: var(--ink); border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink); padding: 0.35em 0.6em 0.3em; transform: rotate(2deg);
  font-family: var(--display); font-size: clamp(11px, 3.2cqw, 16px); text-transform: uppercase; letter-spacing: 0.03em;
}
.cs-end .row { display: flex; flex-wrap: wrap; gap: 2.6cqw; pointer-events: auto; }
.cs-end-btn {
  display: inline-block; cursor: pointer; text-decoration: none; color: var(--ink); background: var(--cream);
  border: 2.5px solid var(--ink); border-radius: 4px; box-shadow: 3px 3px 0 var(--ink); padding: 0.55em 0.8em 0.5em;
  font-family: "Comic Neue", var(--body); font-style: italic; font-weight: 700; font-size: clamp(12px, 3.5cqw, 18px);
  line-height: 1.05; text-transform: uppercase; transform: rotate(-1.5deg);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms;
}
.cs-end-btn + .cs-end-btn { transform: rotate(1.5deg); }
.cs-end-btn::after { content: " \203A"; }
@media (hover: hover) { .cs-end-btn:hover { background: var(--yellow); transform: rotate(0deg) translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); } }
.cs-end-btn:active { transform: rotate(0deg) translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cs-end-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.cs-wait { display: none; margin: 0; padding: 14px 16px; border: 3px dashed var(--ink); background: oklch(0.97 0.03 95 / 0.7); font-weight: 700; text-align: center; }

/* ── THE OBJECTS: a scrim, then the device in the middle of the screen ── */
.cs-scrim { position: fixed; inset: 0; z-index: 40; background: oklch(0.12 0.03 262 / 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity 260ms ease; }
.cs-scrim.on { opacity: 1; }
.cs-object { position: fixed; z-index: 41; left: 50%; top: 50%; transform-origin: 0 0; }
.cs-x { position: absolute; z-index: 5; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); box-shadow: 3px 3px 0 var(--ink); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); font-weight: 700; }

/* the phone */
.ph { --ph-w: min(360px, 90vw); width: var(--ph-w); height: min(740px, 84svh); border-radius: 46px; background: #0b0b0d; padding: 11px; box-shadow: 0 0 0 2px #2b2b30, 0 30px 60px oklch(0 0 0 / 0.5); position: relative; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #f2f2f7; color: #111; font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; display: grid; grid-template-rows: auto 1fr auto; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 6px; font-weight: 600; font-size: 14px; position: relative; z-index: 2; }
.ph-status::after { content: ""; position: absolute; left: 50%; top: 9px; width: 96px; height: 26px; margin-left: -48px; border-radius: 16px; background: #0b0b0d; }
.ph-body { overflow: auto; position: relative; }
.ph-homebar { height: 22px; display: grid; place-items: center; cursor: pointer; border: 0; background: transparent; padding: 0; }
.ph-homebar::before { content: ""; width: 120px; height: 5px; border-radius: 3px; background: #111; opacity: 0.85; }
.ph-dark .ph-homebar::before { background: #fff; }
.ph-dark { background: #000; color: #fff; }
.ph-lock { height: 100%; display: grid; align-content: start; justify-items: center; gap: 6px; padding-top: 40px; color: #fff; cursor: pointer;
  /* Sean's wallpaper (James, 10-16: "seans phoe should have a cooler backgriund than that, bes a gaymer!"): v3 = his dino as game key art, a
     cyberpunk machine triceratops in RGB light (v1 cartoon dino "babyish", v2 keyboard photo "too boring"), comic-demo/nb_wallpaper.py; a light shade at the top so the clock reads */
  background: linear-gradient(to bottom, oklch(0 0 0 / 0.28), oklch(0 0 0 / 0) 45%), #120a24 var(--ph-lockwall, var(--ph-wall, url("/img/comics/reflexes/sean-wallpaper-v3.jpg"))) center 62% / cover no-repeat; }
.ph-lock .d { font-size: 17px; font-weight: 600; opacity: 0.9; }
.ph-lock .t { font-size: 78px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.ph-lock .n { margin-top: 40px; width: 88%; background: oklch(1 0 0 / 0.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 18px; padding: 10px 14px; text-align: left; font-size: 14px; }
.ph-lock .n b { display: block; font-size: 13px; margin-bottom: 2px; }
.ph-lock { position: relative; }
.ph-lock .hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 13px; opacity: 0.9; text-shadow: 0 1px 3px oklch(0 0 0 / 0.7); }   /* at the foot, off the wallpaper's dino */
.ph-home { height: 100%; padding: 30px 22px; background: linear-gradient(oklch(0.12 0.06 300 / 0.38), oklch(0.12 0.06 300 / 0.38)), #120a24 var(--ph-wall, url("/img/comics/reflexes/sean-wallpaper-v3.jpg")) center 62% / cover no-repeat; display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; gap: 22px 10px; }
.ph-app { display: grid; justify-items: center; gap: 6px; border: 0; background: none; padding: 0; color: #fff; font-size: 11.5px; font-weight: 500; cursor: pointer; text-shadow: 0 1px 2px oklch(0 0 0 / 0.4); }
.ph-app i { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; font-style: normal; font-size: 28px; box-shadow: 0 2px 6px oklch(0 0 0 / 0.25); }
.ph-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; background: oklch(0.97 0.005 260 / 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #ddd; }
.ph-bar button { border: 0; background: none; color: #0a7aff; font-size: 17px; padding: 4px 4px 4px 0; cursor: pointer; }
.ph-bar b { font-size: 17px; flex: 1; text-align: center; margin-right: 40px; }
.ph-bar b.who { display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 600; }
.ph-bar b.who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ph-list button { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #e3e3e8; background: #fff; padding: 10px 14px; cursor: pointer; color: #111; }
.ph-list .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#a7aab3, #8a8d96); color: #fff; font-weight: 700; font-size: 17px; }
.ph-list .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ph-list .nm { font-weight: 600; font-size: 15px; } .ph-list .pv { font-size: 13.5px; color: #8a8a8e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-thread { display: grid; gap: 6px; padding: 14px 12px 20px; background: #fff; min-height: 100%; align-content: start; }
.ph-thread .m { justify-self: start; max-width: 76%; background: #e9e9eb; color: #111; border-radius: 18px; padding: 8px 12px; font-size: 15px; line-height: 1.3; }
.ph-thread .m.me { justify-self: end; background: #0a7aff; color: #fff; }
.ph-thread .m.pic { width: 58%; padding: 0; border: 0; overflow: hidden; background: #e9e9eb; cursor: pointer; font: inherit; }
.ph-thread .m.pic img { display: block; width: 100%; height: auto; }
.ph-thread .m.gif { cursor: default; }
.ph-thread .ts { justify-self: center; font-size: 11px; color: #8a8a8e; margin: 10px 0 4px; }   /* the day/time between runs of texts */
.ph-thread .who { font-size: 11px; color: #8a8a8e; margin: 4px 0 -3px 10px; }
.ph-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #fff; }
.ph-photos button { border: 0; padding: 0; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: #ddd; }
.ph-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-photo { height: 100%; background: #000; display: grid; grid-template-rows: 1fr auto; }
.ph-photo img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.ph-photo .nav { display: flex; justify-content: space-between; padding: 10px 16px; }
.ph-photo .nav button { border: 0; background: oklch(1 0 0 / 0.15); color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 15px; cursor: pointer; }
.ph-health { padding: 16px; display: grid; gap: 12px; }
.ph-card { background: #fff; border-radius: 14px; padding: 14px; }
.ph-card .k { font-size: 13px; color: var(--hz, #ff2d55); font-weight: 600; }
.ph-card .big { font-size: 34px; font-weight: 700; } .ph-card .big small { font-size: 15px; color: #8a8a8e; font-weight: 500; }
.ph-alert { background: #fff1f3; color: #b0002a; border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.ph-card svg { width: 100%; height: 130px; display: block; }
/* GLAZE ON THE GLASS (Tyler's phone, Bid Night): smears and fingerprints over every screen, never in the way of a tap */
.ph-smudge::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; mix-blend-mode: screen; opacity: 0.55;
  background:
    radial-gradient(ellipse 34% 9% at 30% 38%, oklch(0.93 0.06 80 / 0.55), transparent 70%),
    radial-gradient(ellipse 16% 11% at 72% 61%, oklch(0.95 0.05 85 / 0.6), transparent 70%),
    radial-gradient(ellipse 9% 6% at 64% 22%, oklch(0.97 0.03 90 / 0.7), transparent 72%),
    radial-gradient(ellipse 22% 7% at 40% 82%, oklch(0.92 0.06 75 / 0.45), transparent 70%); }
.ph-notes { padding: 18px 18px 30px; background: #fffef6; min-height: 100%; font-size: 17px; line-height: 1.5; }
.ph-notes h3 { margin: 0 0 10px; font-size: 24px; }
.ph-notes .struck { position: relative; display: inline-block; color: #555; }
.ph-notes .struck::after { content: ""; position: absolute; left: -4px; right: -4px; top: 45%; height: 0.55em; background: repeating-linear-gradient(-30deg, #222 0 3px, transparent 3px 5px); border-radius: 3px; }

/* the laptop — A REAL MACHINE (2026-10-16, James: "id prefer the laptop screens to be photo realistic as a stylistic
   choice"): the comic is drawn, the laptop is not. An aluminium rim, black glass with the camera notch, the photo
   wallpaper (since 10-16 the series page's campus, img/good-boy-campus-poster.jpg; was laptop-wallpaper-1.jpg), the OS's own chrome and type
   (SF where the device has it, Inter elsewhere), glass over the lot, the base's front edge and its shadow on the desk. */
.lt {
  --lt-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "LT Inter", "Segoe UI", Roboto, sans-serif;
  --bz: 12px;
  position: relative; width: min(920px, 96vw);
}
.lt::after { content: ""; position: absolute; z-index: -1; left: 1%; right: 1%; bottom: -20px; height: 26px; background: radial-gradient(closest-side, oklch(0 0 0 / 0.6), transparent); }
.lt-lid {
  position: relative; padding: var(--bz) var(--bz) calc(var(--bz) + 4px); border-radius: 18px 18px 7px 7px; background: #09090b;
  box-shadow: 0 0 0 1.5px #8d8f94, 0 0 0 2.5px #3b3c40, inset 0 0 0 1px rgb(255 255 255 / 0.06), 0 26px 50px -12px oklch(0 0 0 / 0.65);
}
.lt-notch { position: absolute; z-index: 3; top: var(--bz); left: 50%; width: 14%; height: 26px; transform: translateX(-50%); background: #09090b; border-radius: 0 0 9px 9px; }
.lt-notch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #4b6a8c 0 14%, #18222e 34%, #050608 70%); box-shadow: 0 0 0 1.5px #141416; }
.lt-screen {
  position: relative; z-index: 0; aspect-ratio: 16 / 10; max-height: 70svh; width: 100%; overflow: hidden; border-radius: 7px 7px 2px 2px;
  background: #24331f url("/img/good-boy-campus-poster.jpg") center 42% / cover no-repeat;   /* the series page's own campus (James, 10-16) */
  font-family: var(--lt-font); color: #1d1d1f; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -0.003em;
}
.lt-glass {
  position: absolute; inset: 0; z-index: 40; pointer-events: none; border-radius: inherit;
  background: linear-gradient(112deg, rgb(255 255 255 / 0.10) 0%, rgb(255 255 255 / 0.035) 34%, rgb(255 255 255 / 0) 52%),
              radial-gradient(130% 100% at 50% 45%, transparent 62%, rgb(0 0 0 / 0.16));
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.55), inset 0 0 18px rgb(0 0 0 / 0.18);
}
.lt-base {
  position: relative; height: 15px; margin: 0 -4.5%; border-radius: 2px 2px 16px 16px / 2px 2px 13px 13px;
  background: linear-gradient(#1c1d20 0 3px, #e1e2e5 3px, #c9cbcf 40%, #9fa1a6 80%, #717378);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.25), 0 14px 24px -8px oklch(0 0 0 / 0.7);
}
.lt-lip { position: absolute; left: 50%; top: 3px; width: 15%; height: 5px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: linear-gradient(#a3a5aa, #c4c6ca); box-shadow: inset 0 1px 1.5px rgb(0 0 0 / 0.3); }
.lt input, .lt button { font-family: inherit; }
.lt > .cs-x { top: -54px; right: 0; }

/* the menu bar: translucent over the photo, the notch in its middle */
.lt-menubar {
  position: absolute; z-index: 20; inset: 0 0 auto; height: 26px; display: flex; align-items: center; gap: 18px; padding: 0 14px;
  font-size: 13px; font-weight: 500; color: #fff; text-shadow: 0 0 2px rgb(0 0 0 / 0.25);
  background: rgb(26 30 24 / 0.32); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.lt-menubar b { font-weight: 700; }
.lt-mb-r { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.lt-g { display: inline-flex; width: 16px; color: inherit; flex: none; }
.lt-g svg { width: 100%; height: auto; display: block; overflow: visible; }
.lt-g-bat { width: 25px; }
.lt-clock { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* the dock: frosted glass, drawn icons, the running dot */
.lt-dock {
  position: absolute; z-index: 15; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 6px; padding: 5px 6px;
  border-radius: 19px; background: rgb(246 246 250 / 0.3); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.5), 0 0 0 0.5px rgb(0 0 0 / 0.2), 0 10px 30px rgb(0 0 0 / 0.25);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
}
.lt-dock button { position: relative; width: 52px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 160ms var(--ease-out); }
.lt-dock button:hover { transform: translateY(-4px) scale(1.06); }
.lt-ico { display: block; width: 100%; height: 100%; }
.lt-ico svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1.5px 2px rgb(0 0 0 / 0.3)); }
.lt-dock button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgb(20 20 22 / 0.75); }
.lt-dock .tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 500; color: #fff;
  background: rgb(38 38 42 / 0.86); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.16); padding: 3px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 150ms;
}
.lt-dock button:hover .tip, .lt-dock button:focus-visible .tip { opacity: 1; }

/* a window: the system's corner, hairline and shadow */
.lt-win {
  position: absolute; z-index: 10; left: 5%; right: 5%; top: 40px; bottom: 76px; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden;
  background: #fff; border-radius: 11px;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.38), 0 24px 60px rgb(0 0 0 / 0.42), 0 6px 16px rgb(0 0 0 / 0.22);
  animation: lt-open 240ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes lt-open { from { opacity: 0; transform: translateY(10px) scale(0.95); } }
.lt-tbar { position: relative; display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 12px; background: #f4f4f6; border-bottom: 1px solid #dddde1; font-size: 13px; }
.lt-tbar .lights { display: flex; gap: 8px; flex: none; position: relative; z-index: 1; }
.lt-tbar .dot { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.2); cursor: default; }
.lt-tbar button.dot { cursor: pointer; }
.lt-tbar button.dot::before { content: ""; position: absolute; inset: -10px; }
.lt-tbar .dot.y { background: #febc2e; } .lt-tbar .dot.g { background: #28c840; }
.lt-tbar .ttl { position: absolute; left: 0; right: 0; padding: 0 84px; text-align: center; font-weight: 600; color: #3c3c43; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.lt-body { position: relative; overflow: auto; min-height: 0; font-size: 13px; overscroll-behavior: contain; }
.lt-btn { border: 0; border-radius: 6px; padding: 4px 14px; font-size: 13px; color: #1d1d1f; background: #fff; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.22), 0 1px 1.5px rgb(0 0 0 / 0.12); cursor: pointer; }
.lt-btn.def { color: #fff; background: linear-gradient(#3d8eff, #0a66f2); box-shadow: 0 0 0 0.5px rgb(0 60 170 / 0.5), 0 1px 1.5px rgb(0 0 0 / 0.15); }

/* Slides: the navigator, the slide on its canvas */
.lt-slide { height: 100%; display: grid; grid-template-columns: 138px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; background: #e8e8eb; }
.lt-slide .nav { grid-row: 1 / 3; overflow: auto; display: grid; align-content: start; gap: 12px; padding: 12px 12px 12px 4px; background: #f6f6f8; border-right: 1px solid #dddde1; }
.lt-slide .th { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 5px; align-items: start; padding: 0; border: 0; background: none; color: #6e6e73; text-align: left; cursor: pointer; }
.lt-slide .th .n { font-size: 11px; text-align: right; padding-top: 2px; }
.lt-slide .mini { aspect-ratio: 16 / 9; display: grid; align-content: center; gap: 2px; padding: 6% 9%; overflow: hidden; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); }
.lt-slide .mini b { font-size: 7px; line-height: 1.1; color: #1d1d1f; }
.lt-slide .mini i { font-size: 4.5px; line-height: 1.25; font-style: normal; color: #8e8e93; }
.lt-slide .th[aria-pressed="true"] .mini { box-shadow: 0 0 0 2.5px #0a64d6; }
.lt-slide .th[aria-pressed="true"] .n { color: #0a64d6; font-weight: 600; }
.lt-slide .canvas { min-height: 0; display: grid; place-items: center; padding: 18px; container-type: size; }
.lt-slide .s {
  position: relative; container-type: inline-size; aspect-ratio: 16 / 9; width: min(100cqw, 100cqh * 16 / 9);
  display: grid; align-content: center; gap: 2.6cqw; padding: 0 9cqw; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.16), 0 10px 28px rgb(0 0 0 / 0.12);
}
.lt-slide .s::before { content: ""; position: absolute; left: 9cqw; top: 9cqw; width: 7cqw; height: 0.7cqw; background: #0a64d6; }
.lt-slide h3 { margin: 0; font-family: var(--lt-font); font-size: 6.2cqw; font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; color: #1d1d1f; }
.lt-slide p { margin: 0; font-size: 2.9cqw; line-height: 1.35; color: #6e6e73; }
.lt-slide p.blank { padding: 1.6cqw 2cqw; border: 1px dashed #c7c7cc; color: #aeaeb2; }
.lt-slide .sf { position: absolute; left: 9cqw; bottom: 5cqw; font-size: 1.6cqw; color: #aeaeb2; letter-spacing: 0.02em; }
.lt-slide .ctrl { display: none; justify-content: center; align-items: center; gap: 14px; padding: 8px; font-size: 12px; color: #6e6e73; }
.lt-slide .ctrl button { width: 34px; height: 28px; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.2), 0 1px 1.5px rgb(0 0 0 / 0.1); font-size: 17px; line-height: 1; color: #3c3c43; cursor: pointer; }

/* Mail: the list, the message */
.lt-mail { height: 100%; display: grid; grid-template-columns: minmax(210px, 40%) minmax(0, 1fr); }
.lt-mail .list { overflow: auto; overscroll-behavior: contain; padding: 0 6px 6px; background: #fff; border-right: 1px solid #dddde1; }
.lt-mail .lh { position: sticky; top: 0; z-index: 1; padding: 10px 8px 8px 20px; background: rgb(255 255 255 / 0.94); }
.lt-mail .lh b { display: block; font-size: 15px; font-weight: 700; }
.lt-mail .lh small { font-size: 11.5px; color: #86868b; }
.lt-mail .it { position: relative; display: grid; gap: 1px; width: 100%; padding: 8px 10px 9px 20px; border: 0; border-radius: 7px; background: #fff; color: #1d1d1f; text-align: left; cursor: pointer; }
.lt-mail .it + .it { box-shadow: 0 -1px 0 #ececef; }
.lt-mail .it .u { position: absolute; left: 6px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: #0a7aff; }
.lt-mail .it .u.off { display: none; }
.lt-mail .it .top { display: flex; justify-content: space-between; gap: 8px; }
.lt-mail .it .top b { font-size: 13px; font-weight: 700; }
.lt-mail .it time { font-size: 11.5px; color: #86868b; white-space: nowrap; }
.lt-mail .it .sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.lt-mail .it .pv { font-size: 12px; line-height: 1.35; color: #86868b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt-mail .it[aria-pressed="true"] { background: #0a64d6; color: #fff; box-shadow: none; }
.lt-mail .it[aria-pressed="true"] + .it { box-shadow: none; }
.lt-mail .it[aria-pressed="true"] time, .lt-mail .it[aria-pressed="true"] .pv { color: rgb(255 255 255 / 0.78); }
.lt-flag { display: inline-flex; width: 10px; color: #ff9500; flex: none; }
.lt-flag svg { width: 100%; height: auto; display: block; }
.lt-mail .it[aria-pressed="true"] .lt-flag { color: #fff; }
.lt-mail .read { overflow: auto; overscroll-behavior: contain; padding: 18px 22px; background: #fff; }
.lt-mail .none { height: 100%; display: grid; place-items: center; font-size: 17px; font-weight: 500; color: #aeaeb2; }
.lt-mail .hd { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid #ececef; }
.lt-mail .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#a9acb4, #868a93); color: #fff; font-size: 15px; font-weight: 600; }
.lt-mail .who { display: grid; gap: 1px; min-width: 0; }
.lt-mail .who b { font-size: 14px; } .lt-mail .who .sj { font-size: 13px; font-weight: 600; } .lt-mail .who .to { font-size: 12px; color: #86868b; }
.lt-mail .hd time { font-size: 12px; color: #86868b; white-space: nowrap; }
.lt-mail .txt { white-space: pre-wrap; font-size: 14px; line-height: 1.55; color: #1d1d1f; }

/* Calendar: the week, the hours, the red now line; a phone gets the list */
.lt-cal { height: 100%; display: grid; grid-template-rows: auto auto minmax(330px, 1fr); background: #fff; }
.lt-cal .ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 8px; }
.lt-cal .ch b { font-size: 20px; font-weight: 700; white-space: nowrap; } .lt-cal .ch b span { font-weight: 400; color: #6e6e73; }
.lt-cal .seg { display: inline-flex; padding: 2px; border-radius: 7px; background: #ececef; font-size: 11.5px; }
.lt-cal .seg span { padding: 2px 10px; border-radius: 5px; color: #3c3c43; }
.lt-cal .seg .on { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.15); font-weight: 600; }
.lt-cal .dh { display: grid; grid-template-columns: 48px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid #e5e5ea; font-size: 12px; color: #6e6e73; }
.lt-cal .dh span { padding: 2px 6px 6px; text-align: right; white-space: nowrap; }
.lt-cal .dh b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; font-size: 13px; font-weight: 500; color: #1d1d1f; }
.lt-cal .dh .today { color: #ff3b30; } .lt-cal .dh .today b { border-radius: 50%; background: #ff3b30; color: #fff; }
.lt-cal .gr { position: relative; display: grid; grid-template-columns: 48px repeat(7, minmax(0, 1fr)); }
.lt-cal .hrs { display: grid; grid-template-rows: repeat(15, 1fr); font-size: 10.5px; color: #8e8e93; text-align: right; }
.lt-cal .hrs span { padding-right: 7px; transform: translateY(-0.6em); }
.lt-cal .hrs span:first-child { transform: none; }
.lt-cal .col { position: relative; border-left: 1px solid #ececef; background: linear-gradient(#ececef 1px, transparent 1px) 0 0 / 100% calc(100% / 15); }
.lt-cal .col.we { background-color: #fafafb; }
.lt-cal .ev { position: absolute; left: 2px; right: 3px; min-height: 30px; padding: 3px 5px 3px 7px; border-radius: 5px; border-left: 3px solid #1a7cf5; background: #dcebff; color: #0b4ea8; font-size: 11px; line-height: 1.2; overflow: hidden; z-index: 1; }
.lt-cal .ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-cal .ev span { font-size: 10.5px; opacity: 0.8; }
.lt-cal .ev.odd { border-left-color: #ff3b30; background: #ffe3de; color: #a3241a; }
.lt-cal .now { position: absolute; z-index: 2; left: -3px; right: 0; height: 0; border-top: 1.5px solid #ff3b30; }
.lt-cal .now::before { content: ""; position: absolute; left: -2px; top: -4.75px; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; }
.lt-cal .ag { display: none; padding: 0 14px 14px; }
.lt-cal .ar { position: relative; display: grid; grid-template-columns: 54px 64px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 11px 0 11px 14px; border-bottom: 1px solid #ececef; font-size: 13px; }
.lt-cal .ar::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: #1a7cf5; }
.lt-cal .ar.odd::before { background: #ff3b30; }
.lt-cal .ar .dd { font-weight: 600; color: #3c3c43; } .lt-cal .ar .tm { font-size: 12px; color: #86868b; } .lt-cal .ar b { font-weight: 500; }

/* Browser: the address field in the title bar, the tabs, the pages */
.lt-tbar .bnav { display: flex; gap: 16px; flex: none; color: #6e6e73; position: relative; z-index: 1; }
.lt-tbar .bnav .lt-g { width: 8px; } .lt-tbar .bnav .off { opacity: 0.35; }
.lt-tbar .addr { flex: 1; min-width: 0; display: flex; justify-content: center; }
.lt-tbar .url { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: min(100%, 440px); height: 26px; padding: 0 12px; border-radius: 7px; background: #e4e4e9; color: #3c3c43; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.lt-tbar .url .lk { width: 9px; color: #6e6e73; } .lt-tbar .url .ns { color: #8e8e93; }
.lt-tabs { display: flex; gap: 6px; padding: 6px 10px; background: #f4f4f6; border-bottom: 1px solid #dddde1; }
.lt-tabs button { flex: 1 1 0; min-width: 0; padding: 5px 10px; border: 0; border-radius: 6px; background: transparent; color: #3c3c43; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.lt-tabs button[aria-pressed="true"] { background: #fff; font-weight: 500; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.12), 0 1px 2px rgb(0 0 0 / 0.1); }
.lt-page { background: #fff; color: #1d1d1f; }
.lt-page .site { padding: 10px 18px; background: #141414; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.lt-page .rc { display: flex; align-items: center; gap: 18px; padding: 20px 18px 6px; }
.lt-page .score { flex: none; display: grid; place-items: center; align-content: center; width: 88px; height: 88px; border-radius: 6px; background: #1fa463; color: #fff; }
.lt-page .score b { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; } .lt-page .score small { font-size: 12px; opacity: 0.85; }
.lt-page .pf { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: #e5e5ea; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #d2d2d7; }
@media (max-width: 560px) { .lt-page .rc { gap: 12px; } .lt-page .pf, .lt-page .score { width: 64px; height: 64px; } .lt-page .score b { font-size: 30px; } .lt-page .who h4 { font-size: 19px; } }
.lt-page .who { display: grid; gap: 2px; }
.lt-page .who h4 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; } .lt-page .who span { color: #0a64d6; } .lt-page .who small { font-size: 12px; color: #86868b; }
.lt-page blockquote { margin: 14px 18px 18px; padding: 12px 14px; border-radius: 8px; background: #f5f5f7; font-size: 14px; line-height: 1.45; }
.lt-page blockquote .tag { display: inline-block; margin-right: 8px; padding: 2px 6px; border-radius: 4px; background: #e5e5ea; font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
.lt-page.gym h4 { margin: 0; padding: 18px 18px 8px; font-size: 18px; font-weight: 700; }
.lt-page table { width: calc(100% - 36px); margin: 0 18px 18px; border-collapse: collapse; font-size: 13.5px; }
.lt-page td { padding: 10px 6px; border-bottom: 1px solid #ececef; } .lt-page td:first-child { font-weight: 600; }
.lt-page.login { min-height: 100%; }
.lt-login { max-width: 280px; margin: 0 auto; padding: 9% 16px 16px; display: grid; gap: 10px; text-align: center; }
.lt-login h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.25em; color: #222; }
.lt-login input { height: 34px; padding: 0 10px; border: 1px solid #c7c7cc; border-radius: 4px; font-size: 13px; background: #fff; }
.lt-login .lt-btn { height: 34px; border-radius: 4px; color: #fff; background: #1d1d1f; box-shadow: none; }
.lt-login .err { min-height: 1.2em; font-size: 12.5px; color: #d70015; }

/* Photos: the locked album's password sheet */
.lt-lock { height: 100%; display: grid; place-items: center; padding: 16px; background: #ececef; }
.lt-lock .dlg { width: min(300px, 100%); display: grid; justify-items: center; gap: 7px; padding: 22px 20px 16px; text-align: center; background: rgb(247 247 249 / 0.98); border-radius: 12px; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.2), 0 18px 44px rgb(0 0 0 / 0.2); }
.lt-lock .folder { display: block; width: 76px; height: 64px; }
.lt-lock .folder svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.18)); }
.lt-lock b { font-size: 14px; } .lt-lock p { margin: 0; font-size: 12px; color: #3c3c43; }
.lt-lock form { display: grid; gap: 12px; width: 100%; margin-top: 6px; }
.lt-lock input { height: 28px; padding: 0 9px; border: 0; border-radius: 6px; background: #fff; font-size: 13px; box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.25), inset 0 1px 1px rgb(0 0 0 / 0.06); outline: none; }
.lt-lock input:focus { box-shadow: 0 0 0 3.5px rgb(10 122 255 / 0.45), 0 0 0 0.5px rgb(0 0 0 / 0.25); }
.lt-lock .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lt-lock .hint { min-height: 1.2em; font-size: 12px; color: #86868b; }
.shake { animation: lt-shake 360ms ease; }
@keyframes lt-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (pointer: coarse) { .lt input { font-size: 16px; } }

@media (max-width: 560px) {
  .lt { --bz: 7px; width: 96vw; }
  .lt-lid { border-radius: 14px 14px 6px 6px; }
  .lt-notch { width: 18%; height: 24px; border-radius: 0 0 7px 7px; }
  .lt-screen { aspect-ratio: auto; height: min(560px, 66svh); border-radius: 6px 6px 2px 2px; }
  .lt-menubar { height: 24px; gap: 12px; padding: 0 10px; font-size: 12.5px; }
  .lt-mb-r { gap: 10px; }
  .lt-mb-x { display: none; }
  .lt-win { left: 2.5%; right: 2.5%; top: 34px; bottom: 66px; }
  .lt-dock { gap: 4px; padding: 4px 5px; border-radius: 16px; }
  .lt-dock button { width: 44px; height: 44px; }
  .lt-slide { grid-template-columns: minmax(0, 1fr); }
  .lt-slide .nav { display: none; }
  .lt-slide .ctrl { display: flex; }
  .lt-slide .canvas { padding: 12px; }
  .lt-slide h3 { font-size: 8cqw; }
  .lt-slide p { font-size: 4.2cqw; }
  .lt-slide .sf { font-size: 2.4cqw; }
  .lt-mail { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 48%) minmax(0, 1fr); }
  .lt-mail .list { border-right: 0; border-bottom: 1px solid #dddde1; }
  .lt-mail .read { padding: 14px 16px; }
  .lt-cal .dh, .lt-cal .gr { display: none; }
  .lt-cal { display: block; height: auto; }
  .lt-cal .ag { display: block; }
  .lt-cal .ch b { font-size: 17px; }
  .lt-cal .seg span { padding: 2px 7px; }
  .lt-tbar .bnav { display: none; }
  .lt-base { height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-p.go .cs-l, .cs-bpm::before, .cs-hot::before, .cs-stk, .cs-stk-shine, .cs-chat.cs-open::before, .lt-win, .shake, .cs-opt { animation: none !important; }
  .cs-p.armed .cs-l { opacity: 1; }
  .cs-scrim { transition: none; }
}

/* THE PANEL THAT PLAYS ONCE (2026-10-20, Bid Night p21b): the clip sits over its still, hidden until the tap bubble is tapped,
   then plays once and holds its last frame. The bubble is the button: a small cyan TAP tag on its corner, breathing */
.cs-p > video.cs-reveal { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 120ms; }
.cs-p > video.cs-reveal.on { opacity: 1; }
.cs-p.revealed > video.cs-reveal { cursor: pointer; }
.cs-l.cs-tap { pointer-events: auto; cursor: pointer; }
.cs-l.cs-tap:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.cs-tap-tag {
  position: absolute; right: -10px; bottom: -12px; z-index: 1; font-family: var(--display); font-style: normal; font-size: clamp(10px, 2.6cqw, 13px);
  letter-spacing: 0.04em; color: var(--ink); background: var(--cyan); border: 2px solid var(--ink); padding: 2px 6px 1px; box-shadow: 2px 2px 0 var(--ink);
  animation: cs-tap 1.8s ease-in-out infinite;
}
@keyframes cs-tap { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.14) rotate(-4deg); } }
.cs-p .cs-l.cs-tap.gone { animation: cs-gone 220ms ease-in forwards; pointer-events: none; }
@keyframes cs-gone { to { opacity: 0; transform: scale(0.85); } }

/* A SECRET PANEL (Bid Night: Linksen in the window): a drawn panel in the object holder, its bubbles popping in with the lines.
   The window's hotspot is a secret: the shimmer, no Open tag */
.cs-pop {
  position: relative; container-type: inline-size; aspect-ratio: var(--ar);
  width: min(90vw, 560px, calc(84svh * var(--ar))); background: #0b0d14; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink), 0 24px 60px rgb(0 0 0 / 0.55);
}
.cs-pop > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-pop .cs-l.wait { visibility: hidden; }
.cs-pop .cs-l.in { animation: cs-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.cs-hot.secret { border-radius: 6px; }
.cs-hot.secret::after { content: none; }
@media (prefers-reduced-motion: reduce) {
  .cs-tap-tag, .cs-pop .cs-l.in { animation: none !important; }
}
.cs-stk-layer .cs-hot.secret { pointer-events: auto; z-index: 4; }

/* THE RULE BOOK (2026-10-22, The Lineup): the old leather book Dan reads the rules from. The cover is a drawn still; the
   pages are the drawn blank paper with the rules lettered over it in the hands and inks of the men who wrote them. */
@font-face { font-family: 'IM Fell English'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/im-fell-english-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IM Fell English'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/im-fell-english-400i-latin.woff2') format('woff2'); }
@font-face { font-family: 'Mrs Saint Delafield'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/mrs-saint-delafield-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Homemade Apple'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/homemade-apple-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/caveat-500-latin.woff2') format('woff2'); }
.rb { position: relative; width: min(84vw, 380px, calc((100svh - 150px) * 2 / 3)); aspect-ratio: var(--ar, 2 / 3);
  perspective: 1800px; container-type: inline-size; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.6)); }
.rb-pages { position: absolute; inset: 0; cursor: pointer; }
.rb-page { position: absolute; inset: 0; overflow: hidden; border-radius: 2px 7px 7px 2px; background-size: cover;
  background-position: center; padding: 10cqw 8cqw 12cqw 10cqw; color: #5b3a1c; transform-origin: left center;
  box-shadow: inset 7cqw 0 6cqw -5cqw rgb(60 35 10 / 0.5); backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.6s; }
.rb-page.gone { transform: rotateY(-118deg); opacity: 0; pointer-events: none; }
.rb-page.torn { filter: brightness(0.82) sepia(0.2); clip-path: polygon(0 0, 12% 0, 9% 5%, 13% 11%, 8% 18%, 11% 26%, 7% 33%,
  12% 41%, 9% 49%, 13% 57%, 8% 64%, 11% 72%, 7% 80%, 12% 88%, 9% 94%, 11% 100%, 0 100%); }
.rb-cover { position: absolute; inset: 0; z-index: 99; border: 0; padding: 0; border-radius: 2px 7px 7px 2px;
  background: #3a2414 center / cover no-repeat; transform-origin: left center; cursor: pointer;
  transition: transform 0.95s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.5s 0.45s; }
.rb.open .rb-cover { transform: rotateY(-150deg); opacity: 0; pointer-events: none; }
.rb-hint { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); white-space: nowrap;
  font: italic 400 5cqw/1 'IM Fell English', Georgia, serif; color: #f3e2bd; background: rgb(20 10 4 / 0.6);
  padding: 0.55em 1.1em; border-radius: 99px; animation: rb-pulse 2.4s ease-in-out infinite; }
@keyframes rb-pulse { 50% { opacity: 0.55; } }
.rb-gilt { position: absolute; left: 9%; right: 2%; transform: translateY(-50%); text-align: center; pointer-events: none;
  font: 400 15cqw/1 Georgia, 'Times New Roman', serif; letter-spacing: 0.16em; text-indent: 0.16em; color: transparent;
  background: linear-gradient(172deg, #f3d892 0%, #b4883a 34%, #e6c474 52%, #8d6827 78%, #c9a255 100%);
  -webkit-background-clip: text; background-clip: text; mix-blend-mode: hard-light; opacity: 0.9;
  filter: drop-shadow(0 -0.3cqw 0 rgb(18 8 2 / 0.85)) drop-shadow(0 0.35cqw 0.2cqw rgb(255 214 150 / 0.2)); }
.rb-on { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rb-on text { font-family: 'IM Fell English', Georgia, serif; fill: #4a2f17; letter-spacing: 0.1em; mix-blend-mode: multiply; }
.rb-h { margin: 0 0 4.5cqw; text-align: center; font: 400 6.2cqw/1.15 'IM Fell English', Georgia, serif; letter-spacing: 0.05em;
  text-transform: uppercase; }
.rb-p, .rb-rule, .rb-note, .rb-sig { margin: 0 0 3.4cqw; font-size: 4.8cqw; line-height: 1.3; }
.rb-note { text-align: right; }
.rb-p { white-space: pre-line; }   /* a list kept as one entry, one line per row (the 1972-84 classes) */
.hand-fell { font-family: 'IM Fell English', Georgia, serif; }
.rb .it { font-style: italic; }
.hand-copper { font-family: 'Mrs Saint Delafield', cursive; font-size: 7.6cqw; line-height: 1.05; }
.hand-scrawl { font-family: 'Homemade Apple', cursive; font-size: 4.1cqw; line-height: 1.55; }
.hand-biro { font-family: 'Caveat', cursive; font-weight: 500; font-size: 6.1cqw; line-height: 1.1; }
.ink-brown { color: #5b3a1c; } .ink-faded { color: rgb(91 58 28 / 0.6); } .ink-black { color: #1f1b17; }
.ink-blue { color: #1f3a8a; } .ink-red { color: #8f1c14; } .ink-pencil { color: #6d6a66; }
.rb-n { margin-right: 0.35em; }
.rb-was { opacity: 0.75; text-decoration-thickness: 2px; }
.rb-fix { margin-left: 0.25em; }
.rb-yr { margin-left: 0.4em; font: italic 400 3.3cqw 'IM Fell English', Georgia, serif; color: #5b3a1c; opacity: 0.65; }
@media (prefers-reduced-motion: reduce) { .rb-page, .rb-cover { transition: none; } .rb-hint { animation: none; } }
