@charset "UTF-8";
:root{--paper:#f7f8f3;--ink:#283c34;--muted:#687568;--line:#dce1d7;--green:#345c49;--light:#edf1e8;--water:#e5efed;--warm:#b17b48;--serif:Georgia,'Times New Roman',serif;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a,input{ -webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button{border:0;background:none}button:disabled{cursor:default;opacity:.45}a{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b17b48;outline-offset:4px}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}
.header{height:96px;max-width:1600px;margin:auto;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:28px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:24px;font-weight:600;letter-spacing:-1px}.brand svg{width:30px;fill:none;stroke:var(--green);stroke-width:1.3}.brand-dot{color:#9fae91}.header nav{display:flex;gap:30px;margin-left:40px;height:100%;align-items:stretch}.nav-button{font-size:13px;padding:0 3px;position:relative;color:var(--muted)}.nav-button.active{color:var(--ink)}.nav-button.active:after{content:'';height:2px;background:var(--green);position:absolute;bottom:-1px;left:0;right:0}.header-note{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.tiny-dot{display:inline-block;width:6px;height:6px;background:#90a584;border-radius:50%;vertical-align:middle}.nav-button .tiny-dot{margin-left:4px}
.workspace{max-width:1504px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(345px,1fr);min-height:calc(100svh - 158px)}.atlas{position:relative;padding:32px 40px 0 0;border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.atlas-heading{display:flex;justify-content:space-between;align-items:center;padding:0 0 0 40px;z-index:1}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2.2px;color:var(--muted)}.atlas-country{font-family:var(--serif);font-size:17px}.atlas-country span{font-family:Arial,sans-serif;font-size:8px;color:var(--muted);letter-spacing:1px;margin-left:12px}.map-container{position:relative;flex:1;min-height:520px;overflow:hidden;margin:2px 0 0 0;background:radial-gradient(ellipse at 52% 45%,#e6efecaa,transparent 72%)}#map{display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:none;user-select:none}#map.pannable{cursor:grab}#map.dragging{cursor:grabbing}.neighbor-land{fill:#eef0e7;stroke:#dde3d7;stroke-width:.7}.province{fill:#d8e0cc;stroke:#f7f8f3;stroke-width:1.2;stroke-linejoin:round;vector-effect:non-scaling-stroke;transition:fill .18s}.province.interactive{cursor:pointer}.province.interactive:hover,.province.interactive:focus{fill:#bacbb1;outline:none}.province.selected{fill:#8eaa83}.province.target{fill:#93ac89;stroke:#526f50;stroke-width:1.6}.province.correct{fill:#7eaa87;stroke:#466e4d;stroke-width:1.8}.province.wrong{fill:#d2a48c;stroke:#a56e50;stroke-width:1.8}.lakes{fill:var(--water);stroke:#f7f8f3;stroke-width:1;vector-effect:non-scaling-stroke}.sea-label{font-size:11px;letter-spacing:5px;fill:#8da6a0;font-family:Georgia,serif}.neighbor-label{font-size:8px;letter-spacing:3px;fill:#b5bcae}.city-hit{fill:transparent;stroke:none}.city-dot{fill:#fafbf6;stroke:#7b9180;stroke-width:1.5;vector-effect:non-scaling-stroke;transition:fill .15s}.city-point{outline:none}.city-point.interactive{cursor:pointer}.city-point.interactive:hover .city-dot,.city-point:focus .city-dot{fill:#b4c7a5;stroke:#345c49;stroke-width:3}.city-point.selected .city-dot{fill:#345c49;stroke:#fff;stroke-width:2}.city-point.target .city-dot{fill:#345c49;stroke:#fff;stroke-width:2}.city-point.correct .city-dot{fill:#38704c;stroke:#fff;stroke-width:2}.city-point.wrong .city-dot{fill:#ad775b;stroke:#fff;stroke-width:2}.target-ring{fill:none;stroke:#345c49;stroke-width:1;opacity:.45;vector-effect:non-scaling-stroke}.city-number{fill:#47653d;font-size:8px;text-anchor:middle;dominant-baseline:central;pointer-events:none;font-family:Arial,sans-serif}.map-answer{font-size:12px;fill:var(--ink);font-weight:600;paint-order:stroke;stroke:var(--paper);stroke-width:4px;stroke-linejoin:round;pointer-events:none}.compass{position:absolute;top:36px;left:42px;display:flex;flex-direction:column;align-items:center;gap:6px;color:#8e9c8c;font-size:9px}.compass svg{width:18px;height:32px;fill:#b3c0ab;stroke:#8e9c8c;stroke-width:.7}.map-tools{position:absolute;right:18px;bottom:80px;display:flex;flex-direction:column;border:1px solid #d8dfd2;border-radius:8px;overflow:hidden;background:#f7f8f3e8;box-shadow:0 3px 10px #2f493308}.map-tools button{width:35px;height:35px;font-size:20px}.map-tools button+button{border-top:1px solid var(--line)}.map-caption{position:absolute;bottom:22px;left:40px;right:16px;display:flex;justify-content:space-between;gap:16px;align-items:center;pointer-events:none;font-size:11px;color:var(--muted)}.map-caption>span:first-child{max-width:65%;line-height:1.5}.map-scale{font-size:9px;white-space:nowrap}.atlas-footer{margin-left:40px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);height:47px;gap:12px;font-size:8px;color:var(--muted);letter-spacing:1.1px}.atlas-footer button{font-size:9px;letter-spacing:0;padding:8px 0}.panel{padding:48px 42px 28px;align-self:center;min-width:0}.panel h1{font-family:var(--serif);font-weight:400;font-size:46px;letter-spacing:-1.6px;line-height:1.07;margin:17px 0 17px}.panel h1 em{font-weight:400;color:#66805b}.intro{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 27px;max-width:340px}.section-label{font-size:10px;font-weight:600;letter-spacing:1.3px;text-transform:uppercase;display:block;margin:21px 0 11px;color:#6c786c}.topic-list{display:flex;flex-direction:column;gap:8px}.topic-card{border:1px solid var(--line);border-radius:9px;padding:12px 14px;display:flex;align-items:center;text-align:left;gap:13px;background:#f9faf6;transition:background .15s,border-color .15s;width:100%}.topic-card.selected{background:#edf1e7;border-color:#a4b797}.topic-card .topic-icon{display:flex;align-items:center;justify-content:center;width:33px;height:33px;flex-shrink:0;color:#68815b}.topic-icon svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}.topic-name{display:block;font-size:13px;font-weight:600;margin-bottom:4px}.topic-desc{display:block;font-size:10px;color:var(--muted)}.radio{width:15px;height:15px;border:1px solid #cbd4c4;border-radius:50%;margin-left:auto;flex-shrink:0}.selected .radio{border:4px solid #66805b;background:#fff}.segmented{display:flex;border:1px solid var(--line);padding:4px;border-radius:8px;background:#ecefe8;gap:4px}.segmented button{flex:1;font-size:11px;line-height:1.4;padding:9px 5px;border-radius:5px;color:#7b857b}.segmented button.selected{background:var(--paper);color:var(--ink);box-shadow:0 1px 3px #203f2510}.mode-row{display:flex;align-items:center;justify-content:space-between;margin:16px 0;font-size:11px;color:var(--muted)}.mode-row select{border:0;background:transparent;color:var(--ink);font:inherit;padding:5px;max-width:170px}.primary{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--green);color:#fff;border-radius:7px;padding:15px 18px;font-size:12px;min-height:47px}.primary .arrow{font-size:18px;font-weight:400}.small-note{font-size:10px;color:var(--muted);text-align:center;line-height:1.7;margin:12px 0 0}.secondary{border:1px solid var(--line);border-radius:7px;padding:12px 16px;width:100%;font-size:12px;margin-top:10px;background:#fafbf7}.resume{padding:12px 14px;border:1px solid #b9c6ae;background:#edf1e7;border-radius:7px;margin:18px 0;font-size:11px;line-height:1.6}.resume button{text-decoration:underline;padding:3px 0;font-weight:600}.quiz-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);margin-bottom:12px}.quiz-top button{font-size:11px;padding:6px 0}.progress-track{display:flex;gap:5px;margin:12px 0 31px}.progress-step{height:3px;background:#e0e5d9;flex:1;border-radius:2px}.progress-step.current{background:#9bad90}.progress-step.good{background:#517b56}.progress-step.bad{background:#c1977e}.panel.quiz h1{font-size:36px;line-height:1.17;letter-spacing:-.8px;margin-top:13px}.question-category{font-size:10px;letter-spacing:1.8px;color:#8a9584;font-weight:500}.quiz-help{font-size:12px;color:var(--muted);line-height:1.8;margin:17px 0 22px}.selection-box{min-height:60px;display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:7px;background:#f9faf6;padding:14px;font-size:12px;color:var(--muted);margin:16px 0}.selection-box.has-selection{border-color:#9caf90;color:var(--green);background:#eef2e9}.selection-circle{width:24px;height:24px;border:1px solid #a7b79b;border-radius:50%;display:grid;place-items:center;color:#567147;font-size:10px;flex-shrink:0}.options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:20px 0}.option{text-align:left;border:1px solid var(--line);border-radius:6px;padding:10px 10px;font-size:11px;min-height:41px;display:flex;align-items:center;gap:8px;background:#fafbf7}.option .key{font-size:9px;color:#9aa28f;min-width:9px}.option.selected{border-color:#7d9c70;background:#e8efdf;color:#33542b}.option.correct{border-color:#7a9d75;background:#e3eddd;color:#2e5f35}.option.wrong{border-color:#c29b83;background:#f0e4db;color:#936447}.option:disabled{opacity:1}.feedback{margin:20px 0;border-radius:8px;background:#e9efdf;padding:17px;font-size:12px;line-height:1.7;border:1px solid #c6d5bb}.feedback.wrong{background:#f3ece3;border-color:#e3d3bf}.feedback strong{display:block;font-size:14px;margin-bottom:4px}.feedback p{margin:3px 0;color:#68745e}.feedback.wrong p{color:#89745c}.hint-button{font-size:11px;color:var(--muted);text-decoration:underline;text-underline-offset:3px;padding:10px 0;margin:4px 0}.hint{font-size:12px;line-height:1.7;padding:12px;background:#edf0e7;border-radius:6px;margin:10px 0}.keyboard-map{margin:15px 0;font-size:10px;color:var(--muted)}.keyboard-map summary{cursor:pointer;padding:7px 0}.point-choices{display:flex;gap:5px;flex-wrap:wrap;padding:10px 0}.point-choice{border:1px solid var(--line);border-radius:4px;padding:7px;min-width:28px;background:#f9faf6}.point-choice.selected{border-color:var(--green);background:#dfe9d8}.keyboard-tip{font-size:10px;color:var(--muted);margin-top:12px;line-height:1.6}.score{font-family:var(--serif);font-size:78px;letter-spacing:-4px;margin:22px 0 3px;line-height:1}.score span{font-size:30px;color:#9ca990;letter-spacing:-1px}.result-list{margin:23px 0;list-style:none;padding:0;border-top:1px solid var(--line)}.result-list li{font-size:12px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:11px 0}.result-list .result-icon{color:#57764a;width:15px}.result-list li.bad .result-icon{color:#b18a6c}.result-list small{margin-left:auto;color:var(--muted);font-size:10px}.result-copy{font-size:12px;line-height:1.8;color:var(--muted)}.site-footer{border-top:1px solid var(--line);max-width:1600px;margin:auto;padding:20px 48px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#939b8d;gap:20px}.site-footer>span{font-family:var(--serif);font-style:italic;font-size:12px}.site-footer div{display:flex;align-items:center;gap:23px}.site-footer button{font-size:10px;color:var(--muted)}
dialog{border:1px solid var(--line);border-radius:15px;background:var(--paper);color:var(--ink);padding:28px;max-width:590px;width:calc(100% - 32px);max-height:85svh;box-shadow:0 20px 90px #20352522}dialog::backdrop{background:#253e354d;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.dialog-top h2{font-family:var(--serif);font-size:29px;font-weight:400;margin:0 0 16px}.icon-button{font-size:26px;line-height:1;padding:0 3px}#dialog-body{font-size:13px;line-height:1.8;color:#68745e}#dialog-body h3{font-size:13px;color:var(--ink);margin:25px 0 8px}#dialog-body a{text-underline-offset:3px}#dialog-body p{margin:10px 0}.progress-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat{border:1px solid var(--line);border-radius:8px;padding:15px 10px;text-align:center}.stat strong{font-family:var(--serif);font-size:30px;display:block;font-weight:400;color:var(--ink)}.stat span{font-size:10px}.knowledge-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:10px 0;font-size:12px}.knowledge-row small{color:var(--muted);font-size:10px}.knowledge-label{font-size:10px;border-radius:20px;background:#e8eddf;padding:4px 9px;white-space:nowrap}.danger{color:#a56c50;font-size:11px;text-decoration:underline;margin-top:22px;padding:8px 0}.storage-warning{position:fixed;bottom:12px;left:12px;max-width:420px;background:#f2e5cd;border:1px solid #c5aa7b;border-radius:8px;padding:12px 16px;font-size:12px;line-height:1.6;z-index:3}.empty-progress{text-align:center;padding:25px 10px;color:var(--muted)}.loading{font-size:12px;color:var(--muted)}
@media(min-width:1505px){.atlas{padding-left:15px}.panel{padding-left:58px;padding-right:58px}}
@media(min-width:1000px) and (min-height:950px){.workspace{min-height:850px}.map-container{min-height:710px}}
@media(max-width:1100px){.header{padding:0 28px}.header-note{display:none}.header nav{margin-left:auto}.workspace{grid-template-columns:minmax(0,1.4fr) minmax(330px,1fr)}.panel{padding:35px 28px}.atlas{padding-right:15px}.atlas-heading{padding-left:25px}.atlas-footer{margin-left:25px}.compass{left:25px}.map-caption{left:25px}.panel h1{font-size:41px}.site-footer{padding:18px 28px}}
@media(max-width:740px){.header{height:74px;padding:0 20px;gap:15px}.brand{font-size:21px;gap:8px}.brand svg{width:25px}.header nav{gap:18px}.nav-button{font-size:11px}.workspace{display:flex;flex-direction:column;min-height:0}.atlas{order:2;border:0;border-top:1px solid var(--line);padding:20px 16px 0;min-height:450px}.atlas-heading{padding:0 5px}.atlas-country{font-size:15px}.atlas-country span{font-size:7px}.map-container{min-height:470px;flex:auto}.atlas-footer{margin-left:5px;font-size:7px}.panel{order:1;align-self:stretch;padding:28px 24px 25px}.panel h1{font-size:38px;margin-top:12px}.intro{max-width:100%;margin-bottom:19px}.topic-list{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.topic-card{display:block;padding:12px 9px;position:relative;min-height:109px}.topic-card .topic-icon{height:25px;width:25px;margin-bottom:9px}.topic-card .topic-icon svg{width:23px}.topic-name{font-size:11px}.topic-desc{font-size:9px;line-height:1.6}.topic-card .radio{position:absolute;right:9px;top:14px;width:12px;height:12px}.selected .radio{border-width:3px}.section-label{margin-top:18px}.mode-row{margin:11px 0}.panel.quiz{padding-top:20px;padding-bottom:20px}.panel.quiz h1{font-size:30px;margin:12px 0}.quiz-help{margin:12px 0;font-size:11px}.progress-track{margin:9px 0 19px}.options{margin:14px 0;gap:6px;grid-template-columns:1fr 1fr}.option{padding:9px;font-size:11px;min-height:38px}.selection-box{margin:12px 0;min-height:49px;padding:10px}.feedback{margin:14px 0;padding:13px}.keyboard-map{margin:7px 0}.keyboard-tip{display:none}.map-caption{left:8px;right:5px;font-size:10px;bottom:15px}.compass{top:30px;left:8px}.map-tools{right:5px;bottom:65px}.site-footer{padding:18px 20px}.site-footer>span{display:none}.site-footer div{width:100%;justify-content:space-between}.score{font-size:64px}.result-list{margin:18px 0}.result-list li{padding:9px 0}.atlas.quiz-map{min-height:480px}.atlas.quiz-map .map-container{min-height:440px}.header .brand-dot{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.city-point.selected .city-number,.city-point.correct .city-number,.city-point.wrong .city-number{fill:#fff}

@media(max-width:740px){
 .panel.quiz{display:contents}
 .question-header{order:1;padding:20px 24px 0}
 .question-controls{order:3;padding:0 24px 24px}
 .question-header h1{font-family:var(--serif);font-size:31px;font-weight:400;line-height:1.15;letter-spacing:-.6px;margin:12px 0}
 .question-header h1 em{color:#66805b;font-weight:400}
 .question-header .progress-track{margin-bottom:18px}
 .question-header .quiz-help{margin-bottom:5px}
 .atlas.quiz-map{order:2;border-top:0;min-height:0;padding-top:12px}
 .atlas.quiz-map .map-container{min-height:370px;height:370px}
 .atlas.quiz-map .atlas-heading,.atlas.quiz-map .atlas-footer{display:none}
 .atlas.quiz-map .map-caption{bottom:8px}
 .atlas.quiz-map .compass{top:12px}
 .atlas.quiz-map .map-tools{bottom:45px}
 .question-controls .options{margin-top:12px}
}

.province-number{font-size:10px;fill:#708463;text-anchor:middle;pointer-events:none;font-family:Arial,sans-serif}

/* Water remains legible when zooming, without taking clicks away from the map. */
#river-lines{pointer-events:none}
.river-line{fill:none;stroke:#a9c9cd;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.lakes{fill:#dcebee;stroke:#c4dadb;stroke-width:.6}
.city-dot{paint-order:stroke;stroke-width:1.7}

/* A quiet double rule contains the atlas without adding a heavy panel. */
.map-container{border:1px solid #607a66;border-radius:3px;margin-top:14px;margin-bottom:12px;margin-left:24px}
.map-container::after{content:'';position:absolute;inset:5px;border:1px solid #a3b29a;border-radius:1px;pointer-events:none;z-index:2}
#landscape,#province-outlines{pointer-events:none}
#nature-areas{fill:#91aa7a;opacity:.6}
#urban-areas{fill:#c2aa92;opacity:.42}
#province-outlines{fill:none;stroke:#f7f8f3;stroke-width:1.1;stroke-linejoin:round}
#province-outlines path{vector-effect:non-scaling-stroke}
.province-question #landscape{opacity:.48}
.map-legend{position:absolute;right:17px;top:18px;display:flex;gap:12px;padding:7px 9px;background:#f7f8f3e8;border-radius:4px;z-index:1;font-size:9px;color:#66735f;pointer-events:none}
.map-legend span{display:flex;align-items:center;gap:5px}
.map-legend i{display:inline-block;width:9px;height:9px;border-radius:2px}
.nature-swatch{background:#a9bc96}
.urban-swatch{background:#cdbba5}
#motorway-lines{pointer-events:none;fill:none;stroke:#9d927b;stroke-width:.85;stroke-linecap:round;stroke-linejoin:round;opacity:.52}
#motorway-lines path{vector-effect:non-scaling-stroke}
.province-question #motorway-lines{opacity:.35}
.motorway-swatch{height:1px!important;border-radius:0!important;background:#aa9e87;width:12px!important}
.map-caption{left:16px}
.compass{left:18px}
.topic-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.topic-card{display:block;position:relative;min-height:107px;padding:12px}
.topic-card .topic-icon{width:28px;height:28px;margin-bottom:8px}
.topic-card .radio{position:absolute;right:12px;top:16px}
.topic-card .topic-name{font-size:12px}
.topic-card .topic-desc{font-size:10px;line-height:1.5}
@media(max-width:1100px){.map-container{margin-left:12px}}
@media(max-width:740px){
  .map-container{margin-top:10px;margin-bottom:9px;margin-left:0}
  .map-legend{font-size:8px;gap:9px;top:12px;right:12px;padding:6px}
  .map-caption{left:12px;right:12px}
  .compass{left:14px}
  .topic-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topic-card{min-height:105px;padding:12px}
  .topic-card .radio{right:12px;top:16px}
  .atlas.quiz-map .map-caption{bottom:12px}
}

.country-switcher{display:flex;gap:4px;padding:4px;border:1px solid #c7d0bd;border-radius:8px;background:#edf0e7}
.country-switcher button{border:0;background:transparent;color:#53664e;padding:9px 15px;border-radius:5px;font:inherit;font-size:13px;cursor:pointer}
.country-switcher button.selected{background:#365542;color:#fff}
.inset-frame{fill:none;stroke:#899b83;stroke-width:.65;stroke-dasharray:3 4;pointer-events:none}
.map-legend[hidden]{display:none}
@media(max-width:740px){.header{height:auto;min-height:104px;flex-wrap:wrap;gap:12px;padding-top:15px;padding-bottom:15px}.country-switcher{margin-left:auto}.country-switcher button{padding:7px 15px}.atlas-footer>span:first-child{font-size:9px}}

.question-timer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin:18px 0;color:#365542;font-size:13px;font-variant-numeric:tabular-nums}
.question-timer #time-left{font-weight:700;font-size:19px}.question-timer progress{flex-basis:100%;width:100%;height:5px;accent-color:#63835b}.question-timer.urgent{color:#a54b35}.question-timer.urgent progress{accent-color:#a54b35}
.rank-badge{display:inline-block;padding:6px 12px;border-radius:20px;background:#e3ebda;color:#365542;font-size:13px;font-weight:600}
.atlas[hidden]{display:none}.workspace.profile-workspace{display:block}.profile-workspace .panel{max-width:1250px;margin:auto;padding:42px 36px}.profile-workspace h1{font-size:52px;margin:12px 0}.profile-workspace h2{font:400 26px Georgia,serif;color:#304b39}.profile-workspace h3{font-size:16px}.profile-grid{display:grid;grid-template-columns:2fr 1fr;gap:24px;margin:30px 0}.discovery-card,.preferences-card,.records-card{border:1px solid #ccd5c4;border-radius:12px;padding:24px;background:#fafbf6}.world-map{display:block;width:100%;height:auto;background:#f2f5ee;border-radius:8px;margin:16px 0}.world-map path{stroke:#fff;stroke-width:.5;fill-rule:evenodd}.discovery-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;color:#52684b}.country-discoveries{display:grid;grid-template-columns:1fr 1fr;gap:12px}.discovery-country{display:grid;gap:10px;text-align:left;border:1px solid #ccd5c4;border-radius:8px;padding:16px;background:#f1f5eb;color:#365542;font:inherit;cursor:pointer}.discovery-country span{font-size:12px}.discovery-country progress{width:100%;accent-color:#52754a}.preferences-card fieldset{border:0;padding:0;margin:20px 0}.preferences-card legend{font-weight:600;margin-bottom:15px}.preferences-card label{display:inline-flex;gap:8px;margin:0 20px 10px 0}.preferences-card input{accent-color:#365542}.preferences-card p,.records-card>p{font-size:13px;line-height:1.8;color:#67735f}.record-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.record-card{border:1px solid #dce2d3;border-radius:8px;padding:18px}.record-card>strong{display:block;font:28px Georgia,serif;margin:20px 0 10px}.record-card p{font-size:12px;line-height:1.8;color:#67735f}.records-card{margin-bottom:20px}
@media(max-width:740px){.profile-workspace .panel{padding:24px 18px}.profile-grid{grid-template-columns:1fr}.record-grid{grid-template-columns:1fr}.discovery-card,.preferences-card,.records-card{padding:16px}.country-discoveries{grid-template-columns:1fr}.profile-workspace h1{font-size:40px}.profile-workspace .intro{font-size:14px}}
.discovery-legend span{display:inline-flex;align-items:center;gap:5px}.discovery-legend i{display:inline-block;width:11px;height:11px;border:1px solid #cbd2c3;border-radius:3px}

/* Context never captures answers or obscures the state/city feedback. */
#us-landcover,#us-lakes,#us-rivers{pointer-events:none}
#us-mountains{fill:#ab9b83;opacity:.22}
#us-forests{fill:#7f9c72;opacity:.28}
#us-urban{fill:#b49b85;opacity:.34}
#us-lakes{fill:#dcebee;stroke:#c0d5d6;stroke-width:.45}
#us-rivers{fill:none;stroke:#a6c3c7;stroke-width:1;stroke-linejoin:round;stroke-linecap:round;opacity:.8}
#us-lakes path,#us-rivers path{vector-effect:non-scaling-stroke}
.province-question #us-landcover{opacity:.5}
.mountain-swatch{background:#c6bba8}

/* A fixed atlas slot prevents changing questions/results from resizing the map. */
@media(min-width:741px){
 .header{height:72px;padding:0 28px}
 .header nav{gap:24px;margin-left:0}
 .workspace:not(.profile-workspace){height:calc(100dvh - 114px);min-height:0;grid-template-columns:minmax(0,1.6fr) minmax(315px,1fr)}
 .atlas{height:100%;min-height:0;padding:16px 22px 0 0;overflow:hidden}
 .atlas-heading{padding-left:22px;flex:0 0 22px}
 .map-container{min-height:0;height:auto;flex:1 1 0;margin:10px 0 8px 18px}
 .atlas-footer{flex:0 0 28px;height:28px;margin-left:22px}
 .panel{align-self:stretch;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px 28px}
 .panel h1{font-size:clamp(30px,3.2vw,43px);margin:12px 0}
 .panel.quiz h1{font-size:clamp(27px,2.7vw,36px)}
 .panel .intro{margin-bottom:20px}
 .profile-workspace .panel{overflow:visible;scrollbar-gutter:auto}
 .site-footer{height:42px;padding:10px 28px}
 .map-caption{font-size:10px;bottom:14px;gap:10px}
 .map-scale{font-size:8px}
 .compass{top:22px}
 .map-legend{font-size:8px;gap:9px;top:14px;right:12px}
 .map-tools{bottom:65px;right:12px}
}
@media(min-width:741px) and (max-height:850px){
 .panel{padding:18px 24px}
 .topic-card{min-height:86px;padding:10px}
 .topic-card .topic-icon{height:21px;margin-bottom:5px}
 .panel h1{font-size:32px}
 .intro{font-size:12px;line-height:1.6;margin-bottom:14px}
 .section-label{margin-top:16px}
 .progress-track{margin-bottom:20px}
 .quiz-help{line-height:1.6;margin:12px 0}
 .options{margin:14px 0}
 .feedback{margin:12px 0;padding:12px}
 .score{font-size:62px;margin-top:14px}
}
@media(max-width:740px){
 .header{height:108px;min-height:108px;padding:10px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-content:center}
 .brand{font-size:20px;gap:7px}.brand svg{width:24px}
 .header nav{margin:0;gap:15px;height:30px}
 .country-switcher{grid-column:1/-1;justify-self:end;margin:0;padding:3px}
 .country-switcher button{padding:6px 13px}
 .site-footer{height:42px;padding:9px 16px}
 .workspace:not(.profile-workspace){height:calc(100dvh - 150px);min-height:0;display:grid;grid-template-rows:minmax(0,42%) minmax(0,1fr);grid-template-columns:minmax(0,1fr)}
 .workspace:not(.profile-workspace) .atlas{order:0;grid-row:1;height:100%;min-height:0;padding:6px 12px 0;overflow:hidden;border:0}
 .workspace:not(.profile-workspace) .atlas .map-container{height:auto;min-height:0;flex:1 1 0;margin:0 0 6px}
 .workspace:not(.profile-workspace) .atlas .atlas-heading,.workspace:not(.profile-workspace) .atlas .atlas-footer{display:none}
 .workspace:not(.profile-workspace) .panel,.workspace:not(.profile-workspace) .panel.quiz{display:block;order:1;grid-row:2;align-self:stretch;height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:12px 20px 20px}
 .workspace:not(.profile-workspace) .question-header,.workspace:not(.profile-workspace) .question-controls{padding:0}
 .workspace:not(.profile-workspace) .panel h1,.workspace:not(.profile-workspace) .question-header h1{font-size:28px;margin:9px 0}
 .workspace:not(.profile-workspace) .progress-track{margin:8px 0 13px}
 .workspace:not(.profile-workspace) .quiz-help{margin:10px 0;font-size:11px}
 .workspace:not(.profile-workspace) .question-timer{margin:12px 0}
 .workspace:not(.profile-workspace) .map-caption{bottom:10px;font-size:9px;gap:8px;left:12px;right:12px}
 .workspace:not(.profile-workspace) .map-scale{font-size:7px;white-space:normal;text-align:right;max-width:36%}
 .workspace:not(.profile-workspace) .map-tools{bottom:45px;right:10px}
 .workspace:not(.profile-workspace) .map-tools button{width:31px;height:31px}
 .workspace:not(.profile-workspace) .map-legend{top:9px;right:10px;font-size:7px;gap:7px;padding:5px}
 .workspace:not(.profile-workspace) .compass{top:12px;left:12px}
}
.panel{scrollbar-width:thin;scrollbar-color:#b6c5af transparent}.panel::-webkit-scrollbar{width:6px}.panel::-webkit-scrollbar-thumb{background:#b6c5af;border-radius:6px}
@media(max-width:360px){.brand{font-size:17px;gap:5px}.brand svg{width:21px}.header nav{gap:10px}.nav-button{font-size:10px}}
@media(min-width:600px) and (max-width:740px) and (max-height:500px){
 .header{height:64px;min-height:64px;display:flex;flex-wrap:nowrap;padding:8px 16px;gap:14px}
 .header nav{margin-left:auto}.country-switcher{margin:0}
 .site-footer{height:36px;padding:7px 16px}
 .workspace:not(.profile-workspace){height:calc(100dvh - 100px);grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr);grid-template-rows:minmax(0,1fr)}
 .workspace:not(.profile-workspace) .atlas{grid-column:1;grid-row:1;padding-right:0}
 .workspace:not(.profile-workspace) .panel,.workspace:not(.profile-workspace) .panel.quiz{grid-column:2;grid-row:1;padding:12px 16px}
 .workspace:not(.profile-workspace) .panel h1{font-size:25px}
}

/* Borders stay legible where rivers follow a state/province boundary. */
#province-outlines .boundary-halo{stroke:#667d69;stroke-width:1.9;opacity:.22}
#province-outlines .boundary-line{stroke:#fbfcf7;stroke-width:.9;opacity:.95}
/* Context remains vector artwork, cached as three independent SVG images. */
#us-landcover image{pointer-events:none}

.round-format{margin-top:10px}
.result-breakdown{margin:14px 0}
.result-breakdown summary{cursor:pointer;font-size:.9rem}
.mode-row[hidden] + #start{margin-top:16px}
@media(max-width:740px){.mode-row[hidden] + #start{margin-top:11px}}

.workspace .panel.home-panel h1,.workspace .panel.result h1{font-size:1.5rem;margin:0 0 14px}
.home-panel .topic-list{display:grid;grid-template-columns:1fr;gap:5px}
.home-panel .topic-card{display:flex;align-items:center;min-height:40px;padding:7px 12px;gap:10px;text-align:left}
.home-panel .topic-name{margin:0}
.home-panel .topic-count{margin-left:auto;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
.home-panel .radio{position:static;margin:0}
.format-help,.more-options{font-size:.8rem}
.format-help{margin:8px 0;color:var(--muted)}
.more-options{margin:8px 0 0}
.more-options summary{cursor:pointer}
.home-panel #start{margin-top:12px}
.quiz .question-timer{margin-bottom:8px}
.site-footer{justify-content:flex-end}
.site-footer>div{display:flex;gap:16px}
@media(max-width:740px) and (orientation:portrait){
 .workspace:has(.home-panel){grid-template-rows:minmax(0,30%) minmax(0,1fr)}
}

.profile-workspace .panel > h1{font-size:1.55rem;margin:0 0 12px}
.profile-workspace .panel h2{font-size:1.15rem;margin:0 0 10px}
.profile-overview{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr);gap:14px;align-items:center}
.profile-overview .world-map{margin:0 0 8px;max-height:260px}
.profile-overview .country-discoveries{grid-template-columns:1fr;gap:6px}
.profile-overview .discovery-country{padding:8px 10px;gap:4px}
.profile-overview .discovery-country strong{display:flex;justify-content:space-between}
.profile-workspace .discovery-card,.profile-workspace .records-card,.profile-workspace .preferences-card{padding:12px;margin-bottom:10px}
.profile-workspace .record-grid{grid-template-columns:1fr;gap:4px}
.profile-workspace .record-card{padding:0}
.record-card summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 10px;cursor:pointer;font-size:.8rem}
.record-card summary::before{content:'▸'}
.record-card[open] summary::before{content:'▾'}
.record-card summary small{display:block;color:var(--muted)}
.record-detail{padding:0 12px 8px 26px}
.record-detail p{margin:3px 0}
.profile-workspace .preferences-card fieldset{margin:6px 0}
.profile-workspace .preferences-card legend{margin-bottom:6px}
@media(max-width:540px){
 .profile-overview{grid-template-columns:minmax(0,1fr);gap:8px}
 .profile-overview .country-discoveries{grid-template-columns:repeat(2,minmax(0,1fr))}
}
