* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #eaf2ff;
  background: radial-gradient(1200px 600px at 10% 10%, #0a1b3a, transparent),
    radial-gradient(1000px 700px at 90% 20%, #07152a, transparent),
    radial-gradient(1200px 800px at 50% 90%, #040914, #02040a);
  overflow: hidden;
}

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

.glass-card {
  width: min(560px, 95vw);
  padding: 28px 28px 24px;
  border-radius: 22px;
  background: rgba(10, 20, 40, 0.55);
  border: 1px solid rgba(80, 140, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  text-align: center;
  position: relative;
}

.status-dot {
  width: 13px;
  height: 13px;
  background: #4aa3ff;
  border-radius: 999px;
  margin: 0 auto 10px;
  box-shadow: 0 0 12px #4aa3ff, 0 0 32px rgba(74, 163, 255, 0.6);
  animation: pulse 2.2s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.3px;
}

.explanation {
  margin: 6px auto 18px;
  max-width: 48ch;
  color: #cfe3ff;
  font-size: 0.98rem;
  line-height: 1.5;
  opacity: 0.9;
}

.countdown h2 {
  margin: 0 0 12px;
  font-weight: 600;
  color: #d7e8ff;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 auto;
}

.time-box {
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(8, 14, 28, 0.65);
  border: 1px solid rgba(90, 155, 255, 0.35);
  box-shadow: inset 0 0 15px rgba(30, 90, 180, 0.15);
}

.time-box span {
  display: block;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: #edf5ff;
  text-shadow: 0 0 8px rgba(80, 155, 255, 0.6);
}

.time-box small {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: #a8c8ff;
  letter-spacing: 0.5px;
}

/* =======================
   Progress-Bar + Tick-Effekt
   ======================= */
.progress-wrap {
  margin-top: 18px;
  text-align: left;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  color: #cfe3ff;
  margin-bottom: 6px;
  opacity: 0.95;
}

.progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.8);
  border: 1px solid rgba(90, 155, 255, 0.35);
  overflow: hidden;
}

.progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(75, 170, 255, 0.95),
    rgba(140, 110, 255, 0.9)
  );
  box-shadow: 0 0 14px rgba(80, 155, 255, 0.8);
  transition: width 0.6s ease;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shimmer 2.4s infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { transform: translateX(-120%); }
  60%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.progress-spark {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cfe9ff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #9bd2ff, 0 0 18px rgba(155, 210, 255, 0.9);
  transition: left 0.6s ease;
}

/* Pop-Animation wenn sich Zahlen ändern */
.time-box.tick {
  animation: tickpop 0.35s ease;
}

@keyframes tickpop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}


.done {
  margin-top: 14px;
  font-weight: 600;
  color: #7fb7ff;
}
.hidden {
  display: none;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
  left: 0;
  top: 0;
  display: block;

  opacity: 0.55;
  background: linear-gradient(
    135deg,
    rgba(70, 150, 255, 0.95),
    rgba(30, 60, 140, 0.2)
  );
  border: 1px solid rgba(160, 210, 255, 0.7);

  /* FIX: Glow folgt der echten (geclippten) Form */
  box-shadow: none;
  filter: drop-shadow(0 0 18px rgba(70, 150, 255, 0.55));

  will-change: transform;
  transform-origin: center;
}

.s1 {
  width: 90px;
  height: 90px;
  border-radius: 14px;
}
.s2 {
  width: 140px;
  height: 140px;
  border-radius: 999px;
}
.s3 {
  width: 70px;
  height: 70px;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  -webkit-clip-path: polygon(50% 0, 0 100%, 100% 100%);
}
.s4 {
  width: 120px;
  height: 120px;
  border-radius: 22px;
}
.s5 {
  width: 55px;
  height: 55px;
  border-radius: 8px;
}
.s6 {
  width: 95px;
  height: 95px;
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
  -webkit-clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
}
.s7 {
  width: 160px;
  height: 160px;
  border-radius: 999px;
}
.s8 {
  width: 85px;
  height: 85px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  -webkit-clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.s9 {
  width: 110px;
  height: 110px;
  border-radius: 12px;
}
.s10 {
  width: 60px;
  height: 60px;
  clip-path: polygon(
    50% 0,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  -webkit-clip-path: polygon(
    50% 0,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}
.s11 {
  width: 130px;
  height: 70px;
  border-radius: 999px;
}
.s12 {
  width: 75px;
  height: 120px;
  border-radius: 18px;
}

@media (max-width: 520px) {
  .time-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
