@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('./assets/fonts/dm-sans-400.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('./assets/fonts/dm-sans-500.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('./assets/fonts/dm-sans-600.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('./assets/fonts/dm-sans-700.ttf') format('truetype'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('./assets/fonts/space-mono-400.ttf') format('truetype'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('./assets/fonts/space-mono-700.ttf') format('truetype'); }

:root {
  color-scheme: light;
  --paper: #f4edda;
  --paper-deep: #e8ddc0;
  --ink: #2e4335;
  --muted: #7c8370;
  --border: #d9d0b5;
  --amber: #c7a160;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 10% -15%, #364c38 0, transparent 46%), linear-gradient(120deg, #192c24, #11231f); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .065; background-image: radial-gradient(#ece7d2 .65px, transparent .65px); background-size: 18px 18px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; transition: background .16s, border-color .16s, transform .16s; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible, canvas:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
button:active:not(:disabled) { transform: translateY(1px); }
button::-moz-focus-inner { border: 0; }
a { color: inherit; }
.hidden { display: none !important; }
.app-shell { width: min(1480px, calc(100% - 64px)); margin: 0 auto; position: relative; }

/* A quiet, compact frame lets the illustrated world stay in the foreground. */
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid #d4dfb81c; }
.brand { display: flex; align-items: center; gap: 12px; color: #eff0db; text-decoration: none; width: fit-content; }
.brand-mark { width: 36px; height: 36px; padding: 8px; color: #d6b477; border: 1px solid #b7c39866; background: #afbc8920; border-radius: 6px; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-name { font: 700 17px/1 var(--mono); letter-spacing: 1.6px; }
.brand-name > span { color: #c5ab75; }
.brand-name small { display: block; font: 400 7px/1.2 var(--mono); letter-spacing: 1.25px; color: #94a68c; margin-top: 7px; }
.topbar-actions { display: flex; align-items: center; gap: 25px; }
.chapter-label { color: #a3b497; font: 400 9px var(--mono); letter-spacing: 1.4px; }
.help-button { background: #d4dfbd0a; color: #d0d8bf; border: 1px solid #a4b99335; border-radius: 5px; padding: 8px 11px; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.help-button > span { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #b4c39970; font: 10px var(--mono); }
.help-button:hover { background: #b5c38a1b; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 25px 0 27px; color: #f4efdc; }
.intro h1 { font: 500 clamp(27px, 2.8vw, 38px)/1.12 var(--serif); letter-spacing: -.8px; margin: 0 0 5px; }
.intro h1 em { color: #d9bd85; font-weight: 400; }
.intro p { font-size: 12px; color: #a5b49e; margin: 0; }
.learning-progress { min-width: 168px; width: 194px; }
.learning-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.progress-label { font: 400 8px var(--mono); letter-spacing: 1.1px; color: #b4c1a5; }
.progress-number { font: 400 11px var(--mono); color: #91a185; white-space: nowrap; }
.progress-number strong { font-weight: 700; font-size: 19px; color: #e8d3a2; }
.progress-track { width: 100%; background: #e4e6bc18; height: 4px; border-radius: 3px; overflow: hidden; }
#progressFill { display: block; height: 100%; width: 0; background: #c7af77; border-radius: inherit; transition: width .35s; }
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; align-items: start; scroll-margin-top: 20px; }
.journey-column { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.anatomy-column { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Game viewport and intentional, low-noise controls. */
.game-panel { background: var(--paper); border: 1px solid #fcf5df; border-radius: 10px; padding: 12px 12px 0; box-shadow: 0 10px 30px #07150e20; overflow: hidden; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 7px 13px; min-height: 63px; }
.region-heading { display: flex; align-items: center; gap: 12px; }
.region-number { font: 400 22px/1 var(--serif); color: #8b774b; display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; white-space: nowrap; border: 1px solid #cfc6a7; border-radius: 50%; }
.eyebrow { font: 700 8px/1.4 var(--mono); letter-spacing: 1.2px; color: #8d8b6b; }
.game-heading .eyebrow { font-size: 8px; color: #8b8b6e; }
.game-heading h2 { margin: 3px 0 0; font: 500 22px/1.1 var(--serif); color: #344a35; letter-spacing: -.25px; }
.saved-note { display: flex; align-items: center; gap: 6px; color: #97a087; font-size: 9px; white-space: nowrap; }
.saved-note > span { height: 4px; width: 4px; border-radius: 50%; background: #8da77e; }
.game-frame { aspect-ratio: 16 / 9; position: relative; background: #526b3d; border: 2px solid #4b5b39; border-radius: 5px; overflow: hidden; isolation: isolate; }
.game-frame canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; outline-offset: -4px; touch-action: none; }
.zone-badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; align-items: center; gap: 8px; color: #f1edd6; padding: 7px 10px; background: #162f26df; border: 1px solid #d3dcad63; border-radius: 3px; box-shadow: 0 3px 7px #15251e1a; font: 700 9px var(--mono); letter-spacing: .7px; pointer-events: none; }
.zone-badge > span:first-child { color: #d3b57b; font-size: 8px; }
.interaction-bubble { position: absolute; bottom: 21px; left: 50%; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 7px 13px 7px 7px; background: #faf4e1ed; border: 1px solid #5e6d4d; border-radius: 6px; color: #344b34; font: 700 11px var(--mono); white-space: nowrap; box-shadow: 0 4px 0 #1b352640, 0 5px 14px #15281920; pointer-events: none; }
.interaction-bubble kbd { display: grid; place-items: center; border: 1px solid #9f8d66; background: #dcc28e; color: #5a5336; width: 26px; height: 25px; border-radius: 3px; font: 700 12px var(--mono); }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1; box-shadow: inset 0 0 70px #12281d25; }
.game-controls { display: flex; align-items: center; gap: 21px; min-height: 43px; padding: 7px; }
.control-pair { display: flex; gap: 4px; align-items: center; font-size: 10px; color: #8c9079; white-space: nowrap; }
.control-pair > span { margin-left: 3px; }
kbd { font: 9px var(--mono); display: inline-block; padding: 2px 5px; border: 1px solid #c8c8ad; border-bottom-width: 2px; border-radius: 3px; background: #ecebd7; color: #6c775a; }
.controls-note { font-size: 10px; color: #9c9d86; margin-left: auto; }
.mobile-controls { display: none; }

/* The learning loop: one position, one short clue, one action. */
.memory-card { background: #f4eedb; border: 1px solid #faf6e5; border-radius: 8px; padding: 20px 23px; }
.memory-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.memory-heading h3 { font: 500 23px/1.2 var(--serif); letter-spacing: -.3px; margin: 4px 0 0; color: #354b35; }
.quiet-button { background: transparent; color: #6a7a58; border: 1px solid #c6cfad; padding: 8px 11px; border-radius: 4px; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.quiet-button:hover { background: #e4e8d2; border-color: #a6b98d; }
.sequence-row { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.2fr) 22px minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 17px; }
.sequence-step { text-align: center; padding: 10px 7px; min-height: 65px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 1px solid #d6d8ba; background: #edecd5; border-radius: 5px; }
.sequence-step > span { font: 700 7px var(--mono); letter-spacing: 1px; color: #919276; }
.sequence-step > strong { color: #7c8668; font: 500 17px/1.2 var(--serif); overflow-wrap: anywhere; }
.sequence-current { background: #3f5c40; border-color: #3f5c40; box-shadow: 0 3px 0 #2a442820; }
.sequence-current > span { color: #c4cea0; }
.sequence-current > strong { color: #f4edce; font-size: 19px; }
.sequence-arrow { color: #afaf89; font: 20px var(--serif); text-align: center; }
.memory-clue { color: #7b8169; font-size: 12px; margin: 13px 0 0; line-height: 1.65; }
.memory-actions { margin-top: 15px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.primary-btn, .secondary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 39px; border: 1px solid transparent; border-radius: 5px; padding: 10px 15px; font: 600 11px var(--sans); text-align: center; text-decoration: none; }
.primary-btn { background: #426241; border-color: #385738; color: #fbf2d9; box-shadow: 0 2px 0 #304a3433; }
.primary-btn:hover:not(:disabled) { background: #527b4e; border-color: #527b4e; }
.primary-btn > span { font-size: 16px; line-height: 1; }
.secondary-btn { background: #eeead5; border-color: #ced0b3; color: #727d5e; }
.secondary-btn:hover:not(:disabled) { background: #e2e7cc; border-color: #acbc90; }

/* The single optional delivery stays secondary. */
.courier-note { display: flex; align-items: center; gap: 14px; padding: 16px 19px; border: 1px solid #8ba17950; border-radius: 7px; background: #c3cf9620; color: #d4debb; }
.courier-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; font-size: 21px; color: #cbb888; border: 1px solid #b7c38c53; border-radius: 6px; background: #afbf7e15; }
.courier-note > div:nth-child(2) { min-width: 0; flex: 1; }
.courier-note .eyebrow { color: #92aa7d; font-size: 7px; }
.courier-note h3 { margin: 3px 0; color: #e4e8cf; font: 500 16px/1.2 var(--serif); }
.courier-note p { margin: 0; font-size: 11px; color: #a4b695; line-height: 1.5; }
.courier-note .quiet-button { color: #d1d9b6; border-color: #9fb38550; background: #a8bd8710; font-size: 10px; }
.courier-note .quiet-button:hover { background: #c9d7a323; }
.journey-atlas { border: 1px solid #8ba1793d; border-radius: 6px; background: #a8bb8110; color: #c1cfb1; }
.journey-atlas summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 17px; font-size: 11px; color: #becaab; user-select: none; }
.journey-atlas summary::-webkit-details-marker { display: none; }
.journey-atlas summary > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.atlas-glyph { color: #c4b181; font: 18px/1 var(--serif); }
.atlas-summary-hint { color: #7f9973; font-size: 10px; display: inline-flex; align-items: center; gap: 13px; }
.atlas-summary-hint > span { font-size: 17px; }
.journey-atlas[open] .atlas-summary-hint > span { transform: rotate(180deg); }
.atlas-body { border-top: 1px solid #82956633; padding: 0 17px 16px; }
.atlas-body > p { color: #8fa37d; margin: 12px 0; font-size: 11px; }
.zone-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.zone-chip { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; background: #d1dcb71a; color: #b1c199; border: 1px solid #91a3784a; border-radius: 4px; padding: 10px 4px; min-height: 69px; min-width: 0; font: 9px/1.4 var(--mono); position: relative; text-align: center; }
.zone-chip > span { font: 8px var(--mono); opacity: .75; }
.zone-chip > strong { font: 500 14px/1.25 var(--serif); color: inherit; overflow-wrap: anywhere; }
.zone-chip > small { font: 7px var(--mono); opacity: .78; }
.zone-chip:hover { background: #c9d6a82e; border-color: #b4c18a8c; }
.zone-chip.active { background: #d6c493; color: #3d5035; border-color: #e6d8aa; }
.zone-chip.completed:not(.active),.zone-chip.learned:not(.active) { background: #82975f40; border-color: #a0b97b; color: #d5e6b6; }
.chip-title { display: block; font-size: 9px; }
.chip-symbol { display: block; font-size: 13px; margin-bottom: 3px; }
.chip-done { position: absolute; top: 3px; right: 5px; color: #d6e8b4; font-size: 8px; }
.zone-chip.active .chip-done { color: #55784a; }

/* The right rail connects world-space to an anatomical schematic and a real CT. */
.minimap-card { background: #eae8d2; border: 1px solid #f7f1dd; border-radius: 9px; padding: 16px 15px 12px; box-shadow: 0 9px 24px #0e211724; }
.map-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 14px; }
.map-heading .eyebrow { font-size: 7px; color: #8e9276; }
.map-heading h3 { margin: 5px 0 0; font: 500 19px/1.1 var(--serif); letter-spacing: -.2px; color: #3b553e; }
.live-mark { width: 6px; height: 6px; border-radius: 50%; background: #93aa77; box-shadow: 0 0 0 4px #94b27a20; margin-right: 3px; flex-shrink: 0; }
.minimap-frame { background: #f4efdf; border: 1px solid #d0d3b9; border-radius: 6px; overflow: hidden; aspect-ratio: 8 / 9; }
.minimap-frame canvas { width: 100%; height: 100%; display: block; }
.map-current { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.map-dot { width: 7px; height: 7px; background: #cbab6d; box-shadow: 0 0 0 4px #ccb57b25; border-radius: 50%; margin: 0 4px; flex: 0 0 7px; }
.map-current > div > span { font: 700 7px var(--mono); color: #9a9e80; display: block; letter-spacing: .8px; }
.map-current strong { font-size: 12px; font-weight: 600; display: block; line-height: 1.3; margin-top: 3px; color: #56714a; }
.map-disclaimer { font-size: 9px; color: #98a088; margin: 10px 0 0; line-height: 1.5; }
.ct-card { padding: 15px; border: 1px solid #8ba17940; background: #a1b18a12; border-radius: 8px; }
.ct-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 13px; }
.ct-heading .eyebrow { color: #8da17e; font-size: 7px; }
.ct-heading h3 { margin: 4px 0 0; font: 400 18px var(--serif); color: #d1d9ba; }
.ct-modality { padding: 4px 5px; border: 1px solid #a9b8894a; font: 8px var(--mono); color: #abbc92; border-radius: 3px; }
.ct-photo-wrap { position: relative; aspect-ratio: 505 / 672; overflow: hidden; background: #050908; border-radius: 5px; border: 1px solid #54664b; }
.ct-photo { display: block; position: absolute; inset: 0 auto 0 0; height: 100%; width: 156.4356%; max-width: none; object-fit: fill; filter: contrast(1.04) brightness(.93); }
.ct-photo-wrap::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 22px #040a0680; pointer-events: none; z-index: 1; }
.ct-orientation { position: absolute; top: 9px; z-index: 2; font: 700 10px var(--mono); color: #dce5cf; text-shadow: 0 1px 4px #000; }
.ct-right { left: 10px; }.ct-left { right: 10px; }
.ct-marker { position: absolute; z-index: 3; left: 62%; top: 27%; width: 22px; height: 22px; border: 1px solid #eed59a; border-radius: 50%; transform: translate(-50%, -50%); transition: left .16s linear, top .16s linear; box-shadow: 0 0 15px #e9cb7580; pointer-events: none; }
.ct-marker::before,.ct-marker::after { content: ''; position: absolute; background: #fae8b3; }
.ct-marker::before { width: 1px; height: 30px; left: 9.5px; top: -5px; }
.ct-marker::after { width: 30px; height: 1px; left: -5px; top: 9.5px; }
.ct-marker > span { position: absolute; inset: 7px; border-radius: 50%; background: #fff1be; box-shadow: 0 0 6px 3px #f7d88480; }
.ct-image-label { position: absolute; z-index: 2; bottom: 10px; left: 9px; right: 9px; padding: 6px 7px; border-radius: 3px; background: #13291ed9; color: #e7e1c2; font: 9px var(--mono); text-align: center; border: 1px solid #b0bf8e52; }
.ct-disclaimer { color: #95a888; font-size: 9px; line-height: 1.55; margin: 12px 0 8px; }
.ct-disclaimer strong { color: #c4b989; font-weight: 500; }
.ct-source { display: inline-block; color: #7f9677; font: 7px/1.5 var(--mono); text-decoration-color: #7f96774a; text-underline-offset: 3px; }
.ct-source:hover { color: #c5cfac; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #70876b; padding: 24px 2px 28px; font-size: 9px; }
.footer > span:first-child { color: #94a184; }.footer > span:first-child > span { padding: 0 7px; color: #c0ae7a; }

/* Focused conversation / recall overlays. */
.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 22px; background: #0b1c16ce; backdrop-filter: blur(6px); overflow-y: auto; }
.welcome-card { width: min(100%, 505px); max-height: calc(100dvh - 44px); overflow: auto; position: relative; background: #f3eedb; border: 1px solid #d6d4b4; border-radius: 12px; padding: 32px 37px 28px; box-shadow: 0 24px 90px #07120c66; }
.welcome-symbol { position: absolute; right: 29px; top: 23px; color: #ad9b63; font-size: 39px; line-height: 1; }
.welcome-card > .eyebrow { font-size: 8px; color: #8b916c; }
.welcome-card h2 { color: #3e563b; font: 500 44px/1.07 var(--serif); letter-spacing: -1.1px; margin: 20px 0 16px; }
.welcome-card h2 em { font-weight: 400; color: #9a8253; }
.welcome-card > p { font-size: 13px; color: #818870; line-height: 1.65; margin: 0 0 18px; }
.welcome-route { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #678056; padding: 13px 0; border-block: 1px solid #d8d9bd; font-size: 10px; }
.welcome-route b { color: #b2b28d; font-weight: 400; }
.welcome-controls { display: flex; flex-direction: column; gap: 12px; margin: 19px 0 22px; color: #8a9077; font-size: 11px; }
.welcome-controls > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.welcome-controls > div > span { margin-left: 3px; margin-right: 7px; }
.welcome-controls kbd { padding: 4px 6px; color: #6e7b56; font-size: 9px; background: #e9ebd2; }
.welcome-start { width: 100%; justify-content: space-between; font-size: 12px; min-height: 45px; padding-inline: 17px; }
.welcome-card > small { display: block; font-size: 9px; color: #9b9e85; text-align: center; margin-top: 15px; }
.dialog-card { width: min(100%, 570px); max-height: calc(100dvh - 44px); overflow-y: auto; position: relative; background: #f4eedb; border: 1px solid #d6d3b3; padding: 30px; border-radius: 10px; box-shadow: 0 20px 70px #07120c70; }
.close-btn { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; padding: 0; width: 29px; height: 29px; background: #e8e7cd; border: 1px solid #cdd2b2; border-radius: 5px; color: #6b7c54; font: 22px/1 var(--sans); }
.close-btn:hover { background: #dfe6c5; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 33px; }
.dialog-eyebrow { color: #95906a; font: 700 8px/1.5 var(--mono); letter-spacing: 1px; }
.dialog-index { font: 9px var(--mono); color: #8f9c78; white-space: nowrap; }
.dialog-title { color: #3d573c; font: 500 31px/1.15 var(--serif); letter-spacing: -.4px; margin: 19px 0 13px; }
.dialog-lead { font-size: 13px; color: #7b846c; line-height: 1.7; margin: 0 0 18px; }
.fact-box { background: #e5e8cf; border: 1px solid #cfd7b5; border-left: 3px solid #91a470; padding: 15px; border-radius: 4px; color: #526c43; font-size: 14px; line-height: 1.7; margin: 18px 0; }
.fact-box strong { display: block; color: #83966b; font: 700 8px var(--mono); letter-spacing: 1px; margin-bottom: 8px; }
.memory-tip { color: #919068; font-size: 11px; line-height: 1.6; }
.memory-tip strong { font-size: 9px; letter-spacing: .5px; color: #758a5d; }
.memory-chain { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px; margin: 20px 0 14px; border: 1px solid #cfd5b7; border-radius: 6px; background: #e9ead2; }
.memory-chain > span, .memory-chain > strong { flex: 1; min-width: 0; text-align: center; font: 500 17px/1.3 var(--serif); color: #5d6c4b; background: #f5f1df; border: 1px solid #d3d7bb; border-radius: 4px; padding: 10px 8px; overflow-wrap: anywhere; }
.memory-chain > strong { background: #426241; border-color: #426241; color: #f6edcd; }
.memory-chain > b { flex: 0 0 auto; color: #929d71; font: 400 17px/1 var(--serif); }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 23px; }
.dialog-actions .primary-btn { flex: 1; }
.question { font: 600 19px/1.45 var(--sans); color: #425c3d; margin: 18px 0; }
.choice-list { display: flex; flex-direction: column; gap: 9px; }
.choice { width: 100%; display: flex; align-items: center; gap: 11px; min-height: 51px; padding: 11px 12px; border: 1px solid #d0d5b6; background: #faf7e9; border-radius: 5px; text-align: left; color: #60734d; font-size: 12px; line-height: 1.5; }
.choice:hover:not(:disabled) { background: #e6eccf; border-color: #a9bb85; }
.choice-key { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; background: #ebe9ce; color: #91a073; border-radius: 4px; border: 1px solid #d4d7b5; font: 9px var(--mono); }
.choice.wrong { background: #f2e0cc; border-color: #cba58a; }.choice.correct { background: #e1ecd2; border-color: #8baa72; }.choice:disabled { cursor: default; }
.answer-feedback { background: #eee0c9; color: #947251; border-left: 3px solid #c3a578; font-size: 12px; line-height: 1.6; border-radius: 3px; padding: 12px 14px; margin-top: 15px; }
.answer-feedback strong { display: block; margin-bottom: 3px; color: #8a6a47; }
.answer-feedback.success { background: #e4ebcd; color: #5c784a; border-color: #9ab77a; }.answer-feedback.success strong { color: #547541; }
.result-art { font-size: 40px; text-align: center; color: #b8a06a; margin: 17px 0 6px; }
.result-title { font: 500 30px/1.2 var(--serif); color: #46603d; text-align: center; margin: 7px 0 12px; }
.result-sub { font-size: 13px; line-height: 1.7; text-align: center; color: #7b896b; }
.xp-pill,.result-tag { display: table; margin: 15px auto; padding: 7px 10px; font: 8px var(--mono); letter-spacing: .7px; background: #e1e6c3; color: #7b915c; border: 1px solid #c5d0a4; border-radius: 4px; }
.letter-paper { border: 1px solid #d8c9a7; padding: 20px; border-radius: 4px; background: #fcf6e4; margin: 17px 0; color: #737551; font: 16px/1.75 var(--serif); }
.letter-paper p { margin: 12px 0; }.letter-stamp { font: 700 8px var(--mono); letter-spacing: 1.5px; color: #a18e60; border-bottom: 1px solid #e2d6b7; padding-bottom: 9px; }.letter-signature { display: block; color: #a18c61; text-align: right; font: italic 14px var(--serif); }.letter-destination { color: #8f9977; font-size: 10px; line-height: 1.6; }
.letter-paper > span:last-child { display: block; margin-top: 15px; text-align: right; color: #8a7650; font: italic 14px var(--serif); }
.npc-portrait { background: #e1e7c8; border: 1px solid #c5d0ab; border-radius: 5px; padding: 9px 12px; color: #77915b; margin-top: 17px; font: 700 10px var(--mono); width: fit-content; }.npc-portrait > span { margin-left: 5px; }
.courier-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #e7e7cb; border-radius: 4px; border: 1px solid #d3d5b4; padding: 13px; }.courier-route > span { display: flex; flex-direction: column; color: #9ca17d; font: 8px/1.5 var(--mono); }.courier-route strong { color: #657e4b; font-size: 11px; margin-top: 4px; }.courier-route > b { font-weight: 400; color: #9ca77a; }
.toast { position: fixed; z-index: 50; bottom: 24px; left: 50%; max-width: min(510px, calc(100vw - 28px)); transform: translate(-50%, 15px); opacity: 0; pointer-events: none; padding: 12px 17px; background: #ecedcf; border: 1px solid #adbb8a; border-radius: 6px; box-shadow: 0 6px 30px #10221450; color: #4f7040; font: 500 12px/1.5 var(--sans); text-align: center; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Small functional labels remain quiet but readable on parchment. */
.game-heading .eyebrow, .memory-heading .eyebrow, .eyebrow { color: #5d6c4b; }
.memory-clue, .dialog-lead, .result-sub { color: #606e50; }
.sequence-step:not(.sequence-current) > strong, .sequence-step:not(.sequence-current) > span { color: #5f6c4f; }
.quiet-button, .secondary-btn, .control-pair, .controls-note, .saved-note, .memory-tip { color: #5f6c4f; }
.map-heading .eyebrow, .map-disclaimer, .map-current > div > span { color: #586c48; }
.dialog-eyebrow, .dialog-index { color: #66714e; }
.result-tag { font-size: 9px; color: #5f7147; }

@media (min-width: 1600px) {
  .main-layout { grid-template-columns: minmax(0, 1fr) 315px; }
  .app-shell { width: min(1540px, calc(100% - 90px)); }
  .game-heading { min-height: 69px; }.game-controls { min-height: 47px; }
}
@media (max-width: 1200px) {
  .app-shell { width: calc(100% - 40px); }.main-layout { grid-template-columns: minmax(0, 1fr) 262px; gap: 17px; }
  .intro { padding-block: 22px; }.game-controls { gap: 13px; }.controls-note { display: none; }
  .memory-card { padding: 18px; }.memory-heading h3 { font-size: 22px; }.memory-heading .eyebrow { font-size: 7px; }
  .minimap-card { padding: 14px 12px 11px; }.map-heading h3 { font-size: 17px; }.ct-card { padding: 13px; }
  .saved-note { font-size: 8px; }.game-heading { padding-inline: 4px; }.region-heading { gap: 9px; }
}
@media (max-width: 960px) {
  .app-shell { width: calc(100% - 32px); }.main-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 14px; }
  .intro h1 { font-size: 31px; }.game-panel { padding: 9px 9px 0; }.game-heading h2 { font-size: 20px; }.saved-note { display: none; }
  .region-number { width: 33px; height: 33px; flex-basis: 33px; font-size: 19px; }.game-heading .eyebrow { font-size: 7px; }
  .memory-heading { align-items: flex-start; }.memory-heading .quiet-button { font-size: 0; gap: 0; padding: 7px 10px; }.memory-heading .quiet-button > span { font-size: 17px; }
  .sequence-row { gap: 4px; grid-template-columns: minmax(0, 1fr) 15px minmax(0, 1.2fr) 15px minmax(0, 1fr); }
  .sequence-step > strong { font-size: 15px; }.sequence-current > strong { font-size: 17px; }.sequence-step > span { font-size: 6px; letter-spacing: .5px; }.sequence-step { padding-inline: 4px; }
  .memory-clue { font-size: 11px; }.courier-note { padding: 13px; gap: 10px; flex-wrap: wrap; }.courier-note .quiet-button { margin-left: 48px; }.courier-note p { font-size: 10px; }
  .zone-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }.atlas-summary-hint { font-size: 9px; }
  .minimap-card { padding: 13px 10px 11px; }.map-heading h3 { font-size: 16px; }.map-heading .eyebrow { font-size: 6px; }.ct-heading h3 { font-size: 16px; }.map-disclaimer, .ct-disclaimer { font-size: 8px; }.footer { font-size: 8px; }
}
@media (max-width: 760px) {
  .app-shell { width: calc(100% - 28px); }.topbar { height: 65px; }.chapter-label { display: none; }
  .brand-name { font-size: 15px; }.brand-name small { font-size: 6px; letter-spacing: .9px; }.brand-mark { width: 32px; height: 32px; padding: 7px; }
  .intro { padding: 20px 0; gap: 14px; }.intro h1 { font-size: 29px; }.intro p { font-size: 10px; }.learning-progress { width: 132px; min-width: 132px; }.progress-label { font-size: 6px; letter-spacing: .5px; }.progress-number { font-size: 9px; }.progress-number strong { font-size: 17px; }
  .main-layout { grid-template-columns: 1fr; gap: 16px; }.game-heading { min-height: 60px; }.game-heading h2 { font-size: 22px; }.game-heading .eyebrow { font-size: 8px; }.saved-note { display: flex; font-size: 9px; }
  .game-controls { gap: 20px; }.controls-note { display: block; }
  .memory-heading .quiet-button { font-size: 10px; padding: 8px 10px; gap: 5px; }.memory-heading .quiet-button > span { font-size: 13px; }
  .sequence-row { gap: 9px; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1.2fr) 20px minmax(0, 1fr); }.sequence-step > span { font-size: 7px; }.sequence-step > strong { font-size: 17px; }.sequence-current > strong { font-size: 19px; }.memory-clue { font-size: 12px; }
  .courier-note { flex-wrap: nowrap; }.courier-note .quiet-button { margin-left: 0; }
  .anatomy-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }.minimap-card { padding: 14px; }.map-heading h3 { font-size: 17px; }.map-heading .eyebrow { font-size: 7px; }.ct-card { padding: 14px; }.ct-photo-wrap { max-width: 100%; }.ct-heading h3 { font-size: 17px; }.ct-disclaimer { font-size: 8px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 20px; }.zone-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .app-shell { width: calc(100% - 20px); }.topbar { height: 60px; gap: 10px; }.brand { gap: 9px; }.brand-name { font-size: 13px; letter-spacing: 1px; }.brand-name small { font-size: 5px; letter-spacing: .65px; }.brand-mark { width: 28px; height: 28px; padding: 6px; }
  .help-button { font-size: 9px; gap: 5px; padding: 7px; }.help-button > span { width: 14px; height: 14px; font-size: 8px; }
  .intro { gap: 11px; padding: 19px 2px 18px; align-items: center; }.intro h1 { font-size: 27px; margin-bottom: 4px; }.intro p { max-width: 198px; font-size: 9px; }
  .learning-progress { width: 92px; min-width: 92px; }.learning-progress > div:first-child { gap: 3px; flex-direction: column; align-items: flex-end; margin-bottom: 5px; }.progress-label { font-size: 5px; letter-spacing: .4px; }.progress-number { font-size: 8px; }.progress-number strong { font-size: 16px; }
  .game-panel { border-radius: 7px; padding: 7px 7px 0; }.game-heading { min-height: 55px; padding: 3px 3px 10px; }.region-heading { gap: 8px; }.region-number { width: 30px; height: 30px; flex-basis: 30px; font-size: 17px; }.game-heading h2 { font-size: 20px; }.game-heading .eyebrow { font-size: 6px; letter-spacing: 1px; }.saved-note { display: none; }
  .game-frame { border-width: 1px; border-radius: 4px; }.zone-badge { top: 8px; left: 8px; font-size: 6px; padding: 5px 6px; gap: 5px; letter-spacing: .5px; }.zone-badge > span:first-child { font-size: 6px; }.interaction-bubble { bottom: 10px; gap: 6px; padding: 4px 8px 4px 4px; font-size: 8px; border-radius: 4px; }.interaction-bubble kbd { width: 20px; height: 19px; font-size: 10px; }
  .game-controls { display: none; }.mobile-controls { display: flex; justify-content: space-between; gap: 10px; padding: 11px 3px; }.travel-buttons,.action-buttons { display: flex; gap: 7px; }
  .mobile-controls button { touch-action: none; width: 53px; min-height: 46px; padding: 4px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; background: #e3e8cb; color: #6d8254; border: 1px solid #b6c49a; border-bottom-width: 2px; border-radius: 5px; user-select: none; -webkit-user-select: none; }
  .mobile-controls button > span { font: 18px/1.1 var(--mono); }.mobile-controls button > small { font: 6px var(--mono); letter-spacing: .4px; }.mobile-controls button:active,.mobile-controls button.pressed { background: #cad9ad; }
  .mobile-controls .touch-interact { background: #435f3e; border-color: #344d31; color: #f5eccf; width: 63px; }.mobile-controls .touch-interact:active { background: #54784b; }
  .journey-column { gap: 11px; }.memory-card { padding: 16px 13px; border-radius: 6px; }.memory-heading { align-items: center; gap: 8px; }.memory-heading h3 { font-size: 21px; }.memory-heading .eyebrow { font-size: 6px; letter-spacing: .7px; }.memory-heading .quiet-button { font-size: 0; padding: 7px 9px; gap: 0; }.memory-heading .quiet-button > span { font-size: 16px; }
  .sequence-row { margin-top: 14px; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1.2fr) 12px minmax(0, 1fr); gap: 3px; }.sequence-step { min-height: 60px; padding: 8px 3px; }.sequence-step > span { font-size: 5px; letter-spacing: .6px; }.sequence-step > strong { font-size: 14px; }.sequence-current > strong { font-size: 16px; }.sequence-arrow { font-size: 15px; }
  .memory-clue { font-size: 11px; line-height: 1.6; margin-top: 11px; }.memory-actions { gap: 7px; margin-top: 13px; }.memory-actions .primary-btn,.memory-actions .secondary-btn { flex: 1; font-size: 10px; gap: 7px; padding: 9px; min-height: 38px; }.memory-actions .primary-btn > span { font-size: 14px; }
  .courier-note { padding: 13px; gap: 10px; flex-wrap: wrap; border-radius: 6px; }.courier-note .eyebrow { font-size: 6px; letter-spacing: .7px; }.courier-note h3 { font-size: 16px; }.courier-note p { font-size: 10px; }.courier-note .quiet-button { margin-left: 48px; font-size: 9px; padding: 7px 9px; }.courier-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 19px; }
  .journey-atlas summary { padding: 12px 13px; font-size: 10px; gap: 8px; }.atlas-summary-hint { font-size: 8px; gap: 5px; }.atlas-body { padding: 0 12px 12px; }.atlas-body p { font-size: 10px; }.zone-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }.zone-chip { min-height: 51px; }
  .anatomy-column { gap: 10px; }.minimap-card { padding: 12px 9px 10px; border-radius: 6px; }.map-heading { margin-bottom: 10px; gap: 3px; }.map-heading h3 { font-size: 15px; line-height: 1.1; margin-top: 4px; }.map-heading .eyebrow { font-size: 5px; letter-spacing: .7px; }.live-mark { width: 4px; height: 4px; box-shadow: 0 0 0 3px #94b27a20; }.minimap-frame { border-radius: 4px; }
  .map-current { gap: 6px; margin-top: 10px; }.map-current > div > span { font-size: 5px; letter-spacing: .6px; }.map-current strong { font-size: 9px; }.map-dot { width: 5px; height: 5px; flex-basis: 5px; margin: 0 3px; box-shadow: 0 0 0 3px #ccb57b25; }.map-disclaimer { font-size: 7px; line-height: 1.4; margin-top: 9px; }
  .ct-card { border-radius: 6px; padding: 12px 9px 10px; }.ct-heading { gap: 3px; margin-bottom: 10px; }.ct-heading .eyebrow { font-size: 5px; letter-spacing: .5px; }.ct-heading h3 { font-size: 15px; line-height: 1.1; margin-top: 4px; }.ct-modality { font-size: 6px; padding: 3px; }.ct-image-label { font-size: 7px; bottom: 6px; left: 5px; right: 5px; padding: 4px; }
  .ct-orientation { font-size: 8px; top: 7px; }.ct-right { left: 7px; }.ct-left { right: 7px; }.ct-disclaimer { font-size: 7px; margin: 8px 0 6px; line-height: 1.5; }.ct-source { font-size: 6px; }.ct-marker { width: 17px; height: 17px; }.ct-marker::before { left: 7px; height: 25px; top: -5px; }.ct-marker::after { top: 7px; width: 25px; left: -5px; }.ct-marker > span { inset: 5px; }
  .footer { padding: 17px 2px 23px; font-size: 7px; }.modal-backdrop { padding: 15px; }.welcome-card { border-radius: 9px; padding: 28px 23px 24px; max-height: calc(100dvh - 30px); }.welcome-card h2 { font-size: 39px; margin-top: 18px; }.welcome-card > .eyebrow { font-size: 7px; }.welcome-symbol { top: 20px; right: 19px; font-size: 32px; }.welcome-card > p { font-size: 12px; }.welcome-route { font-size: 9px; gap: 6px; }.welcome-controls { font-size: 10px; }.welcome-controls kbd { font-size: 8px; }.welcome-card > small { font-size: 8px; }
  .dialog-card { padding: 26px 19px 21px; border-radius: 8px; max-height: calc(100dvh - 30px); }.dialog-title { font-size: 27px; }.dialog-top { gap: 6px; }.dialog-eyebrow { font-size: 7px; letter-spacing: .6px; }.dialog-index { font-size: 8px; }.dialog-lead { font-size: 12px; }.fact-box { font-size: 13px; padding: 13px; }.question { font-size: 17px; }.choice { font-size: 11px; }.dialog-actions { gap: 7px; }.dialog-actions .primary-btn,.dialog-actions .secondary-btn { font-size: 10px; padding: 9px 11px; }.letter-paper { font-size: 15px; padding: 16px; }.toast { bottom: 15px; font-size: 11px; padding: 11px 13px; }
  .memory-chain { padding: 9px; gap: 6px; }.memory-chain > span,.memory-chain > strong { padding: 9px 5px; font-size: 14px; }.memory-chain > b { font-size: 14px; }
}
@media (pointer: coarse) and (min-width: 541px) {
  .game-controls { display: none; }.mobile-controls { display: flex; justify-content: space-between; align-items: center; padding: 11px 7px; gap: 10px; }.travel-buttons,.action-buttons { display: flex; gap: 8px; }
  .mobile-controls button { touch-action: none; width: 67px; min-height: 49px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; background: #e1e8cb; border: 1px solid #b4c497; border-bottom-width: 2px; color: #6d8254; border-radius: 6px; user-select: none; }
  .mobile-controls button > span { font: 19px/1.1 var(--mono); }.mobile-controls button small { font: 7px var(--mono); }.mobile-controls .touch-interact { background: #435f3e; border-color: #344d31; color: #f5eccf; width: 78px; }.mobile-controls button.pressed { background: #c4d5a6; }
}
@media (max-width: 480px) {
  .anatomy-column { grid-template-columns: 1fr; gap: 13px; }
  .minimap-card, .ct-card { padding: 15px; }
  .map-heading h3, .ct-heading h3 { font-size: 20px; }
  .map-heading .eyebrow, .ct-heading .eyebrow { font-size: 7px; }
  .minimap-frame { max-width: 320px; margin-inline: auto; }
  .map-current > div > span { font-size: 7px; }.map-current strong { font-size: 12px; }
  .map-disclaimer, .ct-disclaimer { font-size: 9px; }.ct-source { font-size: 7px; }
  .ct-photo-wrap { max-width: 270px; margin-inline: auto; }.ct-image-label { font-size: 9px; }
  .memory-actions .primary-btn, .memory-actions .secondary-btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }

/* V5 — a quick visual atlas, with the illustrated world as its calm backdrop. */
.revision-v5 .app-shell { width: min(1320px, calc(100% - 48px)); }
.revision-v5 .topbar { height: 60px; }
.revision-v5 .intro { gap: 24px; padding: 18px 0 19px; }
.revision-v5 .intro h1 { font-size: clamp(25px, 2.5vw, 32px); margin-bottom: 4px; }
.revision-v5 .intro p { font-size: 11px; }
.revision-v5 .learning-progress { width: 178px; min-width: 156px; }
.revision-v5 .main-layout { grid-template-columns: minmax(0, 1fr) 286px; gap: 18px; }
.revision-v5 .journey-column { gap: 12px; }
.revision-v5 .anatomy-column { gap: 14px; }
.intro-actions { display: flex; align-items: center; gap: 9px; }
.intro-actions #flashBtn { min-height: 44px; padding: 9px 14px; gap: 12px; color: #2f452f; background: #d9c38b; border-color: #e8d5a4; font-size: 11px; white-space: nowrap; box-shadow: 0 2px 7px #07160e25; }
.intro-actions #flashBtn:hover { background: #ead8a7; border-color: #f0e2bd; }
.mode-switch { display: inline-flex; padding: 4px; border: 1px solid #9cae7a45; border-radius: 7px; background: #101f1a66; gap: 3px; }
.mode-switch button { border: 1px solid transparent; border-radius: 4px; background: transparent; color: #bac9a8; font: 600 11px var(--sans); min-height: 35px; padding: 7px 16px; white-space: nowrap; }
.mode-switch button:hover { background: #bbcc9730; color: #edf0d7; }
.mode-switch button.active, .mode-switch button[aria-pressed="true"] { background: #d5c292; color: #30452f; border-color: #e5d4a6; box-shadow: 0 1px 3px #08171044; }
.revision-v5 .game-panel { padding: 10px 10px 0; }
.revision-v5 .game-heading { min-height: 57px; padding: 1px 6px 11px; gap: 13px; }
.revision-v5 .game-heading h2 { font-size: 22px; }
.view-switch { display: inline-flex; align-items: center; gap: 3px; background: #e5e5cd; border: 1px solid #d3d2b6; border-radius: 5px; padding: 3px; }
.view-switch button { min-height: 30px; border: 1px solid transparent; border-radius: 3px; padding: 5px 10px; color: #657251; background: transparent; font-size: 10px; white-space: nowrap; }
.view-switch button:hover { background: #d6dfbd; }
.view-switch button.active, .view-switch button[aria-pressed="true"] { border-color: #f8f5de; background: #f8f4e3; color: #3f593b; box-shadow: 0 1px 4px #424f3012; }
.navigation-bar { display: flex; align-items: center; gap: 15px; padding: 10px 5px; min-height: 78px; }
.direction-pad { display: grid; grid-template-columns: repeat(3, 30px); grid-template-rows: repeat(2, 26px); gap: 3px; flex: 0 0 auto; }
.direction-pad [data-dir="up"] { grid-column: 2; grid-row: 1; }
.direction-pad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.direction-pad [data-dir="down"] { grid-column: 2; grid-row: 2; }
.direction-pad [data-dir="right"] { grid-column: 3; grid-row: 2; }
.direction-pad .pad-center { display: none; }
.direction-pad button { display: grid; place-items: center; border: 1px solid #b5c49b; border-bottom-width: 2px; border-radius: 4px; background: #e3e8cd; color: #4c683f; font: 18px/1 var(--mono); padding: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.direction-pad button:hover { background: #d5e1bd; border-color: #9db77d; }
.direction-pad button:active,.direction-pad button.pressed { background: #bfcfa3; color: #304e2b; }
.navigation-copy { flex: 1; min-width: 0; }
.navigation-copy > p { font-size: 11px; line-height: 1.45; color: #536847; margin: 0 0 5px; max-width: 490px; }
.navigation-copy > span { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: 9px; line-height: 1.4; color: #6b765b; }
.navigation-copy kbd { font-size: 7px; padding: 1px 3px; }
.navigation-divider { margin-inline: 4px; color: #a2a686; }
.compact-actions { display: flex; gap: 5px; flex-shrink: 0; }
.compact-actions button { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 2px 4px; align-items: center; justify-content: center; min-height: 45px; min-width: 61px; padding: 6px 8px; background: #e7e9d0; border: 1px solid #c4ceab; border-radius: 4px; color: #556e46; user-select: none; -webkit-user-select: none; touch-action: none; }
.compact-actions button > span { font: 17px/1 var(--serif); }
.compact-actions button > small { font: 600 9px var(--sans); }
.compact-actions button > kbd { grid-column: 1 / -1; justify-self: center; font-size: 6px; padding: 1px 3px; }
.compact-actions button:hover,.compact-actions button:active,.compact-actions button.pressed { background: #d4dfba; border-color: #aabd8d; }
.compact-actions #interactBtn { color: #f3ecd3; background: #486341; border-color: #3c5635; }
.compact-actions #interactBtn kbd { color: #f1e5ba; background: #395332; border-color: #8a9c68; }
.compact-actions #interactBtn:hover { background: #55774a; }

/* Always visible atlas: choose by place; previous/next follow the bowel sequence. */
.revision-v5 .journey-atlas { padding: 12px 13px 11px; min-width: 0; background: #b4c58d12; border-color: #9eb58445; }
.atlas-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.atlas-heading .eyebrow { color: #a3b58f; font-size: 6px; letter-spacing: 1px; }
.atlas-heading h3 { color: #e1e5ce; font: 400 17px/1.2 var(--serif); margin: 3px 0 0; }
.anatomical-navigation { display: flex; gap: 5px; align-items: center; }
.anatomical-navigation .quiet-button { min-height: 31px; padding: 6px 8px; color: #d3ddc2; border-color: #9bb18255; background: #afc08812; font-size: 9px; gap: 6px; }
.anatomical-navigation .quiet-button:hover { background: #c7d6a82b; }
.appendix-shortcut { min-height: 31px; background: #c3a96b22; border: 1px solid #baa0676b; border-radius: 4px; padding: 6px 9px; color: #e6d4a2; font-size: 9px; white-space: nowrap; }
.appendix-shortcut:hover { background: #d2b97540; }
.appendix-shortcut > span { margin-left: 4px; }
.revision-v5 .zone-strip { display: flex; flex-wrap: nowrap; gap: 5px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #9aaf7870 transparent; padding: 1px 1px 6px; max-width: 100%; }
.revision-v5 .zone-chip { flex: 0 0 68px; gap: 2px; min-height: 54px; padding: 6px 4px; border-radius: 4px; }
.revision-v5 .zone-chip > span { font-size: 7px; }
.revision-v5 .zone-chip > strong { font-size: 12px; line-height: 1.15; }
.revision-v5 .zone-chip > small { font-size: 6px; }
.revision-v5 .zone-chip:focus-visible { outline-offset: -2px; }
.revision-v5 .memory-card { padding: 16px 19px; }
.revision-v5 .memory-heading h3 { font-size: 21px; margin-top: 3px; }
.revision-v5 .memory-heading .eyebrow { font-size: 7px; letter-spacing: 1px; }
.revision-v5 .sequence-row { margin-top: 13px; }
.revision-v5 .sequence-step { min-height: 57px; padding-block: 8px; }
.revision-v5 .memory-actions { margin-top: 12px; gap: 7px; }
.revision-v5 .memory-actions .saved-note { margin-right: auto; display: flex; font-size: 8px; white-space: normal; }
.revision-v5 .memory-actions .primary-btn,.revision-v5 .memory-actions .secondary-btn { min-height: 36px; padding: 8px 12px; gap: 10px; font-size: 10px; }
.appendix-note { display: flex; align-items: center; gap: 10px; border: 1px solid #c6ccaa; background: #e9e9ce; border-radius: 5px; padding: 10px 12px; margin-top: 13px; }
.appendix-note > p { flex: 1; margin: 0; font-size: 11px; color: #586b45; line-height: 1.5; }
.branch-symbol { color: #8f9d69; font: 23px/1 var(--serif); }
.text-button { border: 0; padding: 4px 2px; background: transparent; color: #526d42; font-size: 10px; text-decoration: underline; text-decoration-color: #91a47477; text-underline-offset: 3px; white-space: nowrap; }
.text-button:hover { color: #294d26; }
.map-hint { font-size: 9px; line-height: 1.5; color: #516e42; margin: 10px 0 0; }
.map-hint > span { color: #9d8c56; margin-right: 3px; }
.revision-v5 .map-disclaimer { margin-top: 5px; }
.revision-v5 .minimap-frame canvas { cursor: crosshair; touch-action: manipulation; outline-offset: -4px; }

/* Real cases are contained, never cropped or tinted like the illustrated world. */
.case-panel { min-width: 0; border: 1px solid #bac5a5; border-radius: 6px; overflow: hidden; background: #f6f0de; }
.case-image-wrap { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; background: #09100d; overflow: hidden; }
.case-image-wrap > img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: auto; }
.case-marker { position: absolute; width: 25px; height: 25px; border: 2px solid #efd17a; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #152518aa,0 0 13px #efd17a80; pointer-events: none; }
.case-marker::before { content: ''; position: absolute; inset: 6px; border: 1px solid #fff0b7; border-radius: 50%; }
.case-zoom { display: flex; align-items: center; gap: 5px; position: absolute; right: 11px; top: 11px; min-height: 31px; padding: 5px 9px; color: #e6e7d5; font-size: 10px; background: #14281dde; border: 1px solid #b7c5a475; border-radius: 4px; box-shadow: 0 2px 6px #0002; }
.case-zoom > span { font: 19px/1 var(--sans); }.case-zoom:hover { background: #294735; }
.case-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #dbdbc1; }
.case-pagination { display: flex; align-items: center; gap: 8px; }
.case-pagination button { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #c4cfaa; border-radius: 4px; background: #e7ebd2; color: #557047; font: 17px/1 var(--serif); }
.case-pagination button:hover { background: #d8e3be; }
.case-pagination > span { min-width: 36px; color: #667752; font: 9px var(--mono); text-align: center; }
.case-actions { display: flex; gap: 6px; }
.case-actions .primary-btn,.case-actions .secondary-btn { padding: 7px 10px; min-height: 32px; font-size: 10px; gap: 6px; }
.case-thumbs { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #aebd94 transparent; }
.case-thumbs:empty { display: none; }
.case-thumbs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 0 0 64px; min-height: 40px; background: #e9ebd3; color: #5e734c; border: 1px solid #c4cfad; border-radius: 4px; padding: 3px; font: 8px/1.4 var(--mono); overflow: hidden; }
.case-thumbs button img { display: block; width: 62px; height: 45px; object-fit: contain; background: #0a110e; border-radius: 2px; }
.case-thumbs button:hover { border-color: #8fa879; }
.case-thumbs button.active,.case-thumbs button[aria-current="true"],.case-thumbs button[aria-pressed="true"] { background: #cfdab7; border: 2px solid #718d58; color: #395830; padding: 2px; }
.case-description { padding: 10px 13px 11px; }
.case-caption { color: #465e3c; font-size: 11px; line-height: 1.6; margin: 0 0 6px; }
.case-caption:empty { display: none; }
.case-scope-note { margin: 0 0 7px; color: #6c795a; font-size: 9px; line-height: 1.5; }
.case-attribution { display: flex; flex-wrap: wrap; gap: 3px 9px; align-items: baseline; color: #687958; font-size: 9px; line-height: 1.5; }
.case-attribution > span { flex-basis: 100%; }
.case-attribution > span:empty { display: none; }
.case-attribution a { text-underline-offset: 3px; text-decoration-color: #7a926b88; }
.case-attribution a:not([href]) { display: none; }
.case-recall { margin: 0 13px 12px; }
.case-recall:has(#caseQuestion:empty):has(#caseChoices:empty):has(#caseFeedback:empty) { display: none; }
.case-recall > h3 { font: 600 13px/1.5 var(--sans); color: #3e5c35; margin: 8px 0 9px; }
.case-recall > h3:empty { display: none; }
.case-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.case-choices button { min-height: 37px; padding: 8px 10px; background: #faf7e9; border: 1px solid #cad4b2; border-radius: 4px; color: #536e43; font-size: 11px; line-height: 1.4; text-align: left; }
.case-choices button:hover:not(:disabled) { background: #e4ecd1; border-color: #a4ba82; }
.case-choices button.correct { background: #dce9cb; border-color: #799d5e; }
.case-choices button.wrong { background: #efe1cd; border-color: #c0a17c; }
.case-feedback { font-size: 11px; line-height: 1.6; color: #5b7445; margin-top: 8px; padding: 9px 11px; background: #e4eace; border-left: 2px solid #99af76; border-radius: 3px; }
.case-feedback:empty { display: none; }

/* The five-location challenge shares the same map, without a second dashboard. */
.flash-panel { background: #e4e8cb; border: 1px solid #bdcca1; border-radius: 5px; padding: 13px 16px; margin-bottom: 9px; }
.flash-heading { display: flex; align-items: center; gap: 10px; }
.flash-heading .eyebrow { font-size: 7px; flex: 1; }
.flash-counter { font: 10px var(--mono); color: #6b7d52; }
.flash-heading .text-button { margin-left: 3px; font-size: 9px; }
.flash-panel h3 { font: 500 22px/1.25 var(--serif); margin: 8px 0 0; color: #3b5a31; }
.flash-feedback { font-size: 11px; line-height: 1.5; margin: 8px 0 0; color: #61794a; }
.flash-feedback:empty { display: none; }
.flash-feedback.success,.flash-feedback.correct { color: #3d6831; }.flash-feedback.wrong,.flash-feedback.retry { color: #8f6544; }
.flash-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.flash-actions .primary-btn,.flash-actions .secondary-btn { min-height: 33px; font-size: 10px; padding: 7px 11px; }
.welcome-card .welcome-appendix { font-size: 11px; line-height: 1.6; padding: 11px 12px; border: 1px solid #d0d4b5; border-radius: 4px; background: #e9ead1; color: #66764f; }
.image-modal { z-index: 40; padding: 22px; background: #07120eea; backdrop-filter: blur(8px); }
.image-modal-card { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; width: min(1240px, 100%); max-height: calc(100dvh - 44px); padding: 43px 16px 13px; background: #0d1712; border: 1px solid #6c805a; border-radius: 8px; box-shadow: 0 20px 90px #0007; }
.image-modal-card .close-btn { top: 9px; right: 10px; width: 29px; height: 29px; color: #e0e4c8; background: #243822; border-color: #72845c; }
.image-modal-card > img { display: block; width: 100%; height: auto; min-height: 0; max-height: calc(100dvh - 140px); object-fit: contain; }
.image-modal-card > p { margin: 11px 0 0; font-size: 11px; line-height: 1.5; color: #b6c6a4; text-align: center; max-width: 880px; }
.image-modal-card > p:empty { display: none; }

@media (min-width: 1500px) {
  .revision-v5 .app-shell { width: min(1410px, calc(100% - 70px)); }
  .revision-v5 .main-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .revision-v5 .intro { padding-block: 20px; }
}
@media (max-width: 1150px) {
  .revision-v5 .app-shell { width: calc(100% - 32px); }
  .revision-v5 .main-layout { grid-template-columns: minmax(0, 1fr) 252px; gap: 14px; }
  .revision-v5 .intro { gap: 14px; }.revision-v5 .intro h1 { font-size: 27px; }.revision-v5 .intro p { font-size: 10px; }
  .mode-switch button { padding: 7px 12px; font-size: 10px; }.revision-v5 .learning-progress { width: 151px; min-width: 151px; }
  .intro-actions { gap: 6px; }.intro-actions #flashBtn { font-size: 10px; padding-inline: 11px; gap: 8px; }
  .revision-v5 .game-heading h2 { font-size: 20px; }.view-switch button { padding: 5px 8px; font-size: 9px; }
  .navigation-bar { gap: 10px; }.navigation-copy > p { font-size: 10px; }.navigation-copy > span { font-size: 8px; }.compact-actions button { min-width: 51px; padding-inline: 6px; }.compact-actions button > small { font-size: 8px; }
  .revision-v5 .memory-actions .saved-note { display: none; }.revision-v5 .memory-heading .quiet-button { font-size: 10px; gap: 5px; }
  .case-actions .primary-btn,.case-actions .secondary-btn { font-size: 9px; padding-inline: 8px; }
}
@media (max-width: 900px) {
  .revision-v5 .main-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 12px; }.revision-v5 .learning-progress { width: 128px; min-width: 128px; }.revision-v5 .progress-label { font-size: 6px; }
  .revision-v5 .intro h1 { font-size: 25px; }.revision-v5 .intro p { font-size: 9px; }.mode-switch button { padding-inline: 9px; font-size: 9px; }
  .intro-actions #flashBtn { font-size: 9px; padding-inline: 9px; min-height: 43px; }
  .revision-v5 .game-heading { padding-inline: 2px; }.revision-v5 .game-heading h2 { font-size: 19px; }.revision-v5 .game-heading .eyebrow { font-size: 6px; }.view-switch button { padding-inline: 6px; font-size: 8px; }
  .navigation-copy > span { display: none; }.navigation-copy > p { margin: 0; }.compact-actions button > kbd { display: none; }.compact-actions button { min-width: 40px; display: flex; flex-direction: column; }
  .anatomical-navigation .quiet-button,.appendix-shortcut { font-size: 8px; padding-inline: 7px; }.atlas-heading h3 { font-size: 15px; }.atlas-heading .eyebrow { font-size: 5px; }
  .case-toolbar { flex-wrap: wrap; padding: 9px; }.case-pagination { margin-right: auto; }.case-actions { margin-left: auto; }.case-thumbs { padding-inline: 9px; }.case-description { padding-inline: 10px; }
  .appendix-note { flex-wrap: wrap; }.appendix-note > p { flex-basis: calc(100% - 38px); }.appendix-note .text-button { margin-left: 30px; }
}
@media (max-width: 760px) {
  .revision-v5 .app-shell { width: calc(100% - 26px); }.revision-v5 .topbar { height: 58px; }.revision-v5 .intro { padding: 16px 0; gap: 12px; flex-wrap: wrap; }
  .revision-v5 .intro-copy { flex: 1 1 auto; }.revision-v5 .intro h1 { font-size: 28px; }.revision-v5 .intro p { font-size: 10px; }.revision-v5 .learning-progress { order: 2; margin-left: auto; min-width: 122px; width: 132px; }.mode-switch { order: 3; flex: 1 1 100%; justify-content: center; padding: 3px; }.mode-switch button { flex: 1; font-size: 11px; min-height: 34px; }
  .intro-actions { order: 3; flex: 1 1 100%; width: 100%; gap: 8px; }.intro-actions .mode-switch { order: 0; flex: 1 1 auto; }.intro-actions #flashBtn { min-height: 42px; font-size: 10px; padding-inline: 13px; }
  .revision-v5 .main-layout { display: flex; flex-direction: column; gap: 14px; }.revision-v5 .journey-column,.revision-v5 .anatomy-column { width: 100%; }.revision-v5 .anatomy-column { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .revision-v5 .game-heading { min-height: 57px; }.revision-v5 .game-heading h2 { font-size: 22px; }.revision-v5 .game-heading .eyebrow { font-size: 7px; }.view-switch button { min-height: 32px; padding-inline: 10px; font-size: 10px; }
  .navigation-copy > p { font-size: 11px; }.navigation-copy > span { display: flex; font-size: 9px; margin-top: 5px; }.compact-actions button { min-width: 57px; min-height: 44px; }.compact-actions button > small { font-size: 9px; }
  .atlas-heading h3 { font-size: 17px; }.atlas-heading .eyebrow { font-size: 6px; }.anatomical-navigation .quiet-button,.appendix-shortcut { font-size: 9px; min-height: 34px; }
  .revision-v5 .memory-heading .quiet-button { font-size: 10px; }.revision-v5 .memory-heading h3 { font-size: 22px; }.case-toolbar { flex-wrap: nowrap; }.case-actions .primary-btn,.case-actions .secondary-btn { font-size: 10px; }
  .revision-v5 .memory-actions .saved-note { display: flex; }.revision-v5 .memory-actions .primary-btn,.revision-v5 .memory-actions .secondary-btn { min-height: 40px; }
}
@media (max-width: 540px) {
  .revision-v5 .app-shell { width: calc(100% - 18px); }.revision-v5 .topbar { height: 55px; }.revision-v5 .intro { padding: 14px 1px; gap: 12px 10px; }.revision-v5 .intro h1 { font-size: 26px; }.revision-v5 .intro p { font-size: 9px; }
  .revision-v5 .learning-progress { min-width: 79px; width: 79px; }.revision-v5 .progress-label { font-size: 5px; }.mode-switch button { min-height: 33px; font-size: 10px; }
  .intro-actions { gap: 6px; }.intro-actions .mode-switch button { font-size: 9px; padding-inline: 8px; }.intro-actions #flashBtn { padding-inline: 10px; font-size: 9px; gap: 7px; min-height: 41px; }
  .revision-v5 .game-panel { padding: 7px 7px 0; }.revision-v5 .game-heading { min-height: 54px; gap: 8px; padding-bottom: 10px; }.revision-v5 .game-heading h2 { font-size: 19px; }.revision-v5 .game-heading .eyebrow { font-size: 6px; letter-spacing: .6px; }.view-switch { padding: 2px; gap: 1px; }.view-switch button { min-height: 30px; padding-inline: 7px; font-size: 8px; }
  .navigation-bar { flex-wrap: wrap; gap: 9px; padding: 10px 2px; }.direction-pad { grid-template-columns: repeat(3, 36px); grid-template-rows: repeat(2, 34px); gap: 4px; }.direction-pad button { font-size: 20px; }.navigation-copy { flex-basis: calc(100% - 134px); }.navigation-copy > p { font-size: 10px; }.navigation-copy > span { font-size: 8px; }.compact-actions { flex: 1 1 100%; gap: 7px; }.compact-actions button { flex: 1; flex-direction: row; min-height: 36px; gap: 6px; }.compact-actions button > kbd { display: inline-block; margin-left: 4px; font-size: 6px; }.compact-actions button > small { font-size: 10px; }
  .revision-v5 .journey-atlas { padding: 11px 11px 9px; }.atlas-heading { flex-wrap: wrap; gap: 9px; margin-bottom: 9px; }.atlas-heading > div:first-child { display: flex; align-items: baseline; gap: 8px; }.atlas-heading .eyebrow { font-size: 6px; }.atlas-heading h3 { font-size: 17px; margin: 0; }.anatomical-navigation { width: 100%; }.anatomical-navigation .quiet-button { flex: 1; min-height: 36px; }.appendix-shortcut { flex: 1; min-height: 36px; }.revision-v5 .zone-chip { min-height: 50px; flex-basis: 65px; }.revision-v5 .zone-chip > strong { font-size: 12px; }
  .revision-v5 .memory-card { padding: 14px 12px; }.revision-v5 .memory-heading h3 { font-size: 20px; }.revision-v5 .memory-heading .eyebrow { font-size: 6px; }.revision-v5 .memory-heading .quiet-button { font-size: 9px; gap: 5px; padding: 7px 8px; }.revision-v5 .memory-heading .quiet-button > span { font-size: 12px; }.revision-v5 .memory-actions { flex-wrap: wrap; }.revision-v5 .memory-actions .saved-note { width: 100%; font-size: 8px; margin-bottom: 1px; }.revision-v5 .memory-actions .primary-btn,.revision-v5 .memory-actions .secondary-btn { flex: 1; min-height: 40px; padding-inline: 9px; font-size: 10px; }.revision-v5 .sequence-step { min-height: 57px; }
  .revision-v5 .anatomy-column { grid-template-columns: 1fr; }.revision-v5 .minimap-card,.revision-v5 .ct-card { padding: 15px; }.revision-v5 .minimap-frame { width: 100%; max-width: 320px; margin-inline: auto; }.revision-v5 .map-heading h3,.revision-v5 .ct-heading h3 { font-size: 20px; }.revision-v5 .map-heading .eyebrow,.revision-v5 .ct-heading .eyebrow { font-size: 7px; }.revision-v5 .map-current > div > span { font-size: 7px; }.revision-v5 .map-current strong { font-size: 12px; }.revision-v5 .map-disclaimer,.revision-v5 .ct-disclaimer { font-size: 9px; }.revision-v5 .ct-source { font-size: 7px; }.revision-v5 .ct-photo-wrap { max-width: 270px; margin-inline: auto; }.map-hint { font-size: 10px; }
  .case-image-wrap { aspect-ratio: 4 / 3; }.case-zoom { min-height: 29px; right: 7px; top: 7px; font-size: 8px; padding: 4px 6px; }.case-zoom > span { font-size: 16px; }.case-toolbar { flex-wrap: wrap; padding: 9px; gap: 9px; }.case-pagination { width: 100%; justify-content: center; }.case-pagination button { min-height: 35px; min-width: 35px; }.case-actions { width: 100%; margin: 0; gap: 5px; }.case-actions .primary-btn,.case-actions .secondary-btn { flex: 1; min-height: 36px; font-size: 9px; padding: 7px; }.case-caption { font-size: 11px; }.case-attribution { font-size: 8px; }.case-thumbs button { min-width: 59px; }.case-choices { grid-template-columns: 1fr; }.case-choices button { min-height: 41px; }.case-recall { margin-inline: 10px; }
  .flash-panel { padding: 12px; }.flash-panel h3 { font-size: 21px; }.flash-heading .eyebrow { font-size: 6px; letter-spacing: .8px; }.flash-actions .primary-btn,.flash-actions .secondary-btn { min-height: 37px; }.image-modal { padding: 9px; }.image-modal-card { max-height: calc(100dvh - 18px); padding: 43px 7px 11px; }.image-modal-card > img { max-height: calc(100dvh - 122px); }.image-modal-card > p { font-size: 10px; }
}
@media (pointer: coarse) {
  .direction-pad { grid-template-columns: repeat(3, 42px); grid-template-rows: repeat(2, 42px); gap: 4px; }
  .compact-actions button { min-height: 42px; }
  .case-pagination button { width: 40px; height: 40px; }
}
@media (pointer: coarse) and (max-width: 540px) {
  .navigation-copy { flex-basis: calc(100% - 149px); }
}

/* On a phone the active challenge becomes question → map → controls. */
@media (max-width: 760px) {
  .revision-v5.flash-active .intro { display: none; }
  .revision-v5.flash-active .main-layout { padding-top: 12px; gap: 10px; }
  .revision-v5.flash-active .journey-column,.revision-v5.flash-active .game-panel { display: contents; }
  .revision-v5.flash-active .game-heading,.revision-v5.flash-active #worldPanel,.revision-v5.flash-active .journey-atlas { display: none; }
  .revision-v5.flash-active .flash-panel { order: 0; width: 100%; margin: 0; padding: 12px 15px; }
  .revision-v5.flash-active .anatomy-column { order: 1; display: block; width: 100%; }
  .revision-v5.flash-active .minimap-card { padding: 12px 15px; }
  .revision-v5.flash-active .minimap-frame { width: 100%; max-width: 284px; max-height: 320px; margin-inline: auto; }
  .revision-v5.flash-active .map-heading { margin-bottom: 8px; }
  .revision-v5.flash-active .map-heading h3 { font-size: 17px; }
  .revision-v5.flash-active .map-hint,.revision-v5.flash-active .map-disclaimer { display: none; }
  .revision-v5.flash-active .map-current { margin-top: 7px; }
  .revision-v5.flash-active .navigation-bar { order: 2; width: 100%; padding: 11px 14px; background: var(--paper); border: 1px solid #e6e1c7; border-radius: 6px; }
  .revision-v5.flash-active .compact-actions { display: none; }
  .revision-v5.flash-active .navigation-copy { flex: 1; }
  .revision-v5.flash-active .flash-actions { margin-top: 8px; }
  .revision-v5.flash-active .footer { padding-top: 15px; }
}

/* Chapter 01 · advanced cases and quiet forest interactions. */
.expert-v6 .intro { flex-wrap: wrap; gap: 15px 24px; }
.expert-v6 .intro-actions { flex-wrap: wrap; gap: 8px; }
.expert-v6 .intro-actions #flashBtn { background: transparent; border: 1px solid #afbf8b66; box-shadow: none; color: #d4ddbd; font-size: 10px; min-height: 40px; }
.expert-v6 #galleryBtn { min-height: 43px; background: #d6be87; border-color: #e2cc9c; color: #364a30; }
.camp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; padding: 12px 8px 13px; border-top: 1px solid #d4d7bc; }
.camp-toolbar button { min-height: 37px; font-size: 11px; padding: 8px 11px; gap: 7px; }
.camp-toolbar kbd { font-size: 9px; }
.wood-counter { display: inline-flex; align-items: center; gap: 6px; color: #685b3d; padding: 7px 12px 7px 0; font-size: 10px; }
.wood-counter > span:first-child { color: #9d7845; transform: rotate(-25deg); font-size: 20px; }
.wood-counter strong { font: 700 19px var(--mono); color: #6f593b; }
#forestHint { flex: 1 1 100%; font-size: 11px; line-height: 1.5; margin: 1px 0 0; color: #667352; }
.rest-message { position: absolute; z-index: 4; left: 50%; bottom: 21px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 12px 18px; border: 1px solid #d9b47d80; border-radius: 8px; color: #f1e6c7; background: #263629e8; text-align: center; pointer-events: none; box-shadow: 0 4px 15px #14231a33; }
.rest-message strong { display: block; font: 400 20px/1.2 var(--serif); margin-bottom: 5px; color: #e7c492; }
.rest-message span { display: block; font-size: 10px; }
.expert-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 18px 20px 14px; background: #e1e6cd; border: 1px solid #c5d0a9; border-radius: 8px; }
.expert-card h3 { font: 500 24px/1.2 var(--serif); margin: 5px 0 6px; color: #3d573b; }
.expert-card p { margin: 0; font-size: 11px; color: #617452; }
.expert-actions { display: flex; flex-direction: column; gap: 7px; }
.expert-actions .quiet-button { font-size: 11px; }
#mistakeCount { border-radius: 12px; padding: 0 5px; background: #cdd9b5; }
.expert-card .expert-scope { grid-column: 1 / -1; border-top: 1px solid #c5d0ac; padding-top: 9px; font-size: 9px; line-height: 1.55; }
.clinical-stem { font-size: 14px; line-height: 1.75; padding: 15px 17px; margin: 15px 0; color: #374b35; background: #e6e8d0; border: 1px solid #cdd3b2; border-radius: 6px; }
.clinical-pitfall { font-size: 12px; line-height: 1.65; color: #726447; padding: 10px 12px; background: #eee3c9; border-radius: 4px; }
.clinical-source { display: inline-block; font-size: 10px; line-height: 1.5; color: #557346; text-underline-offset: 3px; }
.commit-note { font-size: 10px; color: #7b7d60; line-height: 1.6; margin: 14px 0 0; }
.expert-v6 .choice:disabled { opacity: 1; }
.expert-v6 .choice.correct { border-width: 2px; }
.expert-v6 .dialog-card { width: min(100%,670px); }
.camp-emblem { color: #d4a55e; font-size: 46px; line-height: 1; text-align: center; padding: 13px 0 5px; }
.camp-choices { flex-wrap: wrap; }
.camp-choices .quiet-button { width: 100%; }
.gallery-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 14px 11px; }
.gallery-heading h3 { font: 500 24px/1.2 var(--serif); margin: 4px 0 0; color: #3c573b; }
.case-filters { display: flex; gap: 6px; padding: 0 13px 9px; overflow-x: auto; }
.case-filters button { flex: 0 0 auto; min-height: 34px; padding: 7px 12px; font-size: 11px; color: #627753; background: #e6e9d1; border: 1px solid #c7d1b1; border-radius: 5px; }
.case-filters button.active { background: #426342; border-color: #426342; color: #f4eddb; }
.gallery-guidance { margin: 0; padding: 0 14px 12px; color: #6d7a5b; font-size: 10px; line-height: 1.55; }
.case-diagnosis { margin: 3px 0 10px; font: 500 24px/1.2 var(--serif); color: #3e5c38; }
.case-findings { margin: 11px 0; padding-left: 18px; font-size: 12px; line-height: 1.65; color: #465d3c; }
.case-pitfall { padding: 10px 12px; border-left: 2px solid #b99d65; background: #ede4ca; font-size: 11px; line-height: 1.6; color: #776442; }
.expert-v6 .case-caption { font-size: 12px; }
.expert-v6 #caseImage { min-height: 0; }
.axial-reference { margin-top: 22px; padding: 20px 23px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 13px 24px; align-items: center; border: 1px solid #9bb17f42; border-radius: 8px; background: #97aa6d12; color: #c2cfae; }
.axial-reference .eyebrow { color: #9daf83; }
.axial-reference h3 { margin: 5px 0; font: 400 22px var(--serif); color: #e0e4c9; }
.axial-reference p { margin: 0; max-width: 650px; font-size: 11px; line-height: 1.6; color: #acbc99; }
.axial-reference small { grid-column: 1/-1; font-size: 9px; color: #93a580; }
.flash-active .axial-reference { display: none; }
@media (max-width: 1150px) {
  .expert-v6 .intro-actions { order: 3; flex: 1 1 100%; justify-content: flex-start; }
  .expert-v6 .intro-copy { flex: 1; }
  .expert-v6 .intro .learning-progress { margin-left: auto; }
  .expert-card { grid-template-columns: 1fr; }
  .expert-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .expert-v6 .intro-actions .mode-switch { flex: 1 1 100%; }
  .expert-v6 #galleryBtn,.expert-v6 .intro-actions #flashBtn { flex: 1; }
  .camp-toolbar { gap: 7px; padding-inline: 3px; }
  .camp-toolbar button { min-height: 40px; }
  .expert-card { padding: 15px; }
  .gallery-heading h3 { font-size: 22px; }
  .axial-reference { grid-template-columns: 1fr; padding: 17px; }
}
@media (max-width: 540px) {
  .camp-toolbar .wood-counter { flex-basis: 100%; padding-bottom: 0; }
  .camp-toolbar button { flex: 1; font-size: 10px; padding-inline: 7px; }
  .gallery-heading { align-items: flex-start; }
  .gallery-heading h3 { font-size: 20px; }
  .gallery-heading .quiet-button { padding: 6px; font-size: 9px; }
  .case-filters button { padding-inline: 9px; font-size: 10px; }
  .expert-card h3 { font-size: 23px; }
  .clinical-stem { font-size: 13px; padding: 12px; }
  .rest-message strong { font-size: 17px; }.rest-message span { font-size: 9px; }
}

/* Edition 07 · an intentional menu, guided looking, and room to read. */
.edition-v7 .intro { padding-block: 23px 19px; }
.mode-menu { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 22px; }
.edition-v7 .mode-card,.edition-v7 #galleryBtn { display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 90px; padding: 17px 22px; border: 1px solid #9cae7961; border-radius: 10px; background: #2b3e30; color: #e5e9d2; text-align: left; box-shadow: inset 0 1px 0 #deedb40b,0 4px 16px #07160f13; }
.edition-v7 .mode-card:hover { border-color: #c9bd83; background: #354b37; transform: translateY(-1px); }
.edition-v7 .mode-card.active,.edition-v7 #galleryBtn.active { color: #334a32; background: #e2d2a6; border-color: #ead9ae; box-shadow: inset 0 1px 0 #fff5d9,0 3px 14px #10211745; }
.mode-icon { flex: 0 0 39px; width: 39px; color: #b5c392; }
.mode-icon svg { display: block; width: 100%; height: 39px; }
.mode-card.active .mode-icon { color: #657b48; }
.mode-card > span:nth-child(2) { flex: 1; min-width: 0; }
.mode-card strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.35px; }
.mode-card small { display: block; margin-top: 3px; color: #a7b898; font-size: 12px; font-weight: 400; }
.mode-card.active small { color: #6b7250; }
.mode-indicator { flex: 0 0 8px; width: 8px; height: 8px; border: 1px solid #9ead8666; border-radius: 50%; }
.mode-card.active .mode-indicator { background: #6c824d; border-color: #6c824d; box-shadow: 0 0 0 4px #87995719; }
.edition-v7 #flashBtn { min-height: 40px; font-size: 12px; padding: 9px 13px; }
.edition-v7 .gallery-heading { align-items: center; padding: 18px 19px 13px; }
.edition-v7 .gallery-heading h3 { font-size: clamp(23px,2vw,30px); margin-top: 6px; }
.gallery-heading-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.edition-v7 .gallery-heading .quiet-button { min-height: 40px; font-size: 12px; padding: 8px 12px; }
.case-total { display: inline-block; color: #7b8364; margin-left: 7px; font-weight: 400; letter-spacing: 0; }
.info-popover { position: relative; flex: 0 0 auto; font: 400 13px/1.65 var(--sans); }
.info-popover summary { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #9dad7c; border-radius: 50%; background: #e6e9cf; color: #5b7246; cursor: pointer; font: 700 14px var(--serif); list-style: none; }
.info-popover summary::-webkit-details-marker { display: none; }
.info-popover summary:hover,.info-popover[open] summary { background: #d3dfba; border-color: #718b58; }
.info-content { position: absolute; z-index: 30; top: calc(100% + 9px); right: 0; width: 305px; max-width: calc(100vw - 48px); padding: 16px 18px; border: 1px solid #a9b790; border-radius: 8px; box-shadow: 0 12px 32px #18301c32; background: #faf6e7; color: #4c6144; text-align: left; }
.info-content p { margin: 7px 0 0; font: 400 13px/1.65 var(--sans); }
.info-content strong { color: #3d5337; font-size: 14px; }
.inline-info { display: inline-block; vertical-align: middle; margin-left: 7px; }
.inline-info summary { width: 26px; height: 26px; }
.inline-info .info-content { right: auto; left: 0; }
.expert-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.expert-title-row h3 { margin: 5px 0 6px; }
.edition-v7 .expert-card { padding: 20px 22px; }
.edition-v7 .expert-card > div > p { font-size: 13px; line-height: 1.6; }
.edition-v7 .expert-actions .primary-btn,.edition-v7 .expert-actions .quiet-button { min-height: 40px; font-size: 12px; }
.edition-v7 .case-filters { gap: 8px; padding: 2px 18px 13px; }
.edition-v7 .case-filters button { min-height: 42px; font-size: 13px; padding: 9px 14px; border-radius: 6px; }
.edition-v7 .case-toolbar { align-items: center; gap: 18px; padding: 12px 18px; background: #e9e9d3; border-top: 1px solid #d2d6ba; }
.edition-v7 .case-pagination { flex: 0 0 auto; margin: 0; }
.edition-v7 .case-pagination button { min-width: 42px; min-height: 42px; font-size: 24px; border-radius: 6px; }
.edition-v7 #caseCounter { min-width: 102px; text-align: center; font: 700 12px var(--mono); color: #455f3d; }
.case-meta { margin: 0; color: #627350; font-size: 13px; line-height: 1.45; }
.edition-v7 .case-image-wrap { aspect-ratio: 16 / 10; min-height: 240px; max-height: 650px; }
.edition-v7 #caseImage { cursor: zoom-in; }
.edition-v7 #caseImage:focus-visible { outline: 3px solid #d6bd84; outline-offset: -5px; }
.edition-v7 .case-zoom { min-height: 39px; padding: 8px 11px; font-size: 12px; right: 13px; top: 13px; border-radius: 6px; background: #22352bed; }
.image-click-hint { position: absolute; bottom: 11px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 20px); white-space: nowrap; background: #15281ecf; border: 1px solid #b2c39c50; border-radius: 6px; padding: 5px 10px; font-size: 11px; color: #d3ddc7; pointer-events: none; }
.case-step-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 16px 18px; border-bottom: 1px solid #d6d7bc; background: #eee9d4; }
.study-step { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; align-items: center; gap: 1px 9px; min-width: 0; min-height: 66px; padding: 10px 12px; border: 1px solid #b4c09c; border-radius: 7px; background: #fbf6e5; text-align: left; color: #44613b; }
.study-step .step-number { grid-row: 1/3; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #e6e8cc; border: 1px solid #c8cfad; font: 500 17px var(--serif); }
.study-step > span:nth-child(2) { font-size: 14px; font-weight: 700; line-height: 1.3; }
.study-step small { grid-column: 2; color: #7b8366; font-size: 10px; }
.study-step:hover:not(:disabled) { background: #e9edd7; border-color: #7d9766; }
.study-step.active { background: #d9e3c2; border-color: #829b67; box-shadow: inset 0 0 0 1px #81976644; }
.study-step.active .step-number { background: #597549; border-color: #597549; color: #f3f0d9; }
.case-guide { margin: 18px; padding: 18px; border: 1px solid #becda5; border-radius: 8px; background: #e7ecd4; }
.guide-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.guide-heading .eyebrow { font-size: 9px; color: #6b8252; }
#guideCounter { font: 11px var(--mono); color: #73855a; }
.guide-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.guide-step { display: flex; align-items: center; gap: 7px; padding: 10px; border: 1px solid #bac8a2; border-radius: 6px; background: #f6f3df; color: #647c50; min-height: 46px; font-size: 12px; text-align: left; }
.guide-step > span { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #e2e7cd; font: 11px var(--mono); }
.guide-step.active { background: #4b6842; border-color: #4b6842; color: #f3edd6; }
.guide-step.active > span { background: #688155; color: #f3edd6; }
.guide-detail { display: grid; grid-template-columns: 27px 1fr; align-items: start; gap: 5px 9px; margin-top: 15px; }
.guide-focus { color: #9b8755; font-size: 29px; line-height: 1.3; }
.guide-detail p { color: #415c39; font-size: 17px; line-height: 1.65; margin: 0; }
.guide-detail .quiet-button { grid-column: 2; justify-self: start; margin-top: 8px; font-size: 12px; min-height: 36px; border-color: #b2c29a; }
.edition-v7 .case-description { padding: 23px 25px; margin: 0; border-top: 1px solid #d1d6b6; background: #f4eedb; }
.edition-v7 .case-description > .eyebrow { font-size: 9px; color: #8f845e; }
.edition-v7 .case-diagnosis { margin: 9px 0 15px; font: 500 29px/1.25 var(--serif); color: #3b5835; }
.edition-v7 .case-caption { font-size: 17px; line-height: 1.8; color: #3d5337; max-width: 78ch; }
.findings-title { margin: 20px 0 8px; font-size: 14px; color: #526b40; }
.edition-v7 .case-findings { margin: 0 0 17px; padding-left: 22px; font-size: 16px; line-height: 1.75; }
.edition-v7 .case-findings li + li { margin-top: 5px; }
.edition-v7 .case-pitfall,.case-compare { padding: 14px 16px; margin: 14px 0; border-radius: 5px; font-size: 15px; line-height: 1.7; }
.case-compare { border-left: 2px solid #8da875; background: #e4e9d0; color: #526b42; }
.edition-v7 #caseNextBottom { min-height: 45px; margin-top: 6px; font-size: 14px; padding: 11px 17px; }
.edition-v7 .case-recall { padding: 3px 6px 6px; margin: 18px; }
.edition-v7 .case-recall > h3 { font: 600 18px/1.55 var(--sans); color: #3a5535; margin: 0 0 15px; }
.edition-v7 .case-choices { gap: 10px; }
.edition-v7 .case-choices button { min-height: 60px; padding: 13px 14px; font-size: 15px; line-height: 1.55; border-radius: 7px; }
.edition-v7 .case-feedback { margin-top: 14px; font-size: 15px; line-height: 1.65; padding: 15px; }
.edition-v7 .case-thumbs { padding: 15px 18px; gap: 9px; border-top: 1px solid #d2d8b9; }
.edition-v7 .case-thumbs button { flex-basis: 88px; padding: 5px; min-height: 87px; font-size: 10px; gap: 5px; border-radius: 6px; position: relative; }
.edition-v7 .case-thumbs button img { width: 76px; height: 58px; }
.edition-v7 .case-thumbs button.active { padding: 4px; }
.edition-v7 .case-thumbs button b { position: absolute; top: 6px; right: 7px; background: #53734b; color: #eef0d6; border-radius: 50%; width: 17px; height: 17px; font-size: 10px; }
.edition-v7 .case-attribution { margin: 0; padding: 13px 18px 16px; font-size: 11px; line-height: 1.6; border-top: 1px solid #dee0c7; background: #eeecd7; gap: 4px 12px; }
.case-load-status { margin: 0; padding: 14px 18px; font-size: 15px; color: #795c38; background: #efdfba; }
.edition-v7 .clinical-stem { font-size: 16px; line-height: 1.75; }
.edition-v7 .dialog-card .question { font-size: 17px; line-height: 1.55; }
.edition-v7 .dialog-card .choice { font-size: 14px; line-height: 1.6; min-height: 52px; }
.edition-v7 .answer-feedback { font-size: 15px; line-height: 1.75; }
.edition-v7 .clinical-pitfall { font-size: 14px; }
.edition-v7 .clinical-source { font-size: 12px; }
.edition-v7 .rest-message { bottom: 15px; padding: 10px 17px; background: #27372aeb; border-color: #c4ab7566; }
.edition-v7 .rest-message strong { font-size: 19px; }
.edition-v7 .rest-message span { font-size: 11px; }
.edition-v7.flash-active .mode-menu { display: grid; }
@media (max-width: 1100px) {
  .edition-v7 .mode-card,.edition-v7 #galleryBtn { gap: 12px; padding: 15px; }
  .mode-card strong { font-size: 17px; }.mode-card small { font-size: 11px; }
  .mode-icon { flex-basis: 32px; width: 32px; }
  .mode-icon svg { height: 32px; }
  .edition-v7 .gallery-heading { align-items: flex-start; flex-wrap: wrap; }
  .gallery-heading-actions { margin-left: auto; }
  .edition-v7 .case-toolbar { flex-wrap: wrap; gap: 7px 14px; }
  .study-step { padding: 10px 9px; grid-template-columns: 23px 1fr; column-gap: 6px; }
  .study-step .step-number { width: 23px; height: 23px; font-size: 14px; }
  .study-step > span:nth-child(2) { font-size: 12px; }.study-step small { font-size: 9px; }
  .guide-steps { gap: 5px; }.guide-step { font-size: 11px; padding: 8px; }
  .edition-v7 .case-choices { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mode-menu { gap: 8px; margin-bottom: 15px; }
  .edition-v7 .mode-card,.edition-v7 #galleryBtn { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 13px 8px; min-height: 114px; }
  .mode-icon { flex: 0 0 28px; width: 28px; }.mode-icon svg { height: 28px; }
  .mode-card strong { font-size: 15px; }.mode-card small { font-size: 10px; }
  .mode-card > span:nth-child(2) { flex: 0; }.mode-indicator { display: none; }
  .edition-v7 .case-toolbar { flex-wrap: nowrap; }.edition-v7 .case-meta { font-size: 12px; }
  .edition-v7 .case-caption { font-size: 17px; }
  .study-step > span:nth-child(2) { font-size: 14px; }.study-step small { font-size: 10px; }
  .guide-step { font-size: 12px; }
  .edition-v7 .gallery-heading h3 { font-size: 26px; }
  .edition-v7 .case-description { padding: 21px 20px; }
}
@media (max-width: 540px) {
  .edition-v7 .intro { padding-block: 18px 15px; }
  .edition-v7 .mode-card,.edition-v7 #galleryBtn { padding: 12px 5px; min-height: 105px; }
  .mode-card strong { font-size: 14px; line-height: 1.3; }.mode-card small { display: none; }
  .mode-menu { gap: 6px; }
  .edition-v7 #flashBtn { padding-inline: 9px; font-size: 10px; min-height: 36px; }
  .edition-v7 .gallery-heading { position: relative; padding: 15px 13px 11px; gap: 10px; }
  .edition-v7 .gallery-heading h3 { font-size: 24px; }
  .edition-v7 .gallery-heading-actions { width: 100%; justify-content: flex-end; }
  .edition-v7 .gallery-heading .info-popover { position: static; }
  .edition-v7 .gallery-heading .info-content { right: 12px; width: calc(100% - 24px); max-width: none; }
  .case-total { margin-left: 0; display: block; margin-top: 4px; }
  .edition-v7 .case-filters { padding: 0 12px 12px; gap: 7px; }
  .edition-v7 .case-filters button { min-height: 40px; font-size: 12px; padding: 8px 12px; }
  .edition-v7 .case-toolbar { flex-wrap: wrap; padding: 10px 12px; }
  .edition-v7 .case-pagination { width: 100%; justify-content: space-between; }
  .case-meta { width: 100%; text-align: center; }
  .edition-v7 .case-image-wrap { aspect-ratio: 4/3; min-height: 225px; }
  .edition-v7 .case-zoom { top: 8px; right: 8px; min-height: 34px; font-size: 10px; }
  .image-click-hint { font-size: 9px; }
  .case-step-actions { padding: 12px 10px; gap: 6px; }
  .study-step { display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: center; padding: 10px 5px; min-height: 83px; }
  .study-step > span:nth-child(2) { font-size: 12px; }.study-step small { display: none; }
  .case-guide { margin: 12px; padding: 13px; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-step { min-height: 40px; font-size: 13px; gap: 10px; }
  .guide-detail { grid-template-columns: 20px 1fr; gap: 7px; }
  .guide-focus { font-size: 23px; }.guide-detail p { font-size: 16px; }
  .edition-v7 .case-description { padding: 20px 16px; }
  .edition-v7 .case-diagnosis { font-size: 26px; }
  .edition-v7 .case-caption { font-size: 16px; line-height: 1.8; }
  .edition-v7 .case-findings { font-size: 15px; }
  .edition-v7 .case-pitfall,.case-compare { font-size: 14px; padding: 13px; }
  .edition-v7 .case-recall { margin: 16px 12px; padding: 0; }
  .edition-v7 .case-recall > h3 { font-size: 17px; }.edition-v7 .case-choices button { font-size: 14px; }
  .edition-v7 .case-attribution { padding: 12px; font-size: 10px; }
  .edition-v7 .case-thumbs { padding: 12px; }
  .edition-v7 .expert-card { padding: 17px; }
  .edition-v7 .expert-actions { display: grid; grid-template-columns: 1fr; }
  .expert-title-row { position: relative; }
  .expert-title-row .info-popover { position: static; }
  .expert-title-row .info-content { left: 0; right: 0; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .edition-v7 button { transition: none; }
  .edition-v7 .mode-card:hover { transform: none; }
}

/* v8 keeps the established scenery and places the main action within reach. */
.edition-v8 .interaction-bubble {
  display: flex; align-items: center; gap: 14px; pointer-events: auto;
  min-height: 78px; min-width: min(370px, calc(100% - 32px));
  max-width: calc(100% - 32px); padding: 13px 18px 13px 14px; bottom: 16px;
  border: 2px solid #a89058; border-radius: 10px; background: #fff2d5;
  color: #24442d; white-space: normal; text-align: left; font-family: var(--sans);
  box-shadow: 0 5px 0 #213d3280, 0 8px 24px #11281e4d;
  touch-action: manipulation;
}
.edition-v8 .interaction-bubble:hover:not(:disabled) {
  background: #fff8e5; border-color: #d2ae61; color: #183820;
}
.edition-v8 .interaction-bubble:active:not(:disabled) {
  transform: translate(-50%, 2px); box-shadow: 0 2px 0 #213d3280, 0 4px 15px #11281e36;
}
.edition-v8 .interaction-bubble:focus-visible { outline: 3px solid #fff9d8; outline-offset: 3px; }
.edition-v8 .interaction-bubble kbd {
  flex: 0 0 42px; width: 42px; height: 44px; border: 1px solid #a48a4a;
  border-bottom-width: 3px; border-radius: 6px; background: #ddbd78; color: #263e2b;
  font: 700 21px var(--mono);
}
.edition-v8 .prompt-copy { display: grid; gap: 5px; min-width: 0; }
.edition-v8 #promptLabel { font: 700 18px/1.25 var(--sans); letter-spacing: -.15px; }
.edition-v8 #promptHint { color: #4f613b; font: 600 13px/1.2 var(--sans); }
.edition-v8 .prompt-arrow { margin-left: auto; padding-left: 5px; color: #486338; font: 700 25px/1 var(--sans); }
.edition-v8 .camp-toolbar { gap: 9px; padding-block: 14px; }
.edition-v8 .camp-toolbar button { min-height: 42px; font-size: 12px; }
.edition-v8 .regrow-button { margin-left: auto; border-color: #9caf7c; color: #355334; background: #e2e9ce; }
.edition-v8 .regrow-button:hover:not(:disabled) { background: #d0dfb8; border-color: #77965e; }
.edition-v8 .regrow-button > span:first-child { font-size: 19px; line-height: 1; }
.edition-v8 .cut-count {
  display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding-inline: 5px;
  border-radius: 12px; background: #3b5b3d; color: #f6f0d7; font: 700 11px var(--mono);
}
.edition-v8 .footer { flex-wrap: wrap; row-gap: 10px; font-size: 11px; line-height: 1.7; }
.edition-v8 .footer .developer-credit { color: #b9c5a6; }
.edition-v8 .footer > a { color: #c9b987; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .edition-v8 .regrow-button { margin-left: 0; }
  .edition-v8 .footer { align-items: flex-start; }
}
@media (max-width: 560px) {
  /* A separate action row avoids covering the small on-screen character. */
  .edition-v8 .game-frame { aspect-ratio: auto; }
  .edition-v8 .game-frame canvas { height: auto; aspect-ratio: 16 / 9; }
  .edition-v8 .interaction-bubble {
    position: relative; left: auto; bottom: auto; transform: none;
    width: calc(100% - 16px); max-width: none; min-width: 0; min-height: 70px;
    margin: 8px; padding: 10px 12px; gap: 10px; border-radius: 7px;
    box-shadow: 0 3px 0 #213d3266;
  }
  .edition-v8 .interaction-bubble:active:not(:disabled) { transform: translateY(1px); }
  .edition-v8 .interaction-bubble kbd { width: 35px; height: 38px; flex-basis: 35px; font-size: 18px; }
  .edition-v8 #promptLabel { font-size: 16px; }
  .edition-v8 #promptHint { font-size: 12px; }
  .edition-v8 .prompt-arrow { font-size: 20px; }
  .edition-v8 .camp-toolbar { padding-inline: 4px; }
  .edition-v8 .regrow-button { flex: 1 1 auto; justify-content: center; }
}

/* Separate, readable credit/privacy page; all typefaces are served locally. */
.credits-page { position: relative; max-width: 900px; margin: 40px auto; padding: clamp(24px, 5vw, 55px); background: var(--paper); border: 1px solid #bca76b; border-radius: 12px; font-size: 16px; line-height: 1.8; }
.credits-page > .eyebrow { display: block; margin-top: 32px; }
.credits-page h1 { font: 500 clamp(30px, 5vw, 46px)/1.15 var(--serif); margin: 15px 0 28px; }
.credits-page h2 { font: 500 28px/1.25 var(--serif); margin: 32px 0 15px; }
.credits-page h3 { font: 700 17px/1.45 var(--sans); margin-bottom: 10px; }
.credits-page a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.credits-page section { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.credits-page .credit-list { margin: 20px 0; padding-left: 0; list-style: none; }
.credits-page .credit-list li { padding: 12px 0 18px; border-top: 1px solid var(--border); }
.credits-page .credit-list p { margin: 7px 0; }
.credits-page > .primary-btn { display: inline-block; margin-top: 30px; text-decoration: none; }
@media (max-width: 560px) { .credits-page { margin: 14px 12px; padding: 24px 19px; font-size: 15px; } }
