:root{--paper:#f8f4e9;--cream:#fffdf6;--ink:#233b34;--muted:#54665e;--green:#244e45;--green2:#336458;--line:#ded7c6;--gold:#a66435;--mint:#e8eee3;--sea:#e4eeeb;--shadow:0 5px 0 #e7dfcf;--serif:Georgia,'Times New Roman',serif;--sans:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.55 var(--sans);min-width:280px}
a{color:inherit}
button,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a76335;outline-offset:4px}
.skip{position:absolute;z-index:20;background:white;padding:10px;transform:translateY(-150%)}
.skip:focus{transform:translateY(0)}
.shell{width:min(1120px,calc(100% - 48px));margin-inline:auto}
.top{border-bottom:1px solid #e7dfd0;background:#fbf7ee}
.top-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:72px}
.brand{text-decoration:none;display:flex;align-items:center;gap:10px;white-space:nowrap;line-height:1.14}
.brand b{display:block;font:700 18px var(--serif)}
.brand small,.eyebrow,.index,.footer>span{font-size:10px;letter-spacing:.17em;font-weight:760}
.brand small{color:var(--muted);font-size:8px}
nav{display:flex;gap:8px;align-items:center}
nav a{padding:8px 12px;text-decoration:none;font-size:13px;font-weight:700;border-radius:6px;white-space:nowrap}
nav a:hover,nav a[aria-current=page]{background:#e9eddf;color:#173b31}
main{min-height:64vh}
main:focus{outline:none}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--serif);line-height:1.09}
h1{font-size:clamp(37px,6.2vw,72px);font-weight:500;letter-spacing:-.043em}
h2{font-size:clamp(25px,3.2vw,37px);font-weight:500;letter-spacing:-.025em}
h3{font-size:23px;font-weight:500}
.eyebrow{display:block;color:#846038;text-transform:uppercase;margin-bottom:10px}
.hero{display:grid;grid-template-columns:1fr 1.05fr;min-height:357px;margin:30px 0 34px;border:1px solid #d5ded0;border-radius:18px;overflow:hidden;background:#e9eee1}
.hero-copy{padding:clamp(24px,5.3vw,63px);align-self:center;position:relative;z-index:1}
.hero h1{max-width:430px}
.hero p,.page-head p{max-width:540px;color:#455c50;margin:13px 0 22px;font-size:16px}
.hero-art{min-width:0;display:grid;place-items:center;position:relative;isolation:isolate;background:radial-gradient(ellipse at 53% 48%,#f2efe0 9%,#e0e8d8 72%)}
.hero-art>svg{width:100%;height:100%;max-height:380px;display:block}
.action,.secondary,.quiet{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;border-radius:7px;padding:8px 15px;font-size:14px;font-weight:710;text-decoration:none}
.action{color:#fffdf3;background:var(--green);border:1px solid var(--green)}
.action:hover{background:var(--green2)}
.secondary{background:#fffdf7;border:1px solid #cbcdbd}
.secondary:hover,.quiet:hover{background:#eaf0e5}
.quiet{background:transparent;border:1px solid transparent}
[aria-pressed=true].secondary,[aria-pressed=true].quiet{background:var(--mint);border-color:#8ba694}
.shelf-head{display:flex;justify-content:space-between;align-items:end;margin:0 0 15px;gap:10px}
.shelf-head p{font-size:13px;color:var(--muted)}
.shelf{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}
.shelf-card{display:block;border:1px solid var(--line);border-radius:13px;padding:12px;text-decoration:none;background:var(--cream);box-shadow:var(--shadow)}
.shelf-card:hover{border-color:#8da691}
.shelf-card:hover .card-arrow{background:var(--green);color:white}
.card-art{height:105px;border-radius:7px;display:grid;place-items:center;overflow:hidden}
.card-art svg{width:100%;height:100%}
.card-art.parts{background:#f3e8d3}.card-art.cards{background:#e6ecdf}.card-art.map{background:#e0eceb}
.card-text{padding:14px 7px 10px;position:relative}
.index{display:block;color:#846038;margin-bottom:5px}
.card-text h3{margin:3px 40px 8px 0}
.card-text p{color:var(--muted);font-size:13px;max-width:250px}
.card-arrow{position:absolute;top:28px;right:6px;width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#ecf0e4;color:var(--green)}
.footer{margin-top:35px;padding:18px 0 23px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.footer i{display:inline-block;margin:0 6px;width:4px;height:4px;border-radius:50%;background:#9b7749;vertical-align:middle}
.footer summary{cursor:pointer}.footer details[open] p{margin-top:5px}
.page-head{padding:23px 0 18px;display:flex;justify-content:space-between;align-items:end;gap:18px}
.page-head h1{font-size:clamp(37px,5.4vw,56px)}
.page-head p{margin:8px 0 0;font-size:15px}
.crumb{font-size:12px;text-decoration:none;color:var(--muted);display:inline-block;margin-bottom:10px;font-weight:650}
.crumb:hover{text-decoration:underline}
.mode{display:flex;gap:3px;padding:3px;border:1px solid var(--line);background:#eeeadd;border-radius:8px;align-self:end;white-space:nowrap}
.mode button{border:0;border-radius:5px;padding:7px 11px;min-height:36px;background:transparent;font-size:13px;font-weight:700}
.mode button[aria-pressed=true]{background:var(--cream);color:#183d32;box-shadow:0 1px 3px #3a3a2626}
.panel{background:var(--cream);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}
.part-layout{display:grid;grid-template-columns:1.55fr 1fr;gap:16px}
.diagram{display:grid;place-items:center;min-height:275px;background:radial-gradient(ellipse,#fff9e9,#efe5cf);padding:16px;position:relative}
.diagram svg{width:min(100%,580px);height:auto;display:block}
.part-panel{padding:18px}
.part-panel p{color:var(--muted);font-size:14px}
.part-panel h2{margin-bottom:7px}
.part-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:13px 0}
.part-buttons button{padding:6px 8px;justify-content:flex-start;min-height:38px;text-align:left}
.note{border-left:3px solid #a4b79c;padding:7px 0 7px 11px;margin:10px 0;color:var(--muted)}
.status{min-height:25px;margin-top:9px;color:var(--green);font-size:14px;font-weight:690}
.status.retry{color:#8a492c}
.hotspot{cursor:pointer}
.hotspot .touch{fill:transparent}
.hotspot .dot{fill:#f5f5f5;stroke:#444;stroke-width:1.8}
.hotspot:hover .dot,.hotspot:focus .dot,.hotspot.right .dot{fill:#fff;stroke:#292929}
.hotspot:focus{outline:none}
.hotspot:focus-visible .dot{stroke-width:3.5}
.hotspot .core{fill:#444;pointer-events:none}
.bar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:13px 15px;margin:0 0 15px}
.bar label{display:grid;gap:3px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:750;color:var(--muted)}
.bar select{max-width:100%;font-size:14px;min-height:38px;background:#f9f6ec;border:1px solid #d9d1bc;border-radius:6px;padding:5px 29px 5px 9px;font-weight:660;letter-spacing:0;text-transform:none}
.bar .bar-side{margin-left:auto;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.bar-side .secondary{min-height:38px}
.card-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:15px}
.study-card{display:flex;min-height:365px;flex-direction:column;align-items:stretch;text-align:center;overflow:hidden}
.study-flag{min-height:245px;display:grid;place-items:center;padding:25px;background:#eee8d8}
.study-flag img,.quiz-flag img{max-width:100%;width:auto;height:auto;max-height:185px;filter:drop-shadow(0 4px 6px #42452d30)}
.study-title{padding:18px 19px 11px}
.study-title p{font-size:14px;color:var(--muted);margin-top:5px}
.card-controls{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:auto 9px 15px}
.card-controls button{min-width:42px}
.card-side{padding:17px;display:flex;flex-direction:column;gap:11px}
.card-side h2{font-size:27px}
.card-side p{font-size:14px;color:var(--muted)}
.card-side a{align-self:flex-start}
.mini-map{width:100%;max-height:170px;background:var(--sea);border:1px solid #d4dfd6;border-radius:8px;display:block}
.quiz{max-width:680px;margin-inline:auto;padding:19px;text-align:center}
.quiz-flag{display:grid;place-items:center;background:#eee8d8;border-radius:8px;padding:18px;margin:11px 0}
.quiz-flag img{max-height:139px}
.choices{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.choices button.right{background:#dcebd9;border-color:#6e9677}
.choices button.wrong{background:#f8e7d6;border-color:#c99876}
.board{padding:12px}
.board-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 4px 9px}
.board-top p{font-size:13px;color:var(--muted)}
.counter{font-size:12px;font-weight:760;white-space:nowrap;color:var(--green);background:#e8eee2;border-radius:999px;padding:4px 10px}
.map-view{position:relative;isolation:isolate;overflow:hidden;border-radius:8px;background:var(--sea);border:1px solid #ccdbd1}
.map-view>svg{display:block;width:100%;height:auto;max-height:520px}
.map-country{stroke:#aeb9a7;stroke-width:.55;vector-effect:non-scaling-stroke;fill-rule:evenodd}
.map-country.target{cursor:pointer}
.map-country.target:hover,.map-country.hinted{fill:#efce87!important;stroke:#8b6b3c}
.map-country.pinned{fill:#a9c2a0!important}
.map-lines{stroke:#b4cbc3;stroke-width:.45;vector-effect:non-scaling-stroke;pointer-events:none}
.map-overlay{position:absolute;inset:0;pointer-events:none}
.map-pin{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);display:grid;place-items:center;width:35px;height:35px;background:none;border:0;padding:0;z-index:2;border-radius:50%}
.map-pin:before{content:'';width:12px;height:12px;border:2px solid #fff7dc;border-radius:50%;background:#315b4d;box-shadow:0 0 0 1px #315b4d}
.map-pin:hover,.map-pin:focus-visible,.map-pin.hinted{z-index:5}
.map-pin:hover:before,.map-pin.hinted:before{background:#cf8a47;box-shadow:0 0 0 4px #f2d39b}
.map-pin.placed:before{content:none}
.map-pin.placed img{width:30px;height:24px;object-fit:contain;filter:drop-shadow(0 2px 2px #414d36a0)}
.map-pin.placed{background:#fffdf1;border:1px solid #789881}
.pin-caption{display:none;position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;padding:2px 5px;border-radius:4px;background:#fffdf4;border:1px solid #d4d0bd;color:#29453b;font-size:10px;font-weight:720;line-height:1.3;pointer-events:none}
.labels .pin-caption,.map-pin.placed:hover .pin-caption,.map-pin.placed:focus-visible .pin-caption{display:block}
.map-guide{margin:9px 3px 5px;font-size:13px;color:var(--muted)}
.tray{display:flex;gap:7px;flex-wrap:wrap;padding:9px;border-radius:8px;background:#ebe1cb;border:1px solid #e0d2b6}
.flag-token{border:1px solid #d1c4aa;border-radius:7px;background:#fffcf2;min-width:64px;min-height:54px;padding:6px 8px;display:grid;place-items:center;gap:3px;touch-action:none}
.flag-token:hover{background:#f4f6e8;border-color:#819b86}
.flag-token[aria-pressed=true]{background:#e5efde;border-color:#497b5d;box-shadow:inset 0 0 0 1px #497b5d}
.flag-token:disabled{opacity:.42}
.flag-token img{width:41px;height:28px;object-fit:contain;pointer-events:none}
.flag-token span{font-size:10px;font-weight:720;pointer-events:none}
.flag-ghost{position:fixed;z-index:30;pointer-events:none;width:57px;height:40px;object-fit:contain;filter:drop-shadow(0 3px 4px #20342980);transform:translate(-50%,-100%)}
.board .status{margin:8px 4px 0}
.board-tools{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px;align-items:center}
.board-tools .quiet,.board-tools .secondary{min-height:36px;padding:5px 9px;font-size:12px}
.board-tools .push{margin-left:auto}
.teacher{margin-top:18px;font-size:13px;color:var(--muted)}
.teacher summary{cursor:pointer;font-weight:680}
.teacher p{margin-top:6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:720px){
 .shell{width:calc(100% - 28px)}.top-inner{min-height:65px}.hero{min-height:270px;margin:18px 0 24px}.hero-copy{padding:23px}.hero p{font-size:14px}.shelf{gap:8px}.shelf-card{padding:7px}.card-text{padding:10px 4px}.card-text h3{font-size:19px}.card-text p{font-size:12px}.card-arrow{right:2px;width:24px;height:24px;top:24px}.card-art{height:81px}.part-layout,.card-layout{gap:9px}.part-panel,.card-side{padding:12px}.diagram{padding:6px}.part-buttons{gap:4px}.board{padding:8px}
}
@media(max-width:520px){
 .shell{width:calc(100% - 22px)}.top-inner{flex-wrap:wrap;justify-content:center;gap:2px;padding:7px 0 4px}.brand{margin-right:auto}.brand img{width:28px;height:28px}.brand b{font-size:15px}.brand small{font-size:7px}.brand{gap:5px}nav{gap:0}nav a{padding:7px 5px;font-size:11px}
 .hero{grid-template-columns:1fr;position:relative}.hero-copy{padding:21px 18px 13px}.hero p{margin:8px 0 12px}.hero-art{height:159px}.hero-art svg{max-height:180px}.shelf{grid-template-columns:1fr}.shelf-card{display:grid;grid-template-columns:85px 1fr;gap:7px}.card-art{height:auto;min-height:79px}.card-text h3{margin-top:0;margin-bottom:4px}.shelf-head{align-items:start}.shelf-head p{font-size:11px;text-align:right}
 .page-head{display:block;padding:14px 0 12px}.page-head .mode{margin-top:10px;width:max-content}.page-head p{font-size:14px}.part-layout,.card-layout{grid-template-columns:1fr}.diagram{min-height:165px}.diagram svg{max-height:240px}.part-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}.part-buttons button{font-size:12px}.study-card{min-height:0}.study-flag{min-height:165px;padding:15px}.study-flag img{max-height:130px}.card-side .mini-map{max-height:115px}.bar{padding:8px;gap:7px}.bar label{flex:1;min-width:115px}.bar .bar-side{margin:0}.bar select{width:100%;font-size:13px}.board-top p{font-size:12px}.flag-token{min-width:49px;min-height:42px;padding:4px}.flag-token img{width:35px;height:24px}.tray{gap:5px;padding:6px}.map-pin{width:31px;height:31px}.map-pin.placed img{width:23px;height:20px}.map-pin:before{width:10px;height:10px}.pin-caption{font-size:8px}.footer{margin-top:24px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important}}
.hero-art>img{width:100%;height:100%;max-height:380px;object-fit:contain;display:block}
.map-view{width:min(100%,calc(510px * var(--map-ratio)));margin-inline:auto}
.map-view>svg{max-height:none}
.map-pin.hinted .pin-caption.visible{display:block}
@media(max-width:520px){.hero-art>img{max-height:180px}}

.shelf-return{padding-top:10px;font-size:12px;font-weight:650;color:var(--muted)}

.parent-zone{margin-top:20px;font-size:13px;color:var(--muted)}
.parent-zone summary{width:fit-content;cursor:pointer;font-weight:710}
.parent-audio{max-width:640px;margin-top:9px;padding:15px;border:1px solid var(--line);border-radius:8px;background:var(--cream)}
.parent-audio label{display:block;margin:10px 0 4px;color:var(--ink);font-weight:700}
.parent-audio select{width:min(100%,280px);min-height:42px;padding:4px 7px;border:1px solid var(--line);border-radius:5px;background:var(--cream)}
.parent-audio .audio-tools{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}
.parent-audio [hidden]{display:none}
.parent-audio button:disabled{opacity:.52}
.part-panel .part-audio{margin-top:10px}
