.death-training-hint{margin:18px 20px 0;max-width:290px;font-size:12px;line-height:1.9;font-weight:400;text-align:center;color:#e7d7c4;text-shadow:0 2px 7px #140e17}
#dialog:has(.world-atlas){padding:8px;background:#071017ed}#dialog:has(.world-atlas)>.sheet{width:min(700px,96vw);max-height:94dvh;padding:12px;overflow:hidden;border-color:#b59c70;background:#1d2828}#dialog:has(.world-atlas)>.sheet>header{margin:0;padding:0 2px 9px;min-height:34px}#dialog:has(.world-atlas) #dialog-title{font-size:12px;color:#c3b99d;font-weight:500}#dialog:has(.world-atlas) .sheet::before{display:none}
.world-atlas{position:relative;isolation:isolate;color:#e9dec6}.atlas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 4px 0}.atlas-intro small{font-family:serif;font-size:10px;letter-spacing:.13em;color:#baa780}.atlas-intro h2{margin:3px 0 0;font-family:serif;font-size:23px;font-weight:600;letter-spacing:.16em;color:#f0ddaf}.atlas-zoom-label{font-size:10px;padding:5px 8px;border:1px solid #bfa37155;border-radius:20px;color:#cfbd96}.atlas-current{margin:9px 3px 10px;font-size:11px;line-height:1.5;color:#d5c6a5;overflow-wrap:anywhere}.atlas-current::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;margin:0 6px 2px 0;background:#e5c587;box-shadow:0 0 7px #dbb66f88}
.atlas-viewport{position:relative;height:clamp(300px,66dvh,700px);width:100%;overflow:hidden;border:1px solid #af94644d;border-radius:5px;background:#c5b58c;touch-action:none;cursor:grab;isolation:isolate}.atlas-viewport:active{cursor:grabbing}.atlas-viewport:focus-visible{outline:2px solid #edd196;outline-offset:2px}.atlas-terrain,.atlas-routes{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none}.atlas-terrain{background:#d3c19d}.atlas-image{display:block;width:100%;height:100%;object-fit:fill;user-select:none;pointer-events:none}.atlas-pins{position:absolute;inset:0;pointer-events:none}.atlas-routes{overflow:visible;width:100%;height:100%}.atlas-routes path{fill:none;stroke:#745943;stroke-width:2;stroke-dasharray:4 5;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.85}.atlas-routes path[data-state=locked]{stroke:#7b7f78;opacity:.65}.atlas-routes path[data-state=current]{stroke:#9c582f;stroke-width:2.5}.world-atlas[data-overview=true] .atlas-routes{opacity:.35}
.sheet .atlas-area{position:absolute;display:block;width:68px;height:78px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;transform:translate(-50%,-49px);color:#403728;pointer-events:auto;text-align:center;box-shadow:none;touch-action:none;cursor:pointer;overflow:visible}.atlas-area-label{position:absolute;top:0;left:-7px;right:-7px;display:grid;gap:1px;text-shadow:0 1px 3px #f4e8c6,0 0 5px #f4e8c6}.atlas-area-label small{font-size:9px;line-height:1.15;font-weight:500;letter-spacing:.05em}.atlas-area-label strong{font-family:serif;font-size:11px;line-height:1.35;font-weight:700;white-space:nowrap;letter-spacing:-.02em}.atlas-area-orb{position:absolute;left:16px;top:31px;width:36px;height:36px;border:1px solid #7e6943;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 38% 30%,#f4e6bf,#c4b18a);box-shadow:0 2px 5px #4d412850,inset 0 0 0 3px #ecddbc}.atlas-area-orb svg{width:27px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.atlas-area-status{position:absolute;top:70px;left:-8px;right:-8px;font-size:9px;line-height:1.15;white-space:nowrap;color:#4e503f;text-shadow:0 0 4px #f5e9cc,0 1px 2px #f5e9cc}.atlas-area[data-state=current]{z-index:3;color:#693f20}.atlas-area[data-state=current] .atlas-area-orb{border:2px solid #a65f2b;background:radial-gradient(circle at 35% 30%,#fff0bd,#d5ac67);box-shadow:0 0 0 4px #f8dea68c,0 0 0 6px #96633677,0 3px 10px #4e352c50}.atlas-area[data-state=current] .atlas-area-status{font-weight:700;color:#884a24}.atlas-area[data-state=cleared]{color:#395749}.atlas-area[data-state=cleared] .atlas-area-orb{border-color:#59735e;background:radial-gradient(circle at 35% 30%,#e1e8c4,#b0bc95)}.atlas-area[data-state=locked]{color:#6b6d66}.atlas-area[data-state=locked] .atlas-area-label{opacity:.8}.atlas-area[data-state=locked] .atlas-area-orb{border-color:#7c8176;background:radial-gradient(circle at 35% 30%,#d5d3be,#aaa997);box-shadow:0 2px 4px #474b3533,inset 0 0 0 3px #c8c9b5;filter:grayscale(1);opacity:.85}.atlas-area[data-state=locked] .atlas-area-status{color:#6f736b}.sheet .atlas-area:hover .atlas-area-orb,.sheet .atlas-area:focus-visible .atlas-area-orb{outline:2px solid #7f532d;outline-offset:3px}.sheet .atlas-area:focus-visible{outline:0}
.sheet .atlas-city{position:absolute;transform:translate(-50%,-50%);padding:5px 10px;border:1px solid #8e7449;border-radius:30px;min-height:32px;background:#e8d7aff2;color:#59472f;font-family:serif;font-size:12px;box-shadow:0 2px 5px #3d302344;pointer-events:auto}.atlas-city::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#88633a;margin:0 5px 2px 0}.atlas-city+ .atlas-city{transform:translate(-10%,-160%)}
.atlas-controls{position:absolute;bottom:9px;right:8px;left:8px;display:flex;justify-content:center;gap:4px;pointer-events:none;z-index:5}.sheet .atlas-controls button{pointer-events:auto;min-height:32px;padding:5px 8px;border:1px solid #957c51;border-radius:5px;background:#ede0c2eb;color:#5a492f;font-size:10px;box-shadow:0 2px 5px #3b352344;white-space:nowrap}.sheet .atlas-controls button:nth-child(-n+2){min-width:30px;font-size:17px;padding:0 6px}.atlas-legend{display:flex;justify-content:center;gap:13px;margin:10px 0 0;font-size:9px;color:#c3baa8}.atlas-legend span::before{content:'';display:inline-block;width:6px;height:6px;margin:0 4px 1px 0;border-radius:50%;background:#9eaa89}.atlas-legend [data-state=current]::before{background:#e2b96b}.atlas-legend [data-state=cleared]::before{background:#82a98a}.atlas-legend [data-state=locked]::before{background:#7c827a}.atlas-hint{margin:7px 0 0;text-align:center;color:#9e9b8a;font-size:9px;line-height:1.5}
.atlas-area-overlay{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;padding:12px;background:#1e211dc4;backdrop-filter:blur(2px)}.atlas-area-sheet{width:min(350px,100%);max-height:100%;overflow:auto;padding:15px;border:1px solid #bda271;border-radius:8px;background:linear-gradient(150deg,#2b3530,#17241f);box-shadow:0 14px 45px #0008}.atlas-area-sheet .atlas-area-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #ad9c6d40}.atlas-area-title{display:grid;gap:4px}.atlas-area-title small{font-size:10px;color:#b7aa88}.atlas-area-title strong{font-family:serif;font-size:21px;letter-spacing:.05em;color:#f1ddb1}.sheet .atlas-area-close{min-height:32px;padding:4px 9px;font-size:11px;border-color:#978767;background:#25342b;color:#e9dcc2}.atlas-stage-list{display:grid;gap:7px}.sheet .atlas-stage{display:flex;align-items:center;gap:11px;width:100%;min-height:57px;padding:9px 10px;border:1px solid #8d967366;background:#283b30;color:#f0e4c7;text-align:left}.atlas-stage-number{font-family:serif;font-size:20px;min-width:26px;color:#baa879}.atlas-stage-copy{display:grid;gap:4px;flex:1;min-width:0}.atlas-stage-copy strong{font-size:13px;font-weight:600}.atlas-stage-copy small{font-size:10px;color:#b6baa7;line-height:1.35}.atlas-stage-end{font-size:9px;color:#b9c5a3;white-space:nowrap}.sheet .atlas-stage[data-state=current]{border-color:#d5b46e;background:#40503b}.atlas-stage[data-state=current] .atlas-stage-end{color:#e8c478}.sheet .atlas-stage:disabled{border-color:#7e86703d;background:#29302a;color:#969c8d;opacity:.65;cursor:default}.atlas-stage:disabled .atlas-stage-number,.atlas-stage:disabled .atlas-stage-copy small,.atlas-stage:disabled .atlas-stage-end{color:#899384}.atlas-area-note{margin:12px 0 0;font-size:10px;line-height:1.7;color:#b4ad97}
@media(max-width:380px){#dialog:has(.world-atlas)>.sheet{padding:9px}.atlas-viewport{height:61dvh}.atlas-legend{gap:9px}.atlas-area-overlay{padding:8px}.atlas-area-sheet{padding:12px}.sheet .atlas-stage{min-height:51px;padding:7px 9px}.atlas-current{font-size:10px}}
@media(max-height:600px){.atlas-viewport{height:53dvh;min-height:200px}.atlas-intro h2{font-size:18px}.atlas-current{margin:5px 0}.atlas-legend,.atlas-hint{margin-top:5px}.atlas-area-sheet{padding:10px}.sheet .atlas-stage{min-height:40px;padding:5px 8px}.atlas-area-note{margin-top:6px}}
@media(prefers-reduced-motion:reduce){.world-atlas *{scroll-behavior:auto}}

.world-atlas [hidden]{display:none!important}


.world-atlas[data-overview=true] .atlas-routes{display:none}

@media(max-height:600px){#dialog:has(.world-atlas)>.sheet{overflow:auto}.atlas-viewport{min-height:300px}}
/* Fixed map coordinates, readable paper labels and sparse painted icons. */
#dialog:has(.world-atlas)>.sheet{width:min(600px,96vw)}
.atlas-viewport{max-width:560px;height:clamp(300px,62dvh,560px);margin-left:auto;margin-right:auto}
.atlas-image{filter:saturate(.65)}.atlas-detail-image{filter:saturate(.25);position:absolute;display:block;object-fit:fill;user-select:none;pointer-events:none}
.atlas-painted-icon{display:block;width:56px;height:56px;flex:none;background-image:url('./assets/world-map/area-icons.webp');background-size:400% 200%;background-repeat:no-repeat;filter:drop-shadow(0 1px 1px #24251230)}
.sheet .atlas-area{width:112px;height:110px;transform:translate(-50%,-64px)}
.atlas-area-label{left:0;right:0;gap:1px;padding:3px 4px;border-radius:5px;background:#fff0d5ee;box-shadow:0 1px 4px #2d2a224d;text-shadow:none;color:#29281e;white-space:nowrap}
.atlas-area-label small{font-size:11px;line-height:1.2;font-weight:750;color:#564e39;letter-spacing:0}
.atlas-area-label strong{font-family:system-ui,-apple-system,"Noto Sans KR",sans-serif;font-size:15px;line-height:1.35;font-weight:850;letter-spacing:-.045em}
.atlas-area-orb{left:34px;top:42px;width:44px;height:44px;background:#eddfba;box-shadow:0 2px 5px #2b251f50,inset 0 0 0 2px #f5eccf}
.atlas-area-status{top:92px;left:4px;right:4px;padding:2px 3px;border-radius:4px;background:#fff1d6ed;font-size:11px;line-height:1.2;font-weight:750;text-shadow:none;color:#353d2e}
.atlas-area[data-state=current] .atlas-area-label{color:#763711;background:#fff1cbee;box-shadow:0 0 0 1px #9e6523,0 2px 5px #4c321e50}
.atlas-area[data-state=current] .atlas-area-status{color:#793917;background:#fff0bfee}
.atlas-area[data-state=cleared] .atlas-area-label{color:#214c35}.atlas-area[data-state=locked] .atlas-area-label{opacity:1;color:#51564f;background:#e1e2d6f2}.atlas-area[data-state=locked] .atlas-area-label small{color:#5d6359}.atlas-area[data-state=locked] .atlas-painted-icon{filter:grayscale(1);opacity:.7}.atlas-area[data-state=locked] .atlas-area-status{color:#555f54;background:#dce0d3ef}
.sheet .atlas-city{display:grid;place-items:center;gap:0;transform:translate(-50%,-50%);width:92px;height:92px;min-height:92px;padding:2px 6px 7px;border:2px solid #a36d32;border-radius:50%;background:#fff1d5f5;color:#392a18;box-shadow:0 0 0 4px #fff0d080,0 3px 9px #30291e55}
.atlas-city::before{display:none}.atlas-city .atlas-painted-icon{width:60px;height:60px}.atlas-city strong{font-size:17px;line-height:1;font-weight:850;letter-spacing:-.03em;white-space:nowrap}
.atlas-current{font-size:12px;font-weight:650;color:#f0ddaf}.atlas-legend{font-size:11px;color:#e1d6bd}.atlas-hint{font-size:11px;color:#d1c6ab}.atlas-stage-copy strong{font-size:15px;font-weight:750}.atlas-stage-copy small,.atlas-area-note{font-size:12px}.atlas-stage-end{font-size:11px;font-weight:700}
@media(max-width:380px){.atlas-current{font-size:11px}.atlas-legend{font-size:10px;gap:8px}.atlas-hint{font-size:10px}}

/* The national atlas frame matches the painting: no letterboxing at minimum zoom. */
.world-atlas[data-overview=true] .atlas-viewport{height:auto;min-height:0;max-height:none;aspect-ratio:4/3}
/* Names sit directly on the painting; the only circles frame the actual icons. */
.sheet .atlas-area{width:94px;height:98px;transform:translate(-50%,-54px)}
.world-atlas .atlas-area-label,.world-atlas .atlas-area-status{padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
.atlas-area-label{left:-4px;right:-4px;top:2px}.atlas-area-label small{font-size:10px;color:#393a2b}.atlas-area-label strong{font-size:14px;font-weight:850;color:#252a20;line-height:1.25}
.atlas-area-orb{left:25px;top:32px}.atlas-area-status{top:81px;left:0;right:0;font-size:10px;font-weight:750;color:#30372b}
.atlas-area[data-state=current] .atlas-area-label strong,.atlas-area[data-state=current] .atlas-area-status{color:#733b1b}.atlas-area[data-state=cleared] .atlas-area-label strong{color:#254933}.atlas-area[data-state=locked] .atlas-area-label strong,.atlas-area[data-state=locked] .atlas-area-label small,.atlas-area[data-state=locked] .atlas-area-status{color:#51594c}
.sheet .atlas-city{width:44px;height:44px;min-height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;overflow:visible}
.atlas-city .atlas-painted-icon{width:44px;height:44px}.atlas-city strong{position:absolute;top:43px;left:50%;transform:translateX(-50%);font-family:system-ui,-apple-system,"Noto Sans KR",sans-serif;font-size:13px;font-weight:850;color:#2c3126;background:none;border:0;box-shadow:none;text-shadow:none;white-space:nowrap}

.atlas-zoom-label{border:0;border-radius:0;padding:0;background:none;box-shadow:none}

/* A one-pixel paper halo follows the letters, without adding a label box. */
.world-atlas .atlas-area-label small,.world-atlas .atlas-area-label strong,.world-atlas .atlas-area-status,.world-atlas .atlas-city strong{color:#0d160f;font-weight:900;-webkit-text-stroke:0;text-shadow:-1px -1px 0 #fff6e3,0 -1px 0 #fff6e3,1px -1px 0 #fff6e3,-1px 0 0 #fff6e3,1px 0 0 #fff6e3,-1px 1px 0 #fff6e3,0 1px 0 #fff6e3,1px 1px 0 #fff6e3}
.world-atlas .atlas-area-label small,.world-atlas .atlas-area-status{font-size:11px}
.world-atlas .atlas-area[data-state=current] .atlas-area-label strong,.world-atlas .atlas-area[data-state=current] .atlas-area-status{color:#561f08}
.world-atlas .atlas-area[data-state=cleared] .atlas-area-label strong{color:#103522}
.world-atlas .atlas-area[data-state=locked] .atlas-area-label strong,.world-atlas .atlas-area[data-state=locked] .atlas-area-label small,.world-atlas .atlas-area[data-state=locked] .atlas-area-status{color:#20291f}

.world-atlas .atlas-city+.atlas-city{transform:translate(-50%,-50%)}.atlas-city[data-state=locked]{filter:grayscale(.8);opacity:.65}.atlas-city[data-state=cleared] .atlas-painted-icon{filter:sepia(.2) saturate(1.15)}
