:root {
  color-scheme: dark;
  --ink: #071421;
  --ink-2: #0a1b2b;
  --panel: #0d2235;
  --panel-2: #122c43;
  --line: #2a4861;
  --paper: #f7fafc;
  --muted: #a7b7c7;
  --lime: #d8ff3f;
  --aqua: #58ead8;
  --orange: #ffab4c;
  --red: #ff7070;
  --blue: #5da9ff;
  --life: #ff8dcb;
  --focus: #ffffff;
  --shadow: 0 28px 80px rgba(0, 0, 0, .3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--ink); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 4%, rgba(88, 234, 216, .13), transparent 28rem),
    radial-gradient(circle at 9% 70%, rgba(93, 169, 255, .08), transparent 30rem),
    linear-gradient(180deg, #081725 0%, #06111c 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

[hidden] { display: none !important; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.app-shell { width: min(1260px, calc(100% - 40px)); margin: 0 auto; padding-bottom: max(56px, env(safe-area-inset-bottom)); }
.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(167, 183, 199, .2);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 7px 15px 7px 15px;
  color: var(--ink);
  background: var(--lime);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -.09em;
  transform: rotate(-4deg);
  box-shadow: 0 8px 28px rgba(216, 255, 63, .15);
}
.brand-copy b, .brand-copy small { display: block; line-height: 1.05; letter-spacing: .12em; }
.brand-copy b { font-size: .98rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .65rem; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.quiet-button, .secondary-button, .danger-button, .primary-button {
  min-height: 48px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 850;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, filter .16s ease;
}
.quiet-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: .88rem;
}
.quiet-button:hover { color: white; border-color: var(--line); }
.primary-button { padding: 0 23px; border: 0; color: var(--ink); background: var(--lime); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.primary-button:disabled { cursor: not-allowed; color: #7e91a3; background: #263c50; }
.secondary-button { padding: 0 21px; border: 1px solid var(--line); color: var(--paper); background: transparent; }
.secondary-button:hover { border-color: var(--aqua); background: rgba(88, 234, 216, .07); }
.danger-button { padding: 0 21px; border: 0; color: #210809; background: var(--red); }

.eyebrow { color: var(--aqua); font-size: .73rem; font-weight: 900; letter-spacing: .16em; }

/* Start screen */
.setup-view {
  min-height: calc(100vh - 87px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .82fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  padding: 54px 0 70px;
}
.setup-copy h1 {
  max-width: 760px;
  margin: 14px 0 20px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: .91;
  letter-spacing: -.07em;
}
.setup-copy h1 em { color: var(--lime); font-style: normal; }
.setup-lead { max-width: 690px; margin: 0; color: #c5d2de; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.62; }
.setup-block { max-width: 720px; margin-top: 31px; }
.setup-label-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.setup-label { color: var(--paper); font-size: .86rem; font-weight: 850; }
.setup-hint { color: var(--muted); font-size: .72rem; }
.mode-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mode-card {
  min-height: 82px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--paper);
  background: rgba(10, 27, 43, .78);
  cursor: pointer;
}
.mode-card b, .mode-card span { display: block; }
.mode-card b { font-size: .96rem; }
.mode-card span { margin-top: 6px; color: var(--muted); font-size: .72rem; line-height: 1.25; }
.mode-card:hover { border-color: var(--aqua); }
.mode-card.selected { border-color: var(--lime); background: rgba(216, 255, 63, .09); box-shadow: inset 0 0 0 1px var(--lime); }
.mode-card.selected span { color: #dce8c0; }
.income-setup output { color: var(--lime); font-size: 1.3rem; font-weight: 950; letter-spacing: -.04em; }
input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--lime); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; margin-top: 3px; color: var(--muted); font-size: .7rem; }
.start-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.start-actions .primary-button, .start-actions .secondary-button { min-width: 190px; }
.save-note { margin: 10px 0 0; color: var(--muted); font-size: .72rem; }

.setup-board {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  padding: 32px;
  border: 1px solid #3a5971;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 25%, rgba(216,255,63,.16), transparent 34%),
    linear-gradient(145deg, #153653 0%, #0b2033 63%, #081827 100%);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.setup-board::before, .setup-board::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}
.setup-board::before { width: 270px; height: 270px; top: -150px; right: -120px; border: 52px solid rgba(88,234,216,.09); }
.setup-board::after { width: 180px; height: 180px; bottom: -115px; left: -90px; border: 34px solid rgba(93,169,255,.09); }
.vault-top { display: grid; justify-items: center; margin-top: 18px; text-align: center; }
.vault-top span { color: var(--aqua); font-size: .7rem; font-weight: 900; letter-spacing: .28em; }
.vault-top strong { margin: 2px 0; color: var(--lime); font-size: clamp(3.6rem, 7vw, 6.2rem); line-height: .94; letter-spacing: -.09em; }
.route-line { position: relative; display: flex; justify-content: space-between; margin: 68px 12px 0; }
.route-line::before { position: absolute; top: 50%; left: 0; right: 0; height: 3px; content: ""; background: linear-gradient(90deg, var(--aqua), var(--lime)); transform: translateY(-50%); }
.route-line span { position: relative; z-index: 1; width: 18px; height: 18px; border: 4px solid var(--panel); border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px rgba(216,255,63,.35); }
.route-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 13px; color: #b8c8d6; font-size: .56rem; letter-spacing: .08em; }
.board-message {
  width: min(280px, 82%);
  margin: 78px auto 0;
  padding: 22px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(5, 17, 28, .55);
}
.board-message span { color: var(--muted); font-size: .66rem; font-weight: 850; letter-spacing: .16em; }
.board-message strong { display: block; margin: 4px 0; font-size: 2.25rem; letter-spacing: -.06em; }
.board-message p { margin: 0; color: #c7d5e1; font-size: .78rem; }

/* Game */
.game-view { padding-top: 26px; }
.scoreboard {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(4, minmax(125px, .55fr));
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 34, 53, .86);
  box-shadow: 0 18px 58px rgba(0,0,0,.2);
}
.score-main, .score-stat { min-width: 0; padding: 20px 23px; }
.score-stat { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.score-stat span { color: var(--muted); font-size: .67rem; font-weight: 850; letter-spacing: .1em; }
.score-stat strong { overflow-wrap: anywhere; margin-top: 5px; font-size: clamp(1rem, 2vw, 1.35rem); }
.wealth-row { display: flex; align-items: baseline; gap: 9px; margin: 4px 0 10px; }
.wealth-row strong { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1; letter-spacing: -.06em; }
.wealth-row span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.goal-meter, .turn-meter { overflow: hidden; border-radius: 99px; background: #20384c; }
.goal-meter { height: 7px; }
.goal-meter span, .turn-meter span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--aqua), var(--lime)); transition: width .45s ease; }
.shield-score { color: var(--aqua); font-size: 1.03rem !important; letter-spacing: .09em; white-space: nowrap; }
.life-stat > span { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.life-stat small { color: var(--life); font-size: .54rem; letter-spacing: .07em; }
.life-stat > strong { color: var(--life); }
.life-meter { position: relative; height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #20384c; }
.life-meter span { display: block; height: 100%; width: 70%; background: linear-gradient(90deg, var(--orange), var(--life)); transition: width .4s ease; }
.life-meter i { position: absolute; top: -2px; bottom: -2px; left: 50%; width: 2px; background: white; opacity: .9; }
.life-stat.life-low > strong { color: var(--orange); }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .72fr); gap: 24px; align-items: start; }
.play-column { min-width: 0; }
.turn-heading { min-height: 39px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 0 2px; }
.turn-heading div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 11px; }
.turn-heading span { color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .11em; }
.turn-heading b { color: var(--aqua); font-size: .72rem; letter-spacing: .12em; }
.turn-meter { height: 5px; margin-bottom: 11px; }
.decision-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid #395b77;
  border-radius: 25px;
  background: linear-gradient(145deg, #15324d 0%, #0c2135 72%);
  box-shadow: var(--shadow);
}
.decision-card::after {
  position: absolute;
  top: -150px;
  right: -140px;
  width: 270px;
  height: 270px;
  border: 46px solid rgba(216,255,63,.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.decision-number { position: absolute; right: 23px; bottom: -34px; color: rgba(255,255,255,.035); font-size: 12rem; line-height: 1; font-weight: 950; letter-spacing: -.12em; pointer-events: none; }
.scenario-kicker { position: relative; z-index: 1; margin: 0 0 11px; color: var(--lime); font-size: .75rem; font-weight: 900; letter-spacing: .15em; }
.decision-card h2 { position: relative; z-index: 1; max-width: 760px; margin: 0; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: .99; letter-spacing: -.055em; }
.scenario-copy { position: relative; z-index: 1; max-width: 720px; margin: 17px 0 27px; color: #c8d5e1; font-size: 1.02rem; line-height: 1.58; }
.choice-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.choice {
  min-height: 105px;
  padding: 15px;
  text-align: left;
  border: 1px solid #3a5972;
  border-radius: 14px;
  color: var(--paper);
  background: rgba(5, 17, 29, .64);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.choice:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--aqua); }
.choice.selected { border-color: var(--lime); background: rgba(216,255,63,.1); box-shadow: inset 0 0 0 1px var(--lime); }
.choice:disabled { cursor: default; opacity: .7; }
.choice.selected:disabled { opacity: 1; }
.choice span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .67rem; font-weight: 900; letter-spacing: .13em; }
.choice strong { display: block; font-size: .96rem; line-height: 1.38; }
.next-button { width: 100%; min-height: 59px; margin-top: 13px; }

.outcome-card {
  margin-top: 13px;
  padding: 18px;
  border: 1px solid rgba(88,234,216,.4);
  border-radius: 16px;
  background: rgba(88,234,216,.09);
}
.outcome-card.caution { border-color: rgba(255,171,76,.5); background: rgba(255,171,76,.09); }
.outcome-title-row { display: flex; align-items: flex-start; gap: 13px; }
.outcome-title-row > div { flex: 1; min-width: 0; }
.outcome-icon { flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--aqua); font-weight: 950; }
.outcome-card.caution .outcome-icon { background: var(--orange); }
.outcome-title-row strong { font-size: .98rem; }
.outcome-title-row p { margin: 4px 0 0; color: #c4d1dc; font-size: .89rem; line-height: 1.47; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 15px; }
.impact-grid div { padding: 10px 12px; border-radius: 9px; background: rgba(3,14,24,.48); }
.impact-grid span, .impact-grid b { display: block; }
.impact-grid span { color: var(--muted); font-size: .68rem; }
.impact-grid b { margin-top: 3px; font-size: .9rem; }
.positive { color: var(--lime) !important; }
.negative { color: var(--orange) !important; }
.life-event { margin-top: 13px; padding: 13px 14px; border-left: 3px solid var(--blue); border-radius: 4px 10px 10px 4px; background: rgba(93,169,255,.1); }
.life-event > span { display: block; margin-bottom: 5px; color: #9cc9ff; font-size: .63rem; font-weight: 900; letter-spacing: .14em; }
.life-event strong { display: block; font-size: .92rem; }
.life-event p { margin: 3px 0 0; color: #c5d4e1; font-size: .82rem; line-height: 1.45; }

.money-map {
  position: sticky;
  top: 18px;
  padding: 23px;
  border-radius: 23px;
  color: var(--ink);
  background: #f5f8fa;
  box-shadow: var(--shadow);
}
.aside-heading { display: flex; align-items: center; justify-content: space-between; }
.money-map .eyebrow { color: #156e68; }
.live-pill { padding: 6px 9px; border-radius: 99px; color: #176f3d; background: #dff7e7; font-size: .61rem; font-weight: 900; letter-spacing: .12em; }
.money-list { margin: 21px 0 0; border-top: 1px solid #d3dee5; }
.money-list > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid #d3dee5; }
.money-list dt { color: #586b7a; font-size: .79rem; }
.money-list dd { margin: 0; text-align: right; color: var(--ink); font-size: .94rem; font-weight: 900; }
.assets-panel { margin-top: 17px; padding: 14px; border: 1px solid #d2dde4; border-radius: 12px; background: #eaf0f4; }
.assets-heading { display: flex; justify-content: space-between; gap: 14px; color: #526776; font-size: .67rem; font-weight: 850; letter-spacing: .09em; }
.assets-heading strong { color: var(--ink); letter-spacing: 0; }
.assets-panel ul { max-height: 144px; overflow: auto; margin: 10px 0 0; padding: 0; list-style: none; }
.assets-panel li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(82,103,118,.16); color: #405565; font-size: .75rem; }
.chapter-panel { margin-top: 20px; }
.chapter-panel > span { color: #5b6e7d; font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.chapter-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 8px; }
.chapter-dots span { height: 7px; border-radius: 99px; background: #cbd7de; }
.chapter-dots span.seen { background: #1d7d76; }
.chapter-dots span.current { background: var(--ink); box-shadow: 0 0 0 2px var(--lime); }
.money-map blockquote { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid #d3dee5; color: #3d5262; font-size: .79rem; font-weight: 720; line-height: 1.45; }

/* Results */
.results-view { max-width: 1040px; margin: 0 auto; padding: 44px 0; }
.results-card { padding: clamp(28px, 5vw, 54px); border: 1px solid #3a5a73; border-radius: 26px; background: linear-gradient(145deg, #15334f, #0b2033); box-shadow: var(--shadow); }
.result-badge { display: inline-block; margin: 18px 0 13px; padding: 7px 11px; border-radius: 7px; color: var(--ink); background: var(--lime); font-size: .68rem; font-weight: 950; letter-spacing: .13em; }
.results-card > h1 { max-width: 840px; margin: 0; font-size: clamp(2.45rem, 6vw, 4.8rem); line-height: .95; letter-spacing: -.065em; }
.result-copy { max-width: 760px; color: #c5d3df; line-height: 1.58; }
.result-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin: 27px 0; }
.result-grid div { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(5,17,29,.55); }
.result-grid span, .result-grid strong { display: block; }
.result-grid span { min-height: 35px; color: var(--muted); font-size: .73rem; }
.result-grid strong { margin-top: 7px; font-size: 1.13rem; }
.plan-box { padding: 23px; border-radius: 16px; color: var(--ink); background: #f5f8fa; }
.plan-box h2 { margin: 0 0 12px; font-size: 1.14rem; }
.plan-box ol { margin: 0; padding-left: 23px; }
.plan-box li { padding: 4px 0; line-height: 1.45; }
.asset-summary { margin-top: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: #c6d4df; }
.asset-summary h2 { margin: 0 0 6px; color: var(--paper); font-size: .96rem; }
.asset-summary p { margin: 0; font-size: .86rem; line-height: 1.5; }
.results-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.history-panel { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5,17,29,.45); }
.history-panel h2 { margin: 0 0 13px; font-size: 1.1rem; }
.history-panel ol { margin: 0; padding-left: 25px; }
.history-panel li { padding: 10px 6px; border-bottom: 1px solid rgba(167,183,199,.16); color: #c5d3df; line-height: 1.45; }
.history-panel li b { display: block; color: var(--paper); font-size: .9rem; }
.history-panel li span { display: block; margin-top: 3px; color: var(--muted); font-size: .79rem; }

/* Dialogs */
dialog {
  width: min(550px, calc(100% - 28px));
  padding: 33px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--paper);
  background: var(--panel);
  box-shadow: 0 35px 120px rgba(0,0,0,.7);
}
dialog::backdrop { background: rgba(1,7,13,.79); backdrop-filter: blur(5px); }
dialog h2 { margin: 9px 0 12px; font-size: 1.85rem; letter-spacing: -.04em; }
dialog p, dialog li { color: #c5d2de; line-height: 1.52; }
dialog li + li { margin-top: 8px; }
.dialog-close { position: absolute; top: 13px; right: 15px; border: 0; color: var(--muted); background: transparent; font-size: 1.8rem; cursor: pointer; }
.fine-print { margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.confirm-dialog { max-width: 450px; }
.confirm-dialog p { margin-bottom: 23px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.toast { position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 10; padding: 11px 14px; border: 1px solid rgba(88,234,216,.35); border-radius: 10px; color: var(--paper); background: #0d2a31; box-shadow: 0 12px 38px rgba(0,0,0,.35); font-size: .79rem; font-weight: 800; }

@media (max-width: 980px) {
  .setup-view { grid-template-columns: 1fr; padding-top: 46px; }
  .setup-board { min-height: 420px; width: min(560px, 100%); margin: 0 auto; }
  .board-message { margin-top: 48px; }
  .scoreboard { grid-template-columns: repeat(4, 1fr); }
  .score-main { grid-column: 1 / -1; }
  .score-stat { border-top: 1px solid var(--line); }
  .score-stat:nth-child(2) { border-left: 0; }
  .game-grid { grid-template-columns: 1fr; }
  .money-map { position: static; order: -1; }
  .money-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
}

@media (max-width: 680px) {
  .app-shell { width: min(100% - 22px, 620px); }
  .topbar { min-height: 74px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy small { display: none; }
  .quiet-button { padding: 0 10px; }
  .setup-view { min-height: 0; padding: 38px 0 46px; }
  .setup-copy h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .setup-label-row { align-items: flex-start; }
  .setup-hint { max-width: 150px; text-align: right; }
  .mode-picker { grid-template-columns: 1fr; }
  .mode-card { min-height: 64px; }
  .mode-card b, .mode-card span { display: inline; }
  .mode-card span { margin-left: 8px; }
  .setup-board { display: none; }
  .start-actions { display: grid; grid-template-columns: 1fr; }
  .scoreboard { grid-template-columns: 1fr 1fr; }
  .score-main { padding: 18px; }
  .score-stat { min-height: 78px; padding: 14px 17px; }
  .score-stat:nth-child(4) { border-left: 0; }
  .score-stat:nth-child(4) { border-right: 1px solid var(--line); }
  .decision-card { min-height: 0; padding: 26px 20px; border-radius: 19px; }
  .decision-number { display: none; }
  .choice-list { grid-template-columns: 1fr; }
  .choice { min-height: 0; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .money-map { padding: 19px; border-radius: 18px; }
  .money-list { display: block; }
  .result-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .top-actions .quiet-button:last-child { display: none; }
  .turn-heading { align-items: flex-end; }
  .turn-heading div { display: block; }
  .turn-heading b { display: block; margin-top: 4px; }
  .impact-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid span { min-height: 0; }
  dialog { padding: 27px 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
