.battle-v3-modal{background:#02050a!important;overflow:hidden}
.battle-v3-modal.battle-v3-preparing{opacity:1!important;pointer-events:auto!important;transition:none!important}
.battle-v3-modal>.battle-v3-live-shell,.battle-v3-live-shell{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:#02060c!important;color:#eef8fb!important}
.battle-v3-header{position:absolute;z-index:12;top:0;left:0;right:0;height:72px;box-sizing:border-box;display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(120px,1fr);align-items:center;gap:20px;padding:10px 24px;border-bottom:1px solid rgba(104,224,255,.24);background:linear-gradient(90deg,rgba(3,8,14,.96),rgba(8,18,28,.88),rgba(3,8,14,.96));pointer-events:none}
.battle-v3-header small{display:block;color:#66ddff;font-size:10px;font-weight:900;letter-spacing:.17em}.battle-v3-header strong{display:block;margin-top:3px;font-size:21px}.battle-v3-header>b{justify-self:end;color:#b6ff62;font-size:12px;letter-spacing:.12em}.battle-v3-versus{display:flex;align-items:center;gap:14px;color:#dbe8ed;font-size:12px;font-weight:800}.battle-v3-versus i{color:#71ddff;font-size:10px;font-style:normal}
.battle-v3-canvas-host{position:absolute;inset:72px 0 0;background-color:#06101a;background-position:center;background-size:cover;background-repeat:no-repeat}.battle-v3-live-shell[data-v3-field="HUNT"] .battle-v3-canvas-host{background-image:linear-gradient(rgba(2,7,12,.28),rgba(2,7,12,.56)),url("../assets/ui/project-v/battlefields/v3-nightmare-forest-battlefield-v1.png")}.battle-v3-live-shell[data-v3-field="TOWER"] .battle-v3-canvas-host{background-image:linear-gradient(rgba(2,7,12,.25),rgba(2,7,12,.55)),url("../assets/ui/project-v/battlefields/v3-infinite-tower-sanctum-v1.png")}.battle-v3-live-shell[data-v3-field="PVP"] .battle-v3-canvas-host{background-image:linear-gradient(rgba(2,7,12,.32),rgba(2,7,12,.62)),url("../assets/ui/coin-prediction/arena-v1.png")}.battle-v3-live-shell[data-v3-field="RAID"] .battle-v3-canvas-host{background-image:linear-gradient(rgba(2,7,12,.3),rgba(2,7,12,.6)),url("../assets/ui/project-v/battlefields/v3-world-raid-obsidian-citadel-v1.png")}.battle-v3-live-shell[data-v3-field="SIEGE"] .battle-v3-canvas-host{background-image:linear-gradient(rgba(2,7,12,.3),rgba(2,7,12,.6)),url("../assets/ui/project-v/battlefields/v3-siege-fortress-courtyard-v1.png")}.battle-v3-canvas-host canvas{display:block;width:100%!important;height:100%!important}.battle-v3-loader{position:absolute;z-index:9;inset:0;display:grid;place-content:center;text-align:center;gap:8px;background:linear-gradient(180deg,rgba(3,9,15,.24),rgba(3,9,15,.68))}.battle-v3-loader i{width:36px;height:36px;margin:auto;border:2px solid #29404f;border-top-color:#65e1ff;border-radius:50%;animation:battleV3Spin .8s linear infinite}.battle-v3-loader b{font-size:15px}.battle-v3-loader span{color:#a6bac4;font-size:12px}.battle-v3-live-shell.is-v3-ready .battle-v3-loader,.battle-v3-live-shell.is-result-visible .battle-v3-loader{display:none}
/* Keep the existing CSS artwork when both Pixi background requests failed. */
.battle-v3-live-shell.is-v3-ready .battle-v3-canvas-host:not(.is-v3-background-fallback){background-image:none}
.battle-v3-status{position:absolute;z-index:14;left:18px;bottom:18px;max-width:min(52%,680px);box-sizing:border-box;padding:10px 14px;border-left:2px solid #61dcff;background:rgba(3,8,14,.86);color:#c2d5de;font-size:12px;font-weight:750;pointer-events:none}
.battle-v3-result{z-index:30!important}.battle-v3-live-shell:not(.is-result-visible)>.battle-v3-result{opacity:0;pointer-events:none}.battle-v3-live-shell.is-result-visible>.battle-v3-result{opacity:1;pointer-events:auto}
.battle-v3-live-shell .pv-ultimate-layer{position:absolute;z-index:25;inset:0;display:flex;align-items:flex-end;padding:32px;box-sizing:border-box;background:#02040a;opacity:0;pointer-events:none;transition:opacity .12s}.battle-v3-live-shell .pv-ultimate-layer.is-visible{opacity:1}.battle-v3-live-shell .pv-ultimate-layer video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.battle-v3-live-shell .pv-ultimate-layer>div{position:relative}.battle-v3-live-shell .pv-ultimate-layer small,.battle-v3-live-shell .pv-ultimate-layer strong{display:block}
@keyframes battleV3Spin{to{transform:rotate(1turn)}}
/* V1901: .nightmare-battle-mark(pve-nightmare-v1692.css)는 스테이지 기준 top:10~24px,
   right:10~28px 에 붙는다. V3 셸의 #battlePhase(.battle-v3-header>b)도 헤더 우측 끝
   세로 중앙이라 좌표가 그대로 겹쳐서, 모바일에서 초록 "SERVER ASSET SYNC" 위에
   핑크 "DAMAGE LIMIT RELEASED" 가 포개져 둘 다 못 읽는 상태였다.
   V3 셸에서만 NIGHTMARE 마크를 헤더(72px/60px) 아래로 내린다. */
.battle-v3-live-shell .nightmare-battle-mark{top:82px}
@media(max-width:760px){.battle-v3-live-shell .nightmare-battle-mark{top:68px}.battle-v3-header{height:60px;grid-template-columns:1fr auto;padding:8px 12px}.battle-v3-header>div:first-child small{font-size:8px}.battle-v3-header strong{font-size:16px}.battle-v3-versus{display:none}.battle-v3-header>b{font-size:9px}.battle-v3-canvas-host{inset:60px 0 0}.battle-v3-status{left:10px;right:10px;bottom:10px;max-width:none;padding:8px 10px;font-size:10px}.battle-v3-loader span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.battle-v3-loader i{animation:none}}
/* V1796 출전 카드 로스터 — 기존 카드 프레임(card.css .card-frame, 2:2.82)을 그대로 쓴다.
   폭/높이를 새로 잡으면 카드가 찌부되므로, 원본 180px 프레임을 transform:scale 로
   축소만 한다. --v3-card-w 와 --v3-card-s 는 항상 짝(w/180)으로 맞춰야 한다. */
.battle-v3-dock{position:absolute;z-index:20;left:0;right:0;bottom:0;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:9px;padding:0 18px calc(12px + env(safe-area-inset-bottom,0px));pointer-events:none}
.battle-v3-roster{--v3-card-w:112px;--v3-card-s:.6222;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:20px}.battle-v3-roster[hidden]{display:none}.battle-v3-roster.is-versus{--v3-card-w:96px;--v3-card-s:.5333;justify-content:space-between}
.battle-v3-roster-side{display:flex;flex-direction:column;gap:5px;min-width:0}.battle-v3-roster-side[hidden]{display:none}.battle-v3-roster.is-versus>[data-v3-roster-side="B"]{align-items:flex-end}
.battle-v3-roster-side>header{display:flex;align-items:baseline;gap:8px;padding:0 2px}.battle-v3-roster-side>header small{color:#66ddff;font-size:9px;font-weight:900;letter-spacing:.16em}.battle-v3-roster-side>header b{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eef8fb;font-size:11px;font-weight:900;text-shadow:0 2px 6px rgba(0,0,0,.9)}
.battle-v3-roster-side>ol{display:flex;align-items:flex-end;gap:9px;margin:0;padding:0;list-style:none}
/* 카드 한 칸: 축소된 프레임이 차지할 만큼만 자리를 잡는다(253.8px = 180 * 2.82/2). */
.battle-v3-roster-card{display:flex;flex-direction:column;align-items:center;gap:4px;width:var(--v3-card-w);flex:0 0 auto;transition:opacity .18s,filter .18s}
.battle-v3-roster-slot{position:relative;display:block;width:var(--v3-card-w);height:calc(253.8px * var(--v3-card-s))}
.battle-v3-roster .battle-v3-roster-frame{position:absolute;top:0;left:0;width:180px;margin:0;transform:scale(var(--v3-card-s));transform-origin:top left;cursor:default;transition:none}
.battle-v3-roster .battle-v3-roster-frame:hover{transform:scale(var(--v3-card-s));filter:none}
.battle-v3-roster-row{color:#8fa5b2;font-size:9px;font-weight:800;letter-spacing:.05em;line-height:1;text-shadow:0 2px 6px rgba(0,0,0,.9);white-space:nowrap}
.battle-v3-roster-ko{position:absolute;z-index:23;inset:0;display:none;place-content:center;border-radius:14px;background:rgba(2,5,10,.6);color:#ff7d8f;font-size:15px;font-style:normal;font-weight:1000;letter-spacing:.12em;text-shadow:0 2px 8px #000}
.battle-v3-roster-card.is-ko{opacity:.5;filter:grayscale(.9)}.battle-v3-roster-card.is-ko .battle-v3-roster-ko{display:grid}
.battle-v3-roster-card.is-alive .battle-v3-roster-slot::after{content:"";position:absolute;z-index:21;inset:-3px;border-radius:18px;border:1px solid rgba(123,255,176,.62);box-shadow:0 0 12px rgba(123,255,176,.28);pointer-events:none}
.battle-v3-verdict{margin:0;max-width:min(94%,760px);box-sizing:border-box;padding:7px 16px;border:1px solid rgba(104,224,255,.34);border-radius:999px;background:rgba(3,8,14,.92);color:#dbe8ed;font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-v3-verdict[hidden]{display:none}.battle-v3-verdict.is-win{border-color:rgba(123,255,176,.5);color:#b6ff62}.battle-v3-verdict.is-lose{border-color:rgba(255,125,143,.5);color:#ff9fae}
/* 결과창(.battle-message)은 bottom:34px 에 붙는다. 도크 실측 높이만큼 밀어 올린다. */
/* style.css 의 @media(max-width:800px) 규칙이 결과창 bottom 을 !important 로 못박아
   둬서, 여기서도 !important 로 덮어야 로스터 위로 올라간다(특이도는 이쪽이 높다). */
.battle-v3-live-shell.is-roster-visible .battle-v3-result{bottom:calc(var(--v3-dock-h,0px) + 10px)!important}
/* One readable notice, outside the measured card dock and independent of the
   canvas camera. Long skill messages wrap instead of extending under cards. */
.battle-v3-live-shell.is-roster-visible .battle-v3-status{top:auto;bottom:calc(var(--v3-dock-h,0px) + 10px);left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:min(calc(100% - 32px),760px);padding:8px 14px;border:1px solid #bba25a66;border-radius:7px;background:rgba(3,8,14,.92);text-align:center;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:1180px){.battle-v3-roster.is-versus{--v3-card-w:76px;--v3-card-s:.4222;gap:10px}.battle-v3-roster.is-versus .battle-v3-roster-side>ol{gap:6px}}
@media(max-width:760px){
  .battle-v3-dock{gap:6px;padding:0 8px 8px}
  .battle-v3-roster{--v3-card-w:66px;--v3-card-s:.3667;gap:8px}
  /* 모바일 PVP 는 5+5 장을 좌우로 두면 화면 폭을 넘어 겹친다. 위아래로 쌓는다. */
  .battle-v3-roster.is-versus{--v3-card-w:58px;--v3-card-s:.3222;flex-direction:column;align-items:center;gap:6px}
  .battle-v3-roster.is-versus>[data-v3-roster-side="B"]{align-items:center}
  .battle-v3-roster-side>ol{gap:5px}
  .battle-v3-roster-side>header small{font-size:8px}.battle-v3-roster-side>header b{max-width:120px;font-size:9px}
  .battle-v3-roster-row{font-size:8px}.battle-v3-roster-ko{font-size:11px;border-radius:9px}
  .battle-v3-verdict{font-size:10px;padding:5px 11px}
  .battle-v3-live-shell.is-roster-visible .battle-v3-status{top:auto;max-width:calc(100% - 16px);padding:6px 10px;font-size:10px}
}
@media(max-height:620px) and (orientation:landscape){.battle-v3-dock{gap:6px;padding:0 12px calc(8px + env(safe-area-inset-bottom,0px))}.battle-v3-roster{--v3-card-w:62px;--v3-card-s:.3444;gap:10px}.battle-v3-roster.is-versus{--v3-card-w:54px;--v3-card-s:.3}.battle-v3-roster-side>header small{font-size:8px}.battle-v3-verdict{font-size:10px;padding:5px 11px}}
@media(max-width:374px){.battle-v3-roster,.battle-v3-roster.is-versus{--v3-card-w:54px;--v3-card-s:.3}}

/* V2126: one report, with its own scroll area above the unchanged card dock. */
.battle-v3-live-shell>.battle-v3-result:has(>.v3-battle-report){top:88px!important;bottom:calc(var(--v3-dock-h,0px) + 14px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(600px,calc(100% - 32px))!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;display:flex;align-items:center;justify-content:center;text-align:left;text-shadow:none;backdrop-filter:none;overflow:visible}
.v3-battle-report{--report-accent:#c8ff6b;box-sizing:border-box;width:100%;max-height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid #35415a;border-radius:12px;background:linear-gradient(135deg,#172238 0,#111828 65%);box-shadow:0 20px 70px #0009;color:#f3f5ff;font-family:'Noto Sans KR',sans-serif;line-height:1.5}
.v3-battle-report.is-loss{--report-accent:#ff9caa}.v3-battle-report.is-draw{--report-accent:#a5c8fa}
.battle-v3-result .v3-battle-report span{margin:0!important}.battle-v3-result .v3-report-details summary span{margin-left:auto!important}
.v3-report-header{display:flex;align-items:center;gap:18px;padding:24px 26px 22px;border-top:3px solid var(--report-accent);flex:none}
.v3-report-emblem{display:grid;place-items:center;flex:none;width:52px;height:52px;border:1px solid color-mix(in srgb,var(--report-accent) 38%,transparent);border-radius:50%;background:color-mix(in srgb,var(--report-accent) 7%,transparent);color:var(--report-accent);font-size:28px;font-weight:500}
.v3-report-mode{display:block;color:var(--report-accent);font-size:11px;letter-spacing:.04em;font-weight:700}
.v3-report-header h2{margin:2px 0 3px;color:#f3f5ff;font-size:32px;font-weight:900;letter-spacing:-.045em;line-height:1.3}
.v3-report-header p{margin:0;color:#a9b5cd;font-size:12px;line-height:1.5;word-break:keep-all}
.v3-report-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 26px 8px;scrollbar-width:thin;scrollbar-color:#43516c transparent}
.v3-report-rewards{display:flex;flex-wrap:wrap;gap:12px 24px;margin:0 0 18px;padding:18px 0;border-top:1px solid #2d3850;border-bottom:1px solid #2d3850}
.v3-report-stat{min-width:0;flex:1}.v3-report-stat dt{color:#a6b2c9;font-size:11px;font-weight:600}.v3-report-stat dd{margin:3px 0 0;font-family:'Barlow Condensed','Noto Sans KR',sans-serif;font-variant-numeric:tabular-nums;color:#f3f5ff;font-size:21px;font-weight:700;overflow-wrap:anywhere}
.v3-report-rewards dd{font-size:30px;line-height:1.2;letter-spacing:-.02em}.v3-report-rewards .is-score dd{color:var(--report-accent)}.v3-report-rewards .is-coin dd{color:#f5d88c}
.v3-report-drop{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;padding:0 0 16px;font-size:12px}.v3-report-drop>span{color:#a6b2c9}.v3-report-drop>strong{color:#f3f5ff;font-size:13px}.v3-report-drop>small{grid-column:2;color:#c8ff6b;font-size:11px}
.v3-report-adjustment{margin:0 0 14px;color:#adbcd4;font-size:11px}
.v3-report-details{border:0;border-radius:0;background:none}.v3-report-details summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:8px 0 12px;color:#dce4f4;font-size:12px;font-weight:700;list-style:none}.v3-report-details summary::-webkit-details-marker{display:none}.v3-report-details summary::before{content:'+';color:#a3b6d4;font-size:16px;width:12px}.v3-report-details[open] summary::before{content:'−'}.v3-report-details summary span{margin-left:auto;color:#94a2bd;font-size:11px;font-weight:400}
.v3-report-details>dl{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;margin:0;padding:12px 0 18px;border-top:1px solid #29354b}.v3-report-details dd{font-size:17px}
.v3-report-suit{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;padding:12px 0;border-top:1px solid #29354b;font-size:11px;color:#a6b2c9}.v3-report-suit b{color:#dce4f4}
.v3-report-footer{flex:none;padding:12px 26px 22px;background:#111828;border-top:1px solid #263148}
.v3-report-confirm{display:flex;width:100%;min-height:48px;align-items:center;justify-content:space-between;padding:12px 17px;border:1px solid #c8ff6b;border-radius:5px;background:#c8ff6b;color:#16220b;font:800 14px 'Noto Sans KR',sans-serif;cursor:pointer;transition:background .15s}.v3-report-confirm span{font-size:21px;line-height:1}.v3-report-confirm:hover{background:#daff9c}.v3-report-confirm:focus-visible,.v3-report-details summary:focus-visible{outline:2px solid #fff;outline-offset:3px}
.battle-v3-live-shell.is-result-visible:has(.v3-battle-report)>.battle-v3-status{display:none}
@media(max-width:760px){.battle-v3-live-shell>.battle-v3-result:has(>.v3-battle-report){top:72px!important;bottom:calc(var(--v3-dock-h,0px) + 10px)!important;width:calc(100% - 24px)!important}.v3-report-header{padding:16px;gap:12px}.v3-report-emblem{width:40px;height:40px;font-size:24px}.v3-report-header h2{font-size:26px}.v3-report-header p{font-size:11px}.v3-report-body{padding:0 16px 4px}.v3-report-rewards{gap:12px;margin-bottom:8px;padding:14px 0}.v3-report-rewards dd{font-size:26px}.v3-report-footer{padding:12px 16px 16px}.v3-report-confirm{min-height:46px;font-size:13px}.v3-report-stat dt{font-size:10px}.v3-report-details>dl{gap:12px}.v3-report-details dd{font-size:16px}}
@media(max-height:620px) and (orientation:landscape){.battle-v3-live-shell>.battle-v3-result:has(>.v3-battle-report){top:78px!important;bottom:calc(var(--v3-dock-h,0px) + 6px)!important}.v3-report-header{padding:10px 18px;gap:12px}.v3-report-header h2{font-size:22px}.v3-report-emblem{width:34px;height:34px;font-size:22px}.v3-report-header p{display:none}.v3-report-mode{font-size:10px}.v3-report-footer{padding:8px 18px}.v3-report-confirm{min-height:40px;padding:8px 14px;font-size:12px}.v3-report-rewards{padding:10px 0;margin-bottom:4px}.v3-report-rewards dd{font-size:24px}}
.battle-v3-roster.is-cooperative{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:760px){.battle-v3-roster.is-cooperative{gap:4px}.battle-v3-roster.is-cooperative [data-v3-roster-owner]{max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Approved V3 tactical HUD. Full-size canvas, display-only portrait rails. */
@font-face{font-family:V3Noto;src:url('/assets/fonts/lich-raid/NotoSansKR-lich-v1.woff2') format('woff2');font-display:swap}
@font-face{font-family:V3Numbers;src:url('/assets/fonts/lich-raid/BarlowCondensed-lich-v1.woff2') format('woff2');font-display:swap}
.has-tactical-hud{--hud-ink:#f1f5fb;--hud-muted:#becbdb;--hud-lime:#c8ff6b;--hud-red:#ff837a;--hud-blue:#83d5ee;--hud-panel:url('/assets/ui/mercenary-codex/command-20261021/panel-v3.webp');--hud-action:url('/assets/ui/mercenary-codex/command-20261021/action-user-approved.webp');--hud-rail:88px;--v3-dock-h:0px;font-family:V3Noto,sans-serif}
.has-tactical-hud [hidden]{display:none!important}
.has-tactical-hud::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#030a13bb 0,transparent 120px),linear-gradient(90deg,#030a1380 0,transparent 130px);z-index:10}
/* The retired Apocalypse badge used this pseudo-element; never paint it over combat. */
.battle-v3-live-shell.has-tactical-hud.apocalypse-battle-field::after{content:none!important;display:none!important}
.battle-v3-live-shell.has-tactical-hud .battle-v3-canvas-host{inset:0!important}
.battle-v3-live-shell.has-tactical-hud>.battle-v3-header{display:grid!important;grid-template-columns:1fr minmax(260px,360px) 1fr!important;align-items:start;top:max(16px,env(safe-area-inset-top));left:18px;right:18px;height:auto!important;padding:0!important;gap:24px;border:0!important;border-image:none!important;background:none!important;z-index:20;pointer-events:none;text-shadow:0 2px 6px #000}
.has-tactical-hud .v3-hud-location{display:flex;align-items:center;gap:10px;min-width:0}
.has-tactical-hud .v3-hud-location svg{flex:none;width:22px;height:22px;fill:none;stroke:var(--hud-muted);stroke-width:1.5}
.has-tactical-hud .battle-v3-header strong{margin:0;font-size:17px;line-height:1.45;letter-spacing:-.02em;color:var(--hud-ink);font-weight:700}
.has-tactical-hud .battle-v3-header small{display:none!important}
.has-tactical-hud .battle-v3-header>#battlePhase{max-width:210px;font:600 12px/1.5 V3Noto,sans-serif;letter-spacing:0;white-space:normal;text-align:right;color:var(--hud-lime);padding-top:4px}
.has-tactical-hud .v3-hud-objective{min-width:0;text-align:center}
.has-tactical-hud .battle-v3-versus{display:flex;justify-content:center;align-items:center;gap:10px;min-width:0;font-size:20px;line-height:1.35;color:var(--hud-ink);margin-bottom:7px}
.has-tactical-hud .battle-v3-versus span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.has-tactical-hud .battle-v3-versus i{font-style:normal;font-size:11px;color:var(--hud-muted)}
.has-tactical-hud:not(.is-hud-pvp) .battle-v3-versus>span:first-child,.has-tactical-hud:not(.is-hud-pvp) .battle-v3-versus>i{display:none}
.v3-hud-boss-health{height:9px;padding:2px;background:#0d1522;border:1px solid #93796a;clip-path:polygon(0 0,calc(100% - 5px) 0,100% 50%,calc(100% - 5px) 100%,5px 100%,0 50%)}
.v3-hud-boss-health i{display:block;height:100%;background:#d7655e;transform-origin:left;transition:transform 220ms ease-out}
.v3-hud-objective-foot{display:flex;justify-content:space-between;margin-top:5px;color:var(--hud-muted);font-size:11px;font-variant-numeric:tabular-nums}
.v3-hud-objective-foot b{color:var(--hud-ink);font:600 14px V3Numbers,V3Noto,sans-serif}
.is-hud-pvp .v3-hud-boss-health{display:none}.is-hud-pvp .v3-hud-objective-foot{justify-content:center;gap:18px}
.battle-v3-live-shell.has-tactical-hud>.battle-v3-roster{position:absolute!important;inset:0!important;display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important;transform:none!important;z-index:21;pointer-events:none}
.v3-hud-rail{position:absolute;left:max(8px,env(safe-area-inset-left));top:var(--v3-hud-rail-top,100px);width:calc(var(--hud-rail)*var(--hud-columns,1) + 6px*(var(--hud-columns,1) - 1));display:grid;grid-template-columns:repeat(var(--hud-columns,1),minmax(0,1fr));gap:8px 6px;pointer-events:none}
.v3-hud-rail.is-enemy{left:auto;right:max(8px,env(safe-area-inset-right))}
.has-tactical-hud .v3-hud-rail .battle-v3-roster-side{min-width:0;max-width:none;width:auto;display:flex;flex-direction:column;gap:6px;flex:none}
.has-tactical-hud .v3-hud-rail section>header{display:grid;grid-template-columns:1fr auto;gap:3px;margin:0;font-size:11px;line-height:1.3;color:var(--hud-muted);text-shadow:0 2px 4px #000}
.has-tactical-hud .v3-hud-rail header small{font-size:11px;letter-spacing:0;color:var(--hud-ink);font-weight:600}
.has-tactical-hud .v3-hud-rail [data-v3-roster-owner]{grid-column:1/-1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;color:var(--hud-muted);font-weight:500;max-width:none}
.v3-hud-rail:has(>section:only-child) [data-v3-roster-owner]{display:none}
.has-tactical-hud .v3-hud-rail ol{list-style:none;display:flex;flex-direction:column;align-items:stretch!important;gap:6px;padding:0;margin:0;min-width:0;width:100%}
.v3-hud-unit{box-sizing:border-box;position:relative;flex-shrink:0;min-width:0;width:100%;border:5px solid transparent;border-image:var(--hud-panel) 48 fill / 10px stretch;padding:0 2px 2px;color:var(--hud-ink);overflow:hidden;--hp:1;--shield:0}
.v3-hud-portrait{position:relative;height:var(--hud-face-height,36px);overflow:hidden;background:#101c2b}
.v3-hud-portrait img{display:block;width:100%;height:100%;object-fit:cover;transition:filter 180ms ease-out}
.v3-hud-portrait img.is-cropped{position:absolute;width:calc(100% * var(--portrait-zoom,1));height:auto;max-width:none;left:50%;top:45%;transform:translate(calc(-1 * var(--face-x,50%)),calc(-1 * var(--face-y,50%)))}
.v3-hud-name{display:block;padding:3px 1px 1px;font-size:11px;line-height:1.25;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.v3-hud-ko{position:absolute;right:2px;top:2px;display:none;background:#18131de8;color:#fff;padding:1px 4px;font-size:10px;font-style:normal}
.v3-hud-health{height:5px;position:relative;background:#182d2e;margin-top:3px;overflow:hidden}
.v3-hud-health i,.v3-hud-health em{position:absolute;inset:0;transform-origin:left;transform:scaleX(var(--hp,1))}
.v3-hud-health i{background:#85cf76;transition:transform 150ms ease-out}.v3-hud-health em{background:#f0d88b;transition:transform 650ms 120ms ease-out}
.v3-hud-shield{height:2px;background:#122533;margin-top:2px}.v3-hud-shield i{display:block;height:100%;background:var(--hud-blue);transform-origin:left;transform:scaleX(var(--shield,0));transition:transform 150ms ease-out}
.v3-hud-unit.is-low .v3-hud-health i{background:#f2a15f}.v3-hud-unit.is-ko img{filter:grayscale(1) brightness(.55)}.v3-hud-unit.is-ko .v3-hud-ko{display:block}.v3-hud-unit.is-acting::after{content:'';position:absolute;inset:1px;border:1px solid var(--hud-lime);pointer-events:none}
.v3-hud-rail.is-enemy .v3-hud-health i{background:#d78682}.v3-hud-group{display:flex;justify-content:space-between;font-size:10px;line-height:1.3;color:var(--hud-muted);padding-top:2px}
.has-tactical-hud>.battle-v3-dock{left:110px!important;right:110px!important;bottom:12px!important;padding:0!important;margin:0!important;min-height:0;pointer-events:none}
.has-tactical-hud>.battle-v3-status{display:none}.has-tactical-hud.is-v3-error>.battle-v3-status,.has-tactical-hud>.battle-v3-status.is-hud-notice{display:block;left:50%;bottom:60px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 124px);border:0;padding:8px 12px;font-size:12px;background:#080f1be8;color:var(--hud-ink);text-align:center;z-index:24}
.has-tactical-hud:has(.apocalypse-dodge)>.battle-v3-status{display:none}
.has-tactical-hud.is-result-visible>.battle-v3-roster{opacity:.55}
.has-tactical-hud .battle-v3-result:has(>.v3-battle-report){top:90px!important;bottom:46px!important}
.has-tactical-hud :focus-visible{outline:2px solid var(--hud-lime);outline-offset:3px}.has-tactical-hud ::selection{background:var(--hud-lime);color:#152109}
/* Specialized battle headers keep their authoritative clocks and controls. */
.tower-abyss-battle.has-tactical-hud .v3-hud-objective,.wr3-live.has-tactical-hud .v3-hud-objective,.wr3-live .has-tactical-hud .v3-hud-objective{visibility:hidden}
.coop-battle-mount .has-tactical-hud>.battle-v3-header{display:none!important}
.has-tactical-hud .abyss-combat-hud{top:56px}
.pve-sweep-presentation .has-tactical-hud>.battle-v3-roster{display:none!important}
@media(max-width:760px){
 .has-tactical-hud{--hud-rail:50px}
 .battle-v3-live-shell.has-tactical-hud>.battle-v3-header{top:max(12px,env(safe-area-inset-top));left:10px;right:10px;grid-template-columns:1fr 1fr!important;gap:10px}
 .has-tactical-hud .v3-hud-location{gap:6px}.has-tactical-hud .v3-hud-location svg{width:16px;height:16px}.has-tactical-hud .battle-v3-header strong{font-size:13px}
 .has-tactical-hud .battle-v3-header>#battlePhase{grid-column:2;grid-row:1;font-size:10px;padding-top:2px;max-width:155px}
 .has-tactical-hud .v3-hud-objective{grid-column:1/-1;grid-row:2;width:min(260px,100%);justify-self:center}.has-tactical-hud .battle-v3-versus{font-size:17px;margin-bottom:5px;gap:8px}
 .v3-hud-objective-foot{font-size:10px;margin-top:3px}.v3-hud-objective-foot b{font-size:12px}.v3-hud-boss-health{height:7px;padding:1px}
 .v3-hud-rail{left:5px;gap:6px}.v3-hud-rail.is-enemy{right:5px}.has-tactical-hud .v3-hud-rail .battle-v3-roster-side{gap:4px}
 .has-tactical-hud .v3-hud-rail section>header{font-size:9px;gap:2px}.has-tactical-hud .v3-hud-rail header small{font-size:10px}.has-tactical-hud .v3-hud-rail [data-v3-roster-owner]{font-size:8px}
 .has-tactical-hud .v3-hud-rail ol{gap:4px}.v3-hud-unit{border-width:3px;padding:0 1px 1px;border-image-width:6px}
 .v3-hud-name{font-size:9px;padding:2px 0 1px;line-height:1.3}.v3-hud-health{height:4px;margin-top:2px}.v3-hud-shield{height:2px;margin-top:1px}.v3-hud-group{font-size:9px}.v3-hud-ko{font-size:8px;right:0;top:0;padding:1px 2px}
 .has-tactical-hud::after{background:linear-gradient(180deg,#030a1380 0,transparent 120px)}
 .has-tactical-hud>.battle-v3-dock{left:60px!important;right:60px!important}.has-tactical-hud .battle-v3-result:has(>.v3-battle-report){top:96px!important;bottom:40px!important}
}
@media(max-height:620px) and (orientation:landscape){
 .has-tactical-hud{--hud-rail:76px}.battle-v3-live-shell.has-tactical-hud>.battle-v3-header{top:8px;grid-template-columns:1fr 320px 1fr!important;gap:12px;align-items:center}
 .has-tactical-hud .battle-v3-header strong{font-size:13px}.has-tactical-hud .v3-hud-location svg{width:16px;height:16px}.has-tactical-hud .battle-v3-header>#battlePhase{grid-column:3;grid-row:1;font-size:11px;padding:0}
 .has-tactical-hud .v3-hud-objective{grid-column:2;grid-row:1;width:auto;display:grid;grid-template-columns:110px 1fr;gap:3px 8px;align-items:center}.has-tactical-hud .battle-v3-versus{grid-row:1/3;font-size:15px;margin:0}
 .v3-hud-objective-foot{font-size:10px;margin:0}.v3-hud-objective-foot b{font-size:12px}.v3-hud-boss-health{height:6px;padding:1px}
 .has-tactical-hud .v3-hud-rail .battle-v3-roster-side{gap:3px}.has-tactical-hud .v3-hud-rail ol{gap:3px}.v3-hud-unit{border-width:3px;padding:0 1px 1px}.v3-hud-name{font-size:9px;padding:1px 0;line-height:10px}.v3-hud-health{height:3px;margin-top:1px}.v3-hud-shield{height:1px;margin-top:1px}.v3-hud-group{font-size:9px;padding:0}.has-tactical-hud .v3-hud-rail section>header,.has-tactical-hud .v3-hud-rail header small{font-size:9px}
 .has-tactical-hud .battle-v3-result:has(>.v3-battle-report){top:50px!important;bottom:16px!important}
 .has-tactical-hud .abyss-combat-hud{top:40px;padding:3px 12px;border-width:6px}.has-tactical-hud .abyss-combat-hud strong{font-size:18px}.has-tactical-hud .abyss-combat-hud small{margin-bottom:2px}
}
@media(prefers-reduced-motion:reduce){.v3-hud-health i,.v3-hud-health em,.v3-hud-shield i,.v3-hud-boss-health i,.v3-hud-portrait img{transition:none}}

.has-tactical-hud .apocalypse-dodge:not(.is-recovery){left:50%;bottom:max(24px,env(safe-area-inset-bottom));width:min(452px,calc(100% - 40px));padding:14px 16px 12px;border:8px solid transparent;border-image:var(--hud-panel) 48 fill / 16px stretch;border-radius:0;background:none;box-shadow:none;font-family:V3Noto,sans-serif;display:grid;grid-template-columns:1fr auto;column-gap:12px}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) header{grid-column:2;grid-row:1;align-self:center;font-family:V3Numbers,V3Noto,sans-serif;font-size:27px;color:var(--hud-lime);letter-spacing:0;line-height:1}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) header span{display:none}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) h3{grid-column:1;grid-row:1;margin:0 0 8px;font-size:18px;line-height:1.45;color:var(--hud-ink);letter-spacing:-.02em}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery)>p:not(.apocalypse-dodge-feedback){grid-column:1/-1;font-size:11px;line-height:1.45;color:var(--hud-muted);margin:0 0 10px}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery)>p small{display:none}
.has-tactical-hud .apocalypse-dodge-zones{grid-column:1/-1;gap:8px}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button{min-height:58px;padding:7px 5px;background:#241f2c;border:1px solid #8e6467;border-radius:3px;color:#f1ced0;display:grid;grid-template-columns:auto 1fr;column-gap:5px;align-content:center}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button small{align-self:center;grid-row:1/3;font-family:V3Numbers,sans-serif;font-size:19px;font-weight:500;color:#f1ced0;opacity:1}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button b{font-size:14px;line-height:1.35}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button span{font-size:10px;margin:0;line-height:1.5}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button.is-safe{border:6px solid transparent;border-image:var(--hud-action) 38 fill / 9px stretch;background:none;color:#18240a;padding:2px 0}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button.is-safe small{color:#18240a}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button.is-selected{outline:2px solid #fff;outline-offset:2px}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button:hover:not(:disabled){filter:brightness(1.12)}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button:disabled{cursor:default}
.has-tactical-hud .apocalypse-dodge-track{grid-column:1/-1;margin:10px 0 7px;height:3px;background:#293847}
.has-tactical-hud .apocalypse-dodge-track i{background:var(--hud-lime)}
.has-tactical-hud .apocalypse-dodge:not(.is-recovery) .apocalypse-dodge-feedback{grid-column:1/-1;font-size:10px;line-height:1.4;margin:0;color:var(--hud-muted)}

@media(max-width:760px){
 .has-tactical-hud .apocalypse-dodge:not(.is-recovery){bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - 16px);padding:10px 10px 9px;column-gap:8px}
 .has-tactical-hud .apocalypse-dodge:not(.is-recovery) h3{font-size:16px;margin-bottom:6px}
 .has-tactical-hud .apocalypse-dodge:not(.is-recovery) header{font-size:24px}
 .has-tactical-hud .apocalypse-dodge:not(.is-recovery)>p:not(.apocalypse-dodge-feedback){font-size:11px;margin-bottom:8px}
 .has-tactical-hud .apocalypse-dodge:not(.is-recovery) button{min-height:54px}.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button b{font-size:13px}
 .has-tactical-hud .apocalypse-dodge:not(.is-recovery) .apocalypse-dodge-feedback{font-size:11px}
}
@media(max-height:620px) and (orientation:landscape){
 .hud-event{top:50px}.has-tactical-hud .apocalypse-dodge:not(.is-recovery){bottom:8px;width:410px;padding:5px 10px;border-width:6px}
 .has-tactical-hud .apocalypse-dodge:not(.is-recovery) h3{font-size:15px;margin:0 0 4px}.has-tactical-hud .apocalypse-dodge:not(.is-recovery) header{font-size:23px}
 .has-tactical-hud .apocalypse-dodge:not(.is-recovery)>p:not(.apocalypse-dodge-feedback){display:none}
 .has-tactical-hud .apocalypse-dodge:not(.is-recovery) button{min-height:44px;padding:3px}.has-tactical-hud .apocalypse-dodge:not(.is-recovery) button.is-safe{padding:0}
 .has-tactical-hud .apocalypse-dodge-track{margin:7px 0 5px}.has-tactical-hud .apocalypse-dodge:not(.is-recovery) .apocalypse-dodge-feedback{font-size:10px;line-height:1.3}
}

.modal.pve-sweep-modal .has-tactical-hud>.battle-v3-roster{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
.bw-battle-mount .has-tactical-hud>.battle-v3-header,body[data-legion-live] #hunt-modal .has-tactical-hud>.battle-v3-header{display:none!important}
.has-tactical-hud .is-dense-vertical ol{gap:2px}
.is-dense-vertical .v3-hud-unit{border-width:2px;padding:0 1px 1px}
.is-dense-vertical .v3-hud-name{font-size:9px;line-height:10px;padding:0}
.is-dense-vertical .v3-hud-health{height:3px;margin-top:1px}.is-dense-vertical .v3-hud-shield{height:1px;margin-top:1px}
.is-short-rail .v3-hud-unit{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:4px;align-content:center;align-items:center;border-width:3px;padding:0 1px 1px}
.is-short-rail .v3-hud-portrait{grid-row:1/4;width:28px;height:var(--hud-face-height,28px)}
.is-short-rail .v3-hud-name{font-size:9px;line-height:11px;padding:0;text-align:left}
.is-short-rail .v3-hud-health{height:3px;margin-top:0}.is-short-rail .v3-hud-shield{height:1px;margin-top:0}

@media(max-height:620px) and (orientation:landscape){.has-tactical-hud.is-hud-pvp .v3-hud-objective{display:block;width:100%}.has-tactical-hud.is-hud-pvp .battle-v3-versus{font-size:14px;margin:0}.has-tactical-hud.is-hud-pvp .v3-hud-objective-foot{gap:12px}}
.battle-v3-live-shell.has-tactical-hud.wr3-live>.battle-v3-header{grid-template-columns:minmax(0,1fr) auto!important;right:230px;min-height:0!important}
.has-tactical-hud.wr3-live .v3-hud-objective{display:none!important}
.has-tactical-hud.wr3-live .battle-v3-header>#battlePhase{grid-column:2;grid-row:1;font:600 24px/1.2 V3Numbers,V3Noto,sans-serif}
@media(min-width:1200px){.battle-v3-live-shell.has-tactical-hud.wr3-live>.battle-v3-header{right:324px}}
@media(max-width:640px){.battle-v3-live-shell.has-tactical-hud.wr3-live>.battle-v3-header{right:12px}.has-tactical-hud.wr3-live .battle-v3-header strong{font-size:13px!important}}
