:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #edf1f5;
  color: #182230;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: center;
  padding: 40px clamp(20px, 6vw, 72px) 32px;
  background: #182230;
  color: #f8fafc;
}

.intro-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #9bd7c0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 7vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.6rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 0;
}

.subtitle {
  max-width: 620px;
  margin-bottom: 0;
  color: #d8e1ec;
  font-size: 1.08rem;
  line-height: 1.6;
}

.board-art {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 72px) 48px;
}

.game-layout.metrics-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.metrics-panel,
.scene-panel {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgb(24 34 48 / 8%);
}

.metrics-panel {
  align-self: start;
  padding: 20px;
}

.scene-panel {
  min-height: 560px;
  padding: clamp(20px, 4vw, 36px);
}

.metrics-list {
  display: grid;
  gap: 16px;
}

.metric {
  display: grid;
  gap: 7px;
}

.metric-label {
  font-weight: 700;
}

.metric-value {
  color: #58687c;
  font-size: 0.86rem;
}

.meter {
  height: 10px;
  overflow: hidden;
  background: #dfe6ef;
  border-radius: 999px;
}

.meter-fill {
  height: 100%;
  background: #2f7d57;
  border-radius: inherit;
  transition: width 160ms ease;
}

.meter-fill--good {
  background: #2f7d57;
}

.meter-fill--warning {
  background: #b7791f;
}

.meter-fill--poor {
  background: #c24130;
}

.phase-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid #cbd7e4;
  border-radius: 999px;
  color: #314156;
  font-size: 0.82rem;
  font-weight: 700;
}

.scene-update {
  max-width: 820px;
  color: #314156;
  line-height: 1.6;
}

.signal-box {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f8fafc;
}

.ai-box {
  border-left: 5px solid #2f7d57;
}

.signal-box p,
.signal-box ul {
  margin-bottom: 0;
}

.signal-box li {
  margin: 8px 0;
  line-height: 1.5;
}

.feedback {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #c9d7e8;
  border-radius: 8px;
  background: #eef6ff;
  color: #1e4268;
  line-height: 1.5;
}

.choice-heading {
  margin-top: 24px;
}

.choices {
  display: grid;
  gap: 12px;
}

.choice-button,
.primary-action {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c6d1dd;
  border-radius: 8px;
  background: #ffffff;
  color: #182230;
  cursor: pointer;
  text-align: left;
}

.choice-button:hover,
.choice-button:focus-visible,
.primary-action:hover,
.primary-action:focus-visible {
  border-color: #2f7d57;
  outline: 3px solid rgb(47 125 87 / 18%);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  background: #2f7d57;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}

.history-list {
  padding-left: 22px;
  color: #314156;
  line-height: 1.55;
}

.history-list li {
  margin: 10px 0;
}

@media (max-width: 860px) {
  .intro-band {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .game-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .intro-band,
  .game-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .scene-panel {
    min-height: auto;
  }
}
