/* ch-levers-7-8 styles (round 3, builder levers-7-8): scenes l7-why, l7-proof, l7-how, l8-why, l8-proof, l8-how.
 * Every selector starts with the module prefix ld-. Shared mx-* classes come from scenes.css. */

/* ---------- shared ---------- */
.ld-scene .mx-src { font-size: 14.5px; }
.ld-scene .mx-note, .ld-scene .mx-pit > span:last-child { text-wrap: pretty; }
.ld-swap { display: grid; align-items: end; }
.ld-swap > * { grid-area: 1 / 1; }
.ld-sep { color: var(--s-muted); }
.ld-nb { white-space: nowrap; }
.ld-scene .ld-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* labels pinned to 3D points (positioned every frame by pinLabels) */
.ld-scene .ld-l3 { z-index: 3; font-size: 15px; line-height: 1.2; color: rgb(255 255 255 / .92); padding: 5px 10px; border-radius: 4px; background: rgb(5 5 6 / .74); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); transition: opacity .35s var(--ease); opacity: 0; }

/* ---------- 24 l7-why: the spotlight ---------- */
.ld-spot .ld-scrim { background: linear-gradient(180deg, rgb(5 5 6 / .78) 0, rgb(5 5 6 / 0) 24%), linear-gradient(90deg, rgb(5 5 6 / .82) 0, rgb(5 5 6 / .45) 26%, rgb(5 5 6 / 0) 44%), linear-gradient(0deg, rgb(5 5 6 / .6) 0, rgb(5 5 6 / 0) 26%); }
.ld-spot .mx-side { max-width: 28em; }
.ld-spot .ld-day { padding: 3px 8px; font-size: 15px; color: rgb(255 255 255 / .8); background: rgb(5 5 6 / .55); }
.ld-spot .ld-key { display: inline-flex; align-items: center; gap: 8px; }
.ld-key__sw { flex: none; width: 22px; height: 12px; border-radius: 2px; background: radial-gradient(circle, rgb(255 255 255 / .85) 1.3px, transparent 1.7px) 0 0 / 5px 5px; }
.ld-spot .ld-fav { color: #fff; font-weight: 500; background: rgb(18 10 4 / .78); box-shadow: inset 0 0 0 1px var(--cta), 0 0 24px -4px rgb(255 127 50 / .7); }

/* ---------- 25 l7-proof: 100 race trails ---------- */
.ld-tr .mx-side { gap: 10px; }
.ld-tr__lab { margin: 0; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.32; font-weight: 500; letter-spacing: -.01em; color: var(--s-fg); text-wrap: balance; max-width: 18em; }
.ld-tr .ld-tr__src { margin-top: 2px; }
.ld-tr .mx-vis { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(8px, 1.6vh, 16px); }
.ld-tr__cap .ld-tr__lab { max-width: 26em; }
.ld-tr__box { position: relative; width: 100%; height: 100%; min-height: 0; }
.ld-tr__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-tr__p { position: absolute; top: 0; transform: translateX(-50%); font-size: clamp(30px, 3.3vw, 54px); line-height: 1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--cta); opacity: 0; transition: opacity .45s var(--ease); white-space: nowrap; }
.ld-tr__p.is-on { opacity: 1; }
.ld-tr__d { position: absolute; transform: translateX(-50%); font-size: 15px; line-height: 1.2; font-weight: 500; color: var(--s-fg); white-space: nowrap; }
.ld-tr__g { position: absolute; right: 6px; padding: 3px 8px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px #111, 0 6px 16px -8px rgb(0 0 0 / .35); font-size: 15px; line-height: 1.2; font-weight: 500; color: #111; white-space: nowrap; opacity: 0; transition: opacity .5s var(--ease) .3s; }
.ld-tr__g.is-on { opacity: 1; }

/* ---------- 26 l7-how: the Ads Manager ad set ---------- */
.ld-amx .mx-vis { display: grid; align-items: center; }
.ld-ams__b2 { display: grid; gap: 16px; }
.ld-ams__do { margin: 0; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.42; font-weight: 500; color: var(--s-fg); }
.ld-am { height: min(100%, 640px); min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-radius: 8px; background: #fff; color: #1c1e21; font-size: 15px; line-height: 1.3;
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 30px 64px -34px rgb(0 0 0 / .35); }
.ld-am__bar { display: block; flex: none; height: 8px; width: var(--w); max-width: 100%; border-radius: 4px; background: #DADDE1; }
.ld-am__bar.is-dk { height: 10px; background: #BCC0C4; }
.ld-am__sp { flex: 1; }
.ld-am__top { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-bottom: 1px solid #E4E6EB; }
.ld-am__logo { flex: none; width: 26px; height: 26px; border-radius: 6px; background: #0866FF; }
.ld-am__btn { flex: none; width: 30px; height: 30px; border-radius: 6px; background: #F0F2F5; }
.ld-am__av { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #E4E6EB; }
.ld-am__body { display: grid; grid-template-columns: 48px minmax(140px, 24%) minmax(0, 1fr); min-height: 0; }
.ld-am__rail { display: grid; align-content: start; justify-items: center; gap: 14px; padding: 14px 0; border-right: 1px solid #E4E6EB; }
.ld-am__ico { display: block; flex: none; width: 20px; height: 20px; border-radius: 5px; background: #E4E6EB; }
.ld-am__rail .is-on { background: #0866FF; }
.ld-am__tree { display: grid; align-content: start; padding: 10px 0; background: #F7F8FA; border-right: 1px solid #E4E6EB; min-width: 0; overflow: hidden; }
.ld-am__node { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px; min-width: 0; }
.ld-am__node .ld-am__ico { width: 16px; height: 16px; border-radius: 4px; }
.ld-am__ico--c { background: #BCC0C4; }
.ld-am__ico--s { background: #8FB6FF; }
.ld-am__ico--a { background: #D6D9DE; }
.ld-am__node.is-sel { background: #E7F0FF; box-shadow: inset 3px 0 0 #0866FF; }
.ld-am__node.is-sel .ld-am__bar { background: #8FB6FF; }
.ld-am__node.is-ad { padding-left: 30px; }
.ld-am__main { display: grid; min-width: 0; min-height: 0; padding: 16px; background: #F0F2F5; overflow: hidden; }
.ld-am__main > * { grid-area: 1 / 1; min-height: 0; }
.ld-am__foot { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; border-top: 1px solid #E4E6EB; }
.ld-am__pub { flex: none; width: 92px; height: 32px; border-radius: 6px; background: #0866FF; }
/* beat 1: the editor */
.ld-am__edit { display: grid; gap: 12px; align-content: start; }
.ld-am__sec { display: grid; gap: 18px; padding: 16px 18px 18px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.ld-am__sec--ghost { gap: 12px; }
@media (max-height: 820px) { .ld-am__sec--3 { display: none; } }
.ld-am__sh { display: flex; align-items: center; gap: 10px; }
.ld-am__ico--sec { width: 22px; height: 22px; border-radius: 50%; background: #E7F0FF; box-shadow: inset 0 0 0 6px #8FB6FF; }
.ld-am__field { display: grid; gap: 8px; }
.ld-am__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.ld-am__k { font-size: 15px; font-weight: 600; color: #1c1e21; }
.ld-am__tv { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; font-variant-numeric: tabular-nums; color: #1c1e21; }
.ld-ams .ld-am__range[type="range"] { --p: 28.6%; height: 26px; }
.ld-ams .ld-am__range[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #0866FF var(--p), #DADDE1 var(--p)); }
.ld-ams .ld-am__range[type="range"]::-moz-range-track { background: linear-gradient(90deg, #0866FF var(--p), #DADDE1 var(--p)); }
.ld-ams .ld-am__range[type="range"]::-webkit-slider-thumb { box-shadow: 0 0 0 2px #0866FF, 0 3px 8px rgb(0 0 0 / .22); }
.ld-ams .ld-am__range[type="range"]::-moz-range-thumb { box-shadow: 0 0 0 2px #0866FF, 0 3px 8px rgb(0 0 0 / .22); }
.ld-am__input { position: relative; display: flex; align-items: center; height: 56px; padding: 0 14px; border-radius: 6px; box-shadow: inset 0 0 0 1px #CCD0D5; background: #fff; }
.ld-am__fig { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: #1c1e21; }
.ld-am__to { font-size: 15px; font-weight: 400; letter-spacing: 0; color: #606770; vertical-align: .3em; }
.ld-am__fig [hidden] { display: none; }
.ld-am__caret { width: 1.5px; height: 26px; margin-left: 4px; background: #0866FF; animation: ld-blink 1.1s steps(1) infinite; }
@keyframes ld-blink { 50% { opacity: 0; } }
.ld-am__help { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 15px; font-weight: 500; color: #1c1e21; }
.ld-am__info { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #0866FF; box-shadow: inset 0 0 0 5px #E7F0FF; }
.ld-am__help .ld-am__via { color: #606770; }
/* beat 2: the ads and what each one spent */
.ld-am__tbl { display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.ld-am__set { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #E4E6EB; }
.ld-am__set .ld-am__ico { width: 18px; height: 18px; border-radius: 4px; }
.ld-am__setn { font-size: 16px; font-weight: 600; white-space: nowrap; }
.ld-am__ad, .ld-am__hd { display: grid; grid-template-columns: 28px 26px minmax(0, .9fr) minmax(0, 1.5fr); align-items: center; gap: 10px; padding: 0 14px; min-height: 0; }
.ld-am__hd { height: 34px; background: #F7F8FA; border-bottom: 1px solid #E4E6EB; }
.ld-am__hn { grid-column: 1 / 4; }
.ld-am__hk { font-size: 14.5px; font-weight: 600; color: #606770; white-space: nowrap; }
.ld-am__rows { display: grid; grid-template-rows: repeat(20, minmax(0, 1fr)); min-height: 0; }
.ld-am__ad { border-bottom: 1px solid #F0F2F5; }
.ld-am__tog { position: relative; display: block; width: 26px; height: 15px; border-radius: 8px; background: #0866FF; }
.ld-am__tog b { position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.ld-am__th { display: block; width: 22px; height: 22px; border-radius: 4px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 55%, #fff) 0 24%, transparent 25%), radial-gradient(circle, var(--c) 1.3px, transparent 1.7px) 0 1px / 4px 4px, color-mix(in srgb, var(--c) 18%, #fff); box-shadow: inset 0 0 0 1px #E4E6EB; }
.ld-am__nm { min-width: 0; }
.ld-am__spent { min-width: 0; }
.ld-am__track { position: relative; display: block; height: 11px; }
.ld-am__sf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; --dot: #B9B6AF;
  background: radial-gradient(circle, var(--dot) 1.4px, transparent 1.8px) 0 0 / 4px 4px, color-mix(in srgb, var(--dot) 14%, transparent); transition: width 1.4s var(--ease) calc(var(--k) * 35ms); }
.ld-am__sf.is-top { --dot: var(--cta); }
.ld-am__sf.is-mid { --dot: #3b3d42; }
.ld-am.is-spent .ld-am__sf { width: calc(var(--v) * 74%); }
.ld-am__sv { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: #1c1e21; opacity: 0; transition: opacity .4s, left 1.4s var(--ease) calc(var(--k) * 35ms); }
.ld-am.is-spent .ld-am__sv { opacity: 1; left: calc(var(--v) * 74% + 8px); }
.ld-am.is-instant .ld-am__sf, .ld-am.is-instant .ld-am__sv { transition: none; }
.ld-am.is-tight .ld-am__th { display: none; }
.ld-am.is-tight .ld-am__ad, .ld-am.is-tight .ld-am__hd { grid-template-columns: 24px minmax(0, .8fr) minmax(0, 1.6fr); gap: 8px; }
.ld-am.is-tight .ld-am__hn { grid-column: 1 / 3; }
.ld-am.is-tight .ld-am__tog { width: 22px; height: 12px; }
.ld-am.is-tight .ld-am__tog b { width: 8px; height: 8px; }
.ld-am.is-tight .ld-am__track { height: 8px; }
.ld-am.is-thin .ld-am__ad { border-bottom: 0; }
.ld-am.is-thin .ld-am__nm .ld-am__bar { height: 4px; }
.ld-am.is-thin .ld-am__tog { height: 8px; width: 16px; }
.ld-am.is-thin .ld-am__tog b { display: none; }
.ld-am.is-thin .ld-am__track { height: 6px; }

/* ---------- 27 l8-why: the staircase and the ribbon ---------- */
.ld-srx .mx-vis { display: grid; }
.ld-sr__vis { display: grid; grid-template-rows: auto auto; align-content: center; gap: 8px; min-height: 0; height: 100%; }
.ld-sr__caps { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 4px 24px; }
.ld-sr__foot { display: grid; gap: 6px; justify-items: start; }
.ld-sr__t { margin: 0; max-width: 22em; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.3; font-weight: 500; color: var(--ink); }
.ld-sr__t .mx-src { font-weight: 400; }
.ld-sr__fig .ld-sr__t--b { position: absolute; z-index: 1; padding: 3px 7px; border-radius: 3px; background: rgb(255 255 255 / .93); box-shadow: 0 1px 2px rgb(0 0 0 / .08); line-height: 1.25; }
.ld-sr__by.is-wrap .ld-sep { display: none; }
.ld-sr__by.is-wrap .ld-nb { display: block; }
.ld-sr__by { margin: 0; font-size: 15px; line-height: 1.35; color: var(--s-muted); }
.ld-sr__tag { font-size: 15px; color: var(--s-muted); }
.ld-sr__fig { position: relative; min-height: 0; }
.ld-sr__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.ld-sr__axis { stroke: #CFCCC5; stroke-width: 1; }
.ld-sr__ticks path { stroke: #CFCCC5; stroke-width: 1; }
.ld-sr__top { fill: #EEECE7; }
.ld-sr__edge { stroke: #111; stroke-width: 1.5; fill: none; }
.ld-sr__lbl { font: 500 calc(var(--k, 1) * var(--fs, 16px)) var(--font-sans); fill: var(--ink); }
.ld-sr__lbl--r { fill: #C2561A; }
.ld-sr__blk { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .85s cubic-bezier(.2, .9, .25, 1.12) calc(.25s + var(--i) * .3s); }
.ld-sr--a .ld-sr__blk { transform: none; }
.ld-sr__lbl { opacity: 0; transition: opacity .5s 1.4s; }
.ld-sr--a .ld-sr__lbl { opacity: 1; }
.ld-sr__glow { opacity: .42; }
.ld-sr__hl { fill: none; stroke: #FFF1E6; stroke-width: 1.4; stroke-linecap: round; opacity: .9; }
.ld-sr__wipe { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
.ld-sr__pt { fill: #fff; opacity: 0; transition: opacity .6s; }
.ld-sr__rib--a .ld-sr__wipe { transition: transform 1.9s cubic-bezier(.45, 0, .2, 1) .35s; }
.ld-sr--a .ld-sr__rib--a .ld-sr__wipe { transform: none; }
.ld-sr--a .ld-sr__rib--a .ld-sr__pt { opacity: .95; transition-delay: 2.1s; }
/* beat 2 (the class lands once the view has widened): the jump rises, the ribbon tears and sags */
.ld-sr .ld-sr__jump .ld-sr__blk { transform: scaleY(0); transition: transform .5s cubic-bezier(.3, 1.5, .4, 1) .05s; }
.ld-sr--b .ld-sr__jump .ld-sr__blk { transform: none; }
.ld-sr__rib--b .ld-sr__wipe { transition: transform 1.2s cubic-bezier(.3, .2, .3, 1) .5s; }
.ld-sr--b .ld-sr__rib--b .ld-sr__wipe { transform: none; }
.ld-sr--b .ld-sr__rib--b .ld-sr__pt { opacity: .7; transition-delay: 1.6s; }
.ld-sr__flash { opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.ld-sr--b .ld-sr__flash { animation: ld-flash 1s ease-out .3s 1 both; }
@keyframes ld-flash { 0% { opacity: 0; transform: scale(.4); } 18% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
.ld-sr__bit { fill: var(--cta); opacity: 0; transform-box: fill-box; transform-origin: center; transition: transform .9s cubic-bezier(.2, .8, .3, 1) calc(.35s + var(--k) * 30ms), opacity .3s .35s; }
.ld-sr--b .ld-sr__bit { opacity: .75; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
.ld-sr__m circle { fill: var(--cta); stroke: #fff; stroke-width: 2; }
.ld-sr__m text { font: 500 calc(var(--k, 1) * var(--fs, 16px)) var(--font-sans); font-variant-numeric: tabular-nums; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: calc(var(--k, 1) * 4px); stroke-linejoin: round; }
.ld-sr__m { opacity: 0; transition: opacity .5s; }
.ld-sr__m--hi { transition-delay: .1s; }
.ld-sr__m--lo { transition-delay: 1.5s; }
.ld-sr--b .ld-sr__m { opacity: 1; }
.ld-sr--instant .ld-sr__blk, .ld-sr--instant .ld-sr__wipe, .ld-sr--instant .ld-sr__pt, .ld-sr--instant .ld-sr__bit, .ld-sr--instant .ld-sr__m, .ld-sr--instant .ld-sr__lbl { transition: none !important; }
.ld-sr--instant .ld-sr__flash { animation: none; }

/* ---------- 28 l8-proof: the winners' flight paths ---------- */
.ld-globe .ld-scrim { background: linear-gradient(180deg, rgb(5 5 6 / .76) 0, rgb(5 5 6 / 0) 24%), linear-gradient(90deg, rgb(5 5 6 / .82) 0, rgb(5 5 6 / .45) 28%, rgb(5 5 6 / 0) 46%), linear-gradient(0deg, rgb(5 5 6 / .55) 0, rgb(5 5 6 / 0) 24%); }
.ld-globe .mx-side { max-width: 28em; }
.ld-gl__stat { margin: 0 0 8px; font-size: clamp(19px, 1.6vw, 26px); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.ld-gl__n { font-weight: 500; color: var(--cta); font-variant-numeric: tabular-nums; }
.ld-globe .ld-pl { font-weight: 500; color: #fff; }
.ld-globe .ld-pl--w { box-shadow: inset 0 0 0 1px rgb(255 127 50 / .8), 0 0 18px -6px rgb(255 127 50 / .8); }
.ld-globe .ld-pl--n { box-shadow: inset 0 0 0 1px rgb(255 199 158 / .75), 0 0 18px -6px rgb(255 199 158 / .7); }

/* ---------- 29 l8-how: the remix tree ---------- */
.ld-tree .ld-scrim { background: linear-gradient(180deg, rgb(5 5 6 / .76) 0, rgb(5 5 6 / 0) 24%), linear-gradient(90deg, rgb(5 5 6 / .84) 0, rgb(5 5 6 / .45) 28%, rgb(5 5 6 / 0) 46%), linear-gradient(0deg, rgb(5 5 6 / .6) 0, rgb(5 5 6 / 0) 26%); }
.ld-tree .mx-side { max-width: 28em; gap: 12px; }
.ld-tree .ld-swap > div { display: grid; gap: 10px; }
.ld-tree__src { margin: 0; font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--s-muted); }
.ld-tree__src .mx-src { opacity: 1; }
.ld-tree .ld-tk { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: #fff; }
.ld-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.ld-tree .ld-tk--dim { color: rgb(255 255 255 / .62); font-weight: 400; background: rgb(5 5 6 / .6); }

/* desktop frames keep side text out of the 100 px bottom zone (the shared padding is 88 px on short desktop frames) */
.deck[data-layout="desktop"] .ld-scene .scene__inner.mx { padding-bottom: max(clamp(88px, 11vh, 132px), calc(var(--hud-bottom, 100px) + 4px)); }

/* ---------- compact: landscape below 960 x 620 ---------- */
@media (orientation: landscape) and (max-width: 959px), (orientation: landscape) and (max-height: 619px) {
  .ld-scene .ld-l3 { font-size: 14.5px; padding: 4px 8px; }
  .ld-spot .mx-side, .ld-globe .mx-side, .ld-tree .mx-side { max-width: min(25em, 46vw); }
  .ld-tree .mx-side { gap: 6px; }
  .ld-tree .ld-swap > div { gap: 4px; }
  .ld-gl__stat { font-size: 17px; margin-bottom: 2px; }

  .ld-tr__lab { font-size: 16px; }
  .ld-tr__p { font-size: clamp(24px, 3.4vw, 32px); }

  .ld-ams__b2 { gap: 8px; }
  .ld-ams__do { font-size: 15px; }
  .ld-am__body { grid-template-columns: minmax(0, 1fr); }
  .ld-am__rail, .ld-am__tree { display: none; }
  .ld-am__top { height: 34px; gap: 8px; padding: 0 10px; }
  .ld-am__logo { width: 20px; height: 20px; }
  .ld-am__btn, .ld-am__av { width: 22px; height: 22px; }
  .ld-am__foot { display: none; }
  .ld-am__main { padding: 8px; }
  .ld-am__sec { gap: 8px; padding: 10px 12px; }
  .ld-am__sec--ghost { display: none; }
  .ld-am__sh { display: none; }
  .ld-am__field { gap: 4px; }
  .ld-am__k { font-size: 14.5px; }
  .ld-am__tv { font-size: 17px; }
  .ld-am__input { height: 40px; padding: 0 10px; }
  .ld-am__fig { font-size: 22px; }
  .ld-am__caret { height: 20px; }
  .ld-am__help { font-size: 14.5px; }
  .ld-am__set { padding: 6px 10px; }
  .ld-am__setn { font-size: 15px; }
  .ld-am__hd { height: 26px; }
  .ld-am__ad, .ld-am__hd { padding: 0 10px; }

}
@media (orientation: landscape) and (max-width: 959px), (orientation: landscape) and (max-height: 619px) {
  .ld-sr__vis { gap: 4px; }
  .ld-sr__caps { gap: 2px 14px; }
  .ld-sr__foot { gap: 2px; }
  .ld-sr__t { font-size: 14.5px; line-height: 1.25; }
  .ld-sr__by, .ld-sr__tag { font-size: 14.5px; line-height: 1.25; }
}
@media (orientation: landscape) and (max-height: 459px) {
  .ld-srx { --fs: 14.5px; }
  .scene .ld-srx { grid-template-columns: minmax(0, .29fr) minmax(0, .71fr); }
  .ld-tr__p { font-size: 20px; }
  .ld-tr .mx-vis { gap: 4px; }
  .ld-tr__cap .ld-tr__lab { font-size: 15px; }
  .ld-spot .ld-day { padding: 2px 6px; }
  .ld-am__top { display: none; }
  .ld-am__main { padding: 6px; }
  .ld-am__sec { gap: 4px; padding: 7px 10px; }
  .ld-ams .ld-am__range[type="range"] { height: 22px; }
  .ld-am__input { height: 34px; }
  .ld-am__fig { font-size: 20px; }
  .ld-am__info { display: none; }
  .ld-am__help { gap: 2px 6px; line-height: 1.2; }
}

/* ---------- phone: portrait under 760 ---------- */
@media (max-width: 759px) and (orientation: portrait) {
  .ld-scene .ld-l3 { font-size: 14.5px; padding: 4px 8px; }
  /* round 5: the text sits under the title, so the scrim darkens the top and leaves the 3D below clear */
  .ld-spot .ld-scrim, .ld-globe .ld-scrim, .ld-tree .ld-scrim { background: linear-gradient(180deg, rgb(5 5 6 / .86) 0, rgb(5 5 6 / .78) 36%, rgb(5 5 6 / 0) 52%); }
  .ld-spot .mx-side, .ld-globe .mx-side, .ld-tree .mx-side { max-width: none; }
  .ld-tree .mx-side { gap: 6px; }
  .ld-tree .ld-swap > div { gap: 4px; }
  .ld-gl__stat { font-size: 17px; margin-bottom: 2px; }

  .ld-srx { --fs: 14.5px; }
  .ld-sr__vis { gap: 4px; }
  .ld-sr__caps { gap: 2px 12px; }
  .ld-sr__foot { gap: 2px; }
  .ld-sr__t, .ld-sr__by, .ld-sr__tag { font-size: 14.5px; line-height: 1.25; }
  .ld-tr .mx-side { gap: 4px; }
  .ld-tr__lab { font-size: 16px; max-width: none; }
  .ld-tr__p { font-size: 24px; }

  .ld-ams__b2 { gap: 8px; }
  .ld-ams__do { font-size: 15px; }
  .ld-am__body { grid-template-columns: minmax(0, 1fr); }
  .ld-am__rail, .ld-am__tree, .ld-am__foot, .ld-am__sec--ghost, .ld-am__sh { display: none; }
  .ld-am__top { height: 30px; gap: 8px; padding: 0 10px; }
  .ld-am__logo { width: 18px; height: 18px; }
  .ld-am__btn, .ld-am__av { width: 20px; height: 20px; }
  .ld-am__main { padding: 6px; }
  .ld-am__sec { gap: 6px; padding: 9px 10px; }
  .ld-am__field { gap: 4px; }
  .ld-am__k { font-size: 14.5px; }
  .ld-am__tv { font-size: 18px; }
  .ld-ams .ld-am__range[type="range"] { height: 24px; }
  .ld-am__input { height: 40px; padding: 0 10px; }
  .ld-am__fig { font-size: 22px; }
  .ld-am__info { display: none; }
  .ld-am__help { font-size: 14.5px; gap: 2px 6px; line-height: 1.2; }
  .ld-am__set { padding: 7px 10px; }
  .ld-am__setn { font-size: 15px; }
  .ld-am__hd { height: 28px; }
  .ld-am__ad, .ld-am__hd { padding: 0 10px; }


}

/* tall phones (390 x 844): the charts keep their shape instead of stretching, and the editor shows its other sections */
@media (max-width: 759px) and (orientation: portrait) and (min-height: 720px) {
  .ld-am__sec--ghost, .ld-am__sh { display: flex; }
  .ld-am__sec--ghost { display: grid; }
  .ld-am__sec { gap: 12px; padding: 12px; }
}
