/* 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}

/* Shared comparison controls and reference context. */
.garage-share{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0 24px}
.garage-share .motion-control{min-height:44px;padding:10px 18px}
.garage-share .motion-control:disabled{opacity:.55;cursor:not-allowed}
.garage-share-hint,.garage-share [role="status"]{color:#bac2cd;font-size:13px;line-height:1.5}
.garage-share [role="status"]{flex-basis:100%;margin:0}
.garage-share [role="status"]:empty{display:none}
.garage-share-fallback{flex-basis:100%;min-width:0}
.garage-share-fallback[hidden],.comparison-context[hidden]{display:none}
.garage-share-fallback label{display:block;margin-bottom:8px;color:#dfe4eb;font-size:13px;font-weight:700}
.garage-share-fallback input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 14px;border:1px solid #626d7b;border-radius:10px;background:#171d25;color:#fff;font:inherit;font-size:13px}
.comparison-context{margin-top:22px;padding:22px;border:1px solid #3b4552;border-radius:18px;background:#171d25;color:#bec7d2;line-height:1.6}
.comparison-context h3{margin:0 0 10px;color:#fff;font-size:20px}
.comparison-context p{margin:0 0 18px;max-width:950px}
.comparison-context ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px}
.comparison-context li{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding-top:12px;border-top:1px solid #3b4552}
.comparison-context strong{color:#f0f3f7}
.comparison-context span,.comparison-context a{font-size:13px;overflow-wrap:anywhere}
.comparison-context a{color:#f3b0b6;text-decoration:underline;text-underline-offset:3px}
.garage-share button:focus-visible,.garage-share input:focus-visible,.comparison-context a:focus-visible{outline:3px solid #f4adb4;outline-offset:4px}

/* Reference comparison hierarchy: differences are useful; verification gaps stay explicit. */
.compare-ready{padding:30px 24px;color:#b7c2d0;font-size:16px;line-height:1.6}
.spec-table caption{padding:18px 20px;text-align:left;font-size:13px;line-height:1.6;color:#bec8d5;border-bottom:1px solid #3b4552}
.spec-table thead th{vertical-align:top;font-size:16px}
.compare-reference-label{display:block;margin-top:8px;color:#aebac8;font-size:10px;line-height:1.4;letter-spacing:.06em;text-transform:uppercase;font-weight:650}
.spec-table tbody tr.is-different{background:rgba(229,241,255,.025)}
.compare-difference{display:block;margin-top:7px;font-size:10px;line-height:1.5;font-weight:600;color:#b8c4d2;letter-spacing:.01em}
.compare-field-value{display:block;line-height:1.55;overflow-wrap:anywhere}
.compare-field-state{display:block;margin-top:8px;font-size:11px;line-height:1.5;color:#f3bd91}
.spec-table td:not([data-field-state="REFERENCE_ONLY"]){background:rgba(172,108,54,.055);color:#ebd7c5}
.compare-pick-grid button{position:relative;transition:border-color 180ms ease,background 180ms ease}
.compare-pick-grid button small[data-selection-label]{display:block;font-size:11px;line-height:1.5;margin-top:8px;color:#606b78}
.compare-pick-grid button[aria-pressed="true"]{box-shadow:inset 0 0 0 1px #d54554}
.compare-pick-grid button[aria-pressed="true"] small[data-selection-label]{color:#a72b39}
@media(prefers-reduced-motion:reduce){.compare-pick-grid button{transition:none}}

/* Static head-to-head uses real table semantics and the same reference contract. */
.reference-comparison-scroll{overflow-x:auto;border:1px solid #d8dce1;border-radius:24px;scrollbar-gutter:stable}
.reference-comparison{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.6;color:#343c47}
.reference-comparison caption{text-align:left;padding:17px 18px;color:#697583;font-size:13px;border-bottom:1px solid #d8dce1}
.reference-comparison th,.reference-comparison td{padding:17px 18px;border-bottom:1px solid #d8dce1;vertical-align:top;overflow-wrap:anywhere;text-align:left}
.reference-comparison thead th{background:#171b21;color:#fff;font-size:15px}
.reference-comparison tbody th{width:25%;background:#f6f7f8;color:#626d7b;font-size:12px;font-weight:750}
.reference-comparison tbody tr:last-child th,.reference-comparison tbody tr:last-child td{border-bottom:0}
.reference-comparison-scroll:focus-visible{outline:3px solid #d93645;outline-offset:5px}
@media(max-width:720px){.reference-comparison{min-width:660px;table-layout:auto}.reference-comparison tbody th{min-width:140px}}

/* The interactive comparison reads as stacked, labelled cards on a phone. */
@media(max-width:720px){
  .compare-panel{overflow:visible}
  .compare-table,.spec-table,.spec-table[data-columns="2"]{min-width:0;width:100%}
  .spec-table,.spec-table tbody,.spec-table tbody tr,.spec-table tbody th,.spec-table tbody td{display:block}
  .spec-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .spec-table tbody{display:grid;gap:14px;padding:12px;background:#11161d}
  .spec-table tbody tr{border:1px solid #394552;border-radius:18px;overflow:hidden;background:#171c22}
  .spec-table tbody th{padding:16px 18px;background:#29313b;color:#f3a6ae;font-size:12px}
  .spec-table tbody td,.spec-table tbody tr:nth-child(even) td{padding:14px 18px;background:#171c22}
  .spec-table tbody td:before{content:attr(data-car);display:block;margin-bottom:6px;color:#b3c0cf;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
  .spec-table tbody td:last-child{border-bottom:0}
  .table-hint{display:none!important}
}

.handoff-brief{display:grid;grid-template-columns:1fr auto;gap:12px;max-width:920px;margin:32px auto 0;padding:clamp(22px,3vw,34px);border:1px solid #435061;border-radius:24px;background:linear-gradient(145deg,#202934,#111820);color:#eef2f7;box-shadow:0 22px 55px rgba(0,0,0,.14)}
.handoff-brief>div,.handoff-brief label,.handoff-brief textarea,.handoff-brief [role="status"]{grid-column:1/-1}
.handoff-brief h3{margin:4px 0 10px;font-size:clamp(1.8rem,3.5vw,3rem);line-height:1;letter-spacing:-.055em}
.handoff-brief p{margin:0;color:#bdc7d2;line-height:1.6}
.handoff-brief .section-label{color:#ff929d;margin-bottom:14px}
.handoff-brief label{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#dce4ed}
.handoff-brief textarea{box-sizing:border-box;width:100%;min-height:105px;resize:vertical;padding:16px;border:1px solid #566274;border-radius:12px;background:#101720;color:#eef2f7;font:inherit;font-size:14px;line-height:1.5}
.handoff-brief button{grid-column:1;justify-self:start;min-height:44px;padding:11px 18px;border:0;border-radius:999px;background:#fff;color:#111820;font:inherit;font-size:13px;font-weight:850;cursor:pointer}
.handoff-brief button:hover{background:#e5eaf0}
.handoff-brief [role="status"]{font-size:12px}

.compare-hero{padding:clamp(80px,9vw,130px) 0 68px;min-height:75svh;display:flex;align-items:center}
.compare-hero-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(24px,4vw,72px);align-items:center}
.compare-hero h1{font-size:clamp(3.9rem,7.5vw,8rem)}
.compare-scene{position:relative;isolation:isolate;margin:0;aspect-ratio:4/5;max-height:640px;overflow:hidden;border-radius:28px;border:1px solid #394450;background:#1d252f;transform:rotate(2deg);box-shadow:0 35px 90px rgba(0,0,0,.4)}
.compare-scene:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(4,7,12,.85));pointer-events:none}
.compare-scene img{display:block;width:100%;height:100%;object-fit:cover;object-position:54% center;filter:saturate(.72) contrast(1.06)}
.compare-scene figcaption{position:absolute;z-index:1;left:clamp(18px,3vw,36px);right:20px;bottom:clamp(18px,3vw,36px);color:#fff;font-size:clamp(1rem,1.8vw,1.5rem);font-weight:850;letter-spacing:-.035em;line-height:1.2}
.compare-scene figcaption small{display:block;margin-top:10px;color:#c7d0db;font-size:11px;font-weight:600;letter-spacing:.03em}
@media(prefers-reduced-motion:no-preference){.compare-scene{animation:compare-scene-in .65s cubic-bezier(.2,.8,.2,1) both}@keyframes compare-scene-in{from{opacity:0;transform:translateY(36px) rotate(4deg)}to{opacity:1;transform:translateY(0) rotate(2deg)}}}
@media(max-width:850px){.compare-hero{min-height:0}.compare-hero-layout{grid-template-columns:1fr}.compare-scene{aspect-ratio:16/9;max-height:420px;transform:none}.compare-scene img{object-position:center 58%}.compare-hero h1{font-size:clamp(3.8rem,11vw,6rem)}}
@media(max-width:520px){.compare-hero{padding:58px 0}.compare-scene{aspect-ratio:4/3}.handoff-brief{grid-template-columns:1fr}.handoff-brief button{width:100%}}
@media(prefers-reduced-motion:reduce){.compare-scene{animation:none;transform:none}}
