main:has(> .battle-screen) { padding:0; background:#0a0718; }
.page.battle-screen {
  width:100%; max-width:680px; min-height:calc(100dvh - var(--mast)); margin:0 auto; padding:12px 16px 36px; color:#fff;
  background:radial-gradient(ellipse at 15% 22%,#41295877,transparent 53%),radial-gradient(ellipse at 90% 40%,#44064980,transparent 58%),#0a0718;
  font-family:Manrope,sans-serif;
}
.bs-bar { display:flex; align-items:center; gap:8px; }
.bs-pack,.bs-format,.bs-icon { min-height:40px; display:flex; align-items:center; border:1px solid #ffffff24; border-radius:22px; background:#ffffff0e; color:#fff; }
.bs-pack { min-width:0; gap:8px; padding:2px 12px; margin-right:auto; }
.bs-pack strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; line-height:16px; }
.bs-pack-art { width:22px; height:30px; object-fit:contain; }
.bs-format { flex:none; padding:0 10px; font-size:11px; font-weight:800; }
.bs-icon { flex:none; width:40px; justify-content:center; font:700 18px Manrope,sans-serif; text-decoration:none; }
.bs-demo { width:fit-content; margin:8px auto 12px; padding:3px 10px; border-radius:99px; color:#eadcff; background:#554368; font-size:11px; font-weight:800; }
.bs-title { margin:14px 0 3px; text-align:center; font-size:clamp(22px,4vw,32px); line-height:1.16; letter-spacing:-.025em; }
.bs-subtitle,.bs-note { color:#ffffffa6; text-align:center; font-size:13px; line-height:19px; margin:3px auto 14px; }
.bs-meter { display:flex; align-items:center; justify-content:space-between; padding:10px 16px; gap:12px; border-radius:16px; border:1px solid #ffffff24; background:#100d1cc9; }
.bs-meter small { display:block; text-transform:uppercase; letter-spacing:1.8px; color:#fff9; font-weight:800; font-size:10px; }
.bs-meter strong,.bs-seat-total,.bs-value { font-variant-numeric:tabular-nums; }
.bs-progress strong { font-size:20px; }
.bs-pips { display:inline-flex; vertical-align:middle; gap:3px; margin-left:9px; }
.bs-pips i { width:6px; height:6px; background:#ffffff33; border-radius:50%; }
.bs-pips .on { background:#f3dcff; }
.bs-pot { text-align:right; } .bs-pot small { color:#e2b0ff; } .bs-pot strong { font-size:14px; }
.bs-seats { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; padding:14px 0 4px; }
.bs-seat { min-width:0; display:grid; justify-items:center; gap:3px; text-align:center; }
.bs-avatar { display:grid; place-items:center; width:48px; height:48px; border:2px solid #ffffff39; border-radius:50%; background:#584075; font-weight:800; }
.bs-seat[data-seat=bot] .bs-avatar { background:radial-gradient(ellipse at 50% 30%,#5eead4,#0e7490 70%); }
.bs-seat[data-seat=bot] .bs-avatar::before { content:''; width:26px; height:26px; background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4.7' y='7' width='14.6' height='13' rx='3'/%3E%3Cpath d='M12 7V3m-2 0h4M2 12v4m20-4v4m-13 1h6'/%3E%3Cpath d='M9 11.5v1m6-1v1' stroke-width='2.3'/%3E%3C/svg%3E"); }
.bs-seat[data-seat=empty] .bs-avatar { background:transparent; border-style:dashed; color:#ffffff66; font-size:20px; }
.bs-seat strong { font-size:14px; }
.bs-bot { display:inline-block; border-radius:4px; padding:1px 5px; color:white; background:#0e7490; font-size:10px; }
.bs-vs { color:#bca5cc; font-size:12px; font-weight:800; font-style:italic; }
.bs-seat-total { color:#eee6f8; font-size:14px; }
.bs-duel,.bs-tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.bs-card { min-width:0; display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 7px; border-radius:16px; border:1px solid #ffffff1c; background:#ffffff07; text-align:center; overflow-wrap:anywhere; }
.bs-card-art { width:100%; height:clamp(96px,20dvh,180px); object-fit:contain; }
.bs-seat-label { margin-top:5px; font-size:11px; font-weight:700; color:#d6c7e3; }
.bs-card strong { font-size:14px; line-height:18px; }
.bs-value { color:#c1b5cf; font-size:12px; }
.bs-rack { margin:18px 0 0; }
.bs-rack h2 { margin:0 0 8px; font-size:15px; line-height:20px; }
.bs-history .bs-card-art,.bs-haul .bs-card-art { height:76px; }
.bs-history .bs-card,.bs-haul .bs-card { border:0; background:transparent; padding:4px; }
.bs-result { text-align:center; }
.bs-headline { margin:16px 0 0; color:#fff; font-size:clamp(38px,9vw,56px); line-height:1.05; font-weight:800; }
.bs-result .bs-title { font-size:18px; margin:8px 0 2px; }
.bs-haul-total { margin:10px 0; color:#eedfff; font-weight:800; }
.bs-haul .bs-tiles { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.bs-haul .bs-card { flex:1 1 90px; max-width:132px; }
.bs-headline,.bs-duel .bs-card { animation:bs-enter .24s ease-out both; }
@keyframes bs-enter { from { opacity:.15; transform:translateY(6px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .battle-screen * { animation:none; } }
.bs-actions { margin:16px 0 8px; }
.bs-actions :is(form,fieldset,.actions) { min-width:0; margin:0; border:0; padding:0; border-radius:0; background:transparent; box-shadow:none; }
.bs-actions .actions { display:grid; gap:8px; }
.bs-actions .button { width:100%; min-height:46px; border:1px solid #ffffff24; border-radius:16px; background:linear-gradient(135deg,#a266ed,#7544ce); color:white; font-weight:800; }
.bs-actions .secondary { background:#ffffff0e; }
.bs-actions .form-status:empty { display:none; }
.bs-note { margin:16px auto; }
.bs-more summary,.bs-link,.bs-done { color:#d7c3f4; font-size:14px; }
.bs-done { display:block; padding:10px; text-align:center; font-weight:700; }
.bs-links { display:flex; gap:0 14px; flex-wrap:wrap; }
.bs-link { padding:8px 0; }
.bs-facts { display:flex; justify-content:center; gap:16px; text-align:center; margin:16px 0; }
.bs-facts dt { font-size:12px; color:#cbc1d5; } .bs-facts dd { margin:0; font-size:14px; font-weight:700; }
.bs-options { display:grid; gap:8px; }
.bs-option { display:flex; gap:12px; align-items:center; padding:12px; border:1px solid #ffffff20; background:#ffffff08; border-radius:14px; text-decoration:none; color:inherit; }
.bs-option h3,.bs-option p { margin:0; } .bs-option h3 { font-size:15px; } .bs-option p { font-size:13px; color:#d1c8db; overflow-wrap:anywhere; }
.bs-choice-art { width:52px; height:58px; object-fit:contain; }
.battle-screen :is(button,a,summary):focus-visible { outline:2px solid #d9c3ff; outline-offset:2px; }
@media (min-width:600px) { .bs-history .bs-tiles { grid-template-columns:repeat(auto-fit,minmax(112px,1fr)); } }
@media (max-width:760px) { .page.battle-screen { padding-bottom:calc(84px + env(safe-area-inset-bottom)); } }
