.plk-celebration-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
  contain: layout style paint;
}

.plk-celebration-particle,
.plk-celebration-trail {
  position: absolute;
  display: block;
  box-sizing: border-box;
  width: var(--plk-size, 12px);
  height: var(--plk-size, 12px);
  pointer-events: none;
  will-change: transform, opacity;
}

.plk-celebration-star {
  background: #b68127;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.plk-celebration-snow {
  border-radius: 50%;
  border: 2px solid #54745d;
  background: #fffdf3;
  box-shadow: 0 1px 2px rgba(31, 58, 40, .22);
}

.plk-celebration-crystal {
  background: linear-gradient(90deg, transparent 43%, #54745d 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, #54745d 43% 57%, transparent 57%);
}

.plk-celebration-crystal::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: rotate(45deg);
  background: linear-gradient(90deg, transparent 43%, #54745d 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, #54745d 43% 57%, transparent 57%);
}

.plk-celebration-diamond {
  background: #315a42;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.plk-celebration-ribbon {
  height: calc(var(--plk-size, 12px) * .72);
  border-radius: 15% 85% 15% 85%;
  background: #a84745;
}

.plk-celebration-candy {
  width: calc(var(--plk-size, 12px) * .68);
  border: 1px solid #8f4945;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, #fff9eb 0 4px, #b34c49 4px 8px);
}

.plk-celebration-correct {
  animation: plk-celebration-spark 800ms cubic-bezier(.23, 1, .32, 1) both;
}

.plk-celebration-round,
.plk-celebration-complete {
  animation: plk-celebration-snow-pop 1250ms cubic-bezier(.23, 1, .32, 1) both;
}

.plk-celebration-trail {
  animation: plk-celebration-travel 860ms cubic-bezier(.77, 0, .175, 1) both;
}

@keyframes plk-celebration-spark {
  0% { opacity: 0; transform: translate(0, 0) scale(.94); }
  16% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--plk-x), var(--plk-y)) rotate(var(--plk-spin)) scale(.82); }
}

@keyframes plk-celebration-snow-pop {
  0% { opacity: 0; transform: translate(0, 0) scale(.94); }
  13% { opacity: 1; }
  56% { opacity: .95; transform: translate(var(--plk-mid-x), var(--plk-mid-y)) rotate(var(--plk-spin)); }
  100% { opacity: 0; transform: translate(var(--plk-x), var(--plk-drift-y)) rotate(var(--plk-spin)); }
}

@keyframes plk-celebration-travel {
  0% { opacity: 0; transform: translate(0, 0) scale(.94); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--plk-x), var(--plk-y)) scale(.94); }
}

.plk-celebration-success-pop {
  animation: plk-celebration-pop 650ms cubic-bezier(.23, 1, .32, 1);
}

@keyframes plk-celebration-pop {
  0%, 100% { scale: 1; }
  42% { scale: 1.04; }
}

.plk-celebration-target-pulse {
  animation: plk-celebration-score-pulse 320ms cubic-bezier(.23, 1, .32, 1);
}

@keyframes plk-celebration-score-pulse {
  0%, 100% { scale: 1; }
  48% { scale: 1.08; }
}

.plk-celebration-reduced-highlight {
  outline: 2px solid #d2a451;
  outline-offset: 3px;
}

.plk-success-feedback,
.feedback.plk-success-feedback,
.game-hint.plk-success-feedback,
.answer-feedback.plk-success-feedback,
.map-status.plk-success-feedback {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  gap: 15px;
  width: min(100%, 720px);
  max-width: 100%;
  min-height: 72px;
  margin: 22px auto 0;
  padding: 16px 20px;
  border: 1.5px solid #8ca187;
  border-radius: 18px;
  background: #f0f4e9;
  box-shadow: 0 7px 19px rgba(33, 62, 43, .09), inset 0 1px 0 #fffdf5;
  color: #214b35;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 800;
  line-height: 1.32;
  text-align: left;
}

.plk-success-feedback::before {
  content: "";
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  background: #b68127;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.plk-success-feedback__message {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.plk-success-feedback__message strong { display: block; }

.plk-success-feedback__detail {
  color: #5d6b5e;
  font-size: clamp(16px, 1.3vw, 17px);
  font-weight: 400;
  line-height: 1.42;
}

.plk-success-feedback + .next-row,
.plk-success-feedback + .play-actions {
  margin-top: 14px;
}

.answer-heading .feedback.plk-success-feedback {
  flex: 0 1 50%;
  width: auto;
  min-width: 0;
  margin: 0 0 0 auto !important;
}

.game-hint.plk-success-feedback {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 12px 16px;
  font-size: clamp(17px, 1.4vw, 19px);
}

.map-status.plk-success-feedback,
.answer-feedback.plk-success-feedback {
  margin: 18px auto 0;
}

@media (max-width: 640px) {
  .plk-success-feedback,
  .feedback.plk-success-feedback,
  .game-hint.plk-success-feedback,
  .answer-feedback.plk-success-feedback,
  .map-status.plk-success-feedback {
    gap: 12px;
    padding: 14px 16px;
    font-size: 18px;
  }
  .answer-heading .feedback.plk-success-feedback {
    width: 100%;
    margin: 16px 0 0 !important;
  }
  .plk-success-feedback::before { width: 21px; height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .plk-celebration-particle,
  .plk-celebration-trail { display: none; }
  .plk-celebration-success-pop,
  .plk-celebration-target-pulse { animation: none; }
}
