#championship-celebration {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(5,5,12,0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  cursor: pointer;
  overflow: hidden;
}

#championship-celebration.visible {
  opacity: 1;
  pointer-events: all;
}

.celebration-fireworks-layer {
  position: absolute;
  inset: 0;
}

.celebration-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: celebrationParticle 1s ease-out forwards;
  pointer-events: none;
  box-shadow: 0 0 6px currentColor;
}

@keyframes celebrationParticle {
  0%   { transform: translate(0, 0) scale(1);   opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.3); opacity: 0; }
}




.celebration-driver-text,
.celebration-constructor-text {
  position: absolute;
  left: 50%;
  text-align: center;
  z-index: 1;
  opacity: 0;
  transform: translateX(-50%) scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
}

.celebration-driver-text {
  top: 30%;
  transform: translateX(-50%) translateY(-50%) scale(0.85);
}

.celebration-constructor-text {
  bottom: 18%;
  transition-delay: 0.25s; /* constructor reveal follows slightly after the driver's */
}

#championship-celebration.visible .celebration-driver-text {
  opacity: 1;
  transform: translateX(-50%) translateY(-50%) scale(1);
}

#championship-celebration.visible .celebration-constructor-text {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}




.celebration-name {
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #fff6d5, #FFD700 55%, #b8860b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 20px rgba(255,215,0,0.35);
  margin-bottom: 10px;
}

.celebration-title {
  font-size: clamp(0.75rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.9;
}

.celebration-skip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  z-index: 1;
}

@media (max-width: 480px) {
  .celebration-particle { width: 4px; height: 4px; }
}



.celebration-constructor-name {
  font-size: clamp(1.1rem, 3.6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(255,255,255,0.3);
  margin-bottom: 6px;
}

.celebration-constructor-title {
  font-size: clamp(0.62rem, 1.6vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}