/* In-raid MAP overlay (js/map.js): full-screen map, zoom controls and the slide-up card. Skin "art v1": the phase-1 design
   system (thick navy outlines, glossy round buttons, blue panels, Lilita One headings) — layout unchanged. */
#hud .ov.mapOv { left:0; right:0; top:0; bottom:0; border:none; border-radius:0; background:#1c4557; z-index:20; box-shadow:none; }
#hud .ov.mapOv.open { animation:none; }
#hud .mapOv .mapTop { position:absolute; left:0; right:0; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:calc(7px + var(--st)) 10px 8px; background:linear-gradient(180deg,#1d4c8c,#12305e 70%,#0e2750); border-bottom:3px solid var(--ol); box-shadow:inset 0 -2px 0 rgba(120,190,255,.2), 0 3px 0 rgba(0,0,0,.2); }
#hud .mapOv .mapIb { position:relative; width:44px; height:44px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; padding:0; border:3px solid var(--ol);
  background:radial-gradient(circle at 50% 30%,#6fc8ff,#1e6fdc 65%,#1450a8); box-shadow:inset 0 2px 0 rgba(255,255,255,.5), inset 0 -3px 0 rgba(0,0,0,.2), 0 3px 0 var(--ol); }
#hud .mapOv .mapIb svg { filter:drop-shadow(0 1.5px 0 var(--ol)); }
#hud .mapOv .mapIb:active { transform:translateY(2px); box-shadow:inset 0 2px 0 rgba(255,255,255,.5), 0 1px 0 var(--ol); }
#hud .mapOv #mapClose { background:radial-gradient(circle at 50% 30%,#ff9a7a,#e8392a 65%,#b8200e); }
#hud .mapOv .mapIbGap { width:44px; flex:none; }
#hud .mapOv .mapTtl { display:flex; flex-direction:column; align-items:center; gap:2px; min-width:0; }
#hud .mapOv .mapTtl b { font:400 24px/1 var(--fh); letter-spacing:.08em; color:#fff; text-shadow:var(--so); }
#hud .mapOv .mapTtl span { font:900 12.5px var(--fb); letter-spacing:.02em; color:#ffd23f; text-shadow:0 1.5px 0 var(--ol),0 -1px 0 var(--ol),1px 0 0 var(--ol),-1px 0 0 var(--ol); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:62vw; }
#hud #mapCv { position:absolute; left:0; top:0; width:100%; height:100%; aspect-ratio:auto; touch-action:none; cursor:grab; }
#hud .mapOv .mapCtrls { position:absolute; right:12px; bottom:calc(var(--sb) + 18px); z-index:2; display:flex; flex-direction:column; gap:10px; align-items:center; transition:bottom .22s ease; }
#hud .mapOv .mapZoom { width:48px; border-radius:24px; background:linear-gradient(180deg,#24508f,#12305e); border:3px solid var(--ol); display:flex; flex-direction:column; align-items:center; overflow:hidden; box-shadow:inset 0 2px 0 rgba(140,205,255,.35), 0 3px 0 var(--ol); }
#hud .mapOv .mapZoom button { width:44px; height:42px; background:none; border:none; display:flex; align-items:center; justify-content:center; padding:0; }
#hud .mapOv .mapZoom button svg { filter:drop-shadow(0 1.5px 0 var(--ol)); }
#hud .mapOv .mapZoom button:active { background:rgba(255,255,255,.12); }
#hud .mapOv .mapZoom span { font:400 13px var(--fh); color:#ffd23f; text-shadow:var(--so2); font-variant-numeric:tabular-nums; }
#hud .mapOv #mapMe { width:48px; height:48px; border-radius:50%; }

/* ---------- the card ---------- */
#hud .mapSheet { position:absolute; left:0; right:0; bottom:0; z-index:3; max-height:66%; overflow:auto; box-sizing:border-box; padding:0 14px calc(var(--sb) + 14px);
  background:linear-gradient(180deg,#2a6fc0,#1c4f95 30%,#153d77); border-top:3px solid var(--ol); border-radius:24px 24px 0 0; box-shadow:inset 0 2px 0 rgba(140,205,255,.35), 0 -8px 26px rgba(0,0,0,.4);
  transform:translateY(105%); transition:transform .22s ease; font-family:var(--fb); font-weight:800; color:#fff; overscroll-behavior:contain; }
#hud .mapOv.sheetOpen .mapSheet { transform:translateY(0); }
#hud .mapSheet .msGrab { width:44px; height:6px; border-radius:3px; background:rgba(11,26,51,.6); margin:8px auto 10px; }
#hud .mapSheet .msH { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
#hud .mapSheet .msIco { width:48px; height:48px; flex:none; border-radius:50%; border:3px solid var(--ol) !important; display:flex; align-items:center; justify-content:center; background:#0d2a55 !important; box-shadow:inset 0 2px 0 rgba(140,205,255,.25), 0 3px 0 var(--ol); }
#hud .mapSheet .msT { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
#hud .mapSheet .msT b { font:400 23px/1.05 var(--fh); letter-spacing:.03em; overflow-wrap:anywhere; color:#fff; text-shadow:var(--so); }
#hud .mapSheet .msT span { font:800 13px/1.25 var(--fb); color:var(--mut); text-shadow:0 1px 0 var(--ol); }
#hud .mapSheet .msT em { font-style:normal; font:400 13px var(--fh); letter-spacing:.04em; text-shadow:var(--so2); }
#hud .mapSheet .msT span em { color:#ffd23f; font:italic 800 13px var(--fb); letter-spacing:0; }
#hud .mapSheet .msX { width:38px; height:38px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; padding:0; border:2.5px solid var(--ol);
  background:radial-gradient(circle at 50% 30%,#ff9a7a,#e8392a 65%,#b8200e); box-shadow:inset 0 2px 0 rgba(255,255,255,.5), 0 2px 0 var(--ol); }
#hud .mapSheet .msX svg { filter:drop-shadow(0 1px 0 var(--ol)); }
#hud .mapSheet .msLive { flex:none; height:26px; padding:0 10px; border-radius:13px; background:linear-gradient(180deg,#ff7a5a,#e0302a); border:2.5px solid var(--ol); display:flex; align-items:center; gap:6px; font:400 12px var(--fh); letter-spacing:.1em; color:#fff; text-shadow:var(--so2); box-shadow:0 2px 0 var(--ol); }
#hud .mapSheet .msLive i, #hud .mapSheet .msAlert > i { width:8px; height:8px; border-radius:4px; background:#fff; flex:none; animation:msPulse 1.1s ease-in-out infinite; }
#hud .mapSheet .msAlert > i { background:#ff5a44; }
@keyframes msPulse { 50% { opacity:.35; } }
#hud .mapSheet .msFacts { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin-bottom:10px; }
#hud .mapSheet .msFacts > div { height:64px; border-radius:14px; background:#0d2a55; border:2.5px solid var(--ol); box-shadow:inset 0 3px 0 rgba(0,0,0,.3), 0 2px 0 rgba(120,190,255,.15); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; }
#hud .mapSheet .msFacts i { font:900 10.5px var(--fb); letter-spacing:.08em; color:#8fb6e6; font-style:normal; }
#hud .mapSheet .msFacts b { font:400 16px var(--fh); color:#fff; text-shadow:var(--so2); }
#hud .mapSheet .msEff { display:flex; align-items:center; gap:8px; padding:9px 11px; border-radius:12px; border:2.5px solid var(--ol) !important; background:#0d2a55 !important; font:800 13.5px/1.3 var(--fb); color:#dbe9fa; }
#hud .mapSheet .msEff svg { flex:none; }
/* extract */
#hud .mapSheet .msCond { padding:10px 12px; border-radius:14px; background:linear-gradient(180deg,#5a4212,#3d2c0a); border:2.5px solid var(--ol); box-shadow:inset 0 0 0 2px rgba(255,210,63,.35), 0 2px 0 var(--ol); display:flex; flex-direction:column; gap:7px; margin-bottom:10px; }
#hud .mapSheet .msCond.ok { background:linear-gradient(180deg,#1f6a1c,#154a12); box-shadow:inset 0 0 0 2px rgba(127,240,90,.4), 0 2px 0 var(--ol); }
#hud .mapSheet .msCond.bad { background:linear-gradient(180deg,#6a1c14,#48120c); box-shadow:inset 0 0 0 2px rgba(255,90,68,.4), 0 2px 0 var(--ol); }
#hud .mapSheet .msCond.unk { background:#0d2a55; box-shadow:inset 0 0 0 2px rgba(159,212,255,.35), 0 2px 0 var(--ol); }
#hud .mapSheet .mcRow { display:flex; align-items:center; gap:8px; } #hud .mapSheet .mcRow b { flex:1; font:400 17px var(--fh); color:#fff; text-shadow:var(--so2); }
#hud .mapSheet .mcRow span { font:800 13px var(--fb); color:#dbe9fa; } #hud .mapSheet .msCond.bad .mcRow span { color:#ffb4a0; }
#hud .mapSheet .mcBar { height:12px; border-radius:7px; background:#0b2346; border:2px solid var(--ol); overflow:hidden; } #hud .mapSheet .mcBar i { display:block; height:100%; background:linear-gradient(180deg,#fff27a,#ffc21a 50%,#f08a0a); border-radius:5px; }
#hud .mapSheet .msChips { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin-bottom:12px; }
#hud .mapSheet .msChips span { height:34px; border-radius:12px; background:#0d2a55; border:2.5px solid var(--ol); box-shadow:inset 0 2px 0 rgba(0,0,0,.3); display:flex; align-items:center; justify-content:center; gap:5px; font:400 14px var(--fh); color:#fff; text-shadow:var(--so2); white-space:nowrap; }
#hud .mapSheet .msChips span svg { stroke:#8fb6e6; }
#hud .mapSheet .msBtn { position:relative; width:100%; height:52px; border-radius:16px; border:3px solid #0f4a08; background:linear-gradient(180deg,#8def58,#35ae22); display:flex; align-items:center; justify-content:center; gap:8px;
  font:400 19px var(--fh); letter-spacing:.06em; color:#fff; text-shadow:0 2px 0 #0f4a08,0 -1.5px 0 #0f4a08,1.5px 0 0 #0f4a08,-1.5px 0 0 #0f4a08,1.5px 1.5px 0 #0f4a08,-1.5px 1.5px 0 #0f4a08; box-shadow:inset 0 2px 0 rgba(230,255,210,.6), inset 0 -4px 0 rgba(0,60,0,.25), 0 4px 0 #0f4a08; }
#hud .mapSheet .msBtn::before { content:""; position:absolute; left:10px; right:10px; top:3px; height:38%; border-radius:12px 12px 18px 18px; background:linear-gradient(180deg,rgba(255,255,255,.4),rgba(255,255,255,0)); pointer-events:none; }
#hud .mapSheet .msBtn svg { stroke:#fff; filter:drop-shadow(0 1.5px 0 #0f4a08); }
#hud .mapSheet .msBtn:active { transform:translateY(3px); box-shadow:inset 0 2px 0 rgba(230,255,210,.6), 0 1px 0 #0f4a08; }
#hud .mapSheet .msBtn.on { background:linear-gradient(180deg,#24508f,#12305e); border-color:var(--ol); color:#bfffb0; box-shadow:inset 0 2px 0 rgba(140,205,255,.3), 0 4px 0 var(--ol); text-shadow:var(--so2); }
#hud .mapSheet .msBtn.on svg { stroke:#7ff05a; }
/* place */
#hud .mapSheet .msDanger { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
#hud .mapSheet .mdBar { flex:1; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:4px; padding:3px; border-radius:9px; background:#0b2346; border:2.5px solid var(--ol); } #hud .mapSheet .mdBar i { height:10px; border-radius:4px; }
#hud .mapSheet .msDanger b { font:400 15px var(--fh); letter-spacing:.06em; text-shadow:var(--so2); }
#hud .mapSheet .msAlert { display:flex; align-items:center; gap:8px; min-height:38px; padding:0 10px; border-radius:12px; border:2.5px solid var(--ol) !important; background:#4a1a18 !important; margin-bottom:8px; font:800 14px var(--fb); color:#fff; }
#hud .mapSheet .msAlert span { flex:1; } #hud .mapSheet .msAlert b { font:400 15px var(--fh); color:#ffb4a0; text-shadow:var(--so2); }
#hud .mapSheet .msSec { display:flex; justify-content:space-between; margin:14px 2px 7px; font:400 14px var(--fh); letter-spacing:.06em; color:#fff; text-shadow:var(--so2); }
#hud .mapSheet .msSec span + span { color:var(--mut); font:900 11px var(--fb); letter-spacing:.06em; text-shadow:0 1px 0 var(--ol); align-self:center; }
#hud .mapSheet .msGrid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; }
#hud .mapSheet .msTile { position:relative; min-height:62px; border-radius:12px; background:#0d2a55; border:2.5px solid var(--ol); border-bottom:4px solid; box-shadow:inset 0 2px 0 rgba(120,190,255,.15), 0 2px 0 rgba(0,0,0,.3); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:4px 3px; text-align:center; }
#hud .mapSheet .msTile .mtI { width:30px; height:30px; font-size:21px; line-height:1; display:flex; align-items:center; justify-content:center; }
#hud .mapSheet .msTile .mtI:not(:has(> img)) { filter:drop-shadow(0 2px 1px rgba(0,0,0,.35)); }
#hud .mapSheet .msTile .mtI .art, #hud .mapSheet .msTile .mtI img { width:100%; height:100%; }
#hud .mapSheet .msTile .mtN { font:800 11px/1.1 var(--fb); color:#fff; }
#hud .mapSheet .msTile.crate { border-width:2.5px; }
#hud .mapSheet .msTile .mcB { position:absolute; left:6px; top:6px; display:flex; gap:2px; align-items:flex-end; } #hud .mapSheet .msTile .mcB i { width:4px; border-radius:1px; }
#hud .mapSheet .msTile .mcK { position:absolute; right:4px; top:4px; line-height:0; }
#hud .mapSheet .msTile.mob { flex-direction:row; gap:5px; background:#4a1a18; border:2.5px solid var(--ol); }
#hud .mapSheet .msTile.mob > span { display:flex; flex-direction:column; align-items:flex-start; gap:1px; }
#hud .mapSheet .msTile.mob b { font:400 13px var(--fh); color:#fff; text-shadow:var(--so2); }
#hud .mapSheet .msTile.mob i { font:900 10.5px var(--fb); letter-spacing:.06em; font-style:normal; color:#ffb4a0; }
#hud .mapSheet .msTile.mob i.a3 { color:#ff7a5a; } #hud .mapSheet .msTile.mob i.a2 { color:#ffab4a; }

/* ---------- Bucket 1 (2026-10-08, Andre: "the map looks like a mobile view"): wider windows get the whole screen ----------
   layout.css narrows every in-raid panel (.ov) to a centred 560 px column on wide / desk layouts; the map is not a panel.
   The place card becomes a floating card on the right instead of a sheet across the bottom. */
html.lay-wide #hud .ov.mapOv, html.lay-desk #hud .ov.mapOv { left:0; right:0; width:auto; transform:none; }
html.lay-desk #hud .mapSheet { left:auto; right:78px; bottom:18px; width:min(420px, calc(100% - 110px)); max-height:calc(100% - 120px); padding-bottom:14px;
  border:3px solid var(--ol); border-radius:20px; transform:translateX(calc(100% + 100px)); box-shadow:inset 0 2px 0 rgba(140,205,255,.35), 0 10px 30px rgba(0,0,0,.45); }
html.lay-desk #hud .mapOv.sheetOpen .mapSheet { transform:none; }
html.lay-desk #hud .mapSheet .msGrab { display:none; }
html.lay-desk #hud .mapSheet .msH { margin-top:14px; }

/* ---------- waypoints (Andre 2026-10-08): pin card, place waypoint buttons ---------- */
#hud .mapSheet .msWayRow { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
#hud .mapSheet .msBtn.alt { height:44px; background:linear-gradient(180deg,#3a74c4,#1f4f95); border-color:var(--ol); color:#e8f2ff; font-size:15px; text-shadow:var(--so2); box-shadow:inset 0 2px 0 rgba(140,205,255,.35), 0 3px 0 var(--ol); }
#hud .mapSheet .msBtn.alt svg { stroke:#e8f2ff; filter:drop-shadow(0 1.5px 0 var(--ol)); }
#hud .mapSheet .msBtn.alt.on { color:#bfffb0; }
#hud .mapSheet .msTip { margin:10px 2px 2px; font:800 12.5px/1.35 var(--fb); color:var(--mut); text-shadow:0 1px 0 var(--ol); }
