/* SEO deck: shared scene styles. Tokens come from /assets/tokens.css, runtime from /deck/deck.css.
 * Chapter styles live in ch-*.css and prefix every selector with their own class prefix
 * (so- ch-open, sa- ch-levers-1-5, sb- ch-levers-6-10, sr- ch-ryze, sc- ch-close).
 * Shared prefixes here: se- (shell, copy, labels), ui- (the SEO mock kit: Google, Search Console, browser, site).
 * Layouts (FORMAT section 7): desktop by default; compact = (max-width: 959px), (max-height: 599px);
 * phone = (max-width: 759px) and (orientation: portrait). No monospace anywhere; every text is at least 14 px. */

/* ---------- extra worlds ---------- */
.theme-google { --s-bg: #EEF1F4; --s-fg: #202124; --s-muted: #4D5156; --s-line: #DFE1E5; --s-accent: #1A0DAB; background: var(--s-bg); color: var(--s-fg); }
.theme-claude { --s-bg: #F5F4EE; --s-fg: #1f1e1d; --s-muted: #6b6a66; --s-line: #E3E0D6; --s-accent: #D97757; background: var(--s-bg); color: var(--s-fg); }
.theme-paper { --s-bg: #F6F4EF; --s-muted: var(--ink-2, #555); background: var(--s-bg); }
.deck[data-theme="google"], .deck[data-theme="claude"] { --hud-fg: #111; }

/* ---------- the shell: every scene is built with shell() ---------- */
.scene .se { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); row-gap: clamp(14px, 2.6vh, 32px); align-items: start;
  padding: calc(var(--hud-top, 64px) + clamp(8px, 2.6vh, 36px)) clamp(24px, 5.5vw, 104px) calc(var(--hud-bottom, 100px) + clamp(4px, 1.4vh, 18px)); }
.se-t { grid-column: 1 / -1; grid-row: 1; max-width: min(100%, 23em); font-size: clamp(28px, 2.9vw, 48px); line-height: 1.08; letter-spacing: -.028em; font-weight: 500; color: var(--s-fg); text-wrap: balance; position: relative; z-index: 2; margin: 0; }
.se-vis { position: relative; min-width: 0; min-height: 0; }
.se-side { position: relative; z-index: 2; display: grid; gap: 16px; align-content: start; min-width: 0; }

/* split: side text left, visual right */
.scene .se--split { grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(24px, 4vw, 72px); }
.se--split .se-t { grid-row: 1; }
.se--split .se-side { grid-column: 1; grid-row: 2; align-self: start; max-width: 25em; }
.se--split .se-vis { grid-column: 2; grid-row: 2; align-self: stretch; height: 100%; }
/* stage: side text directly under the title, the visual full width below it */
.se--stage .se-vis { grid-row: 3; align-self: stretch; height: 100%; }
.se--stage .se-side { grid-row: 2; grid-auto-flow: row; gap: 8px; align-items: start; max-width: 46em; }
/* full and right: the visual is a full-bleed layer behind the text (3D worlds) */
.scene > .se-vis { position: absolute; inset: 0; z-index: 0; }
.scene .se--full, .scene .se--right { pointer-events: none; z-index: 1; }
.se--full > *, .se--right > * { pointer-events: auto; }
.se--full .se-t, .se--right .se-t { max-width: min(100%, 18.5em); }
.se--full .se-side { grid-row: 2; max-width: min(27em, 100%); align-self: start; }
.scene .se--right { grid-template-columns: minmax(0, 1fr) minmax(0, 24em); }
.se--right .se-side { grid-column: 2; grid-row: 2 / 4; align-self: start; }

/* scrim so text stays readable over 3D (append with scrim(vis) after the canvas) */
.se-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--s-bg) 86%, transparent) 0, color-mix(in srgb, var(--s-bg) 55%, transparent) 30%, transparent 50%),
    linear-gradient(0deg, color-mix(in srgb, var(--s-bg) 70%, transparent) 0, transparent 22%),
    linear-gradient(90deg, color-mix(in srgb, var(--s-bg) 62%, transparent) 0, transparent 42%); }
.se-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.scene canvas { display: block; }
/* a DOM label over 3D, positioned with place(); never in perspective */
.se-label { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; white-space: nowrap; font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--s-fg);
  text-shadow: 0 1px 2px rgb(0 0 0 / .55), 0 0 14px rgb(0 0 0 / .45); will-change: transform; }
.se-label--pill { padding: 5px 10px; border-radius: 6px; background: rgb(8 8 10 / .72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.se-label--orange { color: #FFB07A; }
.se-label--rose { color: #F2C9BD; }
.se-label--muted { color: rgb(255 255 255 / .72); }

/* ---------- copy blocks ---------- */
.scene .se-note { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.48; color: var(--s-muted); max-width: 30em; margin: 0; }
.theme-night .se-note, .theme-ink .se-note { color: rgb(255 255 255 / .78); }
.se-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.se-steps li { position: relative; padding-left: 22px; font-size: clamp(16px, 1.26vw, 19px); line-height: 1.4; color: var(--s-fg); }
.se-steps li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 8px; height: 8px; border-radius: 50%; background: var(--cta, #FF7F32); }
.scene .se-pit { display: flex; gap: 10px; align-items: flex-start; font-size: clamp(15px, 1.18vw, 18px); line-height: 1.45; color: var(--c-rose-t, #85503F); max-width: 30em; margin: 0; }
.se-pit__i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 4px; background: color-mix(in srgb, var(--c-rose, #E1B5A8) 45%, transparent); color: var(--c-rose-t, #85503F); }
.theme-ink .se-pit, .theme-night .se-pit { color: #F2C9BD; }
.theme-ink .se-pit__i, .theme-night .se-pit__i { background: rgb(225 181 168 / .16); color: #F2C9BD; }
.se-src { display: inline-block; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--s-muted); opacity: .86; }
.theme-night .se-src, .theme-ink .se-src { color: rgb(255 255 255 / .62); opacity: 1; }
.se-src--line { display: block; margin-top: 4px; }
.se-stat { display: grid; gap: 4px; align-content: start; }
.se-stat__v { font-size: clamp(36px, 4.4vw, 76px); line-height: 1; letter-spacing: -.035em; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--s-fg); }
.se-stat--sm .se-stat__v { font-size: clamp(28px, 2.7vw, 44px); }
.se-stat--xl .se-stat__v { font-size: clamp(52px, 7.6vw, 132px); }
.se-stat--orange .se-stat__v { color: var(--cta, #FF7F32); }
.se-stat--rose .se-stat__v { color: var(--c-rose-t, #85503F); }
.theme-ink .se-stat--rose .se-stat__v, .theme-night .se-stat--rose .se-stat__v { color: #F2C9BD; }
.se-stat__l { font-size: clamp(15px, 1.12vw, 18px); line-height: 1.4; color: var(--s-fg); max-width: 26em; }
.se-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.se-tag--line { box-shadow: inset 0 0 0 1px var(--s-line); color: var(--s-fg); }
.se-tag--orange { background: var(--cta, #FF7F32); color: #fff; }
.se-tag--rose { background: var(--c-rose, #E1B5A8); color: var(--c-rose-t, #85503F); }
.se-tag--aqua { background: var(--c-aqua, #9CE7DD); color: var(--c-aqua-t, #1C6A60); }
.se-tag--ink { background: #111; color: #fff; }
/* the Example tag on every illustrative mock */
.se-example { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1; color: #576F76; background: rgb(255 255 255 / .86); box-shadow: inset 0 0 0 1px #DFE4E7; white-space: nowrap; }
.theme-night .se-example, .theme-ink .se-example { color: rgb(255 255 255 / .72); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }
.se-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* surfaces */
.se-card { position: relative; background: #fff; border-radius: 8px; color: var(--ink, #111); box-shadow: inset 0 0 0 1px var(--ll-line, #E4E2DD), 0 1px 2px rgba(17,17,17,.04), 0 8px 22px -14px rgba(17,17,17,.12); }
.se-dark { position: relative; background: #111; color: #fff; border-radius: 8px; box-shadow: 0 18px 40px -26px rgba(28,106,96,.4); }
.se-stroke::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; background: var(--accent-stroke);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }

/* halftone bars: --v from 0 to 1 */
.se-ht { position: relative; height: 18px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--s-line); overflow: hidden; --dot: #A9A6A0; }
.se-ht i { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc(100% - 6px); background: radial-gradient(circle, var(--dot) 1.5px, transparent 1.9px) 0 0 / 5px 5px; clip-path: inset(0 calc((1 - var(--v, 0)) * 100%) 0 0); transition: clip-path 1.2s var(--ease, cubic-bezier(.2,.8,.2,1)); }
.se-ht--v { width: 22px; height: auto; }
.se-ht--v i { left: 3px; right: 3px; top: 3px; bottom: 3px; width: auto; clip-path: inset(calc((1 - var(--v, 0)) * 100%) 0 0 0); }
.se-ht--orange { --dot: var(--cta, #FF7F32); }
.se-ht--rose { --dot: var(--c-rose-d, #C79586); }
.se-ht--aqua { --dot: var(--c-aqua-d, #66CDBF); }
.se-ht--lilac { --dot: #A996D8; }
.se-ht--grey { --dot: #A9A6A0; }
.theme-ink .se-ht--grey, .theme-night .se-ht--grey { --dot: rgb(255 255 255 / .42); }

/* departure board: Satoshi with tabular numbers (no monospace) */
.flap { display: inline-flex; gap: 2px; font: 600 clamp(18px, 1.8vw, 28px)/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.flap__c { position: relative; display: inline-block; width: .74em; height: 1.32em; overflow: hidden; background: #0a0a0b; color: #fff; border-radius: 3px; text-align: center; box-shadow: inset 0 -1px 0 rgb(255 255 255 / .05); }
.flap__c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(0 0 0 / .7); }
.flap__s { display: flex; flex-direction: column; transition: transform 1.3s cubic-bezier(.2, .8, .2, 1); }
.flap__s span { display: block; height: 1.32em; line-height: 1.32em; }

/* typing caret */
.se-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: currentColor; animation: se-blink 1s steps(1) infinite; }
@keyframes se-blink { 50% { opacity: 0; } }

/* sliders */
.scene input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --trk: rgb(0 0 0 / .16); }
.theme-ink input[type="range"], .theme-night input[type="range"] { --trk: rgb(255 255 255 / .3); }
.scene input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--trk); }
.scene input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--trk); }
.scene input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--cta, #FF7F32), 0 4px 10px rgb(0 0 0 / .25); }
.scene input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--cta, #FF7F32), 0 4px 10px rgb(0 0 0 / .25); }
.scene input[type="range"]:focus-visible { outline: 2px solid var(--cta, #FF7F32); outline-offset: 4px; border-radius: 4px; }

.scene [data-show]:not(.is-on), .scene [data-hide]:not(.is-on) { pointer-events: none; }
/* round 5: supporting text that belongs to another beat takes no room, so the current beat's text sits right under the title */
.scene .se-side [data-show]:not(.is-on), .scene .se-side [data-hide]:not(.is-on) { display: none; }
/* beat texts stacked in one cell start at its top edge */
.scene .se-side [data-show], .scene .se-side [data-hide] { align-self: start; }

/* ================================================================ SEO mock kit (ui-) */
.ui-br, .ui-serp, .ui-gsc, .ui-site, .ui-chip { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.ui-bar { display: block; height: 8px; border-radius: 4px; background: #E3E6EA; }
.ui-bars { display: grid; gap: 9px; padding: 3px 0; }
.ui-bar--t { height: 12px; background: #C9D3F3; }
.ui-bar--h { height: 14px; width: 180px !important; background: #D5D9DE; }
.ui-bar--brand { height: 10px; width: 70px !important; background: #CBD0D6; }
.ui-bar--chip { width: 54px !important; height: 7px; background: #C5CBD1; }
.ui-mark, .ui-gmark { display: inline-block; flex: none; }
.ui-mark svg { display: block; }
.ui-gmark { --s: 16px; display: inline-grid; grid-template-columns: repeat(2, calc(var(--s) / 2)); gap: 2px; }
.ui-gmark i { width: calc(var(--s) / 2); height: calc(var(--s) / 2); border-radius: 50%; background: #4285F4; }
.ui-gmark i:nth-child(2) { background: #EA4335; } .ui-gmark i:nth-child(3) { background: #FBBC05; } .ui-gmark i:nth-child(4) { background: #34A853; }

/* chips */
.ui-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #3C4043; background: #fff; box-shadow: inset 0 0 0 1px #DADCE0; white-space: nowrap; transition: background .35s, color .35s, box-shadow .35s; font-variant-numeric: tabular-nums; }
.ui-chip__i { display: grid; }
.ui-chip.is-on { background: #E8F0FE; color: #174EA6; box-shadow: inset 0 0 0 1px #AECBFA; }

/* browser */
.ui-br { position: relative; container-type: inline-size; display: flex; flex-direction: column; min-height: 0; height: 100%; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 30px 60px -34px rgb(0 0 0 / .35), inset 0 0 0 1px #DADCE0; }
.ui-br__bar { flex: none; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; background: #F1F3F4; box-shadow: inset 0 -1px 0 #DADCE0; color: #202124; font-size: 14px; font-weight: 500; }
.ui-br__dots { display: flex; gap: 6px; } .ui-br__dots i { width: 11px; height: 11px; border-radius: 50%; background: #D7D9DC; }
.ui-br__tab { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 8px 8px 0 0; background: #fff; white-space: nowrap; min-width: 0; }
.ui-br__tab .ui-bar { width: 80px !important; }
.ui-br__url { flex: 1; min-width: 0; height: 28px; border-radius: 999px; background: #fff; display: flex; align-items: center; padding: 0 12px; overflow: hidden; }
.ui-br__urlt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; color: #3C4043; }
.ui-br__url .ui-bar { height: 7px; }
.ui-br__body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
@container (max-width: 420px) { .ui-br__url { display: none; } }

/* Google results */
.ui-serp { --g-fg: #202124; --g-mut: #4D5156; --g-blue: #1A0DAB; position: relative; container-type: inline-size; display: grid; gap: 14px; align-content: start; min-height: 0; padding: 18px clamp(16px, 3cqw, 28px) 12px; background: #fff; color: var(--g-fg); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(32 33 36 / .06), 0 30px 60px -34px rgb(32 33 36 / .32), inset 0 0 0 1px #DFE1E5; }
.ui-serp__top { display: flex; align-items: center; gap: 16px; }
.ui-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 24px; box-shadow: 0 1px 6px rgb(32 33 36 / .18); font-size: 16px; }
.ui-q__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-q__ic { color: #4285F4; display: grid; }
.ui-serp__tabs { display: flex; gap: 22px; padding: 0 0 8px 4px; box-shadow: inset 0 -1px 0 #EBEBEB; }
.ui-serp__tabs .ui-bar { width: 52px !important; height: 8px; } .ui-serp__tabs .is-on { background: #1A73E8; opacity: .7; }
.ui-serp__res { display: grid; gap: 20px; align-content: start; }
.ui-r { position: relative; display: grid; gap: 6px; max-width: 640px; transition: opacity .4s; }
.ui-r.is-hi::before { content: ""; position: absolute; inset: -10px -12px; border-radius: 12px; background: rgb(255 127 50 / .07); box-shadow: inset 0 0 0 1.5px rgb(255 127 50 / .55); z-index: -1; }
.ui-r { z-index: 0; }
.ui-r__site { display: flex; align-items: center; gap: 10px; }
.ui-r__fav { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F1F3F4; color: #5f6368; flex: none; }
.ui-r__crumb { display: grid; gap: 1px; min-width: 0; font-size: 14px; line-height: 1.35; }
.ui-r__crumb .ui-bar { height: 7px; }
.ui-r__name { color: var(--g-fg); }
.ui-r__path { color: var(--g-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-r__badge { margin-left: auto; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #FFF1E7; color: #9A4A14; font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ui-r__t { margin: 0; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.3; font-weight: 400; color: var(--g-blue); }
.ui-r__d { margin: 0; font-size: 14px; line-height: 1.5; color: var(--g-mut); }
.ui-bars--d .ui-bar { height: 7px; background: #E8EAED; }

/* Search Console */
.ui-gsc { position: relative; container-type: inline-size; display: flex; flex-direction: column; min-height: 0; height: 100%; background: #fff; color: #202124; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(32 33 36 / .06), 0 30px 60px -34px rgb(32 33 36 / .32), inset 0 0 0 1px #DFE1E5; }
.ui-gsc__top { flex: none; display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; box-shadow: inset 0 -1px 0 #E3E6EA; }
.ui-gsc__prop { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 32px; width: min(220px, 36cqw); padding: 0 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px #DADCE0; }
.ui-gsc__main { flex: 1; min-height: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.ui-gsc__nav { display: grid; align-content: start; gap: 2px; padding: 10px 8px; box-shadow: inset -1px 0 0 #EEF0F2; }
.ui-gsc__ni { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 0 17px 17px 0; color: #5f6368; }
.ui-gsc__ni > span { display: grid; flex: none; }
.ui-gsc__ni .ui-bar { height: 7px; }
.ui-gsc__ni.is-on { background: #E8F0FE; color: #1967D2; } .ui-gsc__ni.is-on .ui-bar { background: #AECBFA; }
.ui-gsc__page { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 16px clamp(14px, 2.4cqw, 24px); overflow: hidden; }
.ui-gsc__head { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.ui-gsc__body { position: relative; min-height: 0; display: grid; align-content: start; gap: 12px; }
@container (max-width: 560px) { .ui-gsc__main { grid-template-columns: 52px minmax(0, 1fr); } .ui-gsc__ni .ui-bar { display: none; } .ui-gsc__ni { justify-content: center; padding: 0; border-radius: 10px; } }

/* website page (Shelfwise) */
.ui-site { position: relative; container-type: inline-size; display: flex; flex-direction: column; min-height: 0; height: 100%; background: #fff; color: #16201E; overflow: hidden; }
.ui-site__top { flex: none; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 clamp(14px, 3cqw, 28px); box-shadow: inset 0 -1px 0 #ECEEEA; }
.ui-site__nav { display: flex; gap: 14px; margin-left: auto; width: min(240px, 34cqw); } .ui-site__nav .ui-bar { flex: 1; height: 7px; }
.ui-site__cta { width: 74px; height: 30px; border-radius: 8px; background: #1D3B36; flex: none; }
.ui-site__body { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: clamp(14px, 3cqw, 30px) clamp(14px, 4cqw, 40px); }
@container (max-width: 420px) { .ui-site__nav { display: none; } }

/* labels over 3D: the pill with a dot */
.se-label__dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--c, #fff); vertical-align: 1px; box-shadow: 0 0 8px var(--c, #fff); }
.scene .se-label[data-show]:not(.is-on), .scene .se-label[data-hide]:not(.is-on) { opacity: 0; }
.se-label { transition: opacity .45s; }
.scene:not(.is-active) .se-label { transition: none; }


/* ---------- compact: short or narrow landscape ---------- */
@media (max-width: 959px), (max-height: 599px) {
  .scene .se { row-gap: 10px; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); padding-top: calc(var(--hud-top, 52px) + 6px); padding-bottom: calc(var(--hud-bottom, 80px) + 2px); }
  .se-t { font-size: clamp(22px, 3.1vw, 30px); line-height: 1.12; letter-spacing: -.02em; }
  .se--full .se-t, .se--right .se-t { max-width: min(100%, 20em); }
  .se-side { gap: 10px; }
  .scene .se-note { font-size: 15px; line-height: 1.42; }
  .se-steps li { font-size: 15px; }
  .scene .se-pit { font-size: 14px; }
  .se-stat__v { font-size: clamp(28px, 4.4vw, 44px); }
  .se-stat--xl .se-stat__v { font-size: clamp(40px, 7vw, 64px); }
  .se-stat__l { font-size: 14px; }
  .se-label { font-size: 14px; }
  .ui-q { height: 40px; font-size: 15px; }
  .ui-r__t { font-size: 17px; }
  .ui-chip { height: 30px; }
  .flap { font-size: 18px; }
}

/* ---------- phone: portrait and narrower than 760 ---------- */
@media (max-width: 759px) and (orientation: portrait) {
  .scene .se { padding-left: 16px; padding-right: 16px; row-gap: 12px; padding-top: calc(var(--hud-top, 56px) + 10px); padding-bottom: calc(var(--hud-bottom, 96px) + 4px); }
  .se-t { font-size: clamp(22px, 6.2vw, 27px); line-height: 1.15; letter-spacing: -.02em; }
  .scene .se--split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); row-gap: 12px; }
  .se--split .se-side { grid-column: 1; grid-row: 2; align-self: start; }
  .se--split .se-vis { grid-column: 1; grid-row: 3; }
  .se--stage .se-side { grid-auto-flow: row; gap: 10px; }
  .scene .se--right { grid-template-columns: minmax(0, 1fr); }
  .se--right .se-side { grid-column: 1; grid-row: 2; align-self: start; }
  .se--full .se-side { max-width: 100%; }
  .se-side { gap: 10px; }
  .scene .se-note { font-size: 15px; }
  .se-steps { gap: 8px; }
  .se-steps li { font-size: 15px; padding-left: 18px; }
  .scene .se-pit { font-size: 14px; }
  .se-pit__i { width: 22px; height: 22px; }
  .se-stat__v { font-size: clamp(30px, 9vw, 40px); }
  .se-stat__l { font-size: 14px; }
  .se-label { font-size: 14px; }
  .flap { font-size: 16px; }
}
/* round 5: a later beat's text never holds space in the column, even where a chapter rule forces its display */

