.alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(
    ellipse at center,
    rgba(120, 0, 0, 0.92) 0%,
    rgba(40, 0, 0, 0.96) 70%,
    rgba(10, 0, 0, 0.98) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1.25rem;
  overflow-y: auto;
  animation: alertFadeIn 0.4s ease-out;
}
@keyframes alertFadeIn { from { opacity: 0; } to { opacity: 1; } }

.alert-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  border: 6px solid #ff1a1a;
  box-shadow: inset 0 0 60px rgba(255,0,0,.6), 0 0 40px rgba(255,0,0,.4);
  pointer-events: none;
  animation: alertPulse 1.2s ease-in-out infinite;
  z-index: 1;
}
@keyframes alertPulse {
  0%,100% { box-shadow: inset 0 0 60px rgba(255,0,0,.6), 0 0 40px rgba(255,0,0,.4); border-color:#ff1a1a; }
  50%     { box-shadow: inset 0 0 100px rgba(255,0,0,.9), 0 0 80px rgba(255,0,0,.7); border-color:#ffeded; }
}

.alert-stripes {
  width: 100%;
  height: 28px;
  background-image: repeating-linear-gradient(45deg,#ffd400 0,#ffd400 16px,#1a0000 16px,#1a0000 32px);
  box-shadow: 0 0 12px rgba(255,212,0,.6);
  z-index: 2;
  flex-shrink: 0;
}

.alert-content {
  position: relative; z-index: 2;
  max-width: 560px; width: 100%;
  text-align: center; color: #fff; margin: 1.5rem 0;
}

.alert-siren {
  font-size: 4rem; line-height: 1;
  animation: alertShake 0.4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255,0,0,.8));
}
@keyframes alertShake {
  0%,100% { transform: rotate(-8deg); }
  50%     { transform: rotate(8deg); }
}

.alert-label {
  font-size: 0.95rem; letter-spacing: 0.4em;
  color: #ffd400; font-weight: 800;
  margin: 0.75rem 0 0.25rem;
  text-shadow: 0 0 12px rgba(255,212,0,.7);
}

.alert-title {
  font-family: "Special Elite","Courier New",monospace;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 900; margin: 0.5rem 0;
  color: #fff; text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(255,0,0,.9), 0 2px 0 #000;
  line-height: 1.05;
}

.alert-game-name {
  font-size: clamp(1.4rem,5vw,2rem);
  font-weight: 800; color: #ffeded;
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 1rem;
  border-top: 2px solid #ff1a1a; border-bottom: 2px solid #ff1a1a;
  display: inline-block;
  background: rgba(0,0,0,.35);
}

.alert-timer {
  font-family: "Courier New",monospace;
  font-size: clamp(1.6rem,6vw,2.4rem);
  font-weight: 900; color: #ffd400;
  background: rgba(0,0,0,.55);
  border: 2px solid #ffd400; border-radius: 8px;
  padding: 0.5rem 1.5rem; margin: 0.75rem 0;
  display: inline-block;
  letter-spacing: 0.1em;
  box-shadow: 0 0 24px rgba(255,212,0,.5);
}
.alert-timer-label {
  font-size: 0.7rem; letter-spacing: 0.3em;
  color: #ffd400; display: block; margin-bottom: 0.2rem;
}

.alert-rules {
  background: rgba(0,0,0,.55);
  border: 2px solid rgba(255,26,26,.6);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  text-align: left;
}
.alert-rules h3 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem; letter-spacing: 0.3em;
  color: #ffd400; text-align: center;
}
.alert-rules ul {
  margin: 0; padding: 0; list-style: none;
  font-size: 1.35rem; line-height: 1.45;
  color: #ffeded; text-align: center;
}
.alert-rules li { margin: 0.7rem 0; }

.alert-cta {
  display: inline-block;
  background: #ff1a1a; color: #fff;
  font-weight: 900; font-size: 1.15rem;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border: 3px solid #fff; border-radius: 8px;
  text-transform: uppercase; cursor: pointer;
  box-shadow: 0 0 28px rgba(255,0,0,.9);
  transition: transform 0.1s;
}
.alert-cta:hover { transform: scale(1.04); }
.alert-cta:active { transform: scale(0.98); }

.alert-locked {
  margin-top: 0.85rem;
  color: rgba(255,237,237,.85);
  font-size: 0.85rem; letter-spacing: 0.05em;
}
.alert-locked strong {
  font-family: "Courier New",monospace;
  color: #ffd400; font-size: 1rem;
}

.alert-hidden { display: none !important; }
