* {
  box-sizing: border-box;
  cursor: none;
}

:root {
  --bg: #020202;
  --bg-soft: #070707;
  --text: #f4f4f4;
  --muted: #9c9c9c;
  --red: #ff3b3b;
  --red-soft: rgba(255, 59, 59, 0.14);
  --border: rgba(255, 255, 255, 0.07);
  --panel: rgba(8, 8, 8, 0.74);
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 0, 0, 0.08), transparent 18%),
    radial-gradient(circle at 50% 50%, #090909 0%, #040404 40%, #000000 100%);
  color: var(--text);
  overflow: hidden;
  position: relative;
}

.bg,
.noise,
.scanline,
.frame,
.smoke,
.cursor-glow {
  position: fixed;
  pointer-events: none;
}

.bg {
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 0, 0, 0.06), transparent 24%),
    radial-gradient(circle at 85% 70%, rgba(255, 0, 0, 0.05), transparent 28%);
}

.noise {
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.scanline {
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.018) 0px,
    rgba(255,255,255,0.018) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.3;
}

.frame {
  inset: 18px;
  border: 1px solid rgba(255, 0, 0, 0.14);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.015) inset,
    0 0 24px rgba(255, 0, 0, 0.06);
}

.smoke {
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.26) 0%, rgba(255, 0, 0, 0.08) 35%, transparent 70%);
  animation: drift 18s ease-in-out infinite;
}

.smoke-1 {
  top: -10%;
  left: -8%;
}

.smoke-2 {
  right: -10%;
  bottom: -12%;
  animation-delay: 5s;
}

.smoke-3 {
  left: 35%;
  bottom: -18%;
  animation-delay: 9s;
}

.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.panel {
  width: min(980px, 100%);
  padding: 48px 40px 34px;
  border-radius: 30px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(11,11,11,0.85), rgba(4,4,4,0.92));
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 0 55px rgba(0,0,0,0.6),
    0 0 35px rgba(255, 0, 0, 0.08);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,60,60,0.55), rgba(255,255,255,0.04), rgba(255,60,60,0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.status-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #d6d6d6;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
}

.pill.live {
  color: #ffb0b0;
  border-color: rgba(255, 0, 0, 0.22);
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.06);
}

.title {
  position: relative;
  margin: 22px 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: 0.22em;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255,255,255,0.05),
    0 0 20px rgba(255, 0, 0, 0.16),
    0 0 36px rgba(255, 0, 0, 0.12);
  animation: neonBreath 4s ease-in-out infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.8;
}

.glitch::before {
  transform: translate(1px, -1px);
  color: rgba(255, 30, 30, 0.45);
  clip-path: inset(0 0 58% 0);
  animation: glitchTop 3.5s infinite linear alternate-reverse;
}

.glitch::after {
  transform: translate(-1px, 1px);
  color: rgba(255,255,255,0.22);
  clip-path: inset(62% 0 0 0);
  animation: glitchBottom 2.8s infinite linear alternate-reverse;
}

.subtitle {
  margin: 0;
  color: var(--red);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.38em;
  text-shadow:
    0 0 10px rgba(255, 0, 0, 0.65),
    0 0 24px rgba(255, 0, 0, 0.24);
  animation: neonBlink 3.6s infinite;
}

.desc {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.box {
  min-height: 152px;
  padding: 16px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,0,0,0.025));
  border: 1px solid rgba(255, 0, 0, 0.16);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 0 14px rgba(255,0,0,0.10),
    inset 0 0 16px rgba(255,0,0,0.05);
  animation: boxBreath 3.2s ease-in-out infinite;
}

.box span {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 0, 0.14);
}

.box p {
  margin: 12px 0 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #a4a4a4;
  font-family: "Orbitron", sans-serif;
}

.system-feed {
  margin: 28px auto 0;
  width: min(720px, 100%);
  border-radius: 18px;
  padding: 18px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}

.feed-label {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #d0d0d0;
  margin-bottom: 10px;
}

.feed-line {
  min-height: 24px;
  color: #ffb8b8;
  font-family: "Orbitron", sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(255,0,0,0.12);
}

.warning {
  margin-top: 18px;
  min-height: 22px;
  color: #8f8f8f;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.cursor-glow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,70,70,0.58), rgba(255,0,0,0.14) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.06s linear;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(22px, -18px, 0) scale(1.09); }
}

@keyframes neonBreath {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255,255,255,0.04),
      0 0 16px rgba(255, 0, 0, 0.10),
      0 0 28px rgba(255, 0, 0, 0.08);
    opacity: 0.95;
  }
  50% {
    text-shadow:
      0 0 10px rgba(255,255,255,0.06),
      0 0 28px rgba(255, 0, 0, 0.22),
      0 0 48px rgba(255, 0, 0, 0.14);
    opacity: 1;
  }
}

@keyframes boxBreath {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(255,0,0,0.10),
      inset 0 0 16px rgba(255,0,0,0.05);
    border-color: rgba(255, 0, 0, 0.14);
  }
  50% {
    box-shadow:
      0 0 20px rgba(255,0,0,0.16),
      0 0 36px rgba(255,0,0,0.08),
      inset 0 0 20px rgba(255,0,0,0.08);
    border-color: rgba(255, 0, 0, 0.24);
  }
}

@keyframes neonBlink {
  0%, 46%, 52%, 100% { opacity: 1; }
  48%, 50% { opacity: 0.65; }
}

@keyframes glitchTop {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(1px,-1px); }
  40% { transform: translate(-1px,1px); }
  60% { transform: translate(2px,-1px); }
  80% { transform: translate(-1px,0); }
}

@keyframes glitchBottom {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-1px,1px); }
  40% { transform: translate(1px,0); }
  60% { transform: translate(-2px,1px); }
  80% { transform: translate(1px,-1px); }
}

.flash-out {
  animation: flashOut 1.3s ease forwards;
}

@keyframes flashOut {
  0% { opacity: 1; filter: blur(0); }
  35% { opacity: 1; filter: blur(0); }
  60% { opacity: 0.55; filter: blur(1px); }
  100% { opacity: 0; filter: blur(6px); }
}

@media (max-width: 860px) {
  .countdown {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 560px) {
  * { cursor: auto; }

  .cursor-glow { display: none; }

  .panel {
    padding: 34px 18px 26px;
    border-radius: 24px;
  }

  .frame {
    inset: 10px;
    border-radius: 18px;
  }

  .countdown {
    gap: 12px;
  }

  .box {
    min-height: 126px;
  }

  .subtitle {
    letter-spacing: 0.2em;
  }
}
