:root {
  --frame-margin: 14px;
  --wine-950: #4e0602;
  --wine-900: #650800;
  --wine-800: #7f0c03;
  --wine-700: #9b1508;
  --source-burgundy: #700b06;
  --gold-500: #ffcc3d;
  --gold-300: #ffe08a;
  --cream-100: #fff6d8;
  --cream-200: #fff1c5;
  --cream-300: #edcf80;
  --paper: #fffaf0;
  --ink: #24100c;
  --muted: #704834;
  --line: #d4a84e;
  --blue: #517fa8;
  --green: #7b9d45;
  --rose: #bb6d6b;
  --shadow: 0 18px 44px rgba(89, 43, 8, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream-100);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

h2,
h3,
h4,
h5,
p,
li,
dd {
  overflow-wrap: anywhere;
}

.page-header {
  margin: 8px var(--frame-margin) 0;
  min-height: 302px;
  padding: 8px;
  background: var(--source-burgundy);
  border-radius: 14px;
  overflow: hidden;
}

.image-banner {
  display: grid;
  place-items: center start;
  min-height: 286px;
  background: var(--source-burgundy);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
}

.image-banner img {
  display: block;
  width: min(1120px, 100%);
  height: auto;
  max-width: 1120px;
}

.app-layout {
  min-height: calc(100vh - 390px);
  margin: 18px var(--frame-margin) 24px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-100);
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 22px;
  color: var(--cream-100);
  background: linear-gradient(180deg, var(--wine-900), var(--wine-950));
  box-shadow: inset -1px 0 0 rgba(255, 231, 163, 0.18);
}

.side-title {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 224, 138, 0.25);
}

.side-title span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--gold-500);
  border-radius: 6px;
  font-weight: 900;
}

.section-tabs {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.tab-button {
  padding: 12px 10px;
  color: var(--cream-100);
  text-align: left;
  background: transparent;
  border-left: 3px solid transparent;
  border-radius: 4px;
}

.tab-button:hover,
.tab-button.is-active {
  color: var(--gold-500);
  background: rgba(255, 204, 61, 0.09);
  border-left-color: var(--gold-500);
}

.content-stage {
  min-width: 0;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(112, 11, 6, 0.06), rgba(112, 11, 6, 0) 96px),
    var(--cream-100);
}

.stage-top {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--wine-800);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-top h2 {
  margin: 0;
  color: var(--wine-950);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.article-subtitle {
  max-width: 980px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.35;
}

.article-authors {
  display: block;
  margin-top: 3px;
  color: var(--wine-800);
}

.article-authors strong {
  font-weight: 900;
  overflow-wrap: anywhere;
}

.content-panel {
  display: none;
}

.content-panel.is-visible {
  display: block;
}

.paper-hero,
.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 310px;
  overflow: hidden;
  color: #fff8dc;
  background:
    linear-gradient(120deg, rgba(255, 204, 61, 0.18), transparent 42%),
    linear-gradient(135deg, var(--wine-900), var(--wine-950));
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(91, 19, 6, 0.14);
}

.hero-copy,
.game-hero > div {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 30px;
}

.kicker,
.keyword-row span,
.evidence-copy span,
.finding-card > span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  color: var(--wine-950);
  background: var(--gold-300);
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h3,
.game-hero h3 {
  max-width: 820px;
  margin: 0;
  color: #fff8dc;
  font-size: clamp(1.8rem, 3.1vw, 2.75rem);
  line-height: 1.08;
}

.hero-copy p,
.game-hero p {
  max-width: 780px;
  margin: 0;
  color: #f5d9a0;
  font-size: 1.04rem;
  line-height: 1.48;
}

.article-link-button {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--wine-950);
  background: var(--gold-500);
  border: 1px solid var(--gold-300);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(36, 16, 12, 0.18);
}

.article-link-button:hover {
  background: var(--gold-300);
}

.hero-facts,
.game-hero aside {
  padding: 22px;
  background: rgba(255, 246, 216, 0.09);
  border-left: 1px solid rgba(255, 224, 138, 0.22);
}

.game-hero aside {
  display: grid;
  align-content: center;
}

.hero-facts dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.hero-facts div,
.game-hero aside {
  padding: 13px;
  background: rgba(255, 246, 216, 0.13);
  border: 1px solid rgba(255, 224, 138, 0.24);
  border-radius: 7px;
}

.hero-facts dt,
.game-hero aside strong {
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-hero {
  min-height: 0;
  gap: 14px;
  padding: 16px;
  align-items: stretch;
}

.game-hero > div,
.game-hero aside {
  min-height: 188px;
  padding: 24px;
  border: 1px solid rgba(255, 224, 138, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 204, 61, 0.1), rgba(255, 246, 216, 0.05)),
    rgba(255, 246, 216, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 246, 216, 0.12);
}

.game-hero aside {
  border-left: 1px solid rgba(255, 224, 138, 0.28);
}

.hero-facts dd {
  margin: 5px 0 0;
  color: #fff8dc;
  line-height: 1.35;
}

.insight-strip,
.game-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.game-progress {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-strip article,
.game-progress div,
.lens-card,
.section-card,
.finding-card,
.evidence-card,
.country-game-card,
.scenario-card,
.radar-card,
.policy-result-card,
.education-lanes article,
.game-intro-strip,
.game-section-head,
.result-summary,
.policy-form,
.brain-concept-band span {
  background: var(--paper);
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  box-shadow: 0 9px 20px rgba(91, 19, 6, 0.08);
}

.insight-strip article,
.game-progress div {
  min-height: 106px;
  padding: 14px;
}

.insight-strip span,
.game-progress span,
.range-meter span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-strip strong,
.game-progress strong {
  display: block;
  margin-top: 6px;
  color: var(--wine-900);
  font-size: 1.5rem;
  line-height: 1;
}

.insight-strip p,
.game-progress p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.28;
}

.overview-section {
  margin-top: 22px;
}

.compact-section,
.visual-section {
  padding: 18px;
  background: rgba(255, 241, 197, 0.55);
  border: 1px solid rgba(212, 168, 78, 0.72);
  border-radius: 8px;
}

.section-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.section-heading span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--wine-950);
  background: var(--gold-500);
  border-radius: 6px;
  font-weight: 900;
}

.section-heading h3 {
  margin: 0;
  color: var(--wine-950);
  font-size: 1.35rem;
}

.small-heading {
  margin-bottom: 10px;
}

.small-heading span {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}

.lens-grid,
.finding-grid,
.country-game-grid,
.policy-results,
.education-lanes {
  display: grid;
  gap: 14px;
}

.lens-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(330px, 1.1fr);
}

.finding-grid,
.country-game-grid,
.policy-results,
.education-lanes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lens-card,
.section-card,
.finding-card,
.country-game-card,
.scenario-card,
.radar-card,
.policy-result-card,
.education-lanes article,
.game-intro-strip,
.game-section-head,
.result-summary,
.policy-form {
  padding: 16px;
}

.lens-card h4,
.finding-card h4,
.country-game-head span,
.game-section-head h3,
.result-summary h4,
.policy-result-card h4,
.education-lanes h4 {
  margin: 0 0 9px;
  color: var(--wine-900);
  font-size: 1.08rem;
}

.lens-card p,
.lens-card li,
.section-card li,
.finding-card p,
.evidence-copy p,
.scenario-card p,
.radar-card p,
.game-intro-strip p,
.game-section-head p,
.result-summary p,
.education-lanes li {
  color: var(--muted);
  line-height: 1.43;
}

.lens-card p,
.finding-card p,
.scenario-card p,
.radar-card p {
  margin: 0;
}

.lens-card ul,
.section-card ul,
.policy-result-card ul {
  margin: 0;
  padding-left: 18px;
}

.lens-card li + li,
.section-card li + li,
.education-lanes li + li,
.policy-result-card li + li {
  margin-top: 7px;
}

.keyword-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.keyword-row span {
  background: #fff6d8;
  width: auto;
  overflow-wrap: anywhere;
  white-space: normal;
}

.finding-card {
  position: relative;
  min-height: 205px;
  border-top: 6px solid var(--gold-500);
}

.finding-card.romania {
  border-top-color: var(--rose);
}

.finding-card.turkiye {
  border-top-color: var(--blue);
}

.finding-card > span {
  margin-bottom: 12px;
  background: #fff6d8;
}

.finding-card h4 {
  font-size: 1.22rem;
}

.evidence-stack {
  display: grid;
  gap: 16px;
}

.evidence-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  overflow: hidden;
}

.evidence-card.is-reversed {
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr);
}

.evidence-card.is-reversed .evidence-visual {
  grid-column: 2;
  grid-row: 1;
}

.evidence-card.is-reversed .evidence-copy {
  grid-column: 1;
  grid-row: 1;
  border-left: 0;
  border-right: 1px solid var(--cream-300);
}

.evidence-visual {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.evidence-copy {
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 22px;
  background: linear-gradient(180deg, #fff7df, #fff1c5);
  border-left: 1px solid var(--cream-300);
}

.evidence-copy h4 {
  margin: 0;
  color: var(--wine-950);
  font-size: 1.18rem;
  line-height: 1.22;
}

.chart-title {
  margin-bottom: 14px;
  color: var(--wine-900);
  font-size: 1.08rem;
  font-weight: 900;
  text-align: center;
}

.bar-chart {
  min-height: 270px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  padding: 18px 8px 0;
  border-left: 2px solid rgba(112, 72, 52, 0.24);
  border-bottom: 2px solid rgba(112, 72, 52, 0.24);
  background:
    linear-gradient(to top, rgba(112, 72, 52, 0.08) 1px, transparent 1px) 0 0 / 100% 20%;
}

.bar-group {
  display: grid;
  gap: 8px;
  align-items: end;
  min-height: 246px;
  text-align: center;
}

.bar-group strong {
  color: var(--wine-900);
  font-size: 0.92rem;
}

.bars {
  height: 205px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
}

.bar-wrap {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 5px;
  align-items: end;
}

.bar-value {
  color: var(--wine-900);
  font-size: 0.78rem;
  font-weight: 900;
}

.bar {
  display: block;
  min-height: 3px;
  border-radius: 6px 6px 0 0;
}

.religion-islam { background: var(--blue); }
.religion-christianity { background: var(--rose); }
.religion-other { background: var(--green); }

.chart-legend {
  display: flex;
  gap: 13px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.chart-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.chart-legend i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.art-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.art-country-card {
  min-height: 260px;
  padding: 4px 12px 4px 0;
  border-right: 1px solid rgba(212, 168, 78, 0.6);
}

.art-country-card:last-child {
  border-right: 0;
}

.art-country-card h5 {
  margin: 0 0 12px;
  color: var(--wine-900);
  font-size: 1rem;
}

.art-event-list {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.art-event-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--wine-900), rgba(112, 11, 6, 0.15));
  border-radius: 999px;
}

.art-event-card {
  position: relative;
  padding: 8px 0 10px;
}

.art-event-card::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 11px;
  width: 12px;
  height: 12px;
  background: var(--wine-900);
  border: 3px solid var(--gold-300);
  border-radius: 50%;
}

.art-event-card b,
.art-event-card span {
  display: block;
}

.art-event-card b {
  color: var(--wine-900);
  font-size: 0.95rem;
}

.art-event-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.28;
}

.article-table {
  min-width: 0;
  overflow-x: auto;
}

.article-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255, 251, 238, 0.8);
}

.article-table th,
.article-table td {
  padding: 11px 10px;
  border: 2px solid var(--wine-900);
  vertical-align: top;
  line-height: 1.25;
}

.article-table th {
  color: var(--wine-900);
  background: var(--gold-300);
  font-size: 0.86rem;
  text-align: left;
}

.article-table td {
  color: var(--muted);
  font-size: 0.88rem;
}

.article-table td:first-child {
  color: var(--wine-900);
  font-weight: 900;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px;
}

.conclusion-card {
  background: linear-gradient(180deg, #fffaf0, #fff1c5);
}

.game-mode-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.game-mode-button,
.game-reset-button,
.answer-grid button,
.policy-form button,
.country-tab-row button {
  min-height: 40px;
  padding: 9px 11px;
  color: var(--wine-900);
  background: #fff6d8;
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  font-weight: 900;
}

.game-mode-button.is-active,
.country-tab-row button.is-active,
.policy-form button {
  color: var(--ink);
  background: var(--gold-500);
}

.journey-primary-action {
  color: var(--ink);
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.answer-grid button.is-answer-correct {
  color: #ffffff;
  background: #2f8f46;
  border-color: #2f8f46;
}

.answer-grid button.is-answer-wrong {
  color: #ffffff;
  background: #b91f16;
  border-color: #b91f16;
}

.answer-grid button.is-answer-muted {
  color: var(--muted);
  background: rgba(255, 246, 216, 0.58);
}

.game-canvas {
  margin-top: 16px;
}

.pathway-module {
  display: grid;
  gap: 16px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 204, 61, 0.16), rgba(255, 250, 240, 0.82)),
    var(--paper);
  border: 1px solid var(--cream-300);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(91, 19, 6, 0.11);
}

.pathway-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pathway-controls button {
  min-height: 82px;
  padding: 14px;
  text-align: left;
  color: #fff8dc;
  background:
    linear-gradient(135deg, rgba(255, 204, 61, 0.1), rgba(255, 246, 216, 0.04)),
    var(--wine-900);
  border: 1px solid rgba(255, 224, 138, 0.34);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pathway-controls button:hover,
.pathway-controls button.is-active {
  transform: translateY(-2px);
  color: var(--ink);
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.pathway-controls span,
.pathway-controls strong {
  display: block;
}

.pathway-controls span {
  font-size: 1rem;
  font-weight: 900;
}

.pathway-controls strong {
  margin-top: 5px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.pathway-stage {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(145deg, var(--wine-950), var(--wine-800));
  border: 1px solid rgba(255, 224, 138, 0.32);
  border-radius: 10px;
  overflow: hidden;
}

.pathway-svg {
  width: 100%;
  min-height: 275px;
  display: block;
}

.pathway-backbone {
  fill: none;
  stroke: rgba(255, 224, 138, 0.22);
  stroke-width: 16;
  stroke-linecap: round;
}

.pathway-link {
  stroke: rgba(255, 246, 216, 0.24);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke 220ms ease, stroke-width 220ms ease;
}

.pathway-link.is-lit {
  stroke: var(--gold-500);
  stroke-width: 7;
}

.pathway-node circle {
  fill: rgba(255, 246, 216, 0.12);
  stroke: rgba(255, 224, 138, 0.48);
  stroke-width: 2;
  transition: fill 220ms ease, stroke 220ms ease, transform 220ms ease;
}

.pathway-node text {
  fill: #fff8dc;
  font-size: 18px;
  font-weight: 900;
  text-anchor: middle;
  pointer-events: none;
}

.pathway-node text + text {
  font-size: 13px;
}

.pathway-node.is-complete circle {
  fill: rgba(255, 204, 61, 0.28);
  stroke: var(--gold-500);
}

.pathway-node.is-active circle {
  fill: var(--gold-500);
  stroke: #fff6d8;
  filter: url("#nodeGlow");
}

.pathway-node.is-active text {
  fill: var(--wine-950);
}

.pathway-pulse {
  fill: #fff8dc;
  stroke: var(--gold-500);
  stroke-width: 5;
  filter: url("#nodeGlow");
  animation: pathwayPulse 1300ms ease-in-out infinite;
}

.pathway-step-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pathway-step-buttons button {
  min-height: 42px;
  padding: 8px;
  color: #fff8dc;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 224, 138, 0.28);
  border-radius: 7px;
  font-weight: 900;
}

.pathway-step-buttons button.is-active {
  color: var(--wine-950);
  background: var(--gold-500);
}

.pathway-detail {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #fffaf0;
  border: 1px solid var(--cream-300);
  border-radius: 10px;
}

.pathway-detail span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pathway-detail h4 {
  margin: 0;
  color: var(--wine-900);
  font-size: 1.5rem;
}

.pathway-detail strong {
  color: var(--wine-900);
  font-size: 1.1rem;
}

.pathway-detail p {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.pathway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pathway-actions button:disabled {
  opacity: 0.48;
}

@keyframes pathwayPulse {
  0%,
  100% {
    r: 10;
    opacity: 0.88;
  }
  50% {
    r: 17;
    opacity: 0.45;
  }
}

.country-game-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.country-game-head strong {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.country-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.country-tab-row button {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 0.78rem;
}

.country-detail-list {
  min-height: 182px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.38;
}

.country-detail-list li + li {
  margin-top: 7px;
}

.range-pair {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.range-meter b {
  display: block;
  margin-top: 2px;
  color: var(--wine-900);
}

.range-meter i {
  position: relative;
  display: block;
  height: 8px;
  margin-top: 5px;
  background: rgba(112, 72, 52, 0.14);
  border-radius: 999px;
}

.range-meter em {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--gold-500);
  border-radius: 999px;
}

.game-section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.scenario-list,
.radar-list,
.policy-results,
.education-lanes {
  display: grid;
  gap: 12px;
}

.scenario-workbench {
  display: grid;
  gap: 14px;
}

.scenario-stepper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px;
  background: rgba(255, 241, 197, 0.72);
  border: 1px solid var(--cream-300);
  border-radius: 8px;
}

.scenario-stepper span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--wine-900);
  background: #fff6d8;
  border: 1px solid var(--cream-300);
  border-radius: 50%;
  font-weight: 900;
}

.scenario-stepper span.is-active {
  color: var(--ink);
  background: var(--gold-500);
}

.scenario-stepper span.is-done {
  border-color: var(--wine-900);
}

.radar-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
  align-items: stretch;
}

.radar-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 18px;
  overflow: hidden;
  color: #fff8dc;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 204, 61, 0.22), transparent 42%),
    linear-gradient(145deg, #8a1d0b 0%, #5c0d05 58%, #260604 100%);
  border: 1px solid rgba(255, 224, 138, 0.45);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(91, 19, 6, 0.18);
}

.radar-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 224, 138, 0.16);
  border-radius: 10px;
  pointer-events: none;
}

.radar-svg {
  width: min(100%, 270px);
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.22));
}

.radar-ring,
.radar-cross {
  fill: none;
  stroke: rgba(255, 246, 216, 0.34);
  stroke-width: 1.5;
}

.radar-cross {
  stroke-dasharray: 4 8;
}

.radar-sweep {
  fill: rgba(255, 204, 61, 0.22);
  transform-origin: 120px 120px;
  animation: radarSweep 4.8s linear infinite;
}

.radar-dot {
  fill: rgba(255, 246, 216, 0.82);
  stroke: var(--gold-500);
  stroke-width: 2;
}

.radar-dot.is-active {
  fill: var(--gold-500);
}

.radar-dot.is-done {
  fill: #7fc86e;
  stroke: #eff9ec;
}

.radar-visual div {
  position: relative;
  z-index: 1;
  width: min(100%, 250px);
  padding: 14px;
  margin-top: 12px;
  background: rgba(255, 246, 216, 0.09);
  border: 1px solid rgba(255, 224, 138, 0.24);
  border-radius: 8px;
  text-align: center;
}

.radar-visual span {
  display: block;
  color: var(--gold-500);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.radar-visual strong {
  display: block;
  margin-top: 5px;
  font-size: 2rem;
}

.radar-visual p {
  margin: 5px 0 0;
  color: #fff8dc;
}

.radar-panel {
  display: grid;
  gap: 14px;
}

.radar-stepper {
  background: linear-gradient(135deg, rgba(255, 241, 197, 0.86), rgba(255, 250, 240, 0.68));
}

.radar-card {
  position: relative;
  overflow: hidden;
}

.radar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--wine-900), var(--gold-500), var(--wine-700));
}

.radar-claim {
  margin: 14px 0;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 204, 61, 0.12), rgba(255, 246, 216, 0.62)),
    #fffaf0;
  border: 1px solid rgba(212, 168, 78, 0.72);
  border-radius: 8px;
}

.radar-claim span {
  display: block;
  margin-bottom: 8px;
  color: var(--wine-900);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.radar-claim p {
  color: var(--wine-950);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.28;
}

.radar-feedback strong,
.radar-feedback span {
  display: block;
}

.radar-feedback p {
  margin: 7px 0;
}

.radar-feedback span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

@keyframes radarSweep {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pathway-pulse,
  .radar-sweep,
  .journey-lit-line {
    animation: none;
  }
}

.scenario-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.scenario-top span,
.scenario-top strong {
  color: var(--wine-900);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scenario-top strong.is-correct,
.feedback-box.is-correct {
  color: #285c26;
}

.scenario-top strong.is-wrong,
.feedback-box.is-wrong {
  color: #8a160b;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.feedback-box {
  margin-top: 10px;
  padding: 11px;
  background: #fff6d8;
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.35;
}

.feedback-box.is-correct {
  background: #eff9ec;
  border-color: #9ccc8b;
}

.feedback-box.is-wrong {
  background: #fff0ee;
  border-color: #d9948f;
}

.scenario-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.scenario-actions button:disabled,
.answer-grid button:disabled {
  cursor: default;
}

.scenario-actions button:disabled {
  opacity: 0.48;
}

.policy-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.policy-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--wine-900);
  font-weight: 900;
}

.policy-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid var(--cream-300);
  border-radius: 6px;
}

.policy-form button {
  grid-column: 1 / -1;
}

.policy-results {
  margin-top: 14px;
}

.policy-result-card strong {
  display: block;
  color: var(--wine-900);
  margin-bottom: 10px;
}

.policy-result-card span,
.policy-result-card em,
.policy-result-card small {
  display: block;
}

.policy-result-card em {
  color: var(--wine-900);
  font-style: normal;
  font-weight: 900;
}

.brain-concept-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.brain-concept-band span {
  padding: 14px;
  color: var(--wine-900);
  background: #fff6d8;
  font-weight: 900;
}

.education-lanes ol {
  margin: 0;
  padding-left: 22px;
}

.result-summary {
  margin-top: 14px;
}

.site-footer {
  margin: 0 var(--frame-margin) 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--wine-900), var(--wine-950));
  color: #fff8dc;
  text-align: center;
  padding: 14px 18px;
}

.site-footer p {
  margin: 0;
}

.article-figure {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: 0;
  padding: 10px;
  background: rgba(255, 250, 240, 0.62);
  border: 1px solid rgba(212, 168, 78, 0.48);
  border-radius: 6px;
}

.article-figure img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.finding-card.country-surgical-care {
  border-top-color: var(--rose);
}

.finding-card.country-long-term-outcomes {
  border-top-color: var(--blue);
}

.finding-card.country-surgical-applications {
  border-top-color: var(--rose);
}

.finding-card.country-postoperative-monitoring {
  border-top-color: var(--blue);
}

.journey-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.journey-profile-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  min-width: 0;
}

.journey-profile-card,
.journey-card,
.journey-report-card {
  background:
    linear-gradient(135deg, rgba(255, 246, 216, 0.76), rgba(255, 250, 240, 0.92)),
    var(--paper);
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  box-shadow: 0 9px 20px rgba(91, 19, 6, 0.08);
}

.journey-profile-card {
  min-height: 88px;
  min-width: 0;
  padding: 14px;
  text-align: left;
  color: var(--wine-950);
  overflow-wrap: anywhere;
  white-space: normal;
}

.journey-profile-card:hover,
.journey-profile-card.is-active {
  background:
    linear-gradient(135deg, rgba(255, 204, 61, 0.92), rgba(255, 224, 138, 0.92)),
    var(--gold-500);
  border-color: var(--gold-500);
}

.journey-profile-card span,
.journey-profile-card strong {
  display: block;
}

.journey-profile-card span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-profile-card strong {
  margin-top: 7px;
  line-height: 1.28;
}

.journey-map {
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  min-height: 310px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 204, 61, 0.18), transparent 38%),
    linear-gradient(145deg, var(--wine-950), var(--wine-800));
  border: 1px solid rgba(255, 224, 138, 0.34);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(91, 19, 6, 0.13);
}

.journey-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 260px;
}

.journey-body-line {
  fill: none;
  stroke: rgba(255, 246, 216, 0.18);
  stroke-width: 18;
  stroke-linecap: round;
}

.journey-lit-line {
  fill: none;
  stroke: url("#journeyLine");
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 18 22;
  opacity: 0.92;
  animation: journeyFlow 1.8s linear infinite;
}

.journey-node rect {
  fill: var(--cream-100);
  stroke: rgba(255, 224, 138, 0.54);
  stroke-width: 2;
}

.journey-node text {
  fill: var(--wine-950);
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
  pointer-events: none;
}

.journey-node.is-complete rect {
  fill: var(--cream-200);
  stroke: var(--gold-500);
}

.journey-node.is-active rect {
  fill: var(--gold-500);
  stroke: #fff6d8;
  filter: url("#journeyGlow");
}

.journey-node.is-active text {
  fill: var(--wine-950);
}

.journey-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.journey-stepper-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
  min-height: 62px;
  min-width: 0;
  padding: 8px 10px;
  color: var(--wine-900);
  background: #fff6d8;
  border: 1px solid var(--cream-300);
  border-radius: 7px;
  text-align: left;
  box-shadow: 0 7px 16px rgba(91, 19, 6, 0.08);
}

.journey-stepper-button span {
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--wine-950);
  background: var(--cream-200);
  border: 1px solid rgba(212, 168, 78, 0.74);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
}

.journey-stepper-button strong,
.journey-stepper-button small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.journey-stepper-button strong {
  font-size: 0.9rem;
  line-height: 1.1;
}

.journey-stepper-button small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-stepper-button:hover {
  border-color: var(--gold-500);
  transform: translateY(-1px);
}

.journey-stepper-button.is-complete {
  background: linear-gradient(135deg, rgba(255, 246, 216, 0.95), rgba(255, 239, 183, 0.95));
  border-color: rgba(212, 168, 78, 0.8);
}

.journey-stepper-button.is-active {
  color: var(--ink);
  background: var(--gold-500);
  border-color: var(--gold-500);
  box-shadow: 0 10px 20px rgba(188, 113, 19, 0.25);
}

.journey-stepper-button.is-active span {
  color: var(--wine-950);
  background: #fff6d8;
}

.journey-stepper-button.is-active small {
  color: var(--wine-900);
}

.journey-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 14px;
  min-width: 0;
}

.journey-card,
.journey-report-card {
  min-width: 0;
  max-width: 100%;
  padding: 16px;
}

.journey-prompt {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.4;
}

.journey-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.journey-option {
  position: relative;
  min-height: 58px;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  color: var(--wine-900);
  background: rgba(255, 246, 216, 0.78);
  border: 1px solid var(--cream-300);
  border-radius: 7px;
  font-weight: 900;
  line-height: 1.24;
  overflow-wrap: anywhere;
  white-space: normal;
}

.journey-option:hover,
.journey-option.is-selected {
  color: var(--ink);
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.journey-option.is-correct {
  color: #123817;
  background: #dcf3cf;
  border-color: #4d9f38;
  box-shadow: inset 5px 0 0 #4d9f38;
}

.journey-option.is-wrong {
  color: #fff8dc;
  background: #9b1508;
  border-color: #7f0c03;
  box-shadow: inset 5px 0 0 var(--gold-500);
}

.journey-option.is-correct::after,
.journey-option.is-wrong::after {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-option.is-correct::after {
  content: "Correct";
  color: #123817;
  background: rgba(255, 255, 255, 0.62);
}

.journey-option.is-wrong::after {
  content: "Extra";
  color: var(--wine-950);
  background: var(--gold-500);
}

.journey-meter-grid {
  display: grid;
  gap: 10px;
}

.journey-dashboard-note {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.36;
}

.journey-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  background: rgba(255, 241, 197, 0.62);
  border: 1px solid rgba(212, 168, 78, 0.68);
  border-radius: 7px;
}

.journey-meter span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-meter strong {
  color: var(--wine-900);
}

.journey-meter i {
  grid-column: 1 / -1;
  display: block;
  height: 10px;
  overflow: hidden;
  background: rgba(112, 72, 52, 0.14);
  border-radius: 999px;
}

.journey-meter i::before {
  content: "";
  display: block;
  width: var(--meter);
  height: 100%;
  background: linear-gradient(90deg, var(--wine-900), var(--gold-500));
  border-radius: inherit;
  transition: width 260ms ease;
}

.journey-stage-note {
  margin-top: 14px;
  padding: 12px;
  color: var(--muted);
  background: #fff6d8;
  border: 1px solid var(--cream-300);
  border-radius: 7px;
  overflow-wrap: anywhere;
}

.journey-stage-note span {
  display: block;
  color: var(--wine-900);
  font-weight: 900;
}

.journey-stage-note p {
  margin: 6px 0 0;
  line-height: 1.35;
}

.journey-empty-report,
.journey-report {
  padding: 14px;
  background: rgba(255, 246, 216, 0.7);
  border: 1px solid var(--cream-300);
  border-radius: 7px;
  overflow-wrap: anywhere;
}

.journey-empty-report strong,
.journey-report strong {
  display: block;
  color: var(--wine-900);
  font-size: 1.1rem;
}

.journey-empty-report p,
.journey-report p,
.journey-report li {
  color: var(--muted);
  line-height: 1.42;
}

.journey-report ul {
  margin: 12px 0;
  padding-left: 18px;
}

.journey-report small {
  display: block;
  color: var(--wine-900);
  font-weight: 900;
}

.journey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.journey-actions button:disabled {
  opacity: 0.48;
  cursor: default;
}

@keyframes journeyFlow {
  to {
    stroke-dashoffset: -40;
  }
}

@media (max-width: 1120px) {
  .paper-hero,
  .game-hero,
  .lens-grid,
  .finding-grid,
  .evidence-card,
  .evidence-card.is-reversed,
  .bottom-grid,
  .country-game-grid,
  .radar-shell,
  .policy-results,
  .education-lanes,
  .journey-workbench {
    grid-template-columns: 1fr;
  }

  .evidence-card.is-reversed .evidence-visual,
  .evidence-card.is-reversed .evidence-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .evidence-card.is-reversed .evidence-copy,
  .evidence-copy {
    border: 0;
    border-top: 1px solid var(--cream-300);
  }
}

@media (max-width: 980px) {
  .page-header,
  .app-layout,
  .insight-strip,
  .game-progress,
  .game-mode-nav,
  .answer-grid,
  .radar-shell,
  .pathway-controls,
  .pathway-step-buttons,
  .journey-stepper,
  .journey-profile-row,
  .journey-option-grid,
  .policy-form,
  .brain-concept-band {
    grid-template-columns: 1fr;
  }

  .pathway-svg {
    min-height: 220px;
  }

  .side-panel {
    border-radius: 12px 12px 0 0;
  }

  .art-timeline {
    grid-template-columns: 1fr;
  }

  .art-country-card {
    min-height: 0;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(212, 168, 78, 0.6);
  }

  .art-country-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --frame-margin: 8px;
  }

  .content-stage,
  .side-panel {
    padding: 16px;
  }

  .page-header {
    min-height: 0;
    padding: 4px;
    border-radius: 12px;
  }

  .image-banner {
    min-height: 0;
    border-radius: 12px;
  }

  .hero-copy,
  .game-hero > div,
  .hero-facts,
  .game-hero aside,
  .compact-section,
  .visual-section,
  .evidence-visual,
  .evidence-copy,
  .section-card,
  .finding-card,
  .country-game-card,
  .scenario-card,
  .radar-card {
    padding: 14px;
  }

  .hero-copy h3,
  .game-hero h3 {
    font-size: 1.55rem;
  }

  .game-hero p {
    font-size: 0.92rem;
  }

  .journey-profile-card,
  .journey-option {
    min-height: 0;
    font-size: 0.86rem;
  }

  .journey-node text {
    font-size: 11px;
  }

  .bar-chart {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bar-group {
    min-height: 214px;
  }

  .bars {
    height: 170px;
  }

  .article-table th,
  .article-table td {
    padding: 9px 8px;
    font-size: 0.84rem;
  }

  .journey-map {
    min-height: 240px;
    padding: 10px;
  }

  .journey-svg {
    min-height: 210px;
  }

  .journey-meter {
    grid-template-columns: 1fr 48px;
  }

  .journey-meter i {
    grid-column: 1 / -1;
  }

  .keyword-row {
    gap: 6px;
  }

  .keyword-row span {
    min-height: 26px;
    padding: 6px 8px;
    font-size: 0.68rem;
  }
}
