/* My Garage battle states shared by the Garage and Compare pages. */
.battle-stage[data-count="3"],.v2-arena .battle-stage[data-count="3"]{gap:clamp(12px,1.6vw,24px);margin-left:0;margin-right:0}
.battle-stage[data-count="3"] .battle-slot:nth-child(1){transform:translateX(1%) rotateY(4deg) translateZ(-20px)}
.battle-stage[data-count="3"] .battle-slot:nth-child(2){transform:translateY(-28px) scale(1.015) translateZ(32px);z-index:3}
.battle-stage[data-count="3"] .battle-slot:nth-child(3){transform:translateX(-1%) rotateY(-4deg) translateZ(-20px)}
.battle-stage[data-count="3"] .battle-slot:hover,.battle-stage[data-count="3"] .battle-slot:focus-within{transform:translateY(-20px) translateZ(40px);z-index:5}
.battle-stage.is-duel,.v2-arena .battle-stage.is-duel{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,4vw,70px);max-width:1120px;min-height:0;margin:38px auto 42px;padding:62px 2% 28px}
.battle-stage.is-duel .battle-slot:nth-child(1){transform:translateX(4%) rotateY(7deg) translateZ(-15px)}
.battle-stage.is-duel .battle-slot:nth-child(2){transform:translateX(-4%) rotateY(-7deg) translateZ(-15px);z-index:2}
.battle-stage.is-duel .battle-slot:nth-child(1):before{content:"01 / CHALLENGER"}
.battle-stage.is-duel .battle-slot:nth-child(2):before{content:"02 / CHALLENGER"}
.battle-stage.is-duel:before{z-index:6;top:49px;width:76px;height:76px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.38);border-radius:50%;background:linear-gradient(140deg,#e44653,#98232e);color:#fff;font-size:27px;line-height:1;letter-spacing:-.06em;text-shadow:none;box-shadow:0 16px 45px rgba(0,0,0,.46),0 0 40px rgba(204,48,59,.3)}
.battle-stage.is-duel .battle-slot:hover,.battle-stage.is-duel .battle-slot:focus-within{transform:translateY(-16px) translateZ(30px);z-index:5}
.battle-stage.is-solo,.v2-arena .battle-stage.is-solo{grid-template-columns:minmax(0,520px);justify-content:center;min-height:0;margin:25px auto 32px;padding-top:46px}
.battle-stage.is-solo .battle-slot:nth-child(1){transform:none}
.battle-stage.is-empty,.v2-arena .battle-stage.is-empty{display:block;max-width:850px;min-height:0;margin:22px auto 34px;padding:0}
.battle-stage.is-empty:before,.battle-stage.is-empty:after,.battle-stage.is-solo:after{display:none}
.battle-empty{min-height:330px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(30px,6vw,68px);border:1px solid #39414c;border-radius:32px;background:radial-gradient(circle at 84% 16%,rgba(204,48,59,.18),transparent 38%),linear-gradient(140deg,#20262e,#11151b);box-shadow:0 30px 80px rgba(0,0,0,.22)}
.battle-empty span{color:#ef7982;font-size:11px;font-weight:850;letter-spacing:.18em}
.battle-empty strong{display:block;max-width:650px;margin:18px 0 8px;font-size:clamp(2.1rem,5vw,4.8rem);line-height:.98;letter-spacing:-.06em}
.battle-empty p{max-width:520px;color:#b3bbc5;line-height:1.55}
.battle-empty a,.battle-prompt a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:999px;background:#fff;color:#111;font-size:13px;font-weight:800}
.battle-prompt{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1120px;margin:-12px auto 32px;padding:16px 20px;border:1px solid #303843;border-radius:18px;background:#161c23;color:#b9c1cb}
.battle-prompt[hidden]{display:none}
.battle-prompt p{margin:0;line-height:1.5}
.battle-prompt strong{color:#fff}
.battle-prompt a{flex:none;background:#282f38;color:#fff;border:1px solid #59616c}
.battle-media-meta{position:absolute;z-index:4;left:18px;right:18px;bottom:14px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;color:#fff;text-shadow:0 1px 12px #000}
.battle-media-meta span{flex:none;padding:6px 9px;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(8,10,14,.58);font-size:9px;letter-spacing:.13em;text-transform:uppercase;font-weight:850}
.battle-media-meta small{max-width:55%;color:#e0e3e7;font-size:10px;line-height:1.25;text-align:right}
.battle-image.media-missing{aspect-ratio:1.13}
.battle-image.media-missing:before{content:"MEDIA / TO ADD";z-index:3;inset:0;width:auto;height:auto;left:0;right:0;bottom:0;display:grid;place-items:center;background:radial-gradient(circle at 50% 42%,rgba(204,48,59,.14),transparent 42%);filter:none;color:#e5e8ed;font-size:12px;font-weight:850;letter-spacing:.17em;text-transform:uppercase}
.compare-table{display:block;min-width:0}
.compare-ready{padding:30px;color:#cbd1d8;line-height:1.5}
.spec-table{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed;text-align:left}
.spec-table[data-columns="2"]{min-width:640px}
.spec-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.spec-table th,.spec-table td{padding:18px 20px;border-bottom:1px solid #303842;vertical-align:top;line-height:1.48;overflow-wrap:anywhere}
.spec-table thead th{background:#232a32;color:#fff;font-size:15px;font-weight:850;letter-spacing:-.015em}
.spec-table thead th:first-child{width:23%;color:#f08a93;text-transform:uppercase;font-size:11px;letter-spacing:.14em}
.spec-table tbody th{color:#aeb6c0;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.09em;background:#1b2128}
.spec-table tbody td{color:#e4e8ed;background:#171c22}
.spec-table tbody tr:nth-child(even) td{background:#1a2027}
.spec-table tbody tr:last-child th,.spec-table tbody tr:last-child td{border-bottom:0}
.table-hint{display:none}
@media(max-width:720px){
  .battle-stage[data-count="3"],.v2-arena .battle-stage[data-count="3"]{gap:14px;margin-left:-18px;margin-right:-18px}
  .battle-stage[data-count="3"] .battle-slot:nth-child(n){transform:none}
  .battle-stage.is-duel,.v2-arena .battle-stage.is-duel{display:flex;max-width:none;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:18px;margin:18px -18px 24px;padding:18px;min-height:0}
  .battle-stage.is-duel .battle-slot:nth-child(n),.battle-stage.is-solo .battle-slot:nth-child(n){flex:0 0 86%;transform:none;scroll-snap-align:center}
  .battle-stage.is-solo,.v2-arena .battle-stage.is-solo{display:flex;margin:18px -18px 24px;padding:18px;max-width:none;justify-content:flex-start}
  .battle-stage.is-duel .battle-slot:hover,.battle-stage.is-duel .battle-slot:focus-within{transform:none}
  .battle-stage.is-duel:before{display:none}
  .battle-stage.is-empty,.v2-arena .battle-stage.is-empty{margin:18px 0 26px}
  .battle-empty{min-height:300px}
  .battle-prompt{align-items:flex-start;flex-direction:column;margin:0 0 26px}
  .battle-media-meta{left:12px;right:12px;bottom:10px;align-items:flex-start;flex-direction:column;gap:5px}
  .battle-media-meta small{max-width:100%;text-align:left}
  .spec-table{min-width:740px}
  .spec-table[data-columns="2"]{min-width:620px}
  .table-hint:not([hidden]){display:block;color:#b5bec8;margin:0 0 10px;font-size:12px;font-weight:750;letter-spacing:.03em}
}
@media(max-width:520px){
  .battle-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .battle-actions a{grid-column:1;grid-row:1;min-width:0;text-align:center}
  .battle-actions .remove{grid-column:2;grid-row:1}
  .battle-actions .swap-control{grid-column:1/-1;grid-row:2;min-width:0;width:100%}
  .battle-actions .swap-control select{display:block;width:100%;max-width:none;min-width:0;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.battle-stage.is-duel .battle-slot:nth-child(n),.battle-stage[data-count="3"] .battle-slot:nth-child(n){transform:none}.battle-stage.is-duel .battle-slot:hover,.battle-stage.is-duel .battle-slot:focus-within,.battle-stage[data-count="3"] .battle-slot:hover,.battle-stage[data-count="3"] .battle-slot:focus-within{transform:none}}
.motion-off .battle-stage.is-duel .battle-slot:nth-child(n),.motion-off .battle-stage[data-count="3"] .battle-slot:nth-child(n){transform:none}
