/* BODYKIT.IA LIVE · Real participant-first UI, no decorative layers on car photos. */
:root{color-scheme:dark;--bg:#080807;--panel:#1a1010;--panel2:#120f0e;--line:#93441e;--bright:#ff9d26;--text:#fff4e8;--muted:#cbb9a9;--shadow:0 10px 32px #0009;--glow:0 0 17px #fe62105d}
*,*:before,*:after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:105px;overflow-x:clip}
body{margin:0;color:var(--text);background:
radial-gradient(ellipse 70vw 110vh at 50% 0%,#61240944,transparent 78%),var(--bg);
font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}
body:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
background:repeating-linear-gradient(0deg,transparent 0 45px,#ff69000b 46px 47px)}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}
a{color:var(--bright)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #fff0af;outline-offset:3px}
[hidden]{display:none!important}
.topbar{position:sticky;z-index:50;top:8px;margin:8px auto 0;width:min(1200px,calc(100% - 16px));
background:#170e0de8;backdrop-filter:blur(14px);border:1px solid #ec743f;
border-radius:24px;box-shadow:var(--shadow),var(--glow);display:flex;gap:18px;align-items:center;justify-content:space-between;padding:10px 18px;min-height:70px}
.brand{font-size:clamp(18px,2.2vw,28px);font-weight:950;color:#fff4e7;text-decoration:none;letter-spacing:-.05em;white-space:nowrap;display:flex;align-items:center;gap:7px}
.brand span:not(.brand-flame){color:#ff7b1f}
.brand-flame{color:#ff892a;text-shadow:0 0 16px #ff6500;font-size:33px;line-height:.9}
.topbar nav{display:flex;gap:20px}
.topbar nav a{text-decoration:none;color:#f7d3b2;font-size:12px;letter-spacing:.1em;font-weight:800}
.topbar nav a:hover{color:#ffbc73}
main{max-width:1200px;margin:0 auto;padding:0 15px}
.hero{margin:15px 0 30px;position:relative;overflow:hidden;isolation:isolate;
border:1px solid #a84f20;border-radius:32px;box-shadow:var(--shadow),0 0 34px #ed4b0036;
background:linear-gradient(90deg,#0c0707ef 0%,#180e0cbb 66%,#120807cf),url('/assets/garage-game-arena.svg') center/cover no-repeat;
padding:clamp(52px,7vw,100px) clamp(23px,6vw,85px) clamp(65px,7vw,90px)}
.hero:after{content:"";position:absolute;bottom:0;left:0;right:0;height:46px;pointer-events:none;
background:url('/assets/garage-fire-divider.svg') center bottom/cover no-repeat;opacity:.55}
.heat-glow{pointer-events:none;position:absolute;inset:0;z-index:-1;
background:radial-gradient(ellipse at 85% 70%,#f962103d,transparent 58%)}
.kicker{font-size:12px;font-weight:850;letter-spacing:.2em;color:#ffa35a;text-transform:uppercase}
.hero h1{font-style:italic;font-weight:1000;line-height:.9;font-size:clamp(55px,9.3vw,135px);
text-shadow:0 5px 0 #36150a,0 10px 14px #000b;letter-spacing:-.07em;margin:20px 0 22px;
max-width:1100px}
.hero h1 span{display:block;color:#ff811a;text-shadow:0 4px #8c2101,0 0 30px #fe62008a}
.hero-lead{font-size:clamp(16px,2vw,22px);max-width:720px;color:#f5d4bd;text-wrap:balance}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin:27px 0 18px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;text-align:center;
padding:13px 23px;min-height:51px;border-radius:999px;border:2px solid #c56d3c;
font-weight:950;letter-spacing:.012em;color:#fff0d6;background:#27150e;
text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}
.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 0 21px #f6650780}
.btn.primary{color:#221006;border-color:#ffd181;
background:linear-gradient(180deg,#fff0a6,#ffbf45 25%,#ff8917 52%,#eb4e04 95%);
box-shadow:inset 0 2px #fff4c2,0 0 17px #ff73136e,0 7px 18px #0008}
.btn.dark{background:linear-gradient(140deg,#2e1510,#110c0d 60%,#42180b);border-color:#f66b24;color:#ffc68c;box-shadow:0 0 18px #ff600055}
.btn.ghost{background:linear-gradient(140deg,#291810,#120d0d);color:#ffd3aa}
.btn.small{padding:8px 13px;min-height:37px;font-size:12px;letter-spacing:.03em}
.notice{border-radius:15px;border:1px solid #944318;background:#1b0b08c4;color:#ffdab6;
font-size:14px;padding:11px 15px;max-width:760px}
.notice.online{background:#1e2415;border-color:#647935;color:#deedb8}
.notice.muted{font-size:13px;padding:8px 12px}
.panel{border:1px solid #713a24;border-radius:28px;padding:clamp(19px,3vw,37px);
background:linear-gradient(140deg,#1e1210ed,#0e0b0bf5);
margin:0 0 28px;box-shadow:var(--shadow)}
.section-head{margin:0 0 22px}
.section-head h2{font-size:clamp(35px,6.7vw,65px);line-height:.94;letter-spacing:-.055em;
margin:9px 0 11px;font-style:italic;font-weight:1000}
.section-head p{margin:0;max-width:830px;color:var(--muted)}
.auth-columns,.rank-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.dark-panel{border:1px solid #a5532c;background:linear-gradient(160deg,#211411,#120d0c);
padding:22px;border-radius:23px;box-shadow:inset 0 1px #ffd9a91e}
.dark-panel h3{font-weight:950;font-size:22px;font-style:italic;letter-spacing:-.02em;margin:0 0 17px}
label{display:block;font-weight:700;font-size:13px;color:#ffdfc2;margin:13px 0 7px}
input,textarea,select{display:block;width:100%;padding:13px 14px;
border:1px solid #7c5340;border-radius:13px;background:#0b0909;color:#fff8ec;outline:0}
input:focus,textarea:focus,select:focus{border-color:#ffa54d;box-shadow:0 0 0 2px #ff79183a}
textarea{resize:vertical;min-height:85px}
form>.btn{margin-top:16px}
label.checkbox{display:flex;gap:9px;align-items:flex-start;line-height:1.35;font-weight:500}
label.checkbox input{width:19px;height:19px;flex:none;margin:1px 0}
.subtle{font-size:13px;color:var(--muted)}
.user-banner{font-weight:900;color:#ffc06e}
.text-button{border:0;background:transparent;padding:8px 12px;color:#ffc28f;text-decoration:underline}
#uploadPreview{width:100%;max-height:400px;object-fit:contain;border-radius:18px;background:#080808;margin:11px auto;border:1px solid #834122}
.list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.car-card,.mini-card{background:linear-gradient(150deg,#21130e,#100e0d);border:1px solid #9f4d21;
border-radius:24px;box-shadow:0 0 12px #ff640022;overflow:hidden;min-width:0}
.mini-card{padding:15px;overflow-wrap:anywhere}
.mini-card h4{font-size:20px;margin:0 0 7px}
.car-photo{width:100%;aspect-ratio:3/2;background:#0b0b0b;display:flex;align-items:center;justify-content:center;padding:5px}
.car-photo img{width:100%;height:100%;object-fit:contain;border-radius:18px;background:#100f0e}
.car-details{padding:17px}
.eyebrow{font-size:12px;font-weight:800;color:#fba861;margin:0 0 6px}
.car-details h3,.duel-info h3{font-size:clamp(23px,3vw,34px);font-weight:1000;font-style:italic;line-height:1.02;margin:4px 0 9px}
.mods{color:#f1d0bc;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.flame-row{display:flex;gap:3px;flex-wrap:wrap;margin:12px 0}
.flame-btn{width:43px;height:43px;border-radius:50%;border:1px solid #7a4331;
background:#100d0c;color:#9c6750;font-size:24px;filter:grayscale(1);transition:filter .2s,background .2s}
.flame-btn.selected{filter:none;background:#3e1b0c;border-color:#ff9227;box-shadow:0 0 8px #ff6b0a67}
.flame-btn:hover:not(:disabled){filter:none}
.flame-meaning{font-size:13px;line-height:1.4;color:#d9c6ba;margin:2px 0 12px;overflow-wrap:anywhere}
.flame-meaning.non-counting{color:#ffd0a5;border-left:3px solid #d58846;padding:7px 10px;background:#241914;border-radius:6px}
.car-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.comments{margin:14px 0 0;border-top:1px solid #75391f;padding-top:12px}
.comment{border-bottom:1px solid #49271a;padding:8px 0}
.comment p{font-size:14px;overflow-wrap:anywhere;margin:5px 0}
.comment-form{padding-top:13px}
.empty{color:#c4a590;padding:15px;border:1px dashed #75442e;border-radius:16px;grid-column:1/-1}
.duel{border:1px solid #bd6632;border-radius:28px;padding:22px;margin:0 0 26px;
background:linear-gradient(145deg,#1e100a,#08090b 73%,#271009);box-shadow:0 0 24px #ff550028}
.duel-side{overflow:hidden;border-radius:24px;border:2px solid #f38430;
background:linear-gradient(130deg,#291308,#110d0c);box-shadow:0 0 18px #fd6a0650}
.duel-photo{width:100%;aspect-ratio:3/2;background:#14110f;padding:7px;display:flex;align-items:center}
.duel-photo img{width:100%;height:100%;object-fit:contain;border-radius:19px}
.duel-info{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:17px 22px}
.duel-info h3{font-size:clamp(26px,4.5vw,44px)}
.duel-info p{margin:4px 0}
.vs{font-size:37px;font-weight:1000;font-style:italic;color:#ffbd51;display:grid;place-items:center;
width:78px;height:78px;margin:12px auto;border-radius:50%;border:3px solid #ffad43;
background:radial-gradient(circle,#5a200b,#100b09);
box-shadow:0 0 0 4px #27130a,0 0 20px #fc6607}
.duel-total{color:#ffc18b;font-weight:850;text-align:center;margin-bottom:0}
.active-vote{outline:2px solid #fff3b9}
.rank-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;
gap:9px;align-items:center;border-bottom:1px solid #613820;padding:15px 0}
.rank-position{font-weight:950;color:#ffb24c}
.rank-name{font-size:14px;overflow-wrap:anywhere}
.rank-value{font-size:13px;color:#ffca81;white-space:nowrap}
.meter{grid-column:2/4;height:12px;overflow:hidden;border-radius:999px;background:#30231e;border:1px solid #84512e}
.meter-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#b72f00,#fb6b00,#ffcf56)}
.queue-item{border-bottom:1px solid #5c3021;padding:13px 0;overflow-wrap:anywhere}
.queue-item img{display:block;width:100%;max-height:260px;object-fit:contain;background:#070707;border-radius:14px}
.queue-item .btn{margin:6px 8px 0 0}
.toast{position:fixed;z-index:100;left:50%;bottom:24px;transform:translateX(-50%);
max-width:min(560px,calc(100% - 20px));width:max-content;padding:15px 22px;
border-radius:18px;color:#ffe1bb;font-weight:700;background:#26120d;border:1px solid #ff7f2e;box-shadow:0 14px 40px #000c}
.toast.error{border-color:#e85d52;color:#ffd1c8}
.toast.success{border-color:#7d9d46;color:#e3fac4}
footer{margin:30px auto;padding:36px 22px 55px;max-width:1200px;border-top:1px solid #69351d;
display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:13px;color:#c5ae9e}
footer p{max-width:650px}
@media(max-width:900px){
 .topbar nav{gap:10px}.topbar nav a{font-size:10px}
 .auth-columns,.rank-columns{grid-template-columns:1fr}
 .hero h1{font-size:clamp(54px,10vw,94px)}
}
@media(max-width:650px){
 html{scroll-padding-top:95px}
 .topbar{position:relative;gap:8px;top:auto;border-radius:18px;padding:8px 11px;min-height:65px}
 .topbar .brand{font-size:18px}.brand-flame{font-size:27px}
 .topbar nav{display:none}
 .topbar #musicBtn{font-size:10px;padding:7px 9px;min-height:35px}
 main{padding:0 10px}.hero{padding:40px 17px 55px;border-radius:23px}
 .hero h1{font-size:clamp(38px,10.7vw,68px);letter-spacing:-.065em;margin:15px 0;overflow-wrap:normal}
 .hero h1 span{font-size:.94em}
 .hero{overflow:hidden}
 .topbar{z-index:2}
 .section-head h2{overflow-wrap:anywhere}
 .hero-lead{font-size:14px}
 .hero-actions{display:grid;grid-template-columns:1fr;gap:9px}
 .panel{padding:17px;margin-bottom:18px;border-radius:21px}
 .list-grid{grid-template-columns:1fr;gap:16px}
 .duel{padding:12px;border-radius:21px}
 .duel-photo{aspect-ratio:3/2}
 .duel-info{padding:12px;display:block}
 .duel-info button{width:100%;margin-top:12px}
 .dark-panel{padding:16px}
 .car-details{padding:13px}
 .section-head h2{font-size:clamp(34px,10vw,52px)}
 .flame-btn{width:41px;height:41px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Persistent Garage entry: visible on small screens without blocking forms */
.compete-float{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:90;display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 21px;border:2px solid #ffb654;border-radius:999px;background:linear-gradient(180deg,#ffcf5c,#ff7417 58%,#d63c08);color:#1b0a05;text-decoration:none;font-size:15px;font-weight:1000;letter-spacing:.06em;box-shadow:0 5px 24px #f65a0090,0 8px 28px #000b;transition:transform .15s ease}
.compete-float:hover,.compete-float:focus-visible{transform:translateY(-3px);outline:2px solid #fff1bf;outline-offset:3px}
@media(max-width:650px){.compete-float{right:14px;bottom:calc(14px + env(safe-area-inset-bottom));font-size:13px;padding:12px 16px}}

/* Real community pilot count */
.pilot-counter{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;margin:15px 0 18px;padding:12px 20px;border:1px solid #fa863d88;border-radius:16px;background:#1b100de8;box-shadow:0 0 18px #e9571425}
.pilot-counter-label{font-size:12px;font-weight:900;letter-spacing:.13em;color:#ffb47c}
.pilot-counter strong{font-size:clamp(25px,5vw,40px);font-weight:950;line-height:1.15;color:#fff3df;font-variant-numeric:tabular-nums}
.pilot-counter-caption{font-size:12px;color:#cbb9a9}
@media(max-width:600px){.pilot-counter{margin:10px 0 16px;padding:10px 14px}}

/* Layered flame logo, with gentle movement and accessible reduced-motion fallback */
.brand-flame{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:31px;height:39px;filter:drop-shadow(0 0 5px #ff5700a8) drop-shadow(0 0 9px #e13c0060);transform-origin:50% 95%}
.brand-flame svg{display:block;width:100%;height:100%;overflow:visible}
.brand-flame .fire-outer{transform-origin:50% 95%;animation:garageFireSway 2.9s ease-in-out infinite alternate}
.brand-flame .fire-inner{transform-origin:50% 95%;animation:garageFireCore 2.2s ease-in-out infinite alternate}
@keyframes garageFireSway{from{transform:rotate(-3deg) scaleX(.97)}to{transform:rotate(3deg) scaleX(1.03)}}
@keyframes garageFireCore{from{transform:scale(.94,1)}to{transform:scale(1.04,.96)}}
@media(max-width:600px){.brand-flame{width:26px;height:33px}}
@media(prefers-reduced-motion:reduce){.brand-flame .fire-outer,.brand-flame .fire-inner{animation:none}}


/* Horizontal duel arena: one matchup per swipe, native touch scrolling. */
#duelList.duels{display:flex;gap:18px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:2px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:4px 3px 20px;scrollbar-width:thin;scrollbar-color:#e66b28 #20120d}
#duelList.duels>.duel{flex:0 0 min(100%,850px);min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always}
#duelList.duels>.empty{flex:1 0 100%}
@media(max-width:650px){
 #duelList.duels{gap:12px;scroll-padding-inline:1px;padding:3px 1px 16px}
 #duelList.duels>.duel{flex-basis:100%}
}

/* Compact matchup cards and unmistakable carousel controls. */
.duel-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.duel-navigation .subtle{margin:0;font-weight:850;letter-spacing:.06em;color:#ffbc7d}
.duel-arrows{display:flex;align-items:center;gap:9px;white-space:nowrap}
.duel-arrow{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:2px solid #ff9b36;background:#3b190b;color:#ffe6b2;font-size:37px;line-height:1;box-shadow:0 0 12px #ff69004a}
.duel-arrow:disabled{opacity:.35}
#duelPosition,#flamePosition{font-weight:850;color:#ffd5a2;font-variant-numeric:tabular-nums}
#duelList.duels>.duel{padding:12px}
#duelList.duels>.duel>.kicker{margin:0 0 8px}
#duelList .duel-side{border-radius:16px}
#duelList .duel-photo{aspect-ratio:16/8;max-height:235px;padding:4px}
#duelList .duel-photo img{border-radius:12px}
#duelList .duel-info{padding:8px 12px;gap:8px}
#duelList .duel-info h3{font-size:clamp(18px,2.4vw,26px);margin:1px 0 3px}
#duelList .duel-info .eyebrow{font-size:11px}
#duelList .duel-info .btn{min-height:40px;padding:7px 13px;font-size:12px}
#duelList .vs{width:45px;height:45px;font-size:22px;margin:5px auto;border-width:2px}
#duelList .duel-total{font-size:13px;margin:4px 0}
#duelList .duel-total p{margin:3px 0}
@media(max-width:650px){
 .duel-navigation{align-items:center}
 .duel-navigation .subtle{font-size:10px;max-width:160px}
 .duel-arrow{width:43px;height:43px;font-size:31px}
 #duelList.duels>.duel{padding:9px}
 #duelList .duel-photo{aspect-ratio:16/7;max-height:155px}
 #duelList .duel-info{display:flex;align-items:center;justify-content:space-between;padding:7px 9px}
 #duelList .duel-info>div{min-width:0}
 #duelList .duel-info h3{font-size:17px;overflow-wrap:anywhere}
 #duelList .duel-info .eyebrow{font-size:10px}
 #duelList .duel-info .subtle{font-size:11px}
 #duelList .duel-info button{width:auto;min-width:110px;max-width:45%;margin:0;font-size:10px;padding:7px}
 #duelList .vs{width:38px;height:38px;font-size:19px;margin:4px auto}
 .compete-float{padding:9px 12px;font-size:11px}
}

/* Tap-to-zoom duel photos, retaining full image aspect and resolution. */
.duel-enlarge{position:relative;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;border-radius:12px;overflow:hidden;cursor:zoom-in}
.duel-enlarge img{display:block;width:100%;height:100%;object-fit:contain}
.duel-enlarge-label{position:absolute;right:8px;bottom:8px;padding:5px 9px;border-radius:20px;background:#120a08df;color:#fff3df;border:1px solid #ff9b45;font-size:10px;font-weight:900;letter-spacing:.04em}
.duel-enlarge:focus-visible{outline:3px solid #fff0af;outline-offset:-3px}
.duel-photo-viewer{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:65px 12px 20px;background:#050404f5;backdrop-filter:blur(12px)}
.duel-photo-viewer[hidden]{display:none}
.duel-photo-viewer img{display:block;max-width:100%;max-height:calc(100dvh - 100px);object-fit:contain;border-radius:10px}
.duel-photo-close{position:absolute;top:max(18px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));width:46px;height:46px;border-radius:50%;border:2px solid #ff9a43;background:#29140e;color:#fff;font-size:24px;z-index:1}
body.duel-photo-open{overflow:hidden}

/* Keep vehicle photos unobstructed; move zoom affordance outside the image. */
#duelList .duel-photo{position:relative;overflow:visible}
#duelList .duel-enlarge{overflow:visible}
#duelList .duel-enlarge-label{position:absolute;right:3px;top:3px;bottom:auto;transform:translateY(-100%);padding:4px 7px;border-radius:10px;font-size:10px;pointer-events:none}
#duelList .duel-side{overflow:visible}
#duelList .duel-photo img{object-fit:contain}
@media(max-width:650px){
 #arena .duel-navigation{margin-bottom:19px}
 .compete-float{bottom:calc(12px + env(safe-area-inset-bottom));right:12px;opacity:.9}
 #arena:focus-within~.compete-float{opacity:.9}
}

#duelList .duel-enlarge-label{right:6px;top:6px;transform:none;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;font-size:21px;line-height:1;background:#160c09c9}
.compete-float.hidden-in-voting{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(12px)}

/* Horizontal, swipeable individual flame-voting gallery. */
#carList,#duelList{position:relative;scroll-behavior:auto}
#carList.list-grid{display:flex;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:2px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:4px 2px 18px;scrollbar-width:thin;scrollbar-color:#e66b28 #20120d}
#carList.list-grid>.car-card{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always}
#carList.list-grid>.empty{flex:1 0 100%}
@media(min-width:750px){#carList.list-grid>.car-card{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start}}
@media(max-width:650px){#carList.list-grid{gap:12px;scroll-padding-inline:1px;padding:3px 1px 16px}}


/* GARAGE IGNITION: one-time cinematic hero reveal, no effects over voting cards. */
.hero{min-height:clamp(610px,72vh,820px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;background:linear-gradient(90deg,#090708f5 0%,#100908dc 48%,#1509079e 100%),url('/assets/garage-game-arena.svg') center/cover no-repeat;border-color:#f2732e;box-shadow:0 18px 75px #000c,0 0 45px #f75c113a}
.hero>.kicker,.hero>.ignition-title,.hero>.pilot-counter,.hero>.hero-lead,.hero>.hero-actions,.hero>#serviceNotice{position:relative;z-index:3}
.hero>.kicker{color:#ffc284}
.hero .ignition-title{font-size:clamp(59px,9.8vw,140px);max-width:1000px;text-transform:uppercase;filter:drop-shadow(0 9px 10px #000c)}
.hero .ignition-title span{color:#ff9b23;text-shadow:0 4px 0 #7c2008,0 0 34px #fb4e088c}
.ignition-scene{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.ignition-scene:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 45% 60% at 86% 46%,#ff681c55,transparent 80%),linear-gradient(0deg,#060607 0%,transparent 40%);opacity:.8}
.ignition-beams{position:absolute;inset:-20%;background:repeating-linear-gradient(90deg,transparent 0 15%,#ff86250c 15.3% 15.6%,transparent 16% 30%);transform:perspective(600px) rotateX(17deg);mask-image:linear-gradient(0deg,transparent,#000 60%,transparent)}
.ignition-road{position:absolute;bottom:-16%;right:-10%;width:95%;height:63%;transform:perspective(350px) rotateX(67deg);background:repeating-linear-gradient(90deg,transparent 0 23%,#ff9c302e 23.2% 23.6%,transparent 24% 49%),linear-gradient(0deg,#ff5d132c,transparent 75%);border-top:2px solid #fa6e2866;filter:blur(1px)}
.ignition-smoke{position:absolute;inset:35% -20% -40%;background:radial-gradient(ellipse 30% 22% at 70% 70%,#d5a28b3a,transparent 85%),radial-gradient(ellipse 40% 24% at 45% 85%,#b18b7c28,transparent 88%);filter:blur(25px);animation:ignition-drift 12s ease-in-out infinite alternate}
.ignition-lights{position:absolute;top:12%;right:9%;display:flex;gap:15px;transform:skew(-8deg)}
.ignition-lights i{display:block;width:clamp(23px,3.5vw,44px);height:clamp(23px,3.5vw,44px);border:2px solid #ffb26788;border-radius:50%;background:#400b07;box-shadow:inset 0 0 12px #000,0 0 15px #d535173a;animation:ignition-lamp .42s both}
.ignition-lights i:nth-child(2){animation-delay:.42s}.ignition-lights i:nth-child(3){animation-delay:.84s}
.ignition-sparks{position:absolute;right:5%;bottom:12%;width:45%;height:60%;opacity:.65;background:radial-gradient(circle at 16% 20%,#ffdf9e 0 1px,transparent 2px),radial-gradient(circle at 61% 42%,#ffac4b 0 2px,transparent 3px),radial-gradient(circle at 72% 71%,#ffb55a 0 1px,transparent 2px),radial-gradient(circle at 30% 82%,#ffefb4 0 1px,transparent 2px),radial-gradient(circle at 86% 17%,#ff8b27 0 2px,transparent 3px);background-size:145px 175px;animation:ignition-embers 8s linear infinite}
.ignition-status{position:absolute;z-index:3;top:24px;right:30px;font-size:10px;font-weight:900;letter-spacing:.12em;color:#ffbd84;background:#170b09cc;border:1px solid #f4764366;border-radius:40px;padding:9px 13px}
.ignition-status span{color:#ff6023;text-shadow:0 0 8px #ff6c23}
.hero .hero-actions .btn{min-width:205px;box-shadow:0 7px 22px #000b,0 0 18px #ff6e1b33}
@keyframes ignition-lamp{0%{background:#400b07;box-shadow:inset 0 0 12px #000}70%{background:#f34c18;box-shadow:0 0 38px #ff571f}100%{background:#ff9a30;box-shadow:0 0 22px #ff6c22,0 0 65px #e94a1266}}
@keyframes ignition-drift{from{transform:translate3d(-4%,0,0)}to{transform:translate3d(5%,-4%,0)}}
@keyframes ignition-embers{from{background-position:0 0}to{background-position:40px -160px}}
@media(max-width:650px){.hero{min-height:650px;padding-top:100px;padding-bottom:62px}.hero .ignition-title{font-size:clamp(49px,10.8vw,70px);line-height:.94}.ignition-status{top:19px;right:15px;font-size:9px}.ignition-lights{top:69px;right:18px;gap:9px}.hero .hero-actions .btn{min-width:0;width:100%}.ignition-road{width:130%;right:-40%}}
@media(prefers-reduced-motion:reduce){.ignition-smoke,.ignition-sparks,.ignition-lights i{animation:none}.ignition-lights i{background:#ff9a30;box-shadow:0 0 22px #ff6c22}}

/* Entrance only once per tab. Content remains interactive throughout. */
.ignition-first-visit .hero .ignition-title{animation:ignition-reveal .9s .55s both}
.ignition-first-visit .hero .hero-actions{animation:ignition-reveal .65s 1.25s both}
.ignition-first-visit .hero .ignition-scene{animation:ignition-scene-in 1.6s both}
@keyframes ignition-reveal{from{opacity:0;transform:translate3d(0,18px,0);filter:blur(5px)}to{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}}
@keyframes ignition-scene-in{from{opacity:.1;filter:brightness(.3)}to{opacity:1;filter:brightness(1)}}
@media(prefers-reduced-motion:reduce){.ignition-first-visit .hero .ignition-title,.ignition-first-visit .hero .hero-actions,.ignition-first-visit .hero .ignition-scene{animation:none}}

.arena-tagline{position:relative;z-index:3;margin:-7px 0 17px;font-size:clamp(18px,2.6vw,30px);font-weight:950;letter-spacing:.13em;color:#ffe4c5;text-shadow:0 2px 15px #000}
@media(max-width:650px){.arena-tagline{font-size:clamp(14px,4vw,19px);letter-spacing:.08em}}

/* Ranking identity: motorsport helmet badge + verified profile country. */
.rank-identity{display:flex;align-items:center;gap:10px;min-width:0}
.rank-names{display:flex;flex-direction:column;gap:2px;min-width:0}
.rank-names .rank-name{line-height:1.25}
.rank-pilot{font-size:12px;color:#ffc08b;line-height:1.4;overflow-wrap:anywhere}
.rank-helmet{position:relative;display:block;flex:0 0 39px;width:39px;height:39px;border-radius:50%;background:linear-gradient(145deg,#e6e6e6 4%,#ffad39 36%,#f15a13 67%,#72220c 100%);border:2px solid #ffd18a;box-shadow:inset -5px -5px 8px #4e180a88,0 0 10px #ff6d2340}
.rank-helmet:before{content:"";position:absolute;top:13px;left:5px;width:27px;height:11px;border-radius:10px 4px 8px 5px;background:linear-gradient(175deg,#102633,#030709);border:1px solid #ffd79b;transform:rotate(-8deg)}
.rank-helmet:after{content:"";position:absolute;right:1px;bottom:2px;width:13px;height:9px;background:#f5d5ac;border-radius:2px 2px 7px 2px;transform:rotate(-10deg)}
@media(max-width:650px){.rank-row{grid-template-columns:27px minmax(0,1fr) auto;gap:7px}.rank-identity{gap:8px}.rank-helmet{flex-basis:34px;width:34px;height:34px}.rank-helmet:before{top:11px;left:4px;width:24px;height:10px}.rank-pilot{font-size:11px}.rank-value{font-size:12px}}

/* Motorsport helmet illustration replaces the old CSS construction helmet. */
.rank-helmet{display:grid;place-items:center;background:linear-gradient(145deg,#3d241a,#100d0c);border:1px solid #ad6032;border-radius:12px;box-shadow:inset 0 1px #ffbd7330,0 0 13px #ff6d2325}
.rank-helmet:before,.rank-helmet:after{content:none;display:none}
.rank-helmet svg{display:block;width:100%;height:100%;overflow:visible}

/* Versus-game landing: fast first screen, no heavy video, clean controls. */
.hero{min-height:0!important;padding:30px clamp(18px,4vw,52px) 24px!important;background:radial-gradient(ellipse 75% 80% at 50% 72%,#3c150b 0%,#10090a 70%),url('/assets/garage-game-arena.svg') center/cover no-repeat!important}
.arena-hero-content{position:relative;z-index:4;width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}
.arena-eyebrow{font-size:clamp(10px,1.3vw,13px);letter-spacing:.2em;color:#ffba7a;font-weight:900;margin:0 0 12px}
.arena-eyebrow span{color:#ff6d1a}
.hero .ignition-title{font-size:clamp(56px,10vw,132px)!important;line-height:.86!important;margin:5px 0 13px!important;text-align:center;letter-spacing:-.065em}
.hero .ignition-title span{display:block}
.arena-tagline{margin:0 0 8px!important;font-size:clamp(13px,2.2vw,23px)!important;letter-spacing:.14em!important}
.arena-versus{position:relative;width:100%;max-width:1000px;height:clamp(175px,29vw,330px);display:flex;align-items:center;justify-content:center;isolation:isolate;margin:3px 0 0}
.arena-versus:before{content:"";position:absolute;inset:9% 5% 3%;background:radial-gradient(ellipse at 27% 60%,#fd3d214d,transparent 42%),radial-gradient(ellipse at 75% 60%,#28a6e657,transparent 43%);filter:blur(18px);z-index:-1}
.versus-car{width:54%;max-width:510px;filter:drop-shadow(0 17px 16px #000c);animation:versus-arrive-left .9s .2s both}
.versus-car svg{width:100%;height:auto;display:block}
.versus-car-left{transform-origin:center}
.versus-car-right{margin-left:-7%;animation-name:versus-arrive-right}
.versus-car-right svg{transform:scaleX(-1)}
.versus-mark{position:absolute;z-index:3;left:50%;top:43%;transform:translate(-50%,-50%) rotate(-8deg);font-size:clamp(57px,9vw,116px);line-height:1;font-style:italic;font-weight:1000;letter-spacing:-.1em;color:#fff5d4;text-shadow:0 5px 0 #d84e1a,0 0 22px #ff772d,0 13px 30px #000}
.hero .hero-actions{position:relative;z-index:4;margin:0!important;justify-content:center;width:100%;gap:10px}
.hero .hero-actions .btn{min-width:min(300px,44%);min-height:54px}
.arena-hero-bottom{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:720px;margin:17px auto 0;font-size:11px;font-weight:900;letter-spacing:.09em;color:#ffb981}
.arena-hero-bottom strong{color:#fff;font-size:16px}
.hero #serviceNotice{max-width:700px;margin:9px auto 0;font-size:12px}
.hero .ignition-lights{top:20px;right:18px;opacity:.7;transform:scale(.65);transform-origin:top right}
.hero .ignition-smoke{opacity:.65}
.compete-float.hidden-in-hero{opacity:0;visibility:hidden;pointer-events:none}
@keyframes versus-arrive-left{from{opacity:0;translate:-15% 5%}to{opacity:1;translate:0 0}}
@keyframes versus-arrive-right{from{opacity:0;translate:15% 5%}to{opacity:1;translate:0 0}}
@media(max-width:650px){.hero{padding:24px 14px 18px!important;border-radius:24px}.arena-eyebrow{font-size:9px;letter-spacing:.1em}.hero .ignition-title{font-size:clamp(54px,14vw,77px)!important;margin:5px 0 12px!important}.arena-tagline{font-size:12px!important;letter-spacing:.07em!important}.arena-versus{height:clamp(145px,45vw,195px);margin:0}.versus-car{width:60%}.versus-car-right{margin-left:-16%}.versus-mark{font-size:clamp(52px,15vw,75px)}.hero .hero-actions{flex-direction:column;align-items:stretch}.hero .hero-actions .btn{width:100%;min-width:0;min-height:50px}.arena-hero-bottom{font-size:9px;letter-spacing:.02em}.hero .ignition-lights{top:45px;right:8px;transform:scale(.45)}}
@media(prefers-reduced-motion:reduce){.versus-car{animation:none}}

/* Cinematic photo layer; original vector scene stays as a safe fallback until the image asset is uploaded. */
.arena-versus:has(.arena-photo:not([hidden])) .versus-car,.arena-versus:has(.arena-photo:not([hidden])) .versus-mark{display:none}
.arena-photo{width:100%;height:100%;object-fit:cover;object-position:center 52%;border-radius:14px;filter:drop-shadow(0 14px 22px #000a)}
.arena-photo[hidden]{display:none}
@media(max-width:650px){.arena-versus:has(.arena-photo:not([hidden])){height:clamp(230px,72vw,320px)}.arena-photo{object-fit:cover}}

/* Keep the VS above the realistic garage photo, without bringing back SVG cars. */
.arena-versus:has(.arena-photo:not([hidden])) .versus-mark{display:block;z-index:5;top:48%;font-size:clamp(56px,12vw,112px);pointer-events:none}
@media(max-width:650px){.arena-versus:has(.arena-photo:not([hidden])) .versus-mark{font-size:clamp(58px,16vw,82px);top:49%}}

/* PR #47 mobile polish: show the entire 16:9 photo, compact hero, clear live status. */
.arena-versus:has(.arena-photo:not([hidden])){height:auto;aspect-ratio:16/9;max-width:1000px;margin:4px auto 8px;overflow:visible}
.arena-versus:has(.arena-photo:not([hidden])) .arena-photo{width:100%;height:100%;object-fit:contain;object-position:center;border-radius:14px;filter:drop-shadow(0 9px 14px #0009)}
.arena-versus:has(.arena-photo:not([hidden])) .versus-mark{top:47%;font-size:clamp(48px,9vw,100px);color:#fff3d7;text-shadow:0 4px 0 #c63d0c,0 0 14px #ff8c34,0 0 32px #ff520a99,0 10px 22px #000}
.hero #serviceNotice{width:min(100%,700px);box-sizing:border-box;margin:12px auto 7px;padding:10px 12px}
@media(max-width:650px){
 .hero{padding:17px 14px 25px!important}
 .arena-eyebrow{margin-bottom:6px}
 .hero .ignition-title{font-size:clamp(50px,13vw,72px)!important;margin:2px 0 7px!important}
 .arena-tagline{margin:0 0 5px!important}
 .arena-versus:has(.arena-photo:not([hidden])){height:auto;aspect-ratio:16/9;margin:4px auto 10px}
 .arena-versus:has(.arena-photo:not([hidden])) .versus-mark{top:47%;font-size:clamp(48px,13vw,70px)}
 .hero .hero-actions{gap:8px}
 .hero .hero-actions .btn{min-height:48px}
 .arena-hero-bottom{margin:14px auto 0;gap:8px}
 .hero #serviceNotice{margin:11px auto 8px;padding:10px 12px}
}

/* Cinematic side-by-side duels, existing voting logic untouched. */
.duel{display:grid;grid-template-columns:minmax(0,1fr) 0 minmax(0,1fr);gap:12px;padding:18px;align-items:stretch;background:radial-gradient(ellipse at 50% 30%,#5a250e55,transparent 65%),linear-gradient(145deg,#170e0b,#08090d 70%);border:1px solid #b65c2d}
.duel>.kicker,.duel>.duel-total,.duel>.btn{grid-column:1/-1}
.duel>.kicker{margin:0;letter-spacing:.18em}
.duel-side{min-width:0;border:1px solid #a45c34;border-radius:16px;display:flex;flex-direction:column;overflow:hidden;box-shadow:inset 0 1px #ffffff20}
.duel-side-a{grid-column:1;border-color:#e75b31;background:linear-gradient(160deg,#35130d,#0d0b0c 75%)}
.duel-side-b{grid-column:3;border-color:#3b91d2;background:linear-gradient(160deg,#0b263d,#0b0c10 75%)}
.duel-photo{aspect-ratio:4/3;padding:5px;background:#0b0d12}
.duel-photo img{object-fit:contain;border-radius:10px}
.duel-info{padding:12px;gap:8px;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;flex:1}
.duel-info h3{font-size:clamp(17px,2.5vw,26px);line-height:1.05;margin:6px 0}
.duel-info .eyebrow{font-size:11px;overflow-wrap:anywhere}
.duel-info .btn{width:100%;min-width:0;min-height:44px;padding:9px 8px;font-size:12px;line-height:1.1;white-space:normal}
.duel>.vs{grid-column:2;grid-row:2;align-self:center;justify-self:center;z-index:2;width:62px;height:62px;margin:0 -31px;border:2px solid #ffb45a;border-radius:15px;transform:rotate(-8deg);font-size:31px;background:linear-gradient(150deg,#8a300b,#1c0b09);box-shadow:0 0 24px #ff6c2290,0 8px 22px #000;pointer-events:none}
.duel-total{text-align:center;margin:4px 0 0}
.battle-score-title{margin:5px 0 10px;font-size:12px;letter-spacing:.17em;font-weight:900;color:#ffc58b}
.battle-scoreboard{display:flex;align-items:center;gap:10px;width:100%}
.battle-scoreboard strong{font-size:12px;white-space:nowrap;color:#ffe2c6}
.battle-scorebar{display:flex;flex:1;min-width:0;height:13px;overflow:hidden;border-radius:100px;background:#241913;border:1px solid #ffac744d}
.battle-score-red{background:linear-gradient(90deg,#a21e17,#ff6b36)}
.battle-score-blue{background:linear-gradient(90deg,#37a6f3,#1553a3)}
@media(max-width:650px){.duel{padding:10px;gap:6px;border-radius:19px}.duel>.kicker{font-size:10px;margin:3px 0 5px}.duel-photo{aspect-ratio:4/3;padding:3px}.duel-info{padding:8px 6px;gap:5px}.duel-info h3{font-size:clamp(14px,3.6vw,19px)}.duel-info .eyebrow{font-size:9px;line-height:1.3}.duel-info .subtle{font-size:11px}.duel-info .btn{font-size:10px;min-height:46px;padding:7px 4px;border-radius:12px}.duel>.vs{width:44px;height:44px;font-size:23px;margin:0 -22px;border-radius:11px}.battle-scoreboard{gap:5px}.battle-scoreboard strong{font-size:10px}.battle-scorebar{height:11px}}
@media(prefers-reduced-motion:reduce){.duel,.duel-side,.battle-scorebar{animation:none;transition:none}}

/* PR48 revision: maximize vehicle imagery and anchor VS to the photo row. */
#duelList .duel{grid-template-columns:minmax(0,1fr) 0 minmax(0,1fr);gap:8px}
#duelList .duel-side{min-width:0;overflow:hidden}
#duelList .duel-photo{aspect-ratio:3/2;padding:0;background:#0b0d12;overflow:hidden}
#duelList .duel-enlarge{display:block;width:100%;height:100%;position:relative;overflow:hidden}
#duelList .duel-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:0}
#duelList .duel-enlarge-label{top:7px;right:7px;bottom:auto;transform:none;z-index:1}
#duelList .duel>.vs{grid-column:2;grid-row:2;align-self:start;justify-self:center;margin:35px -25px 0;z-index:4;width:50px;height:50px;font-size:27px;border-radius:13px}
#duelList .duel-info{gap:5px;padding:9px 8px}
#duelList .duel-info h3{font-size:clamp(15px,2.3vw,24px);line-height:1.1;overflow-wrap:anywhere}
#duelList .duel-info .btn{min-height:42px;font-size:11px;padding:7px 5px}
@media(max-width:650px){
 #duelList .duel{gap:6px;padding:9px}
 #duelList .duel-photo{aspect-ratio:3/2}
 #duelList .duel>.vs{margin:25px -19px 0;width:38px;height:38px;font-size:22px;border-radius:10px}
 #duelList .duel-info{padding:8px 6px}
 #duelList .duel-info h3{font-size:clamp(14px,3.5vw,18px)}
 #duelList .duel-info .btn{font-size:10px;min-height:40px;padding:6px 4px}
}

/* Final duel polish: legible votes, VS in the gutter, slightly taller photos. */
#duelList .duel-photo{aspect-ratio:5/3}
#duelList .duel-photo img{object-fit:contain;background:#0b0d12}
#duelList .duel>.vs{width:38px;height:38px;font-size:22px;line-height:1;margin:54px -19px 0;border-radius:10px;box-shadow:0 0 15px #ff7c3a88,0 5px 14px #000b}
#duelList .duel-info .btn{color:#fff9e9!important;background:linear-gradient(180deg,#c95218,#8e290d)!important;border:1px solid #ffc276!important;text-shadow:0 1px 2px #4c160a;font-weight:900;letter-spacing:.08em;min-height:42px}
#duelList .duel-info .btn:disabled{opacity:.7}
@media(max-width:650px){#duelList .duel-photo{aspect-ratio:5/3}#duelList .duel>.vs{width:32px;height:32px;font-size:18px;margin:39px -16px 0;border-radius:8px}#duelList .duel-info .btn{min-height:40px;font-size:12px;padding:7px}}

/* Official Garage Arena identity: crisp transparent SVG, no square image background. */
.topbar .brand.arena-brand{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:flex-start;min-width:0;gap:0;letter-spacing:normal;line-height:1}
.topbar .arena-brand img{display:block;width:clamp(148px,17vw,190px);height:auto;max-width:100%;filter:drop-shadow(0 2px 6px #0009)}
@media(max-width:650px){.topbar .arena-brand img{width:154px}}
@media(max-width:360px){.topbar .arena-brand img{width:136px}}

/* Arena competition presentation + real-time community podium. */
#arena{position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 0%,#ad41121c,transparent 65%),#0d0c0d}
#arena .section-head h2{letter-spacing:.015em;text-shadow:0 4px 0 #2c110c,0 0 24px #d45c2338}
#duelList .duel{position:relative;border:1px solid #d36b3e99;background:linear-gradient(160deg,#201511,#0b1017 55%,#1a1110);box-shadow:0 18px 55px #0009,inset 0 1px 0 #ffd4a12e}
#duelList .duel:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#ed4e22 0 46%,#090c11 49% 51%,#2477c7 54% 100%);pointer-events:none}
#duelList .duel-side-a .duel-photo{border-bottom:3px solid #e95c2e}
#duelList .duel-side-b .duel-photo{border-bottom:3px solid #367ac4}
#duelList .duel>.vs{background:linear-gradient(145deg,#ffb04c,#c64215 65%,#5b180c);color:#fff;transform:rotate(-7deg);border:2px solid #ffe0a0}
#duelList .duel .battle-scorebar{height:16px;border-radius:5px}
#duelList .duel .battle-score-red,#duelList .duel .battle-score-blue{transition:width .45s ease}
.battle-percentages{margin:7px 0 2px;font:700 12px Rajdhani,system-ui,sans-serif;letter-spacing:.13em;color:#f7cba8}
.hall-section{position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 0%,#8e42152e,transparent 70%),#101012;border:1px solid #9b603d66}
.hall-section .section-head h2{font-size:clamp(45px,8vw,94px);color:#fff0da;letter-spacing:.015em}
.hall-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:25px 0}
.hall-card{position:relative;min-width:0;padding:22px;border:1px solid #aa795a6b;border-radius:18px;background:linear-gradient(145deg,#261b16,#11141a 70%);box-shadow:0 18px 35px #0006;overflow:hidden}
.hall-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:#a3a7af}
.hall-place-1{border-color:#ffc36a9e;background:linear-gradient(140deg,#4a2b13,#17171a 70%);box-shadow:0 15px 45px #ec8a2a20}
.hall-place-1:before{background:linear-gradient(90deg,#fcae36,#fff2b6,#c97c22)}
.hall-place-2:before{background:linear-gradient(90deg,#6d879b,#e1ebf2,#71869a)}
.hall-place-3:before{background:linear-gradient(90deg,#a6613d,#f4b17c,#8d4e32)}
.hall-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hall-number{font:700 clamp(42px,6vw,78px)/1 Teko,Rajdhani,sans-serif;color:#ffbd71}
.hall-label{font:700 12px Rajdhani,system-ui,sans-serif;letter-spacing:.1em;color:#eec69f;text-align:right}
.hall-card h3{font:700 clamp(24px,3vw,40px)/1.05 Teko,Rajdhani,sans-serif;margin:12px 0 8px;overflow-wrap:anywhere;text-transform:uppercase}
.hall-owner{color:#d6c5b8;font-size:13px;overflow-wrap:anywhere}
.hall-score{display:block;margin-top:20px;font:700 24px Rajdhani,system-ui,sans-serif;color:#ffbf7a}
.hall-meter{height:6px;border-radius:6px;background:#3a302c;overflow:hidden;margin-top:9px}
.hall-meter span{display:block;height:100%;background:linear-gradient(90deg,#a94317,#ffbf65)}
.hall-ranking-link{display:inline-block;color:#ffce99;font:700 17px Rajdhani,system-ui,sans-serif;letter-spacing:.07em}
@media(max-width:700px){.hall-podium{grid-template-columns:1fr;gap:10px}.hall-card{padding:16px}.hall-card h3{font-size:30px}.hall-number{font-size:46px}.hall-score{margin-top:10px}.battle-percentages{font-size:10px}}
@media(prefers-reduced-motion:reduce){#duelList .duel .battle-score-red,#duelList .duel .battle-score-blue{transition:none}}

/* Mobile duel usability: legible state, compact score, safe anchor positioning. */
#arena,#llamas,#hall-of-fame,#ranking,#access,#myGarage{scroll-margin-top:clamp(125px,20vh,205px)}
#duelList .duel-info .btn:disabled{opacity:1!important;background:#29252a!important;border-color:#746b66!important;color:#d5cac4!important;box-shadow:none!important;text-shadow:none!important;cursor:not-allowed}
#duelList .duel-total .battle-percentages{margin:4px 0 0}
@media(max-width:650px){
 html{scroll-padding-top:155px}
 #arena,#llamas,#hall-of-fame,#ranking,#access,#myGarage{scroll-margin-top:155px}
 #duelList .duel-total{margin:0;padding:4px 2px 0}
 #duelList .battle-score-title{margin:2px 0 5px;font-size:11px;letter-spacing:.09em}
 #duelList .battle-scoreboard{gap:6px}
 #duelList .battle-scoreboard strong{font-size:10px}
 #duelList .battle-scorebar{height:10px}
 #duelList .battle-percentages{font-size:10px;line-height:1.2;letter-spacing:.04em}
 #duelList .duel-total>.subtle{margin:4px 0 0;font-size:11px;line-height:1.25}
 #duelList .duel-info .btn:disabled{font-size:11px!important;letter-spacing:.02em}
}

/* Compact head-to-head results: one vote count, one percentage bar. */
#duelList .duel-total{display:flex;flex-direction:column;gap:5px;margin-top:2px;padding:4px 0}
#duelList .battle-score-title{margin:0;font-size:12px;line-height:1.2}
#duelList .battle-scoreboard{gap:10px;align-items:center}
#duelList .battle-scoreboard .battle-percent{min-width:40px;font:800 18px/1 Rajdhani,system-ui,sans-serif;color:#f6ddc9}
#duelList .battle-scoreboard .battle-percent-a{text-align:right;color:#ff9970}
#duelList .battle-scoreboard .battle-percent-b{text-align:left;color:#87c1ff}
#duelList .duel-vote-explanation{margin:2px 0 0;color:#bfb2aa;font-size:12px;line-height:1.3}
#duelList .duel>.btn.ghost.small{justify-self:end;min-height:36px;padding:6px 18px;font-size:12px;opacity:.85}
@media(max-width:650px){
 #duelList .duel-total{gap:4px;padding:3px 0}
 #duelList .battle-score-title{font-size:11px}
 #duelList .battle-scoreboard{gap:7px}
 #duelList .battle-scoreboard .battle-percent{min-width:32px;font-size:15px}
 #duelList .duel-vote-explanation{font-size:11px}
 #duelList .duel>.btn.ghost.small{min-height:34px;font-size:11px;padding:5px 13px}
}

/* Arena visual refresh: photographic live podium and motorsport duel identity. */
#hallPodium .hall-card{isolation:isolate;padding:16px;border-radius:16px;background:linear-gradient(155deg,#24262b,#0c0e12 80%);border:1px solid #66594d;transition:transform .2s ease,border-color .2s ease}
#hallPodium .hall-card:hover{transform:translateY(-3px);border-color:#f6a953}
#hallPodium .hall-place-1{border-color:#d7a45b;box-shadow:0 12px 35px #0009,0 0 30px #e8992220}
#hallPodium .hall-place-2{border-color:#8999a8}
#hallPodium .hall-place-3{border-color:#98684d}
#hallPodium .hall-photo{position:relative;aspect-ratio:16/10;margin:12px 0 13px;overflow:hidden;border-radius:10px;border:1px solid #ffffff24;background:linear-gradient(135deg,#222b33,#0c0d10);display:grid;place-items:center}
#hallPodium .hall-photo img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .3s ease}
#hallPodium .hall-card:hover .hall-photo img{transform:scale(1.035)}
#hallPodium .hall-photo-stamp{position:absolute;left:9px;bottom:9px;background:#0b0c0de0;border:1px solid #ffffff45;border-radius:4px;padding:4px 9px;font:800 12px Rajdhani,system-ui,sans-serif;letter-spacing:.14em;color:#f4e5cf}
#hallPodium .hall-photo-unavailable:after{content:"FOTO NO DISPONIBLE";color:#b5a89a;font:700 12px Rajdhani,system-ui,sans-serif;letter-spacing:.1em}
#hallPodium .hall-card h3{margin:5px 0 6px}
#hallPodium .hall-score{margin-top:13px}
#duelList .duel{position:relative;isolation:isolate}
#duelList .duel-side{position:relative;border:1px solid #a65e32;background:linear-gradient(145deg,#231b1a,#101319);box-shadow:0 10px 28px #0008}
#duelList .duel-side-b{border-color:#668ba1;background:linear-gradient(145deg,#16232c,#0c1116)}
#duelList .duel-photo{background:radial-gradient(ellipse at 50% 75%,#4c2c1b,#101318 75%)}
#duelList .duel-side-b .duel-photo{background:radial-gradient(ellipse at 50% 75%,#223d51,#101318 75%)}
#duelList .vs{width:86px;height:86px;display:flex;flex-direction:column;gap:0;justify-content:center;border:2px solid #d49b56;background:linear-gradient(150deg,#3a2b20,#101216 70%);box-shadow:0 0 0 5px #12151a,0 8px 25px #000b;transform:rotate(-6deg)}
#duelList .vs-mark{font:900 43px/.95 Teko,Rajdhani,sans-serif;letter-spacing:.02em;color:#ffcf84}
#duelList .vs-subtitle{font:800 8px Rajdhani,system-ui,sans-serif;letter-spacing:.08em;color:#e4c2a0;white-space:nowrap}
@media(max-width:700px){#hallPodium .hall-photo{aspect-ratio:16/9}#duelList .vs{width:65px;height:65px;margin:9px auto}#duelList .vs-mark{font-size:34px}#duelList .vs-subtitle{font-size:7px}}
@media(prefers-reduced-motion:reduce){#hallPodium .hall-card,#hallPodium .hall-photo img{transition:none}#hallPodium .hall-card:hover{transform:none}#hallPodium .hall-card:hover .hall-photo img{transform:none}}

/* FIX: the old zero-width grid column made the VS overlap both car photos. */
#duelList.duels>.duel{grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);column-gap:8px}
#duelList .duel>.vs{grid-column:2;grid-row:2;position:relative;z-index:1;justify-self:center;align-self:center;width:66px;height:66px;min-width:0;min-height:0;margin:0;padding:0;border-radius:14px;transform:none;box-shadow:0 5px 15px #000a;pointer-events:none}
#duelList .vs-mark{font-size:36px;line-height:1}
#duelList .vs-subtitle{font-size:7px;line-height:1.1;letter-spacing:0;white-space:nowrap}
@media(max-width:700px){
 #duelList.duels>.duel{grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr);column-gap:4px}
 #duelList .duel>.vs{width:44px;height:50px;margin:0;padding:0;border-radius:9px;transform:none}
 #duelList .vs-mark{font-size:29px}
 #duelList .vs-subtitle{font-size:5.5px;letter-spacing:0}
}

/* Mobile-first: give real car photos more height, with zero cropping. */
@media(max-width:700px){
 #duelList.duels>.duel{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);column-gap:3px;padding:7px}
 #duelList .duel>.vs{width:30px;height:44px;border-radius:7px;border-width:1px;box-shadow:0 4px 10px #0009}
 #duelList .vs-mark{font-size:25px}
 #duelList .vs-subtitle{display:none}
 #duelList .duel-side{border-radius:12px}
 #duelList .duel-photo{aspect-ratio:4/3;max-height:none;padding:2px;min-height:0}
 #duelList .duel-photo img,#duelList .duel-enlarge img{object-fit:contain;object-position:center;width:100%;height:100%}
 #duelList .duel-enlarge{border-radius:8px}
 #duelList .duel-info{padding:8px 7px;display:flex;flex-direction:column;align-items:stretch;gap:7px}
 #duelList .duel-info button{width:100%;min-width:0;max-width:none;margin:0;min-height:42px}
 #duelList .duel-info h3{font-size:clamp(15px,3.9vw,19px);line-height:1.1}
}

/* Cinematic mobile duels: full-width photos and a distinct central VS stage. */
@media(max-width:700px){
 #duelList.duels>.duel{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:10px;align-items:stretch}
 #duelList .duel>.kicker{grid-column:1;grid-row:1;margin:2px 3px 12px;font-size:11px}
 #duelList .duel-side-a{grid-column:1;grid-row:2}
 #duelList .duel-side-b{grid-column:1;grid-row:4}
 #duelList .duel-side{width:100%;min-width:0;border-radius:16px}
 #duelList .duel-photo{aspect-ratio:16/10;max-height:none;min-height:0;padding:4px;display:block}
 #duelList .duel-enlarge{display:block;width:100%;height:100%}
 #duelList .duel-photo img,#duelList .duel-enlarge img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
 #duelList .duel-info{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px}
 #duelList .duel-info h3{font-size:clamp(21px,6vw,29px);line-height:1.05}
 #duelList .duel-info .eyebrow{font-size:11px}
 #duelList .duel-info button{width:auto;min-width:118px;max-width:150px;min-height:48px;font-size:11px;padding:8px}
 #duelList .duel>.vs{grid-column:1;grid-row:3;justify-self:center;align-self:center;position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;width:116px;height:84px;margin:-9px auto;border:2px solid #ffc67a;border-radius:18px;background:linear-gradient(135deg,#7a260e 0%,#e66a20 42%,#16131b 48%,#163d60 100%);box-shadow:0 0 0 6px #101015,0 0 28px #f97b3566,0 8px 24px #000c;transform:none;pointer-events:none}
 #duelList .vs-mark{font:900 66px/.83 Teko,Rajdhani,sans-serif;letter-spacing:.03em;color:#fff1d7;text-shadow:0 3px 0 #5e1c0b,0 0 15px #ffb86e}
 #duelList .vs-subtitle{display:block;font:800 9px/1 Rajdhani,system-ui,sans-serif;letter-spacing:.14em;color:#fff3e4;white-space:nowrap;margin-top:5px}
 #duelList .duel-total{grid-column:1;grid-row:5;margin:15px 2px 4px}
 #duelList .duel>.btn{grid-column:1;grid-row:6;justify-self:end}
}
@media(max-width:380px){
 #duelList .duel-info{grid-template-columns:minmax(0,1fr);gap:8px}
 #duelList .duel-info button{width:100%;max-width:none}
}
@media(prefers-reduced-motion:reduce){#duelList .duel>.vs{animation:none}}

/* Live leaderboard over the upper-right of the hero artwork. */
.arena-versus .hero-live-ranking{position:absolute;z-index:8;top:10px;right:10px;width:clamp(165px,23vw,235px);max-width:calc(100% - 20px);padding:8px;background:#0b0c10e8;border:1px solid #f28a42a8;border-radius:12px;box-shadow:0 7px 22px #000b;backdrop-filter:blur(9px);text-align:left;color:#fff2e3}
.hero-ranking-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px;padding:2px 3px 7px;border:0;background:none;color:#ffc17d;font:800 15px Rajdhani,system-ui,sans-serif;letter-spacing:.08em;text-align:left}
.hero-ranking-toggle small{display:block;color:#dbb8a0;font:700 9px Rajdhani,system-ui,sans-serif;letter-spacing:.14em}
.hero-ranking-chevron{font-size:18px}
.hero-ranking-list{list-style:none;padding:0;margin:0;display:grid;gap:2px}
.hero-ranking-item{display:flex;align-items:center;gap:5px;padding:4px 2px;border-top:1px solid #ffffff18;font:700 12px Rajdhani,system-ui,sans-serif}
.hero-ranking-place{flex:0 0 20px;color:#ffa760}
.hero-ranking-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero-ranking-votes{flex:none;color:#ffce99;font-size:10px}
.hero-ranking-placeholder{font:600 11px Rajdhani,system-ui,sans-serif;color:#cdb7a6}
@media(min-width:701px){.hero-ranking-chevron{display:none}}
@media(max-width:700px){
 .arena-versus .hero-live-ranking{top:7px;right:7px;width:clamp(128px,35%,165px);padding:6px;border-radius:9px}
 .hero-ranking-toggle{font-size:12px;padding:0 1px 3px}
 .hero-ranking-toggle small{font-size:8px}
 .hero-ranking-item{font-size:10px;padding:3px 1px;gap:3px}
 .hero-ranking-place{flex-basis:16px}
 .hero-ranking-votes{font-size:9px}
 .hero-ranking-item.hero-ranking-extra{display:none}
 .hero-live-ranking.expanded .hero-ranking-item.hero-ranking-extra{display:flex}
}

/* Ranking is now in the cover header, not on top of the blue car. */
.arena-hero-content>.hero-live-ranking{position:relative;z-index:8;top:auto;right:auto;display:block;width:min(235px,100%);max-width:100%;margin:0 0 10px auto;padding:8px;background:#0b0c10e8;border:1px solid #f28a42a8;border-radius:12px;box-shadow:0 7px 22px #0008;backdrop-filter:blur(9px);text-align:left;color:#fff2e3}
@media(max-width:700px){
 .arena-hero-content>.hero-live-ranking{width:min(190px,54%);margin:0 0 9px auto;padding:6px;border-radius:9px}
}

/* Full-width horizontal live ranking: never overlays the hero cars. */
.arena-hero-content>.hero-live-ranking{position:relative!important;inset:auto!important;display:flex!important;align-items:center;gap:10px;width:100%!important;max-width:100%!important;margin:0 0 12px!important;padding:8px 10px!important;border-radius:12px;background:#0c0c10ee;border:1px solid #c46a36;box-sizing:border-box;overflow:hidden}
.hero-live-ranking .hero-ranking-heading{display:flex;flex-direction:column;flex:0 0 auto;color:#ffc17d;font:900 14px/1.05 Rajdhani,system-ui,sans-serif;letter-spacing:.07em;white-space:nowrap}
.hero-live-ranking .hero-ranking-heading small{font-size:9px;letter-spacing:.1em;margin-top:4px;color:#c7a48b}
.hero-live-ranking .hero-ranking-list{display:flex;flex:1;min-width:0;align-items:center;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;list-style:none;margin:0;padding:2px 1px}
.hero-live-ranking .hero-ranking-list::-webkit-scrollbar{display:none}
.hero-live-ranking .hero-ranking-item{display:flex!important;flex:0 0 auto;align-items:center;gap:7px;min-width:170px;max-width:230px;padding:8px 10px;border:1px solid #8a4e31;border-radius:8px;background:linear-gradient(110deg,#28201d,#10141b);scroll-snap-align:start;box-sizing:border-box}
.hero-live-ranking .hero-ranking-place{flex:0 0 auto;font-size:16px;font-weight:900;color:#ffac6a}
.hero-live-ranking .hero-ranking-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.hero-live-ranking .hero-ranking-votes{flex:0 0 auto;font-size:10px}
.hero-live-ranking .hero-ranking-tied{border-color:#e7a260}
.hero-live-ranking .hero-ranking-placeholder{white-space:nowrap;padding:7px}
@media(max-width:700px){
 .arena-hero-content>.hero-live-ranking{gap:7px;padding:7px!important;margin-bottom:10px!important}
 .hero-live-ranking .hero-ranking-heading{font-size:12px}
 .hero-live-ranking .hero-ranking-heading small{font-size:8px}
 .hero-live-ranking .hero-ranking-item{min-width:165px;padding:7px 8px}
}
@media(prefers-reduced-motion:reduce){.hero-live-ranking .hero-ranking-list{scroll-behavior:auto}}

/* Championship tables: compact and distinct from the photographic Hall of Fame. */
#ranking .rank-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#ranking .dark-panel{min-width:0;padding:clamp(15px,2.5vw,26px);border:1px solid #a15b3b;border-radius:20px;background:linear-gradient(145deg,#251713,#101217 85%);box-shadow:inset 0 1px #f9ae5433,0 16px 32px #0005}
#ranking .dark-panel h3{font:800 clamp(26px,3.2vw,38px)/1 Teko,Rajdhani,sans-serif;font-style:normal;letter-spacing:.025em;color:#fff0df;margin:0 0 8px}
#ranking .dark-panel .subtle{font-size:13px;line-height:1.4;color:#c5a99a;margin:0 0 20px}
#ranking .rank-heading-icon{font-size:.7em;vertical-align:middle}
#ranking .rank-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px 10px;margin:0;padding:14px 2px;border-bottom:1px solid #ad663a55;background:transparent}
#ranking .rank-row:last-child{border-bottom:0}
#ranking .rank-position{font:800 34px/.9 Teko,Rajdhani,sans-serif;color:#ffb16c}
#ranking .rank-identity{min-width:0;display:flex;align-items:center;gap:10px}
#ranking .rank-helmet{flex:0 0 42px;width:42px;height:42px}
#ranking .rank-names{min-width:0;display:flex;flex-direction:column;gap:3px}
#ranking .rank-name{font:800 17px/1.15 Rajdhani,system-ui,sans-serif;color:#fff0e7;overflow-wrap:anywhere}
#ranking .rank-pilot{font:600 12px Rajdhani,system-ui,sans-serif;color:#dca77f}
#ranking .rank-value{white-space:nowrap;font:800 14px Rajdhani,system-ui,sans-serif;color:#ffbe7c}
#ranking .meter{grid-column:2/-1;margin:0;height:5px;border-radius:9px;background:#3b2a25}
#ranking .meter-fill{height:100%;background:linear-gradient(90deg,#dd4d1b,#ffbb68);border-radius:9px}
#ranking .rank-tie-label{align-self:start;color:#ffd1a0;font:800 10px Rajdhani,system-ui,sans-serif;letter-spacing:.1em}
#ranking .rank-tied .rank-position{color:#ffd18e}
#ranking .empty{border:1px dashed #995d42;border-radius:14px;padding:26px 16px;text-align:center;color:#c9b3a5;background:#130f10}
@media(max-width:900px){#ranking .rank-columns{grid-template-columns:1fr}}
@media(max-width:420px){#ranking .rank-row{grid-template-columns:32px minmax(0,1fr) auto;gap:7px}#ranking .rank-helmet{flex-basis:35px;width:35px;height:35px}#ranking .rank-name{font-size:15px}#ranking .rank-value{font-size:12px}}

.pilot-profile-link{display:inline-block;margin-top:5px;color:#ffb776;font:800 12px Rajdhani,system-ui,sans-serif;letter-spacing:.06em;text-decoration:underline;text-underline-offset:3px}.pilot-profile-link:focus-visible{outline:2px solid #ffc481;outline-offset:4px}

/* Signed-in pilot identity: real selected helmet, public name and country. */
.pilot-quick-bar{width:min(1200px,calc(100% - 16px));margin:8px auto 0;padding:9px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #955337;border-radius:12px;background:linear-gradient(90deg,#201718,#11141b);box-shadow:0 5px 20px #0005}
.pilot-quick-identity{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.pilot-quick-avatar{display:block;flex:0 0 44px;width:44px;height:44px;object-fit:contain;border-radius:50%;border:2px solid #d88046;background:#12151c;padding:2px}
.pilot-quick-meta{display:flex;flex-direction:column;gap:1px;min-width:0;text-align:left}
.pilot-quick-tag{color:#ffaf71;font:800 11px Rajdhani,system-ui,sans-serif;letter-spacing:.13em;white-space:nowrap}
.pilot-quick-name-row{display:flex;align-items:center;gap:7px;min-width:0}
#pilotQuickStatus{display:block;min-width:0;color:#fff0e3;font:800 17px/1.1 Rajdhani,system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pilot-quick-flag{flex-shrink:0;font-size:19px;line-height:1}
.pilot-quick-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;flex-shrink:0;max-width:55%;padding:8px 12px;border:1px solid #ff9c56;border-radius:9px;background:#332017;color:#ffddbb;text-decoration:none;font:800 12px Rajdhani,system-ui,sans-serif;letter-spacing:.04em;text-align:center}
.pilot-quick-link:hover{background:#5a2c18}
.garage-pilot-card-link{display:inline-flex;align-items:center;justify-content:center;margin:12px 9px 12px 0;min-height:44px}
.pilot-car-shortcut{display:inline-flex;margin-top:8px;font:800 13px Rajdhani,system-ui,sans-serif;color:#ffc08c;text-underline-offset:3px}
@media(max-width:460px){
 .pilot-quick-bar{padding:7px 9px;gap:7px}
 .pilot-quick-identity{gap:6px}
 .pilot-quick-avatar{flex-basis:38px;width:38px;height:38px;padding:1px}
 .pilot-quick-tag{font-size:10px}
 #pilotQuickStatus{font-size:15px}
 .pilot-quick-flag{font-size:17px}
 .pilot-quick-link{max-width:53%;font-size:11px;min-height:40px;padding:7px 9px;white-space:normal}
}

/* Pilot names link to public, read-only cards in duels and flame gallery. */
.garage-pilot-name-link{display:inline-flex;align-items:center;min-height:30px;max-width:100%;color:#ffd8b1!important;font-weight:900;text-decoration:underline;text-decoration-color:#f58f49;text-decoration-thickness:1.5px;text-underline-offset:4px;overflow-wrap:anywhere}
.garage-pilot-name-link::after{content:' ↗';padding-left:5px;color:#ff9b53;font-size:1.1em;text-decoration:none}
.garage-pilot-name-link:hover{color:#fff6eb!important;text-decoration-color:#fff6eb}
.garage-pilot-name-link:focus-visible{outline:2px solid #ffe1a9;outline-offset:3px;border-radius:3px}

/* Cleaner duel cards: one visible accent frame per rival, no nested photo outlines. */
#duelList .duel-side{overflow:hidden;border:1px solid #b76c3f;box-shadow:0 8px 20px #0006}
#duelList .duel-side-b{border-color:#6d9bb9}
#duelList .duel-photo{padding:0;border:0;border-radius:0;box-shadow:none;background:#11151b}
#duelList .duel-enlarge{border:0;border-radius:0;box-shadow:none;background:transparent}
#duelList .duel-photo img,#duelList .duel-enlarge img{border:0;border-radius:0;box-shadow:none}
#duelList .duel-info{border:0;border-top:1px solid #b76c3f55;box-shadow:none}
#duelList .duel-side-b .duel-info{border-top-color:#6d9bb955}
@media(max-width:700px){
 #duelList.duels>.duel{padding:8px}
 #duelList .duel-side{border-width:1px;border-radius:13px}
 #duelList .duel-photo{padding:0}
 #duelList .duel>.vs{box-shadow:0 5px 16px #0009;border-width:1px}
}

/* Compact mobile head-to-head: the two rival cards read as one matchup. */
@media(max-width:700px){
 #duelList.duels>.duel{gap:0;padding:8px 9px 12px}
 #duelList .duel>.kicker{margin:2px 3px 9px;font-size:11px}
 #duelList .duel-side{border-width:1px;border-radius:11px;box-shadow:0 4px 12px #0005}
 #duelList .duel-side-a{border-bottom-left-radius:8px;border-bottom-right-radius:8px}
 #duelList .duel-side-b{border-top-left-radius:8px;border-top-right-radius:8px}
 #duelList .duel>.vs{width:100px;height:65px;margin:-12px auto;border:1px solid #ffbe76;border-radius:13px;box-shadow:0 4px 12px #0008,0 0 12px #f97b3522}
 #duelList .vs-mark{font-size:52px}
 #duelList .vs-subtitle{font-size:8px;margin-top:1px}
 #duelList .duel-info{padding:10px}
 #duelList .duel-total{margin:8px 2px 4px}
}

/* Flame-forged VS emblem. Flames belong to the badge, never the car photographs. */
#duelList .duel>.vs{
 isolation:isolate;overflow:visible;
 border:2px solid #ffcf83;
 background:radial-gradient(ellipse at 40% 75%,#ff9b28 0%,#bc3511 30%,#2b1314 62%,#101b2b 100%);
 box-shadow:0 0 0 3px #140e10,0 0 18px #ff6a21aa,0 0 34px #e53d1855,0 7px 18px #000c;
}
#duelList .duel>.vs::before,#duelList .duel>.vs::after{
 content:"";position:absolute;z-index:-1;pointer-events:none;
 left:4%;right:4%;bottom:58%;height:95%;
 background:linear-gradient(0deg,#e83a0c 0%,#ff8b18 46%,#ffe08b 76%,transparent 100%);
 clip-path:polygon(0 100%,6% 61%,12% 83%,20% 26%,26% 66%,35% 6%,43% 58%,50% 16%,57% 69%,65% 0,73% 65%,80% 23%,87% 78%,94% 36%,100% 100%);
 filter:drop-shadow(0 0 7px #ff6c15);
 transform-origin:bottom center;
 animation:garage-vs-flame 2.2s ease-in-out infinite alternate;
}
#duelList .duel>.vs::after{
 left:13%;right:13%;bottom:68%;height:70%;opacity:.75;
 background:linear-gradient(0deg,#ff5c11,#ffbc4e 55%,#fff0a4 85%,transparent);
 animation-duration:1.65s;animation-direction:alternate-reverse;
}
#duelList .vs-mark{
 position:relative;z-index:1;color:#fff4df;
 text-shadow:0 2px 0 #722409,0 4px 0 #38110b,0 0 10px #ffb548,0 0 20px #f54b13;
}
#duelList .vs-subtitle{position:relative;z-index:1;color:#ffe5bb}
@keyframes garage-vs-flame{
 from{transform:scaleX(.96) scaleY(.9) skewX(-3deg);opacity:.82}
 to{transform:scaleX(1.04) scaleY(1.08) skewX(3deg);opacity:1}
}
@media(max-width:700px){
 #duelList .duel>.vs{border-width:2px;box-shadow:0 0 0 3px #140e10,0 0 17px #ff6a2199,0 5px 15px #000b}
 #duelList .duel>.vs::before{height:78%;bottom:67%}
 #duelList .duel>.vs::after{height:56%;bottom:74%}
}
@media(prefers-reduced-motion:reduce){
 #duelList .duel>.vs::before,#duelList .duel>.vs::after{animation:none}
}

/* Garage Arena stadium atmosphere: floodlights, asphalt grid and distant haze.
   Fixed, CSS-only scenery stays behind readable panels and car photographs. */
body{
 background-color:#08090d;
 background-image:
  radial-gradient(ellipse 50vw 42vh at 5% 15%,#ff681e24,transparent 80%),
  radial-gradient(ellipse 50vw 42vh at 95% 22%,#2b7ab32b,transparent 80%),
  radial-gradient(ellipse 75vw 30vh at 50% 95%,#c44e1521,transparent 90%),
  linear-gradient(180deg,#090b12 0%,#131016 47%,#090a0e 100%);
 background-attachment:fixed;
}
body::before{
 content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
 background-image:
  repeating-linear-gradient(90deg,transparent 0 72px,#ffad6620 73px,#0000 74px),
  repeating-linear-gradient(0deg,transparent 0 72px,#8b9bad12 73px,#0000 74px);
 opacity:.28;
 transform:perspective(500px) rotateX(53deg) scale(1.7) translateY(16%);
 transform-origin:50% 100%;
 mask-image:linear-gradient(180deg,transparent 5%,#000 70%);
}
body::after{
 content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
 background:
  radial-gradient(ellipse 3vw 45vh at 7% -7%,#ffb56c26,transparent 100%),
  radial-gradient(ellipse 3vw 45vh at 93% -7%,#8acaff25,transparent 100%),
  radial-gradient(ellipse 70vw 18vh at 50% 100%,#ff7b2517,transparent 100%);
 opacity:.8;
}
body>main,body>.topbar,body>.pilot-quick-bar,body>footer{position:relative;z-index:1}
body>.compete-float{position:fixed;z-index:90}
@media(max-width:700px){
 body{background-attachment:scroll}
 body::before{opacity:.16;transform:perspective(400px) rotateX(57deg) scale(1.5) translateY(20%)}
 body::after{opacity:.55}
}
@media(prefers-reduced-motion:reduce){
 body,body::before,body::after{animation:none}
}

/* Organic fire: soft curved tongues instead of triangular polygon teeth. */
#duelList .duel>.vs::before,#duelList .duel>.vs::after{
 clip-path:none;left:9%;right:9%;bottom:71%;height:75%;
 border-radius:58% 42% 35% 40% / 84% 78% 22% 18%;
 background:
  radial-gradient(ellipse 15% 85% at 16% 90%,#ffdf81 0%,#ff8b21 40%,transparent 74%),
  radial-gradient(ellipse 17% 92% at 38% 82%,#ffe19a 0%,#ff7c18 42%,transparent 75%),
  radial-gradient(ellipse 16% 90% at 62% 85%,#ffe29c 0%,#ff6e12 43%,transparent 78%),
  radial-gradient(ellipse 16% 80% at 85% 94%,#ffca66 0%,#ec4a0a 45%,transparent 76%);
 filter:drop-shadow(0 0 9px #ff681c);
 animation:garage-organic-flame 2.1s ease-in-out infinite alternate;
}
#duelList .duel>.vs::after{
 left:22%;right:22%;bottom:78%;height:60%;opacity:.9;
 border-radius:40% 60% 48% 52% / 92% 88% 18% 22%;
 background:
  radial-gradient(ellipse 27% 95% at 25% 100%,#fff2bb 0%,#ffc15d 45%,transparent 80%),
  radial-gradient(ellipse 28% 95% at 75% 100%,#fff0ad 0%,#ffad39 44%,transparent 80%);
 animation-duration:1.6s;animation-direction:alternate-reverse;
}
@keyframes garage-organic-flame{
 from{transform:translateY(2px) rotate(-3deg) scaleY(.9);opacity:.8}
 to{transform:translateY(-2px) rotate(3deg) scaleY(1.08);opacity:1}
}
/* Visible stadium side-lighting between opaque content panels. */
body{
 background-image:
  radial-gradient(ellipse 22vw 70vh at 0% 36%,#f46b304d,transparent 95%),
  radial-gradient(ellipse 22vw 70vh at 100% 40%,#438bd34a,transparent 95%),
  radial-gradient(ellipse 70vw 32vh at 50% 95%,#b64e2633,transparent 95%),
  linear-gradient(180deg,#090b12,#151017 48%,#090a0e);
}
body::after{
 background:
  linear-gradient(108deg,transparent 0 8%,#ffad6330 12%,transparent 21%),
  linear-gradient(252deg,transparent 0 8%,#82b8f02b 12%,transparent 21%),
  radial-gradient(ellipse 70vw 18vh at 50% 100%,#ff7b2529,transparent);
 opacity:.65;
}
main>.panel{background:linear-gradient(140deg,#1e1210e8,#0e0b0bef);box-shadow:0 12px 32px #0008,0 0 20px #ed6d2412}
@media(max-width:700px){
 body::after{opacity:.45}
 #duelList .duel>.vs::before{bottom:72%;height:63%}
 #duelList .duel>.vs::after{bottom:77%;height:48%}
 main>.panel{background:linear-gradient(140deg,#1e1210ed,#0e0b0bf2)}
}
@media(prefers-reduced-motion:reduce){
 #duelList .duel>.vs::before,#duelList .duel>.vs::after{animation:none}
}

/* Final SVG flame silhouette: override all earlier polygon/pseudo-element fire. */
#duelList .duel>.vs::before{
 content:"";position:absolute;z-index:-1;pointer-events:none;
 left:-9%;right:-9%;bottom:66%;height:110%;
 border:0;border-radius:0;clip-path:none;
 background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20220%20140%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22f%22%20x2%3D%22.3%22%20y2%3D%220%22%3E%3Cstop%20stop-color%3D%22%23b92308%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23ff8b19%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ffe9a3%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22url(%23f)%22%3E%3Cpath%20d%3D%22M12%20140%20C-2%20109%2017%2089%2026%2065%20C29%2094%2044%2091%2045%2071%20C62%2099%2066%20118%2074%20140Z%22%2F%3E%3Cpath%20d%3D%22M65%20140%20C45%20104%2074%2068%2082%2022%20C100%2060%20107%2065%20112%209%20C137%2049%20121%2092%20148%20140Z%22%2F%3E%3Cpath%20d%3D%22M135%20140%20C116%20107%20148%2081%20158%2042%20C169%2080%20187%2084%20189%2062%20C217%20100%20207%20124%20218%20140Z%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23ffe7a0%22%20opacity%3D%22.8%22%3E%3Cpath%20d%3D%22M34%20140%20C29%20116%2045%20103%2046%2091%20C56%20110%2054%20124%2065%20140Z%22%2F%3E%3Cpath%20d%3D%22M88%20140%20C77%20110%20102%2090%20105%2062%20C119%2096%20115%20115%20134%20140Z%22%2F%3E%3Cpath%20d%3D%22M159%20140%20C150%20116%20168%20101%20172%2084%20C181%20115%20191%20123%20199%20140Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center bottom / 100% 100% no-repeat;
 filter:drop-shadow(0 0 9px #ff681c) drop-shadow(0 0 16px #e64012);
 transform-origin:50% 100%;
 animation:garage-organic-flame 2.1s ease-in-out infinite alternate;
}
#duelList .duel>.vs::after{content:none!important;display:none!important}
@media(max-width:700px){
 #duelList .duel>.vs::before{left:-8%;right:-8%;bottom:69%;height:95%}
}
@media(prefers-reduced-motion:reduce){
 #duelList .duel>.vs::before{animation:none}
}

/* Motorsport heading system, approximating the custom GA logo using existing Teko. */
.section-head h2,.hall-section .section-head h2,#ranking .dark-panel h3,
.garage-start-step h3,.hero .ignition-title{
 font-family:Teko,"Arial Narrow",Impact,sans-serif;
 font-weight:700;font-style:italic;
 text-transform:uppercase;letter-spacing:.008em;
 text-shadow:0 4px 0 #35140d,0 8px 16px #0009;
}
.section-head h2,.hall-section .section-head h2{
 line-height:1.02;overflow-wrap:normal;word-break:normal;
}
@media(max-width:700px){
 .section-head h2,.hall-section .section-head h2{font-size:clamp(38px,10vw,62px)}
}
/* Section arrival: never hide text while scrolling, simply animate when it enters. */
@keyframes garage-section-arrive{
 from{opacity:.74;transform:translate3d(0,18px,0)}
 to{opacity:1;transform:translate3d(0,0,0)}
}
.garage-section-arrived{animation:garage-section-arrive .62s cubic-bezier(.2,.7,.2,1) both}
@media(prefers-reduced-motion:reduce){
 .garage-section-arrived{animation:none!important}
}

/* Keep the flames inside the VS area, away from car names and vote controls. */
#duelList .duel>.vs::before{
 left:9%;right:9%;bottom:83%;height:50%;
 filter:drop-shadow(0 0 5px #ff681c) drop-shadow(0 0 8px #e6401270);
 animation:none;
}
@media(max-width:700px){
 #duelList .duel>.vs::before{left:10%;right:10%;bottom:85%;height:45%}
}


/* One definitive VS effect: central translucent flame tongues, not side stickers. */
#duelList .duel>.vs{
 position:relative;isolation:isolate;overflow:visible;
 width:104px;height:82px;margin:-15px auto -12px;
 border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;filter:none!important;
}
#duelList .duel>.vs::before,#duelList .duel>.vs::after{
 content:none!important;display:none!important;
}
#duelList .duel>.vs .vs-flame{
 position:absolute;pointer-events:none;z-index:0;
 width:24px;height:43px;top:3px;left:calc(50% - 12px);
 border-radius:80% 15% 70% 35% / 85% 30% 75% 35%;
 background:linear-gradient(12deg,#f45b0a99 0%,#ff8d2180 40%,#ffd28a66 75%,transparent 100%);
 box-shadow:0 0 5px #fa6a192b;
 filter:blur(.8px);
 transform-origin:50% 95%;
}
#duelList .duel>.vs .vs-flame-left{
 left:calc(50% - 31px);top:9px;width:19px;height:31px;
 animation:garage-central-flame-a 1.9s ease-in-out infinite alternate;
}
#duelList .duel>.vs .vs-flame-right{
 left:calc(50% + 11px);top:7px;width:20px;height:34px;
 animation:garage-central-flame-b 2.4s ease-in-out infinite alternate;
}
#duelList .duel>.vs .vs-embers{
 position:absolute;pointer-events:none;z-index:1;inset:0 12px 30px;
 background:
 radial-gradient(circle,#ffc76c 0 1px,transparent 2px) 25% 35%/26px 28px no-repeat,
 radial-gradient(circle,#ff9a43 0 1px,transparent 2px) 82% 20%/24px 24px no-repeat;
 animation:garage-central-embers 3.3s linear infinite;
}
#duelList .duel>.vs .vs-mark{
 position:relative;z-index:2;font:900 72px/.82 Teko,Impact,sans-serif;
 color:#f6eee1;-webkit-text-stroke:1px #a64d20;
 text-shadow:0 2px 0 #9c4018,0 5px 0 #42170b,0 0 5px #f97620;
}
#duelList .duel>.vs .vs-subtitle{display:none!important}
@keyframes garage-central-flame-a{
 from{transform:rotate(-9deg) scale(.85,.87);opacity:.52}
 to{transform:rotate(6deg) scale(1.02,1.1);opacity:.82}
}
@keyframes garage-central-flame-b{
 from{transform:rotate(7deg) scale(.95,.96);opacity:.74}
 to{transform:rotate(-7deg) scale(.88,1.13);opacity:.46}
}
@keyframes garage-central-embers{
 from{transform:translateY(3px);opacity:0}
 35%{opacity:.65}
 to{transform:translateY(-8px);opacity:0}
}
@media(prefers-reduced-motion:reduce){
 #duelList .duel>.vs .vs-flame,#duelList .duel>.vs .vs-embers{animation:none!important}
}

/* v104: tighten the mobile gap between pilot quick card and Arena hero. */
@media(max-width:700px){
 body:has(#pilotQuickBar:not([hidden])) #inicio{padding-top:0!important;margin-top:0!important}
 body:has(#pilotQuickBar:not([hidden])) #inicio>.hero{margin-top:20px!important}
 #pilotQuickBar:not([hidden]){margin-bottom:0!important}
}

/* Arena scroll lighting v105: restrained cinematic entry, no overlays on cars. */
@keyframes arena-scroll-entrance{
 from{opacity:.82;transform:translate3d(0,22px,0);filter:brightness(.88)}
 to{opacity:1;transform:translate3d(0,0,0);filter:brightness(1)}
}
@keyframes arena-scroll-edge{
 from{opacity:.15;transform:scaleX(.35)}
 to{opacity:.85;transform:scaleX(1)}
}
@media(prefers-reduced-motion:no-preference){
 @supports(animation-timeline:view()){
  #inicio>section.panel,#inicio>.hero{
   animation:arena-scroll-entrance linear both;
   animation-timeline:view();animation-range:entry 0% entry 75%;
  }
  #inicio>section.panel::before{
   animation:arena-scroll-edge linear both;
   animation-timeline:view();animation-range:entry 0% entry 65%;
  }
 }
}
#inicio>section.panel{position:relative}
#inicio>section.panel::before{
 content:"";pointer-events:none;position:absolute;top:0;left:18%;right:18%;height:2px;
 background:linear-gradient(90deg,transparent,#ff9149 36%,#ffd09a 50%,#ff9149 64%,transparent);
 opacity:.45;transform-origin:center;z-index:1;
}
@media(prefers-reduced-motion:reduce){
 #inicio>section.panel,#inicio>.hero,#inicio>section.panel::before{animation:none!important;filter:none!important;transform:none!important}
}


/* v106 · Arena cinematic poster: visual parity with the approved concept,
   retaining the existing real car artwork and all functional controls. */
.hero{background:radial-gradient(ellipse at 50% 72%,#5b230f88,transparent 65%),linear-gradient(155deg,#110b0b,#080a0e 70%)!important;border:1px solid #f47636!important;box-shadow:inset 0 0 0 2px #ff8b2314,0 0 22px #e75b1a2c!important}
.arena-hero-content{gap:0}
.arena-eyebrow{color:#f8e3ce;letter-spacing:.22em}
.hero .ignition-title{font-style:italic!important;filter:drop-shadow(0 5px 0 #481b13) drop-shadow(0 8px 7px #000a)}
.hero .ignition-title span{color:#ff911d;text-shadow:0 3px #9a330f,0 0 16px #ff731a66}
.hero-live-ranking{border-radius:19px!important;background:linear-gradient(100deg,#080b10ed,#131015ed)!important;box-shadow:inset 0 0 0 1px #ff8e3440,0 5px 20px #0008}
.arena-versus{overflow:hidden;border-radius:19px;border:1px solid #e87a3b66;background:#090a0e;box-shadow:0 12px 24px #0009,0 0 20px #ff6d1720;margin:12px 0 15px!important}
.arena-versus::before{z-index:1!important;inset:0!important;filter:none!important;background:linear-gradient(90deg,#f4341b1b,transparent 40%,transparent 60%,#2686ff1c),linear-gradient(0deg,#06060944,transparent 42%)!important;pointer-events:none}
.arena-versus .arena-photo{width:100%;height:100%;object-fit:cover;display:block}
.arena-versus .versus-mark{z-index:4!important;top:48%!important;font-family:Teko,Impact,sans-serif!important;font-size:clamp(65px,11vw,132px)!important;font-style:italic!important;font-weight:900!important;letter-spacing:-.055em!important;color:#f5eee3!important;-webkit-text-stroke:1px #a9a5a0;text-shadow:0 2px #9b471f,0 5px #56200e,0 0 17px #ff7a30,0 12px 25px #000e!important}
.arena-versus .versus-mark::before{content:"";position:absolute;z-index:-1;inset:-38% -40%;border:2px solid #ff8e3950;border-radius:50%;background:radial-gradient(ellipse,#ff781f2c,transparent 68%);box-shadow:0 0 22px #ff691c40;pointer-events:none}
.arena-versus .versus-mark::after{content:"";position:absolute;z-index:-1;left:48%;top:-24%;height:150%;width:3px;transform:rotate(37deg);background:linear-gradient(transparent,#ffc26d,#ff691c,transparent);box-shadow:0 0 10px #ff691c;pointer-events:none}
.hero .hero-actions{margin:0!important}
.hero .hero-actions .btn.primary{background:linear-gradient(180deg,#ffe08a,#ffa321 38%,#f26b0a)!important;color:#170b04!important;border:2px solid #ffe5a4!important;box-shadow:inset 0 2px 4px #fff7,0 5px 0 #8d2b0d,0 8px 25px #f5652159!important}
.hero .hero-actions .btn.dark{border:2px solid #ff7e35!important;background:linear-gradient(110deg,#24110e,#100d10)!important}
@media(max-width:700px){
 .hero{padding:23px 14px 20px!important}
 .arena-versus{height:clamp(170px,53vw,270px)!important;margin:12px 0 16px!important}
 .arena-versus .versus-mark{font-size:clamp(56px,15vw,86px)!important}
 .hero .hero-actions .btn{min-height:56px!important}
}
@media(prefers-reduced-motion:reduce){.arena-versus .versus-mark{animation:none!important}}

/* First car onboarding, and real private moderation KPIs. */
.garage-first-car{margin:0 0 20px;padding:clamp(22px,4vw,36px);border:1px solid #ffa75c;border-radius:22px;background:linear-gradient(125deg,#34190f,#211411 55%,#12131b);box-shadow:inset 0 1px #ffcd9c55,0 16px 35px #0008,0 0 28px #f46a1b18}
.garage-first-car-kicker{margin:0 0 7px;color:#ffb477;font-weight:900;letter-spacing:.14em;font-size:12px}
.garage-first-car h3{margin:0 0 8px;color:#fff0d7;font:italic 700 clamp(34px,5.5vw,59px)/1 Teko,Impact,sans-serif;letter-spacing:.02em}
.garage-first-car h3 span{color:#ffa447;overflow-wrap:anywhere}
.garage-first-car>p:not(.garage-first-car-kicker){max-width:690px;color:#f3d4bb}
.garage-first-car .btn{margin:12px 0 8px;min-height:54px}
.garage-first-car-note{font-size:13px}
#uploadForm,#myCars{scroll-margin-top:125px}
.garage-admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:0 0 20px}
.garage-admin-stat{display:flex;flex-direction:column;gap:5px;padding:19px 14px;border-radius:16px;border:1px solid #8b4e35;background:linear-gradient(155deg,#271912,#120f10)}
.garage-admin-stat strong{font:700 clamp(29px,3.7vw,45px)/1 Teko,Impact,sans-serif;color:#fff2dd;font-variant-numeric:tabular-nums}
.garage-admin-stat span{color:#e6b48d;font-size:11px;font-weight:800;letter-spacing:.08em}
@media(max-width:700px){.garage-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.garage-first-car .btn{width:100%}}

/* v108: keep signed-in pilot identity visually connected to the arena hero on phones. */
@media(max-width:700px){
 body:has(#pilotQuickBar:not([hidden])) #inicio{padding-top:0!important;margin-top:0!important}
 body:has(#pilotQuickBar:not([hidden])) #inicio>.hero{margin-top:8px!important}
 #pilotQuickBar:not([hidden]){margin-bottom:0!important}
}

/* v109: hidden pilot bar must not occupy layout space. display:flex otherwise overrides the browser's [hidden] default. */
#pilotQuickBar[hidden]{display:none!important}
@media(max-width:700px){#inicio>.hero{margin-top:8px!important}}

/* v112: never pull the hero over the header; preserve a visible mobile gutter. */
@media(max-width:700px){
 #inicio{margin-top:0!important;padding-top:0!important}
 #inicio>.hero{margin-top:14px!important}
}

/* v113: admin cars counter is an accessible drill-down, not a decorative tile. */
.garage-admin-stat-action{width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}
.garage-admin-stat-action:hover,.garage-admin-stat-action:focus-visible{border-color:#ff9a4e;box-shadow:0 0 0 2px #f57a3440}
.garage-admin-cars-list{margin:16px 0 20px}
.garage-admin-car-row{display:flex;align-items:center;gap:15px}
.garage-admin-car-row>img{width:110px;height:82px;object-fit:cover;border-radius:10px;flex-shrink:0}
.garage-admin-car-details{min-width:0;display:flex;flex-direction:column;gap:7px}
@media(max-width:450px){.garage-admin-car-row>img{width:85px;height:70px}}

/* Garage Arena: official pilot helmets and competition cards in flame ranking. */
#rankFlames{display:grid;gap:13px}
#rankFlames .rank-flame-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:17px 13px;border:1px solid #9c563b;border-radius:18px;background:linear-gradient(125deg,#271915,#111116 75%);box-shadow:inset 0 1px #ffbf7a20,0 8px 22px #0005}
#rankFlames .rank-flame-card:first-child{border-color:#e6a35c;box-shadow:0 0 19px #ed75201c,inset 0 1px #ffcb8b40}
#rankFlames .rank-helmet{flex:0 0 58px!important;width:58px!important;height:58px!important;border-radius:14px!important;overflow:hidden;border:1px solid #d5854a;background:#0e0d11}
#rankFlames .rank-helmet img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
#rankFlames .rank-helmet:before,#rankFlames .rank-helmet:after{display:none!important}
#rankFlames .rank-position{font-size:36px!important;line-height:1}
#rankFlames .rank-identity{gap:11px!important}
#rankFlames .rank-flame-detail{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#ffb779;font-weight:700;font-size:13px}
#rankFlames .rank-flame-votes{color:#d4b4a1;font-weight:500}
#rankFlames .meter{grid-column:1/-1!important;height:8px!important;margin:0!important}
#rankFlames .rank-tie-label{font-size:11px}
@media(max-width:410px){#rankFlames .rank-flame-card{grid-template-columns:34px minmax(0,1fr) auto;padding:13px 9px;gap:7px}#rankFlames .rank-helmet{flex-basis:48px!important;width:48px!important;height:48px!important}#rankFlames .rank-position{font-size:29px!important}#rankFlames .rank-value{font-size:13px!important}}

/* Keep official helmet images inside both duel and flame ranking badges. */
#ranking .rank-helmet{box-sizing:border-box;min-width:0;max-width:58px;overflow:hidden;isolation:isolate}
#ranking .rank-helmet img{display:block;box-sizing:border-box;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;object-position:center;position:static;transform:none}

/* Historical ballots from test accounts remain visible but never look official. */
#duelList .duel-side .duel-info .btn.non-counting-vote:disabled{
  white-space:normal!important;overflow-wrap:anywhere;line-height:1.15!important;
  font-size:clamp(10px,2.5vw,13px)!important;letter-spacing:.015em!important;
  background:#25252c!important;border:1px solid #b78b56!important;
  color:#f5c58c!important;opacity:1!important;box-shadow:none!important;
}
#duelList .duel-total .duel-test-notice{
  color:#ffd09a;font-weight:750;padding:10px 12px;border:1px solid #a57a4e;
  border-radius:10px;background:#302319;text-align:left;
}


/* Private, on-demand activity. No push service or unread counters. */
.garage-activity{display:block;margin:18px 0;padding:0;border:1px solid #b86a37;border-radius:16px;
 background:linear-gradient(145deg,#2e1a13,#11131a);box-shadow:0 5px 20px #0005}
.garage-activity summary{list-style:none;cursor:pointer;padding:16px 18px;
 color:#ffca9c;font-family:Teko,"Arial Narrow",Impact,sans-serif;font-weight:700;
 font-size:clamp(23px,5vw,29px);letter-spacing:.025em}
.garage-activity summary::-webkit-details-marker{display:none}
.garage-activity summary:after{content:"+";float:right;margin-left:10px}
.garage-activity[open] summary:after{content:"−"}
.garage-activity summary:focus-visible{outline:3px solid #ffd19a;outline-offset:2px;border-radius:12px}
.garage-activity-inner{padding:0 16px 17px}
.garage-activity-inner>.subtle{font-size:14px}
.garage-activity-items{display:grid;gap:10px;margin-top:15px}
.garage-activity-item{min-width:0;border:1px solid #7a452d;border-radius:12px;padding:13px;
 background:#130f11;color:#f8e9db;overflow-wrap:anywhere}
.garage-activity-item strong{display:block;color:#ffb574;font-family:Teko,"Arial Narrow",Impact,sans-serif;
 font-size:21px;letter-spacing:.03em}
.garage-activity-item p{margin:5px 0 9px;font-size:14px;line-height:1.5}
.garage-activity-item .subtle{color:#cdb7a5}
.garage-activity-item a{font-size:13px}
.garage-comment-context{margin:9px 0;padding:9px 12px;border-left:3px solid #de863d;
 background:#231713;border-radius:0 9px 9px 0}
.garage-comment-context strong{font-size:12px;color:#e2ab80}
.garage-comment-context p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}

.pilot-quick-activity{display:inline-block;align-self:flex-start;margin:2px 0 0;padding:0;
 border:0;background:transparent;color:#ffb67c;
 font:700 11px Rajdhani,system-ui,sans-serif;letter-spacing:.09em;text-decoration:underline;
 text-underline-offset:3px;cursor:pointer}
.pilot-quick-activity:focus-visible{outline:2px solid #ffcb9a;outline-offset:3px}
#garageActivity{scroll-margin-top:150px}

/* Do not leak registration-only messages into an authenticated session. */
#authMessage[hidden]{display:none!important}

/* New activity indicator, scoped to each pilot in the current browser. */
.garage-new-count:not([hidden]){
 display:inline-flex;align-items:center;justify-content:center;
 min-width:22px;height:22px;padding:2px 6px;margin-left:6px;
 border-radius:999px;background:#ff8a37;border:1px solid #ffcf8d;
 color:#180c06;font:800 12px Rajdhani,system-ui,sans-serif;
 line-height:1;vertical-align:middle;box-shadow:0 0 10px #fb6e1f66;
}
.garage-new-count[hidden]{display:none!important}
.garage-activity-new{
 display:inline-block;margin:5px 0 3px;padding:3px 8px;
 border:1px solid #ffa968;border-radius:7px;
 background:#352017;color:#ffd3ab;
 font:700 12px Rajdhani,system-ui,sans-serif;
 letter-spacing:.07em;
}
@media(max-width:520px){
 .pilot-quick-activity .garage-new-count{min-width:20px;height:20px;padding:2px 5px;font-size:11px}
}


/* Moderated conversations: root comments and their approved replies stay together. */
.comment-thread{
 border-bottom:1px solid #6b3624;padding:12px 0;min-width:0;
}
.comment-thread>.comment-original{border-bottom:0;padding:8px 0;}
.comment-thread .comment p{white-space:pre-wrap;overflow-wrap:anywhere;}
.comment-replies{
 display:grid;gap:10px;margin:8px 0 8px 12px;padding:2px 0 2px 15px;
 border-left:3px solid #d77b43;
}
.comment-replies .comment-reply{
 border:1px solid #693924;border-radius:11px;padding:12px 13px;
 background:linear-gradient(130deg,#2b1c18,#151217);min-width:0;
}
.garage-reply-context{
 display:block;margin:0 0 7px;color:#ffbb85;
 font:700 12px Rajdhani,system-ui,sans-serif;
 letter-spacing:.025em;overflow-wrap:anywhere;
}
.garage-reply-toggle{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:40px;margin:8px 0;white-space:normal;max-width:100%;
 font-size:13px;
}
.garage-reply-form{padding:9px 0 12px;}
.garage-reply-form[hidden]{display:none!important;}
.garage-reply-form textarea,.garage-new-comment textarea{
 display:block;width:100%;max-width:100%;box-sizing:border-box;
}
@media(max-width:600px){
 .comment-replies{margin-left:6px;padding-left:10px;}
 .comment-replies .comment-reply{padding:11px;}
 .garage-reply-toggle{width:100%;max-width:100%;}
}

/* Clearly identify whose private notifications are currently displayed. */
.garage-activity-account{
 display:block;max-width:100%;padding:9px 12px;margin:0 0 12px;
 border:1px solid #a65d32;border-radius:10px;background:#211711;
 color:#ffd4b0;font:700 14px Rajdhani,system-ui,sans-serif;
 line-height:1.4;overflow-wrap:anywhere;
}
.garage-activity-account:empty{display:none}


/* Garage improvements: compact disclosure and accessible multiple selection */
.garage-mod-picker{margin:17px 0 12px;padding:15px;border:1px solid #985333;border-radius:17px;background:#100d0e}
.garage-mod-picker>label:first-child{font-size:16px;font-weight:950;color:#ffcc8b;margin:0 0 8px}
.garage-mod-picker .subtle{line-height:1.5;margin:7px 0 11px}
#carModsMenu{border:1px solid #bf6939;border-radius:14px;background:#171011;overflow:hidden;margin:12px 0}
#carModsMenu>summary{cursor:pointer;list-style:none;min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;font-weight:900;font-size:14px;letter-spacing:.02em;color:#ffd4a7}
#carModsMenu>summary::-webkit-details-marker{display:none}
#carModsMenu>summary:after{content:'⌄';font-size:25px;line-height:1}
#carModsMenu[open]>summary:after{content:'⌃'}
#carModsMenu>summary #carModsCount{font-size:12px;font-weight:750;padding:4px 9px;border-radius:999px;background:#552714;color:#ffe0aa;white-space:nowrap;margin-left:auto}
.garage-mod-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;border-top:1px solid #824125;padding:12px;max-height:420px;overflow-y:auto}
.garage-mod-group{min-width:0;padding:10px;border:1px solid #583426;border-radius:12px;margin:0;background:#120e0d}
.garage-mod-group legend{font-size:13px;color:#ffaf69;font-weight:900;padding:0 5px}
.garage-mod-option{display:flex;align-items:center;gap:10px;padding:8px 6px;margin:0;min-width:0;min-height:42px;font-size:13px;color:#f8e7d7;font-weight:700;cursor:pointer}
.garage-mod-option span{overflow-wrap:anywhere}
.garage-mod-option input{appearance:auto;accent-color:#ff8725;display:block;width:20px;height:20px;flex:none;margin:0;padding:0;border:0;border-radius:4px}
.garage-mod-option:has(input:checked){background:#4f241a;border-radius:7px;color:#fff5e5}
.garage-mod-option:focus-within{outline:2px solid #fff2aa;outline-offset:1px;border-radius:7px}
.garage-mod-selected{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;min-height:31px;color:#cdb9a4;font-size:13px}
.garage-mod-chip{padding:6px 10px;max-width:100%;overflow-wrap:anywhere;border-radius:999px;background:#3e2117;border:1px solid #bb6d39;color:#ffdfb9;font-weight:750}
#carModsMessage{margin-bottom:4px}
@media(max-width:650px){.garage-mod-options{grid-template-columns:minmax(0,1fr);max-height:380px}.garage-mod-picker{padding:12px}}

/* A productive, honest empty state: no fictional duels and no dead-end screen. */
.duel-empty-actions{display:flex;flex-direction:column;gap:12px;align-items:flex-start;
 padding:24px;min-width:0;width:100%;border:1px solid #b96e44;border-radius:20px;
 background:linear-gradient(145deg,#271710,#100e11 62%,#17121a)}
.duel-empty-actions h3{margin:0;font-size:clamp(23px,4vw,32px);color:#fff3e7}
.duel-empty-actions p{margin:0 0 4px;max-width:54ch;line-height:1.5;color:#e9cbb2}
.duel-empty-actions .btn{min-height:47px;text-align:center}
@media(max-width:650px){
 .duel-empty-actions{padding:19px 15px;align-items:stretch}
 .duel-empty-actions .btn{width:100%;max-width:100%;white-space:normal}
}

/* Registration is an explicit path to participation, not just a second form below login. */
.garage-signup-gateway{
 grid-column:1/-1;display:flex;flex-direction:column;align-items:flex-start;gap:10px;
 padding:21px 24px;border:1px solid #c37444;border-radius:20px;
 background:linear-gradient(115deg,#321811,#171012 80%);box-shadow:inset 0 1px 0 #f6a55d26;
}
.garage-signup-gateway[hidden],.garage-signup-gateway a[hidden]{display:none!important}
.garage-signup-gateway strong{font-family:Teko,Rajdhani,sans-serif;font-weight:700;
 font-size:clamp(25px,4vw,34px);line-height:1.1;color:#ffc086;letter-spacing:.025em}
.garage-signup-gateway p{margin:0;line-height:1.5;color:#f1dfd2;max-width:65ch}
.garage-signup-gateway .btn{max-width:100%;white-space:normal}
#registerForm,.garage-signup-gateway{scroll-margin-top:clamp(135px,20vh,205px)}
@media(max-width:650px){
 .garage-signup-gateway{padding:17px 15px}
 .garage-signup-gateway .btn{width:100%;min-height:48px;text-align:center}
}

/* Pilot control deck v1: compact, data-driven signed-in controls.
   Never style the registration form or the public car-photo surfaces. */
#sessionArea.pilot-session-dashboard{display:grid;grid-template-columns:minmax(0,1fr);gap:15px;max-width:940px}
#sessionArea.pilot-session-dashboard[hidden]{display:none!important}
.pilot-session-identity{position:relative;isolation:isolate;display:grid;
 grid-template-columns:minmax(0,1fr) clamp(86px,18vw,168px);
 align-items:center;gap:8px;min-width:0;overflow:hidden;
 padding:clamp(14px,2.5vw,24px);border:1px solid #d77838;
 border-radius:22px;
 background:radial-gradient(circle at 94% 100%,#bc481744,transparent 57%),
 linear-gradient(125deg,#26140e 0%,#130e10 60%,#23130d 100%);
 box-shadow:inset 0 1px #fbbd7833,0 8px 25px #0008}
.pilot-session-identity:before{position:absolute;inset:0;z-index:-1;content:"";
 background:repeating-linear-gradient(125deg,transparent 0 27px,#ff8f1510 28px 29px,transparent 30px 49px);
 pointer-events:none}
.pilot-session-copy{min-width:0}
.pilot-session-kicker{display:block;color:#f6a768;font:800 11px Rajdhani,system-ui,sans-serif;letter-spacing:.14em}
#sessionArea .user-banner{margin:5px 0 10px;color:#ffe0b7;
 font:700 clamp(17px,2.7vw,24px) Rajdhani,system-ui,sans-serif;
 line-height:1.18;overflow-wrap:anywhere}
#sessionArea .garage-next-action{margin:0;color:#d8bfa9;
 font-size:clamp(12px,1.6vw,14px);line-height:1.4;max-width:60ch}
.pilot-session-avatar{display:block;width:100%;height:auto;max-height:166px;aspect-ratio:1;
 object-fit:contain;filter:drop-shadow(0 7px 14px #f1601255);justify-self:end}
.pilot-session-actions{display:grid;gap:11px;min-width:0}
#sessionArea .pilot-session-vote{width:100%;min-height:67px;
 padding:13px 19px;border-width:2px;border-radius:26px;
 font:700 clamp(24px,4vw,33px)/1 Teko,"Arial Narrow",Impact,sans-serif;
 font-style:italic;letter-spacing:.035em;
 box-shadow:inset 0 2px #fff4c2,0 0 18px #fa70144b,0 7px 18px #0008}
.pilot-session-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#sessionArea .pilot-session-actions-grid .btn{display:flex;width:100%;min-width:0;min-height:58px;
 padding:10px 12px;border:1px solid #dd7c3d;border-radius:20px;
 color:#ffe1c1;background:linear-gradient(135deg,#331d14,#141013 67%,#23130d);
 font:700 clamp(17px,2.7vw,23px)/1.05 Teko,"Arial Narrow",Impact,sans-serif;
 font-style:italic;letter-spacing:.025em;white-space:normal;overflow-wrap:anywhere;
 box-shadow:inset 0 1px #ffffff12,0 4px 12px #0007}
#sessionArea .pilot-session-utility{display:inline-flex;justify-content:center;align-items:center;
 min-height:44px;max-width:100%;padding:6px 12px;
 color:#eac3a5;text-align:center;font:700 15px Rajdhani,system-ui,sans-serif;
 text-decoration:underline;text-underline-offset:5px;overflow-wrap:anywhere}
#sessionArea .pilot-session-utility:hover{color:#ffdc9d}
#sessionArea .pilot-session-utility:focus-visible{outline:3px solid #fff0af;outline-offset:2px}
#sessionArea .pilot-session-activity{margin:4px 0 0;overflow:hidden;
 border:1px solid #af5b31;border-radius:22px;
 background:linear-gradient(115deg,#2d1912,#131015 75%);
 box-shadow:inset 0 1px #f5a15f18,0 5px 17px #0007}
#sessionArea .pilot-session-activity summary{display:block;padding:13px 16px;
 font:700 clamp(22px,3.4vw,29px)/1.1 Teko,"Arial Narrow",Impact,sans-serif;
 color:#ffd8b3;letter-spacing:.02em}
#sessionArea .pilot-session-activity summary:after{float:right;margin-left:8px;color:#ffa85d}
#sessionArea .garage-activity-inner{padding:5px 14px 16px}
#sessionArea .garage-activity-account{padding:11px 13px;font-size:14px;background:#221713}
.pilot-session-account{display:flex;flex-wrap:wrap;align-items:center;gap:10px;
 padding-top:9px;border-top:1px solid #703821}
#sessionArea .pilot-session-account .btn{min-height:40px;border-radius:18px}
#sessionArea .pilot-session-account .text-button{font-size:12px;color:#d9a98c}
@media(max-width:650px){
 #sessionArea.pilot-session-dashboard{gap:13px}
 .pilot-session-identity{grid-template-columns:minmax(0,1fr) 88px;gap:5px;padding:14px 12px}
 .pilot-session-kicker{font-size:10px}
 #sessionArea .user-banner{font-size:clamp(16px,4.8vw,21px);margin-bottom:8px}
 #sessionArea .garage-next-action{font-size:12px}
 .pilot-session-avatar{max-height:112px}
 #sessionArea .pilot-session-vote{min-height:60px;font-size:clamp(24px,7vw,31px)}
 #sessionArea .pilot-session-actions-grid .btn{padding:10px 7px;min-height:55px;font-size:clamp(16px,5vw,22px)}
 #sessionArea .pilot-session-activity summary{font-size:clamp(20px,6vw,28px)}
}
@media(max-width:360px){
 .pilot-session-identity{grid-template-columns:minmax(0,1fr) 69px}
 .pilot-session-avatar{max-height:88px}
 #sessionArea .pilot-session-actions-grid .btn{font-size:17px}
}

/* Pilot control deck v1.2: SVG silhouette clips away the source photo's
   opaque square around each existing helmet, rather than merely fading it. */
#sessionArea .pilot-session-avatar{
 background:transparent;border:0;box-shadow:none;border-radius:0;
 mix-blend-mode:screen;
 -webkit-mask-image:url('/assets/pilot-helmet-silhouette-mask.svg');
 mask-image:url('/assets/pilot-helmet-silhouette-mask.svg');
 -webkit-mask-size:100% 100%;mask-size:100% 100%;
 -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
}
#sessionArea .pilot-session-actions .btn,
#sessionArea .pilot-session-utility{
 font-family:var(--arena-display,"Teko","Arial Narrow",Impact,sans-serif);
 font-style:italic;font-weight:700;letter-spacing:.03em;
}
#sessionArea .pilot-session-actions .btn{gap:10px;line-height:1.12}
#sessionArea .pilot-session-actions .btn span,
#sessionArea .pilot-session-utility span{min-width:0;overflow-wrap:anywhere}
#sessionArea .pilot-session-actions svg,
#sessionArea .pilot-session-utility svg{
 display:block;width:19px;height:19px;flex:0 0 19px;fill:none;
 stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;
}
#sessionArea .pilot-session-vote svg{width:23px;height:23px;flex-basis:23px}
#sessionArea .pilot-session-utility{
 gap:8px;font-size:clamp(18px,2.6vw,21px);line-height:1.1;
 text-decoration:none;letter-spacing:.035em;
}
#sessionArea .pilot-session-utility span{
 border-bottom:1px solid currentColor;padding-bottom:3px;
}
#sessionArea .pilot-session-activity summary{
 font-family:var(--arena-display,"Teko","Arial Narrow",Impact,sans-serif);
 font-style:normal;font-weight:700;
}
@media(max-width:650px){
 #sessionArea .pilot-session-actions .btn{gap:7px}
 #sessionArea .pilot-session-actions-grid svg{width:17px;height:17px;flex-basis:17px}
 #sessionArea .pilot-session-utility{font-size:19px}
}
