.lineup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.team-lineup{overflow:hidden;border:1px solid #ffffff15;border-radius:24px;background:linear-gradient(145deg,#1b1d2a,#10131b);transition:transform .25s,border-color .25s;contain:layout style}.team-lineup:hover{transform:translateY(-4px);border-color:var(--team-accent)}.team-lineup>header{padding:24px;display:flex;gap:15px;align-items:center;background:var(--team-paint)}.team-lineup>header>div{display:grid;gap:5px}.team-lineup>header .team-mark{width:48px;height:48px}.team-lineup>header span{font-size:11px;color:#ffffffc0}.team-name-button{font:800 23px/1.2 inherit;background:none;border:0;color:white;text-align:left;cursor:pointer;padding:0}.lineup-car-stage{display:grid;place-items:center;width:100%;height:205px;border:0;cursor:pointer;background:radial-gradient(ellipse at 50% 80%,#b9a0ff14,transparent 65%);padding:22px 28px;position:relative}.lineup-car-stage:after{content:'';position:absolute;bottom:22px;left:16%;right:16%;height:18px;background:#0005;border-radius:50%;filter:blur(9px);pointer-events:none}.lineup-car-stage img{width:100%;height:100%;object-fit:contain;position:relative;z-index:1;transition:transform .4s}.lineup-car-stage:hover img{transform:translateY(-6px) scale(1.02)}.car-silhouette{position:relative;width:78%;height:48px;background:var(--team-paint);border-radius:65% 20% 15% 12%;transform:skewX(-10deg);box-shadow:0 8px 26px #0005}.car-silhouette:before,.car-silhouette:after{content:'';position:absolute;bottom:-10px;width:38px;height:38px;background:#090a0f;border:6px solid #252732;border-radius:50%}.car-silhouette:before{left:12%}.car-silhouette:after{right:12%}.car-silhouette i{position:absolute;top:-18px;left:40%;width:35%;height:25px;background:var(--team-paint);border-radius:60% 30% 0 0}.lineup-drivers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 24px 22px;gap:14px}.lineup-driver{display:flex;gap:12px;align-items:center;background:#ffffff05;border:1px solid #ffffff08;border-radius:14px;padding:14px;min-width:0}.lineup-driver>div{display:grid;gap:5px;min-width:0}.lineup-driver b{overflow-wrap:anywhere;font-size:15px}.lineup-driver small{font-size:9px;letter-spacing:.1em;color:#9296aa}.lineup-driver span{font-size:10px;color:#b7bbca}.team-lineup>footer{border-top:1px solid #ffffff0b;padding:15px 24px;display:flex;align-items:center;justify-content:space-between;gap:8px}.team-lineup>footer span{font-size:11px;color:#adb0c2}.free-agent-list{margin-top:30px}.free-agent-list>div{display:flex;gap:18px;flex-wrap:wrap}.free-agent-list span{display:flex;gap:9px;align-items:center}.past-teams{margin:50px 0}.past-team-card{width:100%;display:flex;align-items:center;gap:16px;padding:20px;margin:12px 0;border:1px solid #ffffff12;border-radius:16px;background:#161925;color:var(--fg);text-align:left;cursor:pointer;transition:background .2s}.past-team-card:hover{background:#202334}.past-team-card>span:last-child{margin-left:auto}.past-team-card span{font-size:12px;color:#aaaec2}.team-profile{max-width:860px!important}.team-profile>header{display:flex;justify-content:space-between;align-items:center}.team-profile-identity{display:flex;align-items:center;gap:20px;padding:24px;margin:20px -8px;border-radius:18px;background:var(--team-paint)}.team-profile-identity .team-mark{width:70px;height:70px}.team-profile-identity h2{margin:0}.team-profile-identity p{font-size:12px}.profile-car{width:100%;max-height:240px;object-fit:contain}.career-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:25px 0}.career-metrics>div{display:grid;gap:6px;background:#ffffff05;border:1px solid #ffffff10;border-radius:15px;padding:18px}.career-metrics strong{font-size:30px}.career-metrics span{font-size:11px;color:#b8b9c9}.profile-roster{display:flex;gap:20px;flex-wrap:wrap}.profile-roster>div{display:flex;align-items:center;gap:10px}.profile-roster span{display:grid;gap:5px}.profile-roster small{color:#afb2c5;font-size:11px}.compact-upgrade-list{max-height:340px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:8px}.scheduled-upgrades{margin-top:24px}.upgrade-log{margin-top:20px}.upgrade-log>summary{cursor:pointer;font-weight:700;list-style:disclosure-closed}.upgrade-log[open]>summary{margin-bottom:18px}.compact-upgrade-list .upgrade-entry{padding:12px 0;gap:12px}.compact-upgrade-list .upgrade-entry p{margin:3px 0;font-size:12px}.compact-upgrade-list .upgrade-entry small{font-size:10px}.compact-upgrade-list .team-mark{width:28px;height:28px}.race-hero{--pointer-x:0px;--pointer-y:0px;background:radial-gradient(ellipse at 85% 20%,#6250be42,transparent 58%),radial-gradient(ellipse at 10% 90%,#165b7536,transparent 55%),linear-gradient(125deg,#111522,#201934,#111b25);background-size:140% 140%;animation:heroGradient 16s ease-in-out infinite alternate}.race-hero .hero-circuit{transform:translate(var(--pointer-x),var(--pointer-y));transition:transform .35s ease-out;will-change:transform}.race-hero .hero-copy h1,.race-hero .hero-copy .eyebrow,.race-hero .hero-copy .f{transition:transform .35s ease-out}.race-hero:hover .hero-copy h1{transform:translate(calc(var(--pointer-x)*-.25),calc(var(--pointer-y)*-.25 - 3px))}.race-hero:hover .hero-copy .eyebrow{transform:translateY(-4px)}.race-hero .btn:hover{transform:translateY(-5px);box-shadow:0 12px 25px #b6a1ff22}.winner-news:hover .winner-identity{transform:translateY(-5px)}.winner-identity{transition:transform .3s}.podium-row:hover{transform:translateX(5px)}@keyframes heroGradient{from{background-position:0% 20%}to{background-position:100% 80%}}#boot{transition:opacity .8s,visibility .8s}#boot b{animation:bootArrival 1.6s ease both}@keyframes bootArrival{0%{opacity:0;transform:translateY(14px);filter:blur(6px)}70%,100%{opacity:1;transform:translateY(0);filter:blur(0)}}
body{animation:none;background-size:auto}.team-name-button{font-family:inherit;font-weight:800;font-size:23px;line-height:1.2}.past-team-card{color:var(--tx)}
@media(max-width:760px){.lineup-grid{grid-template-columns:1fr}.team-lineup>header{padding:20px}.lineup-car-stage{height:180px}.lineup-drivers{padding:0 18px 20px;gap:9px}.lineup-driver{padding:10px;gap:8px}.lineup-driver img,.lineup-driver .av{width:40px!important;height:40px!important}.past-team-card{flex-wrap:wrap}.career-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.team-profile-identity{padding:16px}.team-profile-identity h2{font-size:26px}.team-name-button{font-size:21px}}
@media(prefers-reduced-motion:reduce){.race-hero,.race-hero *,#boot b{animation:none!important;transform:none!important;transition:none!important}.team-lineup:hover,.lineup-car-stage:hover img,.winner-news:hover .winner-identity,.podium-row:hover{transform:none}}

/* Roomy team profiles with an independent scroll area. */
.modal-box.team-profile{display:block;max-width:960px!important;padding:0;max-height:90dvh;overflow:hidden}
.team-profile>header{padding:18px 30px;border-bottom:1px solid #ffffff12;background:#151925}
.team-profile-content{padding:28px 32px 36px;max-height:calc(90dvh - 80px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.team-profile-identity{margin:0 0 28px;padding:30px;min-height:140px}
.team-profile-identity>div{min-width:0}.team-profile-identity h2{overflow-wrap:anywhere;line-height:1.15}
.team-profile-identity .team-mark{flex-shrink:0}
.team-profile .profile-car{display:block;height:240px;margin:20px 0 32px}
.team-about{margin:28px 0;padding:24px;background:#ffffff04;border:1px solid #ffffff0b;border-radius:18px}
.team-about p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:#c2c5d5;margin:14px 0 0}
.team-profile .career-metrics{gap:18px;margin:28px 0}.team-profile .career-metrics>div{padding:24px;min-height:108px}
.team-profile .mut{line-height:1.8}.team-profile h3{margin-top:28px}
.team-profile .profile-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.team-profile .profile-roster>div{padding:20px;background:#ffffff04;border:1px solid #ffffff0c;border-radius:16px;min-width:0}
.profile-roster b{overflow-wrap:anywhere}
.team-about-field{gap:10px}.team-about-field textarea{font:inherit;width:100%;resize:vertical;min-height:130px;padding:14px;color:var(--tx);background:#0c101a;border:1px solid #ffffff20;border-radius:12px;line-height:1.6}
.driver-assignment{min-width:155px;max-width:240px;width:100%}.driver-quick-actions{display:flex;gap:8px;justify-content:flex-end}.driver-quick-actions .btn{padding:8px 12px}
@media(max-width:600px){.team-profile>header{padding:14px 18px}.team-profile-content{padding:18px;max-height:calc(90dvh - 74px)}.team-profile-identity{padding:20px;gap:14px;min-height:110px}.team-profile-identity .team-mark{width:48px;height:48px}.team-profile .career-metrics{gap:10px}.team-profile .career-metrics>div{padding:18px}.team-profile .profile-roster{grid-template-columns:1fr}.team-profile .profile-car{height:170px}.team-about{padding:18px}}
