:root {
  --bg: #080607;
  --rust: #2a1a1a;
  --rust-dark: #130c0c;
  --rust-bright: #6a422b;
  --mold: #3d5229;
  --amber: #d38a2b;
  --amber-hot: #ffc66f;
  --text: #ede0cd;
  --muted: #ad9075;
  --line: rgba(255, 196, 119, 0.12);
  --line-strong: rgba(255, 196, 119, 0.22);
  --blood: #4a0000;
  --emerald: #91bb68;
  --glass: rgba(10, 8, 8, 0.76);
  color-scheme: dark;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(211, 138, 43, 0.1), transparent 24%),
    radial-gradient(circle at bottom, rgba(61, 82, 41, 0.12), transparent 28%),
    linear-gradient(180deg, #120c0c, #050405 65%);
  color: var(--text);
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.74), transparent 55%);
  opacity: 0.32;
}

#world {
  position: fixed;
  inset: 0;
}

#world canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#ui-root {
  position: fixed;
  inset: 0;
  pointer-events: auto;
}

.hud-shell {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.top-strip {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.top-strip,
.status-strip,
.story-beat,
.toast-stack,
.crosshair,
.world-prompt {
  pointer-events: none;
}

#toastMount,
#choiceMount,
#summaryMount {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#toastMount {
  pointer-events: none;
}

#choiceMount {
  z-index: 70;
}

#summaryMount {
  z-index: 80;
}

#choiceMount.active,
#summaryMount.active {
  pointer-events: auto;
}

.floating-overlay-root {
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
}

.floating-overlay-root.active {
  pointer-events: auto;
}

.chip-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 9, 9, 0.72);
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: rgba(255, 228, 182, 0.88);
  backdrop-filter: blur(10px);
}

.chip.warm {
  border-color: rgba(255, 196, 119, 0.18);
  color: rgba(255, 209, 142, 0.94);
}

.chip.accent {
  border-color: rgba(145, 187, 104, 0.22);
  color: rgba(205, 236, 163, 0.92);
}

.chip.objective {
  max-width: min(30vw, 360px);
  text-align: right;
}

.status-strip {
  position: absolute;
  top: 96px;
  right: 24px;
  width: min(28vw, 340px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.status-card {
  padding: 14px 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    rgba(18, 13, 11, 0.58);
  border: 1px solid rgba(255, 196, 119, 0.16);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 232, 190, 0.04);
  backdrop-filter: blur(16px);
}

.status-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(173, 144, 117, 0.92);
}

.status-value {
  display: block;
  font-size: 14px;
  line-height: 1.42;
  color: rgba(248, 236, 210, 0.96);
}

.story-beat {
  position: absolute;
  top: 118px;
  left: 24px;
  max-width: min(32vw, 420px);
  padding: 16px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%),
    rgba(18, 13, 11, 0.56);
  border: 1px solid rgba(255, 196, 119, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  color: rgba(246, 234, 211, 0.92);
  line-height: 1.58;
  font-size: 14px;
  backdrop-filter: blur(16px);
}

.toast-stack {
  position: absolute;
  right: 24px;
  bottom: 96px;
  width: min(24vw, 300px);
  display: grid;
  gap: 12px;
}

.toast-card {
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(144, 90, 54, 0.22), rgba(21, 13, 11, 0.84) 52%);
  border: 1px solid rgba(255, 196, 119, 0.16);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  animation: toastRise 180ms ease;
}

.toast-kicker,
.toast-title,
.toast-copy {
  display: block;
}

.toast-kicker {
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(173, 144, 117, 0.9);
}

.toast-title {
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 226, 176, 0.94);
}

.toast-copy {
  font-size: 13px;
  line-height: 1.42;
  color: rgba(237, 222, 198, 0.8);
}

.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 214, 145, 0.82);
  box-shadow: 0 0 12px rgba(211, 138, 43, 0.3);
}

.crosshair::before {
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 1px;
  transform: translateX(-50%);
}

.crosshair::after {
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1px;
  transform: translateY(-50%);
}

.world-prompt {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: min(72vw, 620px);
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(18, 13, 11, 0.62);
  border: 1px solid rgba(255, 196, 119, 0.14);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 229, 198, 0.88);
  opacity: 0;
  transition: opacity 180ms ease;
  backdrop-filter: blur(10px);
}

.world-prompt.visible {
  opacity: 1;
}

.debug-panel {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: min(34vw, 460px);
  max-height: min(34vh, 320px);
  padding: 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
    rgba(10, 8, 8, 0.7);
  border: 1px solid rgba(255, 196, 119, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  pointer-events: none;
  overflow: hidden;
}

.debug-status {
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 205, 178, 0.82);
}

.debug-log {
  display: grid;
  gap: 8px;
  max-height: min(24vh, 220px);
  overflow: auto;
}

.debug-entry {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 196, 119, 0.08);
}

.debug-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.debug-time,
.debug-source {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.debug-time {
  color: rgba(173, 144, 117, 0.84);
}

.debug-source {
  color: rgba(184, 213, 129, 0.88);
}

.debug-message {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(245, 231, 202, 0.94);
}

.debug-details {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(223, 210, 187, 0.74);
}

.overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.terminal-overlay,
.inspect-overlay,
.choice-overlay,
.summary-overlay {
  display: grid;
  place-items: center;
  background: rgba(10, 7, 7, 0.48);
  backdrop-filter: blur(12px);
  z-index: 40;
}

.choice-overlay,
.summary-overlay {
  z-index: 70;
}

.choice-card,
.summary-card,
.inspect-card,
.terminal-card {
  position: relative;
  z-index: 1;
}

.terminal-card,
.inspect-card,
.choice-card,
.summary-card {
  pointer-events: auto;
}

.terminal-card {
  width: min(95vw, 1320px);
  max-height: 92vh;
  border-radius: 30px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 16%),
    linear-gradient(135deg, rgba(129, 82, 51, 0.38), rgba(22, 14, 12, 0.9) 42%);
  border: 1px solid rgba(255, 196, 119, 0.14);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 219, 163, 0.05);
  overflow: hidden;
}

.terminal-header,
.inspect-head,
.choice-head,
.summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.terminal-brand {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 214, 149, 0.86);
}

.terminal-sub,
.inspect-sponsor,
.summary-sub {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(173, 144, 117, 0.84);
}

.terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 320px;
  gap: 18px;
  margin-top: 18px;
}

.terminal-main {
  display: grid;
  gap: 14px;
}

.screen-card,
.log-card,
.panel-card,
.inspect-card,
.choice-card,
.summary-card,
.reward-banner {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
    rgba(20, 14, 12, 0.7);
  border: 1px solid rgba(255, 196, 119, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 229, 173, 0.04);
}

.screen-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(136, 166, 88, 0.2), rgba(15, 19, 13, 0.76)),
    rgba(18, 24, 16, 0.88);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.screen-card[data-outcome="majorWin"] {
  border-color: rgba(255, 210, 122, 0.34);
  box-shadow: 0 0 28px rgba(255, 198, 111, 0.14), inset 0 0 0 1px rgba(255, 233, 183, 0.06);
}

.screen-card[data-outcome="solidWin"] {
  border-color: rgba(175, 226, 129, 0.22);
}

.screen-card[data-outcome="cursedHit"] {
  border-color: rgba(219, 106, 84, 0.28);
  box-shadow: 0 0 26px rgba(186, 82, 55, 0.12), inset 0 0 0 1px rgba(255, 180, 156, 0.04);
}

.screen-head,
.screen-status,
.summary-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.screen-head {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(215, 236, 159, 0.78);
}

.screen-status {
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.screen-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 196, 119, 0.12);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 230, 188, 0.9);
}

.reward-banner {
  padding: 14px 16px;
}

.reward-banner-text {
  font-size: 14px;
  line-height: 1.48;
  color: rgba(239, 224, 203, 0.84);
}

.terminal-side {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.panel-card,
.log-card {
  padding: 16px;
}

.panel-title {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(173, 144, 117, 0.88);
}

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

.readout {
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 196, 119, 0.08);
}

.readout-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(173, 144, 117, 0.92);
}

.readout-value {
  display: block;
  font-size: 1.2rem;
  color: rgba(255, 229, 185, 0.95);
}

.payment-stack,
.meter-block,
.button-stack,
.item-panel,
.summary-section {
  display: grid;
  gap: 10px;
}

.payment-stack {
  margin-top: 12px;
}

.payment-input {
  border: 1px solid rgba(255, 196, 119, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.payment-input:disabled {
  opacity: 0.58;
}

.primary-button,
.ghost-button,
.mini-button,
.choice-option {
  border: 0;
  border-radius: 14px;
  font: inherit;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease, border-color 120ms ease;
}

.primary-button {
  padding: 15px 16px;
  background: linear-gradient(135deg, #b25d2f, #ffc56e);
  color: #23110d;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(211, 138, 43, 0.18);
}

.ghost-button,
.mini-button,
.choice-option {
  padding: 11px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    rgba(12, 9, 9, 0.74);
  border: 1px solid rgba(255, 196, 119, 0.12);
  color: rgba(255, 225, 174, 0.9);
  font-weight: 700;
}

.primary-button:hover:not(:disabled),
.ghost-button:hover,
.mini-button:hover:not(:disabled),
.choice-option:hover {
  transform: translateY(-1px);
}

.ghost-button,
.choice-option,
.ghost-button *,
.choice-option * {
  cursor: pointer;
}

.primary-button:disabled,
.mini-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

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

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

.lock-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(173, 144, 117, 0.88);
}

.lock-button.active {
  border-color: rgba(255, 196, 119, 0.28);
  box-shadow: 0 0 18px rgba(211, 138, 43, 0.16);
}

.meter-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(173, 144, 117, 0.92);
}

.meter-track,
.summary-progress-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 196, 119, 0.08);
}

.meter-fill,
.summary-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: inherit;
}

.meter-fill.sanity {
  background: linear-gradient(90deg, #809c50, #d7cf7f);
}

.meter-fill.horror {
  background: linear-gradient(90deg, #611f18, #bd4f39);
}

.summary-progress-fill {
  background: linear-gradient(90deg, #b25d2f, #ffc56e);
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reel {
  position: relative;
  min-height: 240px;
  border-radius: 18px;
  padding: 18px 10px 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 236, 182, 0.05), transparent 16%),
    rgba(4, 8, 5, 0.84);
  border: 1px solid rgba(196, 236, 150, 0.12);
}

.reel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 228, 173, 0.05);
}

.reel.spinning .symbol-wrap {
  animation: symbolSpin 120ms linear infinite;
  filter: blur(2px) saturate(1.1);
}

.reel.awaiting-stop {
  cursor: pointer;
  border-color: rgba(255, 134, 98, 0.58);
  box-shadow: 0 0 26px rgba(186, 82, 55, 0.28);
  animation: refusalPulse 720ms ease-in-out infinite;
}

.reel.locked-armed {
  border-color: rgba(255, 196, 119, 0.24);
}

.reel.jammed {
  animation: jamPulse 280ms ease 3;
}

.symbol-wrap {
  display: grid;
  gap: 12px;
  place-items: center;
}

.symbol-glyph {
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1;
  text-shadow: 0 0 22px currentColor;
}

.symbol-name {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 233, 183, 0.72);
}

.reel-note {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(177, 219, 131, 0.52);
}

.items-list,
.event-log,
.summary-grid,
.summary-rewards,
.summary-unlocks,
.choice-options {
  display: grid;
  gap: 10px;
}

.items-list,
.event-log {
  max-height: 100%;
  overflow: auto;
}

.item-card,
.log-entry,
.summary-metric,
.summary-unlock-card {
  border-radius: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 196, 119, 0.08);
}

.item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.item-name {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 225, 174, 0.94);
}

.item-state {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184, 213, 129, 0.84);
}

.item-desc,
.log-entry,
.summary-unlock-copy,
.choice-body {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.48;
  color: rgba(237, 222, 198, 0.76);
}

.choice-card,
.summary-card,
.inspect-card {
  width: min(92vw, 760px);
  padding: 24px;
}

.choice-card h2,
.summary-card h2,
.inspect-card h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-options {
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.choice-option {
  display: grid;
  gap: 6px;
  padding: 16px;
  text-align: left;
  pointer-events: auto;
}

.choice-option-title {
  font-size: 13px;
  color: rgba(255, 228, 182, 0.96);
}

.choice-option-copy {
  font-size: 12px;
  line-height: 1.46;
  color: rgba(224, 211, 186, 0.8);
  text-transform: none;
  letter-spacing: 0.04em;
}

.summary-card {
  display: grid;
  gap: 20px;
}

.summary-rank {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 198, 111, 0.1);
  border: 1px solid rgba(255, 196, 119, 0.16);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 226, 176, 0.96);
}

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

.summary-metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(173, 144, 117, 0.9);
}

.summary-metric-value {
  font-size: 1.06rem;
  color: rgba(255, 229, 185, 0.95);
}

.summary-reward-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 196, 119, 0.08);
}

.summary-unlock-title {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 226, 176, 0.92);
}

.summary-empty {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 196, 119, 0.08);
  color: rgba(237, 222, 198, 0.74);
}

.inspect-card p {
  white-space: pre-wrap;
  line-height: 1.65;
  color: rgba(237, 222, 198, 0.82);
}

.inspect-footer {
  margin-top: 12px;
  color: rgba(184, 213, 129, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

@keyframes symbolSpin {
  from { transform: translateY(-12px) scaleY(1.06); }
  to { transform: translateY(12px) scaleY(0.96); }
}

@keyframes jamPulse {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

@keyframes refusalPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

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

@media (max-width: 1180px) {
  .status-strip {
    width: min(34vw, 360px);
  }

  .toast-stack {
    width: min(28vw, 300px);
  }
}

@media (max-width: 1080px) {
  .terminal-grid {
    grid-template-columns: 1fr;
  }

  .top-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .chip.objective,
  .story-beat,
  .toast-stack {
    max-width: calc(100vw - 40px);
    width: auto;
  }

  .status-strip {
    left: 20px;
    right: 20px;
    top: 132px;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-beat {
    top: 258px;
    max-width: min(56vw, 560px);
  }

  .toast-stack {
    right: 20px;
    bottom: 88px;
  }
}

@media (max-width: 820px) {
  .status-strip {
    top: 146px;
    grid-template-columns: 1fr;
  }

  .story-beat {
    top: 426px;
    max-width: calc(100vw - 40px);
  }

  .toast-stack {
    top: auto;
    bottom: 92px;
    left: 20px;
    right: 20px;
    width: auto;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .terminal-card {
    padding: 14px;
  }

  .screen-status,
  .top-strip,
  .terminal-header,
  .inspect-head,
  .choice-head,
  .summary-head {
    flex-direction: column;
  }

  .reels {
    gap: 8px;
  }

  .reel {
    min-height: 190px;
  }

  .symbol-glyph {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .readout-grid,
  .mini-row,
  .lock-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .story-beat {
    top: 446px;
  }
}
