/* 2025·中国罕见天象·Top20 — style card in committee/STYLE.md, layout in committee/r8c/layout-spec.md.
   Swiss International Typographic Style as the main style (12-column grid, Inter + Noto Sans SC at 400/700, flush
   left), coloured with the 天象爱好者 logo (cloud blues #306c90 / #609cc0, ring blue #9ccce4, sun #e4b448) and its
   gradients; the top three switch to real sky light. Night mode: html[data-theme="dark"].
   Layout: app.js (Layout.plan) measures every page and writes its rects as CSS variables on the page's layer:
   --fx/--fy/--fw/--fh the photo, --bx/--by/--bw/--bh the text column, --mx/--my/--mw the meta line (credit, video,
   link), --tx/--ty/--tw/--tb a title block, --gx/--gy/--gs the ghost numeral, --qx/--qy/--qs the interactive
   square, --dx/--dy/--dw/--dh the docked panel, --sx/--sy/--sw/--sh the records map. Pages are positioned only by
   these. The grid itself (--m, --gut, --col, --T, --B) is set on :root by the same code. */
@import url("fonts/fonts.css");
:root {
  --vh: 1vh;
  /* fixed colours (the same in both modes) */
  --paper: #f4f3ef; --ink: #0e2233; --accent: #306c90; --sun: #e4b448; --mid: #609cc0; --ring: #9ccce4;
  --ink-panel: #0e2233;
  --ink-field: linear-gradient(160deg, #0e2233 0%, #1b4562 100%);
  /* mode colours */
  --bg: #f4f3ef; --bg-grad: linear-gradient(165deg, #f6f5f1 0%, #eef2f4 60%, #e6eef4 100%);
  --fg: #0e2233; --grey: #5f6a73; --rule: rgba(14, 34, 51, .16);
  --panel: #f8f7f3; --panel-fg: #0e2233; --frame-bg: #e4e3de; --hud-bg: rgba(244, 243, 239, .94);
  --ghost: rgba(48, 108, 144, .07);
  --sans: "Inter", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* grid: 12 columns between margins of 5vw (content capped at 1728 px), gutter 24; top line T, bottom line B */
  --m: max(5vw, calc((100vw - 1728px) / 2)); --gut: 24px; --col: calc((100vw - 2 * var(--m) - 11 * var(--gut)) / 12);
  --hud: 56px; --T: calc(var(--hud) + 24px); --B: calc(var(--vh) * 100 - 32px);
  --body: clamp(16px, 1.18vw, 19px);
  --no-size: clamp(120px, min(17vw, calc(var(--vh) * 30)), 300px);
  --tt-size: clamp(26px, min(3.3vw, calc(var(--vh) * 5.6)), 52px);
}
@property --rkp { syntax: "<number>"; inherits: true; initial-value: 0; }
body { transition: --rkp 1.4s ease; }
/* night: the ground stays navy; the climb through the ranks shows only as a faint sun glow rising from the bottom edge */
html[data-theme="dark"] #stage:not([data-tier="top3"]) { background: radial-gradient(ellipse 90% 42% at 50% 100%, color-mix(in srgb, #e4b448 calc(var(--rkp) * 15%), transparent), transparent 72%), linear-gradient(172deg, #0b1622 0%, #0f2133 60%, #13293d 100%); }
html[data-theme="dark"] {
  --bg: #0b1622; --bg-grad: linear-gradient(165deg, #0b1622 0%, #0f2133 60%, #13293d 100%);
  --fg: #e6edf2; --grey: #93a3b0; --rule: rgba(230, 237, 242, .16);
  --panel: #13283b; --panel-fg: #e6edf2; --frame-bg: #13283b; --hud-bg: rgba(11, 22, 34, .94);
  --ghost: rgba(156, 204, 228, .06);
  --ink-panel: #0b1622;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--bg); }
body { color: var(--fg); font: 400 17px/1.8 var(--sans); -webkit-font-smoothing: antialiased; touch-action: none; font-feature-settings: "tnum" 1; transition: color .5s; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }
.nm { font-family: "Inter", var(--sans); font-weight: 700; letter-spacing: -.045em; font-feature-settings: "tnum" 1, "lnum" 1; }
.lbl { display: flex; flex-wrap: wrap; gap: 0 1.4em; font: 400 12px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
/* the hidden room where app.js measures text at the box's own CSS */
.lmz { position: fixed; left: 0; top: 0; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; z-index: -1; }
.lmz > * { position: absolute; left: 0; top: 0; }
.lmz .tt { position: static !important; height: auto !important; display: flex; flex-direction: column; }
.lmz .slot-no { margin-top: 48px !important; }

/* rank colours (set per rank by app.js as --rk / --rk-d): light grounds use the deep walk, dark grounds the bright one */
.tag-no, .rail a, .tile, .ghost-no { --rk-ui: var(--rk-d, var(--accent)); }
html[data-theme="dark"] :is(.tag-no, .rail a, .tile, .ghost-no), body[data-tier="top3"] .tag-no, body:not([data-ground="paper"]) .rail a { --rk-ui: var(--rk, var(--ring)); }

/* ---------- stage ---------- */
#stage { position: fixed; left: 0; right: 0; top: 0; height: calc(var(--vh) * 100); overflow: hidden; background: var(--bg-grad); }
.bgs, .bg, .tint { position: absolute; inset: 0; }
.bg { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.tint { opacity: 0; transition: opacity 1.2s; }
#stage[data-tier="top3"] { background: #0b1622; }
#stage[data-tier="top3"] .bg.show { opacity: .55; animation: drift 34s ease-in-out infinite alternate; }
/* a case with its own simulated display: the simulation is the page's sky, lightly shaded so the text stays calm */
#stage.sim { background: #0b1622; }
#stage.sim .bg.show { opacity: 1; animation: simDrift 40s ease-in-out infinite alternate; }
#stage.sim .tint, #stage.sim[data-tier="top3"] .tint { opacity: 1; background: linear-gradient(180deg, rgba(11, 22, 34, .38) 0%, rgba(11, 22, 34, .12) 45%, rgba(11, 22, 34, .42) 100%); }
@keyframes simDrift { from { transform: scale(1.04); } to { transform: scale(1.1) translate(-1%, -.6%); } }
#stage[data-tier="top3"] .tint { opacity: 1; background: linear-gradient(180deg, rgba(11, 22, 34, .92) 0%, rgba(29, 53, 80, .78) 45%, rgba(201, 119, 74, .42) 82%, rgba(242, 196, 107, .38) 100%); }
@keyframes drift { 0% { transform: scale(1.2) translate(-2%, -1%); } 100% { transform: scale(1.3) translate(2%, 1%); } }
#layers { position: absolute; inset: 0; }
/* nothing on screen is ever completely still, yet every photo is shown whole: the ground carries the motion, a faint
   glow drifting slowly along the foot of the page (the photos themselves never move or scale inside their rects) */
#layers::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 38% 52% at 50% 100%, rgba(96, 156, 192, .16), transparent 70%) 0 0 / 200% 100% no-repeat; animation: groundDrift 36s ease-in-out infinite alternate; }
html[data-theme="dark"] #layers::before { background-image: radial-gradient(ellipse 38% 52% at 50% 100%, rgba(156, 204, 228, .09), transparent 70%); }
#stage.sim #layers::before, #stage[data-tier="top3"] #layers::before { display: none; }
@keyframes groundDrift { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* scene layers: the old one slides away along the reading direction, the new one comes in */
.L { position: absolute; inset: 0; }
.L.enter { transform: translateY(calc(var(--dir, 1) * 100%)); }
.L.enter.on { transform: none; transition: transform .8s var(--ease); }
.L.leave { transform: translateY(calc(var(--dir, 1) * -100%)); transition: transform .8s var(--ease); pointer-events: none; }
.L.held { pointer-events: none; }

/* ---------- grounds ---------- */
/* ink: deep blue with the rank's glow drifting across it, so the ground is never quite still */
.L.note, .L.opener, .L.lay-quote { background: radial-gradient(ellipse 30% 70% at 50% 100%, color-mix(in srgb, var(--rk, #306c90) 22%, transparent), transparent 70%) 25% 0 / 200% 100% no-repeat, var(--ink-field); color: var(--paper); animation: glowDrift 40s ease-in-out infinite alternate; }
@keyframes glowDrift { from { background-position: 25% 0, 0 0; } to { background-position: 75% 0, 0 0; } }
/* sky and simulated skies: the text stands on a solid panel docked to the left edge (phones: to the bottom) */
.dock { position: absolute; left: var(--dx); top: var(--dy); width: var(--dw); height: var(--dh); background: var(--ink-panel); }
.L:not(.has-dock) > .dock { display: none; }
.L.note:is(.g-sim, .g-sky) { background: none; animation: none; }
.top3 .frame, .L.note .frame { background: #1a3247; }

/* ---------- top bar, rail, hint ---------- */
.hud { position: fixed; z-index: 40; left: 0; right: 0; top: 0; height: var(--hud); display: flex; align-items: center; gap: 16px; padding: 0 var(--m); background: var(--hud-bg); border-bottom: 1px solid var(--rule); transition: transform .6s var(--ease), background-color .6s, border-color .6s; }
body[data-kind="cover"] .hud { transform: translateY(-100%); }
.brand { flex: none; display: block; width: 92px; height: 30px; background: url(logo-full.png) left center / contain no-repeat; }
html[data-theme="dark"] .brand, body[data-tier="top3"] .brand { background-image: url(logo-white.png); }
.brand img { display: none; }
body[data-tier="top3"] .hud { background: rgba(11, 22, 34, .92); border-color: rgba(244, 243, 239, .14); color: var(--paper); }
/* the section opener (幕后趣闻) stands on ink: the bar goes ink with it */
body[data-ground="ink"]:not(.in-case):not([data-kind="cover"]) .hud { background: rgba(11, 22, 34, .92); border-color: rgba(244, 243, 239, .14); color: var(--paper); }
body[data-ground="ink"]:not(.in-case):not([data-kind="cover"]) .brand { background-image: url(logo-white.png); }
body[data-ground="ink"]:not(.in-case) .next-hint { color: rgba(244, 243, 239, .7); }
.hud-slot { flex: 1; align-self: stretch; }
.skip { all: unset; cursor: pointer; flex: none; display: block; font: 400 12px/1 var(--sans); letter-spacing: .08em; padding: 8px 0; white-space: nowrap; }
.skip:hover { color: var(--mid); }
.skip[hidden] { display: none; }
/* night mode switch: a half-lit disc */
.theme { all: unset; cursor: pointer; flex: none; width: 32px; height: 32px; display: grid; place-items: center; }
.theme i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); transition: transform .5s var(--ease); }
.theme[aria-pressed="true"] i { transform: rotate(180deg); }
.theme:hover { background: var(--rule); }
.bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--mid), var(--ring)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s var(--ease); }
body[data-tier="top3"] .bar { background: linear-gradient(90deg, #c9774a, var(--sun)); }
.next-hint { all: unset; position: fixed; z-index: 41; right: calc(var(--m) + 176px); top: 0; height: var(--hud); width: 72px; display: flex; align-items: center; justify-content: flex-end; cursor: pointer; font: 400 12px/1 var(--sans); letter-spacing: .08em; color: var(--grey); }
.next-hint::after { content: "↓"; display: inline-block; margin-left: 6px; animation: nudge 1.8s var(--ease) infinite; }
.next-hint::before { content: "下一页"; }
.next-hint[hidden] { display: none; }
body[data-tier="top3"] .next-hint { color: rgba(244, 243, 239, .7); }
body[data-kind="cover"] .next-hint { top: auto; bottom: 7vh; height: auto; width: auto; right: var(--m); color: rgba(244, 243, 239, .8); }
@keyframes nudge { 50% { transform: translateY(4px); } }
/* desktop: fixed slots measured leftwards from the right content edge; a control that is absent keeps its slot */
@media (min-width: 821px) {
  .hud-slot { position: absolute; left: calc(var(--m) + var(--col) + var(--gut)); right: calc(var(--m) + 360px); top: 0; bottom: 0; }
  .hud .skip { position: absolute; right: var(--m); top: 50%; transform: translateY(-50%); width: 104px; text-align: right; }
  .hud .theme { position: absolute; right: calc(var(--m) + 120px); top: 50%; transform: translateY(-50%); }
  .hud .mode-sw { position: absolute; right: calc(var(--m) + 264px); top: 50%; transform: translateY(-50%); width: 72px; padding: 5px 0; text-align: center; }
  .hud .skip[hidden], body:not([data-kind="cover"]) .next-hint[hidden] { display: block; visibility: hidden; pointer-events: none; }
}
/* the 极简 switch: flat, a 1-px border, no radius */
.hud .mode-sw { border-radius: 0; }
/* the rail: 24 px wide in the middle of the right margin, hanging from the top line; nothing else enters the margin */
.rail { position: fixed; z-index: 39; left: calc(100vw - var(--m) + (var(--m) - 24px) / 2); top: var(--T); width: 24px; display: flex; flex-direction: column; transition: opacity .5s; }
body:is([data-kind="cover"], [data-kind="gate"], [data-kind="memes"]) .rail { opacity: 0; pointer-events: none; }
.rail a { display: block; width: 24px; text-align: right; font: 400 10.5px/16px var(--sans); color: var(--rk-ui); opacity: .5; text-decoration: none; transition: opacity .3s; }
.rail a:hover { opacity: 1; }
.rail a.on { opacity: 1; font-weight: 700; }
/* on dark grounds the deep ranks' blues would sink into the ink: the numbers not shown are lightened toward paper */
body:not([data-ground="paper"]) .rail a:not(.on), html[data-theme="dark"] .rail a:not(.on) { color: color-mix(in srgb, var(--rk-ui) 45%, #f4f3ef); opacity: .42; }
@media (max-width: 1279px) { .rail { display: none; } }

/* ---------- the rank number and title (one pair, flying between the title page and the bar) ---------- */
.tag-no, .tag-tt { position: fixed; z-index: 41; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; white-space: nowrap; transition: opacity .4s, color .6s; }
.tag-no { display: flex; align-items: flex-start; font-size: var(--no-size); line-height: .8; color: var(--rk, var(--paper)); transition: opacity .4s, color 1.2s ease; }
.tag-no small, .slot-no small { font: 700 .11em/1 var(--sans); letter-spacing: .02em; margin: .08em .12em 0 0; }
.tag-tt { width: max-content; font: 700 var(--tt-size)/1.2 var(--sans); color: var(--paper); }
.tag-tt:not(.small) { white-space: normal; text-wrap: balance; }
.tag-tt.small { overflow: hidden; text-overflow: ellipsis; }
.tag-no.small { color: var(--rk-ui); }
.tag-tt.small { color: var(--fg); }
.tag-no small { transition: opacity .3s; }
.tag-no.small small { opacity: 0; }
.tag-no.live, .tag-tt.live { opacity: 1; }
body[data-tier="top3"] .tag-tt { color: var(--paper); }
.odo { display: inline-flex; overflow: hidden; height: .8em; font-family: "Inter", var(--sans); font-weight: 700; letter-spacing: -.045em; }
.odo .d { display: block; width: .64em; overflow: hidden; font-style: normal; }
.odo .d.blank { width: 0; }
.odo .d > span { display: flex; flex-direction: column; }
.odo .d > span > b { display: flex; justify-content: center; height: .8em; line-height: .8; font-weight: 700; }
.odo .d.spin > span > b { filter: blur(.6px); }
.odo .nm { letter-spacing: 0; }

/* ---------- departure-board characters ---------- */
.fc { display: inline; }
.fc.flip { opacity: .55; }
.fc.egg { color: var(--sun); font-weight: 700; opacity: 1; text-shadow: 0 0 .5em rgba(228, 180, 72, .45); }

/* ---------- radical-path morph (morph.js): cells drawn over the characters while they change ---------- */
#morph { position: fixed; inset: 0; z-index: 35; pointer-events: none; }
.mc { position: absolute; white-space: pre; text-align: center; pointer-events: none; }
.mc.in { left: 0; top: 0; }
.mc .mp { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; }
.mc.roll { overflow: hidden; }
.mc.roll .rs { position: absolute; left: 0; top: 0; width: 100%; display: flex; flex-direction: column; }
.mc.roll .rs b { display: block; font-weight: inherit; }
.mc.roll .rs b.e { color: var(--sun); font-weight: 700; }
.mh { color: transparent !important; text-shadow: none !important; }
.mhost { position: relative; }
#box .bx-in.morph p, #box .bx-in.morph .who { animation: none; }
#box .bx-in.morph { animation: mFade .45s ease both; }
#box .bx-in.morph.out { animation: txOut .26s ease-in both; }
@keyframes mFade { from { opacity: 0; } }
.fc.mfade { animation: mFade .5s ease both .35s; }

/* ---------- the text box: a caption column (one element for the whole page) ---------- */
/* no card: a 2-px rule on top, the text 16 px under it, no side or bottom padding. It never clips (nothing to clip),
   so characters flying into lines below the old height are never cut off. */
#box { position: fixed; z-index: 30; left: 0; top: 0; width: 0; height: 0; overflow: visible; opacity: 0; pointer-events: none; font-size: var(--body); transition: opacity .3s; }
#box.show { opacity: 1; pointer-events: auto; }
.bx { color: var(--fg); }
.bx.ink { color: var(--paper); }
.bx-rule { position: absolute; z-index: 2; left: 0; top: 0; width: 100%; height: 2px; background: currentColor; transform-origin: 0 0; pointer-events: none; }
.bx.ink .bx-rule { background: var(--sun); }
.bx-in { position: relative; padding: 16px 0 0; text-align: left; font-size: var(--body); line-height: 1.75; }
/* room for the fold arrow at the end of the first line */
.bx-in::before { content: ""; float: right; width: 32px; height: 24px; }
.bx-in.s16 { font-size: 16px; line-height: 28px; }
/* two columns (under a panorama): text 16 px under the rule like everywhere else; the fold arrow keeps a 32-px lane
   at the right end of the first line */
.bx-in.c2 { column-count: 2; column-gap: 24px; padding-top: 16px; padding-right: 32px; }
.bx-in.c2::before { display: none; }
.bx-in.c2 { column-fill: balance; }
.bx-in.c2 .ln, .bx-in.c2 .who { break-inside: avoid; }
.bx-in.c2.one { column-count: 1; padding-right: var(--one, 440px); }
.bx-in.scrolly { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: thin; }
.bx-in p { margin: 0 0 12px; line-break: strict; }
.bx-in p:last-child { margin-bottom: 0; }
.bx-in .ln { display: block; text-wrap: pretty; }
.bx-in .ln.lg { text-wrap: pretty; }
.bx-in mark { white-space: nowrap; }
.bx-in .gl { white-space: nowrap; }
#box .bx-in { position: absolute; left: 0; top: 0; transition: opacity .3s; }
#box .bx-in.out { animation: txOut .26s ease-in both; }
#box .bx-in p { animation: lnIn .5s var(--ease) both; }
#box .bx-in p:nth-of-type(2) { animation-delay: .08s; }
#box .bx-in p:nth-of-type(n + 3) { animation-delay: .16s; }
#box .who { animation: lnIn .5s var(--ease) both; }
@keyframes txOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes lnIn { from { opacity: 0; transform: translateY(.5em); } }
/* fold: a 24-px arrow at the right end of the first line; folded, the box is a small tab on the rule at its top left */
.bx-fold { all: unset; position: absolute; z-index: 3; right: 0; top: calc(16px + .875em - 12px); width: 24px; height: 24px; cursor: pointer; display: none; place-items: center; color: inherit; opacity: .55; transition: opacity .2s, background-color .2s; }
#box.c2 .bx-fold { top: calc(16px + .875em - 12px); }
#box.foldable .bx-fold { display: grid; }
.bx-fold:hover { opacity: 1; background: rgba(127, 140, 150, .16); }
.bx-fold i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.bx-fold span { display: none; }
#box.folded .bx-in { opacity: 0; pointer-events: none; }
#box.folded .bx-fold { left: 0; right: auto; top: 2px; width: 132px; height: 38px; display: flex; gap: 10px; align-items: center; justify-content: flex-start; font: 400 13px/1 var(--sans); letter-spacing: .06em; opacity: 1; }
#box.folded .bx-fold:hover { background: none; color: var(--mid); }
#box.folded .bx-fold span { display: inline; }
#box.folded .bx-fold i { transform: rotate(-45deg); }
/* emphasis: bold, with a line drawn under it */
mark { color: inherit; font-weight: 700; background: linear-gradient(var(--mid), var(--mid)) no-repeat 0 100% / 0% 2px; transition: background-size .9s var(--ease) .1s; }
.bx.ink mark { background-image: linear-gradient(var(--sun), var(--sun)); }
.seen mark { background-size: 100% 2px; }
/* the who row of a co-author's comment: 24-px avatars, names as a label */
.who { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 400 12px/16px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.who img, .who .ini { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.who b { font-weight: 700; }
.bx.paper .who { color: var(--accent); }
html[data-theme="dark"] .bx.paper .who { color: var(--mid); }
.bx.ink .who { color: var(--sun); }
/* an initial on a flat disc, for the author whose avatar file is a broken-image placeholder */
.ini { display: inline-grid; place-items: center; font: normal 700 12px/1 "Noto Sans SC", var(--sans); letter-spacing: 0; background: var(--ink); color: var(--paper); border-radius: 50%; }
.bx.ink .ini, html[data-theme="dark"] .ini { background: var(--paper); color: var(--ink); }
.slot { visibility: hidden; }

/* ---------- pictures ---------- */
/* every picture is whole and exactly its own rect (the planner sizes the rect to the picture's aspect) */
.mcol, .mcol2, .full, .strip, .ph, .tcol, .meta { position: absolute; }
.mcol, .full, .strip, .ph { left: var(--fx); top: var(--fy); width: var(--fw); height: var(--fh); }
/* No.14's pair: the partner portrait beside the page's own */
.mcol2 { left: var(--kx); top: var(--ky); width: var(--kw); height: var(--kh); }
.mcol2 > .frame { width: 100%; height: 100%; }
.L-media .mcol2 { opacity: .4; transition: opacity .6s var(--ease); }
.enter .mcol2 .frame { clip-path: inset(0 0 100% 0); }
.L.L.enter.on .mcol2 .frame { clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease) .4s; }
.L.cut .mcol2 .frame, .L.fade .mcol2 .frame { clip-path: none !important; transition: none !important; }
.full, .ph, .strip { overflow: hidden; }
.bgfill { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: saturate(1.1) brightness(.9); }
html[data-theme="dark"] .bgfill { filter: saturate(1.1) brightness(.5); }
.fit { position: absolute; inset: 0; overflow: hidden; }
.fit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcol > .frame { width: 100%; height: 100%; }
.frame { position: relative; overflow: hidden; background: var(--frame-bg); }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.strip img { width: 100%; height: 100%; object-fit: contain; }
/* the text column: the hidden slot hangs from its top; the box is measured from it */
.tcol { left: var(--bx); top: var(--by); width: var(--bw); height: var(--bh); contain: strict; }
.tcol .slot { width: 100%; }
/* nothing on screen is ever completely still: photos drift slowly inside their frames */
/* photos never drift inside their frames (a drift would crop them); the motion is the ground's (see #layers) */
.bgfill { animation: kb2 30s ease-in-out infinite alternate; }
@keyframes kb2 { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(2%, 1%); } }
.jx > img, .jx-a img, .sw > img { animation: none; }
/* the meta line: credits, the video note, links — small, at the photo's edge, never on the photo */
.meta { left: var(--mx); top: var(--my); width: var(--mw); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font: 400 12px/16px var(--sans); letter-spacing: .04em; color: var(--grey); }
.L:not(.has-meta) > .meta { display: none; }
/* bottom-aligned: lifted by its own height with the independent translate, so the rise animation's transform can
   never cancel it */
.meta-up > .meta { translate: 0 -100%; flex-direction: column; align-items: flex-start; }
/* in the open field beside a tall picture: a small stack hanging from the top line under a hairline level with the
   text box's rule, its first line level with the text's (phones: bottom-aligned to the picture) */
.meta-field > .meta { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 15px; border-top: 1px solid var(--rule); }
.meta-field.meta-up > .meta { padding-top: 8px; }
.L:not(.g-paper).meta-field > .meta { border-top-color: rgba(244, 243, 239, .22); }
.meta p { margin: 0; }
.L:not(.g-paper) .meta { color: rgba(244, 243, 239, .72); }
.L:is(.g-sky, .g-sim) > .meta { color: rgba(244, 243, 239, .86); }
.L-media.enter.on:not(.hold) > .meta { animation: rise .7s var(--ease) both .45s; }
/* the case label: 「20 / 20 · 云 · CLOUD」 */
.kk { display: inline-flex; flex-wrap: wrap; gap: 0 1.4em; letter-spacing: .08em; text-transform: uppercase; }
.kk > span:first-child { font-weight: 700; }
.kick-off > .meta .kk { display: none; }
.vid { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vid span { white-space: nowrap; }
.vid:hover { color: var(--mid); }
.lnk { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font: 700 13px/16px var(--sans); letter-spacing: 0; text-decoration: none; color: var(--paper); background: var(--ink); }
.lnk:hover { background: var(--accent); }
html[data-theme="dark"] .lnk, .L:not(.g-paper) .lnk { background: var(--paper); color: var(--ink); }
/* every case page carries its rank, huge and faint: its baseline on the photo's bottom edge or the bottom line */
.ghost-no { position: absolute; left: var(--gx); top: var(--gy); font: normal 700 var(--gs, 288px)/1 "Inter", var(--sans); letter-spacing: -.04em; font-feature-settings: "tnum" 0, "lnum" 1; transition: opacity .4s; white-space: nowrap; color: color-mix(in srgb, var(--rk-ui, #306c90) 9%, transparent); pointer-events: none; user-select: none; }
.ghost-no .bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.L[data-ghost="none"] .ghost-no { display: none; }
.L.gh-off .ghost-no { opacity: 0; }
.note .ghost-no { color: color-mix(in srgb, var(--rk, #9ccce4) 8%, transparent); }
/* on the sky and the simulated skies it stands on the docked ink sheet, in the rank's colour */
.L:is(.g-sky, .g-sim) .ghost-no { color: color-mix(in srgb, var(--rk, #9ccce4) 11%, transparent); }
/* the opening's 11 gives its place to the authors when they line up */
.L.intro .ghost-no { transition: opacity .5s; }
.L.intro.av-on .ghost-no { opacity: 0; }
/* a chat line set as a quotation: the quote on columns 1–8, the screenshot itself whole on 9–12 */
.lay-quote .qt { position: absolute; left: var(--m); right: var(--m); top: var(--T); height: calc(var(--B) - var(--T)); margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.qt .qm { display: block; height: .62em; margin-left: -.04em; font: 700 96px/1 "Inter", var(--sans); color: var(--sun); }
.qt blockquote { align-self: stretch; margin: 0; padding-top: 16px; border-top: 2px solid var(--sun); font: 700 clamp(28px, 4.3vw, 64px)/1.45 var(--sans); color: var(--paper); text-wrap: balance; }
@media (min-width: 821px) { .qt .qp { white-space: nowrap; } }
.qt figcaption { margin-top: auto; padding-top: 24px; max-width: calc(8 * var(--col) + 7 * var(--gut)); font: 400 14px/24px var(--sans); letter-spacing: .04em; color: rgba(244, 243, 239, .7); }
.qt .qt-re { margin: 12px 0 0; font: 400 12px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 243, 239, .7); }
/* the chat screenshot itself, whole, exactly columns 9–12, standing on the bottom line beside the attribution */
.qt .qt-img { position: absolute; right: 0; bottom: 0; display: block; width: calc(4 * var(--col) + 3 * var(--gut)); height: auto; }
.qt .si { color: var(--sun); font-weight: 700; background: linear-gradient(var(--sun), var(--sun)) no-repeat 50% 100% / 70% .08em; padding-bottom: .04em; }
.enter.on .qt > * { animation: rise .8s var(--ease) both; }
.enter.on .qt > blockquote { animation-delay: .12s; }
.enter.on .qt > figcaption, .enter.on .qt > .qt-re, .enter.on .qt > .qt-img { animation-delay: .3s; }

/* pictures are uncovered by a rectangle moving along the grid (direction by kind of phenomenon) */
.enter .mcol .frame, .enter .full, .enter .ph, .enter .strip { clip-path: inset(0 100% 0 0); }
.c-aurora.enter .full, .c-aurora.enter .mcol .frame, .c-aurora.enter .ph { clip-path: inset(100% 0 0 0); }
.c-tle.enter .full, .c-tle.enter .mcol .frame, .c-tle.enter .ph { clip-path: inset(0 0 100% 0); }
.c-halo.enter .full, .c-halo.enter .mcol .frame, .c-halo.enter .ph { clip-path: inset(50% 50% 50% 50%); }
.c-tornado.enter .full, .c-tornado.enter .mcol .frame, .c-tornado.enter .ph { clip-path: inset(0 0 100% 0); }
.L.L.enter.on .mcol .frame, .L.L.enter.on .full, .L.L.enter.on .ph, .L.L.enter.on .strip { clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease) .25s; }

/* before/after slider */
.jx-a { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.jx-a img { width: 100%; height: 100%; object-fit: cover; }
.jx-h { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.jx-h::after { content: "↔"; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 700 16px/1 var(--sans); }
.jx-r { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-x; }
.tip { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 6px 12px; background: var(--ink); color: var(--paper); font: 400 12px/1.4 var(--sans); letter-spacing: .04em; pointer-events: none; transition: opacity .4s; }
.jx.used .tip { opacity: 0; }
.sw > img { opacity: 0; transition: opacity .7s; }
.sw > img.show { opacity: 1; }
.sw-b { position: absolute; z-index: 2; right: 0; bottom: 0; display: flex; }
.sw-b button { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; font: 700 12px/1 var(--sans); background: var(--paper); color: var(--ink); }
.sw-b button.on { background: var(--ink); color: var(--paper); }
/* No.20: Mario keeps hitting the block */
.frame.mario > img { animation: none; }
.mr, .mr i { position: absolute; }
.mr { inset: 0; pointer-events: none; }
.mr .sky { background: #5695ff; }
.mr .sp, .mr .sp b { background-image: url(img/r005.jpg); background-repeat: no-repeat; image-rendering: pixelated; }
.mr .m-coin { background: none; }
.mr .m-coin b { position: absolute; inset: 0; animation: coinSpin .24s linear infinite; }
.m-mario { animation: mJump 1.05s infinite; }
.m-block { animation: mBump 1.05s infinite; }
.m-coin { opacity: 0; animation: mCoin 1.05s infinite; }
@keyframes mJump { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(.25, .7, .45, 1); } 30% { transform: translateY(-189%); } 34% { transform: translateY(-189%); animation-timing-function: cubic-bezier(.55, 0, .75, .3); } 74%, 100% { transform: translateY(0); } }
@keyframes mBump { 0%, 30% { transform: translateY(0); } 36% { transform: translateY(-34%); } 44%, 100% { transform: translateY(0); } }
@keyframes mCoin { 0%, 30% { opacity: 0; transform: translateY(0); } 31% { opacity: 1; animation-timing-function: cubic-bezier(.2, .8, .4, 1); } 52% { transform: translateY(-165%); animation-timing-function: cubic-bezier(.6, 0, .8, .4); } 64% { transform: translateY(-110%); opacity: 1; } 66%, 100% { opacity: 0; transform: translateY(-110%); } }
@keyframes coinSpin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.18); } }

/* interactive pieces: a board takes the replaced photo's zone; a footer row 8 px under it holds 看原图 (left) and
   the note that it is a sketch (right) */
.wdg { position: relative; width: 100%; height: 100%; min-height: 0; }
.wdg.missing { display: none; }
.wdg .wg-note { display: none; }
.mcol > .wdg::after { content: "交互示意，据原文"; position: absolute; right: 0; bottom: -24px; font: 400 12px/16px var(--sans); letter-spacing: .04em; color: var(--grey); pointer-events: none; }
.L:not(.g-paper) .mcol > .wdg::after { color: rgba(244, 243, 239, .7); }
.wdg.pip { position: absolute; left: var(--qx); top: var(--qy); width: var(--qs); height: var(--qs); background: #0e2233; }
.w-orig { all: unset; position: absolute; z-index: 5; left: 0; bottom: -24px; cursor: pointer; font: 400 12px/16px var(--sans); letter-spacing: .04em; color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.L:not(.g-paper) .w-orig { color: var(--paper); }
.w-orig:hover { color: var(--mid); }
.w-orig[hidden] { display: none; }
.w-origimg { position: absolute; z-index: 4; inset: 0; background: var(--bg); }
.w-origimg > .frame { width: 100%; height: 100%; }
.w-origimg[hidden] { display: none; }

/* ---------- cover: the twenty photos drifting in alternate columns, the year in front ---------- */
.L-cover { background: #0b1622; overflow: hidden; }
.wall { position: absolute; inset: -40% -12% -40% -12%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; transform: rotate(-7deg); }
.wall .col { display: flex; flex-direction: column; gap: 12px; animation: wallUp 90s linear infinite; will-change: transform; }
.wall .col:nth-child(even) { animation-name: wallDown; animation-duration: 110s; }
.wall img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(-33.333%); } }
@keyframes wallDown { from { transform: translateY(-33.333%); } to { transform: translateY(0); } }
.cv-shade { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 30% 70%, rgba(11, 22, 34, .92), rgba(14, 34, 51, .55) 60%, rgba(48, 108, 144, .35)), linear-gradient(180deg, rgba(11, 22, 34, .5), rgba(11, 22, 34, .2) 40%, rgba(11, 22, 34, .85)); }
.cv { position: absolute; left: var(--m); right: var(--m); top: 6vh; bottom: 8vh; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr auto; column-gap: var(--gut); color: var(--paper); }
.cv .mark { grid-column: 1 / span 2; width: 100%; max-width: 150px; }
.cv .top { grid-column: 8 / span 5; justify-self: end; text-align: right; color: rgba(244, 243, 239, .75); }
.cv-year { grid-column: 1 / -1; align-self: end; margin: 0; font-size: clamp(120px, 27vw, 420px); line-height: .78; }
.cv-year .nm { display: inline-block; padding-right: .09em; letter-spacing: -.06em; background: linear-gradient(180deg, #ffffff 35%, #cfe6f3 75%, #9ccce4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cv .bot { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); border-top: 2px solid var(--paper); padding-top: 14px; margin-top: 3vh; }
.cv h2 { grid-column: 1 / span 7; margin: 0; font: 700 clamp(22px, 2.6vw, 40px)/1.25 var(--sans); }
.cv .en { grid-column: 9 / span 4; margin: 0; font: 400 13px/1.6 var(--sans); color: rgba(244, 243, 239, .75); }
.enter.on .cv-year { animation: rise 1s var(--ease) both .2s; }
.enter.on .cv .bot { animation: rise .9s var(--ease) both .45s; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- a case's title page ---------- */
/* the whole stage is an ink field with the rank's glow drifting across it; the photo is exactly its rect at the
   anchor; the title block hangs in columns 1–4, its label at the top line, the rest standing on the photo's bottom */
.L-title { color: var(--paper); }
.L.L-title::before { content: ""; position: absolute; left: 0; right: 0; top: var(--hud); bottom: 0; background: radial-gradient(ellipse 30% 55% at 50% 100%, color-mix(in srgb, var(--rk, #306c90) 34%, transparent), transparent 72%) 25% 0 / 200% 100% no-repeat, linear-gradient(180deg, #0b1a28 0%, #10283b 50%, #16384f 100%); animation: glowDrift 40s ease-in-out infinite alternate; }
.L-title .tt, .opener .tt { position: absolute; z-index: 2; left: var(--tx); top: var(--ty); width: var(--tw); height: calc(var(--tb) - var(--ty)); display: flex; flex-direction: column; }
.L-title .tt .lbl, .opener .tt .lbl { border-top: 2px solid currentColor; padding-top: 10px; color: rgba(244, 243, 239, .8); }
.slot-no { display: flex; align-items: flex-start; margin-top: auto; font-size: var(--no-size); line-height: .8; visibility: hidden; }
.slot-tt { margin: 24px 0 0; font: 700 var(--tt-size)/1.2 var(--sans); text-wrap: balance; visibility: hidden; }
.slot-tt .ws, .tag-tt .ws { white-space: nowrap; }
.tt .en { margin: 12px 0 0; font: 400 13px/1.5 var(--sans); color: rgba(244, 243, 239, .72); }
.tt .when { margin: 16px 0 0; font: 400 14px/1.7 var(--sans); }
.L-title .tt > .lbl, .L-title .tt > .en, .L-title .tt > .when, .L-title > .meta { opacity: 0; }
.L-title.on .tt > .lbl { animation: rise .7s var(--ease) both .3s; }
.L-title.on .tt > .en { animation: rise .7s var(--ease) both .45s; }
.L-title.on .tt > .when { animation: rise .7s var(--ease) both .55s; }
.L-title.on > .meta { animation: rise .7s var(--ease) both .65s; }
/* top three: the photo box spans the stage (the sky comes through around the photo); the text stands on a solid
   panel docked to the left edge, the photo right against it */
.top3.L-title .ph { left: 0; right: 0; top: var(--hud); bottom: 0; width: auto; height: auto; }
/* the blurred copy around the photo is only a dim sky tone, never a frame */
.top3.L-title .bgfill { opacity: .42; filter: saturate(.85) brightness(.42); }
.top3.L-title .fit { inset: auto; left: var(--fx); top: calc(var(--fy) - var(--hud)); width: var(--fw); height: var(--fh); }
/* the solid ink sheet covers the whole stage with a window exactly at the photo: around the photo only ink (the
   reveals play inside the photo), no strip of sky left at the edge */
.top3.L-title::before { z-index: 1; right: 0; background: radial-gradient(ellipse 30% 55% at 50% 100%, color-mix(in srgb, var(--rk, #e4b448) 18%, transparent), transparent 72%) 25% 0 / 200% 100% no-repeat, var(--ink-panel); animation: glowDrift 40s ease-in-out infinite alternate;
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, var(--fx) calc(var(--fy) - var(--hud)), calc(var(--fx) + var(--fw)) calc(var(--fy) - var(--hud)), calc(var(--fx) + var(--fw)) calc(var(--fy) - var(--hud) + var(--fh)), var(--fx) calc(var(--fy) - var(--hud) + var(--fh)), var(--fx) calc(var(--fy) - var(--hud))); }
.top3.L-title > .meta { z-index: 2; }
.top3.L-title .tt .lbl { border-color: var(--sun); color: rgba(244, 243, 239, .75); }
/* the push ends exactly on the whole photo, within the reveal */
.top3.L-title .fit > img { animation: push 3.6s var(--ease) both; }
@keyframes push { from { transform: scale(1.12) translate(2%, 1%); } to { transform: none; } }
/* the section opener 幕后趣闻: title geometry on the ink ground, the next story's photo already in place */
.opener .sc-head { margin: auto 0 0; font: 700 clamp(40px, 5vw, 72px)/1.05 var(--sans); letter-spacing: -.02em; }
.enter.on.opener .tt > * { animation: rise .8s var(--ease) both .2s; }

/* ---------- the turning points and the meme page: frames below the bar ---------- */
.L-gate, .L-memes { background: var(--bg); }
.L-gate.g3, .L-gate.g1 { background: #0b1622; }
.fxf { position: absolute; left: 0; right: 0; top: var(--hud); width: 100%; height: calc(100% - var(--hud)); border: 0; pointer-events: none; }
.fxf.live { pointer-events: auto; }
/* fallback 进入前十 */
.g10-head { position: absolute; left: var(--m); top: var(--T); width: calc(6 * var(--col) + 5 * var(--gut)); transition: opacity .5s; }
.g10-head .lbl { border-top: 2px solid var(--fg); padding-top: 10px; }
.g10-head h3 { margin: 2vh 0 0; font: 700 clamp(40px, 5.6vw, 84px)/1.05 var(--sans); letter-spacing: -.01em; }
.g10-head p { margin: 1.6vh 0 0; font-size: 15px; color: var(--grey); }
.g10-grid { position: absolute; left: var(--m); right: var(--m); bottom: 6vh; height: 40vh; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(2, 1fr); gap: var(--gut); }
.g10-grid.ten { height: 52vh; grid-template-columns: repeat(5, 1fr); }
.g10-grid.ten .t10.out { display: none; }
.t10 { position: relative; overflow: hidden; background: var(--accent); transform-origin: 0 0; }
.t10 img { width: 100%; height: 100%; object-fit: cover; }
.t10 b { position: absolute; left: 8px; bottom: 6px; font-size: clamp(18px, 2.2vw, 34px); line-height: .9; color: var(--paper); }
.t10.veil { background: var(--sun); }
.t10.veil b { color: var(--ink); }
.t10::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.t10.crossed::after { transform: scaleY(1); }
.t10.crossed { outline: 1px solid var(--rule); outline-offset: -1px; }
.t10.gone { opacity: 0; transition: opacity .35s; }
.g10-head.gone { opacity: 0; }
.g10-grid.zoom { left: 0; right: 0; bottom: 0; top: var(--hud); height: auto; grid-template-columns: 1fr; grid-template-rows: 1fr; gap: 0; }
.g10-grid.zoom .t10:not([data-n="10"]) { display: none; }
.g10-grid.zoom .t10 b { opacity: 0; }
/* a straight cut: 进入前十's exit has already put No.10's photo in place */
.L.enter.cut { transform: none; }
/* a cut, a fade after a turning point, or a held photo: no rectangle reveal, the photo is simply there */
.L.cut :is(.ph, .full, .mcol .frame, .strip), .L.fade :is(.ph, .full, .mcol .frame, .strip) { clip-path: none !important; transition: none !important; }
.L.leave.cut { transform: none; opacity: 0; transition: none; }
/* fading instead of sliding: after a turning point has played its own exit */
.L.enter.fade { transform: none; opacity: 0; }
.L.enter.fade.on { opacity: 1; transition: opacity .7s ease; }
.L.leave.fade { transform: none; opacity: 0; transition: opacity .6s ease .35s; }
/* held: the same photo rect on both pages; the new page is already there under the old one, which dissolves away */
.L.enter.fade.hold { opacity: 1; }
.L.leave.fade.hold { transition: opacity .5s ease; }

/* ---------- the authors on the opening page ---------- */
/* flat discs, no rings, shadows or pills; names as a small bold line under each */
.avs { position: absolute; inset: 0; pointer-events: none; z-index: 5; visibility: hidden; }
.avs.ready { visibility: visible; }
.av { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform 1s var(--ease); }
.av i { display: block; width: 100%; height: 100%; border-radius: 50%; background-repeat: no-repeat; }
.av em { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; font: normal 700 .44em/1 "Noto Sans SC", var(--sans); background: var(--ink); color: var(--paper); opacity: 0; transition: opacity .5s .6s; }
html[data-theme="dark"] .av em { background: var(--paper); color: var(--ink); }
.avs.on .av em { opacity: 1; }
.L.intro .frame > img { animation: none; }
.av b { position: absolute; left: 0; top: calc(100% + 8px); white-space: nowrap; font: 700 12px/16px var(--sans); color: var(--fg); opacity: 0; transition: opacity .5s .5s; }
.avs.on .av b { opacity: 1; }

/* ---------- split rainbows: the information piece in a frame below the bar ---------- */
/* flat ink, exactly the piece's own ground, so the frame has no edge */
.L.L-split { background: #0e2233; color: var(--paper); animation: none; }
/* the note page: the map takes the free rect beside (phones: under) the text; the record page: the whole stage */
.sbf { position: absolute; left: 0; top: var(--hud); width: 100%; height: calc(100% - var(--hud)); border: 0; pointer-events: none; }
.L-split.scrub .sbf { pointer-events: auto; }
.L-split.scrub .tcol { pointer-events: none; }
.sb-replay { all: unset; position: absolute; right: var(--m); top: calc(var(--B) - 16px); cursor: pointer; font: 400 12px/16px var(--sans); letter-spacing: .08em; color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sb-replay[hidden] { display: none; }

/* ---------- list, team, end ---------- */
.scrolly { position: absolute; inset: var(--hud) 0 0; overflow-y: auto; padding: calc(var(--T) - var(--hud)) var(--m) 96px; overscroll-behavior: contain; touch-action: pan-y; }
.L-list h3, .L-team h3 { margin: 0 0 48px; padding-top: 12px; border-top: 2px solid var(--fg); font: 700 clamp(28px, 3.4vw, 48px)/1.2 var(--sans); }
.L-team h3 { margin-bottom: 32px; }
/* four to a row, three columns each; the thumbnail whole, standing on the bottom of its cell */
.tiles { --tw: calc(3 * var(--col) + 2 * var(--gut)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px var(--gut); }
.tile { position: relative; color: var(--fg); }
.tile > a { display: block; text-decoration: none; color: inherit; }
.tile .ti { display: block; aspect-ratio: 306 / 230; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: contain; object-position: left bottom; transition: transform .6s var(--ease); transform-origin: 0 100%; }
.tile > a:hover img { transform: scale(1.03); }
.tile b { display: block; margin-top: 8px; font-size: 34px; line-height: .9; color: var(--rk-ui); }
.tile span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; }
.tile small { display: block; margin-top: 4px; font-size: 11px; color: var(--grey); }
.tile > a:hover span { color: var(--mid); }
/* the like: a flat ink square on the numeral's row */
.like { all: unset; position: absolute; right: calc((1 - var(--pw, 1)) * 100%); top: calc(var(--tw) * 230 / 306 + 8px); display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 32px; height: 32px; padding: 0 8px; box-sizing: border-box; cursor: pointer; background: var(--ink); color: var(--paper); font: 700 12px/1 var(--sans); }
.like i { width: 14px; height: 13px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-8.5-5.4-10.6-10.3C-.2 6.6 2.7 1.5 7.2 1.5c2.2 0 3.8 1.2 4.8 2.8 1-1.6 2.6-2.8 4.8-2.8 4.5 0 7.4 5.1 5.8 9.2C20.5 15.6 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-8.5-5.4-10.6-10.3C-.2 6.6 2.7 1.5 7.2 1.5c2.2 0 3.8 1.2 4.8 2.8 1-1.6 2.6-2.8 4.8-2.8 4.5 0 7.4 5.1 5.8 9.2C20.5 15.6 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .75; }
.like:hover { background: var(--accent); }
.like.on { background: var(--sun); color: var(--ink); }
.like.on i { opacity: 1; }
.like .lc:empty { display: none; }
html[data-theme="dark"] .like:not(.on) { background: var(--paper); color: var(--ink); }
.enter.on .tile { animation: rise .7s var(--ease) both; animation-delay: calc(var(--k) * 35ms); }
/* the team: eight avatars on columns 1–8, then the bios in two halves of the grid */
.team-img { width: 100%; aspect-ratio: var(--ar); margin: 0 0 48px; }
.crew { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); margin: 0 0 48px; }
.cw img, .cw .ini { display: grid; width: min(64px, 100%); aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; }
.cw .ini { font-size: 26px; }
.cw b { display: block; margin-top: 8px; font: 700 12px/16px var(--sans); white-space: nowrap; }
.bios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px var(--gut); font-size: 15px; line-height: 1.75; }
.bio { display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; align-items: start; padding-top: 16px; border-top: 1px solid var(--rule); }
.bio img, .bio > i { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.bio .ini { font-size: 20px; }
.bio b { display: block; font-size: 16px; line-height: 1.4; margin-bottom: 4px; }
.bio p { margin: 0; color: var(--grey); }
.enter.on .bio, .enter.on .cw { animation: rise .7s var(--ease) both; }
.enter.on .bio:nth-child(2n) { animation-delay: .06s; }
/* the end: columns 1–7 (logo, thanks, the two ways on) and 9–12 (the notes), both hanging from the top line */
.L-end { background: radial-gradient(ellipse 70% 60% at 80% 30%, rgba(96, 156, 192, .18), transparent 70%); }
.end-in { position: absolute; left: var(--m); right: var(--m); top: var(--T); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); }
.end-main { grid-column: 1 / span 7; }
.end-side { grid-column: 9 / span 4; padding-top: 16px; border-top: 1px solid var(--rule); }
.end-logo { width: 128px; margin-bottom: 32px; }
html[data-theme="dark"] .end-logo { content: url(logo-white.png); }
.end-main h3 { margin: 0 0 32px; padding-top: 12px; border-top: 2px solid var(--fg); font: 700 clamp(34px, 4.6vw, 64px)/1.1 var(--sans); }
.end-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.end-btn { display: block; padding: 12px 16px; text-decoration: none; font: 700 16px/1.4 var(--sans); color: var(--paper); background: var(--accent); transition: background-color .2s; }
.end-btn small { display: block; font: 400 11px/1.4 var(--sans); letter-spacing: .1em; opacity: .8; }
.end-btn.ghost { color: var(--fg); background: none; outline: 1.5px solid var(--fg); outline-offset: -1.5px; }
.end-btn:hover { background-color: var(--ink); }
.end-btn.ghost:hover { background-color: var(--rule); }
.end-note { margin: 0 0 16px; font-size: 14px; line-height: 1.8; color: var(--grey); }
.end-note b { color: var(--fg); }
.again { all: unset; cursor: pointer; font: 400 12px/16px var(--sans); letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  :root { --m: 16px; --gut: 16px; --hud: 48px; --col: calc((100vw - 2 * var(--m) - 3 * var(--gut)) / 4); --T: calc(var(--hud) + 16px); --B: calc(var(--vh) * 100 - 24px); --body: 16px; --no-size: clamp(80px, 24vw, 116px); --tt-size: clamp(22px, 6.6vw, 30px); }
  body { font-size: 16px; }
  .bx-in { line-height: 28px; }
  /* phones: a paragraph's lines run on as one (app.js joins them and glues the last four characters) */
  .bx-in .ln { display: inline; }
  .bx-in .ln.dt { display: block; }
  .bx-in p { text-wrap: pretty; }
  /* the bar: [No. + title, two lines] [theme] [next ›] on a case's pages; [logo] … [极简] [theme] elsewhere */
  .hud { gap: 8px; }
  .brand { width: 76px; height: 26px; }
  body.in-case .brand { display: none; }
  .hud .mode-sw { order: 2; }
  .hud .theme { order: 3; }
  .hud .skip { order: 4; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; font-size: 20px; }
  .hud .skip[hidden] { display: none; }
  .skip .sk-t { display: none; }
  .tag-tt.small { white-space: normal; width: max-content; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-overflow: clip; }
  body:not([data-kind="cover"]) .next-hint { display: none; }
  /* titles flow down from under the photo */
  .L-title .tt, .opener .tt, .lmz .tt { height: auto; }
  .slot-no, .lmz .slot-no { margin-top: 24px !important; }
  /* the top three's title on a phone: solid ink all round the photo (no blurred band, no hard edge) */
  .top3.L-title .ph { background: var(--ink-panel); }
  .top3.L-title .bgfill { visibility: hidden; }
  /* a board may be wider than its photo here: 看原图 shows the photo whole inside it */
  .w-origimg .frame > img { object-fit: contain; }
  /* the opening's 11 gives its place to the authors when they line up */
  .L.intro .ghost-no { transition: opacity .5s; }
  .L.intro.av-on .ghost-no { opacity: 0; }
  .opener .sc-head { margin-top: 16px; font-size: 40px; }
  .lay-quote .qt { right: var(--m); width: auto; }
  .qt figcaption { max-width: none; }
  .qt .qm { font-size: 72px; }
  .qt blockquote { font-size: 24px; }
  .qt .qt-img { position: static; width: 100%; margin-top: 24px; }
  .cv { left: var(--m); right: var(--m); grid-template-columns: repeat(4, 1fr); }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .wall .col:nth-child(n + 4) { display: none; }
  .cv .mark { grid-column: 1 / span 2; }
  .cv .top { display: none; }
  .cv .bot { grid-template-columns: 1fr; row-gap: 10px; }
  .cv h2, .cv .en { grid-column: 1; }
  .scrolly { padding-bottom: 64px; }
  .L-list h3, .L-team h3 { margin-bottom: 32px; }
  .tiles { --tw: calc(2 * var(--col) + var(--gut)); grid-template-columns: repeat(2, 1fr); gap: 32px var(--gut); }
  .crew { grid-template-columns: repeat(4, 1fr); row-gap: 16px; }
  .cw img, .cw .ini { width: min(56px, 100%); }
  .bios { grid-template-columns: 1fr; }
  .end-in { grid-template-columns: 1fr; row-gap: 32px; }
  .end-main, .end-side { grid-column: 1; }
  .end-btn { width: 100%; min-height: 64px; }
  .g10-head { width: auto; right: var(--m); }
  .g10-grid { height: 46vh; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); }
  .g10-grid.ten { height: 40vh; grid-template-rows: repeat(2, 1fr); }
}
@media (max-width: 820px) and (orientation: landscape) {
  :root { --T: calc(var(--hud) + 8px); --B: calc(var(--vh) * 100 - 8px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; transition-delay: 0s !important; }
}
