/* ── Screen 1: Intro ── */
.intro-container {
  max-width: 720px;
  width: 100%;
  background: var(--bg-panel);
  padding: 40px;
  margin: auto;
}
.game-title {
  font-size: 18px;
  color: var(--accent-amber);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.5;
}
.game-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 32px;
  font-size: 13px;
}
.intro-section { margin-bottom: 24px; }
.intro-section h2 {
  font-size: 9px;
  color: var(--accent-amber);
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.intro-meter-list { display: flex; flex-direction: column; gap: 8px; }
.intro-meter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.intro-meter-dot {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}
.intro-meter-desc { color: var(--text-muted); }
.objective-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.objective-item {
  padding: 8px 10px;
  border: 1px solid var(--text-dim);
  background: var(--bg-card);
}
.objective-item.done {
  border-color: var(--positive);
}
.objective-label {
  font-size: 11px;
  line-height: 1.5;
}
.objective-progress {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

/* ── Screen 2: Turn board ── */
.board-layout {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  margin: auto;
  align-items: flex-start;
}
.board-left {
  flex: 0 0 380px;
  background: var(--bg-panel);
  padding: 24px;
  border: 1px solid var(--text-dim);
}
.turn-masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 3px double var(--accent-amber);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.turn-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--accent-amber);
}
.turn-count {
  font-size: 10px;
  color: var(--text-muted);
}
.turn-status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 1px solid var(--text-dim);
  background: var(--bg-card);
  font-size: 10px;
  color: var(--text-muted);
}
.turn-summary-strip {
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 1px solid var(--text-dim);
  background: var(--bg-card);
  font-size: 11px;
  line-height: 1.5;
}
.turn-summary-strip.warning {
  border-color: var(--negative);
  color: #ffb8ac;
}
.board-meters-heading {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  margin-top: 10px;
}
.board-meters { margin-bottom: 16px; }
.board-footer { margin-top: 16px; }
.board-policy-panel {
  padding: 12px;
  border: 1px solid var(--text-dim);
  background: var(--bg-card);
}
.board-map-action-info {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--text-dim);
  background: var(--bg-card);
}
.board-objectives {
  margin-bottom: 16px;
}
.risk-list {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.risk-item {
  font-size: 11px;
  padding: 8px 10px;
  border: 1px solid var(--text-dim);
  background: var(--bg-card);
}
.risk-item.collapse {
  border-color: var(--negative);
  color: #ffc2b8;
}
.risk-item.crisis {
  border-color: var(--accent-amber);
  color: #f1dba5;
}
.risk-item.neutral {
  color: var(--text-muted);
}
.board-action-panel {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--text-dim);
  background: var(--bg-card);
}
.action-block + .action-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--text-dim);
}
.action-panel-header {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--accent-amber);
  margin-bottom: 8px;
}
.action-panel-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.action-panel-sub.done {
  color: var(--positive);
}
.action-choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.action-choice {
  margin-bottom: 0;
}
.action-choice:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.action-reason {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.action-log {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}
#board-end-turn-btn {
  margin-top: 12px;
  margin-left: 0;
}

.board-map-area {
  flex: 1;
  min-width: 0;
  position: relative;
}
.board-map-area figure { position: relative; margin: 0; }
.board-map-area .screen-heading { margin-bottom: 10px; }
#game-map {
  display: block;
  image-rendering: pixelated;
  border: 2px solid var(--accent-amber);
}
.map-fx-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}
.map-floating-delta {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border: 1px solid currentColor;
  background: rgba(30, 30, 20, 0.92);
  animation: float-up 0.95s ease forwards;
  white-space: nowrap;
}
.map-floating-delta.positive { color: var(--positive); }
.map-floating-delta.negative { color: var(--negative); }
.map-floating-delta.neutral { color: var(--accent-amber); }
@keyframes float-up {
  0% { opacity: 0; transform: translate(-50%, -50%); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -120%); }
}
.tile-action-menu {
  position: absolute;
  width: 380px;
  max-height: 360px;
  overflow: auto;
  z-index: 30;
  display: none;
  background: var(--bg-panel);
  border: 2px solid var(--accent-amber);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  padding: 10px;
}
.tile-action-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--accent-amber);
}
.tile-action-close {
  border: 1px solid var(--text-dim);
  background: var(--bg-dark);
  color: var(--text-primary);
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.map-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  padding: 6px 10px;
  background: var(--bg-panel);
  border: 1px solid var(--accent-amber);
  font-size: 11px;
  pointer-events: none;
  z-index: 100;
  display: none;
  white-space: normal;
  max-width: 340px;
}
.map-tooltip.visible { display: block; }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── Screen 3: Emergency ── */
.emergency-container {
  max-width: 560px;
  width: 100%;
  background: var(--bg-panel);
  padding: 36px;
  margin: auto;
}
.emergency-message {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.emergency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── Screen 4: Policy ── */
.policy-container {
  max-width: 780px;
  width: 100%;
  margin: auto;
}
.policy-card {
  background: var(--bg-panel);
  padding: 32px;
}
.policy-header {
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.policy-category {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.policy-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--accent-amber);
  line-height: 1.6;
}
.policy-body {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.policy-theory {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--text-dim);
}
.policy-choices { display: flex; flex-direction: column; }
.policy-confirm-wrap { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--text-dim); }
.policy-confirm-wrap .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.choices-heading {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.risk-warning {
  margin-top: 8px;
  font-size: 11px;
  color: #f1dba5;
}
.risk-warning.neutral {
  color: var(--text-muted);
}

/* ── Screen 5: Consequence ── */
.consequence-container {
  max-width: 680px;
  width: 100%;
  background: var(--bg-panel);
  padding: 36px;
  margin: auto;
}
.consequence-summary {
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.7;
  border-left: 3px solid var(--accent-amber);
  padding-left: 14px;
}
.consequence-meters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.consequence-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: 2px;
}
.consequence-change.positive { color: var(--positive); font-weight: bold; }
.consequence-change.negative { color: var(--negative); font-weight: bold; }
.consequence-change.neutral  { color: var(--text-muted); }

/* ── Screen 6: End ── */
.end-container {
  max-width: 640px;
  width: 100%;
  background: var(--bg-panel);
  padding: 40px;
  margin: auto;
  text-align: center;
}
.end-icon { font-size: 48px; margin-bottom: 16px; }
.end-title {
  font-size: 12px;
  color: var(--accent-amber);
  margin-bottom: 20px;
  line-height: 1.6;
}
.end-message {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.end-stars {
  margin-bottom: 10px;
  font-size: 13px;
}
.end-stars .stars {
  letter-spacing: 0.08em;
  color: var(--accent-amber);
}
.end-objectives-report {
  margin-bottom: 14px;
  text-align: left;
}
.end-objective {
  font-size: 11px;
  padding: 6px 8px;
  border: 1px solid var(--text-dim);
  margin-bottom: 6px;
  background: var(--bg-card);
}
.end-objective.done {
  border-color: var(--positive);
}
.end-objective.missed {
  border-color: var(--negative);
}
.end-report {
  background: var(--bg-card);
  padding: 20px;
  margin-bottom: 8px;
  text-align: left;
}
.end-report h3 {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
  .board-layout {
    flex-direction: column;
  }
  .board-left {
    flex: 1 1 auto;
    width: 100%;
  }
  #game-map {
    width: 100%;
    height: auto;
  }
  .turn-status {
    flex-direction: column;
    gap: 4px;
  }
}
