@font-face{font-family:"DM Sans";src:url("assets/dm-sans.woff2") format("woff2");font-style:normal;font-weight:400 800;font-display:swap}
:root{font-family:"DM Sans",system-ui,sans-serif;color:#182e36;background:#edf2f3;--green:#087b57;--border:#d8e1e1;--muted:#5e737a;--map-bg:#c7e1e9}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
button,input{font:inherit}
button{cursor:pointer;color:inherit}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #1a8dce;outline-offset:3px}
button{border:0;background:none}
button:disabled{cursor:default}
.symbols,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}
.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,2.5vw,44px);background:#132e3c;color:#fff;box-shadow:0 1px 0 #0d2633}
.brand{display:flex;align-items:center;gap:10px;font-size:1.65rem;font-weight:800;letter-spacing:-1.4px;line-height:1}
.brand-light{font-weight:500;color:#9de7c9;margin-left:2px}
.nav-actions,.help-btn,.restart-btn,.feedback,.section-title>div,.save-info,.legend,.legend>span,.credits-btn,.map-title,.map-tools,.tool-group,.edition{display:flex;align-items:center}
.nav-actions{gap:19px;font-size:.875rem;font-weight:650}
.nav-actions button{gap:8px}
.help-btn{color:#e9f0f1;padding:8px 0}.help-btn:hover{color:#93e4c6}
.nav-sep{height:20px;width:1px;background:#405762}
.restart-btn{border:1px solid #526873;background:#28434f;color:#fff;border-radius:8px;padding:9px 14px}.restart-btn:hover{background:#34525f}
.board{display:grid;grid-template-columns:clamp(326px,27.9vw,408px) minmax(0,1fr);gap:clamp(16px,1.6vw,26px);padding:clamp(16px,1.7vw,28px) clamp(16px,2vw,34px);height:calc(100svh - 72px);min-height:693px;max-width:2200px;margin:0 auto}
.card{border:1px solid #d1dcde;border-radius:17px;box-shadow:0 3px 8px #293d4610,0 1px 2px #293d4609;overflow:hidden}
.sidebar{background:#fff;display:flex;flex-direction:column;min-height:0}
.hero{position:relative;isolation:isolate;flex:none;min-height:145px;display:flex;align-items:flex-end;background:#225169 url("assets/himalayas.jpg") center 33%/cover no-repeat;color:white}
.hero::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(12,42,54,.6) 0%,rgba(12,41,52,.13) 78%),linear-gradient(0deg,rgba(9,36,46,.93),rgba(16,43,49,.12) 75%)}
.hero-content{padding:18px 22px 18px;width:100%}
.edition{gap:6px;text-transform:uppercase;letter-spacing:1.4px;font-size:.65rem;font-weight:750;line-height:1.2;text-shadow:0 1px 5px #24424d}
.edition img{height:15px;width:14px;filter:drop-shadow(0 1px 2px #0b293d80)}
.hero h1{font-size:clamp(1.75rem,2.25vw,2.35rem);letter-spacing:-1.35px;line-height:1.05;margin:10px 0 5px;font-weight:750}
.hero p{font-size:.91rem;color:#ecf4f5;margin:0}
.game-controls{padding:19px 21px 12px;flex:none}
.progress-line{display:flex;align-items:baseline;justify-content:space-between;color:#566b72;font-size:.875rem;font-weight:600}
.score{font-size:1.04rem;font-weight:600;color:#708188;font-variant-numeric:tabular-nums}.score b{font-size:1.55rem;font-weight:750;color:var(--green);letter-spacing:-1px}.score-slash{color:#93a4a9;font-weight:400;white-space:pre}
.track{height:6px;border-radius:100px;overflow:hidden;background:#e5ecea;margin-top:6px}
.track>div{height:100%;width:0;background:#228e66;border-radius:inherit;transition:width .3s ease}
#guess-form{display:flex;gap:7px;margin-top:18px}
.guess-box{display:flex;align-items:center;gap:7px;min-width:0;flex:1;border:1px solid #c5d1d2;border-radius:8px;padding:0 10px;background:white;color:#72868c}
.guess-box:focus-within{border-color:#348f72;box-shadow:0 0 0 3px #13916c17}
.guess-box .icon{width:16px;height:16px}
.guess-box input{width:100%;min-width:0;height:42px;border:none;outline:none;background:none;color:#203841;padding:0;font-size:.91rem}
.guess-box input::placeholder{color:#6c7d83}
.guess-btn,.primary{border-radius:8px;background:#087955;color:#fff;font-weight:700;box-shadow:0 1px 2px #005c3e20;font-size:.91rem}
.guess-btn{padding:0 17px}.guess-btn:hover,.primary:hover{background:#046643}.guess-btn:disabled{opacity:.7}
.feedback{min-height:19px;gap:6px;margin-top:7px;color:#708189;font-size:.765rem;line-height:1.3}.feedback .icon{width:13px;height:13px}
.feedback.success{color:#08794d;font-weight:650}.feedback.error{color:#a34d20}.feedback.notice{color:#446778}
.province-panel{border-top:1px solid #e4eaea;padding:16px 21px 14px;min-height:90px;overflow:auto;scrollbar-width:thin;scrollbar-color:#bfd0cc transparent}
.section-title,.province-summary{display:flex;align-items:center;justify-content:space-between}
.section-title>div{gap:8px}.section-title .icon{width:18px;height:18px;color:#528172}
.section-title h2{margin:0;font-size:1.09rem;letter-spacing:-.55px}
.province-total{padding:1px 8px;color:#687c80;background:#eff3f2;border-radius:12px;font-size:.76rem;font-weight:650}
.province-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;align-items:start}
.province-item{border:1px solid var(--border);border-radius:9px;background:#fbfcfc;min-width:0;transition:border-color .14s,background .14s}
.province-item:hover,.province-item[open]{border-color:var(--tone);background:var(--wash)}
.province-item summary{cursor:pointer;list-style:none;padding:8px 10px;min-height:62px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.province-item summary::-webkit-details-marker{display:none}
.province-summary{gap:5px;width:100%}.province-summary svg.mini{width:36px;height:23px;overflow:visible;color:var(--tone);filter:drop-shadow(0 1px 1px #23394015)}
.province-summary .count{color:#6c7e83;font-size:.75rem;font-weight:600;letter-spacing:.4px;font-variant-numeric:tabular-nums}
.province-name{display:flex;justify-content:space-between;gap:2px;align-items:center;font-size:.89rem;font-weight:700;letter-spacing:-.25px;line-height:1.2}
.province-name .icon{height:13px;width:13px;color:#7c8a90;transition:transform .17s}
.province-item[open] .province-name .icon{transform:rotate(180deg)}
.province-details{font-size:.79rem;color:#5c7175;margin:0 9px;padding:8px 0 0;border-top:1px solid #d4dfdb}.province-details p{margin:0 0 8px}.province-details ul{padding:0;margin:0 0 8px;list-style:none}.province-details li{display:flex;align-items:baseline;gap:5px;overflow-wrap:anywhere}.province-details li::before{content:"✓";color:#138158}
.save-info{gap:7px;color:#71837f;padding:11px 21px 13px;margin-top:auto;font-size:.75rem;flex:none}.save-info .icon{color:#82978d;width:14px;height:14px}
.map-card{display:flex;flex-direction:column;background:var(--map-bg);min-width:0;isolation:isolate}
.map-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:var(--map-bg)}
#atlas{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none;touch-action:pan-y}
#atlas.zoomed{cursor:grab;touch-action:none}#atlas.dragging{cursor:grabbing}
.map-title{pointer-events:none;gap:11px;position:absolute;top:23px;left:25px;color:#234659}
.map-icon{display:grid;place-items:center;background:#ebf6f7b0;border:1px solid #a0c1ca;width:39px;height:39px;border-radius:11px}.map-icon .icon{width:21px;height:21px}
.map-title h2{margin:0;line-height:1.2;font-size:1.22rem;letter-spacing:-.65px;font-weight:750}
.map-title p{margin:3px 0 0;font-size:.78rem;color:#4e7483;font-weight:500}.map-title p span{padding:0 2px}
.compass{position:absolute;top:21px;right:23px;display:flex;align-items:center;flex-direction:column;color:#446c7b;pointer-events:none}.compass span{font-size:.72rem;font-weight:750}.compass svg{width:46px;height:46px}
.district{fill:#fbfcf5;stroke:#9aaead;stroke-width:.68px;vector-effect:non-scaling-stroke;stroke-linejoin:round;transition:fill .18s}
.district.found{fill:#38a877}.district.highlight{fill:#e1f1e4}.district.found.highlight{fill:#1a9264}
.province-border{fill:none;stroke:#637f84;stroke-width:1.1px;vector-effect:non-scaling-stroke;stroke-linejoin:round;pointer-events:none}.country-outline{fill:none;stroke:#536f78;stroke-width:1.4px;vector-effect:non-scaling-stroke;pointer-events:none;stroke-linejoin:round}
.map-text{pointer-events:none;text-anchor:middle}.country-label{fill:#507f90;font-weight:550;letter-spacing:6px;font-size:18px;opacity:.83}.range-label{font-family:Georgia,serif;font-size:13px;letter-spacing:5px;font-style:italic;fill:#628797}.province-label{font-weight:650;font-size:12px;fill:#52686e;letter-spacing:.65px;paint-order:stroke;stroke:#f9fbf3;stroke-width:2.8px;stroke-linejoin:round}
.terrain-overlay{pointer-events:none;mix-blend-mode:multiply;opacity:.24}.district-terrain{pointer-events:none}
.scale{position:absolute;bottom:21px;left:25px;color:#527582;display:flex;flex-direction:column;align-items:flex-start;gap:3px;font-size:.7rem;font-weight:650;pointer-events:none}.scale i{width:75px;border:1.3px solid #577985;border-top:0;height:5px}
.map-tools{gap:7px;position:absolute;bottom:17px;right:20px}
.map-tools button{display:grid;place-items:center;width:35px;height:34px;background:#f6fafa;color:#345969}
.tool-group,.map-tools>button{border:1px solid #a5bfc5;border-radius:8px;overflow:hidden;box-shadow:0 2px 5px #2a4b5820}.tool-group button+button{border-left:1px solid #c7d5d8}
.map-tools button:hover{background:#e8f1ef}.map-tools button:disabled{color:#94a9ad}
.tooltip{position:absolute;pointer-events:none;max-width:190px;padding:8px 10px;background:#173846;color:#fff;font-size:.8rem;border-radius:7px;box-shadow:0 2px 6px #1c364637;line-height:1.45}
.map-error{position:absolute;inset:45% 10% auto;text-align:center}.map-error button,.credits-link{color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.map-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 19px;border-top:1px solid #bfd2d5;background:#f8fbfa;flex:none}
.legend{gap:18px;color:#51656c;font-size:.78rem;font-weight:550}.legend>span,.credits-btn{gap:6px}.swatch{display:block;width:12px;height:12px;border-radius:3px}.unguessed{background:#fbfcf5;border:1px solid #94a5a6}.guessed{background:#38a877;border:1px solid #279965}.province-line{width:16px;height:0;border-top:2px solid #637f84}
.credits-btn{color:#62767c;font-size:.76rem;padding:2px 0}.credits-btn:hover{color:var(--green)}.credits-btn .icon{width:14px;height:14px}
dialog{color:#203940;border:1px solid #cbdcda;border-radius:16px;padding:30px;max-width:min(420px,calc(100vw - 36px));box-shadow:0 24px 90px #102b3b45}dialog::backdrop{background:#112d3f65;backdrop-filter:blur(3px)}
.dialog-close{position:absolute;right:13px;top:13px;background:#eff4f3;border-radius:50%;width:29px;height:29px;display:grid;place-items:center}
.dialog-emblem{height:43px;width:43px;display:grid;place-items:center;border-radius:12px;background:#e3f4ea;color:var(--green);margin-bottom:15px}.dialog-emblem .icon{width:23px;height:23px}
dialog h2{letter-spacing:-1px;font-size:1.55rem;margin:0 0 12px;line-height:1.2}
dialog p,dialog li{color:#52666d;font-size:.945rem;line-height:1.55}dialog p{margin:.6em 0}dialog ol{padding-left:20px;margin:0}dialog li+li{margin-top:8px}
.dialog-actions{margin-top:22px;display:flex;gap:9px}.primary,.secondary{padding:10px 16px}.secondary{font-weight:650;border:1px solid #cfddda;border-radius:8px;background:#f8faf9}
dialog a{color:var(--green)}
@media(min-height:850px) and (min-width:761px){.hero{min-height:169px}.hero-content{padding:23px}.game-controls{padding:24px 23px 17px}.province-panel{padding:21px 23px}.province-item summary{min-height:72px;padding:10px 12px}.province-grid{gap:10px;margin-top:16px}}
@media(min-height:1000px) and (min-width:761px){.hero{min-height:193px}.province-item summary{min-height:82px}.game-controls{padding-top:28px;padding-bottom:23px}.province-grid{gap:12px}}
@media(max-width:1050px){.board{grid-template-columns:310px minmax(0,1fr);gap:14px;padding:16px}.hero-content,.game-controls,.province-panel{padding-left:16px;padding-right:16px}.province-key{display:none!important}.map-footer{padding:13px 15px}.map-title{left:18px}.legend{gap:11px}}
@media(max-width:760px){.topbar{height:59px;padding:0 15px}.brand{font-size:1.4rem;gap:7px}.brand img{width:34px;height:34px}.nav-actions{gap:10px;font-size:.79rem}.nav-sep{display:none}.nav-actions .icon{width:15px;height:15px}.restart-btn{padding:7px 9px}.board{height:auto;min-height:0;display:grid;grid-template-columns:1fr;gap:12px;padding:12px}.sidebar{display:contents}.hero,.game-controls,.province-panel,.map-card{border:1px solid var(--border);border-radius:12px}.hero{min-height:105px;grid-row:1;border-radius:12px 12px 0 0;border-bottom:0;background-position:center 30%}.hero-content{padding:15px 17px}.hero h1{margin-top:7px;font-size:1.77rem}.hero p{font-size:.87rem}.game-controls{grid-row:2;margin-top:-13px;border-radius:0 0 12px 12px;background:#fff;padding:12px 15px 9px}.progress-line{font-size:.81rem}.score b{font-size:1.18rem}.track{margin-top:4px;height:5px}#guess-form{margin-top:12px}.province-panel{grid-row:4;overflow:visible;background:#fff;padding:16px}.map-card{grid-row:3;min-height:340px;height:clamp(340px,70vw,465px)}.map-title{top:13px;left:13px;gap:7px}.map-icon{width:28px;height:28px;border-radius:8px}.map-title h2{font-size:1rem}.map-title p{font-size:.67rem;margin:0}.map-icon .icon{width:16px;height:16px}.compass{top:9px;right:13px}.compass svg{width:33px;height:33px}.compass span{font-size:.6rem}.map-tools{right:12px;bottom:10px}.scale{bottom:12px;left:14px}.map-tools button{width:31px;height:29px}.map-footer{padding:9px 12px}.legend,.credits-btn{font-size:.72rem}.save-info{grid-row:5;justify-content:center;padding:0 0 5px}.province-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.province-item summary{min-height:64px}.province-label{font-size:14px}}
@media(max-width:370px){.nav-actions{gap:6px}.help-btn span{display:none}.help-btn{padding:6px}.board{padding:8px}.province-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guess-btn{padding:0 12px}.credits-btn span{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
