/* Fighter content is live DOM; safe-zone variables are measured against each shell artwork canvas. */
.war-arena-lobby .war-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;width:min(100%,375px);column-gap:9px;row-gap:0}
.war-arena-lobby .war-modes button,.war-arena-lobby .war-modes button:hover,.war-arena-lobby .war-modes button.is-selected{display:grid;grid-template-rows:75px minmax(27px,auto);justify-items:center;align-content:start;width:100%;min-width:0;min-height:105px;gap:5px;padding:0}
.war-arena-lobby .war-modes button .war-mode-icon{grid-row:1;grid-column:1;align-self:center;justify-self:center}
.war-arena-lobby .war-modes button.is-selected .war-mode-icon,.war-arena-lobby .war-modes button:hover .war-mode-icon{transform:none}
.war-arena-lobby .war-modes button>span{grid-row:2;grid-column:1;align-self:start;width:100%;line-height:1.25}
.war-arena-lobby .war-modes button:nth-child(3) .war-mode-icon{border-color:#c990f0a6;background:radial-gradient(circle at 50% 30%,#60328c70,#151322e8 62%,#090e18);box-shadow:inset 0 0 16px #b872ec44,0 0 0 4px #a45ae61d,0 0 17px #b875ef4a}
.war-arena-lobby .war-modes button:nth-child(3).is-selected .war-mode-icon{box-shadow:inset 0 0 20px #ffffff36,0 0 0 3px #e4b5ff84,0 0 0 8px #a45ae630,0 0 30px #b875efa6}

.war-battle-screen .battle-shell-hud{display:grid;grid-template-columns:minmax(0,1fr) clamp(58px,7vw,112px) minmax(0,1fr);align-items:start;gap:clamp(4px,.8vw,14px);width:min(94%,1660px);margin:12px auto 0;direction:ltr}
.war-battle-screen .battle-shell-team{display:grid;min-width:0;gap:4px;align-items:start}
.war-battle-screen .battle-shell-hud[data-mode="2v2"] .battle-shell-team{grid-template-columns:repeat(2,minmax(0,1fr))}
.war-battle-screen .battle-shell-hud[data-mode="4v4"] .battle-shell-team{grid-template-columns:repeat(4,minmax(0,1fr))}
.war-battle-screen .battle-shell-hud .war-round{justify-self:center;align-self:center;margin:0}

.fighter-shell{--team:#ff7080;position:relative;display:block;min-width:0;width:100%;aspect-ratio:1115/265;direction:ltr;container-type:inline-size;color:#f4f8fc;isolation:isolate}
.fighter-shell[data-team="cyan"]{--team:#75eaff}
.fighter-shell[data-density="compact"]{aspect-ratio:1041/190}
.fighter-shell[data-density="mini"]{aspect-ratio:2038/499}
.fs-art-picture,.fs-art{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;user-select:none}
.fs-art-picture{z-index:3}.fs-art{object-fit:fill}
.war-battle-screen .fighter-shell .fs-art{filter:saturate(.91) brightness(.96)}

.fs-avatar-zone{position:absolute;z-index:1;left:var(--safe-x);top:var(--safe-y);width:var(--safe-width);height:var(--safe-height);padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.fs-avatar-mask{position:absolute;inset:0;display:block;overflow:hidden;border-radius:50%;background:#0b1d2a}
.fs-avatar-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.fs-avatar-sample{display:block;width:100%;height:100%;background-image:url('./assets/arena-students-atlas-v2.webp');background-repeat:no-repeat;background-size:800% 400%}

.fs-identity{position:absolute;inset:0;z-index:4;width:100%;height:100%;min-width:0;pointer-events:none}
.fs-identity>.fs-name,.fs-identity>.fs-university,.fs-identity>.fs-specialty{position:absolute;left:var(--safe-x);top:var(--safe-y);width:var(--safe-width);height:var(--safe-height);min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 4px #000;pointer-events:auto}
.fs-name{display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:#fff;cursor:pointer;font:500 clamp(9px,1.05vw,19px)/1.15 Alexandria,sans-serif;text-align:center}
.fs-name-full,.fs-name-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fs-name-full{display:none}.fighter-shell[data-density="large"] .fs-name-full{display:block}.fighter-shell[data-density="large"] .fs-name-text{display:none}.fighter-shell[data-density="large"] .fs-name{font-size:clamp(9px,.67vw,13px)}
.fs-university,.fs-specialty{display:block;color:#c7e1ee;font-size:clamp(7px,.67vw,12px);line-height:1.1;text-align:center}
.fighter-shell[data-side="right"] .fs-name,.fighter-shell[data-side="right"] .fs-university,.fighter-shell[data-side="right"] .fs-specialty{text-align:right}
.fs-level-rank{position:absolute;z-index:4;left:var(--safe-x);top:var(--safe-y);width:var(--safe-width);height:var(--safe-height);display:flex;gap:5px;align-items:center;min-width:0;overflow:hidden;color:#f2dbaa;font-size:clamp(7px,.62vw,11px);text-align:left;text-overflow:ellipsis;white-space:nowrap}
.fighter-shell[data-side="right"] .fs-level-rank{justify-content:flex-end;text-align:right}

.fs-hp,.fs-energy{position:absolute;z-index:4;left:var(--safe-x);top:var(--safe-y);width:var(--safe-width);height:var(--safe-height);display:block;overflow:hidden}
.fs-meter-track{display:block;width:100%;height:100%;overflow:hidden;background:#06101c}
.fs-meter-fill{display:block;width:var(--meter);height:100%;background:linear-gradient(90deg,#981329,#ff3555,#ffd1b1);transition:width .3s ease}
.fighter-shell[data-team="cyan"] .fs-hp .fs-meter-fill,.fs-energy .fs-meter-fill{background:linear-gradient(90deg,#057ca7,#24d0ed,#caffff)}
.fighter-shell[data-side="right"] .fs-hp .fs-meter-fill{margin-left:auto}
.fs-meter-number{display:none;position:absolute;right:0;top:-165%;color:#ffe5ce;font-size:clamp(7px,.55vw,10px);white-space:nowrap;text-shadow:0 1px 4px #000}
.fighter-shell[data-side="right"] .fs-meter-number{right:auto;left:0}.fs-meter-number small{font-size:.72em}
.fighter-shell[data-health-state="critical"] .fs-hp .fs-meter-fill{animation:fs-battle-critical 1.4s ease-in-out infinite alternate}
@keyframes fs-battle-critical{to{filter:brightness(1.4)}}
.fighter-shell[data-density="compact"] .fs-name{font-size:clamp(7px,.55vw,10px)}
.fighter-shell[data-density="mini"] .fs-name{font-size:8px}.fighter-shell[data-density="mini"] .fs-level-rank{display:none}
.war-battle-screen .battle-shell-demo{position:relative;z-index:2;margin:5px auto 0;max-width:760px;color:#ffe6d6;text-align:center;font:500 12px/1.45 Alexandria,sans-serif;text-shadow:0 2px 7px #000,0 0 9px #000}
.fs-name:focus-visible,.fs-avatar-zone:focus-visible{outline:2px solid var(--team);outline-offset:2px}

@media(max-width:1500px){.war-battle-screen .battle-shell-hud[data-mode="4v4"] .battle-shell-team{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.war-battle-screen .battle-shell-hud[data-mode="2v2"] .battle-shell-team{grid-template-columns:1fr}}
@media(max-width:650px){
  .war-arena-lobby .war-modes{width:min(100%,340px);column-gap:8px}
  .war-arena-lobby .war-modes button,.war-arena-lobby .war-modes button:hover,.war-arena-lobby .war-modes button.is-selected{grid-template-rows:60px minmax(26px,auto);min-height:91px}
  .war-arena-lobby .war-modes button .war-mode-icon{width:57px;height:57px}
  .war-arena-lobby .war-modes button>span{font-size:7px}
  .war-battle-screen .battle-shell-hud{grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);width:100%;gap:3px;margin-top:7px}
  .war-battle-screen .battle-shell-team,.war-battle-screen .battle-shell-hud[data-mode="2v2"] .battle-shell-team,.war-battle-screen .battle-shell-hud[data-mode="4v4"] .battle-shell-team{grid-template-columns:1fr;gap:3px}
  .war-battle-screen .battle-shell-hud .war-round{width:36px;height:36px;margin-top:3px;align-self:start}
  .fighter-shell[data-density="large"] .fs-university,.fighter-shell[data-density="large"] .fs-specialty{display:none}
  .fighter-shell[data-density="large"] .fs-name{font-size:8px}
  .fighter-shell[data-density="compact"]{aspect-ratio:2038/499}
  .fighter-shell[data-density="compact"] [data-safe-zone-mobile-coordinate]{left:var(--safe-mobile-x);top:var(--safe-mobile-y);width:var(--safe-mobile-width);height:var(--safe-mobile-height)}
  .fighter-shell[data-density="compact"] .fs-level-rank,.fighter-shell[data-density="mini"] .fs-level-rank{display:none}
  .fighter-shell[data-density="mini"] .fs-name,.fighter-shell[data-density="compact"] .fs-name{font-size:7px}
  .fs-meter-number{display:none}
  .war-battle-screen .battle-shell-demo{margin-top:7px;padding:0 7px;font-size:9px}
}
@media(prefers-reduced-motion:reduce){.fs-meter-fill{transition:none}.fighter-shell[data-health-state="critical"] .fs-hp .fs-meter-fill{animation:none}}
