.alert-root {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
}

.alert-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 60px;
  pointer-events: none;
}

.alert-card {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: min(960px, 92vw);
  min-width: 320px;
  padding: 22px 32px;
  overflow: visible;
  text-align: center;
  background: linear-gradient(135deg, rgba(5, 5, 9, 0.36), rgba(13, 13, 20, 0.14));
  border: 1px solid rgba(234, 247, 255, 0.14);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  filter: drop-shadow(0 0 22px currentColor);
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.alert-small {
  min-width: 320px;
  padding: 17px 30px;
}

.alert-medium {
  min-width: 460px;
}

.alert-large,
.alert-wide {
  min-width: 620px;
}

.alert-major {
  min-width: min(820px, 92vw);
  padding: 30px 46px;
}

.alert-title {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(36px, 6vw, 86px);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.alert-message {
  max-width: 100%;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1;
  font-weight: 850;
}

.alert-detail {
  max-width: 100%;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--muted-text);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.1;
  font-weight: 750;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.92);
}

.gift-reveal {
  position: absolute;
  top: -35px;
  right: 18px;
  color: var(--hot-pink);
  font-size: 70px;
  line-height: 1;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.92),
    0 0 12px var(--hot-pink),
    0 0 28px var(--electric-blue);
}

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

.alert-controls {
  display: none;
}

.show-controls .alert-controls {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}

.controls-title {
  flex: 0 0 100%;
  color: var(--cool-white);
  font: 950 22px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.95),
    0 0 8px var(--cyan-highlight),
    0 0 18px var(--hot-pink);
}

.alert-controls button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(99, 216, 255, 0.45);
  color: var(--cool-white);
  background: rgba(5, 5, 9, 0.62);
  font: 900 15px/1 Arial, sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 0 12px rgba(32, 184, 255, 0.18);
  cursor: pointer;
}

.alert-controls button:hover {
  border-color: var(--hot-pink);
  box-shadow: 0 0 16px rgba(255, 43, 166, 0.4);
}
