:root{color-scheme:light;--ink:#213936;--pine:#315c4d;--paper:#f0f1e7;--line:#bdc9b9;--hot:#943c2c;font-family:var(--hud-type);font-weight:500;color:var(--ink)}
*{box-sizing:border-box}
body{margin:0;background:#e6eae0;line-height:1.45;word-break:keep-all}
button,summary,a{font:inherit;color:inherit}
button,summary{min-height:44px;cursor:pointer;font-weight:600}
button{border:0;background:transparent;padding:4px 10px}
button:disabled{cursor:default}
:where(button,a,summary):focus-visible{outline:3px solid #18768b;outline-offset:2px}
p,h1,h2{margin:0}
.mast,main{width:min(980px,calc(100% - 32px));margin-inline:auto}
.mast,.mast nav,.brand,.roomhead,.roomhead>div,.switch{display:flex;align-items:center}
.mast,.roomhead{justify-content:space-between;gap:10px}
.mast{border-bottom:1px solid var(--line);min-height:45px}
.brand{gap:8px;text-decoration:none;font:800 1.08rem var(--title-type)}
.brand svg{width:22px;height:27px}
.mast nav,.switch{font-size:.875rem}
.roomhead{padding:9px 1px 11px}
.roomhead .room-title{display:grid;justify-items:start;gap:2px}
.room-meta{display:flex;align-items:center;gap:9px;font-size:.83rem;font-weight:600}
.room-meta #chapter{font-weight:600;color:#335343;font-variant-numeric:tabular-nums}
#roomKind{border-inline-start:1px solid #93a195;padding-inline-start:9px;color:#52625a}
#roomKind[data-kind=elite],#roomKind[data-kind=boss]{color:#874536}
h1{font:800 1.4rem var(--title-type)}
#chapter{color:#53665c;font-size:.85rem}
.switch [aria-pressed=true]{box-shadow:inset 0 -2px var(--pine);color:var(--pine)}
.console{overflow:clip;border:1px solid #95a79a;border-radius:8px;box-shadow:0 5px 16px #223a3015}
.arena{position:relative}
.field{background:#d4dfd3}
#scene{width:100%;height:clamp(275px,calc(100svh - 392px),650px);display:block;touch-action:manipulation}
.intel{position:absolute;inset:8px 8px auto auto;z-index:2;max-width:calc(100% - 16px);font-size:.875rem}
.intel summary,.intel-sheet{background:#f5f5eaf5;border:1px solid #879a87;border-radius:5px}
.intel summary{width:max-content;margin-left:auto;align-content:center;padding:0 12px}
.intel-sheet{margin-top:3px;width:min(286px,84vw);max-height:38svh;overflow:auto;padding:10px}
.intent{width:100%;display:flex;align-items:center;gap:8px;border-top:1px solid #bfcabd;text-align:left}
.intent strong,.intent small{display:block}
.intent[aria-pressed=true],.intent.linked-source{background:#f4ddcb}
.source{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--hot);color:white}
.rest .source{background:#627368}
#lift,#forecast{margin-top:4px}
#forecast.warn{color:var(--hot)}
.source-badges[pointer-events=all]{cursor:pointer}
.threat-pin.focused .intent-glyph,.threat-pin.linked-source .intent-glyph{stroke:#fff4c7;stroke-width:7}
.threat-pin.focused>path,.threat-pin.linked-source>path{stroke-width:3;stroke:#7c382a}
@media(max-width:720px){
 .mast,main{width:auto;margin-inline:max(6px,env(safe-area-inset-left)) max(6px,env(safe-area-inset-right))}
 main{padding-bottom:env(safe-area-inset-bottom)}
 .roomhead>div:first-child{align-items:start;flex-direction:column;gap:0}.mast nav button,.switch button{padding-inline:7px}
 #scene{height:auto;max-height:52svh}
 .intel{position:static;max-width:none;background:#e4eadf;border-top:1px solid var(--line)}
 .intel summary{width:100%;min-height:44px;font-size:.875rem;border:0;border-radius:0;background:transparent}
 .intel-sheet{margin:0;width:100%;max-height:28svh;border:0;border-top:1px solid var(--line);border-radius:0}
}
.hit,.hit:focus,.hit:focus-visible{fill:transparent;stroke:none;outline:none;pointer-events:all;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tile-ring,.travel-line{fill:none;pointer-events:none;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.reachable{stroke:#537d69;stroke-width:1.2;stroke-dasharray:4 4}
.targetable{stroke:#68438a;stroke-width:3}
.legend .target{border-color:#68438a}
.body-cell{fill:#566978;fill-opacity:.23;stroke:#44575c;stroke-width:1.5}
.boss-footprint{fill:none;stroke:#30464a;stroke-width:3;vector-effect:non-scaling-stroke}
.cell-chip{pointer-events:none}
.cell-chip rect{fill:#405252;stroke:#faf6e9;stroke-width:1.5}
.cell-chip.core rect{fill:#176364}
.cell-chip.aimed-arm rect{fill:#814534;stroke-width:2.5}
.cell-chip.choice rect{fill:#623986}
.cell-chip text{fill:white;font-size:19px;font-weight:600}
.boss-hp{padding-bottom:.4rem}
.boss-hp b{color:#155b5b}
.inspected{stroke:#213a45;stroke-width:2.5;stroke-dasharray:8 3}
.landing{stroke:#19557d;stroke-width:2.8;stroke-dasharray:10 3 2 3}
.travel-line{stroke:#19557d;stroke-width:2;stroke-dasharray:5 3}
.part-tag,.relation{paint-order:stroke;stroke:#f4f2e7;stroke-width:4px;stroke-linejoin:round;pointer-events:none}
.part-tag{text-anchor:middle;fill:#243d3a;font-size:16px;font-weight:600}
.legend .dest{border:2px dashed #19557d}
.linked-source>ellipse{stroke:#49271d;stroke-width:3;paint-order:stroke;filter:drop-shadow(0 0 2px #fff5dd)}
.intent.linked-source{box-shadow:inset 3px 0 #a94e35;background:#f0dece}

@media(max-width:720px){.part-tag{font-size:19px}}
#scene.previewing .impact-mark{visibility:hidden}
#scene.resolving-crossfire .threat-pin{visibility:hidden}
dialog{padding:0;background:#f2f2e8;color:var(--ink);border:1px solid #899887;border-radius:12px 3px 12px 3px}
dialog::backdrop{background:#172e29ad}
#guide{width:min(27rem,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-shadow:0 12px 36px #12292155}
#guide[open]{display:flex;flex-direction:column}
.dialog-head{display:flex;align-items:center;padding:8px 17px;flex:none}
.dialog-head{justify-content:space-between;gap:10px;border-bottom:1px solid #bec8b7}
.dialog-head h2{font:800 1.28rem var(--title-type)}
.dialog-head button{font-size:.88rem}.dialog-head button span{margin-left:3px;font-size:1.15rem}
.guide-body{padding:0 18px;overflow-y:auto;overscroll-behavior:contain}
.guide-moves,.key-list,.guide-moves dd,.key-list dd{margin:0}
.guide-moves>div{display:grid;grid-template-columns:86px 1fr;gap:10px;align-items:start;padding:13px 0;border-bottom:1px solid #ced5c7}
.guide-moves dt{display:flex;align-items:center;gap:6px;font-weight:600}
.guide-moves dd,.guide-input,.guide-extra p,.key-list{font-size:.92rem;line-height:1.5}
.guide-tile{display:inline-block;width:18px;height:16px;flex:none;transform:skewX(-12deg);background:#e4e8d6;border:2px dashed #597d64}
.guide-tile.aim{background:#e9e1eb;border:2px solid #68438a}
.guide-tile.danger{background:repeating-linear-gradient(120deg,#f0d4b9 0 4px,#aa684c 4px 5px);border:1px solid #98553e}
.guide-input{padding:10px 12px;margin:12px 0 4px;background:#e0e7d9;border-left:3px solid #748e72}
.guide-input strong{display:block;font-size:.84rem}.touch-guide{display:none}
@media(pointer:coarse){.mouse-guide{display:none}.touch-guide{display:inline}}
.guide-extra{margin-bottom:4px}.guide-extra summary{align-content:center;font-size:.91rem}.guide-extra p{color:#486050}
.key-list{margin:8px 0 12px}.key-list>div{display:flex;justify-content:space-between;border-bottom:1px solid #d5d9cc;padding:3px 0}
.key-list dd{font-weight:600}
@media(prefers-reduced-motion:no-preference){
.idle-lancer:not(.aimed){animation:spear-shift 3.1s ease-in-out infinite}.idle-mortar:not(.aimed) .barrel-motion{transform-origin:0 -38px;animation:barrel-scan 4s ease-in-out infinite alternate}.idle-brute:not(.aimed){animation:brace 3.6s ease-in-out infinite}
@keyframes spear-shift{50%{transform:skewX(-1.6deg)}}@keyframes barrel-scan{from{transform:rotate(-5deg)}to{transform:rotate(9deg)}}@keyframes brace{55%{transform:scale(1.014,.97)}}
}
.ruin-hit{filter:brightness(1.45) drop-shadow(0 0 2px #9d533f)}
@media(prefers-reduced-motion:no-preference){
  .ruin-hit{animation:ruin-contact 230ms ease-out both}
  @keyframes ruin-contact{0%,22%{filter:brightness(1.8) drop-shadow(0 0 3px #8e4f41)}100%{filter:none}}
}
.switch[hidden]{display:none}
