/* PROJECT OHANA V40 · WORLD GRAPH MAP */
/* An illustrated atlas, backed by the actual room graph. */
#map-overlay .panel{width:min(960px,calc(100vw - 24px))!important;max-height:calc(100dvh - 28px)!important;overflow:auto;padding:26px!important;background:radial-gradient(circle at 50% 25%,rgba(20,44,70,.92),rgba(8,16,28,.97) 75%)!important;color:#e8f4f2!important;border:1.5px solid rgba(100,210,255,.28)!important;border-radius:24px!important;box-shadow:0 28px 100px rgba(0,0,0,.75),0 0 50px rgba(0,210,255,.14),inset 0 1px rgba(255,255,255,.12)!important;backdrop-filter:blur(22px)!important;text-align:left;}
#map-title{font:700 32px Fredoka,sans-serif!important;color:#ffffff!important;margin:4px 0 8px;text-shadow:0 0 20px rgba(100,220,255,.5)!important;}
.map-eyebrow{font:800 10px Outfit,sans-serif!important;letter-spacing:.22em!important;color:#00f0ff!important;text-shadow:0 0 10px rgba(0,240,255,.6)!important;margin:0;}
.map-intro{font-size:13px;color:#9abed2!important;margin:0 0 16px;}
#map-grid{display:block!important;position:relative!important;width:100%!important;aspect-ratio:auto!important;min-height:0!important;margin:0!important;overflow:visible!important;background:none!important;border:0!important;box-shadow:none!important;}
.world-map-v40{position:relative!important;inset:auto!important;background:none!important;border:0!important;}
.wm-summary{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font:700 10px Outfit,sans-serif;letter-spacing:.1em;color:#7af0e0;}
.wm-summary strong{font:600 22px Fredoka,sans-serif;color:#ffffff;letter-spacing:0;text-shadow:0 0 10px rgba(122,240,224,.3);}.wm-summary strong small{font:500 12px Outfit,sans-serif;color:#9bbcd0;}
.wm-scroll{overflow-x:auto;border-radius:18px;border:1.5px solid rgba(122,240,224,.4);background:#0b1d30;scrollbar-color:#42e8d0 #0b1d30;scrollbar-width:thin;box-shadow:inset 0 0 35px rgba(0,0,0,.6),0 8px 30px rgba(0,0,0,.45);}
.wm-board{position:relative;min-width:680px;aspect-ratio:1000/560;background:radial-gradient(ellipse at 50% 30%,rgba(20,55,90,.65),rgba(9,19,32,.95) 75%);}
.wm-chart{position:absolute;width:100%;height:100%;inset:0;}.wm-shore{fill:#153757;stroke:#42e8d0;stroke-width:6;stroke-linejoin:round;filter:drop-shadow(0 0 10px rgba(66,232,208,.35));}.wm-highland{fill:#1d4872;stroke:#7af0e0;stroke-width:4;}.wm-contour{fill:none;stroke:rgba(122,240,224,.22);stroke-width:1.5;}.wm-sea-label{fill:#74bfdc;font:600 14px Outfit,sans-serif;letter-spacing:8px;text-anchor:middle;text-shadow:0 0 14px rgba(116,191,220,.6);}.wm-waves{fill:none;stroke:rgba(66,232,208,.32);stroke-width:2;}
.wm-edge{fill:none;stroke:#52c2bd;stroke-width:3.5;stroke-linecap:round;opacity:.9;filter:drop-shadow(0 0 6px rgba(82,194,189,.4));}.wm-edge.locked{stroke:#557088;opacity:.4;stroke-dasharray:3 8;filter:none;}.wm-edge.wm-drop{stroke-dasharray:3 7;stroke:#38d8ff;}.wm-edge.wm-catapult{stroke:#ffb04a;stroke-dasharray:6 8;}.wm-edge.wm-vortex{stroke:#c7b1f1;stroke-dasharray:2 8;}
.wm-node{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:grid;justify-items:center;gap:3px;width:76px;min-height:70px;padding:4px 0;background:none;border:0;color:#e8f4f2;box-shadow:none;cursor:pointer;z-index:2;transition:transform .16s ease;}
.wm-marker{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#13304c;border:1.5px solid #7af0e0;color:#ffffff;box-shadow:0 0 16px rgba(122,240,224,.35),0 4px 0 rgba(0,0,0,.4);}.wm-marker svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.wm-node b{font:700 10px Outfit,sans-serif;letter-spacing:.05em;background:rgba(11,28,46,.92);color:#7af0e0;border:1px solid rgba(122,240,224,.35);border-radius:5px;padding:2px 6px;text-shadow:0 0 8px rgba(122,240,224,.4);}.wm-node small{font:600 7px Outfit,sans-serif;letter-spacing:.02em;white-space:nowrap;color:#cbe6f5;background:rgba(8,20,34,.9);padding:1px 5px;border-radius:3px;}
.wm-node.lock{color:#647d92;}.wm-node.lock .wm-marker{background:#112233;border-style:dashed;border-color:#486379;box-shadow:none;color:#647d92;}.wm-node.here .wm-marker{background:linear-gradient(135deg,#7af0e0,#42e8d0);color:#05141e;border-color:#ffffff;box-shadow:0 0 0 5px rgba(122,240,224,.45),0 0 24px #42e8d0;}.wm-node.selected:not(.here) .wm-marker{border:2px solid #ffffff;box-shadow:0 0 0 4px rgba(122,240,224,.6),0 0 18px rgba(66,232,208,.5);}.wm-node:hover{transform:translate(-50%,-54%);}.wm-node:focus-visible{outline:2px solid #7af0e0;outline-offset:4px;border-radius:10px;}
.wm-north{position:absolute;right:22px;top:16px;text-align:center;color:#7af0e0;font:600 11px Outfit,sans-serif;line-height:1.5;text-shadow:0 0 10px rgba(122,240,224,.4);}
.wm-legend{position:static;display:flex;flex-wrap:wrap;gap:16px;margin:12px 0;font:500 11px Outfit,sans-serif;color:#9bbcd0;}.wm-legend span{display:flex;align-items:center;gap:6px;}.wm-legend i{display:block;width:15px;height:3px;background:#52c2bd;border-radius:2px;box-shadow:0 0 6px rgba(82,194,189,.5);}.wm-legend .drop{background:#38d8ff;box-shadow:0 0 6px rgba(56,216,255,.5);}.wm-legend .catapult{background:#ffb04a;box-shadow:0 0 6px rgba(255,176,74,.5);}.wm-legend .vortex{background:#c7b1f1;box-shadow:0 0 6px rgba(199,177,241,.5);}
.wm-detail{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;padding:18px 20px 14px;border-top:1px solid rgba(122,240,224,.25);background:rgba(12,28,46,.75);border-radius:14px;margin-top:14px;}.wm-detail-kicker{font:700 10px Outfit,sans-serif;letter-spacing:.08em;color:#7af0e0;}.wm-detail h3{font:600 24px Fredoka,sans-serif;margin:4px 0 8px;color:#ffffff;text-shadow:0 0 12px rgba(122,240,224,.4);}.wm-detail p{font:400 13px/1.6 Outfit,sans-serif;margin:0;color:#cbe6f5;}.wm-detail ul{list-style:none;padding:0;margin:0;display:grid;gap:6px;align-content:start;}.wm-detail li{display:flex;justify-content:space-between;gap:8px;font:600 12px Outfit,sans-serif;border-bottom:1px solid rgba(122,240,224,.18);padding:6px 0;color:#e8f4f2;}.wm-detail li small{font-weight:400;color:#9bbcd0;text-align:right;}
#map-overlay #btn-close-map{margin-top:14px;background:linear-gradient(135deg,#7af0e0,#42e8d0)!important;color:#05141e!important;font-weight:800!important;border:1px solid #9efcf0!important;border-radius:12px;padding:12px 22px;min-height:44px;box-shadow:0 4px 16px rgba(66,232,208,.35)!important;cursor:pointer;transition:transform .15s ease;}
#map-overlay #btn-close-map:hover{transform:translateY(-2px);background:linear-gradient(135deg,#a4fbf0,#5af0db)!important;}
@media(max-width:640px){#map-overlay .panel{padding:18px!important;border-radius:18px!important;}#map-title{font-size:27px;}.wm-detail{grid-template-columns:1fr;gap:12px;}.wm-scroll{overflow-y:hidden;}.wm-board{min-width:680px;}.wm-legend{gap:10px;font-size:10px;}.wm-detail h3{font-size:22px;}.wm-detail p{font-size:12px;}}
@media(prefers-reduced-motion:reduce){.wm-node{transition:none;}.wm-node:hover{transform:translate(-50%,-50%);}}

/* Stitcho's personal atlas: dark electric sea with accessible readable nodes. */
.stitcho-atlas .wm-scroll{background:#102e50;border-color:#75dce7;scrollbar-color:#6ac4e5 #132d4d;}
.stitcho-atlas .wm-board{background:#102e50;}
.stitcho-atlas .wm-marker{background:#164c6a;color:#c5f7ff;border-color:#74dce9;box-shadow:0 3px 0 #06344999;}
.stitcho-atlas .wm-node b{background:#d9faff;color:#0b3655;}
.stitcho-atlas .wm-node small{background:#123653e8;color:#ecffff;}
.stitcho-atlas .wm-node.here .wm-marker{background:#e4faff;color:#15415c;border-color:#9df9f3;box-shadow:0 0 0 6px #56cfff55;}
.stitcho-atlas .wm-node.selected:not(.here) .wm-marker{box-shadow:0 0 0 5px #8deeff70;border-color:#e5ffff;}
.stitcho-atlas .wm-node:hover .wm-marker{background:#bbebff;color:#193a63;}
.stitcho-atlas .wm-north{color:#c7efff;}
.stitcho-atlas .wm-node:focus-visible{outline-color:#a7eaff;}

/* V2 chapter atlas: scoped parchment chart with readable current objectives. */
#map-grid .v2-atlas .wm-detail{display:block;background:#183347!important;color:#e6f0dd;border:1px solid #829f96;margin-top:16px;padding:18px;border-radius:16px}
#map-grid .v2-atlas .wm-detail h3{color:#fff0c8;font-size:24px;margin:0 0 8px}
#map-grid .v2-atlas .wm-detail h4{color:#ffdda2;margin:18px 0 6px;font-size:15px}
#map-grid .v2-atlas .wm-detail p,#map-grid .v2-atlas .wm-detail strong{color:#d9e8db;font-size:13px;line-height:1.65}
#map-grid .v2-atlas .wm-node{position:static;transform:none;width:auto;min-height:74px;border:1px solid #8caaa3;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:12px;gap:6px}
#map-grid .v2-atlas .wm-node small{font-size:10px;background:none;color:#c2dfd3;white-space:normal}
#map-grid .v2-atlas .wm-node.selected{box-shadow:inset 0 0 0 2px #fff0bb}
#map-grid .v2-atlas .wm-detail svg{display:block;width:100%;height:auto;border:1px solid #729887;border-radius:10px;margin:12px 0}
