/* Classic sidebar + vector Silverstone */
:root{
  --bg:#0b0d12;
  --card:#121621;
  --ink:#e9edf6;
  --muted:#9aa3b2;
  --acc:#5b8cff;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --grass:#0e3b24;
  --asphalt:#20283a;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:16px/1.4 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 700px at 70% -10%, #1d2540, #0b0d12);
  color:var(--ink);
}

.app-header,.app-footer{ text-align:center; padding:16px 12px; }
.app-header h1{ margin:0; font-size:28px; letter-spacing:.3px;}
.app-header .sub{ margin:4px 0 0; color:var(--muted);}

.layout{
  max-width: 1280px; margin: 0 auto; padding: 12px;
  display:grid; grid-template-columns: 360px 1fr; gap:12px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:12px;
  box-shadow: var(--shadow);
}

#setup .row{ display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.field{ flex:1; min-width: 160px;}
label{ display:block; font-size:13px; color:var(--muted); margin-bottom:6px;}
textarea{
  width:100%; min-height:140px; resize:vertical;
  border-radius:12px; border:1px solid rgba(255,255,255,.1);
  background:#0f1320; color:var(--ink); padding:10px 12px;
}
select{
  width:100%; padding:8px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.12);
  background:#0f1320; color:var(--ink);
}
.btn{
  appearance:none; border:0; border-radius:12px; padding:10px 14px; cursor:pointer; font-weight:600;
}
.btn.primary{ background:var(--acc); color:white; box-shadow:0 6px 20px rgba(91,140,255,.35);}
.btn.ghost{ background:transparent; color:var(--ink); border:1px solid rgba(255,255,255,.18);}

#race .topbar{
  display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px;
  color:var(--muted);
}
#track{
  width:100%; height:auto; display:block; border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
}

.standings h3{ margin:12px 0 8px; }
.standings ol{ list-style:decimal; margin:0; padding-left:18px; }
.standings li{ padding:2px 0; display:flex; justify-content:space-between; gap:6px;}
.standings .gap{ color:var(--muted); font-size:12px; }

@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
}
