/* Saving Throw 2026, v4 long read (D-084). Tokens from styles.css; three faces only:
   Raleway (--serif) headlines, Fira Sans text and figures, Jersey 10 (--px) kickers and
   big scene numbers. Page accent is ice; no gold frames or warm glows (owner, 2026-11-05). */

.st-page { --acc: var(--ice); --acc-2: var(--ice-bright); --acc-soft: var(--ice-soft); --acc-faint: var(--ice-faint);
  background: var(--obsidian); color: var(--body); font-family: var(--sans); }
.st-page main { padding-bottom: var(--space-8); }

/* ------------------------------------------------------------ hero: wall of store art */
.st-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: var(--obsidian); min-height: clamp(460px, 62vh, 640px); display: flex; align-items: flex-end; }
.st-wall { position: absolute; inset: -10% -6% -10% 34%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-7deg); opacity: .9; }
.st-wall-c { display: flex; flex-direction: column; gap: 14px; animation: st-drift 70s linear infinite; }
.st-wall-c:nth-child(2) { animation-duration: 90s; animation-direction: reverse; }
.st-wall-c:nth-child(3) { animation-duration: 80s; }
.st-wall span { display: block; position: relative; }
.st-wall img { display: block; width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; filter: grayscale(.85) brightness(.5) contrast(1.05);
  animation: st-lit 26s ease-in-out infinite; animation-delay: calc(var(--d) * -2.1s); }
.st-wall span::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 2px, transparent 2px 4px); pointer-events: none; }
@keyframes st-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes st-lit-m { 0%, 78%, 100% { filter: grayscale(.45) brightness(.72) contrast(1.05); } 86%, 92% { filter: grayscale(0) brightness(1) contrast(1); } }
@keyframes st-lit { 0%, 78%, 100% { filter: grayscale(.85) brightness(.5) contrast(1.05); } 86%, 92% { filter: grayscale(0) brightness(.95) contrast(1); } }
.st-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--obsidian) 30%, rgba(6,7,8,.82) 50%, rgba(6,7,8,.25) 78%, rgba(6,7,8,.55)),
              linear-gradient(0deg, var(--obsidian) 0%, transparent 35%); }
.st-hero-in { position: relative; z-index: 1; width: 100%; max-width: var(--w-content); margin: 0 auto; padding: clamp(56px, 9vw, 120px) 16px clamp(40px, 6vw, 72px); }
.st-kick { font-family: var(--px); font-size: 1.45rem; color: var(--acc); margin: 22px 0 10px; letter-spacing: .03em; }
.st-hero h1 { font-family: var(--serif); font-weight: 800; color: var(--text); font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 22px; max-width: 13ch; }
.st-dek { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--body); max-width: 34em; margin: 0 0 22px; }
.st-by { color: var(--muted); font-size: .9rem; margin: 0; }

/* ------------------------------------------------------------ contents */
.st-toc { max-width: var(--w-prose); margin: clamp(36px, 5vw, 56px) auto 0; padding: 0 16px; }
.st-toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px solid var(--line); }
.st-toc li { border-bottom: 1px solid var(--line-soft); }
.st-toc a { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; color: var(--body); text-decoration: none; font-size: .98rem; line-height: 1.35; }
.st-toc a span { font-family: var(--px); color: var(--acc); font-size: 1.25rem; min-width: 1.2em; }
.st-toc a:hover { color: var(--acc-2); }

/* ------------------------------------------------------------ reading column */
.st-art { max-width: var(--w-prose); margin: 0 auto; padding: 0 16px; }
.st-art p, .st-art li { font-size: clamp(1.06rem, 1.25vw, 1.16rem); line-height: 1.78; color: var(--body); }
.st-art p { margin: 0 0 1.15em; }
.st-art strong { color: var(--text); font-weight: 600; }
.st-art a { color: var(--acc-2); text-underline-offset: 3px; }
.st-intro { padding-top: clamp(40px, 6vw, 64px); }
.st-lede { font-size: clamp(1.2rem, 1.7vw, 1.42rem) !important; line-height: 1.62 !important; color: var(--text) !important; }
.st-lede::first-letter, .st-first::first-letter { font-family: var(--serif); font-weight: 800; color: var(--acc); float: left; font-size: 3.6em; line-height: .82; margin: .06em .1em 0 0; }
.st-lede::first-letter { font-size: 3.2em; }

.st-ch { max-width: var(--w-prose); margin: clamp(64px, 9vw, 110px) auto 28px; padding: 0 16px; }
.st-ch-k { font-family: var(--px); color: var(--acc); font-size: 1.4rem; line-height: 1; margin: 0 0 10px; letter-spacing: .03em; }
.st-ch h2 { font-family: var(--serif); font-weight: 800; color: var(--text); font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.st-h3 { font-family: var(--serif); font-weight: 700; color: var(--text); font-size: clamp(1.15rem, 1.7vw, 1.36rem); line-height: 1.25; margin: 1.9em 0 .6em; }

/* game cards */
.st-games { display: grid; gap: 14px; margin-top: 24px; }
.st-games.n2 { grid-template-columns: 1fr 1fr; }
.st-games.n1 { grid-template-columns: minmax(0, 360px); }
.st-game { margin: 0; }
.st-game a { display: block; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.st-game img { display: block; width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; transition: transform .5s var(--ease-out), filter .3s; filter: saturate(.9); }
.st-game a:hover img { transform: scale(1.03); filter: saturate(1.1); }
.st-game figcaption { margin-top: 8px; font-size: .86rem; line-height: 1.35; color: var(--muted); }
.st-game figcaption b { display: block; color: var(--text); font-weight: 600; font-size: .95rem; }

.st-ref { font-size: .68em; vertical-align: super; line-height: 0; margin-left: 2px; color: var(--acc) !important; text-decoration: none; font-variant-numeric: tabular-nums; }
.st-ref + .st-ref { margin-left: 3px; }
.st-ref:hover { color: var(--acc-2) !important; text-decoration: underline; }
.st-post { color: var(--acc-2) !important; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--acc-soft); }
.st-post::after { content: "↗"; font-size: .72em; margin-left: 2px; vertical-align: super; line-height: 0; }
.st-post:hover { text-decoration-style: solid; }

/* sidebar */
.st-side { margin: 1.9em 0; padding: 20px 22px 6px; background: var(--panel); border-left: 3px solid var(--acc); }
.st-side-k { font-family: var(--px); color: var(--acc); font-size: 1.35rem !important; line-height: 1 !important; margin: 0 0 14px !important; }
.st-side-g { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.st-side-g .st-game figcaption { font-size: .8rem; }
.st-side p { font-size: 1.02rem; line-height: 1.65; }
.st-side-s { color: var(--muted) !important; font-size: .95rem !important; }

/* ------------------------------------------------------------ scenes */
.st-scene { margin: clamp(48px, 7vw, 88px) auto; padding: 0 16px; max-width: 960px; }
.st-scene.is-wide { max-width: var(--w-content); }
.st-scene-in { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 44px) clamp(18px, 4vw, 48px); overflow: hidden; }
.st-scene-in::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 16px 16px; }
.st-sc-k { position: relative; font-family: var(--px); color: var(--acc); font-size: 1.3rem; margin: 0 0 6px; letter-spacing: .03em; }
.st-sc-h { position: relative; font-family: var(--serif); font-weight: 700; color: var(--text); font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 28px; max-width: 30ch; }
.st-sc-cap { position: relative; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .88rem; line-height: 1.5; }
.st-sc-cap .st-ref { color: var(--acc) !important; }

.st-key { position: relative; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
.st-key span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; }
.k-ice::before { background: var(--ice); } .k-emerald::before { background: var(--emerald); } .k-violet::before { background: var(--violet); } .k-steel::before { background: var(--steel-dim); }

.st-col, .st-sp-fill, .st-sp-drain, .st-hb span, .st-stack span, .st-tl li, .st-path li, .st-walker { transition-timing-function: var(--ease-out); }

/* scene: Ortica */
.st-ortica { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 64px); }
.st-g-art { display: block; width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; border: 1px solid var(--line); margin-bottom: 18px; }
.st-g-bars { height: 220px; display: flex; align-items: flex-end; gap: 14px; border-bottom: 2px solid var(--line); padding: 0 6%; margin-top: 60px; }
.st-col { position: relative; flex: 1; height: var(--h); transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s; border-radius: 3px 3px 0 0; }
.st-col.is-ice { background: var(--ice); } .st-col.is-emerald { background: var(--emerald); transition-delay: .35s; }
.st-col-v { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 6px; font-family: var(--px); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; color: var(--text); white-space: nowrap; }
.st-col-l { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-size: .74rem; font-weight: 600; color: var(--obsidian); line-height: 1.15; padding: 0 2px; }
.st-g-n { margin: 12px 0 0; font-weight: 600; color: var(--text); font-size: 1.02rem; text-align: center; }
.st-g-n small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 3px; }
.is-in .st-col { transform: scaleY(1); }

/* scene: Dino Party */
.st-split { position: relative; display: grid; gap: 26px; }
.st-sp-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 150px; gap: 18px; align-items: center; }
.st-sp-l { margin: 0; color: var(--text); font-weight: 600; }
.st-sp-l small { display: block; color: var(--muted); font-weight: 400; font-size: .84rem; }
.st-sp-track { position: relative; height: 26px; background: rgba(255,255,255,.04); display: flex; }
.st-sp-fill { height: 100%; width: var(--w); transform: scaleX(0); transform-origin: left; transition: transform 1.2s; }
.st-sp-fill.is-emerald { background: var(--emerald); } .st-sp-fill.is-ice { background: var(--ice); }
.st-sp-drain { height: 100%; width: var(--w); margin-left: 2px; background: repeating-linear-gradient(135deg, var(--crimson) 0 6px, rgba(255,92,114,.45) 6px 12px);
  opacity: 0; transform: translateX(-30px); transition: opacity .6s 1.3s, transform 1s 1.3s; }
.st-sp-v { margin: 0; color: var(--muted); font-size: .92rem; }
.st-sp-v b { font-family: var(--px); font-weight: 400; color: var(--text); font-size: 2.2rem; line-height: 1; margin-right: 2px; }
.is-in .st-sp-fill { transform: scaleX(1); } .is-in .st-sp-drain { opacity: 1; transform: translateX(0); }

/* scene: bars (Unity, mobile) */
.st-hbars { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.st-hbars li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.st-hbars li p { margin: 0; color: var(--body); font-size: .98rem; line-height: 1.4; }
.st-hv { white-space: nowrap; text-align: right; }
.st-hbars b { font-family: var(--px); font-weight: 400; color: var(--text); font-size: 2.3rem; line-height: 1; }
.st-hbars i, .st-mob-c i { font-style: normal; color: var(--muted); font-size: .9rem; margin-left: 2px; }
.st-hb { height: 14px; background: rgba(255,255,255,.04); }
.st-hb span { display: block; height: 100%; width: var(--w); background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform 1.1s; transition-delay: calc(var(--i, 0) * 140ms); }
.st-hbars li:nth-child(1) .st-hb span { transition-delay: 0ms; } .st-hbars li:nth-child(2) .st-hb span { transition-delay: 140ms; } .st-hbars li:nth-child(3) .st-hb span { transition-delay: 280ms; }
.is-in .st-hb span { transform: scaleX(1); }

/* scene: timeline with store art */
.st-tl { position: relative; list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.st-tl li { position: relative; display: grid; grid-template-columns: 76px 150px minmax(0, 1fr); gap: 18px; align-items: start; padding: 0 0 22px; opacity: 0; transform: translateX(-14px);
  transition: opacity .6s, transform .7s; transition-delay: calc(var(--i) * 220ms); }
.st-tl li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; background: var(--crimson); box-shadow: 0 0 0 4px var(--panel); }
.st-tl li:last-child { padding-bottom: 0; }
.st-tl time { font-family: var(--px); color: var(--acc); font-size: 1.45rem; line-height: 1.05; }
.st-tl-art { display: block; width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; border: 1px solid var(--line); filter: grayscale(.4); }
.st-tl-art.is-none { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, var(--panel-2) 0 8px, var(--panel) 8px 16px); color: var(--muted); font-size: .78rem; }
.st-tl p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--body); }
.st-tl b { color: var(--text); margin-right: 4px; }
.is-in .st-tl li { opacity: 1; transform: none; }

/* scene: Tunnels flow */
.st-flow { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 0; align-items: stretch; min-height: 360px; }
.st-flow-l { display: flex; flex-direction: column; justify-content: center; padding-right: 16px; }
.st-flow b { font-family: var(--px); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: .95; color: var(--text); }
.st-flow span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; margin-top: 4px; }
.st-flow-svg { width: 100%; height: 360px; display: block; }
.fl-src { fill: var(--ice); }
.fl-ans, .fl-dst { fill: var(--emerald); }
.fl-ans { fill-opacity: .55; }
.fl-g { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease-out) .2s; }
.is-in .fl-g { clip-path: inset(0 0 0 0); }
.st-flow-r { display: flex; flex-direction: column; justify-content: space-between; padding: 0 0 40px 16px; }
.st-flow-r p { margin: 0; }
.st-flow-r .is-ans b { color: var(--emerald); }
.st-flow-r .is-lost b { color: var(--steel); }
.st-flow-r p { opacity: 0; transition: opacity .6s 1.6s; }
.is-in .st-flow-r p { opacity: 1; }

/* scene: GAS */
.st-stack { position: relative; display: flex; gap: 2px; height: 64px; }
.st-stack span { width: var(--w); display: flex; align-items: center; padding-left: 12px; transform: scaleX(0); transform-origin: left; transition: transform .9s; }
.st-stack span:nth-child(2) { transition-delay: .5s; } .st-stack span:nth-child(3) { transition-delay: 1s; }
.st-stack .is-violet { background: var(--violet); } .st-stack .is-ice { background: var(--ice); } .st-stack .is-steel { background: var(--steel-dim); }
.st-stack b { font-family: var(--px); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--obsidian); }
.st-stack .is-steel b { color: var(--text); }
.is-in .st-stack span { transform: scaleX(1); }

/* scene: Next Fest crowd */
.st-crowd { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; }
.st-crowd-hud { display: flex; flex-direction: column; gap: 18px; }
.st-crowd-hud p { margin: 0; color: var(--muted); font-size: .95rem; }
.st-crowd-hud b { font-family: var(--px); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: .95; color: var(--text); font-variant-numeric: tabular-nums; margin-right: 6px; }
.st-crowd-hud small { display: block; font-size: .88rem; color: var(--acc); margin-top: 4px; }
.st-crowd-you { display: flex; align-items: center; gap: 8px; }
.st-crowd-you i { width: 10px; height: 10px; background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-soft); }
.st-crowd-cv { display: block; width: 100%; height: 420px; }
.st-crowd-key { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.st-crowd-key span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; background: var(--c); }
.st-crowd-ns { color: var(--muted); }

/* scene: mobile */
.st-mob { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 5vw, 56px); }
.st-mob-c b { font-family: var(--px); font-weight: 400; color: var(--text); font-size: clamp(3.4rem, 7vw, 5rem); line-height: .9; }
.st-mob-c i { font-size: 1.3rem; }
.st-mob-c .st-hb { margin: 12px 0; }
.st-mob-c .st-hb span { background: var(--ice); }
.st-mob-c:nth-child(2) .st-hb span { transition-delay: .3s; }
.st-mob-c p { margin: 0; color: var(--body); font-size: 1rem; line-height: 1.5; }

/* scene: path */
.st-path { position: relative; padding-top: 58px; }
.st-path::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 92px; border-top: 3px dashed var(--line); }
.st-path ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.st-path li { text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s; transition-delay: calc(.4s + var(--i) * 450ms); }
.st-path a { display: block; color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; line-height: 1.35; }
.st-path a img { display: block; margin: 0 auto 12px; width: 52px; height: 52px; padding: 10px; background: var(--panel); border: 2px solid var(--acc); image-rendering: pixelated; }
.st-path a:hover { color: var(--acc-2); }
.st-walker { position: absolute; top: 0; left: 12.5%; transform: translateX(-50%); image-rendering: pixelated; transition: left 2.2s steps(22) .3s; }
.is-in .st-path li { opacity: 1; transform: none; }
.is-in .st-walker { left: 87.5%; }

/* ------------------------------------------------------------ signals table (wide) */
.st-wide { max-width: var(--w-content); margin: 0 auto; padding: 0 16px; }
.st-signs-w { margin-top: 8px; }
.st-signs { width: 100%; border-collapse: collapse; }
.st-signs th { text-align: left; font-weight: 500; color: var(--muted); font-size: .84rem; padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); }
.st-signs td { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.55; font-size: 1rem; color: var(--body); }
.st-signs td:first-child { width: 24%; color: var(--text); font-weight: 600; font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; }
.st-signs td:nth-child(2) { width: 20%; font-size: .92rem; }
.st-signs td:nth-child(2) a { color: var(--acc-2); text-decoration: none; border-bottom: 1px solid var(--acc-soft); }
.st-signs tr { transition: background .2s; }
.st-signs tbody tr:hover { background: var(--acc-faint); }

/* ------------------------------------------------------------ closing question */
.st-end { position: relative; margin: clamp(64px, 9vw, 110px) 0 0; padding: clamp(56px, 8vw, 96px) 16px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(60% 120% at 50% 0%, rgba(66,198,255,.07), transparent 70%), var(--obsidian-2); }
.st-end-in { max-width: 860px; margin: 0 auto; }
.st-end-k { font-family: var(--px); color: var(--acc); font-size: 1.4rem; margin: 0 0 14px; }
.st-end-q { font-family: var(--serif); font-weight: 800; color: var(--text); font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 24px; }
.st-end-t { font-size: 1.1rem; line-height: 1.75; color: var(--body); max-width: 40em; margin: 0 0 28px; }
.st-end-cta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; color: var(--muted); font-size: 1rem; }
.st-end-cta a { display: inline-block; padding: 11px 18px; background: var(--ice); color: var(--obsidian); font-weight: 600; text-decoration: none; }
.st-end-cta a:hover { background: var(--ice-bright); }

/* ------------------------------------------------------------ method + sources */
.st-notes { padding-top: clamp(48px, 7vw, 72px); }
.st-notes-h { font-family: var(--serif); font-weight: 800; color: var(--text); font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0 0 18px; }
.st-notes p { font-size: 1.02rem; line-height: 1.75; }
.st-srcw { margin-top: 28px; }
.st-srch { font-family: var(--px); font-weight: 400; color: var(--acc); font-size: 1.4rem; margin: 0 0 10px; }
.st-srch span { font-family: var(--sans); color: var(--muted); font-size: .86rem; margin-left: 10px; }
.st-srcs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.st-srcs td { padding: 9px 14px 9px 0; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--muted); line-height: 1.4; }
.st-srcs .c-n { width: 2.2em; color: var(--acc); font-variant-numeric: tabular-nums; }
.st-srcs .c-t a { color: var(--text); text-decoration: none; font-weight: 500; }
.st-srcs .c-t a::after { content: " ↗"; color: var(--muted-2); font-size: .85em; }
.st-srcs tr:hover .c-t a { color: var(--acc-2); }
.st-srcs tr:hover td { background: var(--acc-faint); }
.st-srcs .c-k, .st-srcs .c-d { white-space: nowrap; }
.st-srcs tr:target td { background: var(--acc-faint); }

/* ------------------------------------------------------------ reading bar */
.st-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; height: 3px; background: rgba(255,255,255,.05); opacity: 0; transition: opacity .3s; pointer-events: none; }
.st-bar.is-on { opacity: 1; }
.st-bar-fill { display: block; height: 100%; width: 100%; background: var(--ice); transform: scaleX(var(--p, 0)); transform-origin: left; }
.st-bar-ch { position: absolute; right: 12px; bottom: 9px; font-family: var(--px); font-size: 1.1rem; color: var(--acc); background: rgba(6,7,8,.88); padding: 2px 9px; border: 1px solid var(--line); }
.st-bar-ch:empty { display: none; }

/* ------------------------------------------------------------ widths */
@media (max-width: 1024px) {
  .st-srcs .c-p { display: none; }
}
@media (max-width: 820px) {
  /* D-085: brighter store-art wall on phones and tablets; desktop rules above untouched.
     Art reads clearly in the top third, the dark falls only behind the text block. */
  .st-hero { min-height: max(640px, 86vh); }
  .st-wall { inset: -12% -30% -12% -20%; opacity: .9; }
  .st-wall img { filter: grayscale(.45) brightness(.72) contrast(1.05); animation-name: st-lit-m; }
  .st-hero::after { background: linear-gradient(0deg, var(--obsidian) 0%, rgba(6,7,8,.94) 54%, rgba(6,7,8,.8) 68%, rgba(6,7,8,.15) 88%, rgba(6,7,8,.05) 100%); }
  .st-sp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .st-sp-track { grid-column: 1 / -1; order: 3; }
  .st-hbars li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .st-hbars .st-hb { grid-column: 1 / -1; order: 3; }
  .st-tl li { grid-template-columns: 70px minmax(0, 1fr); }
  .st-tl-art { grid-column: 2; max-width: 220px; }
  .st-tl p { grid-column: 2; }
  .st-flow { grid-template-columns: 100px minmax(0, 1fr) 150px; }
  .st-crowd { grid-template-columns: 1fr; }
  .st-signs thead { display: none; }
  .st-signs, .st-signs tbody, .st-signs tr, .st-signs td { display: block; width: auto !important; }
  .st-signs tr { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  .st-signs td { border: 0; padding: 0 0 6px; }
  .st-srcs .c-k { display: none; }
}
@media (max-width: 640px) {
  .st-toc ol { grid-template-columns: 1fr; }
  .st-games.n2, .st-side-g { grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-ortica { gap: 16px; }
  .st-g-bars { height: 170px; gap: 8px; padding: 0; }
  .st-col-l { display: none; }
  .st-flow { grid-template-columns: 1fr; min-height: 0; }
  .st-flow-l, .st-flow-r { padding: 0; }
  .st-flow-svg { height: 200px; margin: 12px 0; }
  .st-flow-r { flex-direction: row; gap: 18px; }
  .st-crowd { grid-template-columns: 1fr; }
  .st-crowd-cv { height: 320px; }
  .st-mob { grid-template-columns: 1fr; }
  .st-path ol { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .st-path::before, .st-walker { display: none; }
  .st-path { padding-top: 0; }
  .st-tl li { grid-template-columns: 1fr; gap: 6px; }
  .st-tl-art, .st-tl p { grid-column: 1; }
  .st-srcs .c-d { display: none; }
}

/* no JS or reduced motion: end states, no movement */
html:not(.js) .st-scene * { transition: none !important; }
html:not(.js) .st-col, html:not(.js) .st-sp-fill, html:not(.js) .st-hb span, html:not(.js) .st-stack span { transform: none; }
html:not(.js) .st-sp-drain, html:not(.js) .st-tl li, html:not(.js) .st-path li, html:not(.js) .st-flow-r p { opacity: 1; transform: none; }
html:not(.js) .fl-g { clip-path: none; }
html:not(.js) .st-walker { left: 87.5%; }
html:not(.js) .st-crowd-cv { display: none; }
@media (prefers-reduced-motion: reduce) {
  .st-wall-c, .st-wall img { animation: none; }
  .st-scene *, .st-walker { transition: none !important; }
}


/* D-088 · Saving Throw: a pixel key for the closing action, no frames on cards and art, no rules in the contents list */
.st-end-cta a {
  --face: var(--k2); --base: var(--k2b); --lip: 4px;
  position: relative; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; color: var(--k2-ink); padding: 12px 24px 17px;
  font-family: var(--px); font-size: 1.3rem; font-weight: 400; letter-spacing: 0.05em; line-height: 1.05; text-decoration: none;
  clip-path: polygon(0 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px)); background: linear-gradient(var(--face), var(--face)) 0 0 / 100% calc(100% - var(--lip)) no-repeat, repeating-linear-gradient(90deg, var(--base) 0 6px, transparent 6px 8px) 0 100% / 100% var(--lip) no-repeat;
  transition: --face 0.12s steps(2), --base 0.12s steps(2), --lip 0.08s steps(1), transform 0.12s steps(2), color 0.12s steps(2);
}
.st-end-cta a:hover:not(:disabled), .st-end-cta a:focus-visible { --face: var(--k2h); color: #fff; transform: translateY(-2px); background: linear-gradient(var(--face), var(--face)) 0 0 / 100% calc(100% - var(--lip)) no-repeat, repeating-linear-gradient(90deg, var(--base) 0 6px, transparent 6px 8px) 0 100% / 100% var(--lip) no-repeat; border: 0; }
.st-end-cta a:active:not(:disabled) { transform: translateY(2px); --lip: 1px; }
.st-end-cta a:focus-visible { outline: 2px solid #bff7ee; outline-offset: -5px; }
.st-end-cta a::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%); background: linear-gradient(105deg, transparent 0 40%, rgba(255, 255, 255, 0.30) 40% 52%, transparent 52% 100%); }
.st-end-cta a:hover:not(:disabled)::after, .st-end-cta a:focus-visible::after { animation: gleam 0.5s steps(9) 1; }
.st-end-cta a { --face: var(--k1); --base: var(--k1b); color: var(--k1-ink); background: linear-gradient(var(--face), var(--face)) 0 0 / 100% calc(100% - var(--lip)) no-repeat, repeating-linear-gradient(90deg, var(--base) 0 6px, transparent 6px 8px) 0 100% / 100% var(--lip) no-repeat; border: 0; }
.st-end-cta a:hover:not(:disabled), .st-end-cta a:focus-visible { --face: var(--k1h); color: var(--k1-ink); background: linear-gradient(var(--face), var(--face)) 0 0 / 100% calc(100% - var(--lip)) no-repeat, repeating-linear-gradient(90deg, var(--base) 0 6px, transparent 6px 8px) 0 100% / 100% var(--lip) no-repeat; }

.st-end-cta a { display: inline-block; text-decoration: none; }
.st-hero h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08; max-width: 15em; }   /* the pixel face is wider than Raleway was: keep the title on two or three lines */
.st-game a { border: 0; border-radius: 0; }
.st-scene-in { border: 0; border-radius: 0; }
.st-g-art, .st-tl-art { border: 0; border-radius: 0; }
.st-toc ol { border-top: 0; gap: 4px 28px; }
.st-toc li { border-bottom: 0; }
.st-toc li a { transition: background 0.12s steps(2), color 0.12s steps(2); padding-left: 8px; padding-right: 8px; }
.st-toc li a:hover { background: rgba(255, 255, 255, 0.05); }
