.motoroad-overlay,
.motoroad-overlay * {
  box-sizing: border-box;
}

.motoroad-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 120%, rgba(120, 0, 0, 0.55), transparent 35%),
    radial-gradient(circle at 10% 20%, rgba(255, 0, 45, 0.10), transparent 24%),
    radial-gradient(circle at 90% 30%, rgba(170, 0, 20, 0.14), transparent 28%),
    linear-gradient(180deg, #040404 0%, #0a0a0c 30%, #050507 100%);
}

.motoroad-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.motoroad-bg,
.motoroad-road,
.motoroad-lights,
.motoroad-speed-lines,
.motoroad-smoke,
.motoroad-sparks,
.motoroad-vignette,
.motoroad-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.motoroad-vignette {
  background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,0.45) 75%, rgba(0,0,0,0.82) 100%);
}

.motoroad-grid {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

.motoroad-bg::before,
.motoroad-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.motoroad-bg::before {
  width: 45vw;
  height: 45vw;
  left: -10vw;
  top: 12vh;
  background: radial-gradient(circle, rgba(190, 0, 35, 0.28), transparent 70%);
  animation: motoroadGlowFloat 5s ease-in-out infinite alternate;
}

.motoroad-bg::after {
  width: 36vw;
  height: 36vw;
  right: -8vw;
  bottom: 10vh;
  background: radial-gradient(circle, rgba(255, 20, 60, 0.18), transparent 72%);
  animation: motoroadGlowFloat 6s ease-in-out infinite alternate-reverse;
}

@keyframes motoroadGlowFloat {
  from { transform: translateY(-10px) scale(0.96); }
  to { transform: translateY(20px) scale(1.05); }
}

/* moto tail-light style beams */
.motoroad-lights::before,
.motoroad-lights::after {
  content: "";
  position: absolute;
  bottom: 18%;
  width: 24vw;
  height: 24vw;
  filter: blur(24px);
  opacity: 0.26;
}

.motoroad-lights::before {
  left: 18%;
  background: radial-gradient(circle at center, rgba(255, 25, 55, 0.7), transparent 65%);
  animation: motoroadPulseLight 1.3s ease-in-out infinite alternate;
}

.motoroad-lights::after {
  right: 18%;
  background: radial-gradient(circle at center, rgba(210, 0, 30, 0.7), transparent 65%);
  animation: motoroadPulseLight 1.3s ease-in-out infinite alternate-reverse;
}

@keyframes motoroadPulseLight {
  from { opacity: 0.15; transform: scale(0.95); }
  to { opacity: 0.34; transform: scale(1.05); }
}

/* road */
.motoroad-road {
  top: auto;
  bottom: 0;
  height: 42%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.12) 15%, rgba(0,0,0,0.88) 100%);
}

.motoroad-road::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(46% 0%, 54% 0%, 88% 100%, 12% 100%);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
    linear-gradient(180deg, rgba(30,30,34,0.25), rgba(10,10,12,0.9));
  box-shadow: inset 0 40px 80px rgba(255,255,255,0.02);
}

.motoroad-road::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 100%;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.9) 0 16px,
    transparent 16px 38px
  );
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,0.18))
    drop-shadow(0 0 25px rgba(255, 0, 40, 0.18));
  animation: motoroadRoadDash 0.4s linear infinite;
  clip-path: polygon(45% 0%, 55% 0%, 100% 100%, 0% 100%);
}

@keyframes motoroadRoadDash {
  from { background-position-y: 0; }
  to { background-position-y: 38px; }
}

/* speed lines */
.motoroad-speed-lines span {
  position: absolute;
  left: -35%;
  width: 38%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 40, 70, 0.95), transparent);
  opacity: 0;
  transform: rotate(-8deg);
  animation: motoroadSpeedMove 1.1s linear infinite;
}

.motoroad-speed-lines span:nth-child(1) { top: 14%; animation-delay: 0s; }
.motoroad-speed-lines span:nth-child(2) { top: 21%; animation-delay: 0.10s; }
.motoroad-speed-lines span:nth-child(3) { top: 29%; animation-delay: 0.20s; }
.motoroad-speed-lines span:nth-child(4) { top: 37%; animation-delay: 0.30s; }
.motoroad-speed-lines span:nth-child(5) { top: 46%; animation-delay: 0.40s; }
.motoroad-speed-lines span:nth-child(6) { top: 55%; animation-delay: 0.50s; }
.motoroad-speed-lines span:nth-child(7) { top: 64%; animation-delay: 0.60s; }
.motoroad-speed-lines span:nth-child(8) { top: 73%; animation-delay: 0.70s; }

@keyframes motoroadSpeedMove {
  0% {
    left: -35%;
    opacity: 0;
    transform: rotate(-8deg) scaleX(0.4);
  }
  15% { opacity: 1; }
  100% {
    left: 120%;
    opacity: 0;
    transform: rotate(-8deg) scaleX(1.25);
  }
}

/* smoke */
.motoroad-smoke span {
  position: absolute;
  bottom: -90px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.10), rgba(255,255,255,0.03) 50%, transparent 70%);
  filter: blur(20px);
  opacity: 0;
  animation: motoroadSmokeRise 6s linear infinite;
}

.motoroad-smoke span:nth-child(1) { left: 8%; animation-delay: 0s; }
.motoroad-smoke span:nth-child(2) { left: 20%; animation-delay: 1.3s; }
.motoroad-smoke span:nth-child(3) { left: 42%; animation-delay: 2.1s; }
.motoroad-smoke span:nth-child(4) { left: 70%; animation-delay: 0.8s; }
.motoroad-smoke span:nth-child(5) { left: 84%; animation-delay: 1.8s; }

@keyframes motoroadSmokeRise {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  18% { opacity: 0.22; }
  60% { opacity: 0.14; }
  100% {
    transform: translateY(-560px) scale(1.85);
    opacity: 0;
  }
}

/* sparks */
.motoroad-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ff5068 40%, transparent 75%);
  box-shadow: 0 0 12px rgba(255, 60, 90, 0.7);
  opacity: 0;
  animation: motoroadSparkFly 1.6s linear infinite;
}

.motoroad-spark:nth-child(1) { left: 20%; top: 66%; animation-delay: 0s; }
.motoroad-spark:nth-child(2) { left: 26%; top: 62%; animation-delay: 0.22s; }
.motoroad-spark:nth-child(3) { left: 31%; top: 69%; animation-delay: 0.44s; }
.motoroad-spark:nth-child(4) { left: 69%; top: 60%; animation-delay: 0.1s; }
.motoroad-spark:nth-child(5) { left: 75%; top: 66%; animation-delay: 0.34s; }
.motoroad-spark:nth-child(6) { left: 82%; top: 63%; animation-delay: 0.58s; }

@keyframes motoroadSparkFly {
  0% {
    transform: translate(0, 0) scale(0.4);
    opacity: 0;
  }
  15% { opacity: 1; }
  100% {
    transform: translate(90px, -95px) scale(1.45);
    opacity: 0;
  }
}

/* content */
.motoroad-center-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 4;
}

.motoroad-card {
  position: relative;
  width: min(940px, 100%);
  max-width: 940px;
  padding: 48px 34px 34px;
  border-radius: 30px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 0 0 1px rgba(255, 30, 60, 0.12) inset,
    0 0 50px rgba(160, 0, 20, 0.16),
    0 24px 80px rgba(0,0,0,0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transform: scale(0.94);
  opacity: 0;
  animation: motoroadCardRise 0.9s ease forwards;
}

@keyframes motoroadCardRise {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.motoroad-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(90deg, rgba(255,0,40,0), rgba(255,70,90,0.95), rgba(255,0,40,0));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: motoroadBorderGlow 2.8s linear infinite;
}

@keyframes motoroadBorderGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.motoroad-wheel-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  top: 50%;
  margin-top: -90px;
  border-radius: 50%;
  border: 4px solid rgba(255, 40, 60, 0.48);
  box-shadow:
    0 0 18px rgba(255, 20, 40, 0.28),
    inset 0 0 14px rgba(255, 40, 60, 0.18);
  opacity: 0.42;
  animation: motoroadSpinRing 1.5s linear infinite;
}

.motoroad-wheel-left { left: -70px; }
.motoroad-wheel-right { right: -70px; }

.motoroad-wheel-ring::before,
.motoroad-wheel-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.motoroad-wheel-ring::before {
  inset: 16px;
  border: 2px dashed rgba(255,255,255,0.12);
}

.motoroad-wheel-ring::after {
  inset: 36px;
  border: 2px solid rgba(255, 70, 90, 0.20);
}

@keyframes motoroadSpinRing {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

.motoroad-helmet-icon {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(255, 40, 60, 0.22));
}

.motoroad-title-top {
  margin: 0;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255,255,255,0.06),
    0 0 18px rgba(255, 20, 40, 0.10);
}

.motoroad-title-bottom {
  margin: 8px 0 0;
  font-size: clamp(34px, 6vw, 78px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #ffc0c9 30%, #ff5b74 65%, #c40022 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 10px rgba(255, 40, 70, 0.12),
    0 0 30px rgba(255, 40, 70, 0.18);
  animation: motoroadPulseTitle 1.5s ease-in-out infinite alternate;
}

@keyframes motoroadPulseTitle {
  from {
    transform: scale(0.985);
    filter: drop-shadow(0 0 10px rgba(255, 30, 60, 0.18));
  }
  to {
    transform: scale(1.015);
    filter: drop-shadow(0 0 18px rgba(255, 30, 60, 0.34));
  }
}

.motoroad-accent-line {
  width: min(420px, 82%);
  height: 4px;
  margin: 18px auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff2448, #ff8a9d, #ff2448, transparent);
  background-size: 200% 100%;
  box-shadow: 0 0 18px rgba(255, 40, 70, 0.28);
  animation: motoroadLineMove 1.5s linear infinite;
}

@keyframes motoroadLineMove {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

.motoroad-tagline {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(15px, 2vw, 24px);
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.motoroad-status {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.56);
  animation: motoroadBlinkSoft 0.8s ease-in-out infinite alternate;
}

@keyframes motoroadBlinkSoft {
  from { opacity: 0.48; }
  to { opacity: 1; }
}

.motoroad-countdown {
  margin-top: 14px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: #ff6b82;
  text-shadow: 0 0 14px rgba(255, 40, 70, 0.22);
}

@media (max-width: 900px) {
  .motoroad-wheel-ring {
    width: 140px;
    height: 140px;
    margin-top: -70px;
  }

  .motoroad-wheel-left { left: -40px; }
  .motoroad-wheel-right { right: -40px; }

  .motoroad-card {
    padding: 40px 22px 28px;
  }
}

@media (max-width: 640px) {
  .motoroad-center-wrap {
    padding: 14px;
  }

  .motoroad-card {
    width: 100%;
    padding: 28px 16px 24px;
    border-radius: 22px;
  }

  .motoroad-card::before {
    border-radius: 24px;
  }

  .motoroad-wheel-ring {
    display: none;
  }

  .motoroad-title-top {
    letter-spacing: 1.5px;
  }

  .motoroad-title-bottom {
    letter-spacing: 2px;
  }

  .motoroad-tagline {
    font-size: 15px;
  }

  .motoroad-status {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .motoroad-road {
    height: 34%;
  }

  .motoroad-speed-lines span {
    width: 56%;
  }

  .motoroad-smoke span {
    width: 110px;
    height: 110px;
  }

  .motoroad-lights::before,
  .motoroad-lights::after {
    width: 34vw;
    height: 34vw;
    bottom: 16%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motoroad-overlay *,
  .motoroad-overlay::before,
  .motoroad-overlay::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}