:root {
  --night: #101b22;
  --night2: #182b30;
  --night3: #20383a;
  --teal: #2b5c60;
  --cream: #f3ebd5;
  --paper: #e8dcc1;
  --paper2: #d8c6a0;
  --ink: #27312e;
  --ink2: #52605a;
  --gold: #dcb46b;
  --gold2: #f5d894;
  --red: #a84e39;
  --green: #427b56;
  --line: #b99f71;
  --shadow: 0 18px 42px rgba(10, 19, 21, .28);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background: var(--night);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 290px; background: var(--night); }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, .event-card:focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, blockquote { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2, h3, .brand strong { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(2.3rem, 4.1vw, 4.25rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.65rem, 2.5vw, 2.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.35rem; }
.skip-link { position: absolute; z-index: 99; left: 1rem; top: -5rem; padding: .7rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: .5rem; }
.game-shell { min-height: 100vh; background: radial-gradient(circle at 20% 10%, #203835 0, transparent 33%), linear-gradient(120deg, #16272b, #0d191f 60%); }
.topbar { min-height: 88px; padding: .9rem clamp(1rem, 3vw, 2.5rem); display: flex; align-items: center; gap: 1.6rem; background: #0d1a20; border-bottom: 1px solid #52625a; box-shadow: 0 6px 18px rgba(0,0,0,.24); }
.brand { display: flex; align-items: center; gap: .85rem; flex: 1; min-width: 240px; line-height: 1.05; }
.brand-seal { width: 58px; height: 58px; border: 2px solid var(--gold); border-radius: 12px; color: var(--gold2); font-size: 1.8rem; display: grid; place-items: center; background: radial-gradient(circle, #3e5a4d, #152c31); box-shadow: inset 0 0 0 4px rgba(220,180,107,.12); transform: rotate(-5deg); }
.brand-kicker, .brand-subtitle { display: block; color: #d9c898; font-size: .65rem; font-weight: 800; letter-spacing: .2em; }
.brand strong { display: block; color: #f7e8c3; font-size: 1.45rem; letter-spacing: .05em; margin: .17rem 0; }
.top-resources { display: flex; gap: .55rem; }
.resource { min-width: 107px; display: grid; grid-template-columns: 21px 1fr; grid-template-rows: 1fr 1fr; gap: 0 .35rem; padding: .4rem .7rem; border: 1px solid #5b644f; border-radius: 5px; background: #203530; }
.resource > span { grid-row: 1/3; align-self: center; color: var(--gold2); font-size: 1.15rem; }
.resource b { font-size: .99rem; line-height: 1.1; }
.resource small { color: #c4c6ac; font-size: .65rem; line-height: 1.1; }
.top-controls { display: flex; align-items: center; gap: .55rem; }
.profile-label { color: #c8cabf; font-size: .78rem; font-weight: 700; }
.top-controls select { border: 1px solid #748278; border-radius: 4px; min-width: 130px; padding: .55rem .55rem; background: #21373b; color: #fff; }
.icon-control { width: 40px; height: 40px; border: 1px solid #8b9b8c; border-radius: 4px; color: #f9e3a8; background: #24383b; font-size: 1.25rem; }
.sound-control { min-height: 40px; border: 1px solid #7d907f; border-radius: 4px; padding: .42rem .58rem; color: #f8e8b6; background: #254036; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.sound-control[aria-pressed="false"] { color: #b5bcb7; background: #202e31; border-color: #52605a; }
.sound-control:hover { border-color: #eacb88; }
.scene-sound-label { display: inline-block; color: #d9c99f; border: 1px solid #6f806f; border-radius: 100px; background: #28443c; padding: .26rem .55rem; font-size: .68rem; font-weight: 700; margin: -.2rem 0 .65rem; }
.main-nav { min-height: 58px; display: flex; align-items: center; gap: .25rem; padding: 0 clamp(1rem, 3vw, 2.5rem); border-bottom: 3px solid #a88348; background: #1b3030; }
.nav-link { min-height: 55px; padding: 0 1.1rem; border: 0; border-bottom: 3px solid transparent; margin-bottom: -3px; background: none; color: #d0d7c9; font-weight: 800; letter-spacing: .015em; }
.nav-link > span { color: var(--gold2); margin-right: .35rem; }
.nav-link:hover, .nav-link.is-active { color: #fff5d5; background: #28413b; }
.nav-link.is-active { border-bottom-color: var(--gold2); }
.nav-tag { margin-left: auto; color: #a8b5a9; font-size: .64rem; letter-spacing: .16em; font-weight: 800; }
.screen { max-width: 1600px; margin: auto; padding: 2.2rem clamp(1rem, 3vw, 2.5rem) 5rem; }
.eyebrow { color: #b78d4f; font-size: .7rem; letter-spacing: .18em; font-weight: 900; text-transform: uppercase; margin-bottom: .55rem; }
.board-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.board-heading h1 { max-width: 830px; margin-bottom: .65rem; }
.board-heading p:not(.eyebrow) { color: #c9d1c4; font-size: 1.04rem; max-width: 760px; margin-bottom: 0; }
.campaign-progress { width: 230px; flex: none; padding-bottom: .3rem; color: var(--gold2); font-size: .8rem; font-weight: 800; text-align: right; }
.progress-track { height: 8px; border: 1px solid #8e8260; border-radius: 20px; background: #314543; margin-top: .55rem; overflow: hidden; }
.progress-track > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a98040, #f7df97); transition: width .4s ease; }
.board-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .67fr); gap: 1.3rem; align-items: stretch; }
.map-frame, .council-card { border: 1px solid #988559; box-shadow: var(--shadow); overflow: hidden; }
.map-frame { background: #1b393e; border-radius: 7px; }
.map-topline { min-height: 38px; padding: .7rem 1rem; display: flex; justify-content: space-between; gap: 1rem; background: #273b32; border-bottom: 1px solid #8d7548; color: #e5d9b4; font-size: .65rem; letter-spacing: .13em; font-weight: 900; }
.map-topline span:last-child { color: #acb8a7; font-size: .58rem; }
.world-map { position: relative; height: clamp(410px, 43vw, 620px); overflow: hidden; background: #1d424b; }
.terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.mountain-range, .hill { fill: none; stroke: #d3c08f; stroke-width: 5; stroke-linecap: round; opacity: .5; }
.river { fill: none; stroke: #8bc0b7; stroke-width: 10; stroke-linecap: round; opacity: .65; }
.road { fill: none; stroke: #d4bd82; stroke-width: 4; stroke-dasharray: 7 12; opacity: .6; }
.route-line { fill: none; stroke: #e4ca8a; stroke-width: 3; stroke-dasharray: 7 10; opacity: .68; }
.sea-lines { fill: none; stroke: #8cb8b3; stroke-width: 3; opacity: .38; }
.map-compass, .map-script { fill: #e5d5a8; font: 22px Georgia, serif; letter-spacing: 3px; opacity: .9; }
.map-script { font-size: 16px; }
.compass-arrow { fill: #e4d39a; }
.map-vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 95px rgba(5,22,24,.52); }
.map-pins { position: absolute; inset: 0; }
.map-pin { position: absolute; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; border: 2px solid #dbc685; color: #f8e6b8; background: radial-gradient(circle at 35% 30%, #41695b, #1b3f3b 70%); box-shadow: 0 0 0 4px rgba(22,46,42,.55), 0 4px 12px rgba(0,0,0,.45); display: grid; place-items: center; font: 700 1.25rem Georgia, serif; z-index: 2; transition: transform .18s ease, box-shadow .18s ease; }
.map-pin:hover, .map-pin.is-selected { transform: translate(-50%, -50%) scale(1.14); box-shadow: 0 0 0 6px rgba(245,216,148,.28), 0 0 26px rgba(245,216,148,.6); }
.map-pin.is-locked { filter: grayscale(.8); opacity: .7; border-color: #93a093; }
.map-pin.is-complete { background: radial-gradient(circle at 35% 30%, #bd9f5d, #6c5c35 75%); }
.map-pin.is-next { animation: beacon 2.7s infinite; }
.map-pin .pin-label { position: absolute; left: 50%; top: 59px; transform: translateX(-50%); white-space: nowrap; background: rgba(14,29,31,.9); color: #fff3cf; border: 1px solid #8d7950; border-radius: 3px; padding: .24rem .44rem; font: 800 .62rem -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .04em; }
@keyframes beacon { 50% { box-shadow: 0 0 0 9px rgba(245,216,148,.14), 0 0 27px rgba(245,216,148,.7); } }
.map-legend { display: flex; gap: 1.1rem; padding: .6rem 1rem; color: #d7d7c1; background: #203934; font-size: .7rem; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .25rem; }
.legend-dot.ready { background: #eac980; } .legend-dot.done { background: #5daa73; } .legend-dot.locked { background: #8c9991; }
.council-card { border-radius: 7px; background: #e6dac0; color: var(--ink); padding: 1.15rem; }
.council-card .eyebrow { margin: 0 0 .65rem; }
.council-portrait-wrap { position: relative; height: clamp(250px, 26vw, 360px); overflow: hidden; border: 5px solid #ab8c52; box-shadow: 0 8px 20px rgba(31,31,23,.2); }
.council-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.portrait-nameplate { position: absolute; left: 0; right: 0; bottom: 0; padding: .65rem .8rem; background: linear-gradient(transparent, rgba(8,23,23,.9)); color: #fff3d2; font-weight: 900; font-size: .72rem; letter-spacing: .15em; }
.council-body { padding: 1rem .15rem .2rem; }
.council-mission { color: #876334; font-size: .69rem; font-weight: 900; letter-spacing: .14em; margin-bottom: .4rem; }
.council-body h2 { margin-bottom: .3rem; }
.character-type { color: #6b7164; font-size: .78rem; font-weight: 700; }
.council-line { font-family: Georgia, serif; font-style: italic; color: #364b43; font-size: 1.03rem; line-height: 1.45; border-left: 3px solid #b08a4c; padding-left: .75rem; }
.council-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.council-actions .button:first-child { grid-column: 1 / -1; }
.button { min-height: 43px; display: inline-flex; justify-content: center; align-items: center; gap: .4rem; padding: .55rem .75rem; border-radius: 4px; border: 1px solid transparent; font-weight: 900; font-size: .83rem; text-align: center; transition: transform .15s ease, filter .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.button-gold { color: #1c2924; background: linear-gradient(#f4d78f, #caa05b); border-color: #866939; box-shadow: inset 0 1px rgba(255,255,255,.45), 0 3px 0 #856a39; }
.button-outline { background: transparent; color: #2a4a43; border-color: #8f9c83; }
.button-ghost { color: #2c4c43; background: #d4e0d1; border-color: #a8b9a6; }
.route-section { margin-top: 2.8rem; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.section-top h2 { margin-bottom: 0; }
.section-top > p { max-width: 420px; color: #b7c6b9; font-size: .88rem; margin-bottom: .2rem; }
.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.route-card { display: flex; gap: .8rem; align-items: center; width: 100%; min-height: 88px; padding: .65rem; color: #e9e7d5; text-align: left; border: 1px solid #62725e; border-radius: 5px; background: #223a37; }
.route-card:hover, .route-card.is-selected { background: #335249; border-color: var(--gold2); }
.route-card.is-locked { opacity: .65; }
.route-card img { width: 58px; height: 58px; object-fit: cover; border: 2px solid #a98c59; border-radius: 3px; }
.route-card strong, .route-card small { display: block; }
.route-card strong { font-family: Georgia, serif; font-size: 1rem; }
.route-card small { color: #c0c7b5; font-size: .7rem; }
.mission-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.back-link { border: 0; background: none; color: #eed6a1; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.mission-step-label { font-size: .7rem; color: #e1c383; letter-spacing: .15em; font-weight: 900; }
.button-help { background: #30574c; border-color: #8eb099; color: #fff5da; }
.mission-header { display: grid; grid-template-columns: 250px 1fr; gap: 1.8rem; align-items: stretch; background: linear-gradient(100deg, #243d37, #1a3034 65%, #14262e); border: 1px solid #a58b5c; border-radius: 7px; overflow: hidden; box-shadow: var(--shadow); }
.mission-portrait-wrap { position: relative; min-height: 280px; overflow: hidden; }
.mission-portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.mission-portrait-wrap::after { content: ""; position: absolute; inset: 0; box-shadow: inset -35px 0 45px rgba(15,33,35,.56); pointer-events: none; }
.speaking-bars { position: absolute; bottom: 16px; left: 16px; display: none; align-items: end; gap: 3px; height: 26px; z-index: 2; padding: 5px 8px; border-radius: 20px; background: rgba(10,26,26,.76); }
.speaking-bars.is-speaking { display: flex; }
.speaking-bars i { width: 3px; height: 11px; background: #ffe3a4; animation: wave .7s ease-in-out infinite alternate; }
.speaking-bars i:nth-child(2) { animation-delay: .15s; } .speaking-bars i:nth-child(3) { animation-delay: .3s; } .speaking-bars i:nth-child(4) { animation-delay: .1s; }
@keyframes wave { to { height: 20px; } }
.mission-intro { padding: 2rem 2rem 1.5rem 0; align-self: center; }
.mission-intro h1 { margin-bottom: .55rem; }
.speaker-label { color: #e6d8a9; font-size: .82rem; }
.speaker-label span { color: #adc3b7; }
.mission-intro blockquote { max-width: 850px; font: italic clamp(1.18rem, 2vw, 1.6rem)/1.45 Georgia, serif; color: #f1e7c9; padding-left: 1rem; margin: 1rem 0 1.4rem; border-left: 3px solid #d6b56d; }
.dialogue-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.button-outline-light { background: transparent; border-color: #a9c3ae; color: #fbf0cf; }
.subtitle-note { font-size: .72rem; color: #b9c7bb; }
.mission-content { display: grid; grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr); gap: 1rem; margin-top: 1rem; align-items: start; }
.field-notes, .challenge-board { background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 1.4rem; }
.field-notes h2 { margin-bottom: 1rem; }
.field-notes ul { margin: 0; padding-left: 1.2rem; }
.field-notes li { padding-left: .25rem; margin-bottom: .8rem; line-height: 1.48; }
.guest-card { display: flex; align-items: start; gap: .75rem; border: 1px solid #c4ad7b; background: #e9dfc7; padding: .7rem; margin: 1rem 0; border-radius: 4px; }
.guest-card img { width: 64px; height: 68px; object-fit: cover; }
.guest-card p { font-size: .78rem; margin: .3rem 0; }
.guest-card button { border: 0; background: none; color: #245c57; padding: 0; font-weight: 900; text-decoration: underline; font-size: .72rem; }
.button-hint { background: #d7e3cf; color: #284c42; border-color: #94b19b; margin-top: .8rem; }
.hint-text { margin: .7rem 0 0; padding: .7rem; color: #563e16; border-left: 3px solid #b98b3d; background: #fbebc7; }
.hint-text:empty, .challenge-feedback:empty { display: none; }
.challenge-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; border-bottom: 1px solid #c6b38d; margin-bottom: 1rem; }
.challenge-header h2 { margin-bottom: 1rem; }
.challenge-type-tag { background: #dcd2b7; color: #5c4b2e; border-radius: 999px; white-space: nowrap; font-size: .62rem; font-weight: 900; letter-spacing: .08em; padding: .4rem .65rem; text-transform: uppercase; }
.challenge-instruction { color: #52605a; margin-bottom: 1.2rem; }
.challenge-feedback { padding: .7rem .8rem; border-radius: 4px; margin: 1rem 0 0; font-weight: 800; }
.challenge-feedback.is-error { color: #7e3027; background: #f6dcd4; }
.challenge-feedback.is-success { color: #27583d; background: #dcecdf; }
.challenge-feedback.is-info { color: #385a68; background: #dbe9ec; }
.event-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.event-card { display: grid; grid-template-columns: 31px 69px 1fr auto; align-items: center; gap: .65rem; padding: .7rem; border: 1px solid #c5b28b; border-radius: 4px; background: #e9dfc8; }
.event-rank { font: 800 .8rem Georgia, serif; color: #796849; }
.event-year { font: 800 1.25rem Georgia, serif; color: #265453; }
.event-text { font-size: .88rem; }
.move-buttons { display: flex; gap: .25rem; }
.move-buttons button { width: 34px; height: 34px; border: 1px solid #a28c64; border-radius: 4px; background: #fcf7e9; color: #193937; font-size: 1.1rem; font-weight: 900; }
.quiz-options, .selection-cards, .market-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.quiz-option, .selection-card, .market-item { display: flex; align-items: center; gap: .7rem; min-height: 76px; padding: .8rem; text-align: left; background: #e9dfc8; color: var(--ink); border: 2px solid #c5b28b; border-radius: 5px; font-weight: 750; }
.quiz-option:hover, .selection-card:hover, .market-item:hover { border-color: #9f7639; background: #f3e8cf; }
.quiz-option.is-selected, .selection-card.is-selected, .market-item.is-selected { border-color: #356b57; background: #dbe9d7; }
.quiz-option.is-correct { border-color: #3d895b; background: #d6ead9; }
.quiz-progress { display: flex; gap: .35rem; margin-bottom: 1rem; }
.quiz-progress span { height: 5px; flex: 1; background: #cbb991; border-radius: 4px; }
.quiz-progress span.done { background: #3f8359; }
.quiz-question { font: 700 1.25rem Georgia, serif; margin-bottom: 1rem; }
.challenge-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.selection-card { flex-direction: column; align-items: flex-start; min-height: 125px; }
.selection-icon, .market-icon { color: #a16b2f; font: 700 2rem Georgia, serif; }
.selection-card small, .market-item small { color: #59655c; font-size: .74rem; }
.classify-grid { display: grid; gap: .65rem; }
.classify-row { display: grid; grid-template-columns: 1fr 170px; gap: .8rem; align-items: center; padding: .7rem; background: #e9dfc8; border: 1px solid #c5b28b; border-radius: 4px; }
.classify-row label { font-size: .88rem; font-weight: 750; }
.classify-row select, .map-marker select, .guild-select { width: 100%; padding: .55rem; border: 1px solid #9d8e6d; background: #fff9eb; color: #24382f; border-radius: 4px; }
.schematic-map { position: relative; height: 330px; background: radial-gradient(ellipse at 50% 45%, #aab98e 0, #8fa681 55%, #456e71 75%, #2c5862 100%); border: 5px solid #8f7950; border-radius: 6px; margin-bottom: 1rem; overflow: hidden; }
.schematic-map::before { content: ""; position: absolute; inset: 9% 11%; background: #d1bc83; clip-path: polygon(10% 28%, 28% 12%, 59% 9%, 83% 21%, 94% 50%, 75% 83%, 44% 91%, 16% 73%); opacity: .84; }
.map-marker { position: absolute; transform: translate(-50%, -50%); z-index: 1; width: 125px; padding: .4rem; background: #f8efd9; border: 1px solid #806a43; border-radius: 5px; box-shadow: 0 5px 12px rgba(0,0,0,.25); }
.map-marker span { display: block; font-size: .63rem; font-weight: 900; margin-bottom: .25rem; }
.market-item { flex-direction: column; align-items: flex-start; min-height: 125px; }
.market-item b { font-family: Georgia, serif; font-size: 1.1rem; }
.market-ledger { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .7rem; margin: .8rem 0; background: #304d42; color: #ffedc5; border-radius: 4px; font-weight: 900; }
.guild-label { display: block; margin: .9rem 0 .35rem; font-weight: 800; }
.claim-panel, .mission-success { margin-top: 1.2rem; padding: 1.2rem; border: 2px solid #9aa66e; background: #e0ebd7; color: #244332; border-radius: 5px; }
.claim-seal { width: 55px; height: 55px; display: grid; place-items: center; color: #e9d390; background: #2b6649; border-radius: 50%; font-size: 1.8rem; margin-bottom: .6rem; }
.claim-panel h3, .mission-success h3 { font-size: 1.65rem; margin-bottom: .55rem; }
.claim-panel label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .45rem; }
.claim-panel textarea { width: 100%; border: 1px solid #8eab92; border-radius: 4px; padding: .6rem; resize: vertical; background: #fffef5; color: #1b3028; }
.claim-panel button { margin-top: .7rem; }
.mission-success { background: linear-gradient(120deg, #244f3e, #173f38); color: #fff1cb; border-color: #c6a66b; }
.mission-success .eyebrow { color: #e7d18c; }
.mission-success p { margin-bottom: .8rem; }
.success-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.mission-success .button-outline { color: #f4ecd6; border-color: #aac6b6; }
.simple-screen { max-width: 1250px; }
.page-heading { padding: 2rem; border: 1px solid #af8d57; background: linear-gradient(100deg, #274a43, #182d32); border-radius: 6px; margin-bottom: 1.3rem; }
.page-heading h1 { margin-bottom: .4rem; }
.page-heading p:last-child { margin-bottom: 0; color: #d4ddc5; }
.simple-screen > p { color: #c9d5c8; max-width: 800px; }
.passport-grid, .museum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.2rem 0; }
.passport-card, .museum-card { min-height: 170px; padding: 1rem; border: 1px solid #ad9161; border-radius: 5px; background: #e7dcc4; color: var(--ink); }
.passport-card.is-complete { background: #e7ecd8; border-color: #83ad80; }
.passport-card.is-locked { opacity: .65; }
.passport-card .eyebrow { margin-bottom: .6rem; }
.passport-card h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.passport-card p { font-size: .83rem; margin-bottom: .4rem; }
.passport-card strong { color: #2b6848; }
.museum-card { position: relative; min-height: 220px; overflow: hidden; padding: 0; }
.museum-card button { width: 100%; height: 100%; min-height: 220px; border: 0; background: transparent; text-align: left; color: inherit; padding: 1rem; }
.museum-card.is-locked { filter: grayscale(.7); opacity: .6; }
.museum-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #36594b; color: #f8e4a9; font: 700 2rem Georgia, serif; margin-bottom: .8rem; }
.museum-card h2 { font-size: 1.28rem; margin-bottom: .4rem; }
.museum-card p { font-size: .79rem; margin-bottom: .3rem; }
.museum-detail { grid-column: 1 / -1; padding: 1.25rem; border: 1px solid #ad9161; border-radius: 5px; background: #eadfca; color: var(--ink); }
.museum-detail h2 { font-size: 1.5rem; }
.museum-detail p { max-width: 800px; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.4rem clamp(1rem, 3vw, 2.5rem); background: #0b161a; border-top: 1px solid #526355; color: #b5bfb4; font-size: .67rem; font-weight: 800; letter-spacing: .07em; }
.footer button { border: 0; background: none; color: #d2b36e; font-size: .72rem; text-decoration: underline; }
.help-dialog { width: min(500px, calc(100vw - 1rem)); max-height: min(760px, calc(100vh - 1rem)); padding: 0; border: 2px solid #c5a263; border-radius: 7px; background: #efe5cf; color: var(--ink); box-shadow: 0 25px 70px rgba(0,0,0,.5); }
.help-dialog::backdrop { background: rgba(4,14,18,.76); backdrop-filter: blur(3px); }
.help-topbar { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1rem; color: #f1deb1; background: #1e3635; font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.help-topbar button { color: #fff1ca; background: transparent; border: 0; font-size: 1.5rem; line-height: 1; }
.help-character { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-bottom: 1px solid #cdb98c; }
.help-character img { width: 84px; height: 84px; object-fit: cover; border: 3px solid #a5834b; border-radius: 4px; }
.help-character h2 { font-size: 1.4rem; margin-bottom: .2rem; }
.help-character p:last-child { color: #687464; font-size: .72rem; margin: 0; }
.help-disclosure { color: #58665a; font-size: .75rem; margin: .7rem 1rem; }
.help-chat { height: 260px; overflow-y: auto; margin: 0 1rem; padding: .7rem; background: #f8f3e5; border: 1px solid #ccb98e; border-radius: 4px; }
.chat-line { max-width: 88%; padding: .58rem .7rem; margin-bottom: .6rem; border-radius: 5px; font-size: .84rem; }
.chat-line.guide { background: #dce8d7; border: 1px solid #9fbc9e; }
.chat-line.student { background: #eee0bd; border: 1px solid #cbb275; margin-left: auto; }
.chat-line b { display: block; font-size: .68rem; margin-bottom: .2rem; }
.chat-line button { display: block; margin-top: .35rem; border: 0; background: none; padding: 0; color: #215a50; text-decoration: underline; font-weight: 900; font-size: .7rem; }
.help-suggestions { display: flex; gap: .35rem; overflow-x: auto; padding: .7rem 1rem; }
.help-suggestions button { flex: none; border: 1px solid #a9b29b; border-radius: 15px; padding: .3rem .6rem; background: #e0e8d6; color: #315349; font-size: .72rem; font-weight: 750; }
.help-form { padding: 0 1rem 1rem; }
.help-form label { display: block; font-weight: 800; font-size: .76rem; margin-bottom: .4rem; }
.help-form > div { display: flex; gap: .4rem; }
.help-form input { flex: 1; min-width: 0; padding: .65rem; border: 1px solid #9aab92; border-radius: 4px; color: #19352d; background: #fffdf5; }
.victory-dialog { width: min(790px, calc(100vw - 1.1rem)); max-height: min(650px, calc(100vh - 1rem)); padding: 0; border: 2px solid #e9c67e; border-radius: 10px; overflow: auto; color: #fff2cf; background: #15312f; box-shadow: 0 25px 90px rgba(0,0,0,.6); }
.victory-dialog::backdrop { background: rgba(4,11,13,.82); backdrop-filter: blur(7px); }
.victory-frame { position: relative; display: grid; grid-template-columns: 280px 1fr; min-height: 390px; overflow: hidden; background: radial-gradient(circle at 75% 10%, #416550, #183b37 55%, #102a2a); }
.victory-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; left: 5px; top: 45px; background: #f1cc70; filter: blur(75px); opacity: .23; animation: victory-pulse 2.4s ease-in-out infinite; pointer-events: none; }
.victory-frame img { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: center; border-right: 4px solid #d3af70; animation: portrait-arrive .8s ease-out both, portrait-breathe 5s ease-in-out 1s infinite; }
.victory-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
.victory-content .eyebrow { color: #f0d490; }
.victory-content h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .3rem; }
.victory-content > p:not(.eyebrow) { font-size: 1.1rem; line-height: 1.5; }
.victory-speaking { display: flex; align-items: end; gap: 3px; height: 24px; margin-bottom: 1rem; }
.victory-speaking i { width: 5px; height: 8px; border-radius: 3px; background: #f0d490; opacity: .6; }
.victory-speaking.is-speaking i { animation: wave 650ms ease-in-out infinite alternate; }
.victory-speaking.is-speaking i:nth-child(2) { animation-delay: 120ms; }
.victory-speaking.is-speaking i:nth-child(3) { animation-delay: 260ms; }
.victory-speaking.is-speaking i:nth-child(4) { animation-delay: 180ms; }
.victory-reward { display: inline-block; align-self: start; padding: .45rem .65rem; border: 1px solid #a98a55; border-radius: 5px; color: #f7de9e; background: rgba(13,32,28,.65); font-size: .82rem !important; font-weight: 800; }
.victory-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
@keyframes victory-pulse { 50% { transform: scale(1.3); opacity: .38; } }
@keyframes portrait-arrive { from { opacity: 0; transform: scale(1.08) translateY(12px); } to { opacity: 1; transform: scale(1); } }
@keyframes portrait-breathe { 50% { transform: scale(1.025) translateY(-3px); } }
@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; }
  .brand { flex: 1 1 100%; }
  .top-resources { margin-right: auto; }
  .board-layout { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); }
  .route-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .board-heading, .section-top { flex-direction: column; align-items: start; gap: .8rem; }
  .campaign-progress { width: min(100%, 300px); text-align: left; }
  .board-layout, .mission-content { grid-template-columns: 1fr; }
  .world-map { height: 520px; }
  .council-card { display: grid; grid-template-columns: 250px 1fr; gap: 1rem; }
  .council-card > .eyebrow { grid-column: 1 / -1; margin: 0; }
  .council-portrait-wrap { height: 280px; }
  .passport-grid, .museum-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .topbar { gap: .8rem; }
  .brand strong { font-size: 1.15rem; }
  .brand-seal { width: 47px; height: 47px; }
  .top-resources { width: 100%; }
  .resource { flex: 1; }
  .top-controls { width: 100%; flex-wrap: wrap; }
  .top-controls select { flex: 1 1 calc(100% - 70px); }
  .sound-control { flex: 1; }
  .nav-tag { display: none; }
  .main-nav { justify-content: space-between; padding: 0 .5rem; }
  .nav-link { padding: 0 .55rem; font-size: .78rem; }
  .screen { padding-top: 1.3rem; }
  .world-map { height: 440px; }
  .map-pin { width: 38px; height: 38px; font-size: .95rem; }
  .map-pin .pin-label { top: 42px; font-size: .5rem; padding: .15rem .25rem; }
  .map-topline span:last-child { display: none; }
  .council-card { display: block; }
  .council-portrait-wrap { height: 260px; }
  .route-cards, .passport-grid, .museum-grid { grid-template-columns: 1fr; }
  .mission-toolbar { flex-wrap: wrap; }
  .mission-step-label { order: 3; width: 100%; }
  .mission-header { grid-template-columns: 100px 1fr; gap: .4rem; }
  .mission-portrait-wrap { min-height: 180px; }
  .mission-intro { padding: 1rem .7rem 1rem 0; }
  .mission-intro h1 { font-size: 1.65rem; }
  .mission-intro blockquote { font-size: .92rem; margin: .7rem 0; }
  .subtitle-note { display: none; }
  .event-card { grid-template-columns: 22px 52px 1fr; }
  .event-text { grid-column: 2 / 4; grid-row: 2; }
  .move-buttons { grid-column: 3; grid-row: 1; justify-self: end; }
  .quiz-options, .selection-cards, .market-items { grid-template-columns: 1fr; }
  .classify-row { grid-template-columns: 1fr; gap: .45rem; }
  .map-marker { width: 95px; }
  .map-marker span { font-size: .55rem; }
  .map-marker select { font-size: .7rem; padding: .35rem; }
  .victory-frame { grid-template-columns: 115px 1fr; min-height: 340px; }
  .victory-frame img { min-height: 340px; }
  .victory-content { padding: 1.2rem; }
  .victory-content > p:not(.eyebrow) { font-size: .9rem; }
}
@media (max-width: 390px) {
  .mission-header { display: block; }
  .mission-portrait-wrap { height: 180px; }
  .mission-intro { padding: 1rem; }
  .map-pin .pin-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .main-nav, .footer, .screen:not(#passportScreen), #printPassportButton { display: none !important; }
  .game-shell, body { color: #000; background: #fff; }
  #passportScreen { display: block !important; padding: 0; max-width: none; }
  .page-heading, .passport-card { box-shadow: none; color: #000; }
  .passport-card { break-inside: avoid; }
  .passport-grid { grid-template-columns: repeat(3, 1fr); }
}
