/* ============================================================
   E PLURIBUS EURO — Scrollytelling story page
   ============================================================ */

.story-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* --- Header with hero image --- */
.story-header {
  position: relative;
  width: 100%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  overflow: hidden;
}

.story-header-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../images/EPluribusEuroConcept.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.story-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.story-title {
  position: relative;
  z-index: 1;
  font-family: "Special Elite", monospace;
  font-size: 4.5rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: #fff;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.6);
  paint-order: stroke fill;
  text-shadow:
    3px 3px 0 rgba(0,0,0,0.4),
    -1px -1px 0 rgba(0,0,0,0.3),
    1px -1px 0 rgba(0,0,0,0.3),
    -1px 1px 0 rgba(0,0,0,0.3),
    0 0 20px rgba(0,0,0,0.3);
}

.story-subtitle {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 1.55rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0;
  margin-top: 1.5rem;
  max-width: 650px;
  text-shadow:
    2px 2px 4px rgba(0,0,0,0.7),
    -1px -1px 3px rgba(0,0,0,0.5),
    0 0 10px rgba(0,0,0,0.4);
}

.story-author {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-align: center;
  padding: 1rem 2rem 0;
}

/* --- Beat sections (theory illustrations) --- */
.beat-scroll {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.beat-sticky {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  height: 520px;
  width: 62%;
  float: left;
  margin-right: 2rem;
  z-index: 2;
}

.beat-stage {
  width: 100%;
  height: 100%;
  position: relative;
}

.beat-steps {
  width: 33%;
  float: right;
}

.beat-step {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.beat-step .step-text {
  background: rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.beat-step.is-active .step-text {
  opacity: 1;
}

.beat-step .step-text p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}
.beat-step .step-text p:last-child {
  margin-bottom: 0;
}

/* --- Polandball country bubbles --- */
.country-bubble {
  position: absolute;
  border-radius: 50%;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  overflow: visible;
}

/* Eyes container */
.pb-eyes {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  display: flex;
  justify-content: center;
  gap: 12%;
  z-index: 3;
  pointer-events: none;
  transition: top 0.3s ease;
}

.pb-eye {
  width: 30%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  position: relative;
  transition: all 0.4s ease;
}

/* Angry brow lines */
.pb-brow {
  position: absolute;
  width: 120%;
  height: 3px;
  background: #222;
  top: -5px;
  left: -10%;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.pb-eye:first-child .pb-brow {
  transform: rotate(20deg);
  transform-origin: right center;
}
.pb-eye:last-child .pb-brow {
  transform: rotate(-20deg);
  transform-origin: left center;
}

/* Happy and content use SVG eyes set via JS */
.pb-happy .pb-eyes, .pb-content .pb-eyes { top: 26%; }
.pb-happy .pb-eye, .pb-content .pb-eye {
  width: 30%;
  height: 20%;
  aspect-ratio: auto;
  background: transparent;
  border: none;
  border-radius: 0;
}
.pb-happy .pb-eye svg, .pb-content .pb-eye svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Neutral: small solid round eyes */
.pb-neutral .pb-eye {
  width: 24%;
  background: #fff;
  border: 2px solid #222;
}

/* Shocked: big wide white eyes */
.pb-shocked .pb-eyes { top: 24%; }
.pb-shocked .pb-eye {
  width: 36%;
  transform: scaleY(1.15);
  background: #fff;
  border: 2px solid #222;
}

/* Panicked: even bigger */
.pb-panicked .pb-eyes { top: 22%; }
.pb-panicked .pb-eye {
  width: 40%;
  transform: scaleY(1.3);
  background: #fff;
  border: 2px solid #222;
}

/* Angry/fighting: narrowed with brow lines */
.pb-angry .pb-eyes { top: 27%; }
.pb-angry .pb-eye {
  width: 32%;
  transform: scaleY(0.55);
  background: #fff;
  border: 2px solid #222;
}
.pb-angry .pb-brow {
  opacity: 1;
}

/* Determined: like angry but slightly more open */
.pb-determined .pb-eyes { top: 26%; }
.pb-determined .pb-eye {
  width: 30%;
  transform: scaleY(0.7);
  background: #fff;
  border: 2px solid #222;
}
.pb-determined .pb-brow {
  opacity: 1;
  height: 2px;
}
.pb-determined .pb-eye:first-child .pb-brow {
  transform: rotate(12deg);
}
.pb-determined .pb-eye:last-child .pb-brow {
  transform: rotate(-12deg);
}

/* Hurt and relieved use SVG eyes set via JS */
.pb-hurt .pb-eyes { top: 26%; }
.pb-hurt .pb-eye {
  width: 30%;
  height: 20%;
  aspect-ratio: auto;
  background: transparent;
  border: none;
  border-radius: 0;
}
.pb-hurt .pb-eye svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pb-relieved .pb-eyes { top: 26%; }
.pb-relieved .pb-eye {
  width: 30%;
  height: 20%;
  aspect-ratio: auto;
  background: transparent;
  border: none;
  border-radius: 0;
}
.pb-relieved .pb-eye svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Mini weapons for EU members */
.pb-weapon {
  position: absolute;
  right: -20px;
  top: -10%;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s ease;
  z-index: 4;
  pointer-events: none;
  transform: rotate(-35deg);
  transform-origin: bottom center;
}
.pb-weapon.visible {
  opacity: 1;
}
.pb-weapon.dropped {
  opacity: 0.2;
  transform: rotate(90deg) translateY(20px);
}

/* Rapier/sword style */
.pb-weapon-sword {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pb-sword-blade {
  width: 3px;
  height: 28px;
  background: linear-gradient(to bottom, #ccc, #999);
  border-radius: 2px 2px 0 0;
}
.pb-sword-guard {
  width: 14px;
  height: 3px;
  background: #B8860B;
  border-radius: 1px;
}
.pb-sword-grip {
  width: 4px;
  height: 10px;
  background: #654321;
  border-radius: 0 0 1px 1px;
}

/* Small hammer style */
.pb-weapon-hammer {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pb-hammer-sm-head {
  width: 14px;
  height: 7px;
  background: #666;
  border-radius: 2px;
  border: 1px solid #444;
}
.pb-hammer-sm-handle {
  width: 3px;
  height: 16px;
  background: #8B5E3C;
  border-radius: 0 0 2px 2px;
}

/* Sunglasses (for USA) */
.pb-sunglasses {
  position: absolute;
  top: 30%;
  left: 10%;
  width: 80%;
  height: 25%;
  z-index: 4;
  pointer-events: none;
}
.pb-lens {
  position: absolute;
  width: 40%;
  height: 100%;
  background: #111;
  border-radius: 40%;
  top: 0;
  border: 1.5px solid #333;
}
.pb-lens-left { left: 5%; }
.pb-lens-right { right: 5%; }
.pb-bridge {
  position: absolute;
  top: 30%;
  left: 40%;
  width: 20%;
  height: 2px;
  background: #333;
}
.pb-arm-left, .pb-arm-right {
  position: absolute;
  top: 40%;
  width: 12%;
  height: 1.5px;
  background: #333;
}
.pb-arm-left { left: -8%; }
.pb-arm-right { right: -8%; }

/* Country label below ball — hidden */
.pb-label {
  display: none;
}

/* Small ball fixes: open eyes nudged down, closed eyes nudged up */
#bubble-IRL.pb-shocked .pb-eyes,
#bubble-IRL.pb-panicked .pb-eyes,
#bubble-IRL.pb-angry .pb-eyes,
#bubble-IRL.pb-determined .pb-eyes,
#bubble-PRT.pb-shocked .pb-eyes,
#bubble-PRT.pb-panicked .pb-eyes,
#bubble-PRT.pb-angry .pb-eyes,
#bubble-PRT.pb-determined .pb-eyes,
#bubble-GRC.pb-shocked .pb-eyes,
#bubble-GRC.pb-panicked .pb-eyes,
#bubble-LUX.pb-shocked .pb-eyes,
#bubble-LUX.pb-panicked .pb-eyes,
#bubble-FIN.pb-shocked .pb-eyes,
#bubble-FIN.pb-panicked .pb-eyes { top: 18% !important; }

#bubble-IRL.pb-happy .pb-eyes,
#bubble-IRL.pb-content .pb-eyes,
#bubble-IRL.pb-relieved .pb-eyes,
#bubble-IRL.pb-hurt .pb-eyes,
#bubble-PRT.pb-happy .pb-eyes,
#bubble-PRT.pb-content .pb-eyes,
#bubble-PRT.pb-relieved .pb-eyes,
#bubble-PRT.pb-hurt .pb-eyes,
#bubble-GRC.pb-happy .pb-eyes,
#bubble-GRC.pb-content .pb-eyes,
#bubble-LUX.pb-happy .pb-eyes,
#bubble-LUX.pb-content .pb-eyes,
#bubble-FIN.pb-happy .pb-eyes,
#bubble-FIN.pb-content .pb-eyes { top: 2% !important; }

/* Clip flags that use pseudo-elements to the circle */
.pb-flag-FIN, .pb-flag-USA, .pb-flag-CHN {
  overflow: hidden;
}

/* === Flag backgrounds (CSS gradients) === */

/* Germany: black-red-gold horizontal */
.pb-flag-DEU {
  background: linear-gradient(to bottom, #000 33.3%, #DD0000 33.3%, #DD0000 66.6%, #FFCC00 66.6%);
}
/* France: blue-white-red vertical */
.pb-flag-FRA {
  background: linear-gradient(to right, #002395 33.3%, #fff 33.3%, #fff 66.6%, #ED2939 66.6%);
}
/* Italy: green-white-red vertical */
.pb-flag-ITA {
  background: linear-gradient(to right, #009246 33.3%, #fff 33.3%, #fff 66.6%, #CE2B37 66.6%);
}
/* Spain: red-yellow-red horizontal */
.pb-flag-ESP {
  background: linear-gradient(to bottom, #C60B1E 25%, #FFC400 25%, #FFC400 75%, #C60B1E 75%);
}
/* Netherlands: red-white-blue horizontal */
.pb-flag-NLD {
  background: linear-gradient(to bottom, #AE1C28 33.3%, #fff 33.3%, #fff 66.6%, #21468B 66.6%);
}
/* Belgium: black-yellow-red vertical */
.pb-flag-BEL {
  background: linear-gradient(to right, #000 33.3%, #FAE042 33.3%, #FAE042 66.6%, #ED2939 66.6%);
}
/* Ireland: green-white-orange vertical */
.pb-flag-IRL {
  background: linear-gradient(to right, #169B62 33.3%, #fff 33.3%, #fff 66.6%, #FF883E 66.6%);
}
/* Austria: red-white-red horizontal */
.pb-flag-AUT {
  background: linear-gradient(to bottom, #ED2939 33.3%, #fff 33.3%, #fff 66.6%, #ED2939 66.6%);
}
/* Finland: white with blue cross - simplified */
.pb-flag-FIN {
  background: #fff;
  position: relative;
}
.pb-flag-FIN::before {
  content: "";
  position: absolute;
  top: 40%; left: 0; right: 0;
  height: 20%;
  background: #003580;
  z-index: 1;
}
.pb-flag-FIN::after {
  content: "";
  position: absolute;
  left: 30%; top: 0; bottom: 0;
  width: 20%;
  background: #003580;
  z-index: 1;
}
/* Portugal: green-red vertical */
.pb-flag-PRT {
  background: linear-gradient(to right, #006600 40%, #FF0000 40%);
}
/* Greece: blue-white stripes */
.pb-flag-GRC {
  background: repeating-linear-gradient(to bottom, #0D5EAF 0px, #0D5EAF 11%, #fff 11%, #fff 22%);
}
/* Luxembourg: red-white-blue horizontal */
.pb-flag-LUX {
  background: linear-gradient(to bottom, #ED2939 33.3%, #fff 33.3%, #fff 66.6%, #00A1DE 66.6%);
}

/* USA: simplified red-white stripes with blue corner */
.pb-flag-USA {
  background: repeating-linear-gradient(to bottom, #B22234 0px, #B22234 7.7%, #fff 7.7%, #fff 15.4%);
}
.pb-flag-USA::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 45%; height: 45%;
  background: #3C3B6E;
  z-index: 1;
  border-radius: 50% 0 0 0;
}

/* China: red background */
.pb-flag-CHN {
  background: #DE2910;
}
.pb-flag-CHN::before {
  content: "★";
  position: absolute;
  top: 8%; left: 12%;
  font-size: 1.4em;
  color: #FFDE00;
  z-index: 1;
  line-height: 1;
}
.pb-flag-CHN::after {
  content: "★★★★";
  position: absolute;
  top: 8%; left: 42%;
  font-size: 0.45em;
  color: #FFDE00;
  z-index: 1;
  line-height: 2.2;
  writing-mode: vertical-lr;
  letter-spacing: -0.1em;
}

/* Shake animation for tariff impact */
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3px, -2px); }
  20% { transform: translate(4px, 1px); }
  30% { transform: translate(-2px, 3px); }
  40% { transform: translate(3px, -1px); }
  50% { transform: translate(-4px, 2px); }
  60% { transform: translate(2px, -3px); }
  70% { transform: translate(-1px, 4px); }
  80% { transform: translate(3px, -2px); }
  90% { transform: translate(-2px, 1px); }
}

.country-bubble.shaking {
  animation: shake 1.2s ease-in-out;
}

.country-bubble.shaking-hard {
  animation: shake 1s ease-in-out infinite;
}

/* Tariff arrow */
.tariff-arrow {
  position: absolute;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tariff-arrow.visible {
  opacity: 1;
}

/* Retaliation arrow */
.retaliation-arrow {
  position: absolute;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.retaliation-arrow.visible {
  opacity: 0.7;
}

/* Defection drift */
.country-bubble.drifting {
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* USA shocked: glasses fly off, eyes appear */
#hegemon-usa .pb-sunglasses {
  transition: transform 0.5s ease, opacity 0.4s ease;
}
#hegemon-usa.usa-shocked .pb-sunglasses {
  transform: translateY(-25px) rotate(20deg);
  opacity: 0;
}
#hegemon-usa .pb-shocked-eyes {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  display: flex;
  justify-content: center;
  gap: 12%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
}
#hegemon-usa.usa-shocked .pb-shocked-eyes {
  opacity: 1;
}
#hegemon-usa .pb-shocked-eye {
  width: 36%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #222;
}

/* USA Tariff Hammer */
.pb-hammer {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform-origin: bottom center;
}
.pb-hammer.visible {
  opacity: 1;
}
.pb-hammer-head {
  width: 50px;
  height: 24px;
  background: #555;
  border-radius: 4px;
  position: relative;
  border: 2px solid #333;
}
.pb-hammer-label {
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Special Elite", monospace;
  font-size: 7px;
  color: #fff;
  letter-spacing: 0.05em;
}
.pb-hammer-handle {
  width: 6px;
  height: 35px;
  background: #8B5E3C;
  margin: 0 auto;
  border-radius: 0 0 3px 3px;
  border: 1px solid #6B4423;
}

/* Swing animation */
@keyframes hammerSwing {
  0% { transform: rotate(-30deg); }
  50% { transform: rotate(15deg); }
  100% { transform: rotate(-30deg); }
}
.pb-hammer.swinging {
  animation: hammerSwing 1.5s ease-in-out infinite;
}

/* EU Collective Shield */
.eu-shield {
  position: absolute;
  border: 3px solid rgba(91, 143, 168, 0.6);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(91, 143, 168, 0.2), inset 0 0 15px rgba(91, 143, 168, 0.1);
}
.eu-shield.visible {
  opacity: 1;
}
.eu-shield.cracked {
  border-style: dashed;
  border-color: rgba(225, 85, 70, 0.5);
  box-shadow: 0 0 15px rgba(225, 85, 70, 0.15);
}

.eu-shield-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Special Elite", monospace;
  font-size: 10px;
  color: rgba(91, 143, 168, 0.7);
  white-space: nowrap;
}

/* F-bar highlight */
.fbar-label {
  position: absolute;
  font-family: "Special Elite", monospace;
  font-size: 2rem;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.6s ease;
  text-align: center;
}
.fbar-label.visible {
  opacity: 1;
}

/* First mobile block removed — consolidated at end of file */

/* --- Text sections --- */
.story-text {
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

.story-lede {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.story-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.story-conclusion {
  padding-bottom: 5rem;
}

.story-cta a {
  font-family: "Special Elite", monospace;
  font-size: 0.9rem;
  color: var(--color-accent);
}

/* --- Chapter headings --- */
.chapter-heading {
  font-family: "Special Elite", monospace;
  font-size: 1.8rem;
  max-width: 850px;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
  color: var(--color-text);
}

.story-chapter .chapter-heading {
  padding-top: 3rem;
}

/* --- Scroll sections --- */
.scroll-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.scroll-section::after,
.beat-scroll::after {
  content: "";
  display: table;
  clear: both;
}

.scroll-sticky {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  height: 480px;
  width: 58%;
  float: left;
  margin-right: 2rem;
  z-index: 2;
}

.chart-container {
  width: 100%;
  height: 100%;
}

.chart-container svg {
  background: transparent;
}

/* === Crisis Chooser === */
.crisis-chooser {
  max-width: 950px;
  margin: 2rem auto 3rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.03);
  border: var(--border-thick);
}

.crisis-title {
  font-family: "Special Elite", monospace;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.crisis-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.crisis-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.crisis-option {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 3px solid var(--color-border-light);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.crisis-option:hover {
  border-color: var(--color-accent);
  box-shadow: 4px 4px 0 var(--color-accent);
  transform: translateY(-3px);
}
.crisis-option.selected {
  border-color: var(--color-accent);
  background: rgba(225, 85, 70, 0.05);
}

.crisis-ball {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.crisis-ball-inner {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.crisis-option h3 {
  font-family: "Special Elite", monospace;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.crisis-option p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.crisis-cost {
  font-family: "Special Elite", monospace;
  font-size: 1.3rem;
  color: var(--color-accent);
  font-weight: 700;
}

.crisis-switch-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Scenario selector --- */
.scenario-selector {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.scenario-btn {
  font-family: "Special Elite", monospace;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border: 2px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all 0.15s ease;
}
.scenario-btn:hover {
  background: var(--color-border);
  color: var(--color-bg);
}
.scenario-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* --- Scroll steps (text panels) --- */
.scroll-steps {
  width: 35%;
  float: right;
}

.scroll-step {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.step-text {
  background: rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.scroll-step.is-active .step-text {
  opacity: 1;
}

.step-text h3 {
  font-family: "Special Elite", monospace;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.step-text p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}
.step-text p:last-child {
  margin-bottom: 0;
}

/* === Interlude panels === */
.interlude {
  max-width: 950px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.interlude-panel {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.interlude-panel:nth-child(even) {
  flex-direction: row-reverse;
}

.scene {
  width: 320px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
  border-radius: 8px;
  overflow: visible;
}

.interlude-text {
  flex: 1;
}

.interlude-text h3 {
  font-family: "Special Elite", monospace;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

.interlude-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 0.6rem;
}

/* --- Hospital scene --- */
#scene-hospital {
  background: rgba(255,255,255,0.5);
}

/* Hospital bed */
.hospital-bed {
  position: absolute;
  bottom: 25px;
  left: 20px;
  width: 190px;
  height: 55px;
  background: #fff;
  border: 2.5px solid #bbb;
  border-radius: 6px;
}
.hospital-bed::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -35px;
  width: 55px;
  height: 35px;
  background: #fff;
  border: 2.5px solid #bbb;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.hospital-bed::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 8px;
  width: 170px;
  height: 14px;
  background: transparent;
  border-left: 4px solid #999;
  border-right: 4px solid #999;
}

/* Patient (Ireland in bed — sitting on the bed properly) */
.patient-ball {
  position: absolute;
  bottom: 60px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(to right, #169B62 33.3%, #fff 33.3%, #fff 66.6%, #FF883E 66.6%);
  z-index: 2;
}

/* Blanket covering lower half */
.blanket {
  position: absolute;
  bottom: 27px;
  left: 18px;
  width: 140px;
  height: 52px;
  background: #d4e6f1;
  border: 2px solid #aec6d6;
  border-radius: 4px;
  z-index: 3;
}

/* Bandage — simple plaster on forehead */
.bandage {
  position: absolute;
  bottom: 97px;
  left: 40px;
  width: 30px;
  height: 14px;
  background: #f5e0c3;
  border: 1.5px solid #d4b896;
  border-radius: 3px;
  z-index: 5;
  transform: rotate(-15deg);
}
.bandage::before,
.bandage::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 4px;
  height: 4px;
  background: #c9a882;
  border-radius: 50%;
}
.bandage::before { left: 5px; }
.bandage::after { right: 5px; }

/* Patient eyes (hurt — peeking through bandages) */
.patient-eyes {
  position: absolute;
  bottom: 82px;
  left: 42px;
  z-index: 6;
}
.patient-eyes svg {
  width: 30px;
  height: 12px;
}

/* Nurse (France) */
.nurse-ball {
  position: absolute;
  bottom: 30px;
  right: 45px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(to right, #002395 33.3%, #fff 33.3%, #fff 66.6%, #ED2939 66.6%);
  z-index: 2;
}

/* Nurse hat — tilted back to the right */
.nurse-hat {
  position: absolute;
  bottom: 82px;
  right: 42px;
  width: 40px;
  height: 22px;
  background: #fff;
  border: 2.5px solid #ddd;
  border-radius: 4px 4px 0 0;
  z-index: 3;
  transform: rotate(12deg);
  transform-origin: bottom left;
}
.nurse-hat::before {
  content: "✚";
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 900;
  color: #E15546;
  line-height: 1;
}

/* Nurse eyes (content/caring) */
.nurse-eyes {
  position: absolute;
  bottom: 57px;
  right: 55px;
  z-index: 4;
}
.nurse-eyes svg {
  width: 32px;
  height: 12px;
}

/* IV drip — larger */
.iv-stand {
  position: absolute;
  bottom: 25px;
  left: 210px;
  width: 4px;
  height: 140px;
  background: #888;
  z-index: 1;
  border-radius: 2px;
}
.iv-stand::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 20px;
  height: 4px;
  background: #888;
  border-radius: 2px;
}
.iv-bag {
  position: absolute;
  bottom: 145px;
  left: 196px;
  width: 32px;
  height: 42px;
  background: rgba(100, 180, 220, 0.35);
  border: 2px solid #7ab8d4;
  border-radius: 4px 4px 12px 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iv-label {
  position: absolute;
  bottom: 150px;
  left: 200px;
  font-family: "Special Elite", monospace;
  font-size: 26px;
  font-weight: 700;
  color: #5b8fa8;
  z-index: 3;
}

/* --- Defection scene --- */
#scene-defection {
  background: rgba(255,255,255,0.3);
}

/* France watching suspiciously */
.suspicious-france {
  position: absolute;
  bottom: 40px;
  left: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(to right, #002395 33.3%, #fff 33.3%, #fff 66.6%, #ED2939 66.6%);
  z-index: 2;
}
.suspicious-eyes {
  position: absolute;
  bottom: 65px;
  left: 40px;
  z-index: 4;
}
.suspicious-eyes svg {
  width: 30px;
  height: 15px;
}

/* Ireland cosying up to USA */
.cosy-ireland {
  position: absolute;
  bottom: 40px;
  right: 90px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(to right, #169B62 33.3%, #fff 33.3%, #fff 66.6%, #FF883E 66.6%);
  z-index: 2;
}
.cosy-ireland-eyes {
  position: absolute;
  bottom: 60px;
  right: 95px;
  z-index: 4;
}
.cosy-ireland-eyes svg {
  width: 25px;
  height: 10px;
}

.cosy-usa {
  position: absolute;
  bottom: 35px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: 2;
}
.cosy-usa-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(to bottom, #B22234 0px, #B22234 7.7%, #fff 7.7%, #fff 15.4%);
  overflow: hidden;
}
.cosy-usa-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 45%;
  background: #3C3B6E;
  z-index: 1;
}
.cosy-usa-glasses {
  position: absolute;
  top: 14px;
  left: 6px;
  z-index: 5;
}
.cosy-usa-glasses .mini-lens {
  position: absolute;
  width: 20px;
  height: 11px;
  background: #111;
  border-radius: 40%;
  border: 1.5px solid #333;
}
.cosy-usa-glasses .mini-lens-l { left: 0; }
.cosy-usa-glasses .mini-lens-r { left: 24px; }
.cosy-usa-glasses .mini-bridge {
  position: absolute;
  left: 18px;
  top: 4px;
  width: 8px;
  height: 1.5px;
  background: #333;
}

/* Money bag — cartoony sack */
.money-bag {
  position: absolute;
  bottom: 22px;
  left: 80px;
  width: 50px;
  height: 60px;
  z-index: 3;
}
.money-bag-body {
  width: 50px;
  height: 45px;
  background: #d4b36a;
  border: 2.5px solid #a08040;
  border-radius: 50% 50% 45% 45%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}
.money-bag-body::before {
  content: "€";
  font-family: "Special Elite", monospace;
  font-size: 28px;
  font-weight: 700;
  color: #6b4c1e;
}
.money-bag-tie {
  width: 16px;
  height: 14px;
  margin: 0 auto;
  position: relative;
}
.money-bag-tie::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 16px;
  height: 10px;
  background: #d4b36a;
  border: 2.5px solid #a08040;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.money-bag-tie::after {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 8px;
  height: 5px;
  border-bottom: 3px solid #a08040;
  border-radius: 0 0 50% 50%;
}

/* Question marks */
.scene-question {
  position: absolute;
  font-family: "Indie Flower", cursive;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* Second mobile block removed — consolidated at end of file */

/* --- Step post-its (industry lists) --- */
.step-postit {
  font-family: "Indie Flower", cursive;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  color: #2a2a2a;
  box-shadow: 2px 3px 6px rgba(0,0,0,0.15);
  width: fit-content;
}

/* Chapter 2 conclusion */
.story-conclusion-ch2 {
  text-align: center;
  padding-bottom: 2rem;
}
.ch2-punchline {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text);
}

/* --- Responsive --- */
/* Mobile scene navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(26, 26, 26, 0.92);
  padding: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.mobile-nav-btn {
  font-family: "Special Elite", monospace;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  min-width: 70px;
}
.mobile-nav-btn:active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.mobile-nav-btn:disabled {
  opacity: 0.3;
}
.mobile-nav-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ============================================================
   MOBILE — all overrides consolidated here at end of file
   ============================================================ */
@media (max-width: 900px) {

  /* --- Header --- */
  .story-title { font-size: 2.5rem; }
  .story-subtitle { font-size: 1.1rem; margin-top: 1rem; }
  .story-header { min-height: 280px; padding: 2rem 1.5rem; }

  /* --- Text blocks --- */
  .story-text { max-width: 100%; padding: 1.5rem 1.5rem 2rem; }
  .chapter-heading { max-width: 100%; padding: 0 1.5rem; font-size: 1.4rem; }
  .ch2-punchline { font-size: 1rem; max-width: 100%; }

  /* --- Beat sections (Polandball animation) --- */
  .beat-scroll {
    display: block !important;
    padding: 0 1rem;
  }
  .beat-sticky {
    position: sticky !important;
    top: calc(var(--nav-height) + 0.5rem) !important;
    float: none !important;
    width: 100% !important;
    height: 260px !important;
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
    z-index: 2;
    background: transparent;
  }
  .beat-steps {
    float: none !important;
    width: 100% !important;
  }
  .beat-step {
    min-height: 50vh;
    padding: 1rem 0;
    display: flex;
    align-items: center;
  }
  .beat-step .step-text {
    opacity: 0.08;
    transition: opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border-left: 3px solid var(--color-accent);
    padding: 1rem;
  }
  .beat-step.is-active .step-text { opacity: 1; }

  /* Smaller Polandballs */
  .country-bubble { transform: scale(0.65); }
  .pb-hammer-head { width: 35px; height: 18px; }
  .pb-hammer-handle { height: 25px; }
  .eu-shield { display: none; }

  /* F-bar label below stage */
  .fbar-label {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1.5rem;
  }

  /* --- Scroll sections (Chapters 1-3) --- */
  .scroll-section {
    display: block !important;
    padding: 0 1rem;
  }
  .scroll-section::after { display: none; }

  .scroll-sticky {
    position: sticky !important;
    top: calc(var(--nav-height) + 0.5rem) !important;
    float: none !important;
    width: 100% !important;
    height: 280px !important;
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
    z-index: 2;
    background: transparent;
  }

  .scroll-steps {
    float: none !important;
    width: 100% !important;
  }

  .scroll-step {
    min-height: 50vh;
    padding: 1rem 0;
    display: flex;
    align-items: center;
  }

  .step-text {
    opacity: 0.08;
    transition: opacity 0.3s ease;
    border-left: 3px solid var(--color-accent);
    background: rgba(255, 255, 255, 0.9);
    padding: 1.25rem;
    width: 100%;
  }
  .scroll-step.is-active .step-text { opacity: 1; }

  /* Scenario selector */
  .scenario-selector { flex-wrap: wrap; margin-bottom: 0.5rem; }
  .scenario-btn { font-size: 0.7rem; padding: 0.25rem 0.5rem; }

  /* Chart height */
  .chart-container { height: 260px; }

  /* --- Interlude panels --- */
  .interlude { max-width: 100%; padding: 0 1.5rem; }
  .interlude-panel { flex-direction: column !important; }
  .scene { width: 100%; height: 180px; }

  /* Post-its: hide on mobile */
  .step-postit { display: none; }

  /* Floating nav buttons */
  .mobile-nav {
    display: flex !important;
  }
}
