:root {
  color-scheme: dark;
  --navy: #08263a;
  --abyss: #020b12;
  --navy-2: var(--abyss);
  --navy-3: #2e6f8e;
  --paper: #f5f1e8;
  --muted: var(--paper);
  --gold: #ffc627;
  --gold-dark: var(--gold);
  --blue: #2e6f8e;
  --blue-dark: var(--blue);
  --sea: #4f9d8a;
  --coral: #c94c5c;
  --cyan: #82d9f5;
  --line: rgba(245, 241, 232, 0.16);
  --font: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  color: var(--paper);
  background: var(--navy);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body:not([data-stage="reflection"]):not([data-stage="explore"]):not([data-stage="about"]) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body[data-stage="reflection"],
body[data-stage="explore"],
body[data-stage="about"] {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 50;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: var(--navy);
  background: var(--paper);
  white-space: normal;
}

#app {
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
}

.screen {
  position: relative;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(155deg, var(--abyss), var(--navy) 62%);
}

.screen::before,
.reflection-screen::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.055) 49%, transparent 63%);
  transform: translateX(-120%);
}

.entering::before {
  animation: light-pass 540ms ease-out both;
}

.hud {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 44px minmax(88px, auto) minmax(96px, 1fr);
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: max(4px, env(safe-area-inset-top)) 8px 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-wordmark b {
  font-weight: 850;
  color: #ffffff;
}

.brand-orb-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
  filter: drop-shadow(0 2px 5px rgba(0, 163, 224, 0.4));
}

.back {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.back:disabled {
  visibility: hidden;
  pointer-events: none;
}

.progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(10px, 1fr));
  gap: 4px;
  width: min(190px, 100%);
  justify-self: end;
}

.progress-step {
  height: 4px;
  overflow: hidden;
  background: rgba(247, 250, 247, 0.2);
  border-radius: 2px;
}

.progress-step.complete {
  background: var(--gold);
}

.progress-step.current {
  animation: progress-step-in 360ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.decision {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(218px, 1fr);
  width: min(100%, 1100px);
  min-height: 0;
  margin: 0 auto;
  padding: 4px 10px max(16px, env(safe-area-inset-bottom));
  gap: 10px;
}

.copy {
  align-self: center;
  min-height: 0;
  padding: 16px 18px;
  overflow: hidden;
  background: linear-gradient(175deg, rgba(10, 36, 58, 0.95) 0%, rgba(5, 20, 35, 0.97) 100%);
  border: 1px solid rgba(130, 217, 245, 0.35);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(2, 10, 18, 0.5);
  animation: copy-in 380ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.situation-text,
.previously {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(130, 217, 245, 0.28);
  color: #e2eff5;
  font-size: 15.5px;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: 0.005em;
  text-shadow: none;
}

.situation-text b,
.previously b {
  color: #ffffff;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.decision h1,
.decision-question-heading {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: 18.5px;
  font-weight: 750;
  line-height: 1.38;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.choices {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  overflow: hidden;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
  animation: choices-in 440ms 70ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.decision-screen {
  background:
    radial-gradient(ellipse 50vw 70dvh at 100% 0%, transparent 84%, rgba(130, 217, 245, 0.045) 84% 92%, transparent 92%),
    linear-gradient(155deg, var(--abyss), var(--navy) 62%);
}

.choice {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 18px 13px;
  color: var(--paper);
  border: 0;
  cursor: grab;
  text-align: center;
  touch-action: none;
  user-select: none;
  will-change: transform;
  transition:
    transform 300ms cubic-bezier(0.22, 0.8, 0.24, 1),
    filter 180ms ease,
    opacity 220ms ease;
}

.choice:first-child,
.choice[data-choice="B"] {
  background: linear-gradient(180deg, #192f59, #10243f);
  border: 1px solid rgba(130, 217, 245, 0.42);
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(2, 11, 18, 0.28);
}

.choice + .choice {
  border-left: 1px solid rgba(130, 217, 245, 0.42);
}

.choice.dragging {
  z-index: 3;
  cursor: grabbing;
  filter: brightness(1.08);
  transition: filter 180ms ease;
}

.choice.committed {
  z-index: 4;
  opacity: 0;
  transition:
    transform 270ms cubic-bezier(0.4, 0, 0.8, 0.2),
    opacity 220ms ease;
}

.choice.receding {
  opacity: 0.34;
  filter: saturate(0.45);
  transform: scale(0.97);
}

.choice-title {
  font-size: clamp(17px, 4.8vw, 26px);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

.choice-detail {
  max-width: 240px;
  color: rgba(247, 250, 247, 0.84);
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.28;
  text-wrap: balance;
}

.swipe-demo {
  position: absolute;
  left: 50%;
  bottom: -5px;
  z-index: 6;
  width: 58px;
  height: 88px;
  margin-left: -29px;
  pointer-events: none;
  animation: thumb-swipe-demo 2.45s 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.swipe-demo img {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  width: auto;
  height: 78px;
  transform: translateX(-50%);
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.2));
}

.swipe-demo span {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 28px;
  height: 14px;
  border: 1px solid rgba(247, 250, 247, 0.65);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: touch-pulse 820ms ease-out 3;
}

.tutorial-active:not(.tutorial-dismissed) .choice:first-child {
  animation: option-demo-left 2.45s 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.tutorial-active:not(.tutorial-dismissed) .choice[data-choice="B"] {
  animation: option-demo-right 2.45s 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.tutorial-dismissed .swipe-demo {
  display: none;
}

.tutorial-dismissed .choice {
  animation: none !important;
}

.consequence {
  cursor: pointer;
}

.consequence .hud {
  opacity: 0.78;
}

.beat {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 1100px);
  min-height: 0;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
  padding: 24px 20px max(96px, calc(env(safe-area-inset-bottom) + 78px));
  overflow: hidden;
}

.beat-copy {
  max-width: 820px;
  margin-inline: auto;
  margin-top: -24px;
  text-align: center;
  animation: beat-in 430ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.beat-copy.leaving {
  animation: beat-out 180ms ease-in both;
}

.chosen {
  margin: 0 0 10px;
  color: #c0d8e2;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.chosen b {
  color: #ffffff;
  font-weight: 750;
}

.consequence-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.consequence-kicker::before,
.consequence-kicker::after {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(255, 198, 39, 0.35);
}

.affected-impact {
  max-width: 440px;
  margin: 20px auto 0;
  padding: 10px 16px;
  background: rgba(14, 42, 68, 0.85);
  border: 1px solid rgba(130, 217, 245, 0.35);
  border-left: 4px solid var(--cyan);
  border-radius: 6px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.affected-impact small {
  margin-bottom: 0;
  color: var(--cyan);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.affected-impact strong {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.impact {
  margin: 0;
  color: var(--paper);
  font-size: 27px;
  font-weight: 750;
  line-height: 1.15;
  text-wrap: balance;
}

.impact > span {
  display: block;
  margin: 0;
}

.tradeoff-but {
  display: block;
  margin: 12px 0;
  color: var(--coral);
  font-size: 24px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.impact .gain,
.tradeoff .gain {
  color: #8fd0be;
}

.impact .cost,
.tradeoff .cost {
  color: #ef919e;
}

.impact small,
.tradeoff small {
  display: block;
  margin-bottom: 3px;
  color: rgba(200, 211, 214, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.advance {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  width: min(100% - 40px, 420px);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 0 18px;
  color: var(--navy);
  background: var(--gold);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}

.advance span {
  position: absolute;
  right: 18px;
}

.reflection-screen {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(155deg, var(--abyss), var(--navy) 72%);
}

.reflection-screen .hud {
  position: sticky;
  top: 0;
  background: rgba(7, 24, 39, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.reflection-screen main {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 16px max(40px, env(safe-area-inset-bottom));
}

.detail-label,
.checkpoint-steps small,
.stakeholder-events small,
.precaution-definition > p,
.section-heading > p {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.detail-label,
.section-heading > p {
  color: var(--gold);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  text-wrap: balance;
}

.future-outcome {
  margin: 0 -16px;
  padding: 28px 16px 34px;
  overflow: hidden;
  background: var(--abyss);
  border-bottom: 1px solid var(--line);
}

.future-intro {
  max-width: 780px;
  margin-bottom: 20px;
}

.future-intro h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(29px, 7.8vw, 54px);
  line-height: 1.02;
  text-wrap: balance;
}

.outcome-dimensions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  max-width: 720px;
  margin: 16px 0 0;
}

.outcome-dimensions span {
  min-width: 0;
  padding-left: 8px;
  color: rgba(247, 250, 247, 0.78);
  border-left: 3px solid var(--status-color);
  font-size: 12px;
  line-height: 1.35;
}

.outcome-dimensions span[data-level="high"] { --status-color: var(--sea); }
.outcome-dimensions span[data-level="low"] { --status-color: var(--coral); }

.outcome-dimensions b {
  color: var(--paper);
  font-weight: 850;
}

.outcome-summary {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(247, 250, 247, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.future-tradeoff {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--paper);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}

.ocean-diplomacy-meaning {
  max-width: 820px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.ocean-diplomacy-meaning > p:first-child {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.ocean-diplomacy-meaning h2 {
  max-width: 760px;
  margin: 0;
  font-size: 25px;
  line-height: 1.12;
  text-wrap: balance;
}

.ocean-diplomacy-meaning > p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(245, 241, 232, 0.74);
  font-size: 14px;
  line-height: 1.5;
}

.future-scene-wrap {
  position: relative;
  margin: 0 -16px;
  overflow: hidden;
  background: #0c2d40;
  border-block: 1px solid rgba(247, 250, 247, 0.16);
}

.future-scene {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  animation: future-scene-in 900ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

#future-sky stop:first-child { stop-color: #7aadc0; }
#future-sky stop:last-child { stop-color: #dce6de; }
#future-water stop:first-child { stop-color: #1e7288; }
#future-water stop:last-child { stop-color: #0a354c; }

.ocean-pressure #future-sky stop:first-child { stop-color: #79909a; }
.ocean-pressure #future-sky stop:last-child { stop-color: #c2c9c3; }
.ocean-pressure #future-water stop:first-child { stop-color: #3b6b76; }
.ocean-pressure #future-water stop:last-child { stop-color: #1c4652; }

.ocean-critical #future-sky stop:first-child { stop-color: #6d7476; }
.ocean-critical #future-sky stop:last-child { stop-color: #a6a29a; }
.ocean-critical #future-water stop:first-child { stop-color: #536363; }
.ocean-critical #future-water stop:last-child { stop-color: #2f4142; }

.scene-sun {
  fill: #ffe6a1;
  opacity: 0.72;
}

.ocean-critical .scene-sun { fill: #d6bea2; opacity: 0.42; }

.scene-mountains {
  fill: #456c6b;
  opacity: 0.52;
}

.ocean-pressure .scene-mountains { fill: #5c6965; }
.ocean-critical .scene-mountains { fill: #646360; }

.scene-city rect,
.scene-industry rect {
  fill: #dce8e7;
  stroke: #183c4d;
  stroke-width: 3;
}

.scene-city .city-windows,
.scene-industry .industry-lights {
  fill: none;
  stroke: #447489;
  stroke-width: 7;
  stroke-dasharray: 7 8;
}

.scene-city .green-roofs {
  fill: none;
  stroke: #4c8469;
  stroke-width: 10;
}

.ocean-pressure .green-roofs { stroke: #8b8a61; }
.ocean-critical .green-roofs { stroke: #87755e; opacity: 0.55; }

.scene-industry .industry-route {
  fill: none;
  stroke: #d5aa48;
  stroke-width: 7;
}

.scene-industry-pressure { opacity: 0.75; }
.scene-industry-critical { opacity: 0.5; }
.scene-industry-critical .industry-lights { stroke: #42515a; }
.scene-industry-critical .industry-route { stroke: #826f48; }

.shore {
  fill: #b6c1b9;
  stroke: #f0f2ec;
  stroke-width: 4;
}

.ocean-pressure .shore { fill: #9f9f91; }
.ocean-critical .shore { fill: #887f72; }

.waves path {
  fill: none;
  stroke: rgba(222, 244, 244, 0.25);
  stroke-width: 4;
  animation: future-wave 6s ease-in-out infinite alternate;
}

.waves path:last-child { animation-delay: -2.4s; }

.scene-people {
  fill: #17394a;
  stroke: #17394a;
  stroke-width: 7;
  stroke-linecap: round;
}

.scene-people ellipse {
  fill: #cfac62;
  stroke-width: 0;
}

.scene-public-critical .barrier {
  fill: none;
  stroke: #ae6154;
  stroke-width: 6;
}

.scene-public-critical .placard {
  fill: #f2eee3;
  stroke: #ae6154;
  stroke-width: 3;
}

.scene-public-pressure .gap {
  fill: none;
  stroke: #d5aa48;
  stroke-width: 6;
}

.scene-diplomacy .flagpole {
  fill: none;
  stroke: #dce5df;
  stroke-width: 4;
}

.scene-diplomacy .flagpole.empty { opacity: 0.36; }
.scene-diplomacy .flag { stroke: rgba(7, 24, 39, 0.28); stroke-width: 1; }
.scene-diplomacy .flag-0 { fill: #f5f3e9; }
.scene-diplomacy .flag-1 { fill: #d5aa48; }
.scene-diplomacy .flag-2 { fill: #65a996; }
.scene-diplomacy .flag-3 { fill: #4a7f9e; }
.scene-diplomacy-critical .flag-0 { fill: #f3eee0; }

.delegates {
  fill: #17394a;
  stroke: #17394a;
  stroke-width: 7;
  stroke-linecap: round;
}

.scene-fishing {
  stroke: #eaf1ed;
  stroke-width: 4;
  stroke-linejoin: round;
}

.scene-fishing .fishing-hull { fill: #d46f59; }
.scene-fishing .fishing-cabin { fill: #eef2ec; }
.scene-fishing .fishing-mast,
.scene-fishing .fishing-net { fill: none; }
.scene-fishing .fish-crate { fill: #d5aa48; stroke-width: 2; }
.scene-fishing-pressure { opacity: 0.78; }
.scene-fishing-critical { opacity: 0.52; transform: translateY(18px); }
.scene-fishing-critical .fishing-net { stroke-dasharray: 10 12; }

.protected-zone {
  fill: rgba(84, 173, 148, 0.13);
  stroke: #72c7ae;
  stroke-width: 4;
  stroke-dasharray: 11 9;
}

.protected-zone circle {
  fill: #72c7ae;
  stroke: none;
}

.marine-life .fish {
  fill: #d8e9df;
  opacity: 0.88;
  animation: future-fish 8s ease-in-out infinite alternate;
}

.marine-life .fish:nth-child(2n) { animation-delay: -3s; }
.marine-life .fish:nth-child(3n) { animation-duration: 10s; }
.marine-pressure .fish { fill: #c5c2a2; opacity: 0.72; }
.marine-critical .fish { fill: #aa9c86; opacity: 0.5; }

.sea-grass {
  fill: none;
  stroke: #63a682;
  stroke-width: 8;
  stroke-linecap: round;
}

.marine-pressure .sea-grass { stroke: #8a8a64; }
.marine-critical .sea-grass { stroke: #796b57; opacity: 0.45; }

.mining-system {
  fill: #d4b65e;
  stroke: #071827;
  stroke-width: 5;
}

.mining-system path { fill: none; }
.docked-system { fill: none; stroke: #9ba7a3; stroke-width: 7; opacity: 0.55; }

.pollution-plume {
  fill: #9a6e55;
  opacity: 0.64;
  animation: future-plume 5s ease-in-out infinite alternate;
}

.scene-evidence .buoy-line,
.scene-evidence .survey-path {
  fill: none;
  stroke: #d8e5df;
  stroke-width: 4;
}

.scene-evidence .buoy {
  fill: #efc34f;
  stroke: #0b2d3d;
  stroke-width: 4;
}

.scene-evidence .signal {
  fill: none;
  stroke: #eff7ee;
  stroke-width: 4;
  opacity: 0;
  animation: future-signal 2.4s ease-out infinite;
}

.scene-evidence .signal-two { animation-delay: 0.8s; }
.scene-evidence .sensor { fill: #eef5ed; stroke: #24495a; stroke-width: 4; }
.scene-evidence-pressure { opacity: 0.72; }
.scene-evidence-critical { opacity: 0.48; }

.missing-monitor {
  fill: none;
  stroke: #e18a70;
  stroke-width: 8;
  stroke-linecap: round;
}

.seabed {
  fill: #314a4c;
  stroke: #6e8980;
  stroke-width: 3;
}

.ocean-pressure .seabed { fill: #4f5751; }
.ocean-critical .seabed { fill: #5b5046; stroke: #766b5d; }

.future-scene-caption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 12px;
  color: rgba(247, 250, 247, 0.58);
  background: #06131d;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}

.factor-rotation-wrapper {
  position: relative;
  margin: 14px -16px 18px;
  background: #020b12;
  border-top: 1px solid rgba(130, 217, 245, 0.25);
  border-bottom: 1px solid rgba(130, 217, 245, 0.25);
  overflow: hidden;
  padding: 0;
}

@media (min-width: 641px) {
  .factor-rotation-wrapper {
    margin: 18px auto 22px;
    max-width: 820px;
    border-radius: 12px;
    border: 1px solid rgba(130, 217, 245, 0.3);
  }
}

/* Morphing Indicator Cluster: Overlaid Directly on Top of Images */
.morph-nav-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: auto;
}

.morph-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 360ms cubic-bezier(0.2, 0.85, 0.25, 1);
  overflow: hidden;
  height: 28px;
  border-radius: 999px;
}

/* Collapsed State: Dot */
.morph-item.is-collapsed {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.5);
}
.morph-item.is-collapsed:hover {
  transform: scale(1.3);
}
.morph-item.is-collapsed .morph-label {
  max-width: 0;
  opacity: 0;
  transform: scale(0.6);
  margin: 0;
  pointer-events: none;
  white-space: nowrap;
}
.morph-item.is-collapsed.is-spotlight {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 198, 39, 0.8), 0 2px 5px rgba(0, 0, 0, 0.6);
}
.morph-item.is-collapsed.is-tradeoff {
  background: #ef919e;
  box-shadow: 0 0 8px rgba(239, 145, 158, 0.8), 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* Expanded State: Pill */
.morph-item.is-expanded {
  padding: 4px 14px;
  height: 28px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.morph-item.is-expanded .morph-label {
  max-width: 140px;
  opacity: 1;
  transform: scale(1);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: opacity 220ms ease 100ms, transform 220ms ease;
  white-space: nowrap;
}

/* Expanded Spotlight */
.morph-item.is-expanded.is-spotlight {
  background: rgba(4, 18, 30, 0.85);
  border: 1.5px solid rgba(255, 198, 39, 0.85);
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65), 0 0 10px rgba(255, 198, 39, 0.3);
}

/* Expanded Trade-off */
.morph-item.is-expanded.is-tradeoff {
  background: rgba(4, 18, 30, 0.85);
  border: 1.5px solid rgba(239, 145, 158, 0.85);
  color: #ef919e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65), 0 0 10px rgba(239, 145, 158, 0.3);
}

/* Viewport & Sliding Track */
.rotation-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.rotation-viewport:active {
  cursor: grabbing;
}

.rotation-track {
  display: flex;
  width: 200%;
  transform: translateX(0%);
  transition: transform 450ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.slide-section {
  width: 50%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Stage: Centers Uncropped Cards */
.factor-display-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  width: 100%;
  padding: 0;
  background: transparent;
}

@media (min-width: 641px) {
  .factor-display-stage {
    gap: 8px;
    padding: 0;
  }
}

/* The Factor Card: Exact 836:1881 Ratio with NO cropping */
.factor-card {
  position: relative;
  width: min(calc((100% - (var(--factor-count, 1) - 1) * 3px) / var(--factor-count, 1)), 210px);
  height: auto;
  aspect-ratio: 836 / 1881;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #020b12;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 641px) {
  .factor-card {
    width: min(calc((100% - (var(--factor-count, 1) - 1) * 8px) / var(--factor-count, 1)), 195px);
  }
}

.factor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
  border-color: var(--cyan);
}

/* Image: Exact Native Aspect Ratio, NEVER CROPPED */
.factor-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  background: radial-gradient(circle at 50% 50%, #0d3655, #020b12);
}

/* Card Footer Overlay: Factor Name Only (NO HIGH/LOW BADGES) */
.card-footer-overlay {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 11, 18, 0.8) 40%, rgba(2, 11, 18, 0.98) 100%);
  padding: 16px 4px 8px;
  text-align: center;
  width: 100%;
}

.factor-name {
  font-size: clamp(8.5px, 1.15vw, 11.5px);
  font-weight: 850;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.15;
  display: block;
}

/* Empty State Card (0 High or 0 Low) */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: #8faec0;
  gap: 8px;
}
.empty-state-card h3 {
  font-size: 15px;
  color: #ffffff;
  font-weight: 750;
}
.empty-state-card p {
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 280px;
}

.future-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.future-facts span {
  padding: 7px 9px;
  color: rgba(247, 250, 247, 0.78);
  background: rgba(247, 250, 247, 0.06);
  border-left: 2px solid var(--gold);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.future-factor-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 0;
}

.future-factor-tabs button {
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  color: var(--paper);
  background: rgba(247, 250, 247, 0.045);
  border: 1px solid rgba(247, 250, 247, 0.14);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.future-factor-tabs button::before {
  display: block;
  width: 22px;
  height: 3px;
  margin-bottom: 7px;
  content: "";
  background: var(--status-color);
}

.future-factor-tabs button[data-level="strong"] { --status-color: var(--sea); }
.future-factor-tabs button[data-level="pressure"] { --status-color: var(--gold); }
.future-factor-tabs button[data-level="critical"] { --status-color: var(--coral); }

.future-factor-tabs button[aria-selected="true"] {
  background: rgba(247, 250, 247, 0.11);
  border-color: var(--status-color);
}

.future-factor-tabs span,
.future-factor-tabs strong {
  display: block;
  overflow-wrap: anywhere;
}

.future-factor-tabs span {
  color: rgba(247, 250, 247, 0.58);
  font-size: 10px;
  font-weight: 750;
}

.future-factor-tabs strong {
  margin-top: 2px;
  color: var(--status-color);
  font-size: 14px;
  line-height: 1.15;
}

.future-factor-detail {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.future-detail-copy {
  animation: detail-in 240ms ease-out both;
}

.future-detail-copy[data-level="strong"] { --status-color: var(--sea); }
.future-detail-copy[data-level="pressure"] { --status-color: var(--gold); }
.future-detail-copy[data-level="critical"] { --status-color: var(--coral); }

.future-detail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.future-detail-heading h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
}

.future-detail-heading strong {
  flex: 0 0 auto;
  color: var(--status-color);
  font-size: 14px;
}

.future-state-summary {
  max-width: 720px;
  margin: 12px 0 18px;
  color: rgba(247, 250, 247, 0.74);
  font-size: 14px;
  line-height: 1.5;
}

.future-causes {
  display: grid;
  gap: 8px;
}

.future-causes article {
  padding: 13px 14px;
  background: rgba(247, 250, 247, 0.055);
  border-left: 3px solid var(--status-color);
}

.future-causes small,
.future-causes b {
  display: block;
}

.future-causes small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.future-causes b {
  margin: 4px 0;
  font-size: 15px;
}

.future-causes p {
  margin: 0;
  color: rgba(247, 250, 247, 0.68);
  font-size: 12px;
  line-height: 1.4;
}

.reflection-analysis {
  margin-top: 22px;
  border-block: 1px solid var(--line);
}

.reflection-analysis > summary {
  position: relative;
  display: grid;
  min-height: 72px;
  align-content: center;
  gap: 4px;
  padding: 14px 48px 14px 0;
  cursor: pointer;
  list-style: none;
}

.reflection-analysis > summary::-webkit-details-marker {
  display: none;
}

.reflection-analysis > summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
  content: "+";
  font-size: 22px;
  font-weight: 700;
  transform: translateY(-50%);
}

.reflection-analysis[open] > summary::after {
  content: "-";
}

.reflection-analysis > summary span,
.reflection-analysis > summary small {
  display: block;
}

.reflection-analysis > summary span {
  color: var(--paper);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.reflection-analysis > summary small {
  color: rgba(245, 241, 232, 0.62);
  font-size: 11px;
  line-height: 1.35;
}

.reflection-analysis-content {
  animation: detail-in 260ms ease-out both;
}

.future-breakdown {
  margin-inline: -16px;
  padding: 30px 16px 34px;
  background: rgba(245, 241, 232, 0.035);
  border-top: 1px solid var(--line);
}

.reflection-analysis > summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.path-explorer,
.stakeholder-impact {
  margin: 0 -16px;
  padding: 30px 16px 34px;
  background: rgba(247, 250, 247, 0.045);
  border-top: 1px solid var(--line);
}

.optional-reflection {
  margin-top: -1px;
}

.optional-reflection-content {
  margin: 0 -16px;
  padding: 26px 16px 34px;
  background: rgba(247, 250, 247, 0.035);
  border-top: 1px solid var(--line);
}

.optional-reflection-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 820px;
}

.reflection-prompt-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reflection-question-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  flex-shrink: 0;
  margin-top: 2px;
}

.question-text {
  flex: 1;
}

.reflection-textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  background: rgba(8, 26, 44, 0.85);
  border: 1px solid rgba(130, 217, 245, 0.28);
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.reflection-textarea:focus {
  outline: none;
  background: rgba(10, 32, 54, 0.95);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(213, 170, 72, 0.35);
}

.reflection-textarea::placeholder {
  color: rgba(247, 250, 247, 0.38);
}

.reflection-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.reflection-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}

.reflection-submit-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reflection-submit-btn:active {
  transform: translateY(0);
}

.reflection-save-status {
  font-size: 13.5px;
  font-weight: 750;
  color: #72c7ae;
  transition: opacity 200ms ease;
}

.path-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 4px;
  margin: 24px 0 20px;
}

.path-rail::before {
  position: absolute;
  z-index: 0;
  right: 4%;
  left: 4%;
  height: 2px;
  content: "";
  background: var(--sea);
}

.path-rail button {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  justify-self: center;
  padding: 0;
  color: var(--navy);
  background: var(--paper);
  border: 2px solid var(--navy-3);
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.path-rail button[aria-selected="true"] {
  background: var(--gold);
  transform: scale(1.18);
}

.decision-detail,
.stakeholder-detail {
  min-height: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.decision-detail-copy,
.stakeholder-detail-copy {
  animation: detail-in 240ms ease-out both;
}

.decision-detail h3,
.stakeholder-detail h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.15;
}

.decision-question,
.decision-affected,
.stakeholder-description {
  max-width: 760px;
  margin: 0 0 16px;
  color: rgba(247, 250, 247, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

.decision-question small,
.decision-affected small {
  display: block;
  margin-bottom: 4px;
  color: rgba(200, 211, 214, 0.62);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.decision-affected {
  margin-bottom: 10px;
}

.decision-affected b,
.decision-affected span {
  display: block;
}

.decision-affected b {
  color: var(--paper);
}

.decision-affected span {
  margin-top: 4px;
}

.tradeoff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tradeoff p {
  margin: 0;
  padding: 12px;
  background: rgba(247, 250, 247, 0.06);
  border-left: 3px solid currentColor;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.precaution-checkpoint {
  margin: 0 -16px;
  padding: 32px 16px 0;
  color: var(--navy);
  background: #eef3ef;
}

.precaution-checkpoint .section-heading > p {
  color: #8b661e;
}

.checkpoint-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.checkpoint-steps article {
  padding: 15px 0;
  border-top: 1px solid rgba(7, 24, 39, 0.18);
}

.checkpoint-steps small {
  color: #6c592e;
}

.checkpoint-steps p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.route-lesson {
  margin: 18px -16px 0;
  padding: 18px 16px;
  color: var(--navy);
  background: var(--gold);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}

.stakeholder-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stakeholder-tabs button {
  min-width: 0;
  padding: 12px;
  color: var(--paper);
  background: rgba(247, 250, 247, 0.055);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.stakeholder-tabs button[aria-selected="true"] {
  color: var(--navy);
  background: var(--sea);
  border-color: var(--sea);
}

.stakeholder-tabs strong,
.stakeholder-tabs span {
  display: block;
}

.stakeholder-tabs strong {
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.2;
}

.stakeholder-tabs span {
  color: rgba(247, 250, 247, 0.62);
  font-size: 11px;
  line-height: 1.25;
}

.stakeholder-tabs button[aria-selected="true"] span {
  color: rgba(7, 24, 39, 0.68);
}

.stakeholder-detail {
  margin-top: 18px;
}

.stakeholder-events {
  display: grid;
  gap: 8px;
}

.stakeholder-events article {
  padding: 14px;
  background: rgba(247, 250, 247, 0.065);
  border-left: 3px solid var(--sea);
  border-radius: 0 4px 4px 0;
}

.stakeholder-events small {
  color: var(--gold);
}

.stakeholder-events strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.stakeholder-events p {
  margin: 0;
  color: rgba(247, 250, 247, 0.74);
  font-size: 13px;
  line-height: 1.4;
}

.precaution-definition {
  margin: 0 -16px;
  padding: 30px 16px;
  color: var(--navy);
  background: var(--sea);
}

.precaution-definition > p {
  color: #173c3a;
}

.precaution-definition h2 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: 27px;
  line-height: 1.15;
  text-wrap: balance;
}

.precaution-definition span {
  display: block;
  max-width: 760px;
  color: rgba(7, 24, 39, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.reflection-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.restart,
.learn-more {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.restart {
  color: var(--navy);
  background: var(--gold);
  border: 0;
}

.learn-more {
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(245, 241, 232, 0.46);
  text-decoration: none;
}

.simulation-footer {
  margin-top: 36px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  text-align: center;
}

.simulation-copyright {
  margin: 0;
  color: rgba(245, 241, 232, 0.45);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

@keyframes light-pass {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes progress-step-in {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

@keyframes thumb-swipe-demo {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.94); }
  8% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  24% { opacity: 1; transform: translate3d(-46px, 0, 0) rotate(-7deg); }
  34% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
  48% { opacity: 1; transform: translate3d(0, 0, 0); }
  64% { opacity: 1; transform: translate3d(46px, 0, 0) rotate(7deg); }
  74% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
  88% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.96); }
}

@keyframes option-demo-left {
  0%, 8%, 34%, 100% { transform: translate3d(0, 0, 0); filter: brightness(1); }
  24% { transform: translate3d(-14px, 0, 0); filter: brightness(1.08); }
}

@keyframes option-demo-right {
  0%, 48%, 74%, 100% { transform: translate3d(0, 0, 0); filter: brightness(1); }
  64% { transform: translate3d(14px, 0, 0); filter: brightness(1.08); }
}

@keyframes touch-pulse {
  0% { opacity: 0.8; transform: translateX(-50%) scale(0.65); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.45); }
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes future-scene-in {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes future-photo-drift {
  from { transform: translate3d(-0.3%, 0, 0) scale(1.01); }
  to { transform: translate3d(0.4%, -0.25%, 0) scale(1.035); }
}

@keyframes future-boat-drift {
  from { transform: translate3d(-1px, 0, 0) rotate(-0.15deg); }
  to { transform: translate3d(2px, 3px, 0) rotate(0.2deg); }
}

@keyframes future-monitor-drift {
  from { transform: translate3d(0, -1px, 0) rotate(0.1deg); }
  to { transform: translate3d(2px, 2px, 0) rotate(-0.15deg); }
}

@keyframes future-wave {
  from { transform: translateX(-14px); }
  to { transform: translateX(14px); }
}

@keyframes future-fish {
  from { transform: translateX(-7px); }
  to { transform: translateX(7px); }
}

@keyframes future-signal {
  0% { opacity: 0.7; transform: scale(0.55); transform-origin: 532px 299px; }
  100% { opacity: 0; transform: scale(1.25); transform-origin: 532px 299px; }
}

@keyframes future-plume {
  from { transform: translateX(-8px) scale(0.96); opacity: 0.5; }
  to { transform: translateX(12px) scale(1.04); opacity: 0.7; }
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes choices-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes beat-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes beat-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

@media (max-height: 700px) {
  .decision {
    grid-template-rows: auto minmax(204px, 1fr);
    gap: 8px;
  }

  .copy {
    padding: 16px 18px;
  }

  .situation-text,
  .previously {
    margin-bottom: 12px;
    font-size: 17.5px;
    line-height: 1.46;
  }

  .decision h1,
  .decision-question-heading {
    font-size: 21px;
    line-height: 1.22;
  }

  .choice {
    gap: 6px;
    padding: 12px 10px;
  }

  .choice-title {
    font-size: 22px;
  }

  .choice-detail {
    font-size: 13.5px;
  }

  .impact {
    font-size: 24px;
  }

  .beat {
    padding-top: 14px;
  }

  .beat-copy {
    margin-top: -12px;
  }

  .chosen {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .consequence-kicker {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .tradeoff-but {
    margin: 8px 0;
    font-size: 20px;
  }

  .affected-impact {
    margin-top: 14px;
    margin-bottom: 0;
    padding: 8px 12px;
  }

  .affected-impact strong {
    font-size: 13.5px;
  }
}

@media (max-height: 610px) {
  .hud {
    min-height: 42px;
  }

  .decision {
    grid-template-rows: auto minmax(188px, 1fr);
    padding-top: 0;
  }

  .copy {
    padding: 14px 16px;
  }

  .situation-text,
  .previously {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .decision h1,
  .decision-question-heading {
    font-size: 19.5px;
    line-height: 1.2;
  }

  .choice-title {
    font-size: 20px;
  }

  .choice-detail {
    font-size: 12.5px;
  }

  .impact {
    font-size: 20px;
  }

  .beat-copy {
    margin-top: -6px;
  }

  .consequence-kicker {
    margin-bottom: 8px;
    font-size: 10.5px;
  }

  .tradeoff-but {
    margin-block: 6px;
    font-size: 18px;
  }

  .affected-impact {
    margin-top: 8px;
    padding: 6px 10px;
  }

  .affected-impact strong {
    font-size: 12.5px;
  }
}

@media (max-width: 520px) {
  .future-intro h1 {
    font-size: 31px;
  }

  .outcome-summary {
    font-size: 13px;
  }

  .future-scene {
    min-height: 250px;
  }

  .future-detail-heading {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .tradeoff {
    grid-template-columns: 1fr;
  }

  .checkpoint-steps {
    grid-template-columns: 1fr;
  }

  .precaution-definition h2 {
    font-size: 23px;
  }

  .reflection-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .decision {
    padding: 10px 24px 24px;
    gap: 18px;
  }

  .copy {
    padding: 22px 26px;
  }

  .situation-text,
  .previously {
    margin-bottom: 16px;
    padding-bottom: 16px;
    font-size: 18px;
    line-height: 1.56;
  }

  .decision h1,
  .decision-question-heading {
    font-size: 26px;
    line-height: 1.28;
  }

  .choice-title {
    font-size: 36px;
  }

  .choice-detail {
    max-width: 310px;
    font-size: 16px;
  }

  .beat {
    padding-inline: 8vw;
  }

  .impact {
    font-size: 48px;
  }

  .reflection-screen main {
    padding-inline: 28px;
  }

  .outcome-dimensions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .future-outcome,
  .future-breakdown,
  .path-explorer,
  .optional-reflection-content,
  .precaution-checkpoint,
  .stakeholder-impact,
  .precaution-definition {
    margin-inline: -28px;
    padding-inline: 28px;
  }

  .future-factor-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .future-causes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-lesson {
    margin-inline: -28px;
    padding-inline: 28px;
  }

  .stakeholder-tabs,
  .stakeholder-events {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .swipe-demo {
    display: none;
  }
}
