/* Compact field HUD. Keep menus and touch inputs readable; remove unused grid cells. */
#game .fieldHud{left:8px;right:auto;width:184px;max-width:calc(100% - 108px);top:calc(env(safe-area-inset-top) + 95px)}
#game .fieldHud #quest{width:100%;max-width:none;padding:4px 5px}
#game #quest small{font-size:9px;line-height:11px}
#game #quest strong{font-size:11px;line-height:13px;margin:1px 0;white-space:normal;overflow-wrap:anywhere}
#game #questProgress{font-size:10px;line-height:12px}
#game #questRewards{gap:3px;margin-top:3px}
#game #questRewards .questReward{width:20px;height:20px}
#game #questRewards .questReward b{font-size:8px}
#game .questAutoBox{display:flex;flex-wrap:wrap;align-items:center;gap:3px;width:100%;max-width:none;padding:3px 0 0}
#game .questAutoBox>#questAuto,#game .questAutoBox>#questTeleport,#game .questAutoBox>#fieldEntry,#game .questAutoBox>#questAutoHelp{position:static;grid-area:auto;flex:0 0 auto;width:auto;min-width:0;min-height:27px;padding:3px 6px;margin:0;font:10px/15px var(--font-ui);white-space:nowrap}
#game #questTeleport .teleportIcon{flex-basis:12px;width:12px}
#game #questTeleport .menuSymbol{width:12px;height:14px}
#game .questAutoBox.needsAttention #questAutoStatus{display:block;flex-basis:100%;font:10px/14px var(--font-ui);color:#ffd6bd;background:#4a221fda;padding:3px 5px;border-radius:3px}
#game #mapRail{width:84px;gap:2px;top:calc(env(safe-area-inset-top) + 91px)}
#game #networkLatency{align-self:flex-end;min-height:12px;padding:1px 4px;border-radius:3px;background:#10271ec9;font:10px/12px var(--font-ui);font-variant-numeric:tabular-nums;color:#9febc0;white-space:pre-line;text-align:right;max-width:100%}
#game #networkLatency[data-quality=fair]{color:#ffdc85}#game #networkLatency[data-quality=slow],#game #networkLatency[data-quality=offline]{color:#ffafa0}#game #networkLatency[data-quality=pending]{color:#c0cec6}
#game #mapRail .location{min-height:18px;padding:0;font-size:11px;line-height:16px}
#game #miniMapToggle{height:22px;min-height:22px;padding:2px;font-size:9px;line-height:16px}
#game #miniMapOpen{height:92px;padding:0;border:0;overflow:hidden}
#game #miniMapCanvas{height:92px;width:100%;min-height:0}
#game #mapRail #travel{min-height:28px;padding:3px 2px;gap:1px}
#game #travel .travelText{font-size:10px;line-height:12px}#game #travel .travelState{font-size:9px;line-height:11px}
#game #mapRail #partyMini{width:100%;height:auto;padding:3px 4px}
#game #mapRail #pkStatus{min-height:25px;padding:3px 2px;font-size:10px;line-height:13px}
#game #pkLock{font-size:10px}
#game #pkTarget{padding:0;border:0;background:none}
#game #pkTargetName,#game #pkTargetBar,#game #pkTargetHp{display:none}
#game #pkStop{min-height:25px;margin-top:0;padding:2px;font-size:10px}
#game .fieldHud #bossHud{width:100%;max-width:none;padding:4px}
@media(pointer:coarse){#game .questAutoBox>#questAuto,#game .questAutoBox>#questTeleport,#game .questAutoBox>#fieldEntry,#game .questAutoBox>#questAutoHelp{min-height:30px}}
@media(max-width:370px){#game .fieldHud{width:174px}#game #mapRail{width:78px}#game .questAutoBox{gap:2px}#game .questAutoBox>button{padding-inline:5px}}

/* The portrait and three bars now occupy one aligned block, below the alpha badge. */
#game header{height:75px}
#game header .portrait{width:44px;height:50px;margin-top:10px;flex:none;border-radius:20px 20px 5px 5px}
#game header #level{left:0;right:0;bottom:0;width:auto;min-height:14px;padding:0;font-size:10px;line-height:14px}
#game header .identity{width:clamp(148px,calc(100vw - 171px),180px);margin-top:10px;min-width:0}
#game .identityTitle{display:flex;align-items:center;gap:5px;height:16px;min-width:0;margin-bottom:1px}
#game header .identityTitle #name{flex:1;min-width:0;max-width:none;margin:0;font-size:11px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game .identityTitle .powerLine{flex:none;gap:3px;height:15px;white-space:nowrap}
#game .identityTitle .powerLine span{font-size:8px!important}
#game .identityTitle .powerLine b{font-size:10px;line-height:15px;font-variant-numeric:tabular-nums}
#game .fieldHud{top:calc(env(safe-area-inset-top) + 77px)}
#game #mapRail{top:calc(env(safe-area-inset-top) + 77px)}
#game #questFold{display:block;width:max-content;min-height:23px;margin:0 0 2px;padding:2px 7px;border:1px solid #96b4a566;border-radius:4px;background:#10251ee8;color:#dceada;font-size:10px;line-height:17px;pointer-events:auto}
#game.questFolded #quest,#game.questFolded #questActions{display:none!important}
@media(pointer:coarse){#game #questFold{min-height:28px}}
/* Capped, short-lived ground beacons. No images, blur filters, particles or new packets. */
.lootBeacon{--loot-color:186,130,255;--loot-width:36px;--loot-height:72px;position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;contain:layout style;will-change:transform,opacity}
.lootBeacon.legendary,.lootBeacon.manual{--loot-color:255,211,96;--loot-width:52px;--loot-height:112px}
.lootBeacon.mythic{--loot-color:255,100,132;--loot-width:66px;--loot-height:138px}
.lootBeacon::before{content:'';position:absolute;left:calc(var(--loot-width) / -2);bottom:0;width:var(--loot-width);height:var(--loot-height);background:linear-gradient(90deg,transparent,rgba(var(--loot-color),.28) 38%,rgba(var(--loot-color),.75) 49%,rgba(var(--loot-color),.28) 62%,transparent);mask-image:linear-gradient(transparent,#000 65%)}
.lootBeacon::after{content:'';position:absolute;left:calc(var(--loot-width) / -1);top:-8px;width:calc(var(--loot-width) * 2);height:20px;border-radius:50%;background:radial-gradient(ellipse,rgba(var(--loot-color),.8),rgba(var(--loot-color),.18) 45%,transparent 70%)}
#game header .identity{width:clamp(128px,calc(100vw - 210px),180px)}
#game header .currencies{width:clamp(120px,calc(100vw - 248px),142px);max-width:142px;gap:1px 3px}
#game header .identityTitle #name{flex:0 1 auto}
@media(max-width:370px){#game header .headerActions{gap:4px}#game header .headerActions button,#game header .headerActions #menu{width:25px;padding:2px}}

/* Always visible, including when the minimap is folded. Uses the existing atlas menu. */
#game #mapTravelOpen{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:30px;margin:0;padding:4px 3px;border:0;border-top:1px solid #d5b875;border-radius:0;background:linear-gradient(#f1d89b,#dcb86d);color:#24372b;font:700 12px/18px var(--font-ui);white-space:nowrap;cursor:pointer;touch-action:manipulation}
#game #mapTravelOpen:hover{background:#ffe5a9}#game #mapTravelOpen:focus-visible{outline:2px solid #fff;outline-offset:-3px}
@media(pointer:coarse){#game #mapTravelOpen{min-height:36px}}
