:root {
  --ink: #29231d;
  --muted: #6c6258;
  --paper: #fffaf0;
  --paper-deep: #f4e7cc;
  --wine: #742f2b;
  --wine-dark: #4e201d;
  --gold: #d99a32;
  --gold-light: #f3d17b;
  --teal: #2f7770;
  --teal-light: #d7eeea;
  --navy: #24344e;
  --line: #cbb995;
  --shadow: rgba(58, 38, 25, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #e9d7b6;
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 4px solid #56d8d0; outline-offset: 4px; }
[hidden] { display: none !important; }

.page-texture {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(255,255,255,.55), transparent 24%),
    repeating-linear-gradient(0deg, rgba(91,61,31,.035) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #ead8b6, #d7bd91);
}

.history-shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto 50px; }

.mission-hero {
  position: relative;
  min-height: 520px;
  padding: 70px 54% 70px 62px;
  display: flex;
  align-items: center;
  border: 4px solid var(--wine-dark);
  border-radius: 34px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 75% 35%, rgba(241,192,94,.25), transparent 27%),
    linear-gradient(135deg, #3d1d1b 0%, #74332b 55%, #a05a3a 100%);
  box-shadow: 0 13px 0 #361715, 0 30px 60px rgba(57,30,18,.3);
  overflow: hidden;
}
.mission-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 90%);
}
.hero-copy { position: relative; z-index: 3; }
.subject-line { margin: 0 0 16px; color: #f4d99d; font-size: .72rem; font-weight: 950; letter-spacing: .13em; }
.subject-line span { margin-right: 8px; padding: 6px 9px; border: 2px solid var(--gold-light); border-radius: 8px; color: var(--wine-dark); background: var(--gold-light); }
.mission-hero h1 { margin: 0 0 22px; font-family: Georgia, serif; font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: .88; letter-spacing: -.055em; }
.mission-hero h1 em { display: block; color: var(--gold-light); font-style: normal; }
.hero-lead { max-width: 610px; margin: 0 0 26px; color: #f2e9dc; font-size: 1rem; font-weight: 650; line-height: 1.65; }
.study-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.study-steps span { padding: 8px 11px 8px 8px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff8e7; background: rgba(255,255,255,.08); font-size: .68rem; font-weight: 900; }
.study-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--wine-dark); background: var(--gold-light); }

.archive-scene { position: absolute; z-index: 2; right: 0; top: 0; width: 52%; height: 100%; overflow: hidden; }
.sun-disc { position: absolute; width: 330px; height: 330px; right: 45px; top: 44px; border: 2px solid rgba(255,224,145,.45); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,216,121,.04), 0 0 0 70px rgba(255,216,121,.035); }
.archive-building { position: absolute; left: 20%; right: 8%; bottom: 67px; height: 220px; border: 5px solid #2d1918; border-radius: 8px 8px 0 0; background: #e7c17b; box-shadow: inset 0 -22px 0 #c48248, 18px 22px 0 rgba(34,15,14,.25); }
.archive-building::before { content: ""; position: absolute; left: 8%; right: 8%; top: 67px; height: 6px; background: #6e332b; box-shadow: 0 62px 0 #6e332b; }
.roof { position: absolute; left: -8%; right: -8%; top: -48px; height: 55px; border: 5px solid #2d1918; background: #a54d35; clip-path: polygon(50% 0,100% 100%,0 100%); }
.tower { position: absolute; top: -96px; width: 56px; height: 96px; border: 5px solid #2d1918; background: #f0cf8f; }
.tower::before { content: ""; position: absolute; left: -13px; right: -13px; top: -31px; height: 35px; border: 5px solid #2d1918; background: #a54d35; clip-path: polygon(50% 0,100% 100%,0 100%); }
.tower-left { left: 7%; }.tower-right { right: 7%; }
.door { position: absolute; left: 50%; bottom: 0; width: 68px; height: 98px; border: 5px solid #2d1918; border-bottom: 0; border-radius: 38px 38px 0 0; background: #573025; transform: translateX(-50%); }
.route-line { position: absolute; left: -5%; right: -4%; bottom: 34px; height: 35px; border-top: 4px dashed rgba(255,226,155,.7); border-radius: 50%; transform: rotate(-4deg); }
.paper-ship { position: absolute; left: 4%; bottom: 16px; color: var(--gold-light); font-size: 3.2rem; text-shadow: 4px 5px 0 #4b211e; transform: rotate(-14deg); animation: ship-route 6s ease-in-out infinite; }
.wax-seal { position: absolute; right: 26px; bottom: 22px; display: grid; place-items: center; width: 104px; height: 104px; border: 8px double #4f191c; border-radius: 50%; color: #ffe9a8; background: #9c3033; box-shadow: 0 9px 0 #4e1d1e, 0 18px 30px rgba(30,10,10,.35); transform: rotate(9deg); }
.wax-seal::before, .wax-seal::after { content: ""; position: absolute; z-index: -1; width: 44px; height: 78px; bottom: -38px; background: #832529; }
.wax-seal::before { left: 6px; transform: rotate(16deg); }.wax-seal::after { right: 6px; transform: rotate(-16deg); }
.wax-seal span { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 900; }

.progress-panel { margin: 34px 0 22px; padding: 18px 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; border: 3px solid var(--wine-dark); border-radius: 18px; background: var(--paper); box-shadow: 0 6px 0 #8f6944; }
.progress-copy { display: flex; align-items: center; gap: 14px; }.progress-copy span { color: var(--wine); font-size: .62rem; font-weight: 950; letter-spacing: .1em; }.progress-copy strong { white-space: nowrap; font-family: Georgia, serif; font-size: 1.1rem; }
.progress-track { height: 13px; border: 2px solid var(--wine-dark); border-radius: 99px; background: #eadabb; overflow: hidden; }.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--teal), #69b69c); transition: width .45s ease; }
.restart-small { padding: 8px 11px; border: 2px solid #8d7459; border-radius: 9px; color: var(--wine-dark); background: #f6ead3; font-size: .64rem; font-weight: 900; cursor: pointer; }

.chapter-map { margin: 0 0 28px; display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr; align-items: center; }
.chapter-map > i { height: 4px; background: #9c7c59; }
.chapter-tab { position: relative; min-height: 86px; padding: 12px; display: grid; grid-template-columns: 38px 1fr; align-content: center; column-gap: 10px; border: 3px solid var(--wine-dark); border-radius: 15px; color: var(--wine-dark); background: #f8ecd4; box-shadow: 0 5px 0 #946c45; text-align: left; cursor: pointer; }
.chapter-tab span { grid-row: 1 / span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--wine); font-weight: 950; }
.chapter-tab b { font-family: Georgia, serif; font-size: .95rem; }.chapter-tab small { color: var(--muted); font-size: .58rem; font-weight: 800; }
.chapter-tab.is-active { color: #fff; background: var(--wine); transform: translateY(-4px); }.chapter-tab.is-active span { color: var(--wine-dark); background: var(--gold-light); }.chapter-tab.is-active small { color: #f3dbc4; }
.chapter-tab.is-complete::after { content: "✓"; position: absolute; right: 7px; top: 5px; color: var(--teal); font-weight: 950; }.chapter-tab.is-active.is-complete::after { color: var(--gold-light); }.chapter-tab:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }

.chapter-panel { border: 4px solid var(--wine-dark); border-radius: 28px; background: var(--paper); box-shadow: 0 12px 0 #8b6542, 0 30px 55px var(--shadow); overflow: hidden; }
.chapter-heading { padding: 27px 31px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: linear-gradient(110deg, var(--wine-dark), var(--wine)); }
.chapter-heading p { margin: 0 0 5px; color: #f0cf90; font-size: .62rem; font-weight: 950; letter-spacing: .12em; }.chapter-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.9rem, 4vw, 3.15rem); line-height: 1; }
.chapter-stamp { flex: 0 0 auto; padding: 10px 12px; border: 3px double #f2d593; border-radius: 9px; color: #f7dfa2; font-size: .64rem; font-weight: 950; letter-spacing: .13em; transform: rotate(4deg); }

.lesson-grid { padding: 28px; display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(300px, .76fr); align-items: start; gap: 25px; }
.study-card, .interactive-card { border: 2px solid var(--line); border-radius: 20px; background: #fffdf7; }
.study-card { padding: 28px; }.study-card h3 { margin: 28px 0 12px; color: var(--wine-dark); font-family: Georgia, serif; font-size: 1.35rem; }.study-card > h3:first-of-type { margin-top: 22px; }
.lead-text { margin: 0; padding-bottom: 19px; border-bottom: 2px solid #e6d8bc; font-size: .94rem; line-height: 1.75; }
.study-card > p:not(.lead-text):not(.history-note) { font-size: .87rem; line-height: 1.7; }
.concept-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.concept-list.compact-concepts { grid-template-columns: repeat(2,1fr); }
.concept-list > div, .economy-sectors > div { padding: 15px; border: 2px solid #d4bea0; border-radius: 13px; background: #faf0dc; }.concept-list b, .economy-sectors b { display: block; margin-bottom: 4px; color: var(--wine); }.concept-list p, .economy-sectors p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.remember-box { margin-top: 24px; padding: 17px 18px; border: 2px dashed var(--teal); border-radius: 14px; background: var(--teal-light); }.remember-box b { color: #1e5e58; font-size: .66rem; letter-spacing: .12em; }.remember-box p { margin: 5px 0 0; font-size: .79rem; }

.interactive-card { position: sticky; top: 94px; padding: 23px; color: #f8f4ea; background: var(--navy); box-shadow: 0 8px 0 #131e30; overflow: hidden; }
.interactive-card::before { content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px; }
.interactive-card > * { position: relative; z-index: 1; }.interactive-kicker { margin: 0 0 5px; color: #8ee4d6; font-size: .6rem; font-weight: 950; letter-spacing: .12em; }.interactive-card h3 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 1.55rem; }.interactive-card > p:not(.interactive-kicker) { margin: 0 0 17px; color: #cbd2dc; font-size: .74rem; }
.interactive-card button { border: 2px solid rgba(255,255,255,.27); border-radius: 9px; color: #fff; background: rgba(255,255,255,.08); font-size: .69rem; font-weight: 900; cursor: pointer; transition: transform .16s, background .16s; }.interactive-card button:hover, .interactive-card button.is-selected { color: #271b17; background: var(--gold-light); transform: translateY(-2px); }
.interactive-result { min-height: 102px; margin-top: 17px; padding: 15px; border: 2px solid #8ecfc5; border-radius: 13px; color: #182b35; background: #e7f6f1; }.interactive-result b { color: #285f59; }.interactive-result p { margin: 5px 0 0; font-size: .74rem; line-height: 1.5; }

.government-map { display: grid; gap: 11px; }.map-zone { padding: 12px; display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.04); }.map-zone strong { grid-column: 1/-1; color: #f0cf84; font-size: .6rem; letter-spacing: .12em; }.map-zone button { min-height: 42px; padding: 7px; }.map-zone button:first-of-type:last-of-type { grid-column: 1/-1; }.ocean-arrow { text-align: center; color: #78d3ca; letter-spacing: .35em; }

.social-pyramid { display: grid; gap: 7px; }.social-pyramid div { margin-inline: auto; padding: 12px 16px; border: 2px solid #b78356; border-radius: 9px; background: #f8e4bd; text-align: center; }.social-pyramid div:nth-child(1) { width: 52%; }.social-pyramid div:nth-child(2) { width: 67%; }.social-pyramid div:nth-child(3) { width: 82%; }.social-pyramid div:nth-child(4) { width: 100%; }.social-pyramid b { display: block; color: var(--wine); }.social-pyramid span { display: block; color: var(--muted); font-size: .68rem; line-height: 1.35; }.history-note { margin: 13px 0 0; color: #665b50; font-size: .69rem; font-style: italic; }
.voice-buttons { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }.voice-buttons button { padding: 9px 6px; }.voice-buttons button:last-child { grid-column: 1/-1; }.portrait-frame { width: 100px; height: 100px; margin: 18px auto 2px; display: grid; place-items: center; border: 4px double #eacb83; border-radius: 50% 50% 44% 44%; color: #f5d98f; background: #562d32; box-shadow: 0 0 0 8px rgba(243,210,129,.08); }.portrait-frame span { font-family: Georgia, serif; font-size: 2.8rem; }

.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.process-grid div { padding: 16px; border: 2px solid #d4bea0; border-radius: 14px; background: #faf0dc; }.process-grid span { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 9px; border-radius: 50%; color: #fff; background: var(--wine); font-size: .7rem; font-weight: 950; }.process-grid b { color: var(--wine-dark); }.process-grid p { margin: 5px 0 0; color: var(--muted); font-size: .71rem; }
.glossary-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }.glossary-list div { padding: 13px; border-left: 5px solid var(--teal); background: #e9f2ed; }.glossary-list dt { color: #245f59; font-weight: 950; }.glossary-list dd { margin: 3px 0 0; color: #5b625d; font-size: .71rem; }
.culture-tokens { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }.culture-tokens button { min-height: 48px; padding: 8px; }.culture-vessel { position: relative; width: 140px; height: 105px; margin: 22px auto 6px; display: grid; place-items: center; border: 5px solid #deb666; border-top: 0; border-radius: 0 0 70px 70px; background: rgba(95,189,164,.18); }.culture-vessel::before { content: ""; position: absolute; left: -16px; right: -16px; top: -10px; height: 18px; border: 5px solid #deb666; border-radius: 50%; background: #24344e; }.culture-vessel span { color: var(--gold-light); font-size: 2.5rem; opacity: .35; }.culture-vessel i { position: absolute; left: 50%; bottom: 13px; width: 16px; height: 16px; border-radius: 50%; background: #65d5bd; opacity: .4; }.culture-vessel.is-mixing span { opacity: 1; animation: culture-glow .8s ease-in-out infinite alternate; }.culture-vessel.is-mixing i { animation: bubble 1.4s ease-in-out infinite; }

.economy-sectors { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }.work-table { border: 2px solid #c9af87; border-radius: 14px; overflow: hidden; }.work-row { display: grid; grid-template-columns: 145px 1fr; }.work-row + .work-row { border-top: 1px solid #dac7a5; }.work-row strong, .work-row b, .work-row span { padding: 12px 13px; }.work-row strong { color: var(--wine); background: #f8ead0; }.work-row span { color: #60584f; font-size: .72rem; }.work-head { color: #fff; background: var(--wine); font-size: .68rem; letter-spacing: .08em; }.work-head b + b { border-left: 1px solid rgba(255,255,255,.25); }
.trade-route { position: relative; margin: 26px 0 15px; padding-top: 55px; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }.trade-route::before { content: ""; position: absolute; left: 9%; right: 9%; top: 27px; height: 4px; border-radius: 4px; background: #d7b365; }.trade-route button { padding: 7px 2px; border: 0; background: transparent; }.trade-route button:hover, .trade-route button.is-selected { color: var(--gold-light); background: transparent; transform: translateY(-2px); }.trade-route button i { display: grid; place-items: center; width: 27px; height: 27px; margin: -48px auto 24px; border: 3px solid #e5c77d; border-radius: 50%; color: #2c2420; background: #e5c77d; font-style: normal; }.moving-cargo { position: absolute; z-index: 2; left: var(--cargo-left, 8%); top: 12px; color: #7ee0cf; font-size: 1.55rem; filter: drop-shadow(0 0 7px rgba(101,229,213,.7)); transition: left .6s cubic-bezier(.2,.8,.2,1); transform: translateX(-50%); }.warning-card { margin-top: 14px; padding: 13px; border: 2px dashed #e0b75c; border-radius: 12px; color: #f7e7bd; background: rgba(218,149,44,.11); }.warning-card b { color: #f3cd76; }.warning-card p { margin: 4px 0 0; font-size: .69rem; }

.quiz-card { margin: 0 28px 28px; padding: 26px; border: 3px solid var(--wine-dark); border-radius: 20px; background: #f2e2c4; box-shadow: inset 0 0 0 5px rgba(255,255,255,.35); }.quiz-number { color: var(--wine); font-size: .62rem; font-weight: 950; letter-spacing: .14em; }.quiz-card h3 { max-width: 780px; margin: 7px 0 18px; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.25; }.answer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.answer-grid.single-column { grid-template-columns: 1fr; }.answer-grid button { min-height: 58px; padding: 12px; border: 3px solid var(--wine-dark); border-radius: 12px; color: var(--wine-dark); background: #fffaf0; font-size: .76rem; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 #9c7652; }.answer-grid button:hover { background: #ffedbd; transform: translateY(-2px); }.answer-grid button.is-correct { color: #fff; background: #277266; border-color: #164a43; box-shadow: 0 4px 0 #164a43; }.answer-grid button.is-wrong { color: #fff; background: #a94742; border-color: #67231f; box-shadow: 0 4px 0 #67231f; }.answer-grid button:disabled { cursor: default; }
.quiz-feedback { display: none; margin-top: 15px; padding: 13px 15px; border-radius: 11px; font-size: .78rem; font-weight: 800; }.quiz-feedback.is-visible { display: block; }.quiz-feedback.is-correct { color: #164b42; border: 2px solid #4d9b88; background: #d8eee7; }.quiz-feedback.is-wrong { color: #6f2622; border: 2px solid #c56b62; background: #f7d7cf; }
.next-button, .restart-button { margin-top: 15px; padding: 13px 18px; border: 3px solid var(--wine-dark); border-radius: 12px; color: #2e2016; background: var(--gold-light); box-shadow: 0 5px 0 #9a6127; font-size: .78rem; font-weight: 950; cursor: pointer; }.next-button:hover, .restart-button:hover { transform: translateY(-2px); }

.completion-card { padding: 55px 45px; border: 4px solid var(--wine-dark); border-radius: 28px; color: #fff; background: linear-gradient(135deg, #24344e, #2b7269); box-shadow: 0 12px 0 #172338, 0 30px 55px var(--shadow); text-align: center; }.completion-seal { width: 92px; height: 92px; margin: 0 auto 18px; display: grid; place-items: center; border: 8px double #ffe19a; border-radius: 50%; color: #ffe19a; background: var(--wine); box-shadow: 0 8px 0 #4e1d1e; font-size: 2rem; }.completion-card > p:first-of-type { margin: 0; color: #a8eee3; font-size: .66rem; font-weight: 950; letter-spacing: .16em; }.completion-card h2 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 4rem); }.completion-lead { max-width: 720px; margin: 0 auto 25px; color: #dbe9e5; }.final-recap { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; text-align: left; }.final-recap div { padding: 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; background: rgba(255,255,255,.08); }.final-recap b { display: block; color: #ffe19a; }.final-recap span { color: #e5efed; font-size: .75rem; }.restart-button { display: inline-block; }

.mission-footer { margin-top: 28px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 3px solid var(--wine-dark); border-radius: 16px; background: #fff4de; box-shadow: 0 5px 0 #9c7652; }.mission-footer div { display: grid; }.mission-footer b { color: var(--wine); font-size: .68rem; letter-spacing: .1em; }.mission-footer span, .mission-footer a { color: var(--muted); font-size: .68rem; }.mission-footer a { font-weight: 900; }

@keyframes ship-route { 0%,100% { transform: translateX(0) translateY(0) rotate(-14deg); } 50% { transform: translateX(180px) translateY(-17px) rotate(-5deg); } }
@keyframes culture-glow { to { transform: rotate(18deg) scale(1.25); text-shadow: 0 0 20px #ffe18e; } }
@keyframes bubble { 0% { transform: translate(-25px,0) scale(.5); opacity: 0; } 55% { opacity: 1; } 100% { transform: translate(22px,-70px) scale(1.1); opacity: 0; } }

@media (max-width: 980px) {
  .mission-hero { padding-right: 43%; }.archive-scene { width: 44%; opacity: .82; }.archive-building { left: 3%; right: 3%; transform: scale(.82); transform-origin: bottom center; }.wax-seal { transform: scale(.78) rotate(9deg); }
  .lesson-grid { grid-template-columns: 1fr; }.interactive-card { position: relative; top: auto; }.concept-list { grid-template-columns: 1fr; }.process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .history-shell { width: min(100% - 20px,1180px); margin-top: 16px; }.mission-hero { min-height: 670px; padding: 46px 28px 310px; align-items: flex-start; }.archive-scene { top: auto; bottom: 0; width: 100%; height: 330px; }.archive-building { left: 19%; right: 12%; bottom: 55px; transform: scale(.83); }.sun-disc { width: 230px; height: 230px; right: 60px; top: 28px; }.wax-seal { right: 15px; bottom: 16px; }
  .progress-panel { grid-template-columns: 1fr auto; }.progress-track { grid-column: 1/-1; grid-row: 2; }.progress-copy { justify-content: space-between; }
  .chapter-map { grid-template-columns: repeat(4,1fr); gap: 7px; }.chapter-map > i { display: none; }.chapter-tab { min-height: 80px; padding: 8px 5px; display: flex; flex-direction: column; align-items: center; text-align: center; }.chapter-tab span { width: 31px; height: 31px; }.chapter-tab small { display: none; }
  .chapter-heading { padding: 22px; }.chapter-stamp { display: none; }.lesson-grid { padding: 18px; }.study-card { padding: 20px; }.quiz-card { margin: 0 18px 18px; padding: 20px; }
  .answer-grid { grid-template-columns: 1fr; }.final-recap { grid-template-columns: 1fr; }.mission-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .mission-hero h1 { font-size: 3.15rem; }.subject-line { line-height: 2.3; }.study-steps { gap: 6px; }.study-steps span { font-size: .62rem; }
  .progress-panel { padding: 15px; }.progress-copy span { display: none; }.chapter-tab b { font-size: .72rem; }
  .chapter-heading h2 { font-size: 1.8rem; }.concept-list.compact-concepts, .economy-sectors, .glossary-list { grid-template-columns: 1fr; }.social-pyramid div:nth-child(n) { width: 100%; }.voice-buttons, .culture-tokens { grid-template-columns: 1fr; }.voice-buttons button:last-child { grid-column: auto; }.work-row { grid-template-columns: 1fr; }.work-head { display: none; }.work-row strong { padding-bottom: 5px; }.work-row span { padding-top: 5px; }.completion-card { padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .realm-nav, .chapter-map, .interactive-card, .quiz-card, .progress-panel, .restart-button, .restart-small { display: none !important; }
  body { background: #fff; }.history-shell { width: 100%; margin: 0; }.mission-hero { min-height: 0; padding: 25px; box-shadow: none; }.archive-scene { display: none; }.chapter-panel { display: block !important; margin: 15px 0; box-shadow: none; break-inside: avoid; }.lesson-grid { display: block; }.study-card { border: 0; }.mission-footer { box-shadow: none; }
}
