/**
 * Cutscene overlay (js/cutscenes.js).
 */
.lsx-cutscene {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #05081a;
  color: #fff;
  animation: lsx-cutscene-in 0.3s ease-out;
  user-select: none;
}

.lsx-cutscene.is-closing {
  opacity: 0;
  transition: opacity 0.25s ease;
}

@keyframes lsx-cutscene-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lsx-cutscene__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lsx-cutscene__title {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.9);
  pointer-events: none;
}

.lsx-cutscene__reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: radial-gradient(circle, rgba(5, 8, 26, 0.55), rgba(5, 8, 26, 0.9));
  animation: lsx-cutscene-reveal 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}

.lsx-cutscene__reveal[hidden] {
  display: none;
}

@keyframes lsx-cutscene-reveal {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lsx-cutscene__icon {
  font-size: clamp(5rem, 16vw, 9rem);
  filter: drop-shadow(0 0 24px currentColor);
}

.lsx-cutscene__reveal-icon img {
  max-width: 40vmin;
  max-height: 40vmin;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.6));
}

.lsx-cutscene__reveal-name {
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 4.5rem);
  text-shadow: 0 0 24px currentColor;
}

.lsx-cutscene__reveal-chance {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
}

.lsx-cutscene__skip {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.5rem 1.2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.lsx-cutscene__skip:hover,
.lsx-cutscene__skip:focus {
  background: rgba(255, 255, 255, 0.2);
}

.lsx-cutscene__key {
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8em;
}
