@import url('./trade-scene.css?v=trade21');
@import url('./curriculum-studio.css');
@import url('./curriculum-polish.css');
@import url('./course-activity.css?v=museum22');
:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#f5f1e6;background:#091d25;font-size:17px;--gold:#efd090;--deep:#102d35;--line:#ffffff28;--muted:#c1d1d0;--accent:#87d7d0}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button,.button{min-height:48px;border:1px solid var(--line);border-radius:14px;background:#173d46;color:inherit;padding:.7rem 1rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;font-weight:650}button:hover,.button:hover{background:#24535b;border-color:#b9e8df}button:disabled{opacity:.5;cursor:default}button[aria-pressed=true],button.selected{border-color:var(--gold);background:#5b4d2f}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #ffdf91;outline-offset:4px}a{color:var(--gold)}.primary{background:linear-gradient(130deg,#f4d797,#d9b66e);color:#152d34;border:0;box-shadow:0 5px 22px #0003}.primary:hover{background:#ffe7ae;color:#132c33}.ui-icon{height:24px;width:24px;flex-shrink:0}p{line-height:1.55}h1,h2,h3{font-family:Georgia,serif;font-weight:500;line-height:1.12;margin:.6rem 0 1rem}h1{font-size:clamp(2.1rem,4vw,3.8rem)}h2{font-size:clamp(1.6rem,2.4vw,2.3rem)}small,.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.68rem;font-weight:800;color:var(--gold);margin:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem clamp(1rem,3vw,3rem);border-bottom:1px solid var(--line);background:#0b232ce8;position:relative;z-index:2}.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:#f5f1e6;font-weight:750}.brand small{display:block;letter-spacing:.14em;font-size:.52rem;margin-top:.25rem}.seal{border:1px solid #d9b66e;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;font:1.8rem Georgia;color:var(--gold)}nav{display:flex;gap:.4rem}nav button{background:transparent;font-size:.84rem}.skip{position:absolute;top:-100px;left:1rem;background:white;color:black;padding:1rem;z-index:100}.skip:focus{top:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#main{max-width:1520px;margin:auto;outline:none}#main>section.screen-enter{animation:arrive .3s ease-out}.map-page{padding:clamp(1rem,3vw,3rem)}.map-hero{position:relative;isolation:isolate;min-height:390px;border-radius:26px;overflow:hidden;padding:clamp(1.5rem,4vw,4rem);display:flex;align-items:center;background:#174953}.map-hero:before{content:'';position:absolute;inset:0;z-index:-2;background:url('../assets/reconstruction/egeo-aa/premium/aegean-world-premium.webp') 60% 55%/cover}.map-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#071c29f2,#0a2539a8 50%,#0a253922)}.map-copy{max-width:530px}.map-copy>p:not(.eyebrow){max-width:380px}.chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.4rem 0}.chapter-card{overflow:hidden;background:#102e37;border:1px solid var(--line);border-radius:20px;display:flex;flex-direction:column}.chapter-card img{width:100%;aspect-ratio:2.2;object-fit:cover}.chapter-card>div{padding:1.1rem}.chapter-card h2{font-size:1.55rem}.chapter-card p{font-size:.9rem;margin:.5rem 0 1rem}.chapter-card .button,.chapter-card button{width:100%}.actions{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center}.footer-note{font-size:.75rem;color:var(--muted);line-height:1.5}.progress{display:flex;gap:.5rem;align-items:center;margin:.9rem 0}.progress span{height:5px;width:36px;border-radius:5px;background:#ffffff28}.progress span.done{background:var(--accent)}.lesson{padding:1.25rem clamp(1rem,3vw,3rem) 2rem}.lesson-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1rem}.lesson-head h1{font-size:clamp(1.5rem,2.6vw,2.2rem);margin:.4rem 0}.lesson-head .eyebrow{font-size:.64rem}.lesson-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(310px,.8fr);gap:1.4rem;align-items:start}.scene{border:1px solid var(--line);border-radius:24px;min-height:500px;position:relative;isolation:isolate;overflow:hidden;background:#173f4a}.scene .background{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;z-index:-2}.scene:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#061b2cbb,transparent 70%);pointer-events:none}.scene-label{position:absolute;left:1rem;top:1rem;padding:.4rem .6rem;font-size:.65rem;border:1px solid #ffffff40;border-radius:30px;background:#092935e6;max-width:90%}.scene-caption{position:absolute;bottom:0;left:0;right:0;padding:1rem 1.4rem;background:linear-gradient(transparent,#081e2cf0);font-weight:600;line-height:1.5}.scene-caption small{display:block;font-size:.7rem;font-weight:400}.scene svg.chart{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 2px 3px #001e30)}.chart .route{fill:none;stroke:#f9e8bf;stroke-width:3;stroke-dasharray:6 7;opacity:.6}.chart .route.active{stroke:var(--accent);stroke-width:5;opacity:1;stroke-dasharray:10 6}.chart text{fill:white;font-size:14px;font-family:system-ui;font-weight:650;paint-order:stroke;stroke:#183846;stroke-width:4}.chart circle{fill:#e8c786;stroke:#173947;stroke-width:4}.ship{position:absolute;width:68px;height:68px;display:grid;place-items:center;background:#102d35e8;border:2px solid var(--gold);color:var(--gold);border-radius:50%;left:18%;top:62%;transition:left 1.1s ease,top 1.1s ease;box-shadow:0 0 0 10px #ffffff12}.ship .ui-icon{width:40px;height:40px}.ship.shelter{left:50%;top:39%}.ship.sail,.ship.slow{left:75%;top:20%}.ship.slow{transition-duration:2s}.ship.arrived{left:82%;top:17%}.cargo{position:absolute;bottom:90px;left:20px;display:flex;gap:.4rem}.cargo span{background:#143a46ef;border:1px solid #ffffff66;border-radius:9px;padding:.4rem .6rem;font-size:.75rem}.instruction{padding:1.5rem;background:linear-gradient(150deg,#173943,#102c35);border:1px solid var(--line);border-radius:24px}.instruction h2{margin:.6rem 0 .8rem}.instruction>p{font-size:.97rem}.choices{display:grid;gap:.65rem;margin:1rem 0}.choice{display:grid;grid-template-columns:40px 1fr;text-align:left;justify-content:stretch;min-height:76px;padding:.85rem;background:#09242e;position:relative}.choice .ui-icon{width:32px;height:32px}.choice strong{display:block;font-size:.96rem}.choice small{display:block;font-weight:400;font-size:.77rem;margin-top:.2rem;line-height:1.4}.choice.selected:after{content:'✓';position:absolute;right:8px;top:5px;color:var(--gold);font-size:.75rem}.feedback{border-left:3px solid var(--accent);padding:.75rem 1rem;background:#ffffff08;border-radius:0 12px 12px 0;line-height:1.55;margin:1rem 0;font-size:.92rem}.feedback:empty{display:none}.guide{display:flex;gap:.7rem;align-items:center;margin:1.2rem 0 0;font-size:.82rem;color:var(--muted)}.guide img{width:48px;height:48px;border:1px solid var(--gold);border-radius:50%;object-fit:cover;object-position:50% 25%}.guide p{margin:0}.help{margin-top:1rem;font-size:.86rem}.help summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:.5rem;color:var(--gold)}.help p{color:var(--muted)}.source-tag{font-size:.7rem;padding:.4rem .7rem;background:#244f58;border-radius:8px;display:inline-block}.city-node{position:absolute;min-height:62px;width:112px;border:1px solid #e6d299;background:#0c2c36ed;display:flex;flex-direction:column;padding:.5rem;box-shadow:0 6px 18px #0004;transform:translate(-50%,-50%);font-size:.8rem}.city-node .ui-icon{height:26px}.city-node.empty{border-style:dashed;background:#092935b8}.city-node.connected{box-shadow:0 0 0 5px #95dbb728,0 6px 20px #0005;border-color:#a9e8cd}.city-line{stroke:#efd090;stroke-width:6;stroke-linecap:round;fill:none}.traveller{fill:#fff;filter:drop-shadow(0 0 6px #fce7b0);offset-rotate:0deg;animation:walk 5s ease-in-out infinite}.source-photos{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;padding:4rem 1rem 6rem;height:100%;min-height:500px}.source-photos figure{margin:0;background:#061923c9;border:1px solid #ffffff40;border-radius:16px;overflow:hidden;align-self:center}.source-photos img{display:block;width:100%;aspect-ratio:.78;object-fit:cover}.source-photos figcaption{padding:.6rem;font-size:.72rem}.source-photos button{width:100%;border-radius:0;min-height:52px;font-size:.75rem}.found-badge{color:#a7ecce;font-size:.7rem}.book-page,.options-page{padding:2rem clamp(1rem,4vw,4rem);max-width:1000px;margin:auto}.record{border:1px solid var(--line);border-radius:18px;overflow:hidden;margin:1rem 0;background:#102e37}.record-header{display:flex;align-items:center;gap:1rem;padding:1rem}.record-header img{width:100px;height:80px;object-fit:cover;border-radius:10px}.record h2{font-size:1.5rem;margin:.4rem 0}.record>p,.record>details{margin:1rem 1.3rem}.record details summary{padding:.6rem 0;color:var(--gold);cursor:pointer}.record textarea{width:100%;background:#091f28;color:white;border:1px solid var(--line);padding:.8rem;border-radius:9px;resize:vertical;min-height:100px}.complete-seal{width:70px;height:70px;display:grid;place-items:center;border:1px solid var(--gold);border-radius:50%;color:var(--gold);margin-bottom:1rem;background:#efd09015}.complete-seal .ui-icon{width:40px;height:40px}.setting{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line)}select{background:#173d46;color:#fff;border:1px solid var(--line);border-radius:9px;padding:.7rem;max-width:100%}table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:.88rem}th,td{padding:.8rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}dialog{max-width:min(520px,94vw);border:1px solid var(--gold);border-radius:20px;background:#12323c;color:inherit;padding:2rem}dialog::backdrop{background:#00141ecc}.save-status{position:relative;text-align:center;font-size:.8rem;color:#ffe3aa;padding:.3rem 1rem;min-height:1.2rem}.save-status:empty{padding:0;min-height:0}.gallery-link{margin-top:1rem}.options-page label{display:block}body.large{font-size:20px}body.contrast{--muted:#fff;--gold:#ffe599;--line:#fff;background:#000}body.contrast .instruction,body.contrast .record,body.contrast .topbar{background:#000}body.reduced *,body.reduced *:before,body.reduced *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes walk{0%,10%{offset-distance:0%}80%,100%{offset-distance:100%}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:900px){.lesson-layout{grid-template-columns:1fr}.scene{min-height:330px}.source-photos{min-height:330px;padding:3rem 1rem 5rem}.source-photos img{aspect-ratio:1.4}.instruction{padding:1.2rem}.chapter-grid{grid-template-columns:1fr}.chapter-card{display:grid;grid-template-columns:35% 1fr}.chapter-card img{height:100%;aspect-ratio:auto}.map-hero{min-height:330px}.topbar{flex-wrap:wrap}.topbar nav{width:100%;justify-content:space-between}.topbar nav button{flex:1}.lesson-head{align-items:flex-start}.scene .city-node{width:94px;min-height:54px;font-size:.72rem}.city-node .ui-icon{width:20px;height:20px}}@media(max-width:480px){.brand small{font-size:.48rem}.topbar{padding:.7rem}.lesson{padding:.8rem}.lesson-head .button{padding:.5rem;font-size:.72rem}.lesson-head h1{font-size:1.5rem}.chapter-card{grid-template-columns:1fr}.chapter-card img{height:150px}.scene{min-height:310px}.map-hero{padding:1.5rem}.actions>*{flex:1}.source-photos figcaption{font-size:.65rem}th,td{padding:.5rem}.city-node{max-width:84px}}@media print{.topbar,button,.actions,.save-status{display:none!important}body,#main,.record{background:#fff!important;color:#111!important}.book-page{max-width:none}.record{break-inside:avoid;border:1px solid #aaa}.record small,.muted,.eyebrow{color:#333!important}}

/* Each decision stays still; only a new screen enters. Reduced motion overrides all effects. */
.cargo{right:16px;flex-wrap:wrap;bottom:88px;gap:6px}.cargo span{display:inline-flex;align-items:center;gap:5px;font-size:.68rem}.cargo .ui-icon{width:19px;height:19px}
.ship{left:20%;top:67%;transform:translate(-50%,-50%)}.ship.shelter{left:51.67%;top:44%}.ship.arrived{left:83.33%;top:22%}
.chapter-card{transition:transform .22s ease,border-color .22s ease}.chapter-card:has(button:not(:disabled)):hover{transform:translateY(-4px);border-color:#efd09088}
.scene:has(.ship.shelter){box-shadow:inset 0 0 70px #91dccb18}.complete-seal{animation:seal-reveal .5s ease-out}
.source-photos figure:has(button[aria-pressed=true]){border-color:#9be0c2}.city-node:hover{border-color:#fff1c3;background:#27545c}
.instruction>.primary{width:100%}.guide{padding-top:1rem;border-top:1px solid var(--line)}
@keyframes seal-reveal{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}
@media(max-width:480px){.progress{flex-wrap:wrap}.progress small{font-size:.7rem}.scene-caption{font-size:.8rem}.cargo{left:12px;bottom:95px}.cargo span{padding:5px}.ship{width:54px;height:54px}.ship .ui-icon{width:32px;height:32px}.setting{flex-wrap:wrap}.lesson-layout{gap:.8rem}.instruction h2{font-size:1.65rem}table{font-size:.76rem;overflow-wrap:anywhere}}

/* Landscape and paths share exactly the same uncropped coordinate system. */
.city-world{min-width:0}.scene.city-scene{min-height:0;aspect-ratio:3/2;border-radius:24px 24px 0 0}.city-scene .background{object-fit:contain}.city-scene:after{background:linear-gradient(0deg,#071e2cdd,transparent 25%)}
.city-scene .scene-label{font-size:.62rem;top:.65rem;left:.65rem;max-width:45%}.city-scene .city-node{width:76px;min-height:54px;padding:5px;gap:3px;border-radius:12px;background:#0b2d38ec;font-size:.68rem;box-shadow:0 4px 12px #0006}.city-scene .city-node .ui-icon{width:22px;height:22px}.city-scene .city-node.empty{background:#193d44dc}.city-scene .city-node.target-place{border:2px solid #ffe4a3}.city-scene .city-node.connected{border-color:#b9f3d1;background:#153f38eb}.city-scene .city-node:hover{background:#345b57}
.city-road-shadow{fill:none;stroke:#1d3027bb;stroke-width:15;stroke-linecap:round}.city-scene .city-line{stroke:#ffdfa0;stroke-width:8;stroke-linecap:round;stroke-dasharray:2 11}.delivery-layer{pointer-events:none}.delivery-token circle{fill:#fff4ca;stroke:#74552b;stroke-width:5}.city-scene .scene-caption{font-size:.8rem;padding:.7rem 1rem}.city-scene .scene-caption small{font-size:.6rem}
.delivery-board{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-top:0;border-radius:0 0 20px 20px;background:#102b33;padding:.8rem;gap:.6rem}.delivery-card{display:flex;align-items:center;gap:.6rem;padding:.7rem;border:1px solid #ffffff20;border-radius:12px;min-width:0;background:#09232c}.delivery-card>.ui-icon{width:26px;height:26px;color:var(--gold)}.delivery-card strong{display:block;font-size:.75rem}.delivery-card small{display:block;font-size:.65rem;line-height:1.4;margin-top:.2rem}.delivery-card.delivered{border-color:#97d5b777;background:#183b37}.delivery-check{margin-left:auto;color:#a4e4c2}.button:has(input:focus-visible){outline:3px solid #ffdf91;outline-offset:4px}
@media(max-width:650px){.scene.city-scene{min-height:0;aspect-ratio:3/2}.city-scene .city-node{width:64px;min-height:44px;font-size:.61rem;padding:4px;gap:1px}.city-scene .city-node .ui-icon{width:16px;height:16px}.city-scene .scene-caption{padding:.5rem .7rem;font-size:.66rem}.city-scene .scene-caption small{font-size:.5rem}.city-scene .scene-label{font-size:.5rem;padding:.25rem .4rem;top:.4rem;left:.4rem}.delivery-board{padding:.6rem;gap:.4rem}.delivery-card{padding:.5rem;gap:.4rem}.delivery-card strong{font-size:.68rem}.delivery-card small{font-size:.58rem}.delivery-card>.ui-icon{width:22px}.delivery-check{display:none}}
@media(max-width:370px){.delivery-board{grid-template-columns:1fr}.city-scene .city-node{width:58px}.city-scene .scene-label{max-width:42%}}

.sea-world{min-width:0}.sea-scene{border-radius:24px 24px 0 0}.sea-scene .ship{width:clamp(100px,11vw,150px);height:auto;aspect-ratio:3/2;display:block;border:0;border-radius:0;background:none;box-shadow:none;transform:translate(-50%,-90%);filter:drop-shadow(0 6px 5px #001f3480);pointer-events:none}.ship img{display:block;width:100%;height:100%;object-fit:contain}.sea-world .cargo.inventory{position:static;display:flex;flex-wrap:wrap;border:1px solid var(--line);border-top:0;border-radius:0 0 20px 20px;background:#102b33;padding:.9rem;gap:.5rem;min-height:64px}.inventory span{font-size:.74rem;background:#0a2430;padding:.5rem .7rem;line-height:1.4}.inventory span.new-cargo{background:#22463b;border-color:#9de3bd}.sea-scene .chart text{font-size:15px}.sea-scene .scene-caption{font-size:.82rem}
@media(max-width:650px){.sea-scene .ship{width:104px}.sea-world .cargo.inventory{padding:.6rem;gap:.35rem}.inventory span{font-size:.65rem;padding:.4rem .5rem}.sea-scene .scene-caption{padding:.7rem 1rem}}

.source-photos .evidence-image{position:relative;display:block;border:0;border-radius:0;padding:0;min-height:0;background:#0c222a}.source-photos .evidence-image img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}.evidence-image>span{position:absolute;right:7px;bottom:7px;display:flex;gap:4px;align-items:center;background:#082733eb;border:1px solid #ffffff65;border-radius:7px;padding:4px 6px;font-size:.6rem}.evidence-image .ui-icon{width:16px;height:16px}.source-photos figcaption{line-height:1.4;min-height:3em}.evidence-scene{min-height:430px}.evidence-scene .source-photos{min-height:430px;padding-bottom:5rem}
#image-detail{width:min(1100px,95vw);max-width:none;max-height:94svh;padding:1.2rem;overflow:auto}#image-detail-picture{display:block;width:100%;max-height:70svh;object-fit:contain;background:#081f29;border-radius:10px}.image-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.image-detail-heading h2{font-size:1.6rem;margin:0}#image-detail p{font-size:.8rem;color:var(--muted);margin:.8rem 0 0}
@media(max-width:650px){.evidence-scene,.evidence-scene .source-photos{min-height:340px}.evidence-scene .source-photos{padding:3.2rem .6rem 4rem;gap:.4rem}.source-photos figcaption{font-size:.62rem}.image-detail-heading h2{font-size:1.25rem}.image-detail-heading button{font-size:.75rem}#image-detail{padding:.8rem}.evidence-image>span{font-size:.52rem;right:4px;bottom:4px}}

/* A compact memory of actual decisions, with words beside every symbol. */
.decision-trail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:1rem 1.3rem;padding:0}.decision-trail>div{position:relative;min-width:0;padding:1rem;background:linear-gradient(145deg,#1d4248,#0b2832);border:1px solid #efd09036;border-radius:14px}.decision-trail .ui-icon{display:block;width:30px;height:30px;color:var(--gold);margin-bottom:.7rem}.decision-trail dt{color:var(--muted);font-size:.7rem;margin-bottom:.35rem}.decision-trail dd{font-size:.86rem;line-height:1.5;font-weight:600;margin:0;overflow-wrap:anywhere}.instruction .decision-trail{grid-template-columns:1fr;margin:1rem 0}.instruction .decision-trail>div{padding:.8rem .8rem .8rem 3.3rem}.instruction .decision-trail .ui-icon{position:absolute;left:.8rem;top:1rem;width:25px;height:25px}.record-actions{padding:0 1.3rem 1.2rem}.record-actions button{font-size:.8rem}.hint-example{border-left:2px solid var(--gold);padding-left:.8rem;margin:.6rem 0}.hint-example summary{font-size:.8rem}.record-learning p{line-height:1.6;color:var(--muted)}.print-note{display:none}.record-writing label{display:block;line-height:1.5;margin-bottom:.6rem}
body.contrast .decision-trail>div{background:#000;border-color:#fff}
@media(max-width:600px){.decision-trail{grid-template-columns:1fr}.decision-trail>div{padding:.8rem .8rem .8rem 3.3rem}.decision-trail .ui-icon{position:absolute;left:.8rem;top:1rem;width:25px;height:25px}.decision-trail dt{margin-bottom:.1rem}.record-actions button{width:100%}}
@media print{.record-writing,.record-actions{display:none!important}.record .print-note:not(:empty){display:block;white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid #aaa;padding-top:.8rem}.print-note:not(:empty):before{content:'Mi explicación o pregunta';display:block;font-weight:bold;margin-bottom:.5rem}.decision-trail>div{background:#fff;border-color:#aaa;color:#111}.decision-trail dt,.decision-trail .ui-icon{color:#333}.decision-trail{grid-template-columns:repeat(3,minmax(0,1fr))}.record-learning{display:none}}

[hidden]{display:none!important}.journey-finale{border-color:var(--gold);background:linear-gradient(120deg,#1b4346,#122e36)}.journey-finale>.record-header>.ui-icon{width:42px;height:42px;color:var(--gold)}.museum-layout{display:grid;grid-template-columns:minmax(180px,1fr) 1.3fr;gap:1.2rem;padding:0 1.3rem 1.3rem}.museum-layout figure{margin:0}.museum-layout img{display:block;width:100%;height:auto;border-radius:12px}.museum-layout figcaption{font-size:.72rem;line-height:1.5;margin-top:.6rem}.museum-layout p{font-size:.9rem;line-height:1.55}.museum-layout summary{min-height:44px;cursor:pointer;padding:.7rem 0}.journey-finale .help{margin:1rem 1.3rem}@media(max-width:650px){.museum-layout{grid-template-columns:1fr}.museum-layout img{max-width:360px;margin:auto}}

/* Chapter direction: nautical enamel, warm civic stone, and museum indigo.
   All animated cues are finite and communicate entry or a new decision. */
body[data-view]{--chapter:#9ddfd9;--chapter-rgb:157,223,217;--panel:#143d46;background:radial-gradient(ellipse at 10% 0%,#174551 0,transparent 50%),#091d25}
body[data-view=play][data-chapter=city]{--chapter:#efcf98;--chapter-rgb:239,207,152;--panel:#394238;background:radial-gradient(ellipse at 10% 0%,#394437 0,transparent 52%),#111f22}
body[data-view=play][data-chapter=clues]{--chapter:#d6c4f1;--chapter-rgb:214,196,241;--panel:#34334a;background:radial-gradient(ellipse at 10% 0%,#35394e 0,transparent 52%),#101c29}
body[data-view] .topbar{background:#091d25e8;box-shadow:0 8px 30px #0002}
body[data-view] nav button[aria-current=page]{background:#ffffff0d;border-color:#ffffff40;color:#ffe0a1}
#main .chapter-heading{display:flex;align-items:center;gap:1rem;min-width:0}
#main .chapter-emblem{flex:0 0 auto;display:grid;place-items:center;width:66px;height:66px;color:var(--chapter);border:1px solid rgba(var(--chapter-rgb),.5);border-radius:22px;background:linear-gradient(145deg,rgba(var(--chapter-rgb),.14),#081f29);box-shadow:inset 0 0 0 5px #ffffff04,0 8px 24px #0002}
#main .chapter-emblem .ui-icon{width:34px;height:34px}
#main .lesson[data-chapter=city] .chapter-emblem{border-radius:14px 14px 26px 26px}
#main .lesson[data-chapter=clues] .chapter-emblem{border-radius:50%}
#main .lesson .eyebrow{color:var(--chapter)}
#main .lesson .progress span.done{background:var(--chapter);box-shadow:0 0 10px rgba(var(--chapter-rgb),.14)}
#main .lesson .instruction{background:linear-gradient(145deg,var(--panel),#102732 85%);border-color:rgba(var(--chapter-rgb),.26);box-shadow:0 20px 55px #0003,inset 0 1px #ffffff0a;position:relative}
#main .lesson .instruction:before{content:'';display:block;width:42px;height:3px;background:var(--chapter);border-radius:9px;margin:0 0 1.25rem}
#main .lesson .choice{border-color:#ffffff24;background:#081e2999;box-shadow:inset 0 1px #ffffff05;transition:border-color .18s,background .18s,box-shadow .18s}
#main .lesson .choice:hover:not(:disabled){border-color:var(--chapter);background:rgba(var(--chapter-rgb),.08)}
#main .lesson .choice.selected{border-color:var(--chapter);background:rgba(var(--chapter-rgb),.12);box-shadow:inset 3px 0 var(--chapter)}
#main .lesson .choice.selected:after{color:var(--chapter)}
#main .lesson .choice .ui-icon{color:var(--chapter)}
#main .lesson .primary{box-shadow:0 6px 22px #0003,inset 0 1px #fff8;transition:box-shadow .18s,background .18s}
#main .lesson .primary:hover:not(:disabled){box-shadow:0 8px 26px #0004,inset 0 1px #fff}
#main .lesson .feedback{border-color:var(--chapter);background:rgba(var(--chapter-rgb),.07)}
#main .scene{box-shadow:0 24px 60px #0004,inset 0 1px #ffffff20}
#main .scene-label{backdrop-filter:blur(8px);box-shadow:0 3px 15px #0002;letter-spacing:.02em}
#main .sea-scene:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 80% 0%,#ffe3ab33,transparent 55%),linear-gradient(135deg,transparent 42%,#b8f6ef12 46%,transparent 51%);opacity:.8}
#main .sea-scene.scene-intro:before{animation:sea-light 2.8s ease-out both}
#main .sea-scene .chart .route.active{stroke:#bdfff1;filter:drop-shadow(0 0 4px #5cc9d666)}
#main .sea-scene .route.decision-reveal{animation:sea-route 1.2s ease-out both}
#main .inventory{background:linear-gradient(110deg,#113a43,#102b33);box-shadow:0 15px 30px #0002}
#main .city-scene{border-color:#dcc69266}
#main .city-scene .city-node{border-color:#e6d29999;background:linear-gradient(150deg,#263d35f5,#102b30f5)}
#main .city-scene .city-node.connected{border-color:#eadea4;box-shadow:0 0 0 4px #f4dba120,0 5px 15px #0005}
#main .city-scene .city-line{stroke:#ffe2a3;stroke-width:5;filter:drop-shadow(0 1px 3px #4d3c21)}
#main .city-line.decision-reveal{stroke-dasharray:1;animation:road-build .75s cubic-bezier(.2,.7,.3,1) both}
#main .city-node.decision-reveal{animation:place-found .6s ease-out}
#main .delivery-board{background:linear-gradient(120deg,#2c3d32,#122c30);border-color:#d6bf8738}
#main .delivery-card.delivered{background:#294638;border-color:#bdda9e66}
#main .delivery-card.decision-reveal{animation:decision-light .6s ease-out}
#main .evidence-scene{background:radial-gradient(ellipse at 50% -10%,#74739555,transparent 65%),linear-gradient(140deg,#252d40,#101d29);border-color:#d6c4f14a}
#main .evidence-scene:before{content:'';position:absolute;inset:12px;border:1px solid #d6c4f11c;border-radius:16px;pointer-events:none;z-index:-1}
#main .source-photos{gap:1rem;padding-left:1.4rem;padding-right:1.4rem;align-items:center}
#main .source-photos figure{background:linear-gradient(145deg,#313747,#182633);border:1px solid #d6c4f14d;box-shadow:0 16px 30px #0005,inset 0 1px #ffffff15;border-radius:12px;position:relative}
#main .source-photos figcaption{padding:.85rem .7rem;color:#f1e6d5;letter-spacing:.01em}
#main .source-photos figure:has([aria-pressed=true]){border-color:#c8e6be;box-shadow:0 16px 30px #0004,0 0 0 3px #c8e6be12}
#main .source-photos figure:has(.decision-reveal){animation:evidence-found .65s ease-out}
#main .source-photos [data-observe]{background:#142c36;border-top:1px solid #d6c4f133}
#main .source-photos [data-observe][aria-pressed=true]{background:#284339;color:#e0f3d7}
#main .scene-intro .source-photos figure{animation:exhibit-enter .5s ease-out both}
#main .scene-intro .source-photos figure:nth-child(2){animation-delay:.08s}
#main .choice.decision-reveal{animation:decision-light .45s ease-out}
#main .lesson .complete-seal{animation:none;border-color:var(--chapter);color:var(--chapter);background:radial-gradient(circle,rgba(var(--chapter-rgb),.17),transparent);width:84px;height:84px;position:relative;box-shadow:0 0 0 7px rgba(var(--chapter-rgb),.04)}
#main .lesson .complete-seal.reward-entry{animation:discovery-seal .65s cubic-bezier(.16,1,.3,1) both}
#main .lesson .complete-seal:after{content:'';position:absolute;inset:-8px;border:1px solid rgba(var(--chapter-rgb),.2);border-radius:50%;pointer-events:none}
#main .lesson[data-reward=true] .instruction{border-top:3px solid var(--chapter)}
#main .map-hero{border:1px solid #d7e8df38;box-shadow:0 24px 60px #0004,inset 0 0 0 8px #ffffff03;min-height:420px}
#main .chapter-grid{gap:1.25rem;margin:1.8rem 0}
#main .chapter-card{--card-accent:#a7e5dc;box-shadow:0 15px 30px #0003;border-color:#a7e5dc40;background:linear-gradient(150deg,#183c43,#0c2732)}
#main .chapter-card[data-chapter=city]{--card-accent:#edcf98;border-color:#edcf9840;background:linear-gradient(150deg,#364236,#142d30)}
#main .chapter-card[data-chapter=clues]{--card-accent:#d6c4f1;border-color:#d6c4f140;background:linear-gradient(150deg,#343a4e,#162b37)}
#main .chapter-card .eyebrow{color:var(--card-accent)}
#main .chapter-card .chapter-art{padding:0;position:relative;overflow:hidden;min-width:0}
#main .chapter-art:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 50%,#081d2977);pointer-events:none}
#main .chapter-art img{display:block;aspect-ratio:1.85;transition:transform .45s ease;object-fit:cover}
#main .chapter-medallion{position:absolute;bottom:12px;left:16px;width:48px;height:48px;display:grid;place-items:center;color:var(--card-accent);background:#0b2733ec;border:1px solid var(--card-accent);border-radius:15px;z-index:1;box-shadow:0 5px 15px #0004}
#main .chapter-card[data-locked=true]{border-style:dashed}
#main .chapter-card[data-locked=true] .chapter-medallion{background:#24333a}
#main .book-page .record{box-shadow:0 12px 25px #0002}
#main .book-page .record-header{background:linear-gradient(100deg,#ffffff05,transparent)}
#main .book-page .record-header img{border:1px solid #ffffff30}
#main .journey-finale{background:radial-gradient(ellipse at 100% 0%,#e9c87d19,transparent 60%),linear-gradient(130deg,#20494a,#122f39);border-top:3px solid var(--gold)}
body[data-view] dialog[open]{animation:dialog-reveal .22s ease-out;box-shadow:0 25px 90px #0008}
body[data-view] dialog::backdrop{backdrop-filter:blur(5px)}
@media(hover:hover) and (pointer:fine){#main .chapter-card[data-locked=false]:hover .chapter-art img{transform:scale(1.035)}}
@keyframes sea-light{from{opacity:.2;transform:translateX(-3%)}to{opacity:.8;transform:none}}
@keyframes sea-route{from{stroke-dashoffset:32;opacity:.35}to{stroke-dashoffset:0;opacity:1}}
@keyframes road-build{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes place-found{from{box-shadow:0 0 0 13px #f4dba100}45%{box-shadow:0 0 0 7px #f4dba14a}to{box-shadow:0 0 0 4px #f4dba120}}
@keyframes evidence-found{from{box-shadow:0 0 0 0 #c8e6be50}to{box-shadow:0 0 0 12px #c8e6be00}}
@keyframes exhibit-enter{from{opacity:.4;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes decision-light{from{box-shadow:inset 0 0 0 1px var(--chapter),0 0 0 4px rgba(var(--chapter-rgb),.15)}to{box-shadow:inset 0 0 0 1px transparent,0 0 0 0 transparent}}
@keyframes discovery-seal{from{opacity:0;transform:scale(.85) rotate(-12deg)}to{opacity:1;transform:none}}
@keyframes dialog-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:900px){#main .chapter-art img{height:100%;aspect-ratio:auto;min-height:190px}#main .chapter-heading{gap:.7rem}#main .chapter-emblem{width:52px;height:52px;border-radius:16px}#main .chapter-emblem .ui-icon{width:28px;height:28px}}
@media(max-width:480px){#main .chapter-art img{height:180px;min-height:0}#main .map-hero{min-height:350px}#main .chapter-emblem{width:42px;height:42px;border-radius:13px}#main .chapter-emblem .ui-icon{width:24px;height:24px}#main .chapter-heading{gap:.6rem;align-items:flex-start}#main .lesson-head{flex-wrap:wrap}#main .lesson-head>.actions{width:100%}#main .source-photos{gap:.5rem;padding-left:.6rem;padding-right:.6rem}#main .source-photos figcaption{padding:.6rem}#main .lesson .instruction:before{margin-bottom:.8rem}}
body.contrast[data-view]{background:#000;--chapter:#fff;--chapter-rgb:255,255,255}
body.contrast[data-view] #main .instruction,body.contrast[data-view] #main .chapter-card,body.contrast[data-view] #main .choice,body.contrast[data-view] #main .source-photos figure{background:#000;border-color:#fff}
body.contrast[data-view] #main .choice.selected{background:#212121;border-color:#ffe599;box-shadow:inset 4px 0 #ffe599}
body.reduced #main *,body.reduced #main *:before,body.reduced #main *:after{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){#main *,#main *:before,#main *:after,dialog[open]{animation:none!important;transition:none!important}}
@media print{#main .chapter-emblem,#main .chapter-medallion{display:none}#main .journey-finale,#main .record,#main .record-header{background:#fff!important;box-shadow:none;color:#111}}

/* Reading pass, 2026-11-03: keep evidence legible on narrow screens. */
#main .delivery-card strong{font-size:.85rem;line-height:1.4}
#main .delivery-card small{font-size:.76rem;line-height:1.5}
#main .source-photos figcaption{font-size:.82rem;line-height:1.5}
#main .source-photos [data-observe]{font-size:.85rem;min-height:48px;white-space:normal}
#main .choice{padding-right:1.6rem}
#main .choice.selected:after{right:10px;top:10px}
@media(max-width:650px){
 #main .delivery-board{grid-template-columns:1fr}
 #main .delivery-card{padding:.7rem;gap:.7rem}
 #main .delivery-check{display:block}
 #main .evidence-scene{min-height:0}
 #main .evidence-scene .source-photos{grid-template-columns:1fr;min-height:0;height:auto;padding:4rem 1rem 1rem}
 #main .evidence-scene .scene-caption{position:relative;padding:1rem;font-size:.85rem;background:#102732}
 #main .evidence-scene .scene-caption small{font-size:.75rem}
 #main .evidence-scene .source-photos figure{width:100%;max-width:440px;justify-self:center}
 #main .evidence-image>span{font-size:.75rem;padding:6px 9px}
 #main .evidence-scene .scene-label{font-size:.7rem}
 #main .chapter-card h2{overflow-wrap:anywhere}
}
body.large #main .source-photos{grid-template-columns:1fr;height:auto}
body.large #main .evidence-scene .scene-caption{position:relative}
body.large #main .evidence-scene .source-photos{padding-bottom:1rem}
body.large #main .delivery-board{grid-template-columns:1fr}
@media print{#main .source-photos{display:block}}


/* Curriculum edition: calm route, geographic and object-based learning. */
.curriculum-home{max-width:1050px}.curriculum-home h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.1}.curriculum-route{list-style:none;padding:0;display:grid;gap:14px;margin:32px 0}.curriculum-route button{display:flex;width:100%;gap:20px;text-align:left;align-items:center;padding:22px;background:linear-gradient(120deg,#163c43,#102c34);border:1px solid #8a8057;border-radius:18px;color:#fff3d9}.curriculum-route button>span:nth-child(2){flex:1}.curriculum-route strong,.curriculum-route small{display:block}.curriculum-route small{margin-top:7px;color:#d1dedc}.curriculum-route .ui-icon{float:left;margin-right:10px}.route-number{display:grid;place-items:center;border:1px solid #dec07a;border-radius:50%;width:44px;height:44px;flex-shrink:0;color:#f5d288}.curriculum-route button:disabled{opacity:.6}.course-page{max-width:1300px;margin:auto;padding:24px}.course-heading h1{font-size:clamp(1.8rem,4vw,3rem);margin:10px 0 20px}.course-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:28px;align-items:start}.course-visual{margin:0;padding:16px;border:1px solid #637d78;border-radius:20px;background:#11333d;overflow:hidden}.course-visual img{width:100%;height:auto;display:block;border-radius:12px}.course-visual figcaption{font-size:.85rem;line-height:1.5;margin-top:12px;color:#d4ded8}.museum-visual img{max-height:430px;object-fit:contain;background:#faf9f4}.course-context{font-size:1.08rem;line-height:1.65;margin-top:0}.course-task h2{font-size:1.35rem}.course-task .choices{display:grid;grid-template-columns:1fr;gap:12px}.course-task .choice{padding:18px;min-height:60px}.course-task>.primary{margin-top:18px}.course-task .feedback{line-height:1.55}.course-end>.course-visual{max-width:420px;margin:20px 0}.course-end label{display:block;margin:20px 0 8px}.course-end textarea{width:100%;min-height:130px}.course-end select{max-width:100%;padding:12px}.course-end>.button{margin:14px}.course-table{overflow:auto}.course-table td{vertical-align:top}.time-visual{text-align:center;padding:40px 24px}.time-visual strong{display:block;font-size:2rem;margin:15px}.time-line{height:80px;width:2px;background:#dfbd73;margin:auto}.comparison{display:grid;gap:20px;text-align:center;padding:30px}.comparison article{border:1px solid #82938d;border-radius:16px;padding:20px}.comparison strong{display:block;font-size:1.4rem;margin-top:10px}.curriculum-route button:hover:not(:disabled){border-color:#ffe0a0;background:#214b50}.curriculum-route button:focus-visible,.course-page button:focus-visible{outline:3px solid #ffe0a0;outline-offset:4px}.course-page .choice.selected{border:2px solid #f0ca7f}.contrast .course-visual,.contrast .curriculum-route button{background:#07171c;color:white}.large .course-layout{grid-template-columns:1fr}.course-page{animation:course-enter .3s ease-out}@keyframes course-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.reduced .course-page{animation:none}@media(prefers-reduced-motion:reduce){.course-page{animation:none}}@media(max-width:760px){.course-layout{grid-template-columns:1fr}.course-page{padding:16px}.course-visual{max-width:100%}.curriculum-route button{padding:16px;gap:12px}.course-heading .actions{flex-wrap:wrap}.course-context{font-size:1rem}.course-task h2{font-size:1.2rem}}@media print{.course-table{overflow:visible}.curriculum-route button{color:black;background:white}}
.course-task .choice{display:block;text-align:left}.course-task .choice>span{display:block;width:100%;padding-right:1.4rem}.map-visual img{aspect-ratio:900 / 440}.map-visual img[src$="greece.svg"]{aspect-ratio:900 / 650}.museum-visual img{aspect-ratio:1}.course-visual>img{object-fit:contain}

.reflection-card{margin:24px 0;padding:24px;border:1px solid #b69a62;border-radius:20px;background:linear-gradient(130deg,#173c43,#102c34)}.reflection-card label{display:block;margin:18px 0 8px}.reflection-card textarea{box-sizing:border-box;width:100%;min-height:88px;padding:14px;font:inherit;line-height:1.5;border:1px solid #78918c;border-radius:12px;background:#0a252e;color:#f5f2e5}.reflection-card textarea:focus-visible{outline:3px solid #efce86;outline-offset:3px}.reflection-record{border-top:1px solid #687972;margin-top:18px;padding-top:12px;overflow-wrap:anywhere}.reflection-card button[aria-pressed=true]{border-color:#efce86}.contrast .reflection-card{background:#07171c}@media(max-width:600px){.reflection-card{padding:16px}}@media print{.reflection-card{background:white;color:black}.reflection-card textarea{color:black;background:white}}
