/* Pro Mod Racing — latest race pop-up (race-popup.js). Builds on launch.css (.launch-box look). */
.race-pop { text-align: center; }
.rp-trophy { font-size: clamp(2.6rem, 9vw, 3.4rem); line-height: 1; margin: 0.2rem 0 0.4rem; filter: drop-shadow(0 0 14px rgba(255, 211, 77, 0.45)); }
.rp-title { font-size: clamp(1.7rem, 7vw, 2.6rem); }

.rp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 0 0 1.1rem; }
.rp-chip {
  padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #fff; background: rgba(246, 90, 8, 0.14); border: 1px solid rgba(246, 90, 8, 0.55);
}

.rp-sec { margin: 0 0 1.1rem; text-align: left; }
.rp-h {
  font-family: var(--racing); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); font-size: 1.15rem; margin: 0 0 0.5rem; text-align: center;
}

.rp-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; align-items: end; }
.rp-pod {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-align: center;
  padding: 0.7rem 0.4rem; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
}
.rp-pod .rp-pos { font-family: var(--racing); font-size: 1.3rem; line-height: 1; }
.rp-pod .rp-name { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; font-size: 0.92rem; }
.rp-pod .rp-pts { color: var(--muted); font-size: 0.8rem; }
.rp-p1 { order: 2; border-color: #ffd34d; background: rgba(255, 211, 77, 0.08); padding-top: 1.1rem; padding-bottom: 1.1rem; }
.rp-p1 .rp-pos { color: #ffd34d; }
.rp-p2 { order: 1; } .rp-p2 .rp-pos { color: #d7dde8; }
.rp-p3 { order: 3; } .rp-p3 .rp-pos { color: #e0904f; }

.rp-led { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.rp-led li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.rp-table td { background: var(--panel); }
.rp-led li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.8rem; }
.rp-name { font-weight: 700; }
.rp-val { color: var(--accent); font-weight: 800; white-space: nowrap; }

.rp-note { text-align: center; color: #fff; font-weight: 700; margin: 0 0 0.5rem; }
.rp-table { width: 100%; border-collapse: separate; border-spacing: 0 0.3rem; }
.rp-table td { padding: 0.45rem 0.6rem; }
.rp-table td:first-child { border-radius: 8px 0 0 8px; }
.rp-table td:last-child { border-radius: 0 8px 8px 0; }
.rp-table .rp-pos { width: 2.2rem; text-align: center; font-family: var(--racing); color: var(--accent); }
.rp-table tr:nth-child(1) .rp-pos { color: #ffd34d; }
.rp-table .rp-val, .rp-table .rp-bhd { text-align: right; }
.rp-table .rp-bhd { color: var(--muted); white-space: nowrap; font-size: 0.9rem; }

.rp-next { color: var(--muted); font-size: 0.92rem; margin: 0.4rem 0 1.1rem; }

@media (max-width: 420px) {
  .rp-pod .rp-name { font-size: 0.82rem; }
  .rp-table td { padding: 0.4rem 0.4rem; font-size: 0.9rem; }
}

/* Home screen: latest race results table (auto blocks), a little tighter than the roster/standings tables */
.panel[data-tab="home"] .standings th, .panel[data-tab="home"] .standings td { padding: 0.5rem 0.7rem; }
.panel[data-tab="home"] .standings tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.03); }
.panel[data-tab="home"] .standings tbody tr:first-child td { background: rgba(255, 211, 77, 0.10); }
.panel[data-tab="home"] .standings td:nth-child(2) { color: var(--muted); font-weight: 700; }
.panel[data-tab="home"] .standings td:nth-child(3) { font-weight: 700; }
.panel[data-tab="home"] .standings td:nth-child(4) { color: var(--accent); font-weight: 800; }
@media (max-width: 520px) {
  .panel[data-tab="home"] .standings th, .panel[data-tab="home"] .standings td { padding: 0.45rem 0.4rem; font-size: 0.9rem; }
}
