@import url('./race-v2.css');

/* PR #3 visual treatment: polar rally graphics with a warm orange focal vehicle. */
:root { --panel:#102a3d; --muted:#b2cbd3; --border:#719eb366; }
body {
  background:
    radial-gradient(ellipse 60% 24% at 73% 0%, #3baaa33e, transparent 73%),
    radial-gradient(ellipse 40% 22% at 13% 3%, #3b719642, transparent 77%),
    linear-gradient(157deg,#071729,#092538 51%,#071a29);
}
.app-shell { max-width:1670px; }
.brand { position: relative; }
.brand-kicker { letter-spacing:.25em; font-weight:950; }
.brand h1 {
  font-size:clamp(42px,5.8vw,81px);
  filter:drop-shadow(0 4px 0 #010e1a48);
  text-shadow:0 1px 1px #b9eaf020;
}
.brand h1 span { color:#ff8158; }
.brand h1 small { color:#e9fbfd; font-size:12px; letter-spacing:.12em; }
.brand p { letter-spacing:.17em; font-size:11px; text-transform:uppercase; }
.topbar { border-bottom:2px solid #9acae144; }
.top-status { border-color:#c0e6e773; box-shadow:inset 0 1px 0 #ebffff19; }
.game-layout { grid-template-columns:minmax(0,1fr) 326px; gap:15px; }
.game-board {
  border:2px solid #8fbfd0;
  border-radius:9px;
  background:#bbdbe4;
  box-shadow: 0 25px 67px #020e1cb9, 0 0 0 5px #061b2c60;
}
.game-board::after {
  content:""; pointer-events:none; position:absolute; inset:0;
  box-shadow:inset 0 0 45px #07354f28;
  z-index:1;
}
.board-label { background:linear-gradient(135deg,#071d30f7,#123a51eb); border:1px solid #c9f8f8bb; border-left:5px solid #d4fc77; box-shadow: 0 7px 16px #031a2a55; }
.board-label .tag { color:#d4fc77; }
.board-scores { background:#071d2ef5; border:1px solid #a4d8e9c7; box-shadow:0 4px 14px #05172966; }
.board-scores strong { color:#effbfb; }
.board-bottom { z-index:2; }
.board-bottom span { background:#081d2cf0; border-color:#c3e3eb88; }
#message { border-left:3px solid #ff7557; }
#lap { color:#d4fc77; }
.race-panel {
  background:linear-gradient(173deg,#143a4cee,#0c2739 65%,#0c2435);
  border:1px solid #91b5c48a; border-top:4px solid #b9eaf0;
  box-shadow:0 23px 42px #01111d7d, inset 0 1px 0 #fff3;
  border-radius:8px;
  padding:17px;
}
.panel-title { padding-bottom:8px; }
.panel-title h2 { font-size:26px; }
.readout-grid { border-color:#b3d6da77; }
.readout-grid > div { background:#173c52; }
.readout-grid .wide { background:#071e2e; }
.readout-grid strong.lime { color:#d4fc77; }
.acceleration-pad button {
  background:linear-gradient(180deg,#24556b,#173d54);
  border:1px solid #a8d1d7a6;
  box-shadow:inset 0 2px 0 #fff1,0 3px 0 #071825;
  font-size:27px;
}
.acceleration-pad button[aria-pressed="true"] {
  background:linear-gradient(180deg,#e9ffad,#c2f663);
  border-color:#f0ffc0;
  color:#102636;
  box-shadow:0 0 18px #d4fc7770,0 3px 0 #375e2e;
}
.primary {
  background:linear-gradient(180deg,#f3ffb0,#c2f464);
  border:1px solid #f5ffcf;
  color:#102b3a;
  box-shadow:0 4px 0 #3f7336,0 8px 15px #0016234c;
}
.primary:not(:disabled):hover { background:#f1ffa8; transform:translateY(-1px); }
.primary:active:not(:disabled) { transform:translateY(3px); box-shadow:0 1px 0 #3f7336; }
.checkpoint-icon { min-width:24px; text-align:center; }
.checkpoint-list li.active { color:#d4fc77; }
.checkpoint-list li.cleared .checkpoint-icon { background:#d4fc77; }
.warning { border-left:3px solid #ff7557; }
.finish-card { background:linear-gradient(150deg,#174353,#071b2b); border-width:3px; box-shadow:0 20px 70px #01111ce0; }
.finish-card h2 { font-size:70px; color:#d4fc77; font-style:italic; }
@media(max-width:1050px) { .game-layout {grid-template-columns:1fr} }
@media(max-width:650px) {
  .app-shell {padding:11px 9px 24px}
  .topbar {align-items:flex-end;gap:8px}
  .brand h1 {font-size:39px}
  .brand p {font-size:9px}
  .brand-kicker {font-size:8px;letter-spacing:.14em}
  /* Circuit name already appears on the board; hide duplicate badge on phones. */
  .top-status {display:none}
  .game-board {border-width:1px}
  .race-panel {padding:15px}
  .board-label {border-left-width:3px}
  .board-label .tag {font-size:7px}
  .board-bottom {font-size:8px}
}
@media(prefers-reduced-motion:reduce) { .primary:hover {transform:none} }
