/* TMS Lantern — Student reaction bar and celebration animations (300–900 ms). */

.lanternReactionBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lanternReactionBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  font-size: 22px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lanternReactionBtn:hover:not(:disabled) {
  border-color: rgba(90, 167, 255, 0.5);
  background: rgba(90, 167, 255, 0.12);
  transform: scale(1.05);
}

.lanternReactionBtn:disabled {
  cursor: default;
  opacity: 0.9;
}

.lanternReactionBtn.is-mine {
  border-color: rgba(56, 208, 124, 0.5);
  background: rgba(56, 208, 124, 0.12);
}

.lanternReactionCount {
  font-size: 18px;
  font-weight: 800;
  color: var(--muted, #b9c6ea);
  min-width: 1.2em;
  text-align: left;
}

.lanternReactionBtn.is-mine .lanternReactionCount {
  color: var(--good, #38d07c);
}

.lanternReactionPulse {
  animation: lanternReactionPulse 0.4s ease;
}

@keyframes lanternReactionPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.25); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.lanternReactionBurst {
  position: absolute;
  pointer-events: none;
  font-size: 28px;
  animation: lanternReactionBurst 0.6s ease-out forwards;
  z-index: 1;
}

.lanternReactionBtn {
  position: relative;
}

@keyframes lanternReactionBurst {
  0% {
    opacity: 1;
    transform: scale(0.8) translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: scale(1.4) translate(0, -8px);
  }
  100% {
    opacity: 0;
    transform: scale(1.2) translate(0, -16px);
  }
}

.lanternReactionCountBump {
  animation: lanternReactionCountBump 0.35s ease;
}

@keyframes lanternReactionCountBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
