:root {
  --bg-abyss: #01040b;
  --bg-deep: #030a1c;
  --bg-navy: #051330;
  --cyan-bright: #00f7ff;
  --cyan-glow: #00d2df;
  --cyan-dim: rgba(0, 247, 255, 0.15);
  --cyan-subtle: rgba(0, 247, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-abyss);
  background: radial-gradient(ellipse at 50% 50%, var(--bg-navy) 0%, var(--bg-deep) 55%, var(--bg-abyss) 100%);
  font-family: 'Orbitron', -apple-system, sans-serif;
  color: var(--cyan-bright);
}

/* Background Canvas */
#abyss {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Dark Blue Vignette & Edge Shadow */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 35%, rgba(1, 4, 11, 0.85) 85%, #01040b 100%);
  z-index: 2;
  pointer-events: none;
}

/* Ambient Cyan Breathing Core */
.ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(85vw, 950px);
  height: min(50vh, 500px);
  background: radial-gradient(ellipse at center, rgba(0, 247, 255, 0.12) 0%, rgba(2, 22, 60, 0.3) 45%, transparent 75%);
  filter: blur(60px);
  z-index: 2;
  pointer-events: none;
  animation: pulseAura 7s ease-in-out infinite alternate;
}

@keyframes pulseAura {
  0% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Central Countdown Stage */
.countdown-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.2rem, 5.5vh, 4.8rem);
  padding: 1.5rem;
}

/* Monolithic Container */
.monolith {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.35rem, 1.6vw, 2.2rem);
  padding: clamp(1rem, 3.2vw, 3.5rem) clamp(1.2rem, 4vw, 4.5rem);
  max-width: 98vw;
  background: linear-gradient(135deg, rgba(4, 18, 48, 0.4) 0%, rgba(2, 10, 28, 0.72) 100%);
  border: 1px solid rgba(0, 247, 255, 0.18);
  border-radius: clamp(14px, 2.2vw, 32px);
  box-shadow: 
    0 0 50px rgba(0, 247, 255, 0.07),
    inset 0 0 35px rgba(0, 247, 255, 0.05),
    0 30px 60px rgba(1, 4, 11, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.monolith:hover {
  border-color: rgba(0, 247, 255, 0.32);
  box-shadow: 
    0 0 75px rgba(0, 247, 255, 0.14),
    inset 0 0 45px rgba(0, 247, 255, 0.08),
    0 35px 70px rgba(1, 4, 11, 0.95);
}

/* Time Digit Pods */
.time-block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(2.8rem, 8.5vw, 12rem);
  padding: clamp(0.4rem, 1.2vw, 1.5rem) clamp(0.2rem, 0.8vw, 1.1rem);
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 247, 255, 0.07) 0%, rgba(2, 8, 22, 0.45) 100%);
  border: 1px solid rgba(0, 247, 255, 0.12);
  border-radius: clamp(10px, 1.6vw, 20px);
  box-shadow: inset 0 0 20px rgba(0, 247, 255, 0.03);
  position: relative;
  overflow: hidden;
}

/* Subtle corner neon accent markers */
.time-block::before,
.time-block::after {
  content: '';
  position: absolute;
  width: clamp(4px, 1vw, 8px);
  height: clamp(4px, 1vw, 8px);
  border-color: rgba(0, 247, 255, 0.45);
  pointer-events: none;
}

.time-block::before {
  top: clamp(4px, 0.7vw, 6px);
  left: clamp(4px, 0.7vw, 6px);
  border-top: 1.5px solid rgba(0, 247, 255, 0.55);
  border-left: 1.5px solid rgba(0, 247, 255, 0.55);
}

.time-block::after {
  bottom: clamp(4px, 0.7vw, 6px);
  right: clamp(4px, 0.7vw, 6px);
  border-bottom: 1.5px solid rgba(0, 247, 255, 0.55);
  border-right: 1.5px solid rgba(0, 247, 255, 0.55);
}

/* Eminent Numbers */
.digit {
  font-size: clamp(2rem, 7.8vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: #dcfcff;
  text-shadow: 
    0 0 10px rgba(0, 247, 255, 0.9),
    0 0 25px rgba(0, 247, 255, 0.6),
    0 0 55px rgba(0, 247, 255, 0.35),
    0 0 95px rgba(0, 247, 255, 0.2);
  transition: transform 0.25s ease-out, filter 0.25s ease-out;
  will-change: transform, filter;
}

.digit.tick {
  animation: subtleGlowPulse 0.4s ease-out;
}

@keyframes subtleGlowPulse {
  0% {
    filter: brightness(1.35) drop-shadow(0 0 20px #00f7ff);
    transform: scale(1.02);
  }
  100% {
    filter: brightness(1) drop-shadow(0 0 0 transparent);
    transform: scale(1);
  }
}

/* Mysterious Pulsing Separators */
.separator {
  font-size: clamp(1.6rem, 5.5vw, 6.5rem);
  font-weight: 500;
  color: var(--cyan-bright);
  text-shadow: 
    0 0 8px rgba(0, 247, 255, 0.8),
    0 0 25px rgba(0, 247, 255, 0.45);
  animation: colonPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  align-self: center;
  padding-bottom: clamp(0.2rem, 0.6vw, 0.8rem);
}

@keyframes colonPulse {
  0%, 100% {
    opacity: 0.25;
    text-shadow: 0 0 4px rgba(0, 247, 255, 0.3);
  }
  50% {
    opacity: 1;
    text-shadow: 
      0 0 12px rgba(0, 247, 255, 0.95),
      0 0 30px rgba(0, 247, 255, 0.7);
  }
}

@media (max-width: 480px) {
  .monolith {
    padding: 1.2rem 0.6rem;
    gap: 0.25rem;
    border-radius: 14px;
  }
  .time-block {
    padding: 0.4rem 0.15rem;
  }
}

/* ========================================================
   Microsoft Modern Loading Ring (Windows Progress Ring)
   ======================================================== */
.ms-loader-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 15vw, 190px);
  height: clamp(120px, 15vw, 190px);
}

.ms-loader-glow {
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 247, 255, 0.16) 0%, rgba(0, 247, 255, 0.04) 55%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
  animation: msAuraPulse 4s ease-in-out infinite alternate;
}

@keyframes msAuraPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.25);
    opacity: 0.85;
  }
}

.ms-loader {
  position: relative;
  width: calc(100% - clamp(12px, 1.6vw, 20px));
  height: calc(100% - clamp(12px, 1.6vw, 20px));
}

.ms-dot {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transform-origin: center center;
  animation: msProgressRing 4.5s infinite;
}

.ms-dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(9px, 1.35vw, 17px);
  height: clamp(9px, 1.35vw, 17px);
  border-radius: 50%;
  background: #f0ffff;
  box-shadow: 
    0 0 8px rgba(0, 247, 255, 1),
    0 0 20px rgba(0, 247, 255, 0.8),
    0 0 40px rgba(0, 247, 255, 0.45);
}

/* Authentic Microsoft Windows Staggered Timing */
.ms-dot:nth-child(1) { animation-delay: 0.15s; }
.ms-dot:nth-child(2) { animation-delay: 0.30s; }
.ms-dot:nth-child(3) { animation-delay: 0.45s; }
.ms-dot:nth-child(4) { animation-delay: 0.60s; }
.ms-dot:nth-child(5) { animation-delay: 0.75s; }
.ms-dot:nth-child(6) { animation-delay: 0.90s; }

/* Authentic Microsoft Windows Progress Ring Physics Curve */
@keyframes msProgressRing {
  0% {
    transform: rotate(225deg);
    opacity: 1;
    animation-timing-function: ease-out;
  }
  7% {
    transform: rotate(345deg);
    animation-timing-function: linear;
  }
  30% {
    transform: rotate(455deg);
    animation-timing-function: ease-in-out;
  }
  39% {
    transform: rotate(690deg);
    animation-timing-function: linear;
  }
  70% {
    transform: rotate(815deg);
    opacity: 1;
    animation-timing-function: ease-out;
  }
  75% {
    transform: rotate(945deg);
    animation-timing-function: ease-out;
  }
  76% {
    transform: rotate(945deg);
    opacity: 0;
  }
  100% {
    transform: rotate(945deg);
    opacity: 0;
  }
}
