@font-face{font-family:'Oswald';src:url(fonts/Oswald.ttf) format('truetype');font-weight:200 700;font-display:swap}
@font-face{font-family:'IM Fell';src:url(fonts/IMFellEnglish-Regular.ttf) format('truetype');font-display:swap}
@font-face{font-family:'IM Fell';font-style:italic;src:url(fonts/IMFellEnglish-Italic.ttf) format('truetype');font-display:swap}
@font-face{font-family:'Special Elite';src:url(fonts/SpecialElite-Regular.ttf) format('truetype');font-display:swap}
:root{
  --paper:#e9dcc0;--paper2:#f3ead6;--sepia:#7a6a4f;--ink:#2b2620;--olive:#5d6b4a;--olive-d:#3c4234;
  --steel:#8e959b;--steel-l:#c3c8cb;--steel-d:#4b5157;--red:#a8432f;--gold:#d8b04a;
  --metal:linear-gradient(180deg,#a7adb2 0%,#7f868c 48%,#6c7379 52%,#8a9196 100%);
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#262a22;color:var(--ink);font-family:'Oswald',system-ui,sans-serif;overscroll-behavior:none}
button,select{font:inherit;color:inherit}
#app{height:100dvh;display:grid;grid-template-rows:auto auto 1fr;max-width:1600px;margin:0 auto;
  background:linear-gradient(#2e3329,#20241d)}
/* ---------- Resource bar ---------- */
.topbar{display:flex;align-items:center;gap:6px;padding:5px 10px;background:var(--metal);
  border-bottom:2px solid #2a2e26;box-shadow:inset 0 1px 0 #e3e6e8,inset 0 -1px 0 #3d4247}
.res{display:flex;align-items:center;gap:6px;padding:3px 10px 3px 6px;min-width:84px;border-radius:3px;
  background:linear-gradient(#3a3f37,#2c302a);box-shadow:inset 0 1px 3px #000a,0 1px 0 #ffffff55;color:#efe6c9;font-weight:500;letter-spacing:.5px}
.res svg{width:22px;height:22px;flex:none}
.res b{font-weight:500;font-size:16px}
.spacer{flex:1}
.status{font-family:'Special Elite';font-size:13px;color:#efe6c9;text-shadow:0 1px 0 #000;letter-spacing:1px}
.clock{font-family:'Special Elite';padding:3px 12px;background:#d9cfb4;border:1px solid #6d6552;box-shadow:inset 0 1px 3px #0006;font-size:14px}
.menu-btn{padding:4px 16px;background:linear-gradient(#e2dccb,#b9b19b);border:1px solid #514a3a;border-radius:3px;
  box-shadow:inset 0 1px 0 #fff,0 1px 2px #0008;cursor:pointer;font-weight:500}
.menu-btn:active{transform:translateY(1px)}
/* ---------- Tabs ---------- */
.tabs{display:flex;gap:4px;padding:6px 10px 0;background:linear-gradient(#545b52,#3f453c);border-bottom:3px solid #c9bc98}
.tabs button{flex:0 1 150px;padding:6px 10px 5px;border:1px solid #2f342b;border-bottom:0;border-radius:9px 9px 0 0;cursor:pointer;
  background:linear-gradient(#a8a58f,#7f7c68);color:#1f1d16;font-weight:500;letter-spacing:.6px;box-shadow:inset 0 1px 0 #e4e0c8}
.tabs button[aria-selected=true]{background:linear-gradient(#efe3c4,#c9bc98);transform:translateY(1px)}
.tabs button:hover{filter:brightness(1.07)}
/* ---------- Main ---------- */
.main{display:grid;grid-template-columns:330px 1fr;min-height:0}
/* ---------- Panel ---------- */
.panel{display:flex;flex-direction:column;min-height:0;padding:8px;gap:8px;background:var(--metal);
  border-right:3px solid #2a2e26;box-shadow:inset -1px 0 0 #e3e6e8}
.toolbar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
.toolbar button{min-width:0;aspect-ratio:1;padding:5px;border:1px solid #39352a;border-radius:3px;cursor:pointer;
  background:linear-gradient(#d9cba5,#b29f74);box-shadow:inset 0 1px 0 #f6eedb,inset 0 -2px 0 #8a7a55,0 1px 2px #0007}
.toolbar button svg{width:100%;height:100%}
.toolbar button[aria-pressed=true]{background:linear-gradient(#a99a72,#cbbd97);box-shadow:inset 0 2px 4px #0007}
.toolbar button:disabled{filter:grayscale(1) opacity(.45);cursor:default}
.dossier{flex:1;min-height:0;overflow:hidden;position:relative;padding:12px 12px 14px;background:var(--paper);
  border:1px solid #574f3e;box-shadow:inset 0 0 0 4px #d8c9a3,inset 0 0 22px #9c8a6044,0 2px 4px #0007;
  background-image:radial-gradient(#00000008 1px,transparent 1px);background-size:4px 4px}
.dossier h2{margin:0 0 6px;text-align:center;font-weight:600;font-size:21px;letter-spacing:1.5px;text-transform:uppercase}
.dossier h3{margin:12px 0 6px;font-weight:500;font-size:14px;letter-spacing:1px;text-transform:uppercase;color:var(--olive-d);
  border-bottom:1px solid #b3a37c;padding-bottom:2px}
.frame{margin:0 auto;padding:7px 7px 4px;background:#f8f2e2;border:1px solid #7a6a4f;box-shadow:2px 2px 0 #0002,inset 0 0 0 1px #fff}
.frame img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;filter:sepia(.75) contrast(1.05) brightness(.97);transition:filter .4s}
.frame:hover img{filter:none}
.caption{font-family:'Special Elite';font-size:12px;text-align:center;margin:4px 0 0;color:#3b3326}
.photo-credit{font-family:system-ui,sans-serif;font-size:9.5px;color:#7a6a4f;text-align:center;margin:2px 0 0;line-height:1.3}
.photo-credit a{color:inherit}
.flagrow{display:flex;align-items:center;gap:10px;margin:8px 0 2px;padding:4px 8px;background:#d9cba566;border:1px dashed #a8956a}
.flagrow canvas{width:78px;height:52px;image-rendering:pixelated;flex:none}
.flagrow .tag{font-family:'Special Elite';font-size:12px;line-height:1.35}
.stats{margin:6px 0 0;padding:0;list-style:none;font-size:14px}
.stats li{display:flex;align-items:baseline;gap:4px;padding:2px 0}
.stats li span{white-space:nowrap}
.stats li i{flex:1;border-bottom:1px dotted #7a6a4f;transform:translateY(-4px)}
.stats li b{font-weight:500;text-align:right}
.summary{font-family:'IM Fell',Georgia,serif;font-size:15px;line-height:1.45;margin:8px 0 2px}
.wiki{font-family:system-ui,sans-serif;font-size:10px;color:#7a6a4f}
.wiki a{color:inherit}
.typed{font-family:'Special Elite';font-size:13px;line-height:1.5}
.note{font-family:'Special Elite';font-size:13px;line-height:1.5;padding:8px;background:#f8f2e2;border-left:4px solid var(--red)}
.mapbtn{margin-left:6px;font-family:'Oswald';font-size:11px;padding:1px 6px;border:1px solid #5d6b4a;background:#dfe3cf;border-radius:2px;cursor:pointer}
.credit{margin:0;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:#1f1d16;font-weight:500;letter-spacing:.4px}
.credit img{height:26px;background:#fff;border-radius:4px;padding:2px 6px;box-shadow:0 1px 3px #0006}
/* Opening animation: the dossier unfolds like a file being pulled out */
.dossier.opening{animation:unfold .5s cubic-bezier(.2,.8,.2,1)}
@keyframes unfold{0%{clip-path:inset(0 0 100% 0);transform:translateY(-6px)}70%{clip-path:inset(0 0 0 0)}100%{clip-path:inset(0 0 0 0);transform:none}}
.shutter{position:absolute;inset:0;z-index:3;pointer-events:none;
  background:repeating-linear-gradient(180deg,#8e959b 0 10px,#6c7379 10px 12px);animation:shutter .55s ease-in forwards}
@keyframes shutter{to{transform:translateY(-102%)}}
/* ---------- Map ---------- */
.mapwrap{position:relative;min-height:0;overflow:hidden;border:6px solid #3a3f37;box-shadow:inset 0 0 0 2px #8e959b;touch-action:none}
#map{display:block;width:100%;height:100%;cursor:grab;background:#b9c6bf}
#map.dragging{cursor:grabbing}
.ocean{fill:#b9c6bf}
#grat path{fill:none;stroke:#7d8f88;stroke-width:.5;stroke-dasharray:2 2;vector-effect:non-scaling-stroke}
.country{stroke:#6f6248;stroke-width:.6;vector-effect:non-scaling-stroke;transition:fill .25s}
.country:hover{filter:brightness(1.08);stroke:#2b2620;stroke-width:1.4}
.country.sample{stroke:#3b3326;stroke-width:1}
.country.selected{stroke:#1d1a15;stroke-width:2.2}
.country.drop-hover{fill:#f2d98a!important;stroke:#2b2620;stroke-width:1.8}
.country.conquered{fill:#a8432f!important}
.country.flash{animation:flash 1s ease 2}
@keyframes flash{50%{fill:#f2c45a}}
#labels text{font-family:'IM Fell';font-style:italic;fill:#3b3326;paint-order:stroke;stroke:#efe3c4;stroke-width:3px;text-anchor:middle;pointer-events:none;letter-spacing:1px}
.maptools{position:absolute;left:10px;top:10px;display:flex;gap:4px}
.maptools button,.maptools select{height:30px;min-width:30px;padding:0 8px;background:linear-gradient(#e2dccb,#b9b19b);border:1px solid #514a3a;border-radius:3px;box-shadow:inset 0 1px 0 #fff,0 1px 3px #0008;cursor:pointer;font-size:15px}
.maptools select{font-size:13px}
.tooltip{position:absolute;pointer-events:none;padding:3px 8px;background:#f3ead6;border:1px solid #3b3326;font-family:'Special Elite';font-size:13px;box-shadow:2px 2px 0 #0004;white-space:nowrap}
.minimap{position:absolute;right:10px;bottom:10px;width:200px;aspect-ratio:2/1;padding:4px;background:var(--metal);border:1px solid #2a2e26;box-shadow:0 2px 6px #000a}
.minimap svg{display:block;width:100%;height:100%;background:#9fb0a8;cursor:pointer}
.minimap path{fill:#d9cba5;stroke:none}
.minimap rect.view{fill:#a8432f22;stroke:#a8432f;stroke-width:1.5}
.dragflag{position:absolute;left:0;top:0;width:96px;height:64px;pointer-events:none;z-index:5;filter:drop-shadow(3px 4px 2px #0007)}
.dragflag canvas{width:96px;height:64px;image-rendering:pixelated}
.stamp{pointer-events:none;position:absolute;left:50%;top:16%;transform:translate(-50%,-50%) rotate(-8deg);padding:10px 22px;border:5px double;font-family:'Special Elite';font-size:30px;letter-spacing:3px;background:#f3ead6cc;z-index:6;animation:stamp .35s ease-out}
.stamp.ok{color:#3c6b2f;border-color:#3c6b2f}.stamp.bad{color:#a8432f;border-color:#a8432f}
@keyframes stamp{from{transform:translate(-50%,-50%) rotate(-8deg) scale(2.2);opacity:0}}
.mission{padding:4px 2px}
.mission .order{font-family:'Special Elite';font-size:14px;line-height:1.5;margin:4px 0 10px}
.bigflag{display:flex;justify-content:center;margin:8px 0;cursor:grab;touch-action:none}
.bigflag canvas{width:192px;height:128px;image-rendering:pixelated;filter:drop-shadow(2px 3px 0 #0004)}
.scope{display:flex;flex-direction:column;gap:6px;font-size:14px}
.scope label{display:flex;align-items:center;gap:6px;padding:5px 8px;background:#f8f2e2;border:1px solid #b3a37c;cursor:pointer}
.scope select{font-family:'Oswald';font-size:13px;padding:1px 4px;border:1px solid #7a6a4f;background:#fff}
.scope select:disabled{opacity:.45}
.howto{margin:0;padding-left:20px;font-family:'Special Elite';font-size:12.5px;line-height:1.5}
.howto li{margin:0 0 5px}
.howto b{font-family:'Oswald';font-weight:600;letter-spacing:.3px}
.start{display:block;width:100%;margin:14px 0 4px;padding:9px;font-family:'Oswald';font-size:17px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#f3ead6;background:linear-gradient(#6f7f58,#4c5a3c);border:1px solid #2b3220;border-radius:3px;box-shadow:inset 0 1px 0 #a3b38a,0 2px 3px #0007;cursor:pointer}
.start:active{transform:translateY(1px)}
.abort{margin-top:14px;font-family:'Oswald';font-size:12px;padding:3px 10px;background:#e2dccb;border:1px solid #7a6a4f;cursor:pointer}
.bigflag.blank{cursor:default}
.soon{font-family:'Special Elite';text-align:center;padding:30px 10px;font-size:15px;line-height:1.6}
.soon b{display:block;font-family:'Oswald';font-size:20px;letter-spacing:1px;margin-bottom:8px}
/* ---------- Small screens ---------- */
@media (max-width:820px){
  #app{grid-template-rows:auto auto 1fr}
  .topbar{flex-wrap:wrap;gap:4px}.res{min-width:0;padding:2px 6px}.res b{font-size:13px}.res svg{width:18px;height:18px}.status{display:none}
  .tabs{overflow-x:auto}.tabs button{flex:0 0 auto;font-size:13px;padding:5px 8px}
  .main{grid-template-columns:1fr;grid-template-rows:52vh 1fr}
  .panel{order:2;border-right:0;border-top:3px solid #2a2e26}.mapwrap{order:1}
  .dossier{overflow:auto}
  .minimap{width:120px}
}
@media (prefers-reduced-motion:reduce){.dossier.opening,.shutter,.stamp,.country.flash{animation:none}.shutter{display:none}}
body.game-mode #labels,body.game-mode #continent{display:none}
.bigflag.spinning{cursor:wait}
.bigflag.spinning canvas{animation:jiggle .12s steps(2) infinite}
@keyframes jiggle{50%{transform:translateY(-1px)}}
@media (max-height:720px){.stats{font-size:13px}.stats li{padding:1px 0}.dossier{padding:8px 10px}.caption{margin-top:2px}}
/* ---------- Capitals ---------- */
.modeicon{display:block;width:76px;height:66px;margin:0 auto 4px}
.hint{font-family:'Special Elite';font-size:12px;color:#a8432f;margin:0 0 6px}
.capmsg .clue,.capmsg .result{font-family:'Special Elite';font-size:13.5px;line-height:1.5;margin:8px 0 4px;padding:8px;background:#f8f2e2;border-left:4px solid #5d6b4a}
.capmsg .clue{border-left-color:#d4782f}
.capmsg .fact{font-family:'IM Fell';font-size:15px;line-height:1.4;margin:6px 0 0}
.start.next{margin-top:10px}
.teletype{font-family:'Special Elite';font-size:22px;letter-spacing:2px;text-align:center;padding:12px 6px;margin:8px 0;background:#f8f2e2;border:1px dashed #7a6a4f;min-height:1.6em;color:#2b2620}
.options{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.options .opt{padding:9px 6px;font-family:'Oswald';font-size:15px;background:linear-gradient(#efe3c4,#d6c69e);border:1px solid #7a6a4f;border-radius:3px;cursor:pointer;box-shadow:0 2px 0 #8a7a55}
.options .opt:active{transform:translateY(1px)}
.options .opt.right{background:#bcd3a2;border-color:#3c6b2f}
.options .opt.wrong{background:#e6b1a4;border-color:#a8432f}
.options .opt:disabled{cursor:default}
.country.target{fill:#f2d98a!important;stroke:#2b2620;stroke-width:1.8;animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{50%{fill:#e8c46a}}
#fx .trail{fill:none;stroke:#3b3326;stroke-width:1.6;stroke-dasharray:4 4;vector-effect:non-scaling-stroke;opacity:.7}
#fx .plane path{fill:#3b3326}#fx .plane .wing{fill:#5d6b4a}
#fx .chute .canopy{fill:#f3ead6;stroke:#a8432f;stroke-width:1.5}#fx .chute .lines{stroke:#3b3326;stroke-width:.8;fill:none}#fx .chute .box{fill:#7a6a4f}
#fx .miss-line{stroke:#a8432f;stroke-width:1.6;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;fill:none}
#fx .capstar path{fill:#d8b04a;stroke:#5e4a17;stroke-width:1.2}
#fx text.fx-label{font-family:'IM Fell';font-style:italic;fill:#2b2620;paint-order:stroke;stroke:#f3ead6;text-anchor:middle;pointer-events:none}
/* Night flight */
#map.night{background:#0b1220}
#map.night .ocean{fill:#0b1220}
#map.night .country{fill:#1a2333!important;stroke:#33425c;stroke-width:.5}
#map.night .country:hover{filter:none}
#map.night #grat path{stroke:#1d2940}
#fx circle.light{fill:#ffe9a8;cursor:pointer}
#fx circle.light.glow{fill:#ffc94d;opacity:.55;filter:url(#glow);pointer-events:none}
#fx circle.light.far{fill:#c9b77e;cursor:default;opacity:.7}
#fx circle.light:not(.far):not(.glow):hover{fill:#fff}
#fx circle.picked-ok{fill:#7dff8a}#fx circle.picked-bad{fill:#ff6b5a}
#map.night #fx text.fx-label{fill:#ffe9a8;stroke:#0b1220}
#map.night #fx text.fx-label.cap{fill:#7dff8a}
body.game-mode .country.sample{stroke:#6f6248;stroke-width:.6}
/* ---------- Rivers ---------- */
.question{font-family:'Oswald';font-size:17px;font-weight:500;margin:6px 0 8px;text-align:center}
.crosses{font-size:13px;margin:6px 0 0;line-height:1.4}
#fx .pilot-stroke{fill:none;stroke:#a8432f;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.85}
#fx .river-bed{fill:none;stroke:#9cc9dc;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.75}
#fx .river-water{fill:none;stroke:#245a77;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#fx .river-water.flowing{stroke-dasharray:7 5;animation:flow 1.1s linear infinite}
@keyframes flow{to{stroke-dashoffset:-12}}
#fx .boat .hull{fill:#7a4b2a;stroke:#2b2620;stroke-width:1}#fx .boat .mast{stroke:#2b2620;stroke-width:1.4}#fx .boat .sail{fill:#f3ead6;stroke:#2b2620;stroke-width:.8}
#fx .endmark circle{fill:#f3ead6;stroke:#245a77;stroke-width:2}
#fx .endmark.mouth circle{fill:#245a77}
#fx .endmark text{font-family:'Special Elite';font-size:12px;fill:#2b2620;paint-order:stroke;stroke:#f3ead6;stroke-width:3px}
#fx text.river-name{fill:#183f55;font-weight:bold}
#fx .route-option{fill:none;stroke:#6b4a2b;stroke-width:3;stroke-dasharray:2 7;stroke-linecap:round;vector-effect:non-scaling-stroke}
#fx .route-option.is-right{stroke:#245a77}
#fx .route-option.is-wrong{stroke:#a8432f;opacity:.8}
#fx .route-option.is-other{opacity:.3}
#fx .route-hit{fill:none;stroke:transparent;stroke-width:22;vector-effect:non-scaling-stroke;cursor:pointer;pointer-events:stroke}
#fx .route-hit:hover{stroke:#d8b04a55}
#fx .route-tag{pointer-events:none}
#fx .route-tag circle{fill:#f3ead6;stroke:#6b4a2b;stroke-width:2}
#fx .route-tag text{font-family:'Oswald';font-size:14px;font-weight:600;fill:#2b2620;text-anchor:middle}
.options.abc{grid-template-columns:1fr 1fr 1fr}
.options.abc + .hint{margin-top:10px}
/* ---------- Mission report ---------- */
.report{padding:2px}
.report .verdict{margin:2px 0 10px;text-align:center;font-family:'Special Elite';font-size:19px;letter-spacing:2px;padding:6px;border:3px double}
.report .verdict.ok{color:#3c6b2f;border-color:#3c6b2f}.report .verdict.bad{color:#a8432f;border-color:#a8432f}
.report .rank{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px 0 8px}
.report .rank svg{width:44px;height:50px}
.report .rank small{display:block;font-family:'Special Elite';font-size:12px;color:#7a6a4f}
.report .rank b{font-size:22px;font-weight:600;letter-spacing:1px;text-transform:uppercase}
.report .record{text-align:center;font-family:'Oswald';font-weight:600;font-size:18px;color:#a8432f;letter-spacing:1.5px;margin:8px 0 0;animation:flash 1s ease 3}
.report .note{margin-top:8px;font-size:12px}
.report .abort{display:block;margin:8px auto 0}
/* ---------- Mountains ---------- */
#fx .ranges path.range{fill:url(#mtnpat);stroke:#5a4a32;stroke-width:1.2;stroke-dasharray:4 3;vector-effect:non-scaling-stroke;pointer-events:none}
#fx .ranges path.range::before{content:''}
#fx .ranges path.range-hit{fill:#a8956a22;stroke:transparent;stroke-width:12;vector-effect:non-scaling-stroke;cursor:pointer;pointer-events:all}
#fx .ranges path.range-hit:hover{fill:#d8b04a55}
#fx .ranges.dim path.range{opacity:.35}
#fx .ranges path.range.target{opacity:1;stroke:#a8432f;stroke-width:2.2;stroke-dasharray:none;fill:#d8b04a;fill-opacity:.45}
#fx .ranges path.range.right{stroke:#3c6b2f;stroke-width:2.4;stroke-dasharray:none}
#fx .ranges path.range.wrong{stroke:#a8432f;stroke-width:2.4;stroke-dasharray:none}
#fx .summit-flag .pole{stroke:#2b2620;stroke-width:1.6}
#fx .summit-flag .pennant{fill:#a8432f;stroke:#2b2620;stroke-width:.8}
#fx .summit-flag.missed .pennant{fill:#7a6a4f}
#fx .summit-flag .base{fill:#2b2620}
#fx .summit-flag .flag-label{font-family:'Special Elite';font-size:12px;fill:#2b2620;paint-order:stroke;stroke:#f3ead6;stroke-width:3px}
.altimeter{pointer-events:none;position:absolute;right:10px;top:10px;bottom:118px;width:150px;padding:8px 8px 6px;background:var(--metal);border:1px solid #2a2e26;border-radius:4px;box-shadow:0 3px 8px #000a,inset 0 1px 0 #e3e6e8;display:flex;flex-direction:column;z-index:3}
.altimeter[hidden]{display:none}
.alt-title{margin:0 0 6px;text-align:center;font-family:'Oswald';font-weight:600;font-size:12px;letter-spacing:1.5px;line-height:1.15;color:#1f1d16}
.alt-scale{position:relative;flex:1;margin:10px 0 18px;background:#e9dcc0;border:1px solid #574f3e;box-shadow:inset 0 0 10px #0003}
.alt-mountain{position:absolute;inset:0;background:linear-gradient(to top right,transparent 49.5%,#7a6a4f55 50%) right/60% 100% no-repeat,linear-gradient(to top left,transparent 49.5%,#7a6a4f55 50%) left/60% 100% no-repeat}
.alt-camp{position:absolute;left:0;right:0;transform:translateY(50%);display:flex;justify-content:space-between;align-items:center;padding:0 5px;font-size:10.5px;border-top:1px dashed #7a6a4f;color:#7a6a4f}
.alt-camp b{font-weight:500}.alt-camp span{font-family:'Special Elite';font-size:9.5px}
.alt-camp.reached{color:#1f1d16}
.alt-camp.here{color:#a8432f;font-weight:600}
.alt-climber{position:absolute;left:50%;width:26px;height:32px;margin-left:-13px;transform:translateY(50%);transition:bottom .9s cubic-bezier(.3,1.4,.5,1);filter:drop-shadow(1px 2px 1px #0006)}
.alt-climber.slip{animation:slip .6s ease}
@keyframes slip{20%{transform:translateY(50%) rotate(-25deg)}40%{transform:translateY(50%) rotate(20deg)}100%{transform:translateY(50%) rotate(0)}}
.alt-flag{position:absolute;left:50%;bottom:100%;width:22px;margin-left:4px}
.alt-flag[hidden]{display:none}
.alt-now{margin:0;text-align:center;font-family:'Special Elite';font-size:11.5px;color:#1f1d16}
.peaks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.peak{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px;background:#f8f2e2;border:2px solid #7a6a4f;border-radius:3px;cursor:pointer;box-shadow:0 2px 0 #8a7a55}
.peak img{width:100%;aspect-ratio:4/3;object-fit:cover;filter:sepia(.5)}
.peak b{font-size:14px;line-height:1.15}.peak small{font-size:11px;color:#7a6a4f}
.peak .elev{font-family:'Special Elite';font-size:15px;color:#2b2620}
.peak.right{border-color:#3c6b2f;background:#e3eed6}.peak.wrong{border-color:#a8432f;background:#f2dcd4}.peak.lower:not(.wrong){opacity:.75}
.peak:disabled{cursor:default}
.climb{font-family:'Oswald';font-size:14.5px;font-weight:500;margin:6px 0 0;padding:5px 8px}
.climb.up{color:#3c6b2f;background:#e3eed6}.climb.down{color:#a8432f;background:#f2dcd4}
@media (max-width:820px){.altimeter{width:112px;bottom:auto;height:62%;font-size:10px}.alt-camp span{display:none}}
/* ---------- shared bits for the new top bar (both looks) ---------- */
body:not(.theme-wood) #relief{display:none}
.res.conq .bar{position:relative;display:flex;align-items:center}
.res.conq .bar i{display:none}
.res.lives{min-width:0}
#rLives{display:flex;gap:2px}#rLives svg{width:20px;height:20px}#rLives svg.lost{filter:grayscale(1) opacity(.35)}
.look-btn{padding:4px 10px;font-size:12px;background:#d9cfb4;border:1px solid #6d6552;border-radius:3px;cursor:pointer}
img.ic{display:none}
body:not(.theme-wood) .mini-relief{display:none}
/* ocean and sea names */
#seas{pointer-events:none}
#seas text{font-family:'IM Fell',Georgia,serif;font-style:italic;fill:#3d5f78;stroke:#e6eef0;stroke-opacity:.8;paint-order:stroke;stroke-linejoin:round}
#seas text.sea-ocean{font-style:normal;font-weight:600;fill:#4a6d85}
#map.night #seas{display:none}
/* disputed territories: plain land, not detected (user's decision, 15-11) */
.void{fill:#d8cfb8;stroke:none;pointer-events:all;cursor:default}
.wiki.source b{font-weight:600}

/* ---------------- Missions (15-11) ---------------- */
.fuel{display:flex;align-items:center;gap:8px;margin:2px 0 8px;font-family:'Oswald';font-size:13px;letter-spacing:1px}
.fuel i{flex:1;height:12px;border:2px solid #3b3326;border-radius:7px;background:#e8dcc0;overflow:hidden}
.fuel i b{display:block;height:100%;background:linear-gradient(#7fae5a,#4f7d33);transition:width .1s}
.fuel i b.low{background:linear-gradient(#e08a5a,#a8432f)}
.fuel em{font-style:normal;min-width:38px;text-align:right}
.options .opt small{display:block;font-family:'Special Elite';font-size:12px;opacity:.8;margin-top:2px}
.options.road{grid-template-columns:1fr 1fr}
.countries{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:6px}
.countries .ctry{font-family:'Oswald';font-size:13px;padding:5px 8px;border:2px solid #6b4a1f;border-radius:8px;background:linear-gradient(#fbf3dc,#d9c391);cursor:pointer}
.countries .ctry.locked{opacity:.55;cursor:default;border-style:dashed}
.countries .ctry small{display:block;font-size:10px;font-family:'Special Elite'}
.howto.stages li.locked{opacity:.55}
#fx .vehicle .hull{fill:#7a4b2a;stroke:#2b2620;stroke-width:1}#fx .vehicle .cabin{fill:#f3ead6;stroke:#2b2620;stroke-width:.8}#fx .vehicle .mast{stroke:#2b2620;stroke-width:1.6}
#fx .vehicle .body{fill:#a8432f;stroke:#2b2620;stroke-width:1}#fx .vehicle .glass{fill:#cfe3ea;stroke:#2b2620;stroke-width:.5}#fx .vehicle .wheel{fill:#2b2620}
#fx .vehicle{pointer-events:none}
#fx .mpin circle{fill:#f3ead6;stroke:#3b3326;stroke-width:2}
#fx .mpin text{font-family:'Special Elite';font-size:12px;fill:#2b2620;paint-order:stroke;stroke:#f3ead6;stroke-width:3px}
#fx .mpin.faint{opacity:.6}
#fx .mpin.goal path{fill:#d8b04a;stroke:#3b3326;stroke-width:1.5}
#fx .mpin.goal.reached path{fill:#7fae5a}
#fx .mpin.goal text{font-weight:bold}
#fx .mpin.town{cursor:default}
#fx .mpin.town.here circle{fill:#a8432f}
#fx .mpin.town.reach{cursor:pointer}
#fx .mpin.town.reach circle{fill:#d8b04a;animation:reach 1s ease-in-out infinite alternate}
@keyframes reach{from{r:4.5px}to{r:7px}}
#fx .mpin.town.goal-city path{fill:#d8b04a;stroke:#3b3326;stroke-width:1.5}
#fx .mpin.town.goal-city.reach path{animation:goalpulse 1s ease-in-out infinite alternate}
@keyframes goalpulse{from{transform:scale(1)}to{transform:scale(1.35)}}
#fx .mpin.town.goal-city text{font-weight:bold;font-size:13px}
#fx .road{fill:none;stroke:#7a6a4f;stroke-width:3;stroke-dasharray:1 6;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.75}
#fx .road.open{stroke:#3b3326;stroke-width:4;opacity:1}
#fx .best-route{fill:none;stroke:#4f7d33;stroke-width:5;opacity:.55;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#fx .kmtag{pointer-events:none}
#fx .kmtag rect{fill:#fbf3dc;stroke:#8a7a55;stroke-width:1}
#fx .kmtag text{font-family:'Oswald';font-size:10.5px;fill:#2b2620;text-anchor:middle}
.passport{margin:10px 0}
.passport h3{margin:0 0 6px}
.pstamps{display:flex;gap:10px;justify-content:center}
.pstamp{width:112px;height:112px;border-radius:50%;border:3px dashed #b7a98a;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-family:'Oswald';color:#b7a98a;padding:8px}
.pstamp b{font-size:13px;line-height:1.15}
.pstamp small{font-family:'Special Elite';font-size:11px;margin-top:4px}
.pstamp.got{border:4px double #245a77;color:#245a77;transform:rotate(-8deg);background:rgba(36,90,119,.06)}
.pstamp.got.s1{border-color:#a8432f;color:#a8432f;transform:rotate(6deg);background:rgba(168,67,47,.06)}
#fx .river-faint{fill:none;stroke:#5b9bbd;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.8}
#fx .trail-guide{fill:none;stroke:none}
#fx .trail-line{fill:none;stroke:#245a77;stroke-width:6.5;stroke-dasharray:1 11;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;animation:flow 1.1s linear infinite}
#fx .trail.car .trail-line{stroke:#a8432f;stroke-width:7}
#fx .trail.boat.wrong .trail-line{stroke:#a8432f}
#fx .trail.back .trail-line{stroke:#a8432f;stroke-width:3;opacity:.45;animation:none}

/* Missions 15-11 b: clue notebook, nature album, car sprite */
.msicon{object-fit:contain}
.msicon.car{width:110px;height:76px}
body.ms-aim #map{cursor:crosshair}
.notebook{background:#f6ecd2;border:1px solid #b9a77f;border-radius:4px;padding:8px 10px;box-shadow:inset 0 0 12px rgba(120,90,40,.18)}
.notebook h3{margin:0 0 6px;text-align:center}
.notebook ol{list-style:none;margin:0;padding:0}
.notebook li{display:flex;gap:8px;align-items:flex-start;padding:6px 0;border-bottom:1px dashed #cbb98f;font-family:'Special Elite';font-size:13.5px;line-height:1.35}
.notebook li img{width:30px;height:30px;object-fit:contain;flex:none}
.notebook li b{display:block;font-family:'Oswald';font-weight:500;margin-top:2px}
.notebook li.now{background:rgba(216,176,74,.25);border-radius:4px;padding-left:4px}
.notebook li.later{opacity:.45}
.notebook li.solved b{color:#3c6b2f}.notebook li.missed b{color:#a8432f}
.notebook .solved-n{margin:6px 0 0;text-align:center;font-family:'Oswald'}
.hintbtn{display:block;margin:8px auto;padding:6px 16px;font-family:'Oswald';font-size:15px;border:2px solid #6b4a1f;border-radius:10px;background:linear-gradient(#fbf3dc,#d9c391);cursor:pointer}
.hintbtn b{color:#a8432f}.hintbtn small{opacity:.7}
.hintbtn:disabled{opacity:.45;cursor:default}
#fx .hintzone{fill:rgba(216,176,74,.15);stroke:#a8432f;stroke-width:3;stroke-dasharray:1 8;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none}
#fx .clue-line{fill:none;stroke:#a8432f;stroke-width:2.5;stroke-dasharray:1 7;stroke-linecap:round;vector-effect:non-scaling-stroke}
#fx .cluemark.ok .clue-line{stroke:#3c6b2f}
#fx .cluemark.old{opacity:.55}
#fx .mpin.click circle{fill:#a8432f}
#fx .cluemark.ok .mpin.click circle{fill:#3c6b2f}
.album{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:6px 0}
.album .card{display:flex;flex-direction:column;align-items:center;padding:4px 2px;background:linear-gradient(#fbf3dc,#ead9ae);border:2px solid #8a6a3a;border-radius:8px;cursor:grab;touch-action:none}
.album .card img{width:100%;height:56px;object-fit:contain;pointer-events:none}
.album .card span{font-family:'Oswald';font-size:11px;line-height:1.1;text-align:center;margin-top:2px}
.album .card.sel{border-color:#d8b04a;box-shadow:0 0 0 3px #d8b04a;transform:translateY(-2px)}
.album .card.done{opacity:.35;filter:grayscale(.6);cursor:default}
.card-ghost{position:fixed;width:60px;height:60px;object-fit:contain;pointer-events:none;z-index:999;filter:drop-shadow(0 4px 4px rgba(0,0,0,.35))}
#fx .region{fill-opacity:.34;stroke-width:2;stroke-dasharray:1 6;stroke-linecap:round;vector-effect:non-scaling-stroke}
#fx .region.aim{cursor:pointer}
#fx .region.aim:hover{fill-opacity:.45}
#fx .region.wrong{animation:regwrong .9s}
@keyframes regwrong{0%,60%{fill:#a8432f;fill-opacity:.55}100%{fill-opacity:.34}}
#fx .reglabel{pointer-events:none}
#fx .reglabel text{font-family:'Oswald';font-size:14px;font-weight:600;fill:#2b2620;text-anchor:middle;paint-order:stroke;stroke:#f3ead6;stroke-width:3px}
#fx .reglabel text.tip{font-family:'Special Elite';font-size:11px;font-weight:normal}
#fx .stickers{pointer-events:none}

/* clue hunt: question-mark medallions on the map (15-11) */
#fx .qmark{cursor:pointer}
#fx .qmark .qm-ring{fill:#6b4a1f;stroke:#d8b04a;stroke-width:2.5}
#fx .qmark .qm-in{fill:#f0d27a;stroke:#8a6a2a;stroke-width:1.2}
#fx .qmark .qm-body text{font-family:'Alfa Slab One','Oswald',serif;font-size:17px;fill:#5a3a12;text-anchor:middle}
#fx .qmark .qm-body{filter:drop-shadow(0 2px 2px rgba(0,0,0,.4));transition:transform .15s}
#fx .qmark:hover .qm-body{transform:scale(1.18)}
#fx .qmark.nope{cursor:default;opacity:.7}
#fx .qmark.nope .qm-in{fill:#c9b8a0}
#fx .qmark.nope .qm-body{animation:qmshake .4s}
@keyframes qmshake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
#fx .qmark.solved{cursor:default}
#fx .qmark.solved .qm-in{fill:#9cc47a}
#fx .qmark.solved .qm-body text{fill:#24461c;font-size:15px}
#fx .qmark.decoy{opacity:.6}
#fx .qmark .qm-name{font-family:'Oswald';font-size:13px;font-weight:600;fill:#2b2620;text-anchor:middle;paint-order:stroke;stroke:#f3ead6;stroke-width:3px}

/* province puzzle (15-11) */
#fx .pz-slot{fill:#f6ecd2;fill-opacity:.55;stroke:#6b4a1f;stroke-width:1.3;stroke-dasharray:3 3;vector-effect:non-scaling-stroke;pointer-events:none}
#fx .pz-slot.fixed{fill:#a8432f;fill-opacity:.8;stroke-dasharray:none}
#fx .pz-slot.filled{fill-opacity:0;stroke:none}
#fx .piece{cursor:grab}
#fx .piece path{stroke:#3b3326;stroke-width:1.2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
#fx .piece:hover path{stroke:#d8b04a;stroke-width:2.2}
#fx .piece.dragging{cursor:grabbing}
#fx .piece.dragging path{filter:drop-shadow(0 6px 5px rgba(0,0,0,.45));stroke:#d8b04a;stroke-width:2.2}
#fx .piece.done{cursor:default}
#fx .piece.done path{filter:none;stroke-width:1}
#fx .piece.shake path{stroke:#a8432f;stroke-width:3}
#fx .pz-name{pointer-events:none}
#fx .pz-name text{font-family:'Oswald';font-size:10.5px;font-weight:600;fill:#2b2620;text-anchor:middle;dominant-baseline:middle;paint-order:stroke;stroke:#f3ead6;stroke-width:2.5px}
.pz-list{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
.pz-list span{font-family:'Oswald';font-size:12px;padding:2px 7px;border-radius:10px;background:#e3d3a8;border:1px solid #8a6a3a}

/* Capitals: how-to-play demo (15-11) */
#demoHand{position:fixed;z-index:50;width:34px;height:41px;pointer-events:none;transition:left 1s ease-in-out,top 1s ease-in-out;filter:drop-shadow(0 3px 3px #0008)}
#demoHand svg{width:100%;height:100%}
#demoHand.tap{animation:demotap .35s}
@keyframes demotap{50%{transform:scale(.8) translateY(3px)}}
.demo-step{margin:0 0 4px;text-align:center;font:600 13px 'Oswald';letter-spacing:2px;color:#a8432f;text-transform:uppercase}
.demo-note{font-family:'Special Elite';font-size:13px;margin:6px 0 0;color:#5a4a33}
.demo-btns{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:10px}
.demo-again{display:block;margin:8px auto 0}
