/* ══════════════════════════════════════
   RESET & VARIABLES
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #0b0b10;
  --bg-2:   #111118;
  --bg-3:   #17171f;
  --text:   #e9e5dd;
  --muted:  #7a7884;
  --accent: #e8a04a;
  --joy:    #34d27b;
  --angry:  #e84040;
  --grief:  #6b7280;
  --border: rgba(255,255,255,0.07);
  --serif:  'Crimson Text', Georgia, serif;
  --sans:   'Inter', -apple-system, sans-serif;
  --hope:   #5b9bd5;
  --china:  #d4a843;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); overflow-x: hidden; }
.hidden { display: none !important; }

/* Persistent nav */
.nav-about {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 9999;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  background: rgba(11,11,16,0.7);
  backdrop-filter: blur(6px);
  transition: color 0.2s, border-color 0.2s;
}
.nav-about:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ══════════════════════════════════════
   INTRO
══════════════════════════════════════ */
#screen-intro {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(232,160,74,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(52,210,123,0.04) 0%, transparent 50%),
    #0b0b10;
}

.intro-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.013) 60px, rgba(255,255,255,0.013) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.013) 60px, rgba(255,255,255,0.013) 61px);
}

.intro-content {
  max-width: 680px; padding: 3rem 2rem; text-align: center;
  position: relative; z-index: 1;
  animation: fadeUp 1s ease both;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }

.intro-eyebrow { font-size:.72rem; letter-spacing:.35em; text-transform:uppercase; color:var(--accent); margin-bottom:.9rem; }
.intro-content h1 { font-family:var(--serif); font-size:clamp(3.5rem,9vw,6.5rem); font-weight:600; line-height:1; margin-bottom:.4rem; }
.intro-sub { font-size:.85rem; letter-spacing:.14em; color:var(--muted); margin-bottom:3rem; }

.intro-scenario {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 2px 6px 6px 2px; padding: 1.6rem 2rem; text-align:left; margin-bottom:2.5rem;
}
.intro-scenario p { font-family:var(--serif); font-size:1.18rem; line-height:1.75; color:var(--text); margin-bottom:.65rem; }
.intro-scenario p:last-child { margin-bottom:0; }
.intro-scenario strong { color:var(--accent); }

.btn-primary {
  background:var(--accent); color:#0b0b10; border:none;
  padding:1rem 2.75rem; font-family:var(--sans); font-size:.95rem; font-weight:700;
  letter-spacing:.08em; cursor:pointer; border-radius:2px; transition:background .15s, transform .1s;
}
.btn-primary:hover { background:#f0b565; transform:translateY(-1px); }

/* ══════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════ */
#screen-main {
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
}

/* ── Impact bars ── */
#impact-bars {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0.25rem 1.5rem; height: 60px; flex-shrink: 0;
  background: var(--bg-2); border-bottom: 1px solid var(--border); z-index: 100; gap: 2px;
}
.impact-row {
  display: flex; align-items: center; gap: 0.6rem; height: 13px;
}
.impact-label {
  font-size: 0.5rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); min-width: 90px; text-align: right;
}
.impact-track {
  flex: 1; height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden;
}
.impact-fill {
  height: 100%; border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  background: var(--joy);
}
.bar-econ  { background: var(--accent); }
.bar-sov   { background: var(--hope); }
.bar-infra { background: var(--angry); }
.impact-pct {
  font-size: 0.5rem; color: var(--muted); min-width: 26px;
  text-align: left; letter-spacing: 0.04em;
}

/* ══════════════════════════════════════
   TOP PANEL — Full width info display
══════════════════════════════════════ */
#top-panel {
  flex-shrink: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.tp-state {
  display: none;
}
.tp-state.active {
  display: flex;
}
#tp-choice.active {
  display: block;
}

/* ── Choice state ── */
#tp-choice {
  align-items: center; min-height: 150px;
}
.tp-choice-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.5rem 2.5rem; gap: 2rem;
}
.tp-choice-text h2 {
  font-family: var(--serif); font-size: 1.6rem; margin-bottom: .4rem;
}
.tp-choice-text p {
  font-family: var(--serif); font-size: 1rem; color: var(--muted); max-width: 480px;
}
.choice-buttons {
  display: flex; gap: .75rem; flex-shrink: 0;
}
.btn-adopt, .btn-reject-choice {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1.75rem; border: none; border-radius: 4px;
  cursor: pointer; font-family: var(--sans);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-adopt        { background:rgba(52,210,123,.1);  border:1px solid rgba(52,210,123,.28); }
.btn-adopt:hover  { background:rgba(52,210,123,.18); transform:translateY(-2px); box-shadow:0 8px 24px rgba(52,210,123,.14); }
.btn-reject-choice       { background:rgba(107,114,128,.1);  border:1px solid rgba(107,114,128,.28); }
.btn-reject-choice:hover { background:rgba(107,114,128,.18); transform:translateY(-2px); box-shadow:0 8px 24px rgba(107,114,128,.1); }
.btn-icon { font-size:1.4rem; }
.joy-col   { color:var(--joy); }
.grief-col { color:var(--grief); }
.btn-title { font-size:.95rem; font-weight:600; color:var(--text); display:block; text-align:left; }
.btn-desc  { font-size:.75rem; color:var(--muted); display:block; text-align:left; }

/* Three-column layout handled by .tp-state.active { display: flex } above */
.tp-col {
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.25rem 2rem;
}
.tp-left  { flex: 0 0 38%; border-right: 1px solid var(--border); gap: .6rem; }
.tp-mid   { flex: 1; border-right: 1px solid var(--border); gap: .4rem; }
.tp-right { flex: 0 0 20%; gap: .6rem; }

/* Phase tags */
.tp-tag {
  font-size:.65rem; letter-spacing:.2em; text-transform:uppercase;
  padding:.25rem .7rem; border-radius:2px; display:inline-block; align-self:flex-start;
}
.joy-tag       { background:rgba(52,210,123,.12);  color:var(--joy);   border:1px solid rgba(52,210,123,.2); }
.anger-tag     { background:rgba(232,64,64,.12);   color:var(--angry); border:1px solid rgba(232,64,64,.2); }
.reject-tag    { background:rgba(107,114,128,.12); color:var(--grief); border:1px solid rgba(107,114,128,.2); }
.negotiate-tag { background:rgba(232,160,74,.12);  color:var(--accent); border:1px solid rgba(232,160,74,.2); }
.hope-tag      { background:rgba(91,155,213,.12);  color:var(--hope);   border:1px solid rgba(91,155,213,.2); }
.china-tag     { background:rgba(212,168,67,.12);  color:var(--china);  border:1px solid rgba(212,168,67,.2); }
.bitter-tag    { background:rgba(139,125,189,.12); color:#8b7dbd;       border:1px solid rgba(139,125,189,.2); }

/* Stats */
.tp-stats { display:flex; gap:1.5rem; align-items:flex-end; }
.tp-stat  { display:flex; flex-direction:column; gap:.1rem; }
.tp-num   { font-size:2rem; font-weight:700; line-height:1; }
.tp-num.joy   { color:var(--joy); }
.tp-num.grief { color:var(--grief); }
.tp-lbl   { font-size:.7rem; color:var(--muted); letter-spacing:.06em; text-transform:uppercase; }

/* Quote */
.tp-quote-label { font-size:.65rem; letter-spacing:.15em; text-transform:uppercase; color:var(--muted); }
.tp-quote {
  font-family:var(--serif); font-style:italic; font-size:1.05rem; line-height:1.6;
  color:var(--text); transition:opacity .4s;
}

/* Timer (joy right col) */
.tp-timer-label { font-size:.7rem; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); }
.tp-timer-countdown { font-size:1.65rem; font-weight:700; color:var(--accent); line-height:1.1; font-variant-numeric: tabular-nums; }
.tp-timer-track { height:4px; background:rgba(255,255,255,0.08); border-radius:2px; overflow:hidden; margin-top:.5rem; }
.tp-timer-fill { height:100%; width:100%; background:var(--accent); border-radius:2px; }

/* Money display (anger left col) */
.money-big { display:flex; flex-direction:column; gap:.15rem; }
.money-num { font-size:2.4rem; font-weight:700; color:var(--angry); line-height:1; }
.money-sub { font-size:.75rem; color:var(--muted); letter-spacing:.05em; }

/* Dependency chain (anger) */
.dep-chain { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; margin-top:.25rem; }
.dep-node  { padding:.25rem .65rem; border-radius:3px; font-size:.75rem; font-weight:600; }
.nation-node { background:rgba(52,210,123,.1);  border:1px solid rgba(52,210,123,.25); color:var(--joy); }
.server-node { background:rgba(232,160,74,.1);  border:1px solid rgba(232,160,74,.25); color:var(--accent); }
.us-node     { background:rgba(232,64,64,.1);   border:1px solid rgba(232,64,64,.25);  color:var(--angry); }
.dep-arr     { color:var(--muted); font-size:.9rem; }

/* Anger right col */
.tp-reflect-prompt { font-family:var(--serif); font-size:.9rem; color:var(--muted); font-style:italic; line-height:1.5; }

.btn-reflect {
  background:transparent; border:1px solid rgba(255,255,255,.15);
  color:var(--text); padding:.6rem 1.25rem; font-size:.8rem; font-family:var(--sans);
  cursor:pointer; border-radius:2px; letter-spacing:.05em; transition:all .2s; margin-top:.25rem;
}
.btn-reflect:hover { border-color:var(--accent); color:var(--accent); }
.grief-btn { border-color:rgba(107,114,128,.3); }
.grief-btn:hover { border-color:var(--grief); color:var(--grief); }

/* Year counter (reject right col) */
.tp-right-reject { align-items:flex-start; justify-content:center; gap:.75rem; }
.year-counter {
  font-family:var(--serif); font-size:2.6rem; font-weight:600;
  color:var(--grief); line-height:1; transition:opacity .4s;
}

/* ══════════════════════════════════════
   MAP
══════════════════════════════════════ */
#map-container {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: row;
}

/* ── Left money sidebar ── */
#money-sidebar {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid transparent;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1), border-color 0.3s;
  display: flex;
  flex-direction: column;
  padding: 0;
}
#money-sidebar.visible {
  width: 210px;
  border-color: var(--border);
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
}

.ms-state { display: none; flex-direction: column; gap: 0.3rem; }
.ms-state.active { display: flex; }

.ms-header {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.1rem;
}
.ms-big {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.1rem 0;
}
.ms-sub  { font-size: 0.7rem; color: var(--muted); line-height: 1.3; }
.ms-tick { animation: tickFade 1s ease infinite alternate; }
@keyframes tickFade { from { opacity:0.4; } to { opacity:1; } }

.ms-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.75rem 0 0.4rem;
}

.ms-item {
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0.15rem 0;
}
.ms-good { color: var(--joy); }
.ms-bad  { color: var(--muted); }

.joy-col   { color: var(--joy); }
.angry-col { color: var(--angry); }
.grief-col { color: var(--grief); }
.hope-col  { color: var(--hope); }
.china-col { color: var(--china); }

/* ── Map wrapper ── */
#map-wrapper {
  flex: 1;
  position: relative;
  min-width: 0;
  min-height: 0;
  transition: filter 2s ease;
}
#map-wrapper.greyscale {
  filter: grayscale(0.8) brightness(0.6);
}
#map { width:100%; height:100%; }

/* Reject vignette */
#reject-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 10;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,0.7) 100%);
  opacity: 0; transition: opacity 3s ease;
}
#reject-vignette.active { opacity: 1; }

/* SpaceX marker pulse */
@keyframes spxPulse { 0%,100% { opacity:.6; } 50% { opacity:1; } }

.res-inner  { max-width:960px; margin:0 auto; }

.res-title { font-family:var(--serif); font-size:clamp(2.2rem,6vw,4rem); text-align:center; color:var(--accent); margin-bottom:.5rem; }
.res-sub   { text-align:center; font-family:var(--serif); font-style:italic; color:var(--muted); font-size:1.1rem; margin-bottom:3rem; }

.comparison-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:2.5rem; }
.compare-col { background:var(--bg-2); border:1px solid var(--border); border-radius:6px; padding:1.75rem; }
.adopt-side  { border-top:3px solid var(--joy); }
.reject-side { border-top:3px solid var(--grief); }
.compare-col h3 { font-size:.85rem; font-weight:600; letter-spacing:.04em; margin-bottom:1.1rem; padding-bottom:.7rem; border-bottom:1px solid var(--border); }
.adopt-side h3  { color:var(--joy); }
.reject-side h3 { color:var(--grief); }
.compare-col ul { list-style:none; display:flex; flex-direction:column; gap:.6rem; }
.compare-col li { font-size:.875rem; line-height:1.5; color:var(--muted); padding-left:1rem; position:relative; }
.compare-col li::before { content:'—'; position:absolute; left:0; color:rgba(255,255,255,.15); }

.framework-box { background:rgba(232,160,74,.05); border:1px solid rgba(232,160,74,.18); border-radius:8px; padding:2rem; margin-bottom:1.5rem; }
.framework-box h4 { font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; color:var(--accent); margin-bottom:1.1rem; }
.framework-box p  { font-family:var(--serif); font-size:1.1rem; line-height:1.8; color:var(--muted); margin-bottom:.8rem; }
.framework-box p:last-child { margin-bottom:0; }
.framework-box em { color:var(--text); font-style:italic; }

.crimea-panel { display:flex; gap:1.4rem; align-items:flex-start; background:rgba(232,64,64,.05); border:1px solid rgba(232,64,64,.18); border-radius:8px; padding:1.75rem; margin-bottom:2.5rem; }
.crimea-i { flex-shrink:0; width:34px; height:34px; background:rgba(232,64,64,.18); border:1px solid rgba(232,64,64,.4); border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--angry); font-size:1rem; }
.crimea-panel h4 { font-size:.82rem; font-weight:600; color:var(--angry); margin-bottom:.7rem; }
.crimea-panel p  { font-family:var(--serif); font-size:1rem; line-height:1.7; color:var(--muted); margin-bottom:.5rem; }
.crimea-follow   { color:var(--text) !important; font-style:italic; }

.res-cta { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; padding-top:2rem; border-top:1px solid var(--border); }
.btn-about   { background:var(--accent); color:#0b0b10; padding:.85rem 2.2rem; font-size:.88rem; font-weight:700; text-decoration:none; border-radius:2px; transition:background .15s; letter-spacing:.04em; }
.btn-about:hover { background:#f0b565; }
.btn-restart { background:transparent; border:1px solid rgba(255,255,255,.14); color:var(--muted); padding:.85rem 2.2rem; font-size:.88rem; font-family:var(--sans); cursor:pointer; border-radius:2px; transition:all .2s; letter-spacing:.04em; }
.btn-restart:hover { border-color:rgba(255,255,255,.3); color:var(--text); }

/* ══════════════════════════════════════
   CRIMEA FLASH
══════════════════════════════════════ */
#crimea-flash {
  position:fixed; inset:0; background:rgba(0,0,0,.96); z-index:9999;
  display:flex; align-items:center; justify-content:center; padding:2rem;
  opacity:0; pointer-events:none; transition:opacity .5s ease; cursor:pointer;
}
#crimea-flash.active { opacity:1; pointer-events:all; }

.cf-content {
  max-width:580px; text-align:center;
  border:1px solid rgba(232,64,64,.3); background:rgba(232,64,64,.04);
  border-radius:8px; padding:3rem;
  animation:pulseRed 2.5s ease infinite;
}
@keyframes pulseRed { 0%,100%{border-color:rgba(232,64,64,.3);box-shadow:none;} 50%{border-color:rgba(232,64,64,.7);box-shadow:0 0 40px rgba(232,64,64,.12);} }

.cf-date     { font-size:.72rem; letter-spacing:.25em; text-transform:uppercase; color:var(--angry); margin-bottom:1.4rem; }
.cf-content h3 { font-family:var(--serif); font-size:clamp(1.4rem,3.5vw,2rem); line-height:1.35; color:var(--text); margin-bottom:1.2rem; }
.cf-content p  { font-family:var(--serif); font-size:1.05rem; line-height:1.7; color:var(--muted); margin-bottom:.7rem; }
.cf-question   { color:var(--angry) !important; font-size:1.2rem !important; font-style:italic; margin-top:.9rem; }
.cf-hint       { font-size:.7rem !important; color:rgba(122,120,132,.4) !important; letter-spacing:.1em; margin-top:2rem !important; }

/* ══════════════════════════════════════
   LEAFLET POPUPS
══════════════════════════════════════ */
.leaflet-popup-content-wrapper { background:#17171f !important; border:1px solid rgba(255,255,255,.1) !important; border-radius:6px !important; box-shadow:0 8px 32px rgba(0,0,0,.6) !important; color:var(--text) !important; max-width:300px; }
.leaflet-popup-tip { background:#17171f !important; }
.leaflet-popup-close-button { color:var(--muted) !important; }
.popup-name    { font-size:.78rem; font-weight:600; color:var(--accent); margin-bottom:.35rem; }
.popup-pop     { font-size:.68rem; color:rgba(122,120,132,.55); margin-bottom:.5rem; }
.popup-stat    { font-size:.75rem; font-weight:700; color:var(--joy); margin-bottom:.45rem; letter-spacing:.04em; }
.popup-story   { font-family:var(--serif); font-size:.9rem; line-height:1.58; color:var(--muted); }
/* legacy compat */
.popup-context { font-size:.75rem; color:var(--muted); line-height:1.45; margin-bottom:.55rem; }
.popup-quote   { font-family:var(--serif); font-style:italic; font-size:.88rem; line-height:1.5; color:var(--text); padding-top:.55rem; border-top:1px solid var(--border); }

/* Extraction chain popup */
.chain-label {
  font-size:.62rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--angry); margin:0.5rem 0 0.3rem;
}
.chain-path {
  font-family:var(--serif); font-size:.85rem; line-height:1.55;
  color:var(--muted); font-style:italic;
}

/* ══════════════════════════════════════
   CHOICE-2 PANELS (3-option Act 2 decision)
══════════════════════════════════════ */
#tp-adopt-choice2, #tp-reject-choice2 { min-height: 150px; }

.tp-choice2-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.5rem 2.5rem; gap: 2rem;
}
.tp-choice2-text h2 {
  font-family: var(--serif); font-size: 1.35rem; margin-bottom: .4rem; line-height: 1.25;
}
.tp-choice2-text p {
  font-family: var(--serif); font-size: .9rem; color: var(--muted); max-width: 400px; line-height: 1.55;
}
.choice-buttons-3 {
  display: flex; gap: .6rem; flex-shrink: 0;
}
.btn-choice2 {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .85rem 1.15rem; border: 1px solid var(--border); border-radius: 4px;
  background: rgba(255,255,255,.03); cursor: pointer; font-family: var(--sans);
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
  min-width: 162px; text-align: left;
}
.btn-choice2:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.btn-choice2 .btn-icon { font-size: 1.3rem; flex-shrink: 0; padding-top: .05rem; }
.btn-choice2 .btn-title { font-size: .85rem; font-weight: 600; color: var(--text); display: block; }
.btn-choice2 .btn-desc  { font-size: .7rem; color: var(--muted); display: block; margin-top: .15rem; line-height: 1.3; }

/* ══════════════════════════════════════
   ENDING SECTIONS
══════════════════════════════════════ */
.ending-section {
  background: var(--bg);
  padding: 5rem 2rem 6rem;
  animation: fadeUp 1s ease both;
}

.analysis-box {
  border-radius: 8px; padding: 2rem; margin-bottom: 1.5rem; border: 1px solid;
}
.analysis-box h4 {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.analysis-box p {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.8; color: var(--muted); margin-bottom: .8rem;
}
.analysis-box p:last-child { margin-bottom: 0; }
.analysis-box em { color: var(--text); font-style: italic; }

.analysis-negotiate  { border-color:rgba(232,160,74,.18); background:rgba(232,160,74,.05); }
.analysis-negotiate h4 { color: var(--accent); }
.analysis-accept-dep { border-color:rgba(232,64,64,.18);  background:rgba(232,64,64,.05); }
.analysis-accept-dep h4 { color: var(--angry); }
.analysis-build-alt  { border-color:rgba(91,155,213,.18); background:rgba(91,155,213,.05); }
.analysis-build-alt h4  { color: var(--hope); }
.analysis-capitulate { border-color:rgba(139,125,189,.18); background:rgba(139,125,189,.05); }
.analysis-capitulate h4 { color: #8b7dbd; }
.analysis-regional   { border-color:rgba(91,155,213,.18); background:rgba(91,155,213,.05); }
.analysis-regional h4 { color: var(--hope); }
.analysis-chinese    { border-color:rgba(212,168,67,.18); background:rgba(212,168,67,.05); }
.analysis-chinese h4 { color: var(--china); }

/* ══════════════════════════════════════
   TOAST NOTIFICATIONS (reject path)
══════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 320px;
}

.toast {
  background: var(--bg-2);
  border: 1px solid rgba(107,114,128,0.3);
  border-left: 3px solid var(--grief);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  pointer-events: all;
  animation: toastIn 0.4s cubic-bezier(0.2,0,0,1) both;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.toast.toast-critical {
  border-left-color: var(--angry);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

.toast.removing {
  animation: toastOut 0.4s cubic-bezier(0.4,0,1,1) both;
}

.toast-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1.4; }

.toast-body { display: flex; flex-direction: column; gap: 0.15rem; }

.toast-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toast-msg {
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ══════════════════════════════════════
   DIV ICON MARKERS
══════════════════════════════════════ */
.lm {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

.lm-excluded {
  background: rgba(232,160,74,0.7);
  box-shadow: 0 0 0 2px rgba(232,160,74,0.25);
  animation: lm-pulse 2.8s ease-in-out infinite;
}

.lm-joy {
  background: rgba(52,210,123,0.88);
  animation: lm-ripple 1.8s ease-out infinite;
}

.lm-angry {
  background: rgba(232,64,64,0.88);
  animation: lm-drain 2.2s ease-in-out infinite;
}

.lm-grief {
  background: rgba(107,114,128,0.4);
  box-shadow: none;
  animation: lm-fade 3s ease-in-out infinite alternate;
}

@keyframes lm-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.3); opacity: 1; }
}

@keyframes lm-ripple {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(52,210,123,0.55); }
  70%  { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(52,210,123,0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(52,210,123,0); }
}

@keyframes lm-drain {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%       { transform: scale(0.82); opacity: 0.65; }
}

@keyframes lm-fade {
  0%   { opacity: 0.28; }
  100% { opacity: 0.55; }
}

/* ══════════════════════════════════════
   MAP CONSEQUENCE LABELS (reject path)
══════════════════════════════════════ */
.map-label {
  background: rgba(11,11,16,0.88);
  border: 1px solid rgba(107,114,128,0.3);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grief);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.map-label.visible { opacity: 1; }

.joy-label {
  color: var(--joy);
  border-color: rgba(52,210,123,0.3);
  background: rgba(11,11,16,0.85);
}

/* ══════════════════════════════════════
   PRE-CHOICE VIGNETTES
══════════════════════════════════════ */
#tp-vignettes.active {
  display: flex; align-items: center; justify-content: center; min-height: 165px;
}
.vignette-container {
  max-width: 560px; padding: 2rem; text-align: center; position: relative;
}
.vignette-slide { display: none; }
.vignette-slide.active { display: block; animation: fadeUp 0.8s ease both; }
.vignette-text {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.78;
  color: var(--text); font-style: italic;
}
.vignette-cta-text {
  font-family: var(--serif); font-size: 1.28rem; color: var(--accent);
  margin-bottom: 1.2rem; line-height: 1.4;
}
.btn-vignette-proceed {
  background: transparent; border: 1px solid rgba(232,160,74,0.4);
  color: var(--accent); padding: 0.65rem 2rem; font-family: var(--sans);
  font-size: 0.85rem; letter-spacing: 0.08em; cursor: pointer;
  border-radius: 2px; transition: background .2s, border-color .2s;
}
.btn-vignette-proceed:hover { background: rgba(232,160,74,0.08); border-color: var(--accent); }
.vignette-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.2rem; }
.vig-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15); transition: background 0.3s;
}
.vig-dot.active { background: var(--accent); }

/* ══════════════════════════════════════
   HISTORICAL MIRROR LINES
══════════════════════════════════════ */
.hist-mirror {
  font-family: var(--serif); font-style: italic; font-size: 0.8rem;
  line-height: 1.55; color: var(--accent); opacity: 0;
  max-height: 0; overflow: hidden;
  transition: opacity 1.2s ease, max-height 1.2s ease;
  margin-top: 0.5rem;
}
.hist-mirror.visible { opacity: 0.8; max-height: 6rem; }
.hist-mirror p { margin: 0; }
.hist-mirror-line {
  font-family: var(--serif); font-style: italic; font-size: 0.85rem;
  line-height: 1.6; color: var(--accent); text-align: center;
  margin-bottom: 1.5rem; opacity: 0.8;
}

/* ══════════════════════════════════════
   PURCHASING POWER EQUIVALENTS
══════════════════════════════════════ */
.ms-equiv {
  font-family: var(--serif); font-style: italic; font-size: 0.67rem;
  color: var(--muted); opacity: 0.75; line-height: 1.3;
  min-height: 1rem; transition: opacity 0.4s ease;
}
.ms-equiv.fading { opacity: 0; }

/* ══════════════════════════════════════
   ACT 2 PROGRESS INDICATOR
══════════════════════════════════════ */
.c2-progress-track {
  height: 3px; background: rgba(255,255,255,0.07);
  border-radius: 2px; overflow: hidden; margin-bottom: 0.4rem;
}
.c2-progress-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 2px; }
.c2-progress-label {
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* ══════════════════════════════════════
   LOCK-IN DEAD-END INTERACTION
══════════════════════════════════════ */
#lockin-panel { margin-top: 0.75rem; }
.btn-cancel-starlink {
  background: rgba(232,64,64,0.08); border: 1px solid rgba(232,64,64,0.3);
  color: var(--angry); padding: 0.5rem 1rem; font-family: var(--sans);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  cursor: pointer; border-radius: 2px; transition: all 0.3s; width: 100%;
}
.btn-cancel-starlink:hover:not(:disabled) { background: rgba(232,64,64,0.16); }
.btn-cancel-starlink:disabled {
  background: rgba(107,114,128,0.06); border-color: rgba(107,114,128,0.15);
  color: var(--grief); cursor: not-allowed; opacity: 0.6;
}
.lockin-denial {
  font-family: var(--serif); font-style: italic; font-size: 0.7rem;
  line-height: 1.5; color: var(--muted); margin-top: 0.5rem;
  animation: fadeUp 0.6s ease both;
}

/* ══════════════════════════════════════
   VISIT GATE
══════════════════════════════════════ */
.visit-gate {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  transition: opacity 0.6s ease;
}

.visit-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.vd {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.vd.filled {
  background: var(--accent);
  border-color: var(--accent);
}

.visit-status {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.visit-gate.gate-open { opacity: 0; pointer-events: none; }

/* Disabled state for choice buttons */
.btn-adopt:disabled, .btn-reject-choice:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ══════════════════════════════════════
   MAP HINT (joy phase)
══════════════════════════════════════ */
.tp-map-hint {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.22);
  margin-top: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ══════════════════════════════════════
   CONTRACT OVERLAY
══════════════════════════════════════ */
#contract-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.contract-modal {
  background: #0a0a12;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid rgba(255,255,255,0.35);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 3px;
}

.contract-header-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem 0;
}

.contract-party {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(233,229,221,0.55);
}

.contract-x {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.18);
}

.contract-body {
  padding: 0 2rem 2rem;
}

.contract-doc-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  text-align: center;
  margin: 1.5rem 0 0.4rem;
  line-height: 1.3;
}

.contract-doc-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  text-align: center;
  margin-bottom: 1.75rem;
}

.contract-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0 0 1.75rem;
}

.contract-clause {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contract-clause:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.clause-header {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.clause-num {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(232,160,74,0.65);
  font-weight: 700;
  flex-shrink: 0;
}

.clause-title {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  font-weight: 600;
}

.clause-body {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(233,229,221,0.6);
}

.clause-body strong {
  color: rgba(233,229,221,0.88);
  font-weight: 600;
}

.contract-sign-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contract-sign-text {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(233,229,221,0.6);
  text-align: center;
}

.contract-sign-text strong {
  color: var(--text);
}

.btn-contract-sign {
  display: block;
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(232,160,74,0.45);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-contract-sign:hover {
  background: rgba(232,160,74,0.08);
  border-color: rgba(232,160,74,0.75);
}

.btn-contract-back {
  background: none;
  border: none;
  color: rgba(255,255,255,0.22);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  padding: 0.3rem;
  transition: color 0.2s;
}

.btn-contract-back:hover {
  color: rgba(255,255,255,0.45);
}

/* ══════════════════════════════════════
   PRE-PHASE SCREEN
══════════════════════════════════════ */
#screen-prephase {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 2rem;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(107,114,128,0.06) 0%, transparent 55%),
    #0b0b10;
  position: relative;
}

.pp-progress {
  position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 10;
}
.pp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.12); transition: background 0.4s;
}
.pp-dot.active { background: rgba(255,255,255,0.45); }

.pp-scene { display: none; width: 100%; max-width: 620px; }
.pp-scene.active { display: block; animation: fadeUp 0.6s ease both; }

.pp-inner {
  display: flex; flex-direction: column; gap: 1.75rem;
}
.pp-inner-final { align-items: center; text-align: center; }

.pp-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted);
}

.pp-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 2rem;
}
.pp-card-letter { border-left: 3px solid rgba(255,255,255,0.15); }

.pp-letter-ref {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
}
.pp-letter-body {
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.75;
  color: rgba(233,229,221,0.7); margin-bottom: 0.75rem;
}
.pp-letter-body strong { color: var(--text); }
.pp-letter-verdict {
  font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem;
  padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.pp-letter-verdict strong { color: var(--angry); }

.pp-card-title {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
}

.pp-comparison { display: flex; flex-direction: column; gap: 0.6rem; }
.pp-cmp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pp-cmp-label { font-size: 0.82rem; color: var(--muted); }
.pp-cmp-val { font-size: 1.5rem; font-weight: 700; }
.pp-val-bad { color: var(--angry); }
.pp-cmp-divider { border-top: 1px solid var(--border); margin: 0.25rem 0; }
.pp-cmp-conclusion {
  font-family: var(--serif); font-size: 0.9rem; line-height: 1.6;
  color: var(--muted); display: block;
}
.pp-cmp-conclusion strong { color: var(--text); }

.pp-timeline-list { display: flex; flex-direction: column; gap: 0.5rem; }
.pp-tl-row {
  font-size: 0.82rem; padding: 0.4rem 0.8rem;
  border-left: 2px solid transparent;
}
.pp-tl-past   { color: rgba(233,229,221,0.3); border-color: rgba(255,255,255,0.07); }
.pp-tl-now    { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.pp-tl-future { color: var(--muted); border-color: rgba(255,255,255,0.07); }
.pp-tl-future strong { color: var(--grief); }

.pp-notification {
  background: rgba(232,160,74,0.04);
  border: 1px solid rgba(232,160,74,0.2);
  border-radius: 4px;
  padding: 1.1rem 1.4rem;
  margin-top: 0.5rem;
}
.pp-notif-label {
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
.pp-notif-body {
  font-family: var(--serif); font-size: 0.95rem; line-height: 1.65;
  color: var(--muted); margin-bottom: 0.85rem;
}
.pp-notif-body strong { color: var(--text); }
.pp-notif-btns { display: flex; gap: 0.6rem; }
.pp-notif-response {
  font-family: var(--serif); font-style: italic; font-size: 0.9rem;
  color: var(--muted);
}

.btn-pp-accept {
  background: transparent; border: 1px solid rgba(52,210,123,0.35);
  color: var(--joy); padding: 0.45rem 1.1rem; font-family: var(--sans);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  cursor: pointer; border-radius: 2px; transition: background 0.2s;
}
.btn-pp-accept:hover { background: rgba(52,210,123,0.08); }

.btn-pp-decline {
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted); padding: 0.45rem 1.1rem; font-family: var(--sans);
  font-size: 0.75rem; cursor: pointer; border-radius: 2px; transition: color 0.2s;
}
.btn-pp-decline:hover { color: var(--text); }

.btn-pp-continue {
  background: transparent; border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted); padding: 0.65rem 1.75rem; font-family: var(--sans);
  font-size: 0.8rem; letter-spacing: 0.08em; cursor: pointer;
  border-radius: 2px; transition: all 0.2s; align-self: flex-start;
}
.btn-pp-continue:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }

.pp-final-intro {
  font-family: var(--serif); font-size: 1.2rem; color: var(--muted);
  margin-bottom: 1.5rem;
}
.pp-final-offer {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 2px 4px 4px 2px;
  padding: 1.4rem 1.75rem; margin-bottom: 2rem; text-align: left;
}
.pp-final-offer p {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.7;
  color: rgba(233,229,221,0.7);
}
.pp-final-offer strong { color: var(--text); }

/* ══════════════════════════════════════
   AMARA NARRATIVE SCENES (Phase 4)
══════════════════════════════════════ */
.pp-card-amara {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 2px 4px 4px 2px;
  padding: 1.25rem 1.5rem;
}

.pp-amara-header {
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1rem;
}

.pp-amara-avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}

.pp-amara-name {
  font-weight: 600; font-size: 0.9rem; color: var(--text);
  margin: 0;
}

.pp-amara-role {
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.04em; margin: 0.15rem 0 0;
}

.pp-amara-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 0.95rem; line-height: 1.7; color: rgba(233,229,221,0.75);
  margin: 0 0 0.6rem;
}

.pp-amara-outcome {
  color: var(--angry); font-style: italic;
  border-top: 1px solid rgba(232,64,64,0.15);
  padding-top: 0.6rem; margin-top: 0.2rem;
}

.pp-scene-context {
  font-size: 0.82rem; color: var(--muted); margin: 1rem 0;
  line-height: 1.6;
}

.pp-scene-context strong { color: var(--text); }

/* Stakes scene */
.pp-card-stakes {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem 1.75rem;
}

.pp-stakes-lead {
  font-family: var(--serif); font-size: 0.95rem;
  color: var(--muted); margin: 0 0 1.1rem; font-style: italic;
}

.pp-stakes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 1.1rem;
}

.pp-stakes-stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.25rem; text-align: center;
}

.pp-stakes-num {
  font-size: 1.5rem; font-weight: 700; color: var(--accent);
  line-height: 1;
}

.pp-stakes-lbl {
  font-size: 0.65rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}

.pp-stakes-footer {
  font-size: 0.8rem; color: var(--muted); line-height: 1.6;
  border-top: 1px solid var(--border); padding-top: 0.9rem; margin: 0;
}

/* ══════════════════════════════════════
   JOY TRANSITION PROMPT (Phase 2)
══════════════════════════════════════ */
#joy-transition-prompt {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  animation: fadeInUp 0.5s ease both;
}

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

.jtp-text {
  font-family: var(--serif); font-style: italic;
  font-size: 0.8rem; color: var(--muted);
  margin: 0 0 0.6rem; line-height: 1.5;
}

.btn-jtp {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text); padding: 0.5rem 1rem;
  font-family: var(--sans); font-size: 0.72rem;
  letter-spacing: 0.06em; cursor: pointer;
  border-radius: 2px; transition: all 0.2s; width: 100%;
  text-align: left;
}

.btn-jtp:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
}

/* ══════════════════════════════════════
   DATA-FLOW PRIMER OVERLAY (Phase 5)
══════════════════════════════════════ */
#data-flow-primer {
  position: fixed; inset: 0;
  background: rgba(8,8,14,0.92);
  backdrop-filter: blur(8px);
  z-index: 1400;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}

#data-flow-primer.hidden { display: none; }

.dfp-modal {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  max-width: 560px; width: 100%;
  padding: 2.25rem 2.5rem;
  text-align: center;
}

.dfp-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--angry);
  margin: 0 0 0.6rem;
}

.dfp-title {
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--text); margin: 0 0 1.75rem; font-weight: 400;
}

.dfp-diagram {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 1.75rem;
  flex-wrap: nowrap;
}

.dfp-node {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.3rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 0.85rem 1rem;
  min-width: 100px; flex-shrink: 0;
}

.dfp-node-us { border-color: rgba(232,64,64,0.3); }

.dfp-node-icon { font-size: 1.4rem; }

.dfp-node-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text); letter-spacing: 0.04em;
}

.dfp-node-sub {
  font-size: 0.6rem; color: var(--muted);
  letter-spacing: 0.04em; text-align: center;
  line-height: 1.4;
}

.dfp-node-us .dfp-node-sub { color: rgba(232,64,64,0.7); }

.dfp-arrow-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.2rem;
  padding: 0 0.4rem; flex-shrink: 0;
}

.dfp-arrow-line {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--border), rgba(255,255,255,0.15));
  position: relative;
}

.dfp-arrow-line::after {
  content: '›'; position: absolute;
  right: -6px; top: -9px;
  color: var(--muted); font-size: 1rem;
}

.dfp-arrow-label {
  font-size: 0.56rem; color: var(--muted);
  letter-spacing: 0.05em; white-space: nowrap;
}

.dfp-body {
  font-family: var(--serif); font-size: 0.95rem;
  line-height: 1.75; color: rgba(233,229,221,0.65);
  margin: 0 0 0.85rem; text-align: left;
}

.dfp-body-tension {
  color: rgba(233,229,221,0.8);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem; margin-top: 0.4rem;
}

.dfp-body-tension strong { color: var(--text); }

.btn-dfp-continue {
  margin-top: 1.5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--muted); padding: 0.75rem 1.5rem;
  font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.06em; cursor: pointer;
  border-radius: 2px; transition: all 0.25s;
  width: 100%;
}

.btn-dfp-continue:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

/* ══════════════════════════════════════
   ENDING QUESTIONS (Phase 8)
══════════════════════════════════════ */
.ending-question {
  max-width: 580px; margin: 2.5rem auto 0;
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.eq-text {
  font-family: var(--serif); font-style: italic;
  font-size: 1.2rem; line-height: 1.75; color: var(--text);
}

.res-cta-delayed { transition: opacity 0.8s ease; }
.res-cta-delayed.cta-waiting {
  opacity: 0; pointer-events: none;
}

/* ══════════════════════════════════════
   PHONE NOTIFICATIONS (Phase 5)
══════════════════════════════════════ */
#phone-notifs {
  position: fixed;
  top: 5rem; right: 1.25rem;
  z-index: 900;
  display: flex; flex-direction: column; gap: 0.6rem;
  max-width: 280px;
  pointer-events: none;
}

.phone-msg {
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  pointer-events: all;
  animation: phoneIn 0.4s cubic-bezier(0.2,0,0,1) both;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.phone-msg-out {
  animation: phoneOut 0.45s cubic-bezier(0.4,0,1,1) both;
}
@keyframes phoneIn {
  from { opacity:0; transform: translateX(60px) scale(0.95); }
  to   { opacity:1; transform: translateX(0)   scale(1); }
}
@keyframes phoneOut {
  from { opacity:1; transform: translateX(0); }
  to   { opacity:0; transform: translateX(60px); }
}

.phone-msg-header {
  display: flex; align-items: center; gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.phone-avatar { font-size: 0.85rem; }
.phone-sender {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
}
.phone-text {
  font-family: var(--serif); font-size: 0.82rem; line-height: 1.5;
  color: var(--muted);
}

/* ══════════════════════════════════════
   NEWS TICKER (Phase 6)
══════════════════════════════════════ */
#news-ticker {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 30px;
  background: rgba(11,11,16,0.9);
  border-top: 1px solid rgba(232,64,64,0.18);
  display: flex; align-items: center;
  z-index: 800;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.ticker-label {
  flex-shrink: 0;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--angry);
  padding: 0 1rem;
  border-right: 1px solid rgba(232,64,64,0.2);
  white-space: nowrap;
}

.ticker-track {
  flex: 1; overflow: hidden; height: 100%;
  display: flex; align-items: center;
}

.ticker-inner {
  display: flex; align-items: center; white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  font-size: 0.68rem; color: var(--muted);
  padding: 0 1.5rem;
}

.ticker-crimea {
  color: var(--angry);
  font-weight: 600;
}

.ticker-sep {
  color: rgba(255,255,255,0.12);
  font-size: 0.75rem;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width:768px) {
  .tp-state:not(#tp-choice) { flex-direction:column; }
  .tp-left, .tp-mid, .tp-right { border:none; border-bottom:1px solid var(--border); padding:1rem 1.5rem; }
  .tp-right:last-child { border-bottom:none; }
  .comparison-grid { grid-template-columns:1fr; }
  .tp-stats { gap:1rem; }
  .choice-buttons { flex-direction:column; }
  .tp-choice-inner { flex-direction:column; align-items:flex-start; }
  .choice-buttons-3 { flex-direction:column; }
  .tp-choice2-inner { flex-direction:column; align-items:flex-start; }
  .cf-content { padding:2rem 1.5rem; }
  .crimea-panel { flex-direction:column; }
}
