/* SPEEDWAY: ROAD TO GLORY — UI v1.9.0
   High-contrast, compact iPhone-first visual language; accessible game controls.
   These rules modify presentation only and do not touch career save keys. */
:root{
 --bg:#0a111a;--panel:#141e29;--panel2:#1b2835;--panel3:#213040;
 --border:#304151;--text:#f4f6f8;--soft:#a9b7c4;--muted:#75889a;
 --accent:#e9bd74;--accent2:#d39a49;--radius:16px;
}
html,body{background:#080f17}
body{background:radial-gradient(ellipse at 86% -9%,#26334065,transparent 38%),linear-gradient(180deg,#0a111a,#080e16)}
button,select,input{touch-action:manipulation}
.btn,.inline-select,.input{transition:border-color .15s,background-color .15s,opacity .15s}
.btn:focus-visible,.inline-select:focus-visible{outline:2px solid #f0ca87;outline-offset:2px}
.btn.primary{background:linear-gradient(120deg,#f4d397,#dda956);color:#17130d;border:1px solid #f4cc87;box-shadow:0 5px 20px #a5753233}
.card{background:linear-gradient(155deg,#15202b,#111a25);border-color:#2e3d4c;border-radius:16px;box-shadow:0 7px 24px #0002}
.card-header h2{font-size:15px;font-weight:850}
.page-head{padding-bottom:4px}.page-head h1{font-size:clamp(26px,3.4vw,39px);line-height:1.1;letter-spacing:-1.15px}
.subtitle{color:#b0bfcb;line-height:1.55}
.eyebrow{color:#efc587}
.topbar{background:linear-gradient(180deg,#111c28ed,#111b27db);border-color:#2e404e;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.top-money{font-size:clamp(13px,1.6vw,18px);letter-spacing:-.4px}
.sidebar{background:#0e1823}.sidebar-club{border-color:#3e4d5d;background:#1b2936}
.sidebar .nav-button.active{background:#443622;border-color:#8e6b3d}
.card.metric-card{background:linear-gradient(155deg,#172333,#111a24);min-height:122px}
.stat-icon{width:31px;height:31px;font-size:15px;margin-bottom:10px;border-radius:9px;background:#293646}
.stat-caption{font-size:10px;letter-spacing:.3px;color:#b0becc;font-weight:800}
.big-stat{font-size:clamp(21px,2.5vw,28px);letter-spacing:-1px;overflow-wrap:anywhere}
.hero{border:1px solid #705b3b;background:radial-gradient(circle at 85% 24%,#b78a381c,transparent 42%),linear-gradient(140deg,#202e3a,#111c28)}
.hero-name{font-size:clamp(24px,3vw,38px);line-height:1.15}
.news-item{padding:12px 0}.news-title{font-size:12px}
.table td{padding:10px 9px}.table th{padding:10px 9px}
.team-cell{display:flex;align-items:center;gap:8px;min-width:150px}
.rtg-team-name{font-weight:720;overflow-wrap:anywhere;white-space:normal;min-width:0}
.rtg-badge{position:relative;display:inline-grid;place-items:center;flex-shrink:0;overflow:hidden;background:radial-gradient(circle at 40% 24%,#4a5c6d5c,transparent 70%),#15212e;border:1px solid color-mix(in srgb,var(--club-color) 60%,#273746);border-radius:12px}
.club-logo.rtg-badge{width:44px;height:44px;font-size:10px}
.club-logo.big.rtg-badge{width:78px;height:78px;border-radius:17px}
.tiny-logo.rtg-badge{width:35px;height:35px;min-width:35px;border-radius:9px;font-size:10px}
.rtg-badge-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:3px;z-index:2}
.rtg-badge-img[hidden]{display:none}
.rtg-badge-fallback{position:relative;color:var(--club-color);font-weight:950;letter-spacing:-.6px;font-size:inherit}
.rtg-vs-line{display:flex;align-items:center;gap:12px}.rtg-vs-line .club-logo{width:56px;height:56px}.rtg-vs-line .hero-name{font-size:clamp(19px,3vw,33px)}
.rtg-fixture-logos{display:flex;align-items:center;flex:0 0 auto}.rtg-fixture-logos .tiny-logo:nth-child(2){margin-left:0;border:0}
.rtg-fixture-result{display:flex;flex:0 0 auto;gap:9px;align-items:center}.rtg-fixture .fixture-clubs strong{overflow-wrap:anywhere;white-space:normal;line-height:1.3}
.rtg-fixture .fixture-clubs span{white-space:normal}
.picker-footer{position:relative!important;bottom:auto!important;z-index:1;margin:18px 0 26px;box-shadow:0 9px 30px #0004;background:#1b2734;border-color:#735d40}
.club-picker{padding-bottom:32px}.picker-club{min-height:94px;border-radius:13px;background:#151f2a;border-color:#354455}.picker-club.selected{border-color:#e9be76;background:#2e2b27;box-shadow:inset 0 0 0 1px #e9be7666}
.picker-club .club-logo{width:57px;height:57px}.picker-club .name{font-size:13px}.picker-club .desc{font-size:11px}
.picker-toolbar{gap:10px}.picker-toolbar .input{background:#202c3a}
.landing-header{padding-bottom:8px}.landing-header p{max-width:610px}.landing-brand{font-size:clamp(36px,7vw,61px)}
/* Roster: compact top summary and two-column desktop composition. */
.rtg-squad-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:17px}
.rtg-squad-summary>div{padding:13px 15px;min-width:0;border:1px solid #354657;border-radius:13px;background:#182532}
.rtg-squad-summary span{display:block;font-size:9px;font-weight:850;letter-spacing:1.1px;color:#acbdcb}
.rtg-squad-summary strong{display:block;margin-top:5px;font-size:23px;letter-spacing:-.9px;color:#fff}
.rtg-squad-summary small{font-size:14px;font-weight:650;color:#8a9bac}
.rtg-team-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.95fr);gap:14px;align-items:start}
.rtg-team-roster{padding:17px;overflow:visible}.rtg-team-roster .card-header{margin:0 0 6px;align-items:center;flex-wrap:wrap}
.rtg-team-roster .card-header h2{font-size:18px}
.rtg-team-caption{font-size:11px;line-height:1.5;color:#92a4b3;margin:7px 0 16px}
.rtg-sort{max-width:170px;font-size:11px;min-height:35px}
.rtg-roster-list{display:flex;flex-direction:column;gap:10px}
.rtg-rider{border:1px solid #2c3e51;border-radius:13px;padding:12px;background:linear-gradient(135deg,#192637,#111c2a)}
.rtg-rider-top{display:flex;align-items:center;gap:11px}
.rtg-rider-avatar{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;font-size:12px;letter-spacing:-.4px;color:#eec17b;font-weight:950;background:#324458;border-radius:11px}
.rtg-rider-identity{min-width:0;flex:1}.rtg-rider-identity strong{display:block;font-size:13px;line-height:1.25;color:#f5f5f3;overflow-wrap:anywhere}
.rtg-rider-identity>span{font-size:10px;color:#aec1cc;margin-top:5px;display:block;line-height:1.4}.rtg-rider-identity b{color:#cbd2d7}
.rtg-rider-flags{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.rtg-chip{display:inline-block;padding:3px 6px;border-radius:5px;background:#293745;color:#a3b4c3;border:1px solid #405265;font-size:8px;font-weight:850;letter-spacing:.6px}
.rtg-chip.active{background:#243a31;color:#8de0ba;border-color:#49745f}
.rtg-chip.trained{background:#3b3220;color:#efcf83;border-color:#786039}
.rtg-rider-rating{align-self:flex-start;min-width:53px;text-align:center;padding:7px 8px 5px;border:1px solid #9a743b;border-radius:10px;background:#382e20}
.rtg-rider-rating span{font-size:8px;letter-spacing:1px;color:#ddbd84;display:block;font-weight:850}
.rtg-rider-rating b{font-size:22px;line-height:1.25;color:#f7d89b;display:block;font-weight:950}
.rtg-rider-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:11px}
.rtg-rider-facts>div{min-width:0;border:1px solid #2b3c4c;border-radius:8px;background:#131e2b;padding:8px 6px}
.rtg-rider-facts span{display:block;font-size:8px;letter-spacing:.3px;font-weight:800;color:#8da2b6}
.rtg-rider-facts strong{display:block;font-size:13px;font-weight:880;margin-top:4px;color:#e3e8ef;white-space:nowrap}
.rtg-rider-facts strong.good{color:#8dd6b3}.rtg-rider-facts strong.bad{color:#ffb7ab}
.rtg-rider-actions{display:flex;align-items:center;gap:8px;margin-top:11px;flex-wrap:wrap}
.rtg-rider-actions>.btn{flex:0 0 auto;font-size:10px;min-width:85px;padding:8px 11px;min-height:34px}
.rtg-rider-expand{min-width:0;flex:1}
.rtg-rider-expand summary{cursor:pointer;border-radius:8px;border:1px solid #445365;display:flex;justify-content:center;gap:7px;align-items:center;background:#202d3d;padding:9px 10px;color:#e4eaf0;font-weight:820;letter-spacing:.4px;font-size:9px;list-style:none;min-height:34px}
.rtg-rider-expand summary::-webkit-details-marker{display:none}
.rtg-rider-expand[open]{flex-basis:100%;border-top:1px solid #2f4254;padding-top:10px}
.rtg-rider-expand[open] summary{margin-bottom:10px}
.rtg-rider-expanded{width:100%}
.rtg-rider-skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.rtg-skill span{font-size:9px;letter-spacing:.7px;color:#9eb2c4;font-weight:850;display:flex;justify-content:space-between;gap:10px;margin-bottom:5px}
.rtg-skill span b{color:#d9e4ef}.rtg-skill>div{height:5px;border-radius:4px;background:#324255;overflow:hidden}.rtg-skill i{height:100%;display:block;background:#eac278;border-radius:4px}
.rtg-rider-extra-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.rtg-rider-extra-actions .btn{font-size:10px;padding:8px 10px;min-height:34px;white-space:normal}
.rtg-rider-notice{font-size:10px;color:#ffb7ab;margin:9px 0 0}
.rtg-team-lineup{position:sticky;top:93px;display:flex;flex-direction:column;gap:13px}
.rtg-team-lineup .card{padding:17px}
.rtg-lineup-card .card-header{margin-bottom:10px;flex-wrap:wrap}
.rtg-lineup-list{display:flex;flex-direction:column;gap:6px}
.rtg-lineup-slot{display:flex;align-items:center;min-width:0;gap:8px;border:1px solid #2b3c4f;background:#141f2a;padding:8px 9px;border-radius:10px}
.rtg-lineup-slot:nth-child(n+6){border-color:#6f633c;background:#242a2b}
.rtg-lineup-number{font-size:16px;font-weight:950;font-style:italic;color:#e9c07c;min-width:26px}
.rtg-lineup-details{min-width:0;flex:1}.rtg-lineup-details>span{display:block;font-size:8px;color:#95a9b9;font-weight:850;letter-spacing:.8px}
.rtg-lineup-select{width:100%;max-width:100%;min-width:0;margin-top:4px;min-height:38px;font-size:11px;padding:6px 8px;overflow:hidden;text-overflow:ellipsis}
.rtg-lineup-rating{font-size:14px;min-width:25px;text-align:center;color:#e9c179}
.rtg-team-warnings{padding:9px 12px;background:#362626;border-radius:9px;border:1px solid #83514f;margin-top:12px}
.rtg-team-warnings p{font-size:10px;line-height:1.5;color:#ffc3be;margin:4px 0}
.rtg-tactic-card .card-header{margin-bottom:12px}.rtg-tactic-label{display:block;font-size:10px;font-weight:850;color:#b8c5d0;margin:13px 0 7px}
.rtg-tactic-card .inline-select{width:100%;max-width:100%;min-height:39px}
.rtg-tactic-card .footnote{margin-top:13px}
@media(max-width:1080px){.rtg-team-grid{grid-template-columns:minmax(0,1.1fr) minmax(280px,1fr)}}
@media(max-width:780px){
 .main{padding:0 13px calc(113px + env(safe-area-inset-bottom))}
 .topbar{height:59px;position:sticky;top:0;z-index:15;margin-bottom:17px;border-bottom-color:#314150}
 .topbar .top-left{font-size:10px;gap:7px}.topbar .top-left .season{padding:6px 7px;font-size:10px}
 .topbar .top-right{gap:8px}.topbar .top-money{font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis}
 .topbar .autosave{font-size:9px;white-space:nowrap}
 .page-head{margin-bottom:14px;gap:10px}.page-head h1{font-size:clamp(25px,7vw,32px);letter-spacing:-.9px}
 .eyebrow{font-size:9px}.subtitle{font-size:11px}.actions .btn{font-size:10px;padding:9px 12px;min-height:37px}
 .card{padding:14px}.card-header{margin-bottom:13px}
 .grid{gap:10px}.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
 .metric-card{min-height:120px!important;padding:13px!important}
 .metric-card .stat-icon{width:29px;height:29px;font-size:14px;margin-bottom:8px}
 .metric-card .stat-caption{font-size:9px;line-height:1.35;margin-bottom:7px}
 .metric-card .big-stat{font-size:clamp(18px,5.5vw,25px)!important;line-height:1.15}
 .metric-card .stat-sub{font-size:9px;line-height:1.4}
 .hero{min-height:0;padding:20px 16px;gap:9px}
 .hero-name{font-size:clamp(22px,7vw,32px)}
 .hero-vs{gap:4px}.hero-vs .club-logo{width:40px;height:40px;font-size:11px}.hero-vs .vs{font-size:9px}
 .rtg-vs-line .club-logo{width:43px;height:43px}.rtg-vs-line{gap:8px}.rtg-vs-line .hero-name{font-size:20px}
 .fixture{gap:8px;flex-wrap:wrap}.rtg-fixture-logos .tiny-logo{width:29px;height:29px;min-width:29px}
 .rtg-fixture-result{gap:6px}.rtg-fixture .fixture-clubs strong{font-size:11px}
 .rtg-bottom-tabs{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;gap:0;overflow:visible!important;background:#0e1822f8!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top:1px solid #3e4b59;padding:7px 4px calc(env(safe-area-inset-bottom) + 7px)!important;box-shadow:0 -8px 22px #0007;min-height:62px}
 .rtg-bottom-tabs .mobile-tab,.rtg-more-menu summary{width:100%;min-width:0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:4px 1px;color:#8799aa;background:none;border:0;font-size:9px;font-weight:830}
 .rtg-bottom-tabs .mobile-tab i,.rtg-more-menu summary i{font-style:normal;font-size:19px;line-height:1.1}
 .rtg-bottom-tabs .mobile-tab.active,.rtg-more-menu summary.active{color:#ebc17d}
 .rtg-more-menu{position:static;min-width:0}.rtg-more-menu summary{cursor:pointer;list-style:none}
 .rtg-more-menu summary::-webkit-details-marker{display:none}
 .rtg-more-content{position:absolute;z-index:5;bottom:calc(100% + 7px);right:10px;left:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:15px;border:1px solid #46566a;border-radius:15px;background:#152332f5;box-shadow:0 -10px 45px #000b;max-height:min(68vh,490px);overflow-y:auto;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
 .rtg-more-content h3{grid-column:1/-1;margin:0 0 6px;font-size:10px;letter-spacing:1.5px;color:#edc17d}
 .rtg-more-content button{display:flex;align-items:center;gap:9px;min-height:39px;border:1px solid #3b4e5e;border-radius:9px;background:#233143;color:#e0e8ee;font-size:11px;text-align:left;padding:9px 11px}
 .rtg-more-content button.active{border-color:#c19752;background:#3a3428;color:#ffe3af}.rtg-more-content button span{font-size:17px}.rtg-more-content button b{font-weight:730}
 .picker-footer{display:grid!important;grid-template-columns:1fr;gap:12px;padding:16px!important}
 .picker-footer .field{max-width:none!important;width:100%;margin:0}.picker-footer .btn.primary{width:100%;min-height:46px}
 .picker-toolbar .segment{width:100%;overflow-x:auto;white-space:nowrap}.picker-toolbar .input{max-width:none!important;width:100%}
 .picker-club{min-height:81px;padding:11px;border-radius:11px;gap:10px}
 .picker-club .club-logo{width:45px;height:45px}.picker-club .name{font-size:12px}
 .picker-club .desc{font-size:10px}
 .rtg-squad-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
 .rtg-squad-summary>div{padding:11px 12px}.rtg-squad-summary strong{font-size:22px}
 .rtg-team-grid{display:flex;flex-direction:column;gap:12px}
 .rtg-team-lineup{order:0;position:static;width:100%;gap:11px}.rtg-team-roster{order:1;width:100%;padding:13px}
 .rtg-team-lineup .card{padding:14px}
 .rtg-team-caption{margin-bottom:12px}
 .rtg-rider{padding:11px}.rtg-rider-facts{gap:5px}
 .rtg-rider-facts>div{padding:7px 5px}.rtg-rider-facts span{font-size:8px}.rtg-rider-facts strong{font-size:12px}
 .rtg-rider-identity strong{font-size:12px}.rtg-rider-rating b{font-size:20px}
 .rtg-rider-actions>.btn{font-size:10px}
 .rtg-lineup-select{font-size:11px}
 .rtg-sort{max-width:167px}
 .table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .table{font-size:11px}
 #toast{bottom:calc(85px + env(safe-area-inset-bottom));right:10px;left:10px;max-width:none}
}
@media(max-width:360px){.rtg-rider-avatar{width:35px;height:35px;flex-basis:35px}.rtg-rider-top{gap:8px}
 .rtg-rider-identity strong{font-size:11px}.rtg-rider-facts strong{font-size:11px}
 .rtg-lineup-slot{padding:7px 6px}.rtg-lineup-select{padding:5px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.btn,.inline-select,.input{transition:none}}


/* SRTG 1.9.2 — true transparent crests and collision-free fixtures */
.rtg-badge,
.club-logo.rtg-badge,
.club-logo.big.rtg-badge,
.tiny-logo.rtg-badge{
  border:0;
  background:transparent;
  box-shadow:none;
  border-radius:0;
  overflow:visible;
  padding:0;
  flex-shrink:0;
}
.rtg-badge-img{
  position:absolute;
  display:block;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  object-fit:contain;
  filter:drop-shadow(0 1px 2px #0005);
}
.rtg-badge.rtg-badge-loaded .rtg-badge-fallback{display:none}
.rtg-badge:not(.rtg-badge-loaded) .rtg-badge-fallback{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  border:1px solid color-mix(in srgb,var(--club-color) 38%,#5b6773);
  border-radius:8px;
  background:#1a2938;
}
.rtg-badge .rtg-badge-img[hidden]{display:none}
.rtg-fixture{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
  padding:13px 0;
  overflow:visible;
  flex-wrap:nowrap!important;
}
.rtg-fixture:last-child{padding-bottom:0}
.rtg-fixture-pair{display:flex;flex-direction:column;gap:9px;min-width:0}
.rtg-fixture-side{
  display:grid;
  grid-template-columns:29px minmax(0,1fr);
  align-items:center;
  column-gap:10px;
  min-width:0;
}
.rtg-fixture-side .rtg-badge{width:29px!important;height:29px!important;min-width:29px!important}
.rtg-fixture-club{min-width:0;overflow-wrap:anywhere}
.rtg-fixture-club strong{
  font-size:12px;
  font-weight:800;
  color:#eaf0f4;
  display:block;
  white-space:normal;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.rtg-fixture-away .rtg-fixture-club strong{font-weight:650;color:#b9c7d4}
.rtg-fixture-club small{
  display:block;
  color:#8799a9;
  margin-top:3px;
  font-size:9px;
  font-weight:780;
  letter-spacing:.3px;
  line-height:1.25;
}
.rtg-fixture-result{
  display:flex;
  flex-direction:column;
  flex-shrink:0;
  min-width:0;
  gap:7px;
  align-items:flex-end;
  justify-self:end;
  white-space:nowrap;
}
.rtg-fixture-status{
  display:inline-block;
  background:#222e3c;
  border:1px solid #435267;
  color:#aab9ca;
  border-radius:7px;
  font-size:9px;
  padding:7px 8px;
  letter-spacing:.2px;
  font-weight:800;
}
.rtg-fixture-score{
  font-size:19px;
  font-weight:950;
  color:#f1c581;
  letter-spacing:-.6px;
}
.rtg-fixture-result>.btn{
  font-size:9px;
  min-height:27px;
  padding:5px 9px;
}
.rtg-match-vs{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr);
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
}
.rtg-match-team{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  min-width:0;
  text-align:center;
}
.rtg-match-team>.rtg-badge{
  width:59px!important;
  height:59px!important;
  min-width:59px!important;
}
.rtg-match-team strong{
  font-size:clamp(12px,1.5vw,17px);
  font-weight:850;
  line-height:1.35;
  overflow-wrap:anywhere;
  max-width:100%;
}
.rtg-match-vs-label{
  align-self:center;
  font-size:12px;
  font-weight:900;
  color:#c5a273;
  letter-spacing:1px;
}
.team-cell{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
}
.team-cell .rtg-badge{min-width:26px!important;width:26px!important;height:26px!important}
.rtg-team-name{min-width:0;line-height:1.3}
.picker-club{
  min-width:0;
  overflow:hidden;
}
.picker-club>.rtg-badge{width:53px;height:53px;min-width:53px;max-width:53px}
.picker-club>div{min-width:0}
.picker-club .name{white-space:normal;overflow-wrap:anywhere}
.picker-club .desc{white-space:normal;line-height:1.4}
@media(max-width:780px){
  .rtg-fixture{gap:9px;padding:13px 0}
  .rtg-fixture-side{grid-template-columns:27px minmax(0,1fr);column-gap:9px}
  .rtg-fixture-side .rtg-badge{width:27px!important;height:27px!important;min-width:27px!important}
  .rtg-fixture-club strong{font-size:11px}
  .rtg-fixture-status{font-size:8px;padding:6px 7px}
  .rtg-fixture-result{gap:5px}
  .rtg-match-vs{gap:5px;grid-template-columns:minmax(0,1fr) 19px minmax(0,1fr)}
  .rtg-match-team>.rtg-badge{width:48px!important;height:48px!important;min-width:48px!important}
  .rtg-match-team strong{font-size:12px}
  .picker-club{padding:11px 12px;min-height:75px;gap:10px}
  .picker-club>.rtg-badge{width:44px!important;height:44px!important;min-width:44px!important}
  .picker-club .name{font-size:12px}
}
@media(max-width:355px){
  .rtg-fixture{grid-template-columns:minmax(0,1fr)}
  .rtg-fixture-result{flex-direction:row;justify-self:end;gap:8px}
  .rtg-fixture-side{grid-template-columns:27px minmax(0,1fr)}
}

/* SPEEDWAY: ROAD TO GLORY 2.0 — 2026 regulation-aware eighth rider */
.rtg-lineup-reserve{border:1px solid #bb9158!important;background:linear-gradient(120deg,#353024,#192737)!important;position:relative;margin-top:8px}
.rtg-lineup-reserve:before{content:"REZERWA";position:absolute;right:8px;top:-9px;padding:3px 7px;background:#3a2f20;border-radius:6px;color:#f1c883;font-size:8px;letter-spacing:1.4px;font-weight:900}
.rtg-lineup-reserve .rtg-lineup-number{color:#ffe0a0;font-size:14px;min-width:36px}
.rtg-lineup-reserve .rtg-lineup-rating{color:#f6d49a}
.rtg-regulations-card{border-color:#394957}
.rtg-regulations-list{padding:0 0 0 16px;margin:10px 0 0;display:flex;flex-direction:column;gap:8px}
.rtg-regulations-list li{color:#b9c5d1;font-size:11px;line-height:1.55}
.rtg-regulations-links{display:flex;flex-wrap:wrap;gap:12px;margin:19px 0 0}
.rtg-regulations-links a{font-size:11px;font-weight:850;color:#f3c57d;text-decoration:underline;text-underline-offset:3px}
.rtg-match-reserve{border-color:#745735}
.rtg-match-reserve .btn{font-size:10px;min-height:39px}
@media(max-width:780px){.rtg-lineup-reserve .rtg-lineup-number{font-size:12px;min-width:30px}.rtg-regulations-list li{font-size:10px}.rtg-regulations-card .card-header h2{font-size:16px}}


/* SRTG 2.1 — Signed youth roster and original animated contract scene. */
.rtg-signed-academy{margin-bottom:18px;border:1px solid #ac8449;background:linear-gradient(130deg,#142637,#19202a 80%)}
.rtg-signed-academy .card-header{gap:12px;flex-wrap:wrap}
.rtg-signed-academy .card-header h2{font-size:clamp(17px,2.1vw,24px)}
.rtg-academy-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:18px 0}
.rtg-academy-counts>div{padding:15px 7px;border:1px solid #3a4d5a;background:#172939;border-radius:11px;text-align:center}
.rtg-academy-counts b{display:block;font-size:26px;color:#f3c77d;font-weight:950}
.rtg-academy-counts span{display:block;font-size:9px;color:#aebbc8;letter-spacing:.9px;margin-top:6px;font-weight:850}
.rtg-signed-sections h3{color:#e5c185;letter-spacing:1px;font-size:12px;margin:23px 0 9px}
.rtg-academy-person{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #334351;min-width:0}
.rtg-academy-person:last-child{border:0}
.rtg-academy-avatar{display:grid;place-items:center;flex:0 0 39px;height:39px;border:1px solid #536a80;border-radius:10px;background:#263d4f;color:#e8c58d;font-weight:900}
.rtg-academy-person-info{min-width:0;flex:1}
.rtg-academy-person-info strong{display:block;overflow-wrap:anywhere;color:#eef3f5;font-size:13px}
.rtg-academy-person-info small{color:#a4b5c2;display:block;line-height:1.4;font-size:11px;margin-top:5px}
.rtg-academy-person>.tag{font-size:9px;flex-shrink:0}
.rtg-signed-footer{margin-top:18px;display:flex;justify-content:flex-end}
.rtg-scout-deal-overview{border:1px solid #354c5b;border-radius:10px;background:#111f2d;padding:13px;display:flex;flex-direction:column;gap:6px;margin:14px 0}
.rtg-scout-deal-overview span{font-size:9px;color:#9cacba;letter-spacing:1px;font-weight:900}
.rtg-scout-deal-overview strong{font-size:17px;color:#ebc078}
.rtg-scout-deal-overview small{font-size:10px;color:#aeb7c5}
.rtg-start-deal{width:100%;min-height:44px}
.rtg-deal-backdrop{position:fixed;inset:0;z-index:12000;background:#04080ef0;display:flex;justify-content:center;align-items:center;animation:rtg-deal-fade .35s ease both}
.rtg-deal-modal{width:min(940px,100%);height:min(94dvh,820px);max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;position:relative;border:1px solid #7c6140;background:#0e1926;box-shadow:0 30px 90px #000b}
.rtg-deal-scene{position:relative;isolation:isolate;overflow:hidden;min-height:270px;padding:26px 30px 18px;background:radial-gradient(ellipse at 68% 38%,#294354 0%,#0d1d2a 50%,#080d16 100%)}
.rtg-deal-scene:before{content:"";position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(90deg,transparent 0 48px,#ffffff06 49px 50px)}
.rtg-deal-scene header{display:flex;justify-content:space-between;align-items:center;gap:12px;position:relative;z-index:2}
.rtg-deal-scene header b{color:#fff;font-size:17px;font-style:italic;letter-spacing:-.5px;font-weight:950}
.rtg-deal-scene header b span{color:#f1c37e}
.rtg-deal-scene header small{color:#bbc8d0;font-size:9px;letter-spacing:1.6px;font-weight:900;text-align:right}
.rtg-deal-light{position:absolute;z-index:-1;top:-260px;height:610px;width:360px;clip-path:polygon(49% 0,51% 0,100% 100%,0 100%);background:linear-gradient(#f2cc8ba8,#c8a15b12,transparent);filter:blur(15px);opacity:.35;animation:rtg-deal-lightmove 6s ease-in-out infinite alternate}
.rtg-deal-light-a{left:12%;transform:rotate(-15deg)}.rtg-deal-light-b{right:2%;transform:rotate(25deg);animation-delay:-3s;opacity:.2}
.rtg-deal-track{position:absolute;bottom:-200px;left:-10%;width:120%;height:290px;border:17px solid #c7a16140;border-radius:50%;box-shadow:0 0 0 14px #bfa17019;transform:perspective(500px) rotateX(57deg);z-index:-1}
.rtg-deal-line{position:absolute;bottom:15px;left:5%;right:5%;height:2px;background:linear-gradient(90deg,transparent,#e5bf75,transparent)}
.rtg-deal-stage{display:flex;align-items:center;gap:24px;margin:28px 0 18px;animation:rtg-deal-up .55s ease both}
.rtg-deal-avatar{display:grid;place-items:center;width:112px;height:112px;flex:0 0 112px;border-radius:50%;border:2px solid #e9bb77;background:radial-gradient(circle at 35% 25%,#587185,#1c2d3e 65%,#0d1a25);box-shadow:0 0 0 7px #b28a4033,0 5px 30px #0009}
.rtg-deal-avatar>div{font-size:41px;color:#f3d091;font-weight:950}
.rtg-deal-stage-info{min-width:0}
.rtg-deal-stage-info>span{color:#efc37f;font-weight:900;font-size:10px;letter-spacing:2px}
.rtg-deal-stage-info h1{font-size:clamp(24px,4.4vw,44px);line-height:1.09;letter-spacing:-1px;overflow-wrap:anywhere;color:#fff;margin:8px 0}
.rtg-deal-stage-info small{font-size:12px;color:#b4c3ce;line-height:1.5}
.rtg-deal-speech{position:relative;border:1px solid #5a7587;background:#101c29d9;border-radius:9px;margin-left:137px;padding:12px 16px;animation:rtg-deal-up .6s .12s ease both}
.rtg-deal-speech span{font-size:9px;letter-spacing:1px;color:#e4bf83;font-weight:900}
.rtg-deal-speech p{margin:5px 0;color:#f0f4f7;font-size:14px;line-height:1.5}
.rtg-deal-content{padding:24px 30px;flex:1;display:flex;flex-direction:column;justify-content:center;animation:rtg-deal-up .45s ease both}
.rtg-deal-form-heading{display:flex;justify-content:space-between;color:#e9c387;letter-spacing:1.2px;font-size:13px;font-weight:900;border-bottom:1px solid #374b5c;padding-bottom:13px;margin-bottom:18px}
.rtg-deal-form-heading span{color:#879bab}
.rtg-deal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.rtg-deal-fields label{min-width:0;display:flex;flex-direction:column;gap:8px;color:#aec0cd;font-size:10px;letter-spacing:.8px;font-weight:900}
.rtg-deal-fields input,.rtg-deal-fields select{width:100%;min-width:0;min-height:48px;padding:10px 12px;background:#1c2a3a;border:1px solid #50667c;border-radius:9px;color:#fff;font-size:16px;font-weight:750;outline:none}
.rtg-deal-fields input:focus,.rtg-deal-fields select:focus{border-color:#edc080;box-shadow:0 0 0 2px #e4bf7844}
.rtg-deal-balance{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px;color:#b5c4ce;font-size:11px}
.rtg-deal-balance span{font-size:10px;letter-spacing:.7px;font-weight:850}.rtg-deal-balance b{color:#eec68a}
.rtg-deal-balance small{display:block;flex-basis:100%;color:#9baab9}
.rtg-deal-buttons{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:23px}
.rtg-deal-buttons .btn{min-height:44px;font-size:12px}
.rtg-deal-buttons .btn.primary{background:linear-gradient(100deg,#e3b362,#f1d095);color:#131b22}
.rtg-deal-considering{text-align:center;display:flex;flex-direction:column;align-items:center;gap:11px;padding:39px 8px}
.rtg-deal-considering strong{color:#ecc587;letter-spacing:1px;font-size:13px}
.rtg-deal-considering span{color:#a9bac8;font-size:11px}
.rtg-deal-pulse{display:flex;gap:7px;padding:14px}.rtg-deal-pulse i{width:12px;height:12px;display:block;border-radius:50%;background:#eabe79;animation:rtg-deal-dots .8s ease-in-out infinite alternate}
.rtg-deal-pulse i:nth-child(2){animation-delay:.2s}.rtg-deal-pulse i:nth-child(3){animation-delay:.4s}
.rtg-deal-outcome{display:flex;gap:17px;align-items:flex-start;animation:rtg-deal-up .55s ease both}
.rtg-deal-outcome-mark{width:68px;height:68px;flex:0 0 68px;display:grid;place-items:center;border-radius:50%;background:#493b24;border:1px solid #f0c788;color:#f1cb8a;font-size:34px;box-shadow:0 0 40px #edc78e44}
.rtg-deal-rejected .rtg-deal-outcome-mark{background:#402c2b;border-color:#ba817c;color:#dfa9a1}
.rtg-deal-outcome>div:last-child{min-width:0}
.rtg-deal-outcome span{color:#aabecb;font-weight:900;font-size:10px;letter-spacing:1.5px}
.rtg-deal-outcome h2{font-size:clamp(24px,3.5vw,35px);color:#efc27c;line-height:1.1;margin:8px 0;font-weight:950}
.rtg-deal-rejected h2{color:#e3b0aa}
.rtg-deal-outcome p{font-size:12px;color:#becbd4;line-height:1.5}
.rtg-deal-destination b{color:#edc687}
.rtg-deal-counter{margin-top:18px;padding:17px;border:1px solid #a58453;border-radius:10px;background:#282d2b;display:flex;flex-direction:column;gap:5px}
.rtg-deal-counter span{font-size:10px;color:#f1c588;letter-spacing:1px;font-weight:900}
.rtg-deal-counter strong{font-size:19px;color:#fff}
.rtg-deal-counter small{font-size:11px;line-height:1.4;color:#b3c4d0}
.rtg-deal-footer{display:flex;justify-content:space-between;gap:10px;padding:11px 30px;background:#101b26;border-top:1px solid #334350}
.rtg-deal-footer span{font-size:9px;letter-spacing:.8px;color:#8c9eae;font-weight:800}
@keyframes rtg-deal-fade{from{opacity:0}to{opacity:1}}
@keyframes rtg-deal-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes rtg-deal-lightmove{from{translate:-35px 0;rotate:-9deg}to{translate:40px 0;rotate:10deg}}
@keyframes rtg-deal-dots{from{opacity:.3;scale:.65}to{opacity:1;scale:1.25}}
@media(max-width:680px){.rtg-deal-modal{width:100%;height:100dvh;max-height:100dvh;border:none}.rtg-deal-scene{min-height:255px;padding:calc(env(safe-area-inset-top,0px) + 22px) 18px 16px}.rtg-deal-scene header b{font-size:13px}.rtg-deal-scene header small{font-size:8px}.rtg-deal-stage{gap:13px;margin:23px 0 19px}.rtg-deal-avatar{width:75px;height:75px;flex-basis:75px}.rtg-deal-avatar>div{font-size:27px}.rtg-deal-stage-info>span{font-size:9px}.rtg-deal-stage-info h1{font-size:clamp(22px,6.5vw,33px)}.rtg-deal-stage-info small{font-size:10px}.rtg-deal-speech{margin-left:0;padding:12px}.rtg-deal-content{padding:18px}.rtg-deal-fields{gap:11px}.rtg-deal-fields label{font-size:9px;letter-spacing:.2px}.rtg-deal-fields input,.rtg-deal-fields select{min-height:49px;font-size:16px;padding:10px}.rtg-deal-buttons .btn{flex:1 1 auto;font-size:11px}.rtg-deal-footer{padding:10px 18px calc(10px + env(safe-area-inset-bottom,0px))}.rtg-deal-footer span{font-size:8px}.rtg-academy-person{flex-wrap:wrap}.rtg-academy-person>.tag{margin-left:50px}.rtg-academy-counts{gap:5px}.rtg-academy-counts>div{padding:12px 5px}.rtg-academy-counts b{font-size:23px}.rtg-academy-counts span{font-size:8px;letter-spacing:0}}
@media(max-width:355px){.rtg-deal-fields{grid-template-columns:1fr}.rtg-deal-content{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.rtg-deal-backdrop,.rtg-deal-stage,.rtg-deal-speech,.rtg-deal-content,.rtg-deal-light,.rtg-deal-outcome,.rtg-deal-pulse i{animation:none!important}}

/* SRTG 2.1.2 — academy management and cinematic contract completion */
.rtg-academy-shortcut{border:1px solid #82663c;border-radius:14px;background:linear-gradient(125deg,#202f3e 0%,#17232f 62%,#242722 100%);padding:16px 18px;margin:0 0 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.rtg-academy-shortcut>div{min-width:0;display:flex;flex-direction:column;gap:6px}
.rtg-academy-shortcut strong{font-weight:950;font-size:12px;letter-spacing:1px;color:#f3ca86}
.rtg-academy-shortcut span{font-size:11px;line-height:1.4;color:#bdc9d4}
.rtg-academy-shortcut .btn{white-space:normal;text-align:center;max-width:235px}
.rtg-signed-dashboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:18px}
.rtg-signed-dashboard>div{border:1px solid #405369;border-radius:12px;background:linear-gradient(145deg,#1b2e41,#14202d);padding:17px 9px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:8px}
.rtg-signed-dashboard b{font-size:clamp(25px,5vw,39px);line-height:1;color:#f3c983;font-weight:950}
.rtg-signed-dashboard span{font-size:10px;letter-spacing:1.1px;font-weight:900;color:#bdcbd6}
.rtg-signed-page-card{margin-bottom:18px}
.rtg-signed-page-card>h2,.rtg-signed-section-title>h2{font-size:clamp(18px,2.5vw,24px);color:#f2f5f8;margin:0}
.rtg-signed-section-title{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap}
.rtg-signed-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:14px}
.rtg-signed-person{padding:16px;background:#142433;border:1px solid #3a5063;border-radius:12px;min-width:0;display:flex;flex-direction:column;gap:12px}
.rtg-signed-trainee{border-color:#856a3e;background:linear-gradient(135deg,#202c38,#172636)}
.rtg-signed-person-head{display:flex;align-items:center;gap:11px;min-width:0;flex-wrap:wrap}
.rtg-signed-monogram{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:12px;background:linear-gradient(140deg,#d5ae6e,#4a4233);color:#0e1c28;font-size:16px;font-weight:950;letter-spacing:.4px}
.rtg-signed-person-id{min-width:90px;flex:1}
.rtg-signed-person-id strong{display:block;font-size:15px;font-weight:880;color:#f5f6f8;overflow-wrap:anywhere;line-height:1.27}
.rtg-signed-person-id small{display:block;font-size:10px;color:#aebeca;line-height:1.45;margin-top:5px;overflow-wrap:anywhere}
.rtg-signed-person-head .tag{font-size:8px;line-height:1.3;white-space:normal;max-width:100%}
.rtg-signed-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.rtg-signed-stats>div{border:1px solid #384b5a;border-radius:8px;padding:10px 7px;background:#101e2b;display:flex;flex-direction:column;gap:5px;text-align:center}
.rtg-signed-stats span{font-size:9px;letter-spacing:1px;color:#a1b1bd;font-weight:800}
.rtg-signed-stats b{font-size:19px;color:#edc17f;font-weight:950}
.rtg-signed-progress{height:5px;border-radius:10px;background:#354758;overflow:hidden}
.rtg-signed-progress span{height:100%;display:block;background:linear-gradient(90deg,#ac8754,#f4cc84);border-radius:10px}
.rtg-signed-note{margin:0;color:#b3c2cc;font-size:11px;line-height:1.55;flex:1}
.rtg-signed-buttons{display:flex;flex-wrap:wrap;gap:7px}
.rtg-signed-buttons .btn{flex:1 1 auto;min-height:35px;font-size:10px;white-space:normal;padding:8px 10px}
.rtg-signed-event{border-bottom:1px solid #2e4454;padding:11px 0;display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.rtg-signed-event:last-child{border:0}
.rtg-signed-event span{font-weight:750;font-size:12px;color:#e6edf3}
.rtg-signed-event small{font-size:10px;color:#a9bac8}
.rtg-deal-signing{display:flex;align-items:center;justify-content:center;position:relative;min-height:150px;padding:8px 0 20px;overflow:hidden;animation:rtg-signing-reveal .8s ease both}
.rtg-deal-contract-sheet{position:relative;width:180px;height:138px;border-radius:4px;background:linear-gradient(145deg,#fbf4e9,#d8cfbb);box-shadow:0 17px 36px #000a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#142a3c;transform:rotate(-5deg);animation:rtg-signing-document .9s cubic-bezier(.2,.8,.2,1) both}
.rtg-deal-contract-sheet>span{font-size:9px;font-weight:950;letter-spacing:2px}
.rtg-deal-contract-sheet>b{font-size:21px;font-weight:950;letter-spacing:1.5px}
.rtg-deal-contract-sheet>small{max-width:155px;overflow-wrap:anywhere;text-align:center;font-size:10px;font-weight:700}
.rtg-deal-contract-sheet>i{display:block;width:72%;height:1px;background:#9aa1a7;margin-top:2px}
.rtg-deal-contract-sheet>em{font-size:9px;letter-spacing:1px;color:#14624d;font-style:normal;font-weight:950}
.rtg-deal-signature{position:absolute;width:145px;height:75px;border-bottom:4px solid #b99159;border-radius:50%;transform:rotate(-25deg);right:calc(50% - 150px);bottom:12px;box-shadow:0 5px 15px #0005;animation:rtg-signing-pen 1.1s .3s ease both}
.rtg-deal-state-pending .rtg-deal-avatar{animation:rtg-deal-consider 1.9s ease-in-out infinite}
.rtg-deal-state-pending .rtg-deal-light{opacity:.53;animation-duration:1.4s}
.rtg-deal-state-result .rtg-deal-outcome-mark{animation:rtg-signing-pop .55s .25s ease both}
@keyframes rtg-signing-reveal{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}
@keyframes rtg-signing-document{from{opacity:0;transform:translateY(65px) rotate(-17deg) scale(.72)}to{opacity:1;transform:translateY(0) rotate(-5deg) scale(1)}}
@keyframes rtg-signing-pen{0%{opacity:0;clip-path:inset(0 100% 0 0)}100%{opacity:1;clip-path:inset(0 0 0 0)}}
@keyframes rtg-deal-consider{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
@keyframes rtg-signing-pop{0%{transform:scale(.5);opacity:0}70%{transform:scale(1.12);opacity:1}100%{transform:scale(1)}}
@media(max-width:680px){
.rtg-academy-shortcut{padding:13px;align-items:stretch;flex-direction:column}
.rtg-academy-shortcut .btn{max-width:none;width:100%}
.rtg-signed-dashboard{gap:7px}
.rtg-signed-dashboard>div{padding:12px 5px}
.rtg-signed-dashboard span{font-size:8px;letter-spacing:.5px}
.rtg-signed-person-head .tag{margin-left:57px}
.rtg-signed-page-card{padding:15px}
.rtg-signed-grid{grid-template-columns:1fr}
.rtg-signed-person{padding:13px}
.rtg-signed-buttons .btn{font-size:9px}
.rtg-deal-signing{min-height:120px}
.rtg-deal-contract-sheet{transform:scale(.9)}
}
@media(prefers-reduced-motion:reduce){.rtg-deal-signing,.rtg-deal-contract-sheet,.rtg-deal-signature,.rtg-deal-state-pending .rtg-deal-avatar,.rtg-deal-state-result .rtg-deal-outcome-mark{animation:none!important}}
