/* ═══════════════════════════════════════════════
   PMF LAB — DESIGN SYSTEM
   Aesthetic: Documentary / Mission Briefing Room
   Warm amber + off-white + deep charcoal
   Serif headlines · Mono data · Sans body
═══════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────────── */
:root {
  --ink:    #1a1714;
  --ink2:   #2d2926;
  --ink3:   #403c38;
  --mid:    #6b6560;
  --dim:    #8f8a84;
  --pale:   #c8c2bb;
  --fog:    #e8e3dc;
  --paper:  #f4f0ea;
  --cream:  #faf8f4;
  --warm:   #fffdf9;

  --amber:  #c97c2a;
  --amber2: #e09140;
  --amber3: #f5a84a;
  --amber-bg: rgba(201,124,42,0.08);

  --teal:   #1a6b6b;
  --teal2:  #227a7a;
  --teal-bg: rgba(26,107,107,0.08);

  --rose:   #9b3a3a;
  --rose2:  #b84545;
  --rose-bg: rgba(155,58,58,0.08);

  --blue:   #2a5fa0;
  --blue-bg: rgba(42,95,160,0.08);

  --good:    #2a7a4a;
  --good-bg: rgba(42,122,74,0.1);
  --warn:    #a06a2a;
  --warn-bg: rgba(160,106,42,0.1);
  --bad:     #8a3030;
  --bad-bg:  rgba(138,48,48,0.1);

  --border:    rgba(26,23,20,0.1);
  --border2:   rgba(26,23,20,0.18);
  --shadow:    0 1px 3px rgba(26,23,20,0.08), 0 4px 16px rgba(26,23,20,0.06);
  --shadow-lg: 0 4px 24px rgba(26,23,20,0.12), 0 16px 48px rgba(26,23,20,0.08);
  --radius:    8px;
  --radius-lg: 14px;
}

/* ── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Figtree', sans-serif; background: var(--paper); color: var(--ink); min-height: 100vh; overflow-x: hidden; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pale); border-radius: 3px; }

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ── SPLASH ───────────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem; text-align: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#splash.out { opacity: 0; transform: scale(1.03); pointer-events: none; }

.splash-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.3em; color: var(--amber3);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}
.splash-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 7vw, 6rem); color: var(--cream); line-height: 1;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.8s ease 0.1s both;
}
.splash-title em { color: var(--amber3); font-style: italic; }
.splash-sub {
  font-size: 1rem; color: #7a7268; font-weight: 300;
  max-width: 480px; line-height: 1.7; margin-bottom: 3rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.scenario-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; max-width: 880px; width: 100%;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  animation: fadeUp 0.8s ease 0.3s both;
}
.sc-card {
  background: rgba(255,255,255,0.02);
  padding: 1.75rem; cursor: pointer;
  transition: background 0.2s; position: relative; text-align: left;
}
.sc-card:hover  { background: rgba(255,255,255,0.05); }
.sc-card.selected { background: rgba(201,124,42,0.1); }
.sc-card.selected::after {
  content: ''; position: absolute; inset: 0;
  border: 2px solid var(--amber); pointer-events: none;
}
.sc-sector {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.2em; color: var(--amber3);
  margin-bottom: 1rem;
}
.sc-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem; color: var(--cream); margin-bottom: 0.5rem;
}
.sc-desc { font-size: 0.82rem; color: #7a7068; line-height: 1.6; margin-bottom: 1rem; }
.sc-diff {
  display: flex; align-items: center; gap: 0.3rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; color: #5a5450;
}
.diff-pip { width: 5px; height: 5px; border-radius: 50%; background: #3a3630; }
.diff-pip.on { background: var(--amber); }

.launch-row {
  display: flex; align-items: center; gap: 1rem;
  animation: fadeUp 0.8s ease 0.4s both;
}
.launch-btn {
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  background: var(--amber); color: var(--ink);
  border: none; border-radius: 6px;
  padding: 0.85rem 2.5rem; cursor: pointer; transition: all 0.2s;
}
.launch-btn:hover { background: var(--amber2); transform: translateY(-1px); }
.launch-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.launch-note { font-size: 0.78rem; color: #5a5450; }

/* ── HYPOTHESIS GATE ──────────────────────────── */
#hypothesis-gate {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(26,23,20,0.85); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
#hypothesis-gate.open { display: flex; }

.hyp-gate-card {
  background: var(--warm); border-radius: var(--radius-lg);
  padding: 2.5rem; max-width: 540px; width: 100%;
  box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease;
}
.hyp-gate-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.2em; color: var(--amber);
  margin-bottom: 0.75rem;
}
.hyp-gate-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem; margin-bottom: 0.5rem;
}
.hyp-gate-action-name { font-size: 0.88rem; color: var(--mid); margin-bottom: 1.5rem; line-height: 1.5; }
.hyp-gate-prompt { font-size: 0.92rem; font-weight: 600; color: var(--ink2); margin-bottom: 0.4rem; }
.hyp-gate-prefix { font-size: 0.85rem; color: var(--dim); margin-bottom: 0.75rem; font-style: italic; }
.hyp-gate-input {
  width: 100%; border: 1.5px solid var(--border2); border-radius: 6px;
  padding: 0.85rem 1rem;
  font-family: 'Figtree', sans-serif; font-size: 0.9rem;
  background: var(--cream); color: var(--ink);
  resize: none; min-height: 80px;
  transition: border-color 0.2s; outline: none;
}
.hyp-gate-input:focus { border-color: var(--amber); }
.hyp-gate-note {
  font-size: 0.75rem; color: var(--dim);
  margin-top: 0.5rem; margin-bottom: 1.5rem; line-height: 1.5;
}
.hyp-gate-btns { display: flex; gap: 0.75rem; justify-content: flex-end; }
.hyp-gate-skip {
  background: transparent; border: 1.5px solid var(--border2); border-radius: 6px;
  padding: 0.65rem 1.25rem;
  font-family: 'Figtree', sans-serif; font-size: 0.85rem; color: var(--mid);
  cursor: pointer; transition: all 0.15s;
}
.hyp-gate-skip:hover { border-color: var(--pale); color: var(--ink); }
.hyp-gate-go {
  background: var(--ink); color: var(--cream); border: none; border-radius: 6px;
  padding: 0.65rem 1.75rem;
  font-family: 'Figtree', sans-serif; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.hyp-gate-go:hover { background: var(--ink2); }

/* ── TOPBAR ───────────────────────────────────── */
#app { display: none; }
#app.visible { display: block; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 56px;
  background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; padding: 0 1.25rem; gap: 1.5rem;
}
.topbar-logo { font-family: 'Instrument Serif', serif; font-size: 1.1rem; color: var(--cream); }
.topbar-logo span { color: var(--amber3); }
.topbar-scenario {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--dim);
  background: rgba(255,255,255,0.05); padding: 0.2rem 0.65rem;
  border-radius: 3px; border: 1px solid rgba(255,255,255,0.08);
}
.topbar-spacer { flex: 1; }
.topbar-resource { display: flex; align-items: center; gap: 0.4rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; }
.topbar-resource-label { color: var(--dim); font-size: 0.62rem; }
.topbar-resource-val { color: var(--cream); font-weight: 500; }
.topbar-resource-val.warn   { color: var(--amber3); }
.topbar-resource-val.danger { color: #e05050; }
.topbar-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.1); }
.runway-bar-wrap { width: 80px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.runway-bar {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal2), var(--amber3));
  transition: width 0.5s ease;
}

/* ── GAME LAYOUT ──────────────────────────────── */
.game-layout {
  display: grid; grid-template-columns: 268px 1fr 284px;
  height: 100vh; padding-top: 56px;
}

/* ── LEFT SIDEBAR ─────────────────────────────── */
.sidebar-left {
  background: var(--cream); border-right: 1px solid var(--border);
  overflow-y: auto; padding: 1.25rem 1rem;
}
.sidebar-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pale); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.sidebar-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.sidebar-section { margin-bottom: 1.75rem; }

.pmf-meter-wrap {
  background: var(--warm); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.pmf-meter-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.75rem; }
.pmf-big {
  font-family: 'Instrument Serif', serif;
  font-size: 2.8rem; line-height: 1; transition: color 0.5s;
}
.pmf-phase-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; color: var(--dim); text-align: right; line-height: 1.4;
}
.pmf-bar-track { height: 6px; background: var(--fog); border-radius: 3px; overflow: hidden; margin-bottom: 0.6rem; }
.pmf-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal2), var(--amber3), var(--rose2));
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pmf-stages {
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.55rem; color: var(--pale);
}

.seg-card {
  background: var(--warm); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem;
  margin-bottom: 0.5rem; transition: border-color 0.2s;
}
.seg-card.hot { border-color: var(--amber); background: var(--amber-bg); }
.seg-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.5rem; }
.seg-name { font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.seg-wtp {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; color: var(--teal); font-weight: 500;
  white-space: nowrap; margin-left: 0.5rem;
}
.seg-pain { font-size: 0.74rem; color: var(--mid); margin-bottom: 0.5rem; }
.seg-fit-row { display: flex; align-items: center; gap: 0.5rem; }
.seg-fit-track { flex: 1; height: 3px; background: var(--fog); border-radius: 2px; }
.seg-fit-fill { height: 100%; border-radius: 2px; transition: width 0.8s ease; }
.fit-cold { background: var(--rose2); }
.fit-warm { background: var(--amber); }
.fit-hot  { background: var(--good); }
.seg-fit-pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem; color: var(--dim); width: 28px; text-align: right;
}

.hyp-item {
  background: var(--warm); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  margin-bottom: 0.5rem; display: flex; gap: 0.6rem;
  align-items: flex-start; transition: all 0.3s;
}
.hyp-item.confirmed { border-color: var(--good); background: var(--good-bg); }
.hyp-item.refuted   { border-color: var(--bad);  background: var(--bad-bg); }
.hyp-icon {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; font-weight: 500; width: 16px; flex-shrink: 0; margin-top: 1px;
}
.hyp-icon.p { color: var(--pale); }
.hyp-icon.c { color: var(--good); }
.hyp-icon.r { color: var(--bad); }
.hyp-text { font-size: 0.78rem; line-height: 1.5; color: var(--ink3); }
.hyp-result { font-size: 0.72rem; color: var(--mid); margin-top: 0.3rem; font-style: italic; }

/* ── MAIN PANEL ───────────────────────────────── */
.main-panel { overflow-y: auto; padding: 1.75rem 2rem; background: var(--paper); }

.context-card {
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius-lg); padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem; position: relative; overflow: hidden;
}
.context-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,124,42,0.15), transparent);
  pointer-events: none;
}
.context-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.2em; color: var(--amber3); margin-bottom: 0.5rem;
}
.context-phase { font-family: 'Instrument Serif', serif; font-size: 1.5rem; margin-bottom: 0.5rem; }
.context-body { font-size: 0.84rem; line-height: 1.75; color: #a09890; max-width: 600px; }
.context-pips { display: flex; gap: 0.4rem; margin-top: 1.25rem; }
.context-pip { height: 3px; flex: 1; border-radius: 2px; background: rgba(255,255,255,0.1); transition: background 0.4s; }
.context-pip.done   { background: var(--teal2); }
.context-pip.active { background: var(--amber3); }

.move-log {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem; margin-bottom: 1.5rem;
}
.move-log-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pale); margin-bottom: 0.4rem;
}
.move-log-items { display: flex; gap: 0.4rem; flex-wrap: wrap; min-height: 20px; }
.move-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; padding: 0.2rem 0.6rem;
  border-radius: 3px; border: 1px solid var(--border);
}
.chip-research { background: var(--teal-bg);  color: var(--teal);  border-color: rgba(26,107,107,0.2); }
.chip-product  { background: var(--blue-bg);  color: var(--blue);  border-color: rgba(42,95,160,0.2); }
.chip-channel  { background: var(--amber-bg); color: var(--amber); border-color: rgba(201,124,42,0.2); }
.chip-pivot    { background: var(--rose-bg);  color: var(--rose);  border-color: rgba(155,58,58,0.2); }

.actions-header { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.25rem; }
.actions-title { font-family: 'Instrument Serif', serif; font-size: 1.4rem; }
.actions-subtitle { font-size: 0.8rem; color: var(--mid); }

.type-tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.type-tab {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem; border-radius: 20px; cursor: pointer;
  transition: all 0.15s; border: 1.5px solid var(--border);
  background: transparent; color: var(--dim);
}
.type-tab:hover { border-color: var(--pale); color: var(--ink3); }
.type-tab.active-all      { background: var(--ink);      color: var(--cream); border-color: var(--ink); }
.type-tab.active-research { background: var(--teal-bg);  color: var(--teal);  border-color: var(--teal2); }
.type-tab.active-product  { background: var(--blue-bg);  color: var(--blue);  border-color: var(--blue); }
.type-tab.active-channel  { background: var(--amber-bg); color: var(--amber); border-color: var(--amber); }
.type-tab.active-pivot    { background: var(--rose-bg);  color: var(--rose2); border-color: var(--rose2); }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 2rem; }
.action-card {
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem; cursor: pointer;
  transition: all 0.18s; position: relative; overflow: hidden; text-align: left;
}
.action-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.2s; border-radius: inherit;
}
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.action-card:hover::before { opacity: 1; }
.action-card.t-research::before { background: linear-gradient(135deg, var(--teal-bg), transparent); }
.action-card.t-product::before  { background: linear-gradient(135deg, var(--blue-bg), transparent); }
.action-card.t-channel::before  { background: linear-gradient(135deg, var(--amber-bg), transparent); }
.action-card.t-pivot::before    { background: linear-gradient(135deg, var(--rose-bg), transparent); }
.action-card:hover.t-research { border-color: var(--teal2); }
.action-card:hover.t-product  { border-color: var(--blue); }
.action-card:hover.t-channel  { border-color: var(--amber); }
.action-card:hover.t-pivot    { border-color: var(--rose2); }
.action-card.used         { opacity: 0.35; pointer-events: none; filter: grayscale(0.4); }
.action-card.hidden       { display: none; }
.action-card.cant-afford  { border-style: dashed; opacity: 0.5; cursor: not-allowed; }
.action-card.cant-afford:hover { transform: none; box-shadow: none; }

.action-type-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.action-type-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.14em; padding: 0.15rem 0.5rem; border-radius: 3px;
}
.tag-research { background: var(--teal-bg);  color: var(--teal); }
.tag-product  { background: var(--blue-bg);  color: var(--blue); }
.tag-channel  { background: var(--amber-bg); color: var(--amber); }
.tag-pivot    { background: var(--rose-bg);  color: var(--rose); }
.action-used-badge { font-family: 'IBM Plex Mono', monospace; font-size: 0.58rem; color: var(--pale); letter-spacing: 0.1em; }
.action-name  { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.2; }
.action-desc  { font-size: 0.78rem; color: var(--mid); line-height: 1.55; margin-bottom: 0.85rem; }
.action-costs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.cost-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem; padding: 0.18rem 0.55rem; border-radius: 3px;
}
.cost-t { background: var(--amber-bg); color: var(--amber); }
.cost-b { background: var(--rose-bg);  color: var(--rose2); }
.cost-i { background: var(--teal-bg);  color: var(--teal); }

/* ── RIGHT SIDEBAR ────────────────────────────── */
.sidebar-right {
  background: var(--cream); border-left: 1px solid var(--border);
  overflow-y: auto; padding: 1.25rem 1rem;
}
.metric-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border);
}
.metric-item:last-child { border-bottom: none; }
.metric-name { font-size: 0.78rem; color: var(--mid); }
.metric-val  { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; font-weight: 500; color: var(--ink2); }
.metric-val.up   { color: var(--good); }
.metric-val.flat { color: var(--mid); }

.feed-item {
  padding: 0.65rem 0.85rem; border-radius: 6px;
  margin-bottom: 0.4rem; font-size: 0.78rem; line-height: 1.5;
  border-left: 2px solid transparent; animation: fadeIn 0.3s ease;
}
.feed-day { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; color: var(--pale); margin-bottom: 0.2rem; }
.feed-item.do    { background: var(--blue-bg);  border-color: var(--blue);  color: var(--blue); }
.feed-item.good  { background: var(--good-bg);  border-color: var(--good);  color: var(--good); }
.feed-item.warn  { background: var(--warn-bg);  border-color: var(--warn);  color: var(--warn); }
.feed-item.learn { background: var(--amber-bg); border-color: var(--amber); color: var(--amber); }

/* ── OUTCOME MODAL ────────────────────────────── */
#outcome-modal {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(26,23,20,0.8); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 2rem; overflow-y: auto;
}
#outcome-modal.open { display: flex; }

.outcome-card {
  background: var(--warm); border-radius: var(--radius-lg);
  max-width: 580px; width: 100%; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: slideUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.outcome-header { padding: 1.5rem 1.75rem 1.25rem; border-bottom: 1px solid var(--border); }
.outcome-type-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.outcome-action-tag { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; padding: 0.18rem 0.6rem; border-radius: 3px; }
.outcome-arrow { color: var(--pale); font-size: 0.75rem; }
.outcome-action-name { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--mid); }
.outcome-icon  { font-size: 1.8rem; line-height: 1; margin-bottom: 0.6rem; }
.outcome-title { font-family: 'Instrument Serif', serif; font-size: 1.6rem; line-height: 1.15; }

.outcome-body-section { padding: 1.25rem 1.75rem; border-bottom: 1px solid var(--border); }
.outcome-body { font-size: 0.88rem; line-height: 1.8; color: var(--ink3); }

.hyp-prediction-section { padding: 1rem 1.75rem; background: var(--cream); border-bottom: 1px solid var(--border); }
.hyp-pred-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; color: var(--dim); margin-bottom: 0.35rem; }
.hyp-pred-text  { font-size: 0.82rem; color: var(--ink3); font-style: italic; line-height: 1.5; }

.outcome-stats { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--border); }
.outcome-stat  { padding: 1rem; text-align: center; border-right: 1px solid var(--border); }
.outcome-stat:last-child { border-right: none; }
.ostat-val   { font-family: 'Instrument Serif', serif; font-size: 1.8rem; line-height: 1; margin-bottom: 0.2rem; }
.ostat-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.58rem; letter-spacing: 0.12em; color: var(--dim); }

.outcome-learning { padding: 1.25rem 1.75rem; background: var(--ink); color: var(--cream); }
.learning-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.58rem; letter-spacing: 0.2em; color: var(--amber3); margin-bottom: 0.4rem; }
.learning-text { font-size: 0.84rem; line-height: 1.75; color: #b0a898; }

.outcome-footer { padding: 1.25rem 1.75rem; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.continue-btn {
  font-family: 'Figtree', sans-serif; font-size: 0.9rem; font-weight: 700;
  background: var(--ink); color: var(--cream);
  border: none; border-radius: 6px; padding: 0.7rem 1.75rem;
  cursor: pointer; transition: all 0.15s;
}
.continue-btn:hover { background: var(--ink2); }
.outcome-progress { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--dim); }

/* ── DEBRIEF SCREEN ───────────────────────────── */
#debrief-screen {
  position: fixed; inset: 0; z-index: 700;
  background: var(--ink); overflow-y: auto; display: none;
}
#debrief-screen.open { display: block; }

.debrief-wrap { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }

.debrief-grade-block {
  text-align: center; padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2.5rem;
}
.debrief-grade { font-family: 'Instrument Serif', serif; font-size: 8rem; line-height: 1; margin-bottom: 0.5rem; animation: fadeUp 0.6s ease both; }
.debrief-grade-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.3em; color: var(--dim); margin-bottom: 1rem; }
.debrief-grade-title { font-family: 'Instrument Serif', serif; font-size: 2rem; color: var(--cream); margin-bottom: 0.75rem; animation: fadeUp 0.6s ease 0.1s both; }
.debrief-grade-desc  { font-size: 0.9rem; color: #8a8078; line-height: 1.75; max-width: 520px; margin: 0 auto; animation: fadeUp 0.6s ease 0.2s both; }

.debrief-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(255,255,255,0.06);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem;
}
.dstat { padding: 1.25rem; background: rgba(255,255,255,0.02); text-align: center; }
.dstat-val   { font-family: 'Instrument Serif', serif; font-size: 2rem; margin-bottom: 0.3rem; }
.dstat-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.58rem; letter-spacing: 0.15em; color: #5a5450; }

.debrief-section { margin-bottom: 2.5rem; animation: fadeUp 0.6s ease 0.3s both; }
.gas-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.gas-num   { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--amber3); letter-spacing: 0.2em; }
.gas-title { font-family: 'Instrument Serif', serif; font-size: 1.4rem; color: var(--cream); }
.gas-desc  { font-size: 0.82rem; color: #6a6058; margin-left: 3rem; line-height: 1.6; margin-bottom: 1.25rem; }

.decision-timeline { margin-top: 1rem; }
.dt-item { display: grid; grid-template-columns: 48px 1fr; margin-bottom: 1px; }
.dt-day {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; color: var(--dim);
  background: rgba(255,255,255,0.03); padding: 0.75rem 0.5rem; text-align: center;
  border: 1px solid rgba(255,255,255,0.05); border-right: none;
  display: flex; align-items: center; justify-content: center;
}
.dt-content { background: rgba(255,255,255,0.03); padding: 0.75rem 1rem; border: 1px solid rgba(255,255,255,0.05); }
.dt-action  { color: var(--cream); font-weight: 600; font-size: 0.8rem; margin-bottom: 0.2rem; }
.dt-outcome { color: #7a7068; font-size: 0.76rem; margin-bottom: 0.2rem; }
.dt-prediction {
  font-size: 0.72rem; color: #5a5450; font-style: italic;
  border-left: 2px solid rgba(201,124,42,0.3); padding-left: 0.5rem; margin-top: 0.3rem;
}
.dt-delta { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; display: inline-block; padding: 0.1rem 0.4rem; border-radius: 3px; margin-top: 0.3rem; }
.dt-delta.pos { background: var(--good-bg); color: var(--good); }
.dt-delta.neg { background: var(--bad-bg);  color: var(--bad); }
.dt-delta.neu { background: rgba(255,255,255,0.05); color: var(--dim); }

.hyp-analysis-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.5rem; }
.hyp-analysis-header { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; }
.hyp-analysis-status { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; padding: 0.15rem 0.5rem; border-radius: 3px; white-space: nowrap; flex-shrink: 0; }
.has-confirmed { background: var(--good-bg); color: var(--good); }
.has-refuted   { background: var(--bad-bg);  color: var(--bad); }
.has-pending   { background: rgba(255,255,255,0.05); color: #5a5450; }
.hyp-analysis-text    { font-size: 0.82rem; color: #9a9088; line-height: 1.5; }
.hyp-analysis-insight { font-size: 0.78rem; color: #6a6058; margin-top: 0.5rem; line-height: 1.5; }

.expert-debrief {
  background: rgba(201,124,42,0.06); border: 1px solid rgba(201,124,42,0.2);
  border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin-top: 1.25rem;
}
.expert-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--amber3); margin-bottom: 0.5rem; }
.expert-body { font-size: 0.88rem; line-height: 1.85; color: #9a9088; }

.perspective-section { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; }
.perspective-prompt { font-size: 0.88rem; color: var(--cream); margin-bottom: 0.75rem; line-height: 1.6; }
.perspective-prompt em { color: var(--amber3); font-style: normal; font-weight: 600; }
.perspective-input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1); border-radius: 6px;
  padding: 0.85rem 1rem;
  font-family: 'Figtree', sans-serif; font-size: 0.9rem; color: var(--cream);
  resize: none; min-height: 80px; outline: none; transition: border-color 0.2s;
}
.perspective-input:focus { border-color: var(--amber); }
.perspective-input::placeholder { color: #3a3630; }

.debrief-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.debrief-replay-btn {
  font-family: 'Figtree', sans-serif; font-size: 0.92rem; font-weight: 700;
  background: var(--amber); color: var(--ink);
  border: none; border-radius: 6px; padding: 0.85rem 2.25rem;
  cursor: pointer; transition: all 0.15s;
}
.debrief-replay-btn:hover { background: var(--amber2); }
.debrief-new-btn {
  font-family: 'Figtree', sans-serif; font-size: 0.92rem; font-weight: 600;
  background: rgba(255,255,255,0.06); color: var(--cream);
  border: 1.5px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 0.85rem 2.25rem;
  cursor: pointer; transition: all 0.15s;
}
.debrief-new-btn:hover { background: rgba(255,255,255,0.1); }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 960px) {
  .game-layout { grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right { display: none; }
  .debrief-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .action-grid { grid-template-columns: 1fr; }
}
