/* ---------- Autorennen (von oben) ---------- */
.sp-ar { position: relative; width: 100%; }
.sp-ar-cv { display: block; width: 100%; border-radius: 18px; outline: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; background: #2f6b3a; box-shadow: 0 26px 46px -26px rgba(15, 23, 42, .8); }
.sp-ar-cv:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ef233c, 0 26px 46px -26px rgba(15, 23, 42, .8); }

.sp-ar-tl, .sp-ar-tr { position: absolute; bottom: 12px; display: none; gap: 10px; }
.sp-ar-tl { left: 12px; }
.sp-ar-tr { right: 12px; }
.sp-ar.is-touch .sp-ar-tl, .sp-ar.is-touch .sp-ar-tr { display: flex; }
@media (hover: none) and (pointer: coarse) { .sp-ar-tl, .sp-ar-tr { display: flex; } }
.sp-ar-t { width: 68px; height: 68px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: rgba(15, 23, 42, .42); color: #fff; font: 800 1.35rem/1 var(--sp-font, system-ui); display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; padding: 0; }
.sp-ar-t.sp-ar-tb, .sp-ar-t.sp-ar-tg { font-size: .86rem; letter-spacing: .02em; }
.sp-ar-t.sp-ar-tg { width: 78px; height: 78px; background: rgba(22, 163, 74, .55); }
.sp-ar-t.sp-ar-tb { background: rgba(220, 38, 38, .5); }
.sp-ar-t.is-on { background: rgba(255, 255, 255, .5); color: #0f172a; transform: scale(.95); }

.sp-ar-res { width: 100%; max-width: 360px; margin: 4px auto 10px; border-collapse: collapse; font-size: .95rem; }
.sp-ar-res td { padding: 5px 8px; border-bottom: 1px solid rgba(15, 23, 42, .08); text-align: left; }
.sp-ar-res td:first-child { width: 2.2em; font-weight: 800; }
.sp-ar-res td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.sp-ar-res i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.sp-ar-res tr.is-me td { background: #fef9c3; font-weight: 800; }
.sp-ar-res small { font-weight: 700; color: #16a34a; }
.sp-ar-head { margin: 12px 0 2px; font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.sp-ar-unlock { margin: 8px auto; padding: 8px 12px; max-width: 360px; border-radius: 10px; background: #dcfce7; color: #166534; }
.sp-ar-laps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 6px; }
.sp-ar-laps span { padding: 3px 8px; border-radius: 8px; background: #f1f5f9; font-size: .84rem; font-variant-numeric: tabular-nums; }
.sp-ar-laps span.is-best { background: #dcfce7; color: #166534; font-weight: 800; }

.sp-shell:fullscreen .sp-ar-cv { border-radius: 0; }
.sp-shell:-webkit-full-screen .sp-ar-cv { border-radius: 0; }

@media (max-width: 640px) {
	.sp-ar-cv { border-radius: 12px; }
	.sp-ar-t { width: 60px; height: 60px; }
	.sp-ar-t.sp-ar-tg { width: 70px; height: 70px; }
}
