
#exam3-celebration {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(9, 24, 45, 0.93);
  color: white;
  text-align: center;
  cursor: pointer;
}

#exam3-celebration.exam3-success {
  background: rgba(20, 82, 75, 0.95);
}

#exam3-celebration.exam3-encourage {
  background: linear-gradient(#89cfff, #e9f9ff);
  color: #244565;
}

.exam3-celebration-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.exam3-celebration-message {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.exam3-perfect-title {
  font-size: clamp(65px, 12vw, 130px);
  font-weight: 1000;
  color: #ffd700;
  text-shadow: 0 0 25px #ffae00;
  animation: exam3-pulse 0.8s infinite alternate;
}

.exam3-bravo-title {
  font-size: clamp(55px, 10vw, 100px);
  font-weight: 900;
  color: #fff3a5;
  animation: exam3-pulse 0.8s infinite alternate;
}

.exam3-korean-subtitle {
  font-size: clamp(25px, 5vw, 45px);
  font-weight: bold;
  margin-top: 12px;
}

.exam3-celebration-score {
  font-size: 38px;
  margin-top: 25px;
  font-weight: bold;
}

.exam3-balloon {
  font-size: 115px;
  animation: exam3-balloon-fly 2.2s ease-in forwards;
}

.exam3-balloon-pop {
  opacity: 0;
  transform: scale(2);
}

.exam3-encourage-text {
  font-size: clamp(35px, 7vw, 65px);
  font-weight: bold;
  animation: exam3-appear 0.5s ease-out;
}

.exam3-encourage-text[hidden] {
  display: none;
}

@keyframes exam3-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

@keyframes exam3-balloon-fly {
  from {
    transform: translateY(-65vh) scale(0.7);
  }
  to {
    transform: translateY(0) scale(1.2);
  }
}

@keyframes exam3-appear {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #exam3-celebration * {
    animation: none !important;
  }
}
