.racing-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
}

.racing-stage * {
  box-sizing: border-box;
}

.racing-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.racing-road {
  position: absolute;
  top: 60px;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 380px);
  background:
    linear-gradient(90deg, #475569 0 6%, #1f2937 6% 94%, #475569 94% 100%);
  overflow: hidden;
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 20px 40px rgba(0,0,0,.25);
}

.racing-road::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%),
    linear-gradient(180deg, transparent 70%, rgba(255,255,255,.03));
  pointer-events: none;
}

.racing-lane-mark {
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 4px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.82) 0 24px,
      transparent 24px 48px
    );
}

.racing-lane-mark.one { left: 33.33%; }
.racing-lane-mark.two { left: 66.66%; }

.racing-car,
.racing-obstacle,
.racing-coin {
  position: absolute;
  transform: translate(-50%, -50%);
}

.racing-car {
  font-size: 38px;
  z-index: 5;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.22));
}

.racing-obstacle {
  font-size: 34px;
  z-index: 4;
}

.racing-coin {
  font-size: 28px;
  z-index: 4;
  filter: drop-shadow(0 0 10px rgba(250,204,21,.35));
}

.racing-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0,0,0,.35);
  z-index: 30;
  padding: 24px;
}

.racing-overlay.hidden {
  display: none;
}

.racing-overlay button {
  border: 0;
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #f472b6, #db2777);
}

.racing-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.racing-btn {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  font-size: 24px;
  color: #fff;
  background: rgba(30, 41, 59, 0.9);
}
