:root{color-scheme:dark}body{background:#0d1924;color:#edf8fa;margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}.routePage{max-width:1440px;margin:auto;padding:44px 30px 60px}.routeHeading,.routeSummary,.panelTitle,.detailHeading,.detailTools,.detailNav{display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow{color:#9fe9d4;font-size:10px;letter-spacing:2px}h1{font-size:34px;margin:10px 0}h2{font-size:18px;margin:8px 0}p{color:#94b2c5;font-size:13px;line-height:1.7;margin:6px 0}a{color:#a5eed7;text-decoration:none}button,input{font:inherit}button{cursor:pointer;background:#233749;border:1px solid #3c5364;border-radius:9px;color:#d6edf5;padding:10px 15px;font-size:13px}button:hover{border-color:#91e5c8;background:#2a4650}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #9df3d0;outline-offset:3px}.primary{background:#9debd1;color:#0b2b2a;font-weight:700;border-color:#9debd1}.routeForm{display:grid;grid-template-columns:1fr auto 1fr auto;gap:14px;align-items:end;padding:22px;background:#172838;border:1px solid #2c4455;border-radius:16px;margin:26px 0 12px}.routeForm>label{display:grid;gap:9px;font-size:12px;color:#a4c6d5}.routeForm input:not([type=checkbox]){width:100%;padding:12px 14px;border-radius:8px;background:#0d1c28;border:1px solid #375061;color:#f0f9ff;font-size:14px}.currentOptions{grid-column:1/-1;display:flex;gap:15px;align-items:center;flex-wrap:wrap;padding-top:6px;color:#88aaba;font-size:12px}.currentOptions button{padding:7px 11px;font-size:12px}.follow{display:flex;gap:6px;align-items:center;cursor:pointer}.follow input{accent-color:#9eeed0}#status{min-height:22px}#status.error{color:#ffa799}.routeSummary{margin:26px 0 18px}.routeSummary h2{font-size:23px}.routeMaps{display:grid;grid-template-columns:1fr;gap:20px}.mapPanel,.stepsPanel,.detailPanel{background:#152534;border:1px solid #2c4352;border-radius:15px;overflow:hidden}.panelTitle{padding:12px 18px}.panelTitle span{font-size:11px;color:#84a9bb}.worldMap{position:relative;isolation:isolate}.worldMap>img{display:block;width:100%;height:auto}.worldOverlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.worldOverlay .road{stroke:#49eea4;stroke-width:3;fill:none;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 3px #079b61)}.mapDot{cursor:pointer;outline:none}.mapDot circle{fill:#f3b843;stroke:#ac6d1a;stroke-width:1}.mapDot.town circle{fill:#3cb9f9;stroke:#245977}.mapDot.routeDot circle{fill:#62ffac;stroke:#04683c;stroke-width:1.4;filter:drop-shadow(0 0 4px #22f394);animation:glow 1.8s ease-in-out infinite}.mapDot.selected circle,.mapDot:focus-visible circle{stroke:#fff;stroke-width:2.5}.mapDot text{font-size:10px;fill:#fff;paint-order:stroke;stroke:#132535;stroke-width:3;stroke-linejoin:round;pointer-events:none}.mapHint{padding:10px 18px;margin:0;font-size:11px}.dungeonMap{background:radial-gradient(ellipse at 25% 30%,#23433b,#11202b 65%)}.dungeonMap svg{display:block;width:100%;height:auto;max-height:580px}.dungeonRoad{stroke:#3b5c5c;stroke-width:2}.dungeonRoad.active{stroke:#5af3a9;stroke-width:3;filter:drop-shadow(0 0 3px #2bea86)}.dungeonMap .mapDot text{font-size:8px;stroke-width:2.5}.dungeonMap .mapDot circle{r:4}.dungeonMap .mapDot.routeDot circle{r:5.5}.routeDetails{display:grid;grid-template-columns:290px minmax(0,1fr);gap:20px;margin-top:22px;align-items:start}#steps{list-style:none;padding:0 12px 16px;margin:0;max-height:620px;overflow:auto}#steps li+li{margin-top:5px}#steps button{display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;text-align:left;width:100%;padding:11px 9px}#steps button[aria-current=step]{background:#24453f;border-color:#6db69b;color:#c6ffe5}#steps .stepNumber{border:1px solid #416173;border-radius:50%;width:26px;height:26px;flex:none;display:grid;place-items:center;font-size:11px}#steps strong{display:block;font-size:12px}#steps small{display:block;color:#83acbb;font-size:10px;margin-top:4px}.detailHeading{padding:20px 22px;align-items:start}.detailHeading h2{font-size:21px}.detailHeading a{font-size:11px;white-space:nowrap;padding-top:7px}#exitGuide{color:#aff6d5;font-size:14px}.detailTools{padding:0 20px 12px;color:#9ab9c6;font-size:11px}.detailTools button{font-size:11px;padding:6px 10px}.legend{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 5px 0 9px}.legend.exit{background:#5bffa4}.legend.arrival{background:#65caff}.detailViewport{position:relative;overflow:auto;max-height:630px;min-height:220px;background:#0b141b}.detailCanvas{position:relative;width:100%;line-height:0}.detailCanvas>img{display:block;width:100%;height:auto}.detailViewport.zoomed .detailCanvas{width:max(100%,1600px)}#portalMarkers{position:absolute;inset:0;pointer-events:none}.portalMarker{position:absolute;transform:translate(-50%,-50%);border:3px solid #bcffdc;background:#50ef9c8c;box-shadow:0 0 0 7px #46eb9b44,0 0 20px #42fba9;border-radius:50%;width:24px;height:24px;pointer-events:auto;animation:glow 1.8s ease-in-out infinite}.portalMarker.arrival{border-color:#cdf4ff;background:#5abef098;box-shadow:0 0 0 6px #5abef033;animation:none;width:16px;height:16px}.portalMarker span{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);color:#0c3025;background:#adffda;border-radius:5px;padding:7px 9px;white-space:nowrap;line-height:1.3;font-size:11px;font-weight:700}.portalMarker.arrival span{bottom:auto;top:24px;background:#bceaff;color:#14384d}.portalMarker.edgeLeft span{left:-4px;transform:none}.portalMarker.edgeRight span{left:auto;right:-4px;transform:none}.portalMarker.edgeTop:not(.arrival) span{bottom:auto;top:28px}#imageStatus{padding:24px;text-align:center}.detailNav{padding:14px 20px}.dataNote{margin-top:24px;font-size:11px}.backLink{font-size:13px;white-space:nowrap}@keyframes glow{50%{filter:drop-shadow(0 0 7px #7dffc3);opacity:.65}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}@media(min-width:1150px){.routeMaps:has(#dungeonPanel:not([hidden])){grid-template-columns:1.15fr 1fr;align-items:start}}@media(max-width:760px){.routePage{padding:26px 16px}.routeForm{grid-template-columns:1fr auto;padding:16px}.routeForm>label{grid-column:1}.routeForm>#swap{grid-column:2;grid-row:1/3;align-self:center}.routeForm>.primary{grid-column:1/-1}.currentOptions{gap:10px}.routeDetails{grid-template-columns:1fr}#steps{max-height:240px}.routeSummary h2{font-size:19px}.routeSummary{align-items:start}.routeSummary button{font-size:11px}.routeHeading h1{font-size:28px}.detailHeading{padding:16px}.detailHeading h2{font-size:18px}.portalMarker span{font-size:10px}.gmsHeader nav{flex-wrap:wrap}}

.worldMap,.dungeonMap{position:relative}.spotPreview{position:absolute;z-index:5;right:12px;bottom:12px;width:min(310px,70%);padding:12px;background:#101f2df2;border:1px solid #83d7b4;border-radius:10px;box-shadow:0 8px 30px #0009;pointer-events:none;line-height:1.5}.spotPreview strong{font-size:13px}.spotPreview small{display:block;color:#9ebdcc;font-size:10px;margin:3px 0 8px}.spotPreview p{font-size:11px;color:#bcffda}.spotImage{position:relative;line-height:0}.spotImage img{width:100%;display:block}.spotImage>div{position:absolute;inset:0}.spotImage .portalMarker{width:14px;height:14px;border-width:2px}.spotImage .portalMarker span{display:none}.mapResultLinks{display:flex;gap:14px;flex-wrap:wrap}

.dungeonMap .mapDot:not(.routeDot):not(.town) text{opacity:0}.dungeonMap .mapDot:hover text,.dungeonMap .mapDot:focus-visible text{opacity:1}.dungeonMap .mapDot.routeDot text{font-size:10px}@keyframes glow{50%{opacity:.55}}

/* Name-only search and fixed preview: no content floats over either map. */
.routePage{max-width:1780px}.routeForm>label{position:relative}.mapSuggestions{position:absolute;top:100%;left:0;right:0;z-index:20;max-height:300px;overflow:auto;margin-top:5px;border:1px solid #537767;border-radius:10px;background:#132535;box-shadow:0 12px 24px #0008}.mapSuggestions [role=option]{padding:11px 14px;cursor:pointer;border-bottom:1px solid #263e4d}.mapSuggestions [role=option]:hover,.mapSuggestions [aria-selected=true]{background:#284b43}.mapSuggestions strong{display:block;color:#e2f8ef;font-size:13px}.mapSuggestions small{display:block;color:#91b0c1;font-size:10px;margin-top:4px;line-height:1.5}
.previewPanel{min-width:0;background:#152534;border:1px solid #2c4352;border-radius:15px;overflow:hidden;display:flex;flex-direction:column}.previewPanel .panelTitle{min-height:67px;border-bottom:1px solid #2b4250}.previewPanel .panelTitle h2{font-size:16px}.previewPanel .panelTitle span{white-space:nowrap;font-size:10px}.previewSubtitle{padding:11px 16px;font-size:11px;min-height:45px;margin:0}.previewFrame{min-height:220px;max-height:350px;display:grid;align-items:center;overflow:auto;background:#0b151e}.previewFrame .spotImage{width:100%;position:relative;line-height:0}.previewFrame .spotImage img{width:100%;display:block}.previewFrame .spotImage>div{position:absolute;inset:0}.previewFrame .spotImage .portalMarker span{display:block;font-size:10px}.previewFrame .spotImage .portalMarker{width:18px;height:18px}.previewGuide{padding:12px 16px;color:#baffda;font-size:12px;min-height:46px}.previewExpand{margin:0 16px 16px;font-size:11px}#hoverPreview{display:flex;flex-direction:column;flex:1}.previewFrame{flex:1}.dungeonMap{position:relative;background:#0b1c25;line-height:0}.dungeonMap>img{display:block;width:100%;height:auto}.dungeonMap .dungeonOverlay{position:absolute;inset:0;width:100%;height:100%;max-height:none;overflow:visible}.dungeonOverlay .road{stroke:#52f0a5;stroke-width:2;fill:none;filter:drop-shadow(0 0 2px #1d9459);stroke-linejoin:round;stroke-linecap:round}.mapDot .hitArea{fill:transparent!important;stroke:transparent!important;filter:none!important;animation:none!important;opacity:0!important}.routeMaps .mapPanel{min-width:0}.routeMaps .panelTitle{min-height:67px}.routeMaps .mapHint{font-size:10px;min-height:50px}
@media(min-width:1100px){.routeMaps,.routeMaps:has(#dungeonPanel:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(0,.96fr) minmax(0,1fr);align-items:stretch}.routeMaps:has(#dungeonPanel[hidden]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(min-width:761px) and (max-width:1099px){.routeMaps,.routeMaps:has(#dungeonPanel:not([hidden])){grid-template-columns:1fr 1fr}.routeMaps>#dungeonPanel{grid-column:1/-1;max-width:640px;justify-self:center;width:100%}}
@media(max-width:760px){.routeMaps,.routeMaps:has(#dungeonPanel:not([hidden])){grid-template-columns:1fr}.previewFrame{min-height:160px}.previewPanel .panelTitle{min-height:54px}}
.mapSuggestions{touch-action:pan-y}

.previewFrame .spotImage{width:min(100%,calc(320px * var(--preview-ratio,1)));margin-inline:auto}.previewFrame{overflow:hidden}.previewFrame .spotImage img{height:auto}

.monsterFinder{margin:16px 0;padding:20px;border:1px solid #304b59;border-radius:14px;background:#152735}.monsterFinder h2{margin-top:0}.monsterFinder label{display:block;font-size:12px;color:#a7c0ce}.monsterFinder input{display:block;width:min(100%,480px);margin-top:8px;padding:12px;border:1px solid #3a5967;border-radius:9px;background:#0e202b;color:#edf8fa;font:inherit;font-size:14px}.monsterMatches,.monsterSpawnList{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}.monsterMatches button,.monsterSpawnList button{display:flex;align-items:center;gap:10px;text-align:left;padding:10px;border:1px solid #365160;border-radius:10px;background:#1a3040;color:#e0eff1;cursor:pointer}.monsterMatches button:hover,.monsterSpawnList button:hover{border-color:#9be9ca}.monsterMatches img{object-fit:contain;image-rendering:pixelated}.monsterFinder strong,.monsterFinder small{display:block}.monsterFinder strong{font-size:13px}.monsterFinder small{margin-top:4px;font-size:11px;color:#94b5c7}.monsterSpawns h3{font-size:14px;color:#a0edcf;margin:14px 0 10px}.monsterSpawnList button{display:block}.monsterSpawnList button:disabled{opacity:.5;cursor:default}

#routeMonsters {padding:0 20px 16px}
.routeMonsterHeading,.routeDropHeading {display:flex;align-items:baseline;justify-content:space-between;gap:6px 14px;flex-wrap:wrap}
.routeMonsterHeading {justify-content:flex-start;margin-bottom:8px}
.routeMonsterHeading h3,.routeDropHeading h4 {margin:0;font-size:15px}
.routeMonsterHeading span {color:#a4bdca;font-size:12px}
.routeMonsterGrid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,172px),1fr));gap:7px}
.routeMonster {display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;text-align:left;background:#192f3d}
.routeMonster[aria-expanded=true] {border-color:#84cfb3;background:#20403b}
.routeMonster img {flex:none;object-fit:contain;image-rendering:pixelated}
.routeMonster span {min-width:0;overflow-wrap:anywhere}
.routeMonster strong,.routeMonster small {display:block}
.routeMonster small {margin-top:3px;color:#b3cbd5}
.routeMonster::after {content:"";margin-left:auto;margin-right:3px;flex:none;width:6px;height:6px;border:solid #aad6c9;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.routeMonster[aria-expanded=true]::after {transform:rotate(225deg)}
.routeDropPanel {margin-top:9px;padding:12px 14px;border:1px solid #33545d;border-radius:9px;background:#11232f}
.routeDropHeading {margin-bottom:7px}
.routeDropHeading a,.routeDrops a {text-decoration:underline;text-underline-offset:3px}
.routeDropHeading a {font-size:13px}
.routeDrops {margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:4px 14px;max-height:16rem;overflow:auto}
.routeDrops a {display:flex;align-items:center;gap:8px;min-height:38px;padding:3px 0;font-size:13px}
.routeDrops img {flex:none;object-fit:contain;image-rendering:pixelated}
.routeDrops a span {min-width:0;overflow-wrap:anywhere}
.routeDrops small {margin-left:5px;color:#f0c990;white-space:nowrap}
@media(max-width:540px) {
 #routeMonsters {padding-inline:14px}
 .routeMonsterGrid {grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
}

.routePage{padding-top:16px}.routeHeading h1,.routeHeading p{margin:4px 0}.routeForm,.monsterFinder{margin:8px 0;padding:12px 16px}.monsterFinder h2,.monsterFinder p{margin:4px 0}
#result.destinationFirst:not([hidden]){display:flex;flex-direction:column}#result.destinationFirst .routeDetails{order:-1}
#result.mapOnly .routeSummary,#result.mapOnly .routeMaps,#result.mapOnly .stepsPanel,#result.mapOnly .detailNav{display:none}
#result.mapOnly .routeDetails{display:block}
@media(max-width:760px){#result.destinationFirst .routeDetails{display:flex;flex-direction:column}#result.destinationFirst .detailPanel{order:-1}}
