.inv-bs{max-width:1200px;margin:0 auto 60px;padding:100px 16px 0;color:#f0f4ff;font-family:Inter,sans-serif}.inv-bs-header{text-align:center;margin-bottom:24px}.inv-bs-beta-badge{display:inline-block;vertical-align:middle;margin-left:12px;padding:2px 9px;font-size:.36em;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#fde68a;background:#f59e0b29;border:1px solid rgba(245,158,11,.45);border-radius:999px;font-family:ui-monospace,monospace}.inv-bs-engine-ver{display:inline-block;vertical-align:middle;margin-left:10px;padding:2px 8px;font-size:.34em;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#86efac;background:#22c55e1f;border:1px solid rgba(34,197,94,.35);border-radius:999px;font-family:ui-monospace,monospace}.inv-bs-header h1{font-family:Rajdhani,sans-serif;font-weight:700;font-size:2.2em;color:#f59e0b;margin:0 0 8px;letter-spacing:.04em;text-transform:uppercase}.inv-bs-subtitle{color:#ffffff8c;font-size:.92em;max-width:720px;margin:0 auto;line-height:1.5}.inv-bs-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.inv-bs-tab{background:transparent;border:1px solid rgba(255,255,255,.15);color:#ffffffb3;padding:9px 18px;border-radius:8px;cursor:pointer;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.95em;text-transform:uppercase;letter-spacing:.04em;transition:background .15s,color .15s,border-color .15s}.inv-bs-tab:hover{border-color:#f59e0b80;color:#fde68a}.inv-bs-tab.is-active{background:#f59e0b;color:#000;border-color:#f59e0b}.inv-bs-panel[hidden]{display:none}.inv-bs-optimized{padding:2px 2px 10px}.inv-bs-opt-intro p{color:#9ca3af;font-size:14px;line-height:1.6;margin:0 0 22px;max-width:720px}.inv-bs-opt-section{margin-bottom:26px}.inv-bs-opt-section h3{font-family:Rajdhani,sans-serif;font-weight:700;color:#f59e0b;font-size:18px;margin:0 0 13px;display:flex;align-items:center;gap:10px}.inv-bs-opt-count{font-size:12px;background:#f59e0b29;border:1px solid rgba(245,158,11,.4);color:#fde68a;border-radius:999px;padding:2px 10px;letter-spacing:.04em;font-family:Inter,sans-serif}.inv-bs-opt-grid{display:grid;gap:12px}.inv-bs-opt-grid-heroes{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}.inv-bs-opt-grid-skills{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}.inv-bs-opt-hero,.inv-bs-opt-skill{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 5px;border-radius:12px;border:1px solid rgba(255,255,255,.07);background:#0f1626;text-align:center;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}.inv-bs-opt-hero:hover,.inv-bs-opt-skill:hover{transform:translateY(-2px)}.inv-bs-opt-hero-portrait{position:relative;width:100%;aspect-ratio:1 / 1;border-radius:10px;overflow:hidden;background:#0b1120;display:flex;align-items:center;justify-content:center}.inv-bs-opt-hero-portrait img{width:100%;height:100%;object-fit:cover;display:block}.inv-bs-opt-skill-icon{position:relative;width:64px;height:64px;display:flex;align-items:center;justify-content:center}.inv-bs-opt-skill-img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:50px;height:50px;border-radius:50%;object-fit:cover;z-index:1}.inv-bs-opt-frame-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain;z-index:2;pointer-events:none}.inv-bs-opt-ph{font-size:22px;opacity:.5;z-index:1}.inv-bs-opt-hero-name,.inv-bs-opt-skill-name{font-size:11.5px;line-height:1.25;font-weight:600;color:#e5e7eb;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.inv-bs-opt-cs-hero{font-size:10px;color:#93c5fd;font-weight:600;letter-spacing:.02em}.inv-bs-opt-hero.is-opt{border-color:#f59e0b66;box-shadow:0 0 0 1px #f59e0b1f inset}.inv-bs-opt-skill.is-opt{border-color:#3b82f666;box-shadow:0 0 0 1px #3b82f624 inset}.inv-bs-opt-hero.is-opt:hover{border-color:#f59e0bbf}.inv-bs-opt-skill.is-opt:hover{border-color:#3b82f6bf}.inv-bs-opt-hero.is-locked,.inv-bs-opt-skill.is-locked{opacity:.5}.inv-bs-opt-hero.is-locked .inv-bs-opt-hero-portrait,.inv-bs-opt-hero.is-locked .inv-bs-opt-hero-name,.inv-bs-opt-skill.is-locked .inv-bs-opt-skill-icon,.inv-bs-opt-skill.is-locked .inv-bs-opt-skill-name{filter:grayscale(1);color:#9ca3af}.inv-bs-opt-hero.is-locked:hover,.inv-bs-opt-skill.is-locked:hover{opacity:.78}.inv-bs-opt-badge{position:absolute;top:3px;right:3px;width:17px;height:17px;border-radius:50%;background:#22c55e;color:#04120a;font-size:11px;font-weight:800;line-height:17px;text-align:center;box-shadow:0 0 0 2px #0f1626;z-index:3}.inv-bs-opt-kind{position:absolute;bottom:3px;left:3px;z-index:3;font-size:8.5px;font-weight:800;letter-spacing:.06em;padding:1px 5px;border-radius:5px;color:#04120a}.inv-bs-opt-kind-cmd{background:#f59e0b}.inv-bs-opt-kind-sig{background:#a78bfa}.inv-bs-pickers{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:start;border-radius:12px;padding:20px}.inv-bs-side label{display:block;font-family:Rajdhani,sans-serif;font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:.82em;color:#fff9;margin-bottom:8px}.inv-bs-search{width:100%;background:#080d1a;border:1px solid rgba(255,255,255,.1);color:#f0f4ff;padding:10px 12px;border-radius:8px;font-size:.95em}.inv-bs-results{list-style:none;margin:8px 0 0;padding:0;max-height:360px;overflow-y:auto;background:#080d1a;border-radius:8px}.inv-bs-results:not(:empty){border:1px solid rgba(255,255,255,.08)}.inv-bs-results li{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer;border-bottom:1px solid rgba(255,255,255,.04)}.inv-bs-results li:hover{background:#f59e0b14}.inv-bs-results li:not(.is-preset) img{width:32px;height:32px;border-radius:4px;object-fit:cover}.inv-bs-results li:not(.is-preset) span{font-size:.92em}.inv-bs-res-group{display:block;cursor:default;padding:8px 12px 4px;font-size:.66em;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#f59e0b;background:#f59e0b0f;border-bottom:1px solid rgba(255,255,255,.06)}.inv-bs-res-group:hover{background:#f59e0b0f}.inv-bs-res-item{align-items:center;gap:12px}.inv-bs-res-heroes{display:flex;align-items:center;gap:3px;flex-shrink:0}.inv-bs-results .inv-bs-res-hero{width:34px;height:34px;border-radius:50%;object-fit:cover;border:1px solid rgba(245,158,11,.35);background:#0a0f1e}.inv-bs-res-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.inv-bs-res-title{font-size:.92em;color:#e2e8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inv-bs-res-creator{font-size:.72em;color:#ffffff73}.inv-bs-res-empty{cursor:default;color:#ffffff73;font-size:.88em;justify-content:center}.inv-bs-res-empty:hover{background:transparent}.inv-bs-selected{margin-top:8px;font-size:.9em;color:#ffffffb3;min-height:20px}.inv-bs-vs{font-family:Rajdhani,sans-serif;font-weight:700;font-size:2em;color:#f59e0b;align-self:center}.inv-bs-controls{display:flex;gap:16px;justify-content:center;align-items:center;margin:24px 0;flex-wrap:wrap}.inv-bs-wars{display:flex;gap:8px;flex-wrap:wrap}.inv-bs-war{background:transparent;border:1px solid rgba(255,255,255,.15);color:#ffffffb3;padding:8px 16px;border-radius:6px;cursor:pointer;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.92em;text-transform:uppercase;letter-spacing:.04em}.inv-bs-war.is-active{background:#f59e0b;color:#000;border-color:#f59e0b}.inv-bs-run{background:linear-gradient(135deg,#f59e0b,#b45309);color:#000;font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.1em;padding:12px 28px;border:none;border-radius:8px;cursor:pointer;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.inv-bs-run.is-coin{font-size:.82em;padding:10px 16px}.inv-bs-run:disabled{opacity:.5;cursor:wait}.inv-bs-stage[hidden]{display:none}.inv-bs-stage{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.inv-bs-stage-side{background:#111827;border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:16px}.inv-bs-stage-side[data-side=b]{border-color:#3b82f62e}.inv-bs-stage-side[data-side=a]{border-color:#f59e0b2e}.inv-bs-lineup-name{font-family:Rajdhani,sans-serif;font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:1em;color:#f0f4ff;margin-bottom:12px}.inv-bs-cmds{display:flex;flex-direction:column;gap:12px}.inv-bs-cmd{background:#080d1a;border-radius:8px;padding:10px 12px;position:relative}.inv-bs-cmd-name{font-weight:600;font-size:.92em;margin-bottom:8px;color:#f0f4ff}.inv-bs-bar{position:relative;height:14px;background:#ffffff0f;border-radius:4px;overflow:hidden;margin-bottom:6px}.inv-bs-bar-fill{height:100%;transition:width .25s ease}.inv-bs-hp .inv-bs-bar-fill{background:linear-gradient(90deg,#3b82f6,#1d4ed8)}.inv-bs-rage .inv-bs-bar-fill{background:linear-gradient(90deg,#f59e0b,#b45309)}.inv-bs-bar-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:.72em;font-weight:700;color:#fff;text-shadow:0 0 3px rgba(0,0,0,.7);pointer-events:none}.inv-bs-status{display:flex;gap:4px;min-height:18px;flex-wrap:wrap}.inv-bs-popups{position:absolute;inset:0;pointer-events:none;overflow:visible}.inv-bs-popup{position:absolute;top:30%;left:50%;transform:translate(-50%);font-family:Rajdhani,sans-serif;font-weight:800;font-size:1.15em;line-height:1;color:#fee2e2;padding:2px 9px;border-radius:999px;background:#991b1bd1;border:1px solid rgba(248,113,113,.7);box-shadow:0 2px 8px #0000008c,0 0 10px #f8717159;text-shadow:0 1px 2px rgba(0,0,0,.9);white-space:nowrap;z-index:7;animation:inv-bs-float 2s cubic-bezier(.22,.8,.3,1) forwards}.inv-bs-popup.is-crit{color:#fff7d6;font-size:1.5em;background:#b45309eb;border-color:#fbbf24d9;box-shadow:0 2px 10px #0009,0 0 16px #fbbf2499}
.inv-bs-rage-pop{position:absolute;bottom:2%;left:50%;transform:translate(-50%);font-family:Rajdhani,sans-serif;font-weight:800;font-size:.9em;line-height:1;color:#fff7d6;padding:1px 8px;border-radius:999px;background:#b45309e6;border:1px solid rgba(245,158,11,.75);box-shadow:0 2px 8px #0000008c,0 0 10px #f59e0b55;text-shadow:0 1px 2px rgba(0,0,0,.9);white-space:nowrap;z-index:8;pointer-events:none;animation:inv-bs-float 1.3s cubic-bezier(.22,.8,.3,1) forwards}
.inv-bs-rage-pop.is-spend{color:#e0e7ff;background:#3730a3e6;border-color:rgba(129,140,248,.75);box-shadow:0 2px 8px #0000008c,0 0 10px #6366f155}.inv-bs-popup.is-crit:before{content:"\1f4a5";font-size:.8em;margin-right:3px}@keyframes inv-bs-float{0%{transform:translate(-50%) translateY(6px) scale(.7);opacity:0}10%{transform:translate(-50%) translateY(0) scale(1.12);opacity:1}22%{transform:translate(-50%) translateY(-5px) scale(1);opacity:1}68%{transform:translate(-50%) translateY(-18px) scale(1);opacity:1}to{transform:translate(-50%) translateY(-46px) scale(.9);opacity:0}}.inv-bs-lineup-card{background:#080d1a;border:1px solid rgba(255,255,255,.06);border-radius:10px;padding:14px 14px 10px;position:relative;overflow:visible}.inv-bs-stage-side[data-side=a] .inv-bs-lineup-card{border-color:#f59e0b38}.inv-bs-stage-side[data-side=b] .inv-bs-lineup-card{border-color:#3b82f638}.inv-bs-lc-heroes{display:flex;gap:8px;margin-bottom:14px}.inv-bs-lh{flex:1 1 0;max-width:calc(33.333% - 6px);display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;position:relative}.inv-bs-lh-pic{width:100%;aspect-ratio:3 / 4;border-radius:8px;background-size:cover;background-position:center top;background-color:#0e1626;border:1px solid rgba(255,255,255,.08);position:relative;display:flex;align-items:center;justify-content:center;font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.6em;color:#4b5563}.inv-bs-lh.is-lead .inv-bs-lh-pic{border-color:#f59e0b;box-shadow:0 0 0 1px #f59e0b,0 0 12px #f59e0b73}.inv-bs-lh-crown{position:absolute;top:-7px;right:-7px;width:26px;height:auto;z-index:3;filter:drop-shadow(0 1px 3px rgba(0,0,0,.8))}.inv-bs-lh-name{font-size:.72em;font-weight:600;color:#cbd5e1;text-align:center;line-height:1.1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inv-bs-lh.is-lead .inv-bs-lh-name{color:#fbbf24}.inv-bs-skillfall{position:absolute;left:0;right:0;top:0;height:0;pointer-events:none;z-index:6;text-align:center}.inv-bs-skilldrop{position:absolute;left:50%;top:0;transform:translate(-50%,-60px) scale(1.25);white-space:nowrap;font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.5em;letter-spacing:.03em;color:#ffd98a;text-shadow:0 0 10px rgba(245,158,11,.9),0 2px 6px rgba(0,0,0,.85);animation:inv-bs-skilldrop 1.9s cubic-bezier(.25,.9,.35,1) forwards}.inv-bs-skilldrop.is-med{font-size:1.2em}.inv-bs-skilldrop.is-long{font-size:.95em}.inv-bs-skilldrop.is-crit{color:#fff2c4;text-shadow:0 0 14px rgba(251,191,36,1),0 2px 6px rgba(0,0,0,.9)}.inv-bs-stage-side[data-side=b] .inv-bs-skilldrop{color:#bcd4ff;text-shadow:0 0 10px rgba(59,130,246,.9),0 2px 6px rgba(0,0,0,.85)}@keyframes inv-bs-skilldrop{0%{transform:translate(-50%,-60px) scale(1.25);opacity:0}14%{opacity:1}55%{transform:translate(-50%,2px) scale(1);opacity:1}to{transform:translate(-50%,40px) scale(.78);opacity:0}}@media(prefers-reduced-motion:reduce){.inv-bs-skilldrop{animation-duration:.9s}}.inv-bs-log-wrap{background:#111827;border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:12px 16px;margin:16px 0}.inv-bs-log-controls{display:flex;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.inv-bs-time{font-family:Rajdhani,sans-serif;font-weight:700;color:#f59e0b;margin-right:auto;min-width:72px;display:inline-block;font-variant-numeric:tabular-nums}.inv-bs-speed{background:transparent;border:1px solid rgba(255,255,255,.15);color:#ffffffb3;padding:7px 15px;border-radius:6px;cursor:pointer;font-size:.9em;min-height:38px;touch-action:manipulation}.inv-bs-speed.is-active{background:#f59e0b;color:#000;border-color:#f59e0b}.inv-bs-log-toggle{margin-left:auto;background:transparent;border:1px solid rgba(255,255,255,.15);color:#ffffffb3;padding:4px 12px;border-radius:4px;cursor:pointer;font-size:.85em}.inv-bs-log-toggle:hover{border-color:#f59e0b80;color:#f59e0b}.inv-bs-log-toggle[aria-expanded=true]{background:#f59e0b24;border-color:#f59e0b66;color:#fbbf24}.inv-bs-log-collapsed .inv-bs-log{display:none}.inv-bs-log{list-style:none;margin:0;padding:0;max-height:320px;overflow-y:auto;font-family:Inter,sans-serif;font-size:.88em;line-height:1.55}.inv-bs-log-row{padding:4px 8px;border-bottom:1px solid rgba(255,255,255,.04);color:#ffffffd9}.inv-bs-log-row .t{color:#fff6;margin-right:6px}.inv-bs-commander_skill{background:#f59e0b0f}.inv-bs-active_skill{background:#3b82f60d}.inv-bs-end b{color:#fbbf24}.inv-bs-dot{color:#f87171d9}.inv-bs-result{background:#111827;border:1px solid #f59e0b;border-radius:12px;padding:24px;text-align:center;margin-top:16px}.inv-bs-winner{font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.6em;color:#f59e0b;margin:0 0 16px;text-transform:uppercase;letter-spacing:.04em}.inv-bs-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;text-align:left;margin-bottom:16px}.inv-bs-result-side{background:#080d1a;border-radius:8px;padding:16px}.inv-bs-result-side h3{font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.05em;margin:0 0 10px;color:#f0f4ff}.inv-bs-result-totals{display:flex;gap:16px;margin-bottom:10px;font-size:.88em;color:#ffffffb3}.inv-bs-result-totals b{color:#f59e0b;font-weight:700}.inv-bs-result-cmds{list-style:none;margin:0;padding:0;font-size:.85em;color:#ffffffbf}.inv-bs-result-cmds li{padding:4px 0;border-top:1px solid rgba(255,255,255,.05)}.inv-bs-skill-acts{list-style:none;margin:3px 0 0 8px;padding:0;font-size:.9em;color:#ffffff80}.inv-bs-skill-acts li{padding:1px 0}.inv-bs-skill-acts li b{color:#f59e0b}.inv-bs-cond-acts{margin-top:2px}.inv-bs-cond-act{color:#63cab7bf}.inv-bs-cond-act b{color:#3ecfb2}.inv-bs-skill-meta{color:#ffffff4d;font-size:.82em;margin-left:4px}.inv-bs-result-actions{display:flex;gap:8px;justify-content:center}.inv-bs-loadouts[hidden]{display:none}.inv-bs-loadouts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0 0}.inv-bs-lo-loading{color:#fff6;font-size:.85em;padding:12px;text-align:center}.inv-bs-lo-wrap{background:#0d1325;border:1px solid rgba(255,255,255,.07);border-radius:10px;overflow:hidden}.inv-bs-lo-header{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:2px solid #f59e0b;background:#0003}.inv-bs-lo-side-badge{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.8em;padding:1px 7px;border-radius:4px;color:#000;letter-spacing:.06em}.inv-bs-lo-title{font-family:Rajdhani,sans-serif;font-weight:700;font-size:1em;color:#f0f4ff;letter-spacing:.03em}.inv-bs-lo-rating{margin-left:auto;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.85em;color:#f59e0b;background:#f59e0b1f;border:1px solid rgba(245,158,11,.3);border-radius:5px;padding:1px 8px;white-space:nowrap}.inv-bs-lo-buffs{padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.07);background:#0000001f}.inv-bs-lo-buffs-hd{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.78em;letter-spacing:.06em;text-transform:uppercase;margin-bottom:7px}.inv-bs-lo-buffs-hd span{color:#7a8699;font-weight:400}.inv-bs-lo-buffs-list{display:flex;flex-direction:column;gap:2px}.inv-bs-lo-buff.has-src .inv-bs-lo-buff-row{cursor:pointer}.inv-bs-lo-buff-row{display:flex;justify-content:space-between;align-items:center;padding:3px 6px;border-radius:4px}.inv-bs-lo-buff.has-src .inv-bs-lo-buff-row:hover{background:#ffffff0a}.inv-bs-lo-buff-lbl{font-size:.85em;color:#c9d4e5}.inv-bs-lo-buff-chev{color:#7a8699;font-size:.8em}.inv-bs-lo-buff-val{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.9em;color:#f59e0b}.inv-bs-lo-buff-srcs{margin:2px 0 4px 12px;padding-left:8px;border-left:1px dashed rgba(255,255,255,.1)}.inv-bs-lo-buff-src{display:flex;justify-content:space-between;font-size:.78em;color:#8a97ab;padding:1px 4px}.inv-bs-lo-buff-src span:last-child{color:#b8c2d4}.inv-bs-lo-cmds{display:flex;flex-direction:column;gap:0}.inv-bs-lo-cmd{padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.05)}.inv-bs-lo-cmd:last-child{border-bottom:none}.inv-bs-lo-cmd.is-main{background:#f59e0b0a}.inv-bs-lo-hero{display:flex;align-items:center;gap:10px;margin-bottom:10px}.inv-bs-lo-thumb{width:44px;height:44px;border-radius:6px;object-fit:cover;flex-shrink:0;border:1px solid rgba(255,255,255,.1)}.inv-bs-lo-hero-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.inv-bs-lo-name{font-weight:600;font-size:.92em;color:#f0f4ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inv-bs-lo-main-badge{display:inline-block;background:#f59e0b33;color:#f59e0b;font-size:.7em;padding:0 4px;border-radius:3px;font-weight:700;letter-spacing:.05em;vertical-align:middle;margin-left:3px}.inv-bs-lo-stars{color:#f59e0b;font-size:.78em;letter-spacing:.05em}.inv-bs-lo-unit{color:#ffffff73;font-size:.75em;text-transform:capitalize}.inv-bs-lo-skills{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}.inv-bs-lo-skill{display:flex;align-items:center;gap:7px;font-size:.82em;min-height:22px}.inv-bs-lo-sk-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:18px;border-radius:3px;font-size:.7em;font-weight:700;letter-spacing:.04em;flex-shrink:0;text-transform:uppercase}.inv-bs-lo-sk-cs{background:#f59e0b40;color:#f59e0b}.inv-bs-lo-sk-sig{background:#a855f740;color:#c084fc}.inv-bs-lo-sk-passive{background:#34d39926;color:#34d399}.inv-bs-lo-sk-active,.inv-bs-lo-sk-turn-based{background:#3b82f633;color:#60a5fa}.inv-bs-lo-sk-ring{background:#f59e0b;color:#000}.inv-bs-lo-sk-adorn{background:#ffffff1a;color:#fff9}.inv-bs-lo-sk-name{flex:1;color:#ffffffd1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inv-bs-lo-ring-skill{color:#fff6;font-size:.9em}.inv-bs-lo-sk-info{display:flex;gap:5px;align-items:center;flex-shrink:0}.inv-bs-lo-rage{color:#f59e0b;font-size:.8em;font-weight:600}.inv-bs-lo-rate{background:#ffffff14;color:#ffffffa6;padding:1px 5px;border-radius:3px;font-size:.8em;font-weight:600}.inv-bs-lo-mech{color:#ffffff59;font-size:.78em;text-transform:capitalize}.inv-bs-lo-stats{display:flex;gap:6px;flex-wrap:wrap}.inv-bs-lo-stat{background:#ffffff0d;border-radius:4px;padding:3px 8px;display:flex;flex-direction:column;align-items:center;gap:1px;flex:1;min-width:60px}.inv-bs-lo-stat-lbl{font-size:.62em;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.inv-bs-lo-stat-val{font-size:.82em;font-weight:600;color:#f0f4ff}.inv-bs-lo-gear{margin-top:8px;display:flex;flex-direction:column;gap:6px}.inv-bs-lo-gear-row{display:flex;align-items:flex-start;gap:8px;padding:5px 8px;background:#ffffff0a;border-radius:5px}.inv-bs-lo-gear-icon{width:28px;height:28px;border-radius:4px;object-fit:cover;flex-shrink:0;border:1px solid rgba(255,255,255,.1)}.inv-bs-lo-gear-info{display:flex;flex-direction:column;gap:3px;min-width:0}.inv-bs-lo-gear-name{font-size:.75em;font-weight:600;color:#e2e8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inv-bs-lo-gems{display:flex;flex-wrap:wrap;gap:4px}.inv-bs-lo-gem{display:inline-flex;align-items:center;gap:3px;background:#f59e0b1a;border:1px solid rgba(245,158,11,.25);border-radius:3px;padding:1px 5px}.inv-bs-lo-gem-icon{width:14px;height:14px;border-radius:2px;object-fit:cover}.inv-bs-lo-gem-name{font-size:.65em;color:#fbbf24;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:80px}.inv-bs-lo-gem-tier{font-size:.6em;color:#6b7280;flex-shrink:0}.inv-bs-kt{text-align:left;margin-top:16px}.inv-bs-kt-nav{display:flex;gap:4px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:16px;overflow-x:auto}.inv-bs-kt-tab{background:transparent;border:none;border-bottom:2px solid transparent;color:#ffffff80;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.82em;letter-spacing:.08em;text-transform:uppercase;padding:8px 14px;cursor:pointer;white-space:nowrap;margin-bottom:-1px;transition:color .15s,border-color .15s}.inv-bs-kt-tab:hover{color:#fffc}.inv-bs-kt-tab.is-active{color:#f59e0b;border-bottom-color:#f59e0b}.inv-bs-kt-panel{display:none}.inv-bs-kt-panel.is-active{display:block}.inv-bs-kt-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}.inv-bs-kt-col{background:#0d1325;border:1px solid rgba(255,255,255,.07);border-radius:10px;overflow:hidden}.inv-bs-kt-col-hdr{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.95em;letter-spacing:.04em;padding:10px 14px;border-bottom:2px solid currentColor;background:#0003}.inv-bs-kt-hero-block{padding:12px 14px;border-top:1px solid rgba(255,255,255,.05)}.inv-bs-kt-hero-block:first-of-type{border-top:none}.inv-bs-kt-hero-name{font-weight:700;font-size:.88em;color:#f0f4ff;margin-bottom:8px;font-family:Rajdhani,sans-serif;letter-spacing:.04em;text-transform:uppercase}.inv-bs-kt-role{display:inline-block;font-size:.72em;font-weight:700;padding:1px 6px;border-radius:4px;letter-spacing:.06em;vertical-align:middle}.inv-bs-kt-role.is-dps{background:#f59e0b26;color:#f59e0b;border:1px solid rgba(245,158,11,.35)}.inv-bs-kt-role.is-support{background:#22c55e26;color:#22c55e;border:1px solid rgba(34,197,94,.35)}.inv-bs-kt-role.is-control{background:#a855f726;color:#a855f7;border:1px solid rgba(168,85,247,.35)}.inv-bs-kt-support-line{font-size:.78em;color:#b8c2d4;margin:-4px 0 8px}.inv-bs-kt-support-line .green{color:#22c55e}.inv-bs-kt-support-line .purple{color:#a855f7}.inv-bs-kt-tbl{width:100%;border-collapse:collapse;font-size:.8em}.inv-bs-kt-tbl thead th{text-align:left;color:#fff6;font-size:.75em;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:3px 4px;border-bottom:1px solid rgba(255,255,255,.08)}.inv-bs-kt-tbl thead th:not(:first-child){text-align:right}.inv-bs-kt-tbl tbody tr{border-bottom:1px solid rgba(255,255,255,.04)}.inv-bs-kt-tbl tbody tr.is-cond td{color:#63cab7bf}.inv-bs-kt-tbl tbody td{padding:4px;color:#ffffffbf}.inv-bs-kt-num{text-align:right;font-weight:600;color:#f59e0b}.inv-bs-kt-empty{color:#ffffff4d;font-size:.8em;text-align:center;padding:8px 0}.inv-bs-kt-stat-group{padding:8px 14px 0;margin-bottom:8px}.inv-bs-kt-stat-group:first-of-type{padding-top:12px}.inv-bs-kt-stat-title{font-size:.68em;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#ffffff59;margin-bottom:4px}.inv-bs-kt-stat-row{display:flex;justify-content:space-between;align-items:baseline;padding:3px 0;font-size:.82em;border-bottom:1px solid rgba(255,255,255,.04)}.inv-bs-kt-stat-row.sub{padding-left:8px}.inv-bs-kt-stat-row .lbl{color:#ffffffa6}.inv-bs-kt-stat-row .val{font-weight:700;color:#ffffffe6}.inv-bs-kt-stat-row .val.amber{color:#f59e0b}.inv-bs-kt-na-count{color:#93c5fd;font-weight:600;font-size:.9em;opacity:.85}.inv-bs-kt-stat-row .val.blue{color:#60a5fa}.inv-bs-kt-stat-row .val.green{color:#34d399}.inv-bs-kt-stat-row .val.red{color:#f87171}.inv-bs-kt-stat-row .val.purple{color:#c084fc}.inv-bs-kt-buff-tbl{width:100%;border-collapse:collapse;font-size:.82em;margin-top:6px}.inv-bs-kt-buff-tbl thead th{padding:4px 6px;font-size:.75em;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#fff6;border-bottom:1px solid rgba(255,255,255,.08)}.inv-bs-kt-buff-tbl thead th.inv-bs-kt-blbl,.inv-bs-kt-buff-tbl thead th.inv-bs-kt-bval{text-align:center}.inv-bs-kt-buff-row{cursor:pointer}.inv-bs-kt-buff-row:hover td{background:#ffffff08}.inv-bs-kt-buff-row td{padding:8px 6px;border-bottom:1px solid rgba(255,255,255,.06)}.inv-bs-kt-buff-src td{padding:4px 6px;border-bottom:1px solid rgba(255,255,255,.025)}.inv-bs-kt-blbl{text-align:center;color:#f0f4ff;font-weight:600}.inv-bs-kt-blbl.src{color:#ffffff8c;font-weight:400}.inv-bs-kt-bval{text-align:center;color:#f59e0b;font-weight:700;white-space:nowrap}.inv-bs-kt-bval.src{color:#f59e0ba6;font-weight:500;font-size:.9em}.inv-bs-kt-bchev{color:#ffffff59;font-size:.85em}.inv-bs-buff-legend{font-size:.82em;color:#fff9;line-height:1.5;background:#3b82f60f;border:1px solid rgba(59,130,246,.18);border-radius:8px;padding:9px 12px;margin-bottom:12px}.inv-bs-buffsec{border:1px solid rgba(255,255,255,.08);border-radius:10px;margin-bottom:10px;overflow:hidden;background:#ffffff04}.inv-bs-buffsec-hdr{display:flex;align-items:center;gap:8px;cursor:pointer;padding:11px 13px;user-select:none;background:#ffffff08}.inv-bs-buffsec-hdr:hover{background:#ffffff0e}.inv-bs-buffsec-chev{color:#f59e0b;font-size:.9em;width:12px}.inv-bs-buffsec-ttl{font-family:Rajdhani,sans-serif;font-weight:700;font-size:1em;letter-spacing:.03em;text-transform:uppercase;color:#f0f4ff}.inv-bs-buffsec-sub{font-size:.75em;color:#7a8699;font-weight:400}.inv-bs-buffsec-body{padding:12px 13px}.inv-bs-buff-intro{font-size:.8em;color:#ffffff9e;line-height:1.55;margin-bottom:12px}.inv-bs-buff-intro b{color:#cbd5e1;font-weight:700}.inv-bs-buff-note{font-size:.72em;color:#ffffff6b;line-height:1.4;margin-top:2px;font-weight:400}.inv-bs-buff-note.strong{color:#60a5fad9;font-style:italic;padding:2px 4px 6px}.inv-bs-buff-note.warn{color:#fbbf24;background:#f59e0b12;border-left:2px solid rgba(245,158,11,.5);border-radius:4px;padding:5px 8px;margin:4px 0 6px}.inv-bs-buff-note b{color:#fde68a}.inv-bs-hero-acc{border-top:1px solid rgba(255,255,255,.05)}.inv-bs-hero-acc:first-child{border-top:none}.inv-bs-hero-acc-hdr{display:flex;align-items:center;gap:6px;cursor:pointer;padding:7px 2px;user-select:none;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.9em;color:#e5edff}.inv-bs-hero-acc-hdr:hover{color:#fff}.inv-bs-hero-acc-chev{color:#f59e0b;font-size:.85em;width:10px}.inv-bs-hero-acc-body{padding:2px 2px 8px 14px}@media(max-width:768px){.inv-bs-kt-cols{grid-template-columns:1fr}.inv-bs-kt-buff-tbl{font-size:.75em}}@media(max-width:768px){.inv-bs-pickers{grid-template-columns:1fr}.inv-bs-vs{text-align:center}.inv-bs-stage,.inv-bs-result-grid{grid-template-columns:1fr}.inv-bs-controls{flex-direction:column}.inv-bs-loadouts,.inv-bs-kt-cols{grid-template-columns:1fr}}.inv-bs-march-label{display:block;font-size:.68em;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#94a3b8;margin:10px 0 4px}.inv-bs-march,.inv-bs-tier{background:#0d1325;border:1px solid rgba(255,255,255,.12);border-radius:6px;color:#f0f4ff;font-size:.9em;padding:7px 10px;width:140px}.inv-bs-march:focus,.inv-bs-tier:focus{outline:none;border-color:#f59e0b}.inv-bs-tier{width:90px;cursor:pointer}.inv-bs-tier option{background:#0d1325;color:#f0f4ff}.inv-bs-rp{text-align:left;margin-top:16px;--rp-a: #22c55e;--rp-b: #ef4444}.inv-bs-rp-banner{background:linear-gradient(180deg,#131b33,#0d1325);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:18px 16px 14px;text-align:center;margin-bottom:14px}.inv-bs-rp-verdict{font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.7em;letter-spacing:.12em;text-transform:uppercase}.inv-bs-rp-banner.is-victory .inv-bs-rp-verdict{color:var(--rp-a);text-shadow:0 0 18px rgba(34,197,94,.35)}.inv-bs-rp-banner.is-defeat .inv-bs-rp-verdict{color:var(--rp-b);text-shadow:0 0 18px rgba(239,68,68,.35)}.inv-bs-rp-banner.is-draw .inv-bs-rp-verdict{color:#f59e0b}.inv-bs-rp-winner-name{font-size:.6em;letter-spacing:.06em;color:#f0f4ff}.inv-bs-rp-meta{display:flex;justify-content:center;gap:22px;margin-top:8px;font-size:.8em;color:#ffffff8c;flex-wrap:wrap}.inv-bs-rp-meta-item b{color:#f59e0b;margin-left:4px}.inv-bs-rp-lost{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.inv-bs-rp-lost-side{display:flex;justify-content:space-between;align-items:baseline;gap:8px;background:#00000040;border-radius:6px;padding:6px 10px;font-size:.78em}.inv-bs-rp-lost-side .lbl{color:#ffffff8c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inv-bs-rp-lost-side .num{font-weight:700;color:var(--rp-b);white-space:nowrap}.inv-bs-rp-lost-side.is-a{border-left:3px solid var(--rp-a)}.inv-bs-rp-lost-side.is-b{border-left:3px solid var(--rp-b)}.inv-bs-rp-section{margin-bottom:14px}.inv-bs-rp-sec-title{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.78em;letter-spacing:.12em;text-transform:uppercase;color:#fff6;margin-bottom:6px}.inv-bs-rp-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inv-bs-rp-col{background:#0d1325;border:1px solid rgba(255,255,255,.07);border-radius:10px;overflow:hidden;padding-bottom:10px}.inv-bs-rp-col-hdr{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.9em;letter-spacing:.04em;text-transform:uppercase;padding:9px 12px;background:#00000040;margin-bottom:6px}.inv-bs-rp-col-hdr.is-a{color:var(--rp-a);border-bottom:2px solid var(--rp-a)}.inv-bs-rp-col-hdr.is-b{color:var(--rp-b);border-bottom:2px solid var(--rp-b)}.inv-bs-rp-troop-line{display:flex;align-items:center;gap:6px;padding:6px 12px;font-size:.84em;color:#f0f4ff}.inv-bs-rp-tier{display:inline-block;min-width:26px;text-align:center;background:#f59e0b26;border:1px solid rgba(245,158,11,.4);border-radius:4px;color:#fbbf24;font-weight:700;font-size:.85em;padding:1px 5px}.inv-bs-rp-unit{font-weight:600}.inv-bs-rp-army{margin-left:auto;color:#ffffff8c;font-size:.9em;white-space:nowrap}.inv-bs-rp-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:4px 12px;font-size:.82em;border-bottom:1px solid rgba(255,255,255,.04)}.inv-bs-rp-row .lbl{color:#fff9}.inv-bs-rp-row .val{font-weight:700;color:#f59e0b}.inv-bs-rp-row .val.is-red{color:#ef4444}.inv-bs-rp-row .val.is-amber{color:#f59e0b}.inv-bs-rp-row .val.is-green{color:#22c55e}.inv-bs-rp-row .val.is-white{color:#f0f4ff}.inv-bs-rp-sub-title{font-size:.66em;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#ffffff59;padding:8px 12px 3px}.inv-bs-rp-hero{display:flex;gap:10px;padding:6px 12px;border-bottom:1px solid rgba(255,255,255,.04)}.inv-bs-rp-hero-img{width:46px;height:46px;border-radius:8px;object-fit:cover;border:1px solid rgba(245,158,11,.35);flex-shrink:0;background:#0000004d;display:inline-block}.inv-bs-rp-hero-meta{min-width:0;flex:1}.inv-bs-rp-hero-name{font-weight:700;font-size:.85em;color:#f0f4ff;font-family:Rajdhani,sans-serif;letter-spacing:.03em}.inv-bs-rp-badge-cmd{font-size:.65em;background:#f59e0b33;border:1px solid rgba(245,158,11,.45);color:#fbbf24;border-radius:3px;padding:0 4px;vertical-align:middle}.inv-bs-rp-hero-sub{display:flex;align-items:center;gap:8px}.inv-bs-rp-stars{color:#fbbf24;font-size:.7em;letter-spacing:.1em}.inv-bs-rp-lv{font-size:.62em;font-weight:700;background:#3b82f62e;border:1px solid rgba(59,130,246,.4);color:#93c5fd;border-radius:3px;padding:0 5px}.inv-bs-rp-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.inv-bs-rp-chips.is-debuffs{padding:4px 12px 2px}.inv-bs-rp-chip{font-size:.62em;background:#ffffff0f;border:1px solid rgba(255,255,255,.12);color:#ffffffbf;border-radius:3px;padding:1px 5px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.inv-bs-rp-chip.is-cs{border-color:#f59e0b66;color:#fbbf24}.inv-bs-rp-chip.is-sig{border-color:#a855f766;color:#c084fc}.inv-bs-rp-chip.is-ring{border-color:#3b82f666;color:#93c5fd}.inv-bs-rp-chip.is-debuff{border-color:#c084fc66;color:#c084fc}.inv-bs-rp-gear-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:2px 12px}.inv-bs-rp-gear{display:flex;gap:6px;align-items:flex-start;background:#00000040;border:1px solid rgba(255,255,255,.06);border-radius:6px;padding:5px 6px;min-width:0}.inv-bs-rp-gear-img{width:30px;height:30px;border-radius:4px;object-fit:cover;flex-shrink:0}.inv-bs-rp-gear-meta{min-width:0}.inv-bs-rp-gear-name{display:block;font-size:.68em;font-weight:600;color:#e2e8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inv-bs-rp-gems{display:flex;flex-wrap:wrap;gap:3px;margin-top:2px}.inv-bs-rp-gem{font-size:.58em;color:#fbbf24;background:#f59e0b1a;border:1px solid rgba(245,158,11,.25);border-radius:3px;padding:0 4px;white-space:nowrap;max-width:110px;overflow:hidden;text-overflow:ellipsis}.inv-bs-rp-ring.is-q-legendary{color:#f59e0b}.inv-bs-rp-ring.is-q-epic{color:#a855f7}.inv-bs-rp-ring.is-q-rare{color:#3b82f6}.inv-bs-rp-ring.is-q-common{color:#9ca3af}.inv-bs-rp-buff-tbl{width:100%;border-collapse:collapse;font-size:.82em;background:#0d1325;border:1px solid rgba(255,255,255,.07);border-radius:10px;overflow:hidden}.inv-bs-rp-buff-row{cursor:pointer}.inv-bs-rp-buff-row:hover td{background:#ffffff08}.inv-bs-rp-buff-row td{padding:9px 8px;border-bottom:1px solid rgba(255,255,255,.06)}.inv-bs-rp-buff-src td{padding:4px 8px;border-bottom:1px solid rgba(255,255,255,.025)}.inv-bs-rp-bv{text-align:center;font-weight:700;white-space:nowrap;width:22%}.inv-bs-rp-bv.is-a{color:var(--rp-a)}.inv-bs-rp-bv.is-b{color:var(--rp-b)}.inv-bs-rp-bv.src{font-weight:500;font-size:.9em;opacity:.75}.inv-bs-rp-bc{text-align:center;color:#f0f4ff;font-weight:700;font-family:Rajdhani,sans-serif;letter-spacing:.06em;background:#0000004d}.inv-bs-rp-bc.src{color:#ffffff8c;font-weight:400;font-family:inherit;letter-spacing:0}.inv-bs-rp-bchev{width:26px;text-align:center;color:#ffffff59;font-size:.85em}.inv-bs-rp-hero-block{padding:4px 0 6px;border-top:1px solid rgba(255,255,255,.05)}.inv-bs-rp-hero-block:first-of-type{border-top:none}.inv-bs-rp-hero-block-name{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.84em;letter-spacing:.05em;text-transform:uppercase;color:#f0f4ff;padding:6px 12px 2px}.inv-bs-rp-skill-row{display:flex;align-items:baseline;gap:8px;padding:4px 12px;font-size:.78em;border-bottom:1px solid rgba(255,255,255,.04)}.inv-bs-rp-skill-row.is-idle{opacity:.55}.inv-bs-rp-act{flex-shrink:0;font-size:.82em;font-weight:700;border-radius:3px;padding:1px 6px;white-space:nowrap}.inv-bs-rp-act.is-on{background:#22c55e1f;border:1px solid rgba(34,197,94,.4);color:#22c55e}.inv-bs-rp-act.is-off{background:#ffffff0a;border:1px solid rgba(255,255,255,.12);color:#fff6}.inv-bs-rp-skill-name{color:#ffffffd9;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inv-bs-rp-skill-nums{margin-left:auto;display:flex;gap:10px;white-space:nowrap}.inv-bs-rp-skill-nums .dmg{color:#f59e0b;font-weight:700}.inv-bs-rp-skill-nums .heal{color:#22c55e;font-weight:700}.inv-bs-rp-skill-nums .none{color:#ffffff40}@media(max-width:768px){.inv-bs-rp-cols,.inv-bs-rp-lost,.inv-bs-rp-gear-grid{grid-template-columns:1fr}.inv-bs-rp-buff-tbl{font-size:.74em}.inv-bs-rp-skill-row{flex-wrap:wrap}.inv-bs-rp-skill-nums{margin-left:0;width:100%;justify-content:flex-end}}.inv-bs-lo-sk-icon{width:18px;height:18px;border-radius:3px;object-fit:cover;flex-shrink:0;background:#0000004d}.inv-bs-rp-chip-icon{width:16px;height:16px;border-radius:3px;object-fit:cover;vertical-align:-4px;margin-right:4px;border:1px solid rgba(255,255,255,.12);background:#0000004d}.inv-bs-rp-sk-icon{width:28px;height:28px;border-radius:5px;object-fit:cover;flex-shrink:0;align-self:center;border:1px solid rgba(255,255,255,.14);background:#0000004d}.inv-bs-rp-chip.is-adorn{border-color:#34d39966;color:#6ee7b7}.inv-bs-rp-chips.is-adorns{padding:2px 12px 8px}.inv-bs-loc-wrap{background:#0d1325;border:1px solid rgba(255,255,255,.07);border-radius:10px;overflow:visible}.inv-bs-loc-wrap.is-side-a{background:linear-gradient(180deg,#22c55e0f,#22c55e05),#0d1325;border-color:#22c55e2e}.inv-bs-loc-wrap.is-side-b{background:linear-gradient(180deg,#ef44440f,#ef444405),#0d1325;border-color:#ef44442e}.inv-bs-loc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px;align-items:stretch}.inv-bs-loc-card{display:flex;flex-direction:column;gap:6px;background:#00000047;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:6px;min-width:0}.is-side-a .inv-bs-loc-card{border-color:#22c55e38}.is-side-b .inv-bs-loc-card{border-color:#ef444438}.inv-bs-loc-portrait{position:relative;width:100%;aspect-ratio:4 / 5;border-radius:6px;overflow:visible;background:#0a0f1e;flex-shrink:0}.inv-bs-loc-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:6px}.inv-bs-loc-unit{position:absolute;top:4px;left:4px;width:28px;height:auto;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7))}.inv-bs-loc-ring{position:absolute;left:5px;bottom:36px;display:flex;flex-direction:column;align-items:center;gap:1px}.inv-bs-loc-ring-img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:2px solid #f59e0b;background:#0a0f1e;box-shadow:0 1px 3px #000000b3}.inv-bs-loc-ring-img.is-q-legendary{border-color:#f59e0b}.inv-bs-loc-ring-img.is-q-epic{border-color:#a855f7}.inv-bs-loc-ring-img.is-q-rare{border-color:#3b82f6}.inv-bs-loc-ring-img.is-q-common{border-color:#9ca3af}.inv-bs-loc-ring-lv{font-size:.62em;font-weight:700;color:#fff;background:#000000b3;border-radius:3px;padding:0 3px;line-height:1.4;white-space:nowrap}.inv-bs-loc-ring-tip{position:absolute;left:0;bottom:calc(100% + 6px);background:#0d1424fa;border:1px solid rgba(245,158,11,.4);border-radius:8px;padding:8px 10px;min-width:150px;opacity:0;visibility:hidden;transition:opacity .15s,visibility .15s;pointer-events:none;z-index:45}.inv-bs-loc-ring:hover .inv-bs-loc-ring-tip{opacity:1;visibility:visible}.inv-bs-loc-ring-tip-hd{font-size:.72em;font-weight:700;color:#f8fafc;white-space:nowrap;margin-bottom:3px}.inv-bs-loc-ring-tip-skill{font-size:.62em;font-weight:600;color:#f59e0b;white-space:nowrap;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid rgba(255,255,255,.08)}.inv-bs-loc-ring-stat{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.62em;color:#cbd5e1;padding:1px 0;white-space:nowrap}.inv-bs-loc-ring-stat strong{color:#4ade80;font-weight:700}.inv-bs-loc-gearstrip{position:absolute;bottom:0;left:0;right:0;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:3px;padding:3px 5px;background:linear-gradient(to top,rgba(0,0,0,.75) 0%,transparent 100%);border-radius:0 0 6px 6px}.inv-bs-loc-gear-img{width:26px;height:26px;border-radius:4px;object-fit:cover;border:1px solid rgba(255,255,255,.3);background:#0a0f1e}.inv-bs-loc-gear{position:relative;display:inline-flex}.inv-bs-loc-gear-dot{position:absolute;top:-2px;right:-2px;width:6px;height:6px;border-radius:50%;background:#a855f7;border:1px solid rgba(0,0,0,.55);pointer-events:none}.inv-bs-loc-gear-tip{position:absolute;bottom:calc(100% + 6px);right:0;background:#0d1424fa;border:1px solid rgba(168,85,247,.35);border-radius:8px;padding:7px 9px;min-width:128px;opacity:0;visibility:hidden;transition:opacity .15s,visibility .15s;pointer-events:none;z-index:40}.inv-bs-loc-gear:hover .inv-bs-loc-gear-tip{opacity:1;visibility:visible}.inv-bs-loc-gear-tip-hd{font-size:.58em;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#6b7494;margin-bottom:5px;white-space:nowrap}.inv-bs-loc-gear-gem{display:flex;align-items:center;gap:6px;font-size:.64em;color:#cbd5e1;padding:2px 0;white-space:nowrap}.inv-bs-loc-gear-gem img{width:20px;height:20px;border-radius:4px;object-fit:cover;flex-shrink:0}.inv-bs-loc-gem-ico{position:relative;display:inline-flex;flex-shrink:0;line-height:0}.inv-bs-loc-gem-tier{position:absolute;top:-5px;right:-5px;min-width:13px;height:13px;padding:0 2px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f59e0b,#b45309);color:#fff;font-size:8px;font-weight:800;line-height:1;border-radius:4px;box-shadow:0 0 0 1px #0d1424f2;letter-spacing:0;pointer-events:none}.inv-bs-loc-lvl{display:flex;align-items:center;justify-content:space-between;padding:0 2px}.inv-bs-loc-lvl-num{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.82em;color:#f0f4ff}.inv-bs-loc-stars{display:flex;gap:1px}.inv-bs-loc-stars span{font-size:.78em;line-height:1}.inv-bs-loc-stars .is-on{color:#f59e0b}.inv-bs-loc-stars .is-off{color:#ffffff38}.inv-bs-loc-skills{display:flex;flex-direction:column;gap:4px}.inv-bs-loc-skill{display:flex;align-items:center;gap:6px;background:#ffffff0a;border:1px solid rgba(255,255,255,.06);border-radius:6px;padding:3px 5px;min-height:40px}.inv-bs-loc-sk-icon{width:34px;height:34px;border-radius:5px;object-fit:cover;flex-shrink:0;background:#0a0f1e}.inv-bs-sk-fr{position:relative;width:54px;height:54px;flex-shrink:0}.inv-bs-sk-fr:after{content:"";position:absolute;inset:0;background:center / contain no-repeat url(../images/game-icons/normal-skill-frame.webp?v=1);pointer-events:none}.inv-bs-loc-skill.is-cs .inv-bs-sk-fr:after{background-image:url(../images/game-icons/commander-skill-frame.webp?v=1)}.inv-bs-loc-skill.is-cs.is-inactive .inv-bs-sk-fr-icon,.inv-bs-loc-skill.is-cs.is-inactive .inv-bs-sk-fr:after{filter:saturate(0);opacity:.5}.inv-bs-loc-skill.is-cs.is-inactive .inv-bs-loc-sk-name{opacity:.5}.inv-bs-sk-fr-icon{position:absolute;inset:11%;width:78%;height:78%;border-radius:50%;object-fit:cover;background:#0a0f1e}.inv-bs-loc-sk-name{font-size:.72em;line-height:1.25;color:#e2e8f0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0}.inv-bs-loc-skill.has-tip{position:relative;cursor:help}.inv-bs-loc-skill.has-tip:after{content:"?";margin-left:auto;flex-shrink:0;width:15px;height:15px;line-height:15px;text-align:center;font-size:.62em;font-weight:700;color:#8b93b3;background:#ffffff0f;border:1px solid rgba(255,255,255,.12);border-radius:50%}.inv-bs-loc-skill.has-tip:hover:after{color:#f59e0b;border-color:#f59e0b80}.inv-bs-loc-sk-tip{position:absolute;bottom:calc(100% + 6px);left:0;width:270px;max-width:78vw;background:#0b1120fa;border:1px solid rgba(245,158,11,.35);border-radius:8px;padding:9px 11px;box-shadow:0 8px 24px #0009;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .16s,visibility .16s,transform .16s;pointer-events:none;z-index:40;white-space:normal;text-align:left}.inv-bs-loc-skill.has-tip:hover .inv-bs-loc-sk-tip,.inv-bs-loc-skill.has-tip.is-open .inv-bs-loc-sk-tip{opacity:1;visibility:visible;transform:translateY(0)}.inv-bs-loc-skill.has-tip.is-open:after{color:#f59e0b;border-color:#f59e0b80}.inv-bs-loc-sk-tip-hd{display:flex;flex-direction:column;gap:2px;padding-bottom:6px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.08)}.inv-bs-loc-sk-tip-nm{font-size:.82em;font-weight:700;color:#fde68a;line-height:1.2}.inv-bs-loc-sk-tip-mech{font-size:.6em;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#6b7494}.inv-bs-loc-sk-tip-desc{font-size:.68em;line-height:1.45;color:#c8cce8;margin-bottom:7px}.inv-bs-loc-sk-tip-lines{display:flex;flex-direction:column;gap:3px}.inv-bs-loc-sk-tip-ln{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:.68em;line-height:1.3}.inv-bs-loc-sk-tip-k{color:#8b93b3;flex-shrink:0}.inv-bs-loc-sk-tip-v{color:#e2e8f0;text-align:right;font-weight:600}.inv-bs-loc-sk-tip-ln.is-dmg .inv-bs-loc-sk-tip-v{color:#fca5a5}.inv-bs-loc-sk-tip-ln.is-act .inv-bs-loc-sk-tip-v{color:#93c5fd}.inv-bs-loc-sk-tip-ln.is-fx .inv-bs-loc-sk-tip-v{color:#86efac}.inv-bs-loc-sk-tip-ln.is-chan{opacity:.9}.inv-bs-loc-sk-tip-ln.is-chan .inv-bs-loc-sk-tip-k{color:#c4b5fd;font-size:.92em;padding-left:6px}.inv-bs-loc-sk-tip-ln.is-chan .inv-bs-loc-sk-tip-v{color:#c4b5fd;font-weight:500}.inv-bs-loc-sk-tip-ft{margin-top:7px;padding-top:5px;border-top:1px solid rgba(255,255,255,.06);font-size:.56em;text-transform:uppercase;letter-spacing:.08em;color:#545c78}.is-side-b .inv-bs-loc-sk-tip{left:auto;right:0}.inv-bs-loc-skill.is-ring{background:linear-gradient(90deg,#f59e0b38,#f59e0b0f);border-color:#f59e0b73}.inv-bs-loc-skill.is-ring .inv-bs-loc-sk-icon{border-radius:50%}.inv-bs-loc-skill.is-ring .inv-bs-loc-sk-name{color:#fde68a;font-weight:600}.inv-bs-loc-skill.is-ring.is-q-epic{background:linear-gradient(90deg,#a855f738,#a855f70f);border-color:#a855f773}.inv-bs-loc-skill.is-ring.is-q-epic .inv-bs-loc-sk-name{color:#e9d5ff}.inv-bs-loc-skill.is-ring.is-q-rare{background:linear-gradient(90deg,#3b82f638,#3b82f60f);border-color:#3b82f673}.inv-bs-loc-skill.is-ring.is-q-rare .inv-bs-loc-sk-name{color:#bfdbfe}.inv-bs-loc-horse{position:relative;height:90px;border-radius:6px;overflow:hidden;background:#0a0f1e;border:1px solid rgba(255,255,255,.07);margin-top:auto;flex-shrink:0}.inv-bs-loc-horse-img{width:100%;height:100%;object-fit:cover;object-position:center 30%}.inv-bs-loc-adorn{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:3px}.inv-bs-loc-adorn-img{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid rgba(245,158,11,.7);background:#0a0f1e;box-shadow:0 1px 3px #000000b3}.inv-bs-loc-adorn-img.is-ability{width:20px;height:20px;border-width:1px;border-color:#fff6}.inv-bs-loc-horse.is-empty{height:auto;min-height:48px;display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px 8px;background:#0006;overflow:visible}.inv-bs-loc-horse-name{font-size:.72em;font-weight:600;color:#cbd5e1}.inv-bs-loc-adorn-chip{display:inline-flex;align-items:center;gap:4px;font-size:.68em;color:#cbd5e1;min-width:0;max-width:100%}.inv-bs-loc-adorn-chip img{width:24px;height:24px;border-radius:50%;object-fit:cover;border:1px solid rgba(245,158,11,.5);background:#0a0f1e;flex-shrink:0}.inv-bs-loc-adorn-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/* GEAR — the lineup page's tile, verbatim. Same plate gradients, the same petal
   stars, the same numeral under the stone: two surfaces showing one piece of gear
   must not differ, so the values are copied rather than re-picked. */
.inv-bs-loc-geargrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;justify-items:center;padding:8px;background:#00000059;border:1px solid rgba(255,255,255,.07);border-top:none}
.inv-bs-loc-gslot{position:relative;display:flex;flex-direction:column;align-items:center;cursor:help}
.inv-bs-loc-gtile{position:relative;width:66px;border-radius:0;overflow:hidden;border:1px solid transparent}
.inv-bs-loc-gslot.is-leg .inv-bs-loc-gtile{background:linear-gradient(180deg,#f0b752 0%,#b9822c 55%,#7d5417 100%);border-color:rgba(245,215,140,.55)}
.inv-bs-loc-gslot.is-myth .inv-bs-loc-gtile{background:linear-gradient(180deg,#a04e30 0%,#bd6d47 46%,#8d4227 100%);border-color:rgba(232,178,148,.42)}
.inv-bs-loc-gtile-img{display:block;width:100%;height:56px;object-fit:contain;padding:6px 4px 2px}
.inv-bs-loc-gtile-lv{position:absolute;left:4px;bottom:15px;z-index:3;font-size:.58rem;font-weight:700;color:#fff;line-height:1;text-shadow:0 1px 3px rgba(0,0,0,.9)}
.inv-bs-loc-gtile-lv b{color:#fff;font-weight:700}
.inv-bs-loc-gtile-stars{position:relative;z-index:3;display:flex;justify-content:center;gap:1px;width:100%;margin:0;padding:2px 0;background:rgba(0,0,0,.32)}
.inv-bs-loc-gs{position:relative;width:11px;height:11px;display:inline-block;flex:0 0 11px}
.inv-bs-loc-gpetal{position:absolute;left:50%;top:50%;width:3.8px;height:4.7px;margin:-4.7px 0 0 -1.9px;clip-path:polygon(50% 0,78% 58%,50% 100%,22% 58%);background:#54617e;transform-origin:50% 100%;z-index:2}
.inv-bs-loc-gpetal.on{background:linear-gradient(160deg,#fde68a,#f59e0b 58%,#d97706)}
.inv-bs-loc-gpetal.is-red.on{background:linear-gradient(160deg,#f87171,#dc2626 55%,#991b1b)}
/* The gold rim sits on the STAR, not on each petal. Per-petal it meant up to twenty
   filtered elements per tile and twenty-four tiles on this screen — around five
   hundred compositing layers, which is what made the loadout feel heavy. One filter
   per star is five times fewer and looks the same. */
.inv-bs-loc-gs.has-red{filter:drop-shadow(0 0 .7px #f0b429)}
.inv-bs-loc-gtile-gems{position:absolute;top:2px;left:50%;transform:translateX(-50%);display:flex;gap:2px;z-index:6}
.inv-bs-loc-gtile-gem{position:relative;width:12px;height:12px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7))}
.inv-bs-loc-gtile-gem img{width:100%;height:100%;object-fit:contain}
.inv-bs-loc-gtile-gem i{position:absolute;left:0;right:0;bottom:-4px;text-align:center;font-style:normal;font-family:Georgia,'Times New Roman',serif;font-size:8px;font-weight:700;line-height:1;letter-spacing:.01em;background:linear-gradient(180deg,#fffdf6 0%,#f6e6c6 42%,#cfa972 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:.4px rgba(58,28,12,.95);filter:drop-shadow(0 1px 1px rgba(0,0,0,.95)) drop-shadow(0 0 2px rgba(0,0,0,.7))}
.inv-bs-loc-gslot-lbl{margin-top:4px;font-size:.5rem;color:#4b5563;text-transform:uppercase;letter-spacing:.1em;font-weight:600}
.inv-bs-loc-mount{position:relative;margin-top:auto;flex-shrink:0}.inv-bs-loc-mount-fig{position:relative;height:62px;border-radius:8px 8px 0 0;overflow:hidden;background:#0a0f1e;border:1px solid rgba(255,255,255,.07)}.inv-bs-loc-mount-img{width:100%;height:100%;object-fit:cover;object-position:center 38%;display:block}.inv-bs-loc-mount-name{position:absolute;left:0;right:0;bottom:0;padding:8px 8px 4px;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.78em;color:#f0f4ff;text-transform:uppercase;letter-spacing:.04em;text-shadow:0 2px 6px rgba(0,0,0,.9);background:linear-gradient(to top,rgba(13,20,36,.95),rgba(13,20,36,.5) 60%,transparent)}.inv-bs-loc-mount-tip{position:absolute;top:100%;left:0;margin-top:6px;background:#0d1424f7;border:1px solid rgba(59,130,246,.32);border-radius:8px;padding:8px 10px;min-width:190px;max-width:240px;opacity:0;visibility:hidden;transition:opacity .18s,visibility .18s;pointer-events:none;z-index:20}.inv-bs-loc-mount-fig:hover+.inv-bs-loc-mount-tip{opacity:1;visibility:visible}.inv-bs-loc-mount-tip-hd{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.8em;text-transform:uppercase;letter-spacing:.05em;color:#f0f4ff;margin-bottom:6px}.inv-bs-loc-mount-stat{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:4px}.inv-bs-loc-mount-stat:last-child{margin-bottom:0}.inv-bs-loc-mount-stat-lbl{display:flex;flex-direction:row;align-items:center;font-size:.74em;font-weight:600;color:#c8cce8}.inv-bs-loc-mount-stat-txt{display:flex;flex-direction:column}.inv-bs-loc-mount-stat-lbl em{font-style:normal;font-size:.82em;color:#6b7494;letter-spacing:.02em}.inv-bs-loc-mount-stat strong{font-size:.82em;font-weight:700;color:#60a5fa;white-space:nowrap}.inv-bs-loc-mount-stat.is-none{font-size:.72em;color:#6b7494;font-style:italic}.inv-bs-loc-adorn-ov{position:absolute;top:8px;right:8px;display:flex;gap:4px;z-index:5}.inv-bs-loc-adorn-badge{width:40px;height:40px;border-radius:50%;overflow:hidden;border:2px solid #7a5234;background:#2e1a10;box-shadow:0 1px 4px #0009;flex-shrink:0;transition:transform .15s ease}/* Max adornment (Lv60). The conic sweep is the game's own max frame; the artwork insets so the ring reads as a frame AROUND it, not a border ON it. Defined here, unscoped, because the same loadout renders in the simulator AND in the create-lineup loader — it used to live only under .inv-slc-loadout, so the simulator set the class and nothing painted it. */
.inv-bs-loc-adorn-badge.is-max{background:conic-gradient(from 210deg,#a98be6,#79d9ad,#7cb2e8,#a98be6);border-color:#e7d9ff;display:flex;align-items:center;justify-content:center}
.inv-bs-loc-adorn-badge.is-max img{width:74%;height:74%;border-radius:50%}
.inv-bs-loc-adorn-badge img{width:100%;height:100%;object-fit:cover}.inv-bs-loc-adorn-ov:hover .inv-bs-loc-adorn-badge{transform:scale(1.1)}.inv-bs-loc-adorn-lv{align-self:flex-end;font-size:.58em;font-weight:700;line-height:1;color:#1a1206;background:linear-gradient(180deg,#f0c060,#d4a034);border:1px solid #7a5234;border-radius:6px;padding:2px 5px;box-shadow:0 1px 3px #00000080;white-space:nowrap}.inv-bs-loc-adorn-tip-lv{display:inline-block;font-size:.92em;font-weight:700;color:#f0c060;letter-spacing:.04em;margin-left:4px}.inv-bs-loc-adorn-tip{position:absolute;top:100%;right:0;margin-top:6px;background:#0d1424f7;border:1px solid rgba(212,175,55,.3);border-radius:8px;padding:8px 10px;min-width:190px;max-width:260px;opacity:0;visibility:hidden;transition:opacity .18s,visibility .18s;pointer-events:none;z-index:20}.inv-bs-loc-adorn-ov:hover .inv-bs-loc-adorn-tip{opacity:1;visibility:visible}.inv-bs-loc-adorn-fx-desc{font-size:.68em;line-height:1.45;color:#aeb4d0;margin:2px 0 8px 26px;white-space:normal}.inv-bs-loc-adorn-fx-desc strong{font-weight:700}.inv-bs-loc-adorn-fx-note{font-size:.62em;line-height:1.4;color:#e0a44b;margin:-4px 0 8px 26px;white-space:normal}.inv-bs-loc-adorn-tip-hd{font-size:.6em;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:#6b7494;margin-bottom:6px}.inv-bs-loc-adorn-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.7em;margin-bottom:3px}.inv-bs-loc-adorn-stat-k{color:#9aa3bd;white-space:nowrap}.inv-bs-loc-adorn-stat-v{color:#4ade80;font-weight:700;white-space:nowrap}.inv-bs-loc-adorn-stat+.inv-bs-loc-adorn-tip-hd,.inv-bs-loc-adorn-stat~.inv-bs-loc-adorn-tip-hd{margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08)}.inv-bs-loc-adorn-fx{display:flex;align-items:center;gap:6px;margin-bottom:4px}.inv-bs-loc-adorn-fx:last-child{margin-bottom:0}.inv-bs-loc-adorn-fx img{width:20px;height:20px;border-radius:4px;object-fit:cover;background:#1a2235;flex-shrink:0}.inv-bs-loc-adorn-fx span{font-size:.72em;color:#c8cce8;white-space:nowrap}.inv-bs-loc-traits{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:7px 8px;background:#00000059;border:1px solid rgba(255,255,255,.07);border-top:none;border-radius:0 0 8px 8px}.inv-bs-loc-trait{position:relative;display:inline-flex;align-items:center;cursor:help}.inv-bs-loc-trait-lbl{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);background:#0d1424fa;border:1px solid rgba(255,255,255,.16);border-radius:6px;padding:4px 9px;font-size:.62em;color:#e2e8f0;white-space:normal;width:max-content;max-width:180px;text-align:center;opacity:0;visibility:hidden;transition:opacity .14s,visibility .14s;pointer-events:none;z-index:40}.inv-bs-loc-trait-name{display:block;font-weight:700;color:#f8fafc;white-space:nowrap}.inv-bs-loc-trait-eff{display:block;margin-top:2px;padding-top:2px;border-top:1px solid rgba(255,255,255,.1);color:#f59e0b;line-height:1.25}.inv-bs-loc-trait:hover .inv-bs-loc-trait-lbl{opacity:1;visibility:visible}.inv-bs-loc-trait img{width:28px;height:28px;border-radius:5px;object-fit:cover;border:1px solid rgba(255,255,255,.1);flex-shrink:0}.inv-bs-loc-mount.is-empty{margin-top:auto;display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px 8px;background:#0006;border:1px solid rgba(255,255,255,.07);border-radius:6px}.inv-bs-loc-mount-name-sm{font-size:.72em;font-weight:600;color:#cbd5e1}@media(max-width:768px){.inv-bs-loc-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.inv-bs-loc-grid{grid-template-columns:1fr}}/* The two sides are one grid, not two independent stacks. Hero blocks used to be laid
   out per column, so the left hero 1 was 416px tall against the right's 497px and every
   hero below it started at a different height — the reader had to hunt for the matching
   pair. Each column is a subgrid spanning the same rows, so header sits with header and
   hero N sits with hero N whatever they contain. The column element itself survives (it
   carries the green/red side tint), which is why this is subgrid and not display:contents.
   Four rows: the header plus a lineup's three commanders. */
.inv-bs-det-cols{display:grid;grid-template-columns:1fr 1fr;gap:14px;grid-template-rows:repeat(4,auto)}
.inv-bs-det-col{display:grid;grid-template-rows:subgrid;grid-row:1 / -1;align-content:start}
/* Reserve the damage/healing line on every row. Without it a row that dealt no damage
   was ~35px shorter than its neighbour, so rows drifted out of step down the column. */
.inv-bs-det-pills{min-height:18px}
.inv-bs-det-col{border-radius:10px;padding:4px 0;overflow:hidden}.inv-bs-det-col.is-a{background:linear-gradient(180deg,#22c55e12,#22c55e05)}.inv-bs-det-col.is-b{background:linear-gradient(180deg,#ef444412,#ef444405)}.inv-bs-det-col-hdr{font-family:Rajdhani,sans-serif;font-weight:700;font-size:.9em;letter-spacing:.03em;text-transform:uppercase;padding:8px 12px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inv-bs-det-col-hdr.is-a{color:#22c55e}.inv-bs-det-col-hdr.is-b{color:#ef4444;text-align:right}.inv-bs-det-hero{display:flex;align-items:stretch;gap:8px;padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.05)}.inv-bs-det-hero:last-child{border-bottom:none}.inv-bs-det-rail{display:flex;align-items:center;flex-shrink:0}.inv-bs-det-portrait{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #f59e0b;background:#0d1325}.inv-bs-det-portrait.is-empty{border-color:#ffffff26}.inv-bs-det-rows{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.inv-bs-det-col.is-b .inv-bs-det-hero,.inv-bs-det-col.is-b .inv-bs-det-row{flex-direction:row-reverse}.inv-bs-det-col.is-b .inv-bs-det-main{text-align:right}.inv-bs-det-col.is-b .inv-bs-det-state,.inv-bs-det-col.is-b .inv-bs-det-skill,.inv-bs-det-col.is-b .inv-bs-det-pills,.inv-bs-det-col.is-b .inv-bs-det-chips{justify-content:flex-end}.inv-bs-det-row{display:flex;align-items:center;gap:8px;background:#ffffff08;border-radius:6px;padding:5px 8px}.inv-bs-det-row.is-idle{opacity:.45}.inv-bs-det-icon{width:34px;height:34px;border-radius:6px;object-fit:cover;flex-shrink:0;border:1px solid rgba(255,255,255,.1);background:#0d1325}.inv-bs-det-ico{display:flex;flex-direction:column;align-items:center;gap:3px;flex-shrink:0}.inv-bs-det-fr{width:44px;height:44px;flex-shrink:0}.inv-bs-det-ico .inv-bs-loc-sk-pips{font-size:1em;gap:3px}.inv-bs-det-ico .inv-bs-sk-lv{font-size:.5em}.inv-bs-det-fr.is-cs:after{background-image:url(../images/game-icons/commander-skill-frame.webp?v=1)}.inv-bs-det-fr.is-cs.is-inactive .inv-bs-sk-fr-icon,.inv-bs-det-fr.is-cs.is-inactive:after{filter:saturate(0);opacity:.5}.inv-bs-det-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.inv-bs-det-skill{font-size:.82em;font-weight:600;color:#e2e8f0;line-height:1.15}.inv-bs-det-state{display:flex;align-items:center;gap:5px;font-size:.72em;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.inv-bs-det-state.is-off{color:#6b7280}.inv-bs-det-state.is-on{color:#f59e0b}.inv-bs-det-state.inv-bs-det-note{text-transform:none;letter-spacing:0;font-weight:500;font-style:italic;font-size:.68em;line-height:1.3;display:block}.inv-bs-det-count{font-size:1.15em;color:#fbbf24}.inv-bs-det-pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}.inv-bs-det-pill{font-size:.7em;padding:1px 8px;border-radius:4px;background:#00000059;color:#cbd5e1}.inv-bs-det-pill b{color:#f0f4ff;font-weight:700;margin-left:3px}.inv-bs-det-pill.is-dmg b{color:#fbbf24}.inv-bs-det-pill.is-heal b{color:#34d399}.inv-bs-det-chips{display:flex;flex-wrap:wrap;gap:4px;padding:4px 0 2px 42px}.inv-bs-det-col.is-b .inv-bs-det-chips{padding:4px 42px 2px 0}.inv-bs-det-chip{font-size:.68em;padding:1px 7px;border-radius:3px;background:#a855f71f;border:1px solid rgba(168,85,247,.3);color:#c4b5fd}@media(max-width:768px){.inv-bs-det-cols{grid-template-columns:1fr}.inv-bs-det-col.is-b .inv-bs-det-hero,.inv-bs-det-col.is-b .inv-bs-det-row{flex-direction:row}.inv-bs-det-col.is-b .inv-bs-det-main{text-align:left}.inv-bs-det-col.is-b .inv-bs-det-state,.inv-bs-det-col.is-b .inv-bs-det-skill,.inv-bs-det-col.is-b .inv-bs-det-pills,.inv-bs-det-col.is-b .inv-bs-det-chips{justify-content:flex-start}.inv-bs-det-col.is-b .inv-bs-det-chips{padding:4px 0 2px 42px}.inv-bs-det-col-hdr.is-b{text-align:left}}.inv-bs-perk{position:relative;display:inline-flex;align-items:center;margin-left:10px;vertical-align:middle;cursor:help;outline:none}.inv-bs-perk-ico{font-size:.95rem;line-height:1;opacity:.8;filter:drop-shadow(0 0 5px rgba(245,158,11,.55));transition:opacity .15s ease,transform .15s ease}.inv-bs-perk:hover .inv-bs-perk-ico,.inv-bs-perk:focus .inv-bs-perk-ico,.inv-bs-perk:focus-within .inv-bs-perk-ico{opacity:1;transform:translateY(-1px)}.inv-bs-perk-tip{position:absolute;top:calc(100% + 11px);left:50%;transform:translate(-50%) translateY(6px);width:340px;max-width:80vw;z-index:60;display:flex;flex-direction:column;gap:6px;padding:12px 14px;background:#0d1526;border:1px solid rgba(245,158,11,.35);border-radius:12px;box-shadow:0 14px 36px #0000008c;text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,transform .16s ease}.inv-bs-perk:hover .inv-bs-perk-tip,.inv-bs-perk:focus .inv-bs-perk-tip,.inv-bs-perk:focus-within .inv-bs-perk-tip{opacity:1;visibility:visible;transform:translate(-50%) translateY(0)}.inv-bs-perk-tip:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border:7px solid transparent;border-bottom-color:#f59e0b73}.inv-bs-perk-tip strong{color:#f59e0b;font-size:.8rem;font-weight:700;letter-spacing:.3px}.inv-bs-perk-tip span{color:#cbd5e1;font-size:.72rem;font-weight:400;line-height:1.45}.inv-bs-perk-tip .inv-bs-perk-you{margin-top:2px;color:#6ee7b7;font-weight:600}.inv-bs-perk-tier{display:flex;gap:7px;align-items:flex-start;padding:6px 0;border-top:1px solid rgba(255,255,255,.07)}.inv-bs-perk-tier:first-of-type{border-top:none}.inv-bs-perk-tier-icon{font-size:.85rem;flex-shrink:0;margin-top:1px}.inv-bs-perk-tier-body{display:flex;flex-direction:column;gap:3px;min-width:0}.inv-bs-perk-tier-name{font-size:.77rem;font-weight:700;line-height:1;letter-spacing:.02em}.inv-bs-perk-tier-list{color:#94a3b8;font-size:.69rem;line-height:1.45;list-style:none;margin:0;padding:0}.inv-bs-perk-tier-list li:before{content:"\2022  ";color:#f59e0b99}.inv-bs-membership-badge{display:inline-block;vertical-align:middle;margin-left:10px;height:26px;width:auto;object-fit:contain;border-radius:4px;filter:drop-shadow(0 1px 5px rgba(0,0,0,.6))}.inv-bs-speed.is-locked{opacity:.42;cursor:not-allowed;position:relative;filter:grayscale(.25)}.inv-bs-speed.is-locked:hover{opacity:.55}.inv-bs-lock-badge{height:15px;width:auto;vertical-align:middle;margin-right:4px;border-radius:3px;display:inline-block}.inv-bs-lock-wrap{position:relative;display:inline-flex}.inv-bs-lock-tip{position:absolute;bottom:calc(100% + 9px);left:50%;transform:translate(-50%) translateY(5px);width:210px;max-width:80vw;z-index:70;display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:#0d1526;border:1px solid rgba(245,158,11,.35);border-radius:10px;box-shadow:0 8px 28px #000000b3;text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,transform .2s ease,visibility 0s .8s,pointer-events 0s .8s}.inv-bs-lock-wrap:hover .inv-bs-lock-tip{opacity:1;visibility:visible;transform:translate(-50%) translateY(0);pointer-events:auto;transition:opacity .2s ease,transform .2s ease,visibility 0s 0s,pointer-events 0s 0s}.inv-bs-lock-tip:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border:6px solid transparent;border-top-color:#f59e0b73}.inv-bs-lock-tip strong{color:#f59e0b;font-size:.78rem;font-weight:700;display:block;margin-bottom:1px}.inv-bs-lock-tip span{color:#cbd5e1;font-size:.69rem;line-height:1.4;display:block}.inv-bs-lock-tip-row{display:flex!important;align-items:center;gap:3px}.inv-bs-lock-tip-coin{height:12px;width:auto;vertical-align:middle;flex-shrink:0}.inv-bs-lock-tip-cta{display:block;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255,255,255,.08);color:#f59e0b;font-size:.68rem;font-weight:700;text-decoration:none;letter-spacing:.03em}.inv-bs-lock-tip-cta:hover{color:#fbbf24}.inv-bs-lock-tip-badge{height:16px;width:auto;vertical-align:middle;margin-right:5px;border-radius:3px}.inv-bs-lock-tip strong{display:flex;align-items:center}
.inv-bs-ch-intro p{color:#9ca3af;font-size:14px;line-height:1.6;margin:0 0 18px;max-width:760px}.inv-bs-ch-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 18px}.inv-bs-ch-search{flex:1 1 240px;min-width:200px;background:#0a0f1e;border:1px solid rgba(255,255,255,.15);border-radius:8px;color:#f0f4ff;padding:9px 12px;font-family:Inter,sans-serif;font-size:.92em}.inv-bs-ch-search:focus{outline:none;border-color:rgba(245,158,11,.55)}.inv-bs-ch-scope{display:flex;gap:6px}.inv-bs-ch-scope-btn{background:transparent;border:1px solid rgba(255,255,255,.15);color:#ffffffb3;padding:8px 14px;border-radius:8px;cursor:pointer;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.9em;text-transform:uppercase;letter-spacing:.04em}.inv-bs-ch-scope-btn:hover{border-color:rgba(245,158,11,.45);color:#f0f4ff}.inv-bs-ch-scope-btn.is-active{background:#f59e0b29;border-color:rgba(245,158,11,.55);color:#fde68a}.inv-bs-ch-count{margin-left:auto;font-size:.8em;color:#ffffff73;font-family:ui-monospace,monospace}.inv-bs-ch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.inv-bs-ch-card{background:#111827;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:9px}.inv-bs-ch-card.is-mine{border-color:rgba(245,158,11,.35)}.inv-bs-ch-heroes{display:flex;align-items:center;gap:6px}.inv-bs-ch-hero{width:46px;height:46px;border-radius:50%;object-fit:cover;border:1px solid rgba(245,158,11,.35);background:#0a0f1e}.inv-bs-ch-hero.is-empty{display:flex;align-items:center;justify-content:center;font-size:18px;border-style:dashed;border-color:rgba(255,255,255,.15)}.inv-bs-ch-title{font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.02em;color:#f0f4ff;line-height:1.25;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.inv-bs-ch-tag{font-size:9px;font-weight:800;letter-spacing:.08em;padding:2px 6px;border-radius:999px;font-family:ui-monospace,monospace}.inv-bs-ch-tag.is-you{color:#fde68a;background:#f59e0b29;border:1px solid rgba(245,158,11,.45)}.inv-bs-ch-tag.is-hidden{color:#6b7494;background:#ffffff0d;border:1px solid rgba(255,255,255,.12)}.inv-bs-ch-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.8em;margin-top:-2px}.inv-bs-ch-owner{color:#3b82f6;text-decoration:none}.inv-bs-ch-owner:hover{text-decoration:underline}.inv-bs-ch-kingdom{color:#ffffff73}.inv-bs-ch-actions{display:flex;gap:8px;margin-top:auto;padding-top:4px}.inv-bs-ch-pick{flex:1;background:transparent;border:1px solid rgba(255,255,255,.15);color:#ffffffb3;padding:8px 6px;border-radius:8px;cursor:pointer;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.85em;letter-spacing:.02em}.inv-bs-ch-pick:hover{border-color:rgba(245,158,11,.45);color:#f0f4ff}.inv-bs-ch-pick.is-primary{background:#f59e0b29;border-color:rgba(245,158,11,.5);color:#fde68a}.inv-bs-ch-pick.is-primary:hover{background:#f59e0b3d}.inv-bs-ch-status{color:#ffffff73;font-size:.88em;padding:14px 0}.inv-bs-ch-more[hidden]{display:none}.inv-bs-ch-more{display:block;margin:16px auto 0;background:transparent;border:1px solid rgba(255,255,255,.15);color:#ffffffb3;padding:9px 22px;border-radius:8px;cursor:pointer;font-family:Rajdhani,sans-serif;font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:.9em}.inv-bs-ch-more:hover{border-color:rgba(245,158,11,.45);color:#f0f4ff}@media(max-width:600px){.inv-bs-ch-grid{grid-template-columns:1fr}.inv-bs-ch-count{margin-left:0;width:100%}}
.inv-bs-res-fav{margin-left:auto;flex-shrink:0;background:transparent;border:0;padding:2px 4px;line-height:1;font-size:15px;color:#ffffff40;cursor:pointer;transition:color .15s,transform .15s}.inv-bs-res-fav:hover{color:#f59e0b;transform:scale(1.15)}.inv-bs-res-fav.is-on{color:#f59e0b}.inv-bs-ch-card{position:relative}.inv-bs-ch-fav{position:absolute;top:8px;right:8px;background:transparent;border:0;padding:3px 5px;line-height:1;font-size:17px;color:#ffffff33;cursor:pointer;transition:color .15s,transform .15s}.inv-bs-ch-fav:hover{color:#f59e0b;transform:scale(1.15)}.inv-bs-ch-fav.is-on{color:#f59e0b}.inv-bs-ch-fav:disabled{opacity:.5;cursor:default}.inv-bs-ch-title{padding-right:22px}
/* Horse-trait rank colours in the lineup card — the SAME thresholds and colours the
   builder uses (its de() and its [data-trait-tier] rules), so a trait cannot read as one
   tier while being edited and another while being simulated. Rank is already in the sim
   payload; only the chip was ignoring it. */
.inv-bs-loc-trait[data-trait-tier=mythical]{border-radius:6px;padding:1px;border:1px solid #ef4444;box-shadow:0 0 6px #ef444466;background:linear-gradient(160deg,#ef44443d,#ef444414)}.inv-bs-loc-trait[data-trait-tier=mythical] img{border-color:transparent;background:none}
.inv-bs-loc-trait[data-trait-tier=legendary]{border-radius:6px;padding:1px;border:1px solid #f59e0b;box-shadow:0 0 6px #f59e0b66;background:linear-gradient(160deg,#f59e0b3d,#f59e0b14)}.inv-bs-loc-trait[data-trait-tier=legendary] img{border-color:transparent;background:none;filter:hue-rotate(38deg) saturate(1.15)}
.inv-bs-loc-trait[data-trait-tier=epic]{border-radius:6px;padding:1px;border:1px solid #a855f7;box-shadow:0 0 6px #a855f766;background:linear-gradient(160deg,#a855f73d,#a855f714)}.inv-bs-loc-trait[data-trait-tier=epic] img{border-color:transparent;background:none;filter:hue-rotate(271deg) saturate(1.15)}
.inv-bs-loc-trait[data-trait-tier=rare]{border-radius:6px;padding:1px;border:1px solid #3b82f6;box-shadow:0 0 6px #3b82f666;background:linear-gradient(160deg,#3b82f63d,#3b82f614)}.inv-bs-loc-trait[data-trait-tier=rare] img{border-color:transparent;background:none;filter:hue-rotate(217deg) saturate(1.15)}
.inv-bs-loc-trait[data-trait-tier=uncommon]{border-radius:6px;padding:1px;border:1px solid #22c55e;box-shadow:0 0 6px #22c55e66;background:linear-gradient(160deg,#22c55e3d,#22c55e14)}.inv-bs-loc-trait[data-trait-tier=uncommon] img{border-color:transparent;background:none;filter:hue-rotate(142deg) saturate(1.15)}
.inv-bs-loc-trait[data-trait-tier=common]{border-radius:6px;padding:1px;border:1px solid #9ca3af;box-shadow:0 0 6px #9ca3af66;background:linear-gradient(160deg,#9ca3af3d,#9ca3af14)}.inv-bs-loc-trait[data-trait-tier=common] img{border-color:transparent;background:none;filter:grayscale(1) brightness(1.15)}
.inv-bs-loc-trait[data-trait-tier=mythical] .inv-bs-loc-trait-name{color:#ef4444}
.inv-bs-loc-trait[data-trait-tier=legendary] .inv-bs-loc-trait-name{color:#f59e0b}
.inv-bs-loc-trait[data-trait-tier=epic] .inv-bs-loc-trait-name{color:#a855f7}
.inv-bs-loc-trait[data-trait-tier=rare] .inv-bs-loc-trait-name{color:#3b82f6}
.inv-bs-loc-trait[data-trait-tier=uncommon] .inv-bs-loc-trait-name{color:#22c55e}
.inv-bs-loc-trait[data-trait-tier=common] .inv-bs-loc-trait-name{color:#9ca3af}

/* SKILLS — the lineup page's arrangement, appended at the END of the file on purpose:
   the base .inv-bs-loc-skill rules live further up and have the same specificity, so
   anything written before them silently loses. (It did: an earlier edit placed these
   above the base rules and the grid never applied.)

   Two per row. Each skill is a framed round icon with its level on the frame and,
   underneath, its role — Commander / Signature / Ring — or, for a customisable
   skill, the star it is actually set to. */
.inv-bs-loc-skills{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 6px;align-items:start}
.inv-bs-loc-skill{display:flex!important;flex-direction:column;align-items:center;text-align:center;gap:3px;background:none!important;border:0!important;padding:2px 0!important;min-height:0!important}
.inv-bs-loc-skill .inv-bs-loc-sk-name{font-size:.66em;color:#c8cce8;min-width:0;max-width:100%;-webkit-line-clamp:2}
.inv-bs-sk-lv{position:absolute;left:50%;bottom:-2px;transform:translateX(-50%);z-index:3;font-family:'Rajdhani',sans-serif;font-size:.62em;font-weight:700;line-height:1;color:#1a1206;background:linear-gradient(180deg,#f0c060,#d4a034);border:1px solid #7a5234;border-radius:5px;padding:1px 5px}
.inv-bs-loc-sk-role{font-size:.54em;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#6b7494}
.inv-bs-loc-sk-pips{display:flex;gap:2px;justify-content:center;line-height:1}
.inv-bs-loc-sk-pips i{font-style:normal;font-size:.5em;color:#3d4560}
.inv-bs-loc-sk-pips i.is-on{color:#ef4444}
.inv-bs-loc-skill.is-ring,.inv-bs-loc-skill.is-ring.is-q-epic,.inv-bs-loc-skill.is-ring.is-q-rare{background:none!important;border:0!important}

/* HERO RANK — the lineup page's five-bloom badge, not five whole stars. A hero can
   sit at 23 of 25 petals; a plain star row could only ever say "4" and lose the
   three petals a lineup actually carries. Same geometry and same fill as the page,
   scaled down to the strip's height. */
.inv-bs-loc-stars{display:flex;gap:3px;align-items:center}
.inv-bs-lp-flower{position:relative;width:18px;height:18px;flex:0 0 18px;display:inline-block}
.inv-bs-lp-petal{position:absolute;left:50%;top:50%;width:5.2px;height:7px;margin:-7px 0 0 -2.6px;clip-path:polygon(50% 0,78% 58%,50% 100%,22% 58%);background:#222b3b;transform-origin:50% 100%;z-index:2}
.inv-bs-lp-petal.on{background:linear-gradient(160deg,#fde68a,#f59e0b 58%,#d97706);z-index:3}

/* LOADOUT SECTIONS — the game's own grouping: a titled band, then the same part of
   every hero side by side under it. Appended at the end of the file for the same
   reason the skill grid is: the per-card rules above have equal specificity.

   The ring is absolutely positioned inside the portrait in the card layout; pulled
   into its own section it needs to sit in normal flow again, so its offsets are
   cleared here rather than in the builder. */
.inv-bs-loc-secs{display:flex;flex-direction:column;gap:10px}
.inv-bs-loc-sec{border:1px solid rgba(255,255,255,.06);border-radius:8px;overflow:hidden;background:#0000002e}
.inv-bs-loc-sec-h{font-family:'Rajdhani',sans-serif;font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#f0d9a0;padding:5px 10px;background:linear-gradient(90deg,rgba(31,74,54,.85),rgba(31,74,54,.25));border-bottom:1px solid rgba(255,255,255,.07)}
.inv-bs-loc-sec-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px}
.inv-bs-loc-sec-cell{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
/* In the card layout the ring is absolutely positioned over the portrait; in its own
   section it goes back into normal flow. RELATIVE, not static: its quality disc and
   slot plate are ::before/::after with position:absolute, and with a static parent
   they resolved against a far-off ancestor and covered the page. */
.inv-bs-loc-sec-cell .inv-bs-loc-ring{position:relative!important;inset:auto!important;margin:0!important}
.inv-bs-loc-sec-cell .inv-bs-loc-geargrid,.inv-bs-loc-sec-cell .inv-bs-loc-traits{background:none;border:0;padding:0;width:100%}
.inv-bs-loc-sec-cell .inv-bs-loc-portrait{width:100%}
.inv-bs-loc-sec-cell .inv-bs-loc-skills{width:100%}

/* RING TOOLTIP — the ring's skill lives here now, the way the game's ring panel shows
   it: the ring's stats, then the skill with its resolved numbers. It used to sit in
   the skills grid as a fifth icon, which is not where a player looks for it.

   The breakdown panel reused here is normally a hover tooltip of its own — absolutely
   positioned and hidden until its icon is hovered. Nested inside the ring's panel it
   has to be plain content again, so its positioning and its hidden state are undone. */
.inv-bs-loc-ring-tip-sk{display:flex;align-items:center;gap:6px;margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.08)}
.inv-bs-loc-ring-tip-ico{width:22px;height:22px;border-radius:50%;object-fit:cover;flex-shrink:0;border:1px solid rgba(245,158,11,.5)}
.inv-bs-loc-ring-tip-skn{font-size:.68em;font-weight:700;color:#fde68a;line-height:1.2}
.inv-bs-loc-ring-tip .inv-bs-loc-sk-tip{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;width:auto!important;max-width:none!important;margin:4px 0 0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;pointer-events:auto}
.inv-bs-loc-ring-tip .inv-bs-loc-sk-tip-hd{display:none}
.inv-bs-loc-ring-tip .inv-bs-loc-sk-tip-ft{display:none}
/* Wider: with the skill's breakdown inside it, 280px forced every line to wrap and
   the panel ran down the page. The channel rows are label-left / value-right, so
   they need room before they stop stacking. */
.inv-bs-loc-ring-tip{white-space:normal;width:max-content;max-width:min(420px,86vw);min-width:300px}
.inv-bs-loc-ring-tip .inv-bs-loc-sk-tip-ln{gap:14px}
.inv-bs-loc-ring-tip .inv-bs-loc-sk-tip-v{white-space:nowrap}

/* RING — the lineup page's disc, in the loadout. Two layers behind the ring on the
   same 484x480 canvas so they register exactly: the empty slot plate underneath, the
   quality disc over it, the ring itself on top. Quality picks the disc — gold for
   legendary, purple for epic, blue for rare — and anything without its own artwork
   falls back to the legendary disc, which is the same rule the page uses. */
.inv-bs-loc-sec-cell .inv-bs-loc-ring{display:inline-block;overflow:visible;width:52px;height:52px;flex:0 0 52px}
.inv-bs-loc-sec-cell .inv-bs-loc-ring::before,.inv-bs-loc-sec-cell .inv-bs-loc-ring::after{content:"";position:absolute;inset:-16px;background-size:contain;background-position:center;background-repeat:no-repeat;pointer-events:none}
.inv-bs-loc-sec-cell .inv-bs-loc-ring::before{z-index:0;background-image:var(--inv-ring-slot,none)}
.inv-bs-loc-sec-cell .inv-bs-loc-ring::after{z-index:1;background-image:var(--inv-ring-bg,none)}
/* No coloured halo on the image: the quality disc behind it IS the halo, so the base
   border drew a second ring inside the first. Square background too — the round
   plate belongs to the artwork, not to the <img>. */
.inv-bs-loc-sec-cell .inv-bs-loc-ring-img{position:relative;z-index:2;width:52px;height:52px;object-fit:contain;display:block;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
.inv-bs-loc-sec .inv-bs-loc-sec-row{overflow:visible}
.inv-bs-loc-sec{overflow:visible}
.inv-bs-loc-sec-cell:has(.inv-bs-loc-ring){padding:18px 0 6px}
.inv-bs-loc-ring-skico{position:absolute;top:-14px;right:-14px;width:24px;height:24px;border-radius:50%;z-index:4;background:#1a1408;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.5)}
.inv-bs-loc-ring-skico img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.inv-bs-loc-sec-cell .inv-bs-loc-ring-lv{position:relative;z-index:3;display:block;margin-top:18px;text-align:center;font-family:'Rajdhani',sans-serif;font-size:.78rem;font-weight:700;line-height:1;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.9)}

/* HERO CARD — shown whole, not cropped. The box was 4/5 with object-fit:cover while
   the card art is about 2/3, so cover trimmed the top and bottom off every hero —
   the banner at the head and the level strip at the foot were the first things to
   go. The box takes the card's own ratio and `contain` guarantees nothing is cut
   even if a hero ships art at a different size. */
.inv-bs-loc-portrait{aspect-ratio:2 / 3}
.inv-bs-loc-hero-img{object-fit:contain;background:#0a0f1e}

/* MOUNT — square corners. The horse art is a rectangular panel in the game and the
   rounded corners were clipping its frame. */
.inv-bs-loc-mount-fig{border-radius:0}
.inv-bs-loc-sec-cell .inv-bs-loc-mount,.inv-bs-loc-sec-cell .inv-bs-loc-mount-fig,.inv-bs-loc-sec-cell .inv-bs-loc-mount img{border-radius:0}

/* The card art already carries the unit banner, so the overlay icon drew a second
   horse on top of the one in the picture. */
.inv-bs-loc-sec-cell .inv-bs-loc-unit{display:none}
.inv-bs-loc-hero-img{object-fit:cover}
.inv-bs-lo-wrap{overflow:visible}

/* The adornment's level moved off the mount and into its tooltip: as a badge beside
   the disc it sat on top of the horse art. */
/* GEAR HOVER PANEL — the lineup page's, in the loadout: the piece and its level with
   the four ascension stars, then GEAR ATTRIBUTES and GEM ATTRIBUTES. The lines are
   computed server-side by the same helpers the simulation scores with, so the panel
   cannot promise a number the engine does not apply. */
.inv-bs-loc-gear-tip-hd{display:flex;align-items:center;justify-content:space-between;gap:10px}
.inv-bs-loc-gtip-stars{display:inline-flex;gap:2px}
.inv-bs-loc-gtip-stars i{font-style:normal;font-size:.6em;color:#3d4560}
.inv-bs-loc-gtip-stars i.is-on{color:#f59e0b}
.inv-bs-loc-gtip-stars i.is-red{color:#ef4444}
.inv-bs-loc-gtip-sec{margin:7px 0 4px;font-size:.58em;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#f0c060}
.inv-bs-loc-gtip-sec.is-gem{color:#93c5fd}
.inv-bs-loc-gtip-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 0;border-top:1px solid rgba(255,255,255,.05)}
.inv-bs-loc-gtip-k{display:flex;align-items:center;gap:5px;font-size:.68em;color:#c8cce8;line-height:1.25;min-width:0}
.inv-bs-loc-gtip-v{font-size:.7em;font-weight:700;color:#fff;white-space:nowrap}
.inv-bs-loc-gtip-st{font-style:normal;font-size:.8em;color:#f59e0b}
.inv-bs-loc-gtip-st.is-red{color:#ef4444}
.inv-bs-loc-gtip-row.is-unsim .inv-bs-loc-gtip-k,.inv-bs-loc-gtip-row.is-unsim .inv-bs-loc-gtip-v{opacity:.55}
.inv-bs-loc-gtip-warn{font-style:normal;color:#f59e0b}
.inv-bs-loc-gear-tip{white-space:normal;width:max-content;max-width:min(320px,84vw);min-width:220px}
.inv-bs-loc-adorn-tip-lvhd{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:.6em;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#8b93b3;padding-bottom:5px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.08)}
.inv-bs-loc-adorn-tip-lvhd span{font-family:'Rajdhani',sans-serif;font-size:1.15em;letter-spacing:.02em;color:#f0c060}

/* ADORNMENT EFFECT — the game's row: icon and name left, the level as pips on the
   right, description underneath.

   The pips are the BUILDER'S rule, not one of mine: band = floor((lv-1)/5) picks
   Rare / Epic / Legendary / Mythical and tier = (lv-1)%5+1 marks which of the five
   is current — the same arithmetic and the same four colours create-lineup's
   adornment picker uses, so a level reads identically in both places. */
.inv-bs-loc-adorn-fx{display:flex;align-items:center;gap:7px}
.inv-bs-loc-adorn-fx img{width:22px;height:22px;flex-shrink:0;object-fit:contain}
.inv-bs-loc-adorn-fx-nm{flex:1;min-width:0;font-size:.74em;font-weight:700;line-height:1.2;color:#f0a58a}
.inv-bs-loc-adorn-fx-bar{display:inline-flex;gap:1px;flex-shrink:0;cursor:help}
.inv-bs-loc-adorn-fx-bar i{width:15px;height:5px;border-radius:1px;border:1px solid rgba(255,255,255,.12);background:#ffffff0d}
.inv-bs-loc-adorn-fx-bar[data-band="0"] i{background:#3b82f6;border-color:#3b82f6}
.inv-bs-loc-adorn-fx-bar[data-band="1"] i{background:#a855f7;border-color:#a855f7}
.inv-bs-loc-adorn-fx-bar[data-band="2"] i{background:#eab308;border-color:#eab308}
.inv-bs-loc-adorn-fx-bar[data-band="3"] i{background:#ef4444;border-color:#ef4444}
/* The current tier is lit, not ringed: a thin white edge and a soft bloom, the way
   the game marks it. The old 2px outline with a 1px offset read as a box drawn
   around the pip and broke the run of segments. */
.inv-bs-loc-adorn-fx-bar i.is-selected{border-color:rgba(255,255,255,.9);box-shadow:0 0 5px rgba(255,255,255,.55),inset 0 0 4px rgba(255,255,255,.45);filter:brightness(1.18)}
.inv-bs-loc-adorn-fx-desc{font-size:.7em;line-height:1.45;color:#c8cce8;margin:3px 0 6px}

/* The gear panel opens from the TILE. Its show rule was still keyed on the old
   .inv-bs-loc-gear wrapper, which the 2x2 grid replaced with .inv-bs-loc-gslot — so
   nothing triggered it and hovering a tile did nothing. Centred over the tile rather
   than right-aligned, since a tile now sits in a grid cell, and z-index above the
   neighbouring tiles so it is not painted under them. */
.inv-bs-loc-gslot:hover .inv-bs-loc-gear-tip,.inv-bs-loc-gslot:focus-within .inv-bs-loc-gear-tip{opacity:1;visibility:visible;pointer-events:auto}
.inv-bs-loc-sec-cell .inv-bs-loc-gear-tip{left:50%;right:auto;transform:translateX(-50%);z-index:60}
.inv-bs-loc-gslot:hover{z-index:60;position:relative}

/* Gem icons in the hover panel had no size of their own — .inv-bs-loc-gem-ico only
   sets display and position, and in the old markup the parent constrained them. In
   the new attribute row nothing did, so each stone rendered at its natural size. */
.inv-bs-loc-gtip-stars{display:inline-flex;gap:2px;align-items:center}
.inv-bs-loc-gtip-stars .inv-bs-loc-gs,.inv-bs-loc-gtip-k .inv-bs-loc-gs{width:11px;height:11px;flex:0 0 11px}

/* The panel's gems use classes of their own. They were reusing .inv-bs-loc-gem-ico /
   .inv-bs-loc-gem-tier, which the card layout styles as a small icon with a gold
   corner badge — so the stone came out unsized and the tier sat above it in a box.
   Fighting that with specificity is how you get a rule nobody can reason about; a
   dedicated class simply cannot collide. */
.inv-bs-loc-gtip-gem{position:relative;display:inline-block;width:18px;height:18px;flex:0 0 18px;line-height:0}
.inv-bs-loc-gtip-gem img{width:18px;height:18px;max-width:none;object-fit:contain;display:block}
.inv-bs-loc-gtip-gt{position:absolute;left:0;right:0;bottom:-4px;text-align:center;font-style:normal;font-family:Georgia,'Times New Roman',serif;font-size:8px;font-weight:700;line-height:1;letter-spacing:.01em;background:linear-gradient(180deg,#fffdf6 0%,#f6e6c6 42%,#cfa972 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:.4px rgba(58,28,12,.95);filter:drop-shadow(0 1px 1px rgba(0,0,0,.95))}
.inv-bs-loc-gtip-k{gap:7px}


/* Loadout skill grid — a 2-line skill name used to push everything under it
   (pips, the "?" tip toggle) down, so cells in the same row lost their common
   baseline. Reserve both lines on every cell and the row stays flush whether
   the name wraps or not. */
.inv-bs-loc-sk-name{min-height:2.5em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* ── Mobile tooltips ───────────────────────────────────────────────────────────
   These panels are absolutely positioned inside narrow loadout cells and carried
   min-widths from the desktop layout (ring 300px, gear 220px, mount/adornment
   190px) plus vw caps up to 86vw. On a phone that put their right edge past the
   viewport: the panel was cut off AND the document became wider than the screen,
   so the whole page could be pinched out. Cap every panel to .inv-bs's content
   box (its padding is 16px a side) and drop the min-widths, so the clamp listener
   only ever has to nudge one back inside — never shrink it. */
@media (max-width:768px){
	.inv-bs-loc-sk-tip,
	.inv-bs-loc-ring-tip,
	.inv-bs-loc-gear-tip,
	.inv-bs-loc-adorn-tip,
	.inv-bs-loc-mount-tip,
	.inv-bs-perk-tip,
	.inv-bs-lock-tip{
		max-width:calc(100vw - 32px)!important;
		min-width:0!important;
	}
	/* Last resort: nothing in the simulator may widen the document. `clip` rather
	   than `hidden` creates no scroll container, so the sticky/absolute children
	   keep behaving, and with the cap above a clamped panel never reaches this
	   edge — so this only ever catches a panel the clamp failed to reach. */
	.inv-bs{overflow-x:clip}
}

/* ── Battle report history ────────────────────────────────────────────────
   Rows echo the in-game battle bar: winner side green, loser red, portraits
   with level + stars, verdict and casualty ratio in the middle. Every rule
   that sets `display` also carries a [hidden] guard — the attribute is only
   display:none in the UA sheet, so ANY display rule silently overrides it.
   That is exactly what kept the challenge "Load more" button permanently
   visible before 2026-09-06. */
.inv-bs-rep-caps{font-size:.82em;color:#ffffff8c;font-family:ui-monospace,monospace;margin:0}
.inv-bs-rep-status{color:#ffffff73;font-size:.88em;padding:8px 0;min-height:1.2em}
.inv-bs-rep-status.is-error{color:#fca5a5}
.inv-bs-rep-empty{color:#ffffff73;padding:24px 0;text-align:center}
.inv-bs-rep-list{display:flex;flex-direction:column;gap:12px}
.inv-bs-rep-row{border:1px solid rgba(255,255,255,.10);border-radius:12px;overflow:hidden;background:#111827}
.inv-bs-rep-row.is-saved{border-color:rgba(245,158,11,.45)}
.inv-bs-rep-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:10px 14px;cursor:pointer;
  background:linear-gradient(90deg,rgba(22,101,52,.55) 0%,rgba(22,101,52,.52) 20%,rgba(22,101,52,.44) 32%,rgba(22,101,52,.32) 40%,rgba(22,101,52,.18) 45%,rgba(22,101,52,.07) 48%,rgba(0,0,0,0) 50%,rgba(127,29,29,.07) 52%,rgba(127,29,29,.18) 55%,rgba(127,29,29,.32) 60%,rgba(127,29,29,.44) 68%,rgba(127,29,29,.52) 80%,rgba(127,29,29,.55) 100%)}
.inv-bs-rep-row.b-won .inv-bs-rep-bar{background:linear-gradient(90deg,rgba(127,29,29,.55) 0%,rgba(127,29,29,.52) 20%,rgba(127,29,29,.44) 32%,rgba(127,29,29,.32) 40%,rgba(127,29,29,.18) 45%,rgba(127,29,29,.07) 48%,rgba(0,0,0,0) 50%,rgba(22,101,52,.07) 52%,rgba(22,101,52,.18) 55%,rgba(22,101,52,.32) 60%,rgba(22,101,52,.44) 68%,rgba(22,101,52,.52) 80%,rgba(22,101,52,.55) 100%)}
.inv-bs-rep-row.drawn .inv-bs-rep-bar{background:linear-gradient(90deg,rgba(75,85,99,.45) 0%,rgba(75,85,99,.42) 22%,rgba(75,85,99,.30) 38%,rgba(75,85,99,.14) 48%,rgba(75,85,99,.10) 50%,rgba(75,85,99,.14) 52%,rgba(75,85,99,.30) 62%,rgba(75,85,99,.42) 78%,rgba(75,85,99,.45) 100%)}
.inv-bs-rep-bar:hover{filter:brightness(1.12)}
.inv-bs-rep-half{display:flex;flex-direction:column;gap:6px;min-width:0}
.inv-bs-rep-half.b{align-items:flex-end}
.inv-bs-rep-who{font-family:Rajdhani,sans-serif;font-weight:700;color:#f0f4ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.inv-bs-rep-who .kd{color:#fde68a;font-size:.85em}
.inv-bs-rep-heroes{display:flex;gap:6px}
/* Both sides read in lineup order: pos 0 left, pos 1 middle, pos 2 right. Mirroring B
   put its commander on the right and its third hero on the left, so the two halves of
   the bar disagreed about what the first slot means. */
/* Portrait on top, a small star row UNDER it — the flowers are 18px each, so five of them
   are twice the width of a 46px portrait. They are laid out at full size (the petals inside
   are absolutely positioned at fixed px and cannot be resized by width alone) and then
   scaled down as a block, with the row's height fixed to what the scaled art occupies. */
.inv-bs-rep-hero{position:relative;width:52px;display:flex;flex-direction:column;align-items:center;gap:1px}
.inv-bs-rep-hero .inv-bs-rep-pic{position:relative;width:46px;height:46px}
/* No ring drawn here when the portrait is the game's composited icon: that art
   carries its own rarity disc, and a second border around it read as two rims. */
.inv-bs-rep-hero img{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#0a0f1e;display:block}
.inv-bs-rep-noimg{display:flex;width:46px;height:46px;border-radius:50%;align-items:center;justify-content:center;border:1px dashed rgba(255,255,255,.2);color:#ffffff59}
/* The level the way the game writes it: white, bold, outlined, sitting INSIDE the
   portrait's lower right. It used to be a bordered chip hanging off the edge, which
   broke the circle and read twice the size it should. */
.inv-bs-rep-hero .lv{position:absolute;right:1px;bottom:1px;font-family:Rajdhani,Inter,sans-serif;font-weight:800;font-size:11px;line-height:1;color:#fff;text-shadow:0 0 2px #000,0 1px 2px #000,1px 0 2px #000,-1px 0 2px #000,0 -1px 2px #000}
/* The stars ride a dark strip under the portrait, as they do in the game. The strip
   is sized before the scale, so its padding and radius shrink with the flowers. */
.inv-bs-rep-stars{display:flex;justify-content:center;align-items:flex-start;gap:0;height:17px;overflow:visible;transform:scale(.52);transform-origin:top center;margin-top:-2px;padding:1px 5px;background:rgba(6,10,20,.66);border-radius:999px}
.inv-bs-rep-stars .inv-bs-lp-flower{margin:0 -1px}
.inv-bs-rep-mid{text-align:center;min-width:120px}
.inv-bs-rep-time{font-size:.75em;color:#ffffff8c;font-family:ui-monospace,monospace}
.inv-bs-rep-verdict{font-family:Rajdhani,sans-serif;font-weight:800;letter-spacing:.08em;color:#fde68a;font-size:1.05em}
.inv-bs-rep-ratio{font-family:Rajdhani,sans-serif;font-weight:800;font-size:1.5em;line-height:1.02;letter-spacing:.01em;color:#4ade80;text-shadow:0 0 14px #4ade8059;font-variant-numeric:tabular-nums}.inv-bs-rep-ratio.is-against{color:#f87171;text-shadow:0 0 14px #f8717159}.inv-bs-rep-ratio small{display:block;font-family:Inter,sans-serif;font-weight:600;font-size:.4em;letter-spacing:.14em;text-transform:uppercase;color:#ffffff8c;text-shadow:none;margin-top:3px}
.inv-bs-rep-losses{font-size:.72em;color:#ffffff73;font-family:ui-monospace,monospace}
.inv-bs-rep-sub{display:flex;align-items:center;gap:10px;padding:6px 14px;border-top:1px solid rgba(255,255,255,.06);font-size:.76em;color:#ffffff73;font-family:ui-monospace,monospace}
.inv-bs-rep-sub .grow{flex:1}
.inv-bs-rep-sub button{background:transparent;border:1px solid rgba(255,255,255,.15);color:#ffffffb3;padding:4px 10px;border-radius:6px;cursor:pointer;font-size:12px}
.inv-bs-rep-sub button:hover{border-color:rgba(245,158,11,.45);color:#f0f4ff}
.inv-bs-rep-detail[hidden]{display:none}
.inv-bs-rep-detail{display:block;padding:0 12px 12px;border-top:1px solid rgba(255,255,255,.06)}
/* The in-game bar reads as A | result | B; stacking it on a phone threw that away, so
   the pieces shrink instead of the layout collapsing. Measured at 430px: the bar has
   ~396px of content box, and 3x38 + 2x3 gap = 120 a side leaves the middle 150 — it
   fits with room, where the 52px desktop hero would have needed 168 a side. */
@media(max-width:720px){
  .inv-bs-rep-bar{gap:6px}
  .inv-bs-rep-mid{min-width:0}
  .inv-bs-rep-verdict{font-size:.92em;letter-spacing:.05em}
  .inv-bs-rep-time,.inv-bs-rep-losses{font-size:.66em}
  .inv-bs-rep-ratio{font-size:1.24em}
  .inv-bs-rep-who{font-size:.86em}
  .inv-bs-rep-heroes{gap:3px}
  .inv-bs-rep-hero{width:38px}
  .inv-bs-rep-hero .inv-bs-rep-pic,
  .inv-bs-rep-hero img,
  .inv-bs-rep-noimg{width:34px;height:34px}
  .inv-bs-rep-hero .lv{font-size:9px;right:0;bottom:0}
  .inv-bs-rep-stars{transform:scale(.40)}
}
@media(max-width:380px){
  .inv-bs-rep-hero{width:31px}
  .inv-bs-rep-hero .inv-bs-rep-pic,
  .inv-bs-rep-hero img,
  .inv-bs-rep-noimg{width:28px;height:28px}
  .inv-bs-rep-verdict{font-size:.82em}
  .inv-bs-rep-who{font-size:.78em}
}

/* Shared-report page: the simulator markup is present only so the report renderer has the
   .inv-bs-result it draws into. Everything the visitor did not ask for is hidden here
   instead of maintaining a second, thinner report view that could drift. */
.inv-bs.is-report-only .inv-bs-tabs,
.inv-bs.is-report-only .inv-bs-panel,
.inv-bs.is-report-only .inv-bs-header,
.inv-bs.is-report-only .inv-bs-subtitle,
.inv-bs.is-report-only .inv-bs-quota,
.inv-bs.is-report-only .inv-bs-controls{display:none}
.inv-bs.is-report-only{padding:0;border:0;background:transparent}
/* The site header is sticky, so a shared link that lands mid-page tucked the report bar
   underneath it. Push the anchor down by more than the header's height. */
.inv-bs-rep-shared{margin:0 0 20px;scroll-margin-top:96px}
/* The share page echoes its own <main>, so it never gets the top spacing the theme's page
   wrapper provides — the site header is sticky and was covering the top of the report bar.
   Clear it here rather than inline, so the value lives next to the rest of the page's rules. */
.inv-bs-report-page{max-width:1200px;margin:0 auto;padding:96px 16px 40px}
@media(max-width:782px){.inv-bs-report-page{padding-top:76px}}

/* ── Mobile gutters ───────────────────────────────────────────────────────
   Every layer of the report/loadout stack carried its own side padding, and on a
   430px screen they compounded: page 16 + .inv-bs 16 + detail 12 + result 24 +
   loadout card 14 = 82px per side, i.e. 38% of the viewport spent on gutters
   before a single hero portrait was drawn. Below 768px the outer layers give up
   their padding and only the innermost card keeps a readable inset. */
@media (max-width:768px){
	.inv-bs{padding-left:6px;padding-right:6px}
	.inv-bs-report-page{padding-left:6px;padding-right:6px}
	.inv-bs-report-page .inv-bs{padding-left:0;padding-right:0}
	.inv-bs-result{padding:14px 6px}
	.inv-bs-rep-detail{padding:0 2px 10px}
	.inv-bs-rep-bar{padding:10px 8px}
	.inv-bs-lo-header,
	.inv-bs-lo-buffs{padding-left:9px;padding-right:9px}
	.inv-bs-lo-cmd{padding-left:9px;padding-right:9px}
}

/* ── Tooltips clipped by their own card ───────────────────────────────────
   The JS clamp in battle-sim.js keeps these panels inside the VIEWPORT, but an
   absolutely positioned panel is also clipped by any ancestor with overflow:hidden,
   and .inv-bs-kt-col has it purely to round its corners. On a phone the column's
   right edge sat well inside the clamp's target, so a gear/ring/skill panel opened
   near it was shaved mid-word even though the clamp had "fitted" it.
   .inv-bs-loc-sec already lifts its own clip; this does the same for the column,
   and only while a panel is actually open, so the corner clipping still holds at
   rest. Browsers without :has() simply keep today's behaviour. */
.inv-bs-kt-col:has(
	:is(.inv-bs-loc-gslot,.inv-bs-loc-ring,.inv-bs-loc-adorn-ov,.inv-bs-loc-mount-fig,.inv-bs-loc-skill.has-tip):is(:hover,:focus-within)
),
.inv-bs-kt-col:has(.inv-bs-loc-skill.has-tip.is-open){overflow:visible}

/* ── Report header, in-game shape ─────────────────────────────────────────
   Two sides facing each other with the casualty ratio between them, then the two
   troop columns underneath. The number beside each name is POWER lost, not units:
   units lost x the tier's power (T8 = 8.6), which is what the game prints. */
/* The bar itself is neutral. One gradient across the whole thing meant that once both
   halves carried a banner, all that survived of it were slivers at the outer edges —
   and a sliver belongs to whichever end of the gradient it sits at, not to the side it
   is on, so the loser could show green and the winner red. Each half owns its own
   outcome colour now, so a colour can never end up on the wrong side. */
/* stretch, NOT center: the middle column is the tallest thing in the row, so centring
   left each half only as tall as its own content and its banner ended in a band of
   empty bar above and below. Stretching makes each half fill the row; the content
   inside is still centred by the half's own flex. */
.inv-bs-rp-vs{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:4px;
  border:1px solid rgba(255,255,255,.08);border-radius:10px;overflow:hidden;margin-bottom:12px;
  background:#0d1325}
.inv-bs-rp-vs-side.is-won{background:linear-gradient(90deg,rgba(22,101,52,.58) 0%,rgba(22,101,52,.10) 100%)}
.inv-bs-rp-vs-side.is-lost{background:linear-gradient(90deg,rgba(127,29,29,.58) 0%,rgba(127,29,29,.10) 100%)}
.inv-bs-rp-vs-side.is-draw{background:linear-gradient(90deg,rgba(75,85,99,.48) 0%,rgba(75,85,99,.10) 100%)}
.inv-bs-rp-vs-side.is-b.is-won{background:linear-gradient(270deg,rgba(22,101,52,.58) 0%,rgba(22,101,52,.10) 100%)}
.inv-bs-rp-vs-side.is-b.is-lost{background:linear-gradient(270deg,rgba(127,29,29,.58) 0%,rgba(127,29,29,.10) 100%)}
.inv-bs-rp-vs-side.is-b.is-draw{background:linear-gradient(270deg,rgba(75,85,99,.48) 0%,rgba(75,85,99,.10) 100%)}
/* Under a banner the colour would be covered, so the outcome keeps a thin stripe on
   the outer edge — enough to read won/lost without tinting the artwork. */
.inv-bs-rp-vs-side.has-banner.is-won{box-shadow:inset 4px 0 0 #22c55e}
.inv-bs-rp-vs-side.has-banner.is-lost{box-shadow:inset 4px 0 0 #ef4444}
.inv-bs-rp-vs-side.has-banner.is-draw{box-shadow:inset 4px 0 0 #6b7280}
.inv-bs-rp-vs-side.is-b.has-banner.is-won{box-shadow:inset -4px 0 0 #22c55e}
.inv-bs-rp-vs-side.is-b.has-banner.is-lost{box-shadow:inset -4px 0 0 #ef4444}
.inv-bs-rp-vs-side.is-b.has-banner.is-draw{box-shadow:inset -4px 0 0 #6b7280}
/* The side is now avatar + text, so the column moved down a level into .inv-bs-rp-vs-txt
   and the side itself became the row that carries them. */
.inv-bs-rp-vs-side{display:flex;align-items:center;gap:12px;padding:12px 14px;min-width:0;position:relative;overflow:hidden}
.inv-bs-rp-vs-side.is-b{flex-direction:row-reverse}
.inv-bs-rp-vs-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.inv-bs-rp-vs-side.is-b .inv-bs-rp-vs-txt{align-items:flex-end;text-align:right}
/* The avatar arrives as component markup, so the frame keeps its tuner offsets and its
   data-frame animation hook. A frame scaled above 1 overflows its wrap; clip-path keeps
   the circle and lets the ornament out, as the component asks every new context to do. */
.inv-bs-rp-vs-face{flex-shrink:0;line-height:0;display:inline-flex;position:relative;z-index:2}
.inv-bs-rp-vs-face .inv-avatar-wrap{overflow:visible;clip-path:inset(-18px round 50%)}
/* With a banner the half IS the banner: the verdict gradient is dropped rather than laid
   over it. Only a NEUTRAL black scrim stays, on the side the text sits, so the name and
   the power figure keep contrast without the artwork being tinted. */
/* The banner is MASKED toward the centre rather than stopping at the half boundary.
   A hard vertical edge beside the middle column read as two pictures pasted next to a
   panel; dissolving it means the ratio and the verdict sit on clean ground and the bar
   reads as one object. Solid at the outer edge, gone by the time it reaches the middle. */


/* The banner ARTWORK lives alone on ::before. Both players field the same picture, so the
   right half is MIRRORED to face the left one — the bar then reads as two sides of one
   battle rather than the same image printed twice. The fades had to move off this layer
   for that: a scaleX over a background stack flips the gradients along with the art, which
   would throw the dissolve onto the OUTER edge. They sit on ::after now, untouched. */
.inv-bs-rp-vs-side.has-banner::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:var(--rp-banner);background-size:cover;background-position:center;background-repeat:no-repeat}
.inv-bs-rp-vs-side.is-b.has-banner::before{transform:scaleX(-1)}
/* Dissolve toward the centre + the scrim that keeps the name and power figure readable.
   The scrim is listed FIRST because it used to be the layer above the dissolve. */
.inv-bs-rp-vs-side.has-banner::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background-image:linear-gradient(90deg,rgba(0,0,0,.68) 0%,rgba(0,0,0,.24) 55%,rgba(0,0,0,0) 100%),linear-gradient(90deg,rgba(13,19,37,0) 0%,rgba(13,19,37,0) 70%,rgba(13,19,37,.10) 78%,rgba(13,19,37,.26) 85%,rgba(13,19,37,.44) 90%,rgba(13,19,37,.62) 94%,rgba(13,19,37,.80) 97%,#0d1325 100%)}
.inv-bs-rp-vs-side.is-b.has-banner::after{background-image:linear-gradient(270deg,rgba(0,0,0,.68) 0%,rgba(0,0,0,.24) 55%,rgba(0,0,0,0) 100%),linear-gradient(270deg,rgba(13,19,37,0) 0%,rgba(13,19,37,0) 70%,rgba(13,19,37,.10) 78%,rgba(13,19,37,.26) 85%,rgba(13,19,37,.44) 90%,rgba(13,19,37,.62) 94%,rgba(13,19,37,.80) 97%,#0d1325 100%)}
.inv-bs-rp-vs-side.has-banner .inv-bs-rp-vs-txt{position:relative;z-index:2}
.inv-bs-rp-vs-kd{align-self:flex-start;position:relative;z-index:2;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.62em;letter-spacing:.1em;
  text-transform:uppercase;color:#dbeafe;background:#3b82f659;border:1px solid rgba(147,197,253,.45);border-radius:4px;padding:1px 7px}
.inv-bs-rp-vs-side.is-b .inv-bs-rp-vs-kd{align-self:flex-end;background:#ef444459;border-color:rgba(252,165,165,.45);color:#fee2e2}
.inv-bs-rp-vs-name{font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.05em;letter-spacing:.03em;color:#fde68a;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inv-bs-rp-vs-pw{font-family:Rajdhani,sans-serif;font-weight:700;font-size:1.25em;color:#f87171;white-space:nowrap}
.inv-bs-rp-vs-lu{font-size:.7em;color:#ffffff8c;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inv-bs-rp-vs-mid{display:flex;flex-direction:column;justify-content:center;text-align:center;padding:10px 2px;min-width:0}
.inv-bs-rp-vs-x{font-size:1.3em;color:#fbbf24;line-height:1}
.inv-bs-rp-vs-ratio{font-family:Rajdhani,sans-serif;font-weight:800;font-size:1.15em;color:#fde68a;white-space:nowrap}
.inv-bs-rp-vs-rl{font-size:.56em;letter-spacing:.04em;text-transform:uppercase;color:#ffffff8c;white-space:nowrap}
.inv-bs-rp-vs-verdict{margin-top:5px;font-family:Rajdhani,sans-serif;font-weight:800;letter-spacing:.12em;font-size:.92em}
.inv-bs-rp-vs.is-victory .inv-bs-rp-vs-verdict{color:#4ade80}
.inv-bs-rp-vs.is-defeat .inv-bs-rp-vs-verdict{color:#f87171}
.inv-bs-rp-vs.is-draw .inv-bs-rp-vs-verdict{color:#f59e0b}
.inv-bs-rp-vs-dur{font-size:.68em;color:#ffffff8c;font-family:ui-monospace,monospace;white-space:nowrap}

/* Stacked casualty bar — the four segments are shares of the starting army, so their
   widths always add to 100% and the eye reads the split before the numbers do. */
.inv-bs-rp-bar{display:flex;height:9px;margin:2px 12px 8px;border-radius:999px;overflow:hidden;background:#00000059}
.inv-bs-rp-bar i{display:block;height:100%}
.inv-bs-rp-bar .is-lo{background:#ef4444}
.inv-bs-rp-bar .is-gw{background:#f97316}
.inv-bs-rp-bar .is-lw{background:#f59e0b}
.inv-bs-rp-bar .is-rm{background:#9ca3af}

@media (max-width:720px){
  .inv-bs-rp-vs{gap:4px}
  .inv-bs-rp-vs-side{padding:9px 8px}
  .inv-bs-rp-vs-name{font-size:.88em}
  .inv-bs-rp-vs-pw{font-size:1em}
  .inv-bs-rp-vs-ratio{font-size:.95em}
  .inv-bs-rp-vs-mid{padding:8px 2px}
  .inv-bs-rp-vs-kd{font-size:.56em;padding:1px 5px}
}
.inv-bs-rp-vs-pw{display:flex;align-items:center;gap:5px}
.inv-bs-rp-vs-side.is-b .inv-bs-rp-vs-pw{justify-content:flex-end}
.inv-bs-rp-vs-pwico{width:17px;height:17px;flex-shrink:0;object-fit:contain}
@media (max-width:720px){.inv-bs-rp-vs-pwico{width:14px;height:14px}}

/* ── Loadout gear tiles ───────────────────────────────────────────────────
   Same defect the lineup page had: a fixed-width tile inside repeat(2, 1fr). Grid
   items default to min-width:auto, so the column could not shrink below the tile's
   66px, the pair overflowed its card, and neighbouring tiles ran together. Fluid
   with the 66px kept as a ceiling, so desktop is unchanged. */
.inv-bs-loc-gslot{min-width:0;width:100%}
.inv-bs-loc-gtile{width:100%;max-width:66px}
@media (max-width:720px){
  /* Buy the pair its breathing room back out of the gutters rather than the tiles. */
  .inv-bs-loc-geargrid{gap:5px;padding:6px}
  .inv-bs-loc-gtile-img{height:48px;padding:4px 3px 2px}
  .inv-bs-loc-gslot-lbl{font-size:.46rem;letter-spacing:.06em}
}

/* ── Lineup picker ────────────────────────────────────────────────────────
   March size and troop tier are one decision — how big an army, of what — so they sit
   on one row instead of stacking two labelled fields down the card and pushing the VS
   divider off the fold. Each side reads as a card carrying its own colour, the same
   green/red the loadout headers and the report bar use, so which half you are editing
   is never in doubt. */
.inv-bs-side{flex:1 1 300px;min-width:0;position:relative;overflow:hidden;
  background:linear-gradient(180deg,#131b33,#0d1325);
  border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:14px 15px 16px}
.inv-bs-side::before{content:"";position:absolute;top:0;bottom:0;left:0;width:3px;background:#22c55e}
.inv-bs-side[data-side="b"]::before{background:#ef4444}

/* The chosen lineup is the answer to the field above it, so it reads as a filled chip
   rather than a loose line of grey text. */
.inv-bs-selected{margin-top:9px;font-size:.86em;color:#fde68a;background:#f59e0b14;
  border:1px solid rgba(245,158,11,.26);border-radius:8px;padding:8px 11px;min-height:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.inv-bs-side-nums{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;align-items:end}
.inv-bs-field{min-width:0}
.inv-bs-field .inv-bs-march-label{margin:0 0 5px}
/* Width came from a fixed 140px/90px, which no longer fits a half-width column. */
.inv-bs-field .inv-bs-march,
.inv-bs-field .inv-bs-tier{width:100%}

/* On one column the VS stops being a gap between two halves and becomes a rule between
   them, which is what the eye needs once they are stacked. */
@media (max-width:768px){
  .inv-bs-vs{display:flex;align-items:center;gap:12px;width:100%;font-size:1.5em;margin:2px 0}
  .inv-bs-vs::before,.inv-bs-vs::after{content:"";flex:1;height:1px;background:rgba(245,158,11,.28)}
}

/* The chip's clear button. Only a chip that actually holds a pick gets one — the resting
   em-dash has nothing to clear. */
.inv-bs-selected.has-pick{display:flex;align-items:center;gap:8px;padding-right:6px}
.inv-bs-selected.has-pick strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.inv-bs-selected-x{flex-shrink:0;margin-left:auto;width:22px;height:22px;line-height:1;
  display:grid;place-items:center;background:transparent;border:1px solid rgba(255,255,255,.16);
  border-radius:6px;color:#ffffff8c;font-size:15px;cursor:pointer;padding:0;
  transition:color .15s,border-color .15s,background .15s}
.inv-bs-selected-x:hover,.inv-bs-selected-x:focus-visible{color:#fca5a5;border-color:rgba(239,68,68,.5);background:#ef444414;outline:none}

/* ── Colour by outcome, not by which side of the screen ───────────────────
   The columns were painted from their side: A always green, B always red. So a side
   that lost its whole army still read green while the survivor read red — the one thing
   the colour is supposed to tell you, told backwards. Green is the winner, red the
   loser, grey a draw, wherever they happen to sit. */
.inv-bs-rp-col-hdr.is-won{color:#4ade80;border-bottom-color:#22c55e}
.inv-bs-rp-col-hdr.is-lost{color:#f87171;border-bottom-color:#ef4444}
.inv-bs-rp-col-hdr.is-draw{color:#cbd5e1;border-bottom-color:#94a3b8}
/* The owner's name and avatar open their profile. Only the name is underlined on hover —
   the avatar already reads as a target and an underline under a frame looks like damage. */
.inv-bs-rp-vs-name a{color:inherit;text-decoration:none}
.inv-bs-rp-vs-name a:hover,.inv-bs-rp-vs-name a:focus-visible{text-decoration:underline}
a.inv-bs-rp-vs-face{display:inline-flex;text-decoration:none;transition:transform .15s ease}
a.inv-bs-rp-vs-face:hover,a.inv-bs-rp-vs-face:focus-visible{transform:scale(1.05);outline:none}

/* ── Header bar on a phone ────────────────────────────────────────────────
   The halves are a third of the width they have on a desktop, so a fade tuned there
   swallows most of the banner: the same 58%-to-100% run leaves almost nothing of the
   artwork. It holds nearly to the edge here and fades over a short run instead, and the
   centre gives up width so the two halves — and the names in them — have more to work
   with. */
@media (max-width:720px){
  
  
  .inv-bs-rp-vs-rl{font-size:.54em;letter-spacing:.06em}
  .inv-bs-rp-vs-mid{padding:8px 0}
  .inv-bs-rp-vs{gap:2px}
}
/* The owner's name in a report row opens their profile; the row still expands on a click
   anywhere else in the bar. */
.inv-bs-rep-prof{color:inherit;text-decoration:none}
.inv-bs-rep-prof:hover,.inv-bs-rep-prof:focus-visible{text-decoration:underline;color:#fde68a}

/* ── A skill panel was being painted over by the star row and the icons around it ──
   The panel carried z-index:40, but its ANCHOR — the .inv-bs-loc-skill cell — carried
   only position:relative. Sibling cells are positioned too, so they sit in the same
   painting step and the ones later in the grid came out on top of the open panel;
   the stars and the round skill frames landed across the text.

   Lift the ANCHOR, not just the panel: the cell and its panel then rise as one group
   above every other loadout layer (ring panel 45, gear slot and gear panel 60). This
   is the pattern the loadout already uses for gear — .inv-bs-loc-gslot:hover carries
   the same lift — and the one comparison mode uses; the skill cell was simply never
   given it. Only while the panel is actually open, so nothing moves at rest. */
.inv-bs-loc-skill.has-tip:hover,
.inv-bs-loc-skill.has-tip.is-open{z-index:81}
.inv-bs-loc-skill.has-tip:hover .inv-bs-loc-sk-tip,
.inv-bs-loc-skill.has-tip.is-open .inv-bs-loc-sk-tip{z-index:80}

/* ── Share a report into the Tavern ───────────────────────────────────────────
   Opens under the row it belongs to, so the player is still looking at the fight
   while writing about it. `:not([hidden])` carries the display, never a bare
   `display` on the class — an authored display beats the UA sheet's [hidden] and
   the box would never close. */
.inv-bs-rep-share:not([hidden]){display:flex;flex-direction:column;gap:7px;margin:8px 10px 10px;padding:9px 10px;
	background:#ffffff08;border:1px solid rgba(255,255,255,.09);border-radius:8px}
.inv-bs-rep-share-txt{width:100%;box-sizing:border-box;resize:vertical;min-height:44px;
	background:#0e1626;border:1px solid rgba(255,255,255,.12);border-radius:6px;
	color:#e2e8f0;font:inherit;font-size:.82em;line-height:1.45;padding:7px 9px}
.inv-bs-rep-share-txt:focus{outline:none;border-color:#f59e0b80}
.inv-bs-rep-share-act{display:flex;align-items:center;gap:10px}
.inv-bs-rep-share-msg{flex:1 1 auto;min-width:0;font-size:.72em;color:#8b93b3}
.inv-bs-rep-share-msg.is-ok{color:#86efac}
.inv-bs-rep-share-msg a{color:#fde68a;text-decoration:underline}
.inv-bs-rep-share-go{flex:0 0 auto;background:#f59e0b;color:#000;border:0;border-radius:6px;
	padding:6px 13px;font-family:Rajdhani,sans-serif;font-weight:700;font-size:.82em;
	text-transform:uppercase;letter-spacing:.04em;cursor:pointer}
.inv-bs-rep-share-go:disabled{opacity:.55;cursor:default}

/* ── Result actions ───────────────────────────────────────────────────────────
   Save and Copy link are the only two now — "Copy share link" rebuilt the a=&b=
   query the report link supersedes, and "Copy sim data" was a debugging dump.
   With the row down to two they read as bare text beside the panel, so they get
   the shape the rest of the tool uses: Save leads in amber, the link is the quiet
   one, and the icon is an inline SVG that inherits currentColor rather than an
   emoji that ignores it. */
.inv-bs-result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:14px}
.inv-bs-rep-save,.inv-bs-rep-link{display:inline-flex;align-items:center;gap:7px;
	padding:9px 18px;border-radius:8px;cursor:pointer;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.95em;
	letter-spacing:.04em;text-transform:uppercase;line-height:1;
	transition:background .15s,border-color .15s,color .15s}
.inv-bs-rep-save svg,.inv-bs-rep-link svg{flex:0 0 auto}
.inv-bs-rep-save{background:#f59e0b;color:#0b1120;border:1px solid #f59e0b}
.inv-bs-rep-save:hover{background:#fbbf24;border-color:#fbbf24}
.inv-bs-rep-save.is-done{background:#22c55e1f;border-color:#22c55e73;color:#86efac}
.inv-bs-rep-save:disabled{opacity:.55;cursor:default}
.inv-bs-rep-link{background:transparent;color:#c8cce8;border:1px solid rgba(255,255,255,.16)}
.inv-bs-rep-link:hover{border-color:#f59e0b80;color:#fde68a;background:#f59e0b0f}
@media (max-width:480px){
	.inv-bs-rep-save,.inv-bs-rep-link{flex:1 1 100%;justify-content:center}
}

/* ── History / Saved, inside My Battle Reports ────────────────────────────────
   Two different things: one rolls off as new fights come in, the other is what the
   player chose to keep. Filtered on the client from the list already loaded, so the
   switch is instant and costs no request. */
.inv-bs-rep-subtabs{display:flex;gap:6px;margin:0 0 12px;flex-wrap:wrap;align-items:center}.inv-bs-rep-wipe{margin-left:auto;background:transparent;border:1px solid rgba(248,113,113,.35);color:#f87171;border-radius:7px;padding:5px 12px;font-size:.78em;font-family:inherit;cursor:pointer;transition:background .12s,border-color .12s}.inv-bs-rep-wipe:hover{background:#f871711a;border-color:#f87171}.inv-bs-rep-wipe:disabled{opacity:.5;cursor:default}
.inv-bs-rep-subtab{display:inline-flex;align-items:center;gap:7px;
	background:transparent;border:1px solid rgba(255,255,255,.14);color:#c8cce8;
	padding:7px 15px;border-radius:8px;cursor:pointer;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:.9em;
	letter-spacing:.04em;text-transform:uppercase;line-height:1;
	transition:background .15s,border-color .15s,color .15s}
.inv-bs-rep-subtab:hover{border-color:#f59e0b80;color:#fde68a}
.inv-bs-rep-subtab.is-active{background:#f59e0b;border-color:#f59e0b;color:#0b1120}
.inv-bs-rep-subtab-n{font-size:.78em;font-weight:700;opacity:.75;font-variant-numeric:tabular-nums}
.inv-bs-rep-subtab.is-active .inv-bs-rep-subtab-n{opacity:.7}
@media (max-width:480px){
	.inv-bs-rep-subtab{flex:1 1 0;justify-content:center;padding:8px 10px}
}

/* The circle lives on the <img>, not on its box, so a radiant overlay — which inherits
   its host's radius — came out square over a round portrait. Give the box the same
   radius; nothing else changes, the level badge is not clipped (the box does not hide
   its overflow) and the picture already filled it. */
.inv-bs-rep-pic{border-radius:50%}

/* ── Level and stars, the way the game draws them on a small round card ───────
   The level is not a chip there: it is the number itself, cream on a hard dark edge,
   sitting low on the portrait and overlapping it. The stars are bigger, gold, and
   outlined so they hold against a bright picture.

   The STARS stay exactly as they were. */
.inv-bs-rep-hero .lv{
	right:-1px;bottom:-3px;padding:0;border:0;background:none;border-radius:0;
	font-family:Rajdhani,sans-serif;font-weight:700;font-size:13px;line-height:1;
	color:#fff8e7;letter-spacing:.01em;
	/* ABOVE the radiant halo. That layer carries z-index:1 and is written after the level
	   in the markup, so without this the glow painted straight over the number. */
	z-index:3;
	text-shadow:0 1px 0 #000,0 -1px 0 #000,1px 0 0 #000,-1px 0 0 #000,0 2px 3px #000c}
/* THE STARS ARE NOT TOUCHED (user, 2026-09-07: "yıldızlar kalsın"). They keep the size,
   the spacing and the colours they already had — only the level changed. */

@media (max-width:900px){
	.inv-bs-rep-hero .lv{font-size:11px}
}
@media (max-width:560px){
	.inv-bs-rep-hero .lv{font-size:10px}
}

/* The hero artwork has "Lv.160 ★★★★★" burned into the bottom of the image, and we
   draw our own level and stars right underneath it. Two of them, disagreeing:
   the painted one is whatever level the art was captured at, so a fully levelled
   hero can read "Lv.1" above our correct row.

   Fade the foot of the picture into the card's own ground rather than cropping.
   Cropping means choosing a fixed slice, and the burnt-in text sits at a
   different height in every portrait — some letterboxed by object-fit:contain,
   some cropped by cover — so a slice deep enough for the worst case eats the
   chin off the best one. A gradient just dissolves whatever is down there.

   z-index 1 puts it over the image and under the ring, which sits 36px up from
   the same edge and must stay readable. */
.inv-bs-loc-portrait::after{
	content:"";
	position:absolute;
	left:0; right:0; bottom:0;
	height:26%;
	background:linear-gradient(to top,
		#0a0f1e 0%,
		#0a0f1e 40%,
		rgba(10,15,30,.78) 64%,
		rgba(10,15,30,.34) 84%,
		rgba(10,15,30,0) 100%);
	border-radius:0 0 6px 6px;
	pointer-events:none;
	z-index:1;
}
.inv-bs-loc-ring{ z-index:3; }

/* Level and stars move INTO the faded foot of the portrait. The fade already had
   to darken that strip to kill the burnt-in level; putting our own row there
   reuses the strip instead of spending more height under the card, and it lands
   where the game itself puts it.

   Pulled up by a negative margin rather than positioned absolutely: the row is a
   sibling of the portrait, not a child, so `bottom` would measure from the whole
   card. z-index 4 clears the gradient (1) and the ring (3). */
.inv-bs-loc-lvl{
	position:relative;
	z-index:4;
	margin-top:-2.1rem;
	/* The row is a flex ITEM, so pulling it up dragged everything after it up too —
	   the skill icons ended up clipped against the card edge above them. This gives
	   the height back: the row draws 2.1rem high but reserves (2.1rem − its own
	   22px) below, so its net contribution to the column is zero and the skills sit
	   where they always did. The extra 4px is the clearance those icons were
	   missing. 22px is the star size set below — the two move together. */
	margin-bottom:calc(2.1rem - 22px + 4px);
	padding:0 8px;
	/* Level and stars sit together at the left, not pushed to opposite edges.
	   space-between stretched them across the full card width, which read as two
	   separate things; the game keeps them as one label against the left edge. */
	justify-content:flex-start;
	gap:.34rem;
}

/* Same gold as a lit star — the two read as one label, the way the game sets it.
   Sized up to match the stars beside it: at .82em the number looked like a
   caption under them rather than the other half of the same label. */
.inv-bs-loc-lvl-num{
	color:#f7c948;
	font-size:1.04em;
	letter-spacing:.01em;
	text-shadow:0 1px 3px rgba(0,0,0,.85);
	/* align-items:center centres the text BOX, and a text box carries half-leading
	   above the glyphs — so the number rode high against the stars. line-height:1
	   collapses that, and the 1px nudge answers the star's own geometry: a
	   five-pointed star has a thin top point and a wide base, so its visual weight
	   sits below the middle of its box. */
	line-height:1;
	position:relative;
	top:1px;
}

/* A touch larger now that they sit on the artwork and not on flat card ground —
   but 22px is a CEILING, not a fixed size. `flex:0 0 22px` refused to shrink, so
   on a narrow card (the comparison view puts six of these across, whatever the
   window width) the row ran past the card and into its neighbour. The stars now
   give way first, and the petals are sized in PERCENTAGES of the flower so they
   scale with it instead of bursting out of a smaller box. Percentage margins
   resolve against width, and the flower is square, so the geometry holds. */
.inv-bs-loc-lvl .inv-bs-lp-flower{
	width:22px; height:auto; aspect-ratio:1;
	flex:0 1 22px;
	min-width:0;
}
.inv-bs-loc-lvl .inv-bs-lp-petal{
	width:29%; height:39%; margin:-39% 0 0 -14.5%;
}

/* Whatever is left after the stars have given way, the row keeps to itself: a
   card must never draw over the one beside it. The number holds its ground
   first — a clipped level is worse than a slightly smaller star. */
.inv-bs-loc-lvl{
	overflow:hidden;
	/* The row is a flex item AND sits in a grid card; without these it can size to
	   its content and push past the card rather than clipping inside it. */
	min-width:0;
	max-width:100%;
}
.inv-bs-loc-lvl .inv-bs-loc-lvl-num{ flex:0 0 auto; white-space:nowrap; }
.inv-bs-loc-lvl .inv-bs-loc-stars{ min-width:0; overflow:hidden; }

/* =============================================================================
   Batch runs (Warlord) — twenty simulations, summarised.
   ============================================================================= */
.inv-bs-run20{
	margin-left:8px;
	background:linear-gradient(180deg,#1e293b,#0f172a);
	border:1px solid rgba(245,158,11,.45);
	color:#f7c948;
	border-radius:8px;
	padding:10px 16px;
	font-family:Rajdhani,sans-serif;font-weight:700;letter-spacing:.02em;
	cursor:pointer;
	transition:border-color .15s,transform .1s;
}
.inv-bs-run20:hover:not(:disabled){border-color:#f59e0b;transform:translateY(-1px)}
.inv-bs-run20:disabled{opacity:.55;cursor:progress}

.inv-bs-batch{margin-top:10px}

/* Progress reads truthfully because the runs are sequential — the bar is runs
   finished, not an animation standing in for one. */
.inv-bs-batch-prog{height:6px;background:#0b1220;border-radius:3px;overflow:hidden}
.inv-bs-batch-prog span{display:block;height:100%;background:linear-gradient(90deg,#f59e0b,#fbbf24);transition:width .25s}

.inv-bs-batch-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;font-family:Rajdhani,sans-serif}
.inv-bs-batch-wins{display:flex;gap:8px}
.inv-bs-batch-wins i{font-style:normal;font-weight:700;padding:2px 9px;border-radius:999px;font-size:.82rem}
.inv-bs-batch-wins .is-a{background:#22c55e24;color:#4ade80;border:1px solid #22c55e50}
.inv-bs-batch-wins .is-b{background:#ef444424;color:#f87171;border:1px solid #ef444450}

.inv-bs-batch-tbl{width:100%;border-collapse:collapse;font-size:.82rem;font-variant-numeric:tabular-nums}
.inv-bs-batch-tbl th,.inv-bs-batch-tbl td{padding:5px 8px;border-bottom:1px solid rgba(255,255,255,.06);text-align:right}
.inv-bs-batch-tbl th:first-child,.inv-bs-batch-tbl td:first-child{text-align:left;color:#cbd5e1}
.inv-bs-batch-tbl th{color:#94a3b8;font-weight:600;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em}
/* min/max sutunlari eklenince tablo 5 sutuna cikti; dar ekranda sikismasin diye
   dolgu daralir ve gerekirse tablo KENDI icinde yatay kayar (sayfa govdesi kaymaz). */
.inv-bs-batch-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
/* BATCH RUNS sekmesi — kosular My Battle Reports kartinin AYNISINI kullanir
   (inv-bs-rep-*), o yuzden burada sadece batch'e ozgu iki parca var: ortalama
   secim kutusu ve acilan govdenin dolgusu. */
.inv-bs-batchpanel .inv-bs-batch{margin-top:14px}
.inv-bs-batch-hint{color:#94a3b8;font-size:.85rem;margin:6px 0 0}
.inv-bs-batchpanel .inv-bs-rep-sub .inv-bs-batch-pick{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#cbd5e1;font-size:.78rem}
.inv-bs-batchpanel .inv-bs-rep-sub .inv-bs-batch-pick input{margin:0;cursor:pointer}
.inv-bs-batchpanel .inv-bs-rep-detail{padding:12px 14px}
.inv-bs-batchpanel .inv-bs-rep-row.is-open{border-color:rgba(245,158,11,.35)}
/* Kosu listesi eskiden 320px'lik kaydirilabilir bir kutuydu ve satirlar kompakt
   <details> ozetleriydi. Tam rapor karti oraya SIGMAZ: flex sutununda 20 kart o
   yuksekligi paylasmak icin buzulup ~13px'e iniyor ve icerik gorunmez oluyordu.
   Kendi sekmesinde sinir gereksiz — sayfa zaten kayiyor, kartlar dogal boyunda. */
.inv-bs-batchpanel .inv-bs-batch-runs{max-height:none;overflow:visible;gap:12px;margin-top:14px}
.inv-bs-batchpanel .inv-bs-batch-runs>.inv-bs-rep-row{flex:0 0 auto}


@media (max-width:480px){
	.inv-bs-batch-tbl{font-size:.76rem}
	.inv-bs-batch-tbl th,.inv-bs-batch-tbl td{padding:5px 4px}
	.inv-bs-batch-tbl th{font-size:.66rem;letter-spacing:.02em}
}

.inv-bs-batch-runs{margin-top:10px;display:flex;flex-direction:column;gap:3px;max-height:320px;overflow-y:auto}
.inv-bs-batch-run{background:#0b122099;border:1px solid rgba(255,255,255,.06);border-radius:6px}
.inv-bs-batch-run>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;padding:6px 10px;font-size:.8rem}
.inv-bs-batch-run>summary::-webkit-details-marker{display:none}
.inv-bs-batch-n{color:#64748b;min-width:2.2em}
.inv-bs-batch-w{font-weight:700}
.inv-bs-batch-w.is-a{color:#4ade80}
.inv-bs-batch-w.is-b{color:#f87171}
.inv-bs-batch-d{margin-left:auto;color:#cbd5e1;font-variant-numeric:tabular-nums}
.inv-bs-batch-s{color:#475569;font-size:.72rem;font-variant-numeric:tabular-nums}

.inv-bs-batch-err{padding:10px 12px;border:1px solid rgba(248,113,113,.4);background:#ef444414;border-radius:8px;color:#fca5a5;font-size:.84rem}

/* Stop button — only exists while a batch is running. */
.inv-bs-run20-stop{
	margin-left:6px;
	background:#1a1020;
	border:1px solid rgba(248,113,113,.5);
	color:#fca5a5;
	border-radius:8px;
	padding:10px 14px;
	font-family:Rajdhani,sans-serif;font-weight:700;
	cursor:pointer;
}
.inv-bs-run20-stop:hover:not(:disabled){border-color:#f87171}
.inv-bs-run20-stop:disabled{opacity:.5;cursor:default}

/* The locked variant reuses the lock treatment the speed controls use, so it
   reads as the same kind of thing rather than a broken button. */
.inv-bs-run20.is-locked{opacity:.5;cursor:not-allowed;filter:saturate(.5)}
.inv-bs-run20.is-locked .inv-bs-lock-badge{width:15px;height:15px;vertical-align:-2px;margin-right:5px}

/* Per-run detail, shaped like the report: troops first, then heroes. */

/* Per-hero detail inside a batch run — the two tables the ordinary report opens
   with, so a run can be read without leaving the panel: the damage CHANNELS
   (STATISTICS tab) and the per-skill casts/damage (DETAILS tab). Kept quiet on
   purpose: twenty of these stack down the page, so the hero name is the only
   thing that carries weight and everything under it reads as supporting figures. */

@media (max-width:640px){
	/* One side per row on a phone: side by side the skill tables squeeze to a few
	   characters and the numbers wrap mid-figure. */
}

/* Selection + averaging across runs. */
.inv-bs-batch-row{display:flex;align-items:flex-start;gap:6px}
.inv-bs-batch-row .inv-bs-batch-run{flex:1 1 auto;min-width:0}
.inv-bs-batch-pick{display:flex;align-items:center;padding:8px 2px 0 4px}
.inv-bs-batch-pick input{accent-color:#f59e0b;cursor:pointer}
.inv-bs-batch-open{margin-left:8px;background:transparent;border:1px solid rgba(245,158,11,.4);color:#f7c948;border-radius:5px;padding:2px 8px;font-size:.7rem;cursor:pointer;white-space:nowrap}
.inv-bs-batch-open:hover{border-color:#f59e0b;background:#f59e0b14}

.inv-bs-batch-avgbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08)}
.inv-bs-batch-avgbar label{display:flex;align-items:center;gap:6px;font-size:.78rem;color:#cbd5e1;cursor:pointer}
.inv-bs-batch-avgbar input{accent-color:#f59e0b;cursor:pointer}
.inv-bs-batch-avg{background:linear-gradient(180deg,#1e293b,#0f172a);border:1px solid rgba(245,158,11,.45);color:#f7c948;border-radius:7px;padding:7px 14px;font-family:Rajdhani,sans-serif;font-weight:700;cursor:pointer}
.inv-bs-batch-avg:hover{border-color:#f59e0b}

.inv-bs-batch-avgout:not(:empty){margin-top:10px;padding:10px;background:#0b122099;border:1px solid rgba(255,255,255,.07);border-radius:8px}
.inv-bs-batch-avg-head{font-family:Rajdhani,sans-serif;font-weight:700;color:#f7c948;margin-bottom:8px}
/* The name column had max-width:0, which collapsed every skill to "Flyi…". A skill
   you cannot name is not a reading — let the column take the width it needs and let
   the numeric columns hold theirs. */

/* Run rows read like report cards: scoreline first, small print after. */
.inv-bs-batch-run{background:#0f172a99}
.inv-bs-batch-run>summary{gap:8px;padding:8px 10px}
.inv-bs-batch-w{min-width:1.4em;text-align:center;border-radius:4px;padding:1px 5px;font-size:.74rem}
.inv-bs-batch-w.is-a{background:#22c55e1f;border:1px solid #22c55e45}
.inv-bs-batch-w.is-b{background:#ef44441f;border:1px solid #ef444445}
.inv-bs-batch-score{display:flex;align-items:baseline;gap:4px;font-variant-numeric:tabular-nums;font-size:.82rem}
.inv-bs-batch-score b{font-weight:600;color:#64748b}
.inv-bs-batch-score b.is-win{font-weight:800}
.inv-bs-batch-score b.is-a.is-win{color:#4ade80}
.inv-bs-batch-score b.is-b.is-win{color:#f87171}
.inv-bs-batch-score u{text-decoration:none;color:#334155}
.inv-bs-batch-wins i{display:inline-flex;align-items:center;gap:6px;max-width:16rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inv-bs-batch-wins i b{font-weight:800;opacity:.85}
.inv-bs-batch-wins i u{text-decoration:none;font-weight:800}
.inv-bs-batch-tbl td b.is-a{color:#4ade80}
.inv-bs-batch-tbl td b.is-b{color:#f87171}

/* ── Averaged report marker ────────────────────────────────────────────────
   A mean of twenty runs paints as an ordinary battle report, so it is banded
   above the report to say what it is. Deliberately loud: mistaking an average
   for a single battle is the one way this feature can mislead. */
.inv-bs-avg-mark{display:flex;flex-direction:column;gap:3px;margin:0 0 12px;padding:11px 14px;border:1px solid rgba(139,92,246,.45);border-left:3px solid #8b5cf6;border-radius:8px;background:rgba(139,92,246,.1)}
.inv-bs-avg-mark b{font-family:Rajdhani,sans-serif;font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#c4b5fd}
.inv-bs-avg-mark span{font-size:.75rem;color:var(--inv-text-muted,#6b7494);line-height:1.45}

/* Each batch run is a saved report in its own right; this opens it on its own
   page. Sits next to "Full report ›", which paints it in place instead. */
.inv-bs-batch-link{font-size:.7rem;font-weight:700;text-decoration:none;color:var(--inv-text-muted,#6b7494);border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:3px 9px;margin-right:6px;white-space:nowrap;transition:color .2s,border-color .2s}
.inv-bs-batch-link:hover{color:#f59e0b;border-color:rgba(245,158,11,.5)}

/* ── Battle Engine tab bar ────────────────────────────────────────────────────
   Underlined text tabs, the same idiom as the Heroes sub-nav. The buttons keep
   .inv-bs-tab because five selectors across three files bind to it, so the pill
   look it carries is undone here rather than by renaming the hook. Two of the
   seven tabs are pages of their own and are <a>, which has to sit on the same
   baseline as the buttons and lose its link decoration. */
/* The bar carries its own dark wash so it separates from whatever is under it. On My
   Heroes that is a playing backdrop, and a transparent bar let the video run straight
   through the tab labels.
   ⚠ A wash, not a backdrop-filter: filter and backdrop-filter make a containing block,
   and the page's backdrop video is position:fixed -- putting one on an ancestor would
   drop it back into the flow. The bar is a sibling here, but the next person to reach
   for blur should know why it is not used. */
.inv-be-tabs { display: flex; align-items: center; gap: 0; flex-wrap: nowrap;
	overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
	background: rgba(6,10,20,0.28);
	border-bottom: 1px solid rgba(255,255,255,0.09); }
.inv-be-tabs::-webkit-scrollbar { display: none; }

.inv-be-tabs .inv-bs-tab { position: relative; display: inline-block;
	background: none; border: 0; border-radius: 0; padding: 0.6rem 1rem;
	font-family: Rajdhani, sans-serif; font-size: 0.72rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.35;
	color: #6b7494; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: color 0.15s; }
.inv-be-tabs .inv-bs-tab:hover { background: none; border-color: transparent; color: #c8cce8; text-decoration: none; }
.inv-be-tabs .inv-bs-tab.is-active { background: none; border-color: transparent; color: #f59e0b; }
.inv-be-tabs .inv-bs-tab.is-active::after { content: ""; position: absolute; bottom: 0;
	left: 0.75rem; right: 0.75rem; height: 2px; border-radius: 2px 2px 0 0; background: #f59e0b; }

/* The game's menu icon before the label (icon_n_hudxin_*): dimmed and desaturated on
   an idle tab, full gold on the lit one and on hover. */
.inv-be-tabs .inv-bs-tab.has-icon { display: inline-flex; align-items: center; gap: 0.3rem; padding-left: 0.45rem; padding-right: 0.5rem; }
.inv-be-tabs .inv-be-tab__i { display: block; height: 24px; width: auto; max-width: none; flex: none;
	opacity: 0.55; filter: saturate(0.5); transition: opacity 0.15s, filter 0.15s; }
.inv-be-tabs .inv-bs-tab:hover .inv-be-tab__i,
.inv-be-tabs .inv-bs-tab.is-active .inv-be-tab__i { opacity: 1; filter: none; }

/* Outside the simulator the bar is the page's own masthead, so it carries the same
   gutter the simulator gives it and clears the fixed site header. */
/* Clearance is read from the header itself, never guessed: --inv-header-h already
   carries the safe-area inset, which is what a standalone (installed) window adds at the
   top. A fixed 100px matched the browser and slid the bar under the header in the app. */
.inv-be-tabs--page { max-width: 1200px; margin: 0 auto 22px;
	padding: calc(var(--inv-header-h, 64px) + 36px) 16px 0; }
@media (max-width: 640px) { .inv-be-tabs--page { padding-top: calc(var(--inv-header-h, 64px) + 20px) } }
.inv-be-tabs--inline { margin: 0 0 20px; }

/* ── "Refreshed from My Heroes" ───────────────────────────────────────────────
   The lineup record was rewritten, permanently, before this page drew. That is
   what the owner asked for, and it is still a change the player did not press a
   button for — so it says so, once, where they are about to use the result. */
.inv-bs-synced-note{
	margin:0 0 14px;padding:9px 12px;border-radius:9px;
	background:linear-gradient(180deg,rgba(34,197,94,.14),rgba(34,197,94,.05));
	border:1px solid rgba(34,197,94,.34);
	color:#d7f5e3;font-size:.85rem;line-height:1.45}
.inv-bs-synced-note strong{color:#86efac;font-weight:700}

/* ── The report-level tabs ────────────────────────────────────────────────────
   This fight, then the two lists of past ones. They sit above the report rather
   than in the page's top bar, because all three answer the same question — which
   battle report am I reading — while the tabs up there are whole other screens.

   Drawn as a quiet underlined strip, not as the top bar's filled pills: a second
   row of pills reads as a second navigation and competes with the first. The
   buttons keep .inv-bs-tab because showPanel() binds to it, so every rule here
   has to out-specify the pill it inherits. */
.inv-bs-rtabs{display:flex;flex-wrap:wrap;align-items:center;gap:2px;
  margin:26px 0 16px;border-bottom:1px solid rgba(255,255,255,.09)}
.inv-bs-tab.inv-bs-rtab{background:transparent;border:0;border-radius:0;
  border-bottom:2px solid transparent;margin-bottom:-1px;padding:9px 15px;
  color:#8c97b4;font-size:.92em;letter-spacing:.05em}
.inv-bs-tab.inv-bs-rtab:hover{background:transparent;border-color:transparent;
  border-bottom-color:rgba(245,158,11,.45);color:#fde68a}
.inv-bs-tab.inv-bs-rtab.is-active{background:transparent;color:#f59e0b;
  border-color:transparent;border-bottom-color:#f59e0b}
/* The shared-report page keeps the simulator markup only for the renderer to draw
   into, so navigation of any kind is out of place there. */
.inv-bs.is-report-only .inv-bs-rtabs{display:none}
@media(max-width:520px){
  .inv-bs-tab.inv-bs-rtab{padding:8px 10px;font-size:.84em;letter-spacing:.02em}
}


/* ── Composited hero icon ────────────────────────────────────────────────────
   LAST in the file on purpose. `.inv-bs-rep-hero .lv` is defined twice above --
   once with the strip and once again, much further down, with the big outlined
   number -- so a rule for the icon placed next to either of them is one edit
   away from losing. Here it cannot.

   The icon carries its own furniture: the rarity disc, the plate under the
   portrait, the star row. The row draws none of that; it only writes the level
   over the diamond the icon leaves empty, at the diamond's measured centre --
   INVICTUS_HERO_ICON_LEVEL_POS in includes/invictus-hero-card.php. */
.inv-bs-rep-hero.has-icon{width:46px}
.inv-bs-rep-hero.has-icon .inv-bs-rep-pic{width:46px;height:auto;border-radius:0}
.inv-bs-rep-hero.has-icon img{width:46px;height:auto;border-radius:0;background:none;border:0}

.inv-bs-rep-hero.has-icon .lv{
	left:80.2%;top:65.5%;right:auto;bottom:auto;
	transform:translate(-50%,-50%);
	font-family:Rajdhani,Inter,sans-serif;font-weight:600;font-size:10px;line-height:1;
	color:#fff;letter-spacing:.01em;
	text-shadow:0 1px 2px rgba(0,0,0,.85);
	z-index:3}

@media(max-width:900px){
	.inv-bs-rep-hero.has-icon,
	.inv-bs-rep-hero.has-icon .inv-bs-rep-pic,
	.inv-bs-rep-hero.has-icon img{width:34px}
	.inv-bs-rep-hero.has-icon .inv-bs-rep-pic,
	.inv-bs-rep-hero.has-icon img{height:auto}
	.inv-bs-rep-hero.has-icon .lv{font-size:8px}
}

/* With an icon the lit bar runs under the icon AND the label, straight-cut (user
   2026-11-07: under the label only left the icon looking unselected). */
.inv-be-tabs .inv-bs-tab.has-icon.is-active::after { left: 0.45rem; right: 0.5rem; border-radius: 0; }
.inv-themed .inv-be-tabs .inv-bs-tab.has-icon.is-active::after { background: var(--profile-accent); }
.inv-be-tabs .inv-bs-tab.has-icon.is-active .inv-be-tab__t::after { display: none; }
.inv-be-tabs .inv-be-tab__t { position: relative; align-self: stretch; display: flex; align-items: center; }
.inv-be-tabs .inv-bs-tab.has-icon.is-active .inv-be-tab__t::after { content: ""; position: absolute;
	left: 0; right: 0; bottom: calc(-0.6rem); height: 2px; background: #f59e0b; }
.inv-themed .inv-be-tabs .inv-bs-tab.has-icon.is-active .inv-be-tab__t::after { background: var(--profile-accent); }

/* Live sim: each hero is drawn with OUR card (the markup the COMPARISON uses, from the
   loadout's card_html). A skill cast shows on the CASTER's own card -- its icon blooms in
   the middle of the card and its name stands in for the hero's name for 1.5s -- so three
   heroes casting at once never stack on one spot. user 2026-11-09 */
.inv-bs-lh-card{width:100%;position:relative;container-type:inline-size}
.inv-bs-lh-card .inv-hsc{width:100%}
.inv-bs-lh.is-lead .inv-bs-lh-card{box-shadow:0 0 0 2px #f59e0b,0 0 12px #f59e0b73}
.inv-themed .inv-bs-lh.is-lead .inv-bs-lh-card{box-shadow:0 0 0 2px var(--profile-accent),0 0 12px rgba(var(--profile-accent-rgb),.45)}
.inv-bs-cast-ic{position:absolute;left:50%;top:42%;width:46%;aspect-ratio:1;object-fit:contain;z-index:6;pointer-events:none;
	transform:translate(-50%,-50%);filter:drop-shadow(0 3px 8px rgba(0,0,0,.75)) drop-shadow(0 0 10px rgba(255,214,120,.55));
	animation:inv-bs-cast 1.5s ease-out forwards}
.inv-bs-cast-ic.is-crit{filter:drop-shadow(0 3px 8px rgba(0,0,0,.75)) drop-shadow(0 0 14px rgba(255,90,60,.85))}
@keyframes inv-bs-cast{0%{opacity:0;transform:translate(-50%,-50%) scale(.55)}14%{opacity:1;transform:translate(-50%,-50%) scale(1.12)}26%{transform:translate(-50%,-50%) scale(1)}78%{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-50%) scale(1.06)}}
.inv-bs-lh-name.is-cast,.inv-themed .inv-bs-lh .inv-bs-lh-name.is-cast{color:#ffd77a!important;text-transform:uppercase;letter-spacing:.02em}

/* Challenge Lineups as the builder's preset panel (preset-panel.css), smaller: three
   across on desktop, two on tablet, one on phones. .inv-pz is the full-screen preset
   menu there -- here it is only the scope the panel rules hang on. user 2026-11-09 */
.inv-bs-ch-grid:has(.inv-pz){grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));gap:12px}
.inv-bs-ch-card.inv-pz.is-inline{position:static;inset:auto;z-index:auto;display:block;padding:0;border:0;border-radius:0;background:none;gap:0}
.inv-bs-ch-card.inv-pz .inv-bs-ch-fav{position:absolute;left:calc(var(--u) * 30);top:calc(var(--u) * 2);width:calc(var(--u) * 60);height:calc(var(--u) * 60);
	margin:0;padding:0;border:0;border-radius:0;background:none;cursor:pointer;color:#6b7280;font-size:calc(var(--u) * 48);line-height:1}
.inv-bs-ch-card.inv-pz .inv-bs-ch-fav.is-on{color:#f2d27c}
.inv-bs-ch-card.inv-pz .inv-pz__chip-t{width:calc(var(--u) * 300)}
.inv-bs-ch-card.inv-pz .inv-bs-ch-who{position:absolute;left:calc(var(--u) * 30);bottom:calc(var(--u) * 30);max-width:calc(var(--u) * 250);
	display:flex;flex-direction:column;gap:calc(var(--u) * 4);font:500 calc(var(--u) * 26)/1.15 'Rajdhani',sans-serif;overflow:hidden}
.inv-bs-ch-card.inv-pz .inv-bs-ch-who > *{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv-bs-ch-card.inv-pz .inv-bs-ch-owner{color:#9cc3ff}
.inv-bs-ch-card.inv-pz .inv-bs-ch-kingdom{color:#8f9ab3}
.inv-bs-ch-card.inv-pz .inv-bs-ch-tag{align-self:flex-start;font-size:calc(var(--u) * 18);border-radius:0}
/* the game's white (Import) and gold (Apply) plates: m_Btn2GLWhite right 294 / m_Btn2GLYellow right 30 */
.inv-bs-ch-card.inv-pz .inv-bs-ch-pick{position:absolute;bottom:calc(var(--u) * 36);width:calc(var(--u) * 246);height:calc(var(--u) * 54);flex:none;
	padding:0;border-radius:0;border-style:solid;border-width:0;cursor:pointer;font:700 calc(var(--u) * 28)/1 Georgia,'Times New Roman',serif;letter-spacing:0}
.inv-bs-ch-card.inv-pz .inv-bs-ch-pa{right:calc(var(--u) * 294);border-image:url("../images/game-icons/btn-plate-stone.webp") 30 fill / calc(var(--u) * 14) stretch;color:#2a2f3a;background:none}
.inv-bs-ch-card.inv-pz .inv-bs-ch-pb{right:calc(var(--u) * 30);border-image:url("../images/game-icons/btn-plate-gold.webp") 30 fill / calc(var(--u) * 14) stretch;color:#2a1c05;background:none}
.inv-bs-ch-card.inv-pz .inv-bs-ch-pick:hover{filter:brightness(1.07)}
/* owner on ONE line in the bottom strip, level with the two buttons -- three stacked lines
   climbed onto the first hero's mount band. */
.inv-bs-ch-card.inv-pz .inv-bs-ch-who{bottom:calc(var(--u) * 44);height:calc(var(--u) * 46);max-width:calc(var(--u) * 240);flex-direction:row;align-items:center;gap:calc(var(--u) * 10)}
.inv-bs-ch-card.inv-pz .inv-bs-ch-who > a,.inv-bs-ch-card.inv-pz .inv-bs-ch-who > .inv-bs-ch-owner{flex:0 1 auto;min-width:0}
.inv-bs-ch-card.inv-pz .inv-bs-ch-kingdom{flex:0 0 auto}
.inv-bs-ch-card.inv-pz .inv-bs-ch-tag{align-self:center;flex:0 0 auto}
/* Owner at the panel's top-left, beside the star: photo + name (user 2026-11-09).
   The bottom strip keeps kingdom / YOU / HIDDEN only. */
.inv-bs-ch-card.inv-pz .inv-bs-ch-by{position:absolute;left:calc(var(--u) * 96);top:calc(var(--u) * 4);height:calc(var(--u) * 56);
	max-width:calc(var(--u) * 245);display:flex;align-items:center;gap:calc(var(--u) * 12);z-index:3;
	color:#e8edf5;text-decoration:none;font-family:Rajdhani,sans-serif;font-weight:700;font-size:calc(var(--u) * 30);line-height:1;min-width:0}
.inv-bs-ch-card.inv-pz .inv-bs-ch-by > :first-child:not(.inv-bs-ch-by-n){flex:0 0 auto}
.inv-bs-ch-card.inv-pz .inv-bs-ch-by-n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.inv-bs-ch-card.inv-pz a.inv-bs-ch-by:hover .inv-bs-ch-by-n{color:#9cc3ff}
/* Header, user 2026-11-09: owner (photo | name over ERA tag) takes the left, taller;
   the name chip widens to the left and carries the favourite star at its right end. */
.inv-bs-ch-card.inv-pz .inv-pz__chip{width:calc(var(--u) * 470)}
.inv-bs-ch-card.inv-pz .inv-pz__chip-t{left:calc(var(--u) * 100);width:auto;right:calc(var(--u) * 70);transform:translateY(-50%)}
.inv-bs-ch-card.inv-pz .inv-pz__chip .inv-bs-ch-fav{left:auto;right:calc(var(--u) * 6);top:50%;transform:translateY(-50%);
	width:calc(var(--u) * 56);height:calc(var(--u) * 56);font-size:calc(var(--u) * 44)}
.inv-bs-ch-card.inv-pz .inv-bs-ch-by{left:calc(var(--u) * 30);top:calc(var(--u) * 0);height:calc(var(--u) * 88);max-width:calc(var(--u) * 305);gap:calc(var(--u) * 14)}
.inv-bs-ch-card.inv-pz .inv-bs-ch-by-t{display:flex;flex-direction:column;align-items:flex-start;gap:calc(var(--u) * 6);min-width:0}
.inv-bs-ch-card.inv-pz .inv-bs-ch-by-n{max-width:100%;font-size:calc(var(--u) * 30)}
/* the profile's kingdom tag (profile.css .inv-alliance-tag), sized to the panel */
.inv-bs-ch-card.inv-pz .inv-bs-ch-era{background:#f59e0b1a;border:1px solid rgba(245,158,11,.25);color:#f59e0b;
	font-family:Rajdhani,sans-serif;font-weight:600;letter-spacing:.08em;
	font-size:calc(var(--u) * 21);line-height:1.3;padding:0 calc(var(--u) * 12);border-radius:0;
	max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Side A / Side B no longer wear the green/red edge stripe (user 2026-11-09). */
.inv-bs-side::before{content:none!important;display:none!important}

/* ── Picked lineup + search list as the builder's preset panel (user 2026-11-10) ──
   The picked lineup sits right under the search: title chip with the remove (×), the
   three hero cards, the march foot in the panel's base. Search results are the same
   panel, so the comps read at a glance. */
.inv-bs-picked.inv-pz.is-inline,.inv-bs-rescard.inv-pz.is-inline{position:static;inset:auto;z-index:auto;display:block;padding:0;border:0;border-radius:0;background:none;gap:0}
.inv-bs-side.has-preset .inv-bs-selected{display:none}
/* bs-quick-lineup.css hides the old picked cards (2026-11-07); the preset panel is the new pick view. */
.inv-bs .inv-bsq-cards:has(.inv-bs-picked){display:block!important;margin-top:8px}
.inv-bs-picked .inv-pz__chip,.inv-bs-rescard .inv-pz__chip{width:calc(var(--u) * 560)}
.inv-bs-picked .inv-pz__chip-t,.inv-bs-rescard .inv-pz__chip-t{left:calc(var(--u) * 100);right:calc(var(--u) * 74);width:auto;transform:translateY(-50%)}
.inv-bs .inv-bs-picked .inv-bs-selected-x{position:absolute;right:calc(var(--u) * 10);top:50%;transform:translateY(-50%);width:calc(var(--u) * 62);height:calc(var(--u) * 62);margin:0;padding:0}
.inv-bs .inv-bs-picked .inv-bs-selected-x:hover{transform:translateY(-50%) scale(1.08)}
.inv-bs-picked .inv-bsq-foot{position:absolute;left:calc(var(--u) * 30);right:calc(var(--u) * 30);bottom:calc(var(--u) * 36);height:calc(var(--u) * 58);margin:0;
	padding:0 calc(var(--u) * 18);border-radius:0;background:rgba(8,12,20,.72);border:1px solid rgba(242,210,124,.25);gap:calc(var(--u) * 16)}
.inv-bs-picked .inv-bsq-foot__troops{font-size:calc(var(--u) * 28)}
.inv-bs-picked .inv-bsq-foot__troops img{width:calc(var(--u) * 30);height:calc(var(--u) * 30);flex-basis:calc(var(--u) * 30)}
.inv-bs-picked .inv-bsq-foot__merc{font-size:calc(var(--u) * 26)}
.inv-bs-picked .inv-bsq-foot__merc img{width:calc(var(--u) * 40);height:calc(var(--u) * 40);flex-basis:calc(var(--u) * 40);border-radius:0}
.inv-bs-picked .inv-bsq-foot__tier{font-size:calc(var(--u) * 24)}
.inv-bs-picked .inv-bsq-foot{display:flex;align-items:center;justify-content:space-between;overflow:hidden;white-space:nowrap;color:#eef1f5}
.inv-bs-picked .inv-bsq-foot__troops,.inv-bs-picked .inv-bsq-foot__merc{display:inline-flex;align-items:center;gap:calc(var(--u) * 10);min-width:0;line-height:1}
.inv-bs-picked .inv-bsq-foot__merc{overflow:hidden;text-overflow:ellipsis}
.inv-bs-picked .inv-bsq-foot__tier{flex:none;margin-right:calc(var(--u) * 4);font-family:Georgia,'Times New Roman',serif;color:#f3d27a}

/* ── The side's troop = the game's THE MIGHTIEST TROOP panel (user 2026-11-11) ──────────
   No preset frame and its ornaments: a plain slate box, the troop name on a grey bar
   (the remove diamond at its right, where the game has the quill), the three cards with
   their two chosen skills and the mount card (no commander/signature rows), and the
   march foot as two plates -- troops, then tier + soldier on the chevron plate. Empty,
   it is the same box with the "+" slots, so the side never changes height. */
.inv-bs-troop .inv-pz__pi{aspect-ratio:auto;display:flex;flex-direction:column;gap:calc(var(--u) * 16);
	padding:calc(var(--u) * 24);background:#1c2029;border:1px solid #363c48;box-shadow:inset 0 0 0 1px #12151b}
.inv-bs-troop__name{position:relative;display:flex;align-items:center;height:calc(var(--u) * 70);padding:0 calc(var(--u) * 90) 0 calc(var(--u) * 26);
	background:linear-gradient(180deg,#454a54,#373b44);border:1px solid #50555f}
.inv-bs-troop .inv-bs-troop__name .inv-pz__chip-t{position:static;transform:none;width:auto;min-width:0;
	font:500 calc(var(--u) * 38)/1.1 Inter,system-ui,sans-serif;color:#f4f2ee}
.inv-bs-troop.is-empty .inv-bs-troop__name .inv-pz__chip-t{color:#c9ccd3}
.inv-bs .inv-bs-troop .inv-bs-selected-x{right:calc(var(--u) * 14)}
.inv-bs-troop .inv-pz__cards{position:static;left:auto;top:auto;width:100%;column-gap:calc(var(--u) * 24);
	grid-template-columns:repeat(3,minmax(0,1fr))}
.inv-bs-troop .inv-hsc__art.inv-bs-troop__add{display:block;width:100%;padding:0;border:0;cursor:pointer;margin-bottom:calc(var(--c) * 5)}
.inv-bs-troop .inv-hsc__art.inv-bs-troop__add:hover{filter:brightness(1.15)}
.inv-bs-troop .inv-bsq-foot{position:static;left:auto;right:auto;bottom:auto;height:calc(var(--u) * 76);padding:0;gap:calc(var(--u) * 14);
	background:none;border:0;overflow:visible}
.inv-bs-troop .inv-bsq-foot__troops{flex:0 0 calc(var(--u) * 260);height:100%;padding:0 calc(var(--u) * 20);gap:calc(var(--u) * 16);
	background:#2a2e36;border:1px solid #444a55;font:600 calc(var(--u) * 34)/1 Inter,system-ui,sans-serif;color:#f4f2ee}
.inv-bs-troop .inv-bsq-foot__troops img{width:calc(var(--u) * 40);height:calc(var(--u) * 40);flex-basis:calc(var(--u) * 40)}
.inv-bs-troop .inv-bsq-foot__merc{flex:1 1 auto;height:100%;justify-content:center;padding:0 calc(var(--u) * 46);gap:calc(var(--u) * 14);
	background:#2a2e36;border:0;clip-path:polygon(calc(var(--u) * 28) 0,calc(100% - calc(var(--u) * 28)) 0,100% 50%,calc(100% - calc(var(--u) * 28)) 100%,calc(var(--u) * 28) 100%,0 50%);
	box-shadow:inset 0 0 0 calc(var(--u) * 2) #444a55;font:500 calc(var(--u) * 34)/1 Inter,system-ui,sans-serif;color:#f2d27c}
.inv-bs-troop .inv-bsq-foot__merc img{width:calc(var(--u) * 46);height:calc(var(--u) * 46);flex-basis:calc(var(--u) * 46)}
.inv-bs-troop .inv-bsq-foot__tier{font:400 calc(var(--u) * 44)/1 Georgia,'Times New Roman',serif;color:#f2d27c;margin:0}
/* the tabs over the troop, the "-" line the troop replaces gone */
.inv-bs-side > .inv-bsq__mine{margin:8px 0 8px}
.inv-bs-side:has(.inv-bs-troop) .inv-bs-selected{display:none}

.inv-bs-results:has(.is-preset){display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;padding:8px;max-height:min(72vh,900px);border-radius:0}
.inv-bs-results:has(.is-preset) > li:not(.is-preset){grid-column:1/-1;border-bottom:0}
.inv-bs-results li.is-preset{display:block;padding:0;border:0;gap:0}
.inv-bs-results li.is-preset:hover{background:none}
.inv-bs-results li.is-preset:hover .inv-pz__pi{filter:brightness(1.08)}
.inv-bs-rescard .inv-bs-res-fav{position:absolute;right:calc(var(--u) * 6);top:50%;transform:translateY(-50%);margin:0;width:calc(var(--u) * 56);height:calc(var(--u) * 56);font-size:calc(var(--u) * 44);padding:0}
.inv-bs-rescard .inv-bs-res-fav:hover{transform:translateY(-50%) scale(1.15)}
.inv-bs-rescard .inv-bs-res-fav.is-on{color:#f2d27c}
.inv-bs-rescard-by{position:absolute;left:calc(var(--u) * 34);bottom:calc(var(--u) * 36);height:calc(var(--u) * 54);max-width:calc(var(--u) * 460);display:flex;align-items:center;
	overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 calc(var(--u) * 28)/1 Rajdhani,sans-serif;color:#9cc3ff}
.inv-bs-rescard-go{position:absolute;right:calc(var(--u) * 30);bottom:calc(var(--u) * 36);width:calc(var(--u) * 246);height:calc(var(--u) * 54);display:flex;align-items:center;justify-content:center;
	border-style:solid;border-width:0;border-image:url("../images/game-icons/btn-plate-gold.webp") 30 fill / calc(var(--u) * 14) stretch;color:#2a1c05;font:700 calc(var(--u) * 28)/1 Georgia,'Times New Roman',serif}

/* Troop plate = tier picker (2026-11-12) */
.inv-bs-troop .inv-bsq-foot__merc,.inv-bs-picked .inv-bsq-foot__merc{position:relative;cursor:pointer;border:0;background:transparent;color:inherit;font:inherit;overflow:visible}
.inv-bsq-foot__tiers{position:fixed;transform:translate(-50%,-100%);z-index:9999;display:flex;gap:4px;padding:6px;background:rgba(8,13,26,.96);border:1px solid #a8823a;border-radius:0}
.inv-bsq-foot__tiers[hidden]{display:none}
.inv-bsq-foot__topt{padding:6px 14px;font:700 16px/1 Rajdhani,sans-serif;color:#e5e7eb;border-radius:0;cursor:pointer}
.inv-bsq-foot__topt:hover{background:rgba(255,255,255,.1)}
.inv-bsq-foot__topt.is-active{background:#f59e0b;color:#111827}

/* Batch runs as the Battle Reports mail list (2026-11-13): the include-in-average tick sits
   where a saved report's pin does; the average controls are the list's foot. */
.inv-bs-batch-mail{margin-top:12px}
.inv-bs-batch-mail .mi-pick{position:absolute;top:6px;right:8px;display:flex;align-items:center;padding:4px;cursor:pointer;background:rgba(0,0,0,.35)}
.inv-bs-batch-mail .mi-pick input{margin:0;width:16px;height:16px;accent-color:#f59e0b;cursor:pointer}
.inv-bs-batch-mail .inv-bs-batch-avgbar{display:flex;align-items:center;gap:8px;padding:6px 0 0;margin:0}
.inv-bs-batch-mail .inv-bs-batch-avgbar label{display:inline-flex;align-items:center;gap:5px;color:#cbd5e1;font-size:.8rem;cursor:pointer}
.inv-bs-batch-mail .inv-bs-batch-avg{flex:1 1 auto;border-radius:0}
.inv-bs-batch-mail .inv-bs-batch-link[hidden]{display:none!important}
.inv-bs-batch-mail .inv-bs-avg-mark{margin:0}
