:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --surface: #ffffff;
  --ink: #1b242b;
  --muted: #65717b;
  --line: #dfe3e5;
  --accent: #3667d6;
  --accent-soft: #edf2ff;
  --green: #3b806e;
  --orange: #c8744c;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  min-width: 300px;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button,
a,
input {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  z-index: 100;
  border-radius: 6px;
}
.skip-link:focus {
  transform: none;
}
.runtime-notice {
  padding: 16px 24px;
  color: #593b20;
  background: #fff0d8;
  font-size: 14px;
  line-height: 1.6;
}
.app-header {
  min-height: 68px;
  padding: 0 36px;
  display: flex;
  gap: 42px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wordmark strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -1.2px;
}
.brand-symbol {
  width: 33px;
  height: 33px;
  color: #313c43;
}
.brand-symbol svg {
  display: block;
  width: 100%;
  height: 100%;
}
.header-links,
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-actions {
  margin-left: auto;
  gap: 20px;
}
.header-links > a,
.plain-button {
  font-size: 13px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--muted);
}
.header-links .nav-current {
  color: var(--ink);
  position: relative;
  min-height: 68px;
}
.nav-current::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
}
.plain-button:hover,
.header-links a:hover {
  color: var(--ink);
}
.demo-badge {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.demo-badge i {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.activity-button {
  gap: 8px;
}
#activityCount {
  font-size: 11px;
  background: #f0f2f3;
  color: #56616c;
  border-radius: 4px;
  min-width: 20px;
  line-height: 20px;
  text-align: center;
}
.token-button {
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
}
.token-button:hover {
  border-color: #a4adb5;
  background: #f8f9fa;
}
.token-button span {
  margin-left: 12px;
  color: var(--muted);
}
main {
  max-width: 1544px;
  margin: 0 auto;
  padding: 23px 36px 0;
}
.mission-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.kicker,
.eyebrow {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 1.25px;
  color: var(--muted);
}
.kicker {
  margin-bottom: 8px;
}
h1 {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.18;
  letter-spacing: -1.65px;
}
h1 span {
  color: #7b858c;
}
.premise {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 9px;
}
.paper-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 12px 16px;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 500;
}
.paper-pill small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
}
.paper-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #d7dad8;
  border-radius: 50%;
  font-size: 18px;
  transition: transform 0.2s;
}
.paper-pill:hover .paper-icon {
  transform: translate(2px, -2px);
  border-color: #8b969e;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 24px;
}
.world-column,
.command {
  min-width: 0;
}
.world-topbar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 1px 13px;
}
.view-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.view-icon {
  font-size: 19px;
  color: #73818b;
  font-weight: 400;
}
.view-type {
  border: 1px solid #d8dcd9;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 9px;
  color: #727e85;
  margin-left: 2px;
}
.world-switch {
  display: inline-flex;
  border: 1px solid #d8dddf;
  padding: 3px;
  border-radius: 6px;
  background: #eceeec;
  gap: 2px;
}
.world-switch button {
  min-height: 27px;
  font-size: 11px;
  color: #737f89;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.world-switch button i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ba795d;
}
.world-switch button[data-theme-choice='solstice'] i {
  background: #b7a264;
}
.world-switch button[data-theme-choice='vesper'] i {
  background: #658fc5;
}
.world-switch button[aria-pressed='true'] {
  color: #34414e;
  background: white;
  box-shadow: 0 1px 3px #1d30351a;
}
.world-frame {
  background: #08111c;
  border: 1px solid #1c2b3b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 7px 18px #1126380b;
}
.habitat {
  position: relative;
  height: clamp(400px, 39vw, 570px);
  overflow: hidden;
  isolation: isolate;
  color: #e5edf4;
  background: radial-gradient(ellipse at 50% 53%, #192c403b 0, transparent 58%), #070f19;
}
body[data-theme='bloom'] .habitat {
  background: radial-gradient(ellipse at 50% 53%, #4b302530, transparent 65%), #100e11;
}
body[data-theme='solstice'] .habitat {
  background: radial-gradient(ellipse at 50% 53%, #4a432b30, transparent 65%), #100f0c;
}
.reef-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}
body[data-scene='ready'] .reef-scene {
  opacity: 1;
}
.reef-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.reef-scene canvas.dragging {
  cursor: grabbing;
}
.scene-title,
.scene-live,
.scene-gesture {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.scene-title {
  top: 23px;
  left: 24px;
}
.scene-eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #96a7b9;
}
.scene-live {
  top: 25px;
  right: 23px;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #90a2b6;
}
.scene-live i {
  width: 5px;
  height: 5px;
  background: #7ba799;
  border-radius: 50%;
}
.scene-gesture {
  left: 24px;
  bottom: 19px;
  font-size: 10px;
  color: #7a8c9f;
}
.scene-note {
  display: none;
}
.map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.map-marker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #58738d4d;
  border-radius: 5px;
  color: #c0d0df;
  background: #0a1722de;
  text-align: left;
  font-size: 8px;
  letter-spacing: 0.9px;
  pointer-events: auto;
  min-height: 40px;
  white-space: nowrap;
  box-shadow: 0 2px 10px #0000001a;
}
.map-marker i {
  width: 5px;
  height: 5px;
  border: 1px solid #8ca4bc;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-marker small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #7f98b0;
  letter-spacing: 0;
}
.map-marker:hover,
.map-marker[aria-pressed='true'] {
  border-color: #8ba6bd99;
  background: #122539ed;
  color: #eff6ff;
}
.map-marker[aria-pressed='true'] i {
  background: #adc7e7;
  border-color: #adc7e7;
}
body:not([data-scene='ready']) .map-markers {
  visibility: hidden;
}
.scene-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  color: #91a3b5;
  border-top: 1px solid #283647;
  background: #101b28;
}
.scene-toolbar button {
  min-height: 32px;
  min-width: 32px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.scene-toolbar button:hover {
  background: #253343;
  color: #e6edf5;
}
.camera-modes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 12px;
}
.camera-modes button {
  font-size: 11px;
}
.camera-modes button[aria-pressed='true'] {
  color: #e8eff6;
  background: #2a3848;
}
.scene-toolbar .motion-button {
  margin-left: auto;
  font-size: 11px;
  padding-right: 0;
}
.scene-toolbar .motion-button::before {
  content: 'Ⅱ';
  margin-right: 7px;
  font-size: 10px;
}
.scene-toolbar .motion-button[aria-pressed='true']::before {
  content: '▷';
}
.flight-event {
  position: absolute;
  z-index: 6;
  bottom: 53px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  border: 1px solid #58718d88;
  border-radius: 7px;
  padding: 13px 18px;
  display: flex;
  gap: 12px;
  background: #112232f2;
  color: #e4ecf4;
  box-shadow: 0 4px 28px #0003;
}
.flight-event #eventLabel {
  display: block;
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #97afc6;
  margin-bottom: 4px;
}
.flight-event strong {
  font-weight: 500;
  font-size: 15px;
}
.flight-event p {
  font-size: 11px;
  line-height: 1.6;
  color: #a3b6c8;
  margin-top: 5px;
}
.event-orbit {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  background: #82b0d8;
  border-radius: 50%;
}
.flight-event[data-phase='result'] .event-orbit {
  background: #79b69e;
}
.event-steps {
  display: none;
}
.object-inspector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  padding: 21px 2px 0;
  min-height: 115px;
}
.inspector-top {
  grid-column: 1;
  margin-bottom: 6px;
}
.inspector-top .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.object-inspector h2 {
  grid-column: 1;
  font-size: 17px;
  letter-spacing: -0.4px;
}
.object-inspector > p {
  grid-column: 1;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 500px;
  line-height: 1.6;
}
.inspect-metric {
  grid-column: 2;
  grid-row: 1 / span 3;
  text-align: right;
  padding-top: 2px;
}
.inspect-metric > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.inspect-metric > strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.inspect-metric small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 3px;
}
.inspect-foot {
  display: none;
}
.object-inspector .text-link {
  grid-column: 1;
  justify-self: start;
  font-size: 11px;
  min-height: 30px;
  padding: 8px 0 0;
}
body[data-focus='field'] #overviewBtn {
  visibility: hidden;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  min-height: 36px;
  font-size: 12px;
  color: #475c7c;
}
.text-link:hover {
  color: var(--accent);
}
.command {
  background: var(--surface);
  border: 1px solid #d9dfe1;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 46px;
}
.field-instrument {
  padding: 16px 22px 13px;
  background: #f9faf9;
  border-bottom: 1px solid var(--line);
}
.charge-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.charge-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
#chargePhase {
  font-size: 10px;
  color: var(--muted);
}
.reef-readout {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 9px;
}
.health-number {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Space Grotesk', sans-serif;
}
.health-number strong {
  font-weight: 500;
  font-size: 37px;
  letter-spacing: -1.9px;
  line-height: 1;
}
.health-number > span {
  font-size: 16px;
  color: var(--muted);
}
.reef-gauge {
  flex: 1;
  min-width: 0;
}
.gauge-label {
  font-size: 10px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 8px;
}
#healthUnits,
#reefCaption {
  display: none;
}
.health-track {
  height: 4px;
  background: #e2e9e5;
  border-radius: 3px;
  overflow: hidden;
}
.health-track i {
  display: block;
  width: 78%;
  height: 100%;
  background: #72998d;
  border-radius: inherit;
  transition: width 0.15s linear;
}
.charge-sequence {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 9px;
  color: var(--muted);
}
.charge-sequence b {
  display: block;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #566471;
  margin-top: 3px;
}
.charge-sequence i {
  font-style: normal;
  color: #aeb8be;
}
.charge-sequence[data-phase='recharge'] span:nth-of-type(2) b {
  color: var(--green);
}
.charge-sequence[data-phase='extract'] span:nth-of-type(3) b {
  color: var(--orange);
}
.command-top {
  padding: 14px 22px 12px;
}
.command-top .eyebrow {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.4px;
}
.command h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin-top: 5px;
}
#rivalSummary {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  margin-top: 8px;
}
.decision-dock {
  padding: 0 18px 16px;
}
.order-options {
  padding: 0;
  margin: 0;
  border: 0;
  display: grid;
  gap: 7px;
  min-width: 0;
}
.order-option {
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.order-option:hover:not(:disabled) {
  border-color: #9aaebc;
  background: #fafbfc;
}
.order-option.selected {
  background: #f2f5fc;
  border-color: #7f99ca;
  box-shadow: inset 2px 0 0 #567cbc;
}
.order-mark {
  width: 26px;
  height: 26px;
  color: #6b7986;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.order-mark svg {
  width: 24px;
  height: 24px;
}
.selected .order-mark {
  color: #456ba9;
}
.option-copy {
  flex: 1;
  min-width: 0;
}
.option-copy strong {
  font-size: 12px;
  font-weight: 500;
}
.option-copy small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: var(--muted);
}
.option-payoff {
  font-size: 17px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.option-payoff small {
  display: block;
  font-size: 9px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.choice-indicator {
  display: none;
}
.forecast {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 13px 3px;
}
.forecast > div:last-child {
  text-align: right;
}
.forecast > div > span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.forecast strong {
  font-size: 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}
.forecast small {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.change-divider {
  color: #99a6af;
  padding: 0 2px;
  font-size: 13px;
}
.commit-button {
  width: 100%;
  min-height: 45px;
  padding: 12px 17px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: #345d9f;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 3px #12305d12;
  transition:
    background 0.15s,
    transform 0.15s;
}
.commit-button::after {
  content: '↗';
  font-size: 17px;
  font-weight: 400;
}
.commit-button:hover:not(:disabled) {
  background: #254b8b;
  transform: translateY(-1px);
}
.commit-button:active {
  transform: translateY(0);
}
.commit-button:disabled {
  opacity: 0.7;
}
.order-help {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 9px 3px 0;
  min-height: 16px;
}
.completed-note {
  padding: 0 22px 17px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}
.expedition-summary {
  border-top: 1px solid var(--line);
  padding: 15px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
}
.score-total {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.score-total > span {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.score-info {
  font-size: 13px;
  width: 20px;
  height: 20px;
  padding: 0;
  color: var(--muted);
}
.score-total strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin-top: 3px;
}
.score-total small {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.journey {
  grid-column: 2;
  min-width: 0;
}
.journey-label {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}
.round-progress {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.round-progress i {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: #e4e8ea;
}
.round-progress i.done {
  background: #6b85ab;
}
.reset-button {
  grid-column: 2;
  justify-self: end;
  font-size: 10px;
  color: var(--muted);
  padding: 8px 0 0;
  min-height: 28px;
}
.reset-button:hover {
  color: var(--ink);
}
.theory-section {
  margin-top: 36px;
  padding: 32px 0 34px;
  border-top: 1px solid #d9dfdf;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7%;
}
.section-number {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0;
  font-size: 10px;
  border: 1px solid #ced5d8;
  border-radius: 4px;
  padding: 3px 5px;
  margin-right: 8px;
}
.theory-copy h2 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.9px;
  margin-top: 15px;
}
.theory-copy > p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 12px;
  max-width: 440px;
}
.tradeoff {
  border-left: 2px solid #c6d0de;
  padding: 1px 0 1px 14px;
  margin: 17px 0 13px;
  max-width: 450px;
}
.tradeoff > span {
  display: none;
}
.tradeoff p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.tradeoff strong {
  font-weight: 500;
  color: #3c4e63;
}
.theory-copy .text-link {
  font-size: 11px;
}
.second-link {
  margin-left: 24px;
}
.round-story {
  padding: 2px 0;
  min-width: 0;
}
.story-intro .eyebrow {
  font-size: 9px;
}
.story-intro h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin-top: 9px;
}
.story-intro p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 8px;
  max-width: 420px;
}
.flow-bars {
  margin-top: 23px;
}
.flow-row {
  display: grid;
  grid-template-columns: 65px 1fr 37px;
  align-items: center;
  gap: 14px;
  margin: 13px 0;
  font-size: 11px;
  color: var(--muted);
}
.flow-row > strong {
  font-size: 11px;
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #455363;
}
.flow-track {
  display: flex;
  height: 8px;
  background: #e2e6e5;
  border-radius: 3px;
  overflow: hidden;
}
.flow-track i {
  display: block;
  height: 100%;
  transition: width 0.3s;
}
.growth-bar {
  background: #8eafa3;
}
.own-bar {
  background: #6d89b1;
}
.others-bar {
  background: #b9c4d1;
}
.flow-legend {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 17px 0 0 79px;
  color: var(--muted);
  font-size: 9px;
}
.flow-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.flow-legend b {
  font-weight: 500;
  color: #526474;
}
.flow-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.own-dot {
  background: #6d89b1;
}
.others-dot {
  background: #b9c4d1;
}
.flow-legend > small {
  display: none;
}
.round-accounting {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.round-accounting > div {
  font-size: 10px;
  color: var(--muted);
}
.round-accounting strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #455361;
  display: block;
  margin-top: 6px;
  letter-spacing: -0.5px;
}
.math-sign {
  color: #a3aeb5;
  font-size: 14px;
}
#deltaValue {
  color: #a26f54;
}
#deltaValue.positive {
  color: var(--green);
}
.site-footer {
  max-width: 1472px;
  margin: 0 auto;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.footer-brand {
  color: #4f5b65;
  font-weight: 500;
}
.footer-brand > span {
  padding: 0 5px;
  color: #8c979f;
}
.session-status {
  font-size: 9px;
  color: var(--muted);
}
.scene-fallback {
  display: none;
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 280px;
  max-width: calc(100% - 40px);
  color: #b9cbdb;
}
.scene-fallback strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}
.scene-fallback p {
  font-size: 12px;
  line-height: 1.7;
  color: #91a8bd;
}
.scene-fallback button {
  margin-top: 20px;
  padding: 10px 15px;
  border: 1px solid #597087;
  border-radius: 5px;
  font-size: 12px;
  color: #d0dfec;
}
body[data-scene='fallback'] .scene-fallback {
  display: block;
}
body[data-scene='fallback'] .reef-scene,
body[data-scene='fallback'] .map-markers {
  visibility: hidden;
}
body[data-scene='fallback'] .scene-toolbar,
body[data-scene='fallback'] .scene-gesture {
  display: none;
}
@media (min-width: 1545px) {
  .site-footer {
    width: calc(100% - 72px);
  }
}
@media (max-width: 1544px) {
  .site-footer {
    margin-left: 36px;
    margin-right: 36px;
  }
}
@media (max-width: 1150px) {
  .app-header {
    padding: 0 24px;
    gap: 28px;
  }
  .header-links {
    gap: 20px;
  }
  .header-actions {
    gap: 16px;
  }
  .demo-badge {
    display: none;
  }
  main {
    padding: 28px 24px 0;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
  }
  .habitat {
    height: 510px;
  }
  .world-topbar {
    align-items: center;
  }
  .view-type {
    display: none;
  }
  .world-switch button {
    padding: 3px 7px;
  }
  .view-label {
    font-size: 11px;
  }
  .view-icon {
    display: none;
  }
  .field-instrument,
  .command-top,
  .expedition-summary {
    padding-left: 18px;
    padding-right: 18px;
  }
  .decision-dock {
    padding-left: 14px;
    padding-right: 14px;
  }
  .order-option {
    gap: 8px;
    padding: 10px;
  }
  .site-footer {
    margin-left: 24px;
    margin-right: 24px;
  }
}
@media (max-width: 850px) {
  .app-header {
    min-height: 64px;
    flex-wrap: wrap;
    padding: 0 20px;
    gap: 22px;
  }
  .wordmark strong {
    font-size: 23px;
  }
  .brand-symbol {
    width: 28px;
    height: 28px;
  }
  .header-links {
    gap: 16px;
  }
  .header-links .nav-current {
    min-height: 64px;
  }
  .header-actions {
    gap: 14px;
  }
  .token-button {
    font-size: 0;
    min-width: 33px;
    padding: 4px;
  }
  .token-button span {
    font-size: 16px;
    margin: 0;
  }
  main {
    padding: 25px 20px 0;
  }
  .mission-heading {
    margin-bottom: 23px;
  }
  .paper-pill {
    font-size: 11px;
  }
  .paper-pill small {
    display: none;
  }
  .paper-icon {
    width: 29px;
    height: 29px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 295px;
    gap: 16px;
  }
  .world-topbar {
    flex-direction: column;
    align-items: flex-start;
    height: 70px;
    padding-bottom: 11px;
    gap: 8px;
  }
  .view-label {
    font-size: 12px;
  }
  .command {
    margin-top: 70px;
  }
  .habitat {
    height: 505px;
  }
  .scene-title {
    left: 16px;
    top: 18px;
  }
  .scene-eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .scene-live {
    top: 38px;
    left: 16px;
    right: auto;
    font-size: 9px;
  }
  .scene-toolbar {
    padding: 8px;
    gap: 2px;
    flex-wrap: wrap;
  }
  .scene-toolbar button {
    padding: 5px 7px;
  }
  .camera-modes {
    margin-right: auto;
  }
  .scene-toolbar .motion-button {
    font-size: 10px;
  }
  .object-inspector {
    column-gap: 12px;
  }
  .object-inspector > p {
    font-size: 11px;
  }
  .inspect-metric {
    max-width: 95px;
  }
  .inspect-metric > span {
    line-height: 1.5;
  }
  .inspect-metric > strong {
    font-size: 20px;
  }
  .theory-section {
    gap: 32px;
  }
  .theory-copy h2 {
    font-size: 24px;
  }
  .flow-legend {
    margin-left: 0;
  }
  .second-link {
    margin-left: 12px;
  }
}
@media (max-width: 700px) {
  .app-header {
    padding: 14px 18px 0;
    gap: 6px 20px;
  }
  .wordmark {
    flex: 1;
  }
  .header-actions {
    margin-left: 0;
  }
  .header-links {
    width: 100%;
    order: 3;
    gap: 26px;
  }
  .header-links .nav-current {
    min-height: 44px;
  }
  .header-links button {
    min-height: 44px;
  }
  .activity-button {
    min-height: 36px;
    font-size: 12px;
  }
  .token-button {
    font-size: 11px;
    padding: 7px 10px;
  }
  .token-button span {
    font-size: 13px;
    margin-left: 8px;
  }
  main {
    padding: 25px 18px 0;
  }
  .mission-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .mission-heading h1 {
    font-size: 31px;
    letter-spacing: -1.3px;
  }
  .premise {
    font-size: 12px;
    max-width: 260px;
  }
  .kicker {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .paper-pill {
    padding: 0;
    margin-top: 25px;
  }
  .paper-pill > span:last-child {
    display: none;
  }
  .paper-icon {
    width: 33px;
    height: 33px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .world-topbar {
    flex-direction: row;
    align-items: center;
    height: auto;
    min-height: 45px;
    gap: 9px;
    padding-bottom: 10px;
  }
  .view-label {
    font-size: 11px;
  }
  .world-switch button {
    font-size: 10px;
    min-height: 29px;
    padding: 3px 8px;
  }
  .habitat {
    height: 390px;
  }
  .scene-title {
    top: 20px;
    left: 20px;
  }
  .scene-eyebrow {
    font-size: 9px;
  }
  .scene-live {
    top: 40px;
    left: 20px;
  }
  .scene-gesture {
    left: 20px;
    bottom: 18px;
    font-size: 10px;
  }
  .scene-toolbar {
    padding: 8px 12px;
    gap: 4px;
  }
  .scene-toolbar button {
    min-height: 34px;
    padding: 5px 10px;
  }
  .camera-modes {
    margin-right: auto;
  }
  .scene-toolbar .motion-button {
    font-size: 11px;
  }
  .object-inspector {
    padding: 16px 2px 0;
    min-height: 0;
  }
  .object-inspector > p {
    font-size: 12px;
  }
  .object-inspector h2 {
    font-size: 16px;
  }
  .inspect-metric {
    max-width: none;
  }
  .inspect-metric > strong {
    font-size: 21px;
  }
  .command {
    margin-top: 0;
  }
  .field-instrument {
    padding: 18px 20px;
  }
  .reef-readout {
    gap: 24px;
  }
  .health-number strong {
    font-size: 40px;
  }
  .charge-sequence {
    gap: 20px;
  }
  .charge-sequence span {
    flex: 1;
  }
  .charge-sequence span:last-child {
    text-align: right;
  }
  .charge-sequence span:nth-of-type(2) {
    text-align: center;
  }
  .command-top {
    padding: 20px 20px 15px;
  }
  .command-top .eyebrow {
    font-size: 11px;
  }
  .command h2 {
    font-size: 24px;
  }
  #rivalSummary {
    font-size: 12px;
  }
  .decision-dock {
    padding: 0 16px 18px;
  }
  .order-option {
    min-height: 69px;
    padding: 12px;
    gap: 13px;
  }
  .option-copy strong {
    font-size: 14px;
  }
  .option-copy small {
    font-size: 11px;
  }
  .option-payoff {
    font-size: 20px;
  }
  .option-payoff small {
    font-size: 10px;
  }
  .forecast {
    margin: 21px 4px;
  }
  .forecast > div > span {
    font-size: 11px;
  }
  .forecast strong {
    font-size: 21px;
  }
  .forecast small {
    font-size: 11px;
  }
  .commit-button {
    min-height: 49px;
    font-size: 13px;
  }
  .order-help {
    font-size: 11px;
    margin-top: 11px;
    min-height: 0;
  }
  .expedition-summary {
    padding: 18px 20px;
    column-gap: 40px;
  }
  .journey-label {
    font-size: 10px;
  }
  .score-total > span {
    font-size: 11px;
  }
  .score-total strong {
    font-size: 25px;
  }
  .reset-button {
    font-size: 11px;
  }
  .theory-section {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
    padding-top: 27px;
  }
  .theory-copy h2 {
    font-size: 28px;
  }
  .theory-copy > p {
    font-size: 13px;
  }
  .tradeoff p {
    font-size: 12px;
  }
  .theory-copy .text-link {
    font-size: 12px;
  }
  .second-link {
    margin-left: 18px;
  }
  .round-story {
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .story-intro p {
    font-size: 12px;
  }
  .flow-legend {
    font-size: 10px;
    margin-left: 0;
  }
  .site-footer {
    margin: 0 18px;
    padding: 21px 0 26px;
    display: block;
  }
  .site-footer > span {
    display: block;
  }
  .footer-brand {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .site-footer .session-status {
    display: block;
    margin-top: 8px;
  }
}
@media (max-width: 380px) {
  .app-header {
    padding: 12px 14px 0;
  }
  .header-actions {
    gap: 12px;
  }
  .token-button {
    font-size: 0;
    padding: 4px;
  }
  .token-button span {
    font-size: 16px;
    margin: 0;
  }
  main {
    padding: 24px 14px 0;
  }
  .mission-heading h1 {
    font-size: 27px;
  }
  .mission-heading {
    gap: 8px;
  }
  .paper-pill {
    margin-top: 23px;
  }
  .paper-icon {
    width: 27px;
    height: 27px;
    font-size: 15px;
  }
  .view-label {
    font-size: 10px;
  }
  .world-switch button {
    padding: 3px 5px;
    font-size: 9px;
  }
  .world-switch {
    gap: 0;
    padding: 2px;
  }
  .world-switch button i {
    display: none;
  }
  .habitat {
    height: 360px;
  }
  .scene-toolbar {
    gap: 2px;
    padding: 7px;
  }
  .scene-toolbar button {
    padding: 5px 6px;
    min-width: 28px;
  }
  .camera-modes {
    gap: 0;
    margin-right: 0;
  }
  .scene-toolbar .motion-button {
    font-size: 10px;
  }
  .scene-toolbar .motion-button::before {
    display: none;
  }
  .map-marker {
    padding: 7px;
    gap: 6px;
    font-size: 8px;
  }
  .map-marker small {
    font-size: 9px;
  }
  .object-inspector {
    column-gap: 12px;
  }
  .inspect-metric {
    max-width: 85px;
  }
  .field-instrument,
  .command-top,
  .expedition-summary {
    padding-left: 16px;
    padding-right: 16px;
  }
  .decision-dock {
    padding-left: 12px;
    padding-right: 12px;
  }
  .order-option {
    gap: 9px;
  }
  .forecast strong {
    font-size: 19px;
  }
  .expedition-summary {
    column-gap: 20px;
  }
  .flow-legend {
    gap: 10px;
  }
  .second-link {
    margin-left: 0;
    display: flex;
  }
  .site-footer {
    margin: 0 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
