/* Would You Survive? — built from the concept art in /concept art:
   cool grey daylight UI, condensed uppercase display type (Oswald), hazard red call-to-action,
   cinematic dark scenes for play and results, survival green. */
@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --bg: #f4f5f6; --surface: #ffffff; --surface-2: #eceef0; --ink: #16181a; --muted: #50575d; --line: #dde1e4;
  --accent: #b8321a; --accent-ink: #ffffff; --accent-soft: #fbe6e1; --focus: #1f5fd6;
  --cta: #c9361a; --cta-hover: #b02e14;
  --good: #2c7a3a; --bad: #b3261e; --alive: #5ccf6b; --dead: #ff7a63;
  --night: #0f1113; --night-2: #1b1f22; --night-3: #262b2f; --night-ink: #f3f5f6; --night-muted: #b9c0c6; --night-line: #353b40;
  --radius: 10px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(15 17 19 / 6%), 0 6px 20px rgb(15 17 19 / 7%);
  --font-display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, system-ui, sans-serif;
  --wrap-wide: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0f1113; --surface: #171a1d; --surface-2: #22262a; --ink: #f2f4f5; --muted: #aeb5bb; --line: #30353a; --accent: #ff7a57; --accent-ink: #140804; --accent-soft: #3a1d15; --good: #6fd67d; --bad: #ff8a78; --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%); }
}
:root[data-theme="dark"] { --bg: #0f1113; --surface: #171a1d; --surface-2: #22262a; --ink: #f2f4f5; --muted: #aeb5bb; --line: #30353a; --accent: #ff7a57; --accent-ink: #140804; --accent-soft: #3a1d15; --good: #6fd67d; --bad: #ff8a78; --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%); }

/* Cinematic scope: the play screen is always dark, as in the concept art. */
body.playing, .cine {
  --bg: var(--night); --surface: var(--night-2); --surface-2: var(--night-3); --ink: var(--night-ink); --muted: var(--night-muted); --line: var(--night-line);
  --accent: #ff7a57; --accent-soft: #3a1d15; --good: #6fd67d; --bad: #ff8a78;
  color-scheme: dark;
}
body.playing { background: var(--night); color: var(--night-ink); }

body { background: var(--bg); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: .005em; }
h1 { text-transform: uppercase; }
.page-title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.2rem); line-height: 1; margin: .5rem 0 .4rem; }
.section-title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .03em; margin: 0; }
.section-head { margin: 2.25rem 0 .9rem; }
.section-head a { font-family: system-ui, sans-serif; font-weight: 700; font-size: .9rem; }
.eyebrow { font-family: var(--font-display); letter-spacing: .12em; }

/* buttons: hazard red with white text in both themes */
.btn { border-radius: 6px; font-weight: 700; }
.btn-primary { --b: var(--cta); --i: #ffffff; border-color: var(--cta); text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-display); font-weight: 600; }
.btn-primary:hover { --b: var(--cta-hover); border-color: var(--cta-hover); filter: none; }
.btn-outline { --b: transparent; --i: var(--ink); border-color: var(--ink); }
.btn .i { width: 1.1em; height: 1.1em; }
.btn-lg { font-size: 1.05rem; }

/* header */
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); }
.site-header-inner { gap: 1rem; min-height: 64px; }
.brand { gap: .55rem; margin-right: 1.25rem; }
.brand .brand-mark { width: 44px; height: 30px; }
.brand-word { display: grid; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .9; font-size: 1.12rem; letter-spacing: .01em; }
@media (min-width: 761px) { .brand-word { display: inline; font-size: 1.45rem; white-space: nowrap; } .bw-2 { color: var(--ink); } }
.bw-1 { color: var(--ink); }
.bw-2 { color: var(--accent); }
.site-nav { margin-right: auto; }
.site-nav a { font-weight: 600; font-size: .95rem; color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--ink); background: transparent; box-shadow: inset 0 -2px 0 var(--cta); border-radius: 0; }
.theme-toggle { border: 0; background: transparent; }
@media (max-width: 760px) {
  .has-menu .site-header-inner { min-height: 58px; }
  .brand-word { font-size: 1rem; }
  .nav-menu { margin-left: auto; }
  .theme-toggle { margin-left: auto; }
  .nav-menu summary { border: 0; background: transparent; }
}
body.playing .site-header { background: color-mix(in srgb, var(--night) 92%, transparent); border-color: var(--night-line); }

/* footer */
.site-footer { background: var(--surface); }
body.playing .site-footer { background: var(--night); border-color: var(--night-line); }

/* ------------------------------------------------------------------ home */
.home-main { padding-top: 0; }
.hero { position: relative; overflow: hidden; min-height: clamp(300px, 42vw, 440px); display: flex; align-items: center; background: #c9cfd4; color: var(--ink); isolation: isolate; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.hero.has-photo { background: #20262a var(--hero) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(244 245 246 / 92%) 0%, rgb(244 245 246 / 72%) 42%, rgb(244 245 246 / 0%) 70%); }
.hero-inner { padding-block: 2.5rem; }
.hero-title { font-size: clamp(3rem, 1.6rem + 6.4vw, 5.8rem); line-height: .92; margin: 0 0 .7rem; max-width: 9ch; color: #111315; }
.hero-title span { display: block; color: #b8321a; }
.hero-sub { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); font-weight: 600; margin: 0 0 1.25rem; color: #1b1e21; }
.hero-cta { margin: 0 0 .6rem; }
.hero-meta { margin: 0; font-size: .92rem; color: #2d3237; }
.hero-meta a { color: #1b1e21; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero::before { background: linear-gradient(90deg, rgb(15 17 19 / 92%) 0%, rgb(15 17 19 / 72%) 45%, rgb(15 17 19 / 10%) 75%); } :root:not([data-theme="light"]) .hero-art { filter: brightness(.55) saturate(.8); } :root:not([data-theme="light"]) .hero-title, :root:not([data-theme="light"]) .hero-sub, :root:not([data-theme="light"]) .hero-meta, :root:not([data-theme="light"]) .hero-meta a { color: #f3f5f6; } :root:not([data-theme="light"]) .hero-title span { color: #ff7a57; } }
:root[data-theme="dark"] .hero::before { background: linear-gradient(90deg, rgb(15 17 19 / 92%) 0%, rgb(15 17 19 / 72%) 45%, rgb(15 17 19 / 10%) 75%); }
:root[data-theme="dark"] .hero-art { filter: brightness(.55) saturate(.8); }
:root[data-theme="dark"] .hero-title, :root[data-theme="dark"] .hero-sub, :root[data-theme="dark"] .hero-meta, :root[data-theme="dark"] .hero-meta a { color: #f3f5f6; }
:root[data-theme="dark"] .hero-title span { color: #ff7a57; }
@media (max-width: 640px) {
  .hero { min-height: 0; text-align: center; }
  .hero::before { background: linear-gradient(180deg, rgb(244 245 246 / 88%) 0%, rgb(244 245 246 / 70%) 100%); }
  .hero-title { max-width: none; margin-inline: auto; }
  .hero-cta .btn { width: 100%; }
}

.home-layout { display: grid; gap: 2rem; padding-bottom: 1rem; }
.home-layout.has-rail { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .home-layout.has-rail { grid-template-columns: minmax(0, 1fr) 300px; } .home-rail { padding-top: 5.4rem; } .home-rail .adslot { position: sticky; top: 90px; margin: 0; } }
@media (max-width: 999px) { .home-rail { display: none; } }

/* scenario tiles: image with title over it, meta rows below, chevron */
.sc-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.sc-tile-link { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.sc-tile-link:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgb(15 17 19 / 16%); }
.sc-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--night); overflow: hidden; }
.sc-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sc-media img.is-art { filter: saturate(.85) contrast(1.05); }
.sc-tile-link:hover .sc-media img { transform: scale(1.04); }
.sc-media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(8 9 10 / 85%)); }
.sc-title { position: absolute; left: .85rem; right: .85rem; bottom: .6rem; z-index: 1; margin: 0; color: #fff; font-size: 1.35rem; text-transform: uppercase; line-height: 1.05; text-shadow: 0 1px 8px rgb(0 0 0 / 50%); }
.sc-body { position: relative; display: grid; gap: .45rem; padding: .8rem 2.4rem .9rem .9rem; }
.meta-list { display: grid; gap: .2rem; font-size: .86rem; color: var(--muted); }
.meta-i { display: inline-flex; align-items: center; gap: .45rem; }
.i { width: 15px; height: 15px; flex: none; }
.i-hot { color: var(--accent); }
.sc-rate { font-size: .82rem; font-weight: 700; color: var(--accent); }
.sc-body .chev { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink); }
@media (max-width: 640px) {
  .sc-grid { grid-template-columns: 1fr; gap: .6rem; }
  .sc-tile-link { flex-direction: row; align-items: stretch; min-height: 104px; }
  .sc-media { flex: none; width: 38%; aspect-ratio: auto; }
  .sc-title { font-size: 1.05rem; left: .6rem; bottom: .45rem; }
  .sc-body { padding: .6rem 2.2rem .6rem .75rem; align-content: center; }
  .meta-list { font-size: .8rem; }
}

.most-played { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.mp-row { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; min-height: 72px; }
.mp-row:hover { border-color: var(--ink); }
.mp-n { flex: none; display: grid; place-items: center; width: 34px; height: 44px; background: var(--surface-2); border-radius: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.mp-thumb { flex: none; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--night); }
.mp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-text { display: grid; min-width: 0; }
.mp-title { font-weight: 700; }
.mp-meta { color: var(--muted); font-size: .85rem; }

.dare-list, .survivor-list, .how-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.dare { position: relative; display: flex; align-items: center; gap: .9rem; padding: .8rem 2.6rem .8rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 64px; }
.dare:hover { border-color: var(--ink); }
.dare .chev { position: absolute; right: .9rem; width: 18px; height: 18px; }
.dare-pct { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); min-width: 3ch; }
.dare-text strong { color: var(--accent); }
.survivor { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 60px; }
.survivor:hover { border-color: var(--ink); }
.survivor-score { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; background: var(--surface-2); color: var(--muted); }
.survivor-score.is-alive { background: #1d3a22; color: var(--alive); }
.survivor-body { display: grid; min-width: 0; }
.survivor-name { font-weight: 800; }
.survivor-meta { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.how { margin-top: 2.5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.how .section-title { margin-bottom: 1rem; }
.how-list { counter-reset: how; }
.how-list li { counter-increment: how; position: relative; padding-left: 2.8rem; min-height: 2rem; }
.how-list li::before { content: counter(how); position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem; border-radius: 6px; display: grid; place-items: center; background: var(--cta); color: #fff; font-family: var(--font-display); font-weight: 700; }

/* ------------------------------------------------------------------ intro */
.intro-main { padding-top: 0; }
.intro-stage { position: relative; isolation: isolate; color: #f3f5f6; background: #15181b; overflow: hidden; }
.intro-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--scene) center / cover no-repeat; }
.intro-stage:not(.has-photo)::before { filter: saturate(.85); }
.intro-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 11 12 / 25%) 0%, rgb(10 11 12 / 70%) 60%, rgb(10 11 12 / 92%) 100%); }
.intro-stage-inner { min-height: clamp(260px, 36vw, 400px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 2rem 1.75rem; }
.rs-kicker { margin: 0 0 .3rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: #ff7a57; }
.intro-title { font-size: clamp(2.8rem, 1.6rem + 5vw, 4.8rem); line-height: .95; margin: 0 0 .35rem; color: #fff; }
.intro-q { font-size: 1.15rem; font-weight: 600; margin: 0 0 .7rem; color: #e7eaec; }
.intro-meta .meta-list { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: #dfe3e6; font-size: .92rem; }
.intro-meta .i-hot { color: #ff7a57; }
.intro-body { padding-top: 1.5rem; }
.intro-tag { font-weight: 600; color: var(--ink); }
.intro-text p { font-size: 1.12rem; line-height: 1.65; }
.start-form { margin: 1.25rem 0 .4rem; }
.challenge { background: var(--accent-soft); border-left: 4px solid var(--cta); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .75rem 1rem; }
.intro-stats { margin-top: 1.5rem; }
.sc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: .6rem; }
.sc-stats .stat { padding: .7rem .75rem; border-radius: var(--radius); }
.sc-stats .stat-n { font-family: var(--font-display); font-size: 1.6rem; }

/* ------------------------------------------------------------------ play */
.playing .main { padding-top: 1.25rem; }
.play { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .play { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.play-main { min-width: 0; max-width: 760px; }
.play-kicker { margin: 0 0 .15rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 1.5rem; color: var(--accent); display: flex; align-items: center; gap: .6rem; }
.play-count { margin: 0 0 .5rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.play-of { color: var(--muted); font-weight: 400; }
.play-count .play-of::before { content: "/ "; margin: 0 .2rem; }
.play-progress { height: 6px; border-radius: 99px; background: var(--night-3); overflow: hidden; margin: 0 0 1.1rem; max-width: 520px; }
.play-progress span { display: block; height: 100%; background: linear-gradient(90deg, #4fb35c, var(--alive)); border-radius: 99px; transition: width .45s ease; }
.play-scene { margin: 0 0 1.1rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: #000; }
.play-scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
.play-scene img.is-art { filter: saturate(.85) brightness(.9); }
.consequence { margin: 0 0 1rem; padding: .7rem .95rem; border-left: 3px solid var(--accent); background: var(--night-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--night-muted); font-style: italic; }
.play-label { font-family: var(--font-display); font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .35rem; font-weight: 500; }
.play-label.is-big { font-size: 2rem; color: var(--night-ink); letter-spacing: .02em; }
.play-label:focus { outline: none; }
.play-text p, .play-text-lead { font-size: clamp(1.18rem, 1.05rem + .6vw, 1.4rem); line-height: 1.45; font-weight: 700; margin: 0 0 1rem; color: var(--night-ink); text-wrap: pretty; }
.play-choices { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.opt { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 56px; padding: .8rem 1rem; border: 1.5px solid var(--night-line); border-radius: var(--radius-sm); background: rgb(255 255 255 / 3%); cursor: pointer; font-weight: 600; line-height: 1.3; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #7b858d; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3cacf; display: grid; place-items: center; }
.opt-key { display: none; }
.opt:has(input:checked) { border-color: var(--alive); background: rgb(92 207 107 / 8%); box-shadow: inset 0 0 0 1px var(--alive); }
.opt:has(input:checked) .opt-dot { border-color: var(--alive); }
.opt:has(input:checked) .opt-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--alive); }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn-next { min-width: 200px; min-height: 52px; }
.btn-next[aria-disabled="true"] { opacity: .45; }
.play.is-busy { opacity: .7; pointer-events: none; }
.play-foot { margin-top: 1.5rem; color: var(--night-muted); }
.condition { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1.2rem; max-width: 520px; }
.condition div { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-sm); padding: .6rem .75rem; }
.condition dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--night-muted); }
.condition dd { margin: 0; font-weight: 800; }

.play-side { display: none; }
@media (min-width: 960px) { .play-side { display: grid; gap: 1rem; position: sticky; top: 86px; } }
.side-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.side-h { font-family: var(--font-display); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--night-muted); font-weight: 500; margin: 0 0 .8rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.tl { position: relative; display: grid; padding: 0 0 .9rem 1.8rem; }
.tl::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; width: 2px; background: var(--night-line); }
.tl:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #6b747b; background: var(--night-2); }
.tl.is-done .tl-dot { border-color: var(--alive); background: var(--alive); }
.tl.is-now .tl-dot { border-color: #ff7a57; box-shadow: inset 0 0 0 3px var(--night-2); background: #ff7a57; }
.tl-t { font-weight: 700; font-size: .92rem; }
.tl-s { font-size: .8rem; color: var(--night-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-quote { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; padding: 1rem 1.1rem; border-left: 3px solid #ff7a57; background: var(--night-2); border-radius: 0 var(--radius) var(--radius) 0; }
.side-quote .i { width: 26px; height: 26px; color: var(--night-muted); }
.side-quote blockquote { margin: 0; font-weight: 600; line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .play.is-entering .play-main { animation: play-in .32s cubic-bezier(.2,.8,.2,1); }
  @keyframes play-in { from { opacity: 0; transform: translateY(10px); } }
}

/* ------------------------------------------------------------------ result */
.result { display: grid; gap: 1.25rem; }
.result-stage { position: relative; isolation: isolate; display: grid; gap: 1.25rem; padding: clamp(1rem, 4vw, 2.5rem); border-radius: var(--radius); overflow: hidden; background: #111; color: #f3f5f6; }
@media (min-width: 900px) { .result-stage { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; } }
.result-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--scene) center / cover no-repeat; transform: scale(1.03); }
.result-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(8 9 10 / 55%); }
.result-panel { max-width: 640px; width: 100%; margin-inline: auto; text-align: center; padding: clamp(1.25rem, 4vw, 2.25rem); background: rgb(12 13 15 / 86%); border: 1px solid rgb(255 255 255 / 10%); border-radius: var(--radius); backdrop-filter: blur(4px); }
.rs-verdict { font-size: clamp(2.3rem, 1.4rem + 4vw, 3.6rem); text-wrap: balance; line-height: .95; margin: .1rem 0 .8rem; color: #fff; }
.rs-verdict.is-alive { color: var(--alive); }
.rs-verdict.is-dead { color: var(--dead); }
.rs-label { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: #dfe3e6; font-size: 1.05rem; }
.rs-score { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 700; line-height: 1; }
.rs-num { font-size: clamp(4.5rem, 3rem + 6vw, 6.5rem); font-variant-numeric: tabular-nums; }
.rs-num.is-alive { color: var(--alive); }
.rs-num.is-dead { color: var(--dead); }
.rs-of { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-left: .35rem; color: #fff; }
.rs-summary { margin: 0 auto 1.1rem; max-width: 46ch; color: #dfe3e6; }
.rs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto 1.25rem; max-width: 480px; border: 1px solid rgb(255 255 255 / 14%); border-radius: var(--radius-sm); }
.rs-stats div { padding: .7rem .5rem; }
.rs-stats div + div { border-left: 1px solid rgb(255 255 255 / 14%); }
.rs-stats dt { order: 2; font-size: .8rem; color: #c3cacf; }
.rs-stats dd { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; }
.rs-stats div { display: flex; flex-direction: column-reverse; }
.rs-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.rs-actions .btn { flex: 1 1 210px; }
.result-stage .btn-outline { --i: #fff; border-color: rgb(255 255 255 / 70%); }
.result-stage .notice { color: var(--night-ink); background: rgb(255 255 255 / 8%); }
.rs-muted { color: #c3cacf; }
.name-form { margin: 1.25rem auto 0; max-width: 380px; text-align: left; }
.name-form .field > span:first-child { color: #f3f5f6; font-weight: 600; }
.name-row { display: flex; gap: .5rem; }
.name-row input { flex: 1; min-width: 0; background: rgb(255 255 255 / 8%); color: #fff; border-color: rgb(255 255 255 / 30%); }
.name-row input::placeholder { color: #b9c0c6; }
.name-row .btn { --b: var(--cta); --i: #fff; border-color: var(--cta); min-height: 48px; }
.share-panel { display: grid; gap: .8rem; padding: 1.1rem; background: rgb(12 13 15 / 86%); border: 1px solid rgb(255 255 255 / 10%); border-radius: var(--radius); align-self: stretch; align-content: start; }
.share-panel .side-h { color: #dfe3e6; text-align: center; margin: 0; }
.share-card { width: 100%; height: auto; border-radius: 8px; border: 4px solid #fff; background: #1b1f22; }
.share-panel .btn-outline { --i: #fff; border-color: rgb(255 255 255 / 45%); }
@media (max-width: 899px) { .share-panel { max-width: 420px; width: 100%; margin-inline: auto; } .share-card { max-width: 260px; margin-inline: auto; } }

.ending { text-align: left; }
.ending-title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); text-transform: uppercase; margin: 0 0 .5rem; line-height: 1; }
.ending-text { font-size: 1.08rem; max-width: 70ch; }
.strengths { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.strengths li { padding: .35rem .8rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.calls { margin-top: .5rem; }
.call { border-radius: var(--radius-sm); padding: .9rem 1rem; background: var(--surface-2); border-left: 4px solid var(--good); }
.call-fatal { border-left-color: var(--bad); }
.call-kicker { margin: 0 0 .2rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.call-label { font-weight: 800; margin: 0 0 .3rem; }
.call .small { margin: 0; }
.statbars .bar { min-height: 42px; }
.statbars .bar-label, .statbars .bar-value { padding-block: .35rem; }
.bar-fill { background: color-mix(in srgb, var(--good) 28%, transparent); }
.bar.is-mine .bar-fill { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.bar.is-mine { border-color: var(--accent); }
.decisions { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.decision-head { margin: 0 0 .6rem; font-weight: 800; }
.decision-n { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.decision .bar { min-height: 44px; font-size: .95rem; }
.decision .bar-label, .decision .bar-value { padding-block: .4rem; }
.decision-surv { margin: .6rem 0 0; color: var(--muted); }
.decision-surv strong { color: var(--accent); }
.bar-tag { color: var(--ink); background: var(--surface); padding: .05rem .35rem; border-radius: 4px; }
.rank-table a { font-weight: 700; }
.scenario-editor textarea.mono { font-size: .85rem; min-height: 420px; }
.center { text-align: center; }

/* ------------------------------------------------------------------ stage artwork
   Only rendered when approved art files exist (src/art.js); otherwise the markup above is unchanged.
   Graded illustrations get no CSS filters. Every box keeps its fixed ratio, so loading or swapping art never shifts layout. */
.sc-media picture, .mp-thumb picture { display: contents; }
img.is-illustration { filter: none; }
.play-scene.has-art { position: relative; }
.play-scene.has-art > picture, .play-scene.has-art > img { position: absolute; inset: 0; }
.play-scene.has-art img, .stage-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage-bg { position: absolute; inset: 0; z-index: -2; }
.play-scene .art-pending { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .play-scene .t-crossfade { animation: art-fade .28s ease-out both; }
  .play-scene .t-dissolve { animation: art-fade .45s ease-in-out both; }
  .play-scene .t-shift { animation: art-shift .32s ease-out both; }
  @keyframes art-fade { from { opacity: 0; } }
  @keyframes art-shift { from { opacity: 0; transform: translateX(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  .play-scene .t-crossfade, .play-scene .t-dissolve, .play-scene .t-shift { animation: none; }
  .sc-tile-link:hover .sc-media img { transform: none; }
}

/* ------------------------------------------------------------------ home: scenario of the week (hero feature card) */
.hero-inner.has-feature { display: grid; gap: 1.5rem 3rem; align-items: center; width: 100%; }
@media (min-width: 900px) { .hero-inner.has-feature { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.feature { display: grid; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: 0 18px 50px rgb(0 0 0 / 22%); text-align: left; }
@media (min-width: 640px) { .feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.feature-media { display: block; position: relative; background: #1b1f22; aspect-ratio: 16 / 10; min-width: 0; overflow: hidden; }
@media (min-width: 640px) { .feature-media { aspect-ratio: auto; min-height: 280px; } }
.feature-media img, .feature-media picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: clamp(1.1rem, 2.5vw, 1.75rem); display: flex; flex-direction: column; gap: .55rem; }
.feature-kicker { margin: 0; font-family: var(--font-display, inherit); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: var(--cta, var(--accent)); }
.feature-title { margin: 0; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1; text-transform: uppercase; }
.feature-title a { color: inherit; text-decoration: none; }
.feature-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.feature-tag { margin: 0; font-weight: 600; font-size: 1.05rem; }
.feature-stats { margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; color: var(--muted); }
.feature-stats strong { color: var(--ink); font-size: 1.35rem; font-family: var(--font-display, inherit); margin-right: .2rem; }
.feature-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.feature-cta { margin: .6rem 0 0; }
.feature-cta .btn { width: 100%; }
@media (max-width: 640px) { .hero-inner.has-feature { padding-block: 1.5rem; } .hero-title { margin-bottom: 0; } }

/* top scores filter */
.score-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.score-filter .chip { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.score-filter .chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
