.spectrum-bloom-shell {
  position: relative;
  min-height: clamp(440px, 62vw, 720px);
  margin-top: 18px;
  border: 1px solid rgba(160, 120, 255, 0.4);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #050208 0%, #0a0616 54%, #030206 100%);
  box-shadow: inset 0 0 0 1px rgba(160, 120, 255, 0.06), 0 0 42px rgba(120, 80, 220, 0.1);
  touch-action: manipulation;
}

.spectrum-bloom-shell[hidden] {
  display: none;
}

.spectrum-bloom-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.spectrum-bloom-hud {
  position: absolute;
  inset: 16px 18px auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(220, 200, 255, 0.8);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.spectrum-bloom-title {
  color: rgba(180, 140, 255, 0.9);
}

.spectrum-bloom-mode {
  color: rgba(243, 240, 232, 0.7);
  transition: opacity 0.3s ease;
}

.spectrum-bloom-mode-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  font-weight: 950;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 0 32px rgba(160, 120, 255, 0.6), 0 0 64px rgba(120, 80, 220, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.spectrum-bloom-mode-flash.is-visible {
  opacity: 1;
  transition: opacity 0.15s ease;
}

@media (max-width: 760px) {
  .spectrum-bloom-shell {
    min-height: 500px;
  }

  .spectrum-bloom-hud {
    inset: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spectrum-bloom-mode-flash {
    transition: none;
  }
}
