@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cyan: #5fd4ff;
  --blue: #3a6fd8;
  --green: #8fce3f;
  --lime: #b8e63e;
  --red: #e85a5a;
  --orange: #f08a4b;
  --dark: #0a0e1a;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  background: radial-gradient(ellipse at 50% 30%, #141c33 0%, #0a0e1a 55%, #05070f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100vh;
  padding: 20px;
}

/* ---- Sterne im Hintergrund ---- */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 1px;
  opacity: 0.7;
  animation: twinkle var(--dur) ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.15; transform: scale(0.6); }
  100% { opacity: 0.9;  transform: scale(1.2); }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeIn 1.2s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.image-wrap {
  position: relative;
  width: min(88vmin, 640px);
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.logo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 0 40px rgba(95, 212, 255, 0.25),
    0 0 120px rgba(143, 206, 63, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(95, 212, 255, 0.25);
}

/* ---- Countdown (auf dem Bild, unter dem Logo) ---- */
.countdown {
  position: absolute;
  left: 50%;
  bottom: 2.5%;
  transform: translateX(-50%);
  width: 78%;
}

.countdown-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(ellipse at center, rgba(95, 212, 255, 0.22) 0%, transparent 70%);
  filter: blur(8px);
  animation: pulseGlow 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.countdown-inner {
  position: relative;
  background: rgba(5, 8, 18, 0.78);
  border: 2px solid rgba(95, 212, 255, 0.45);
  border-radius: 12px;
  padding: 10px 12px 12px;
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 0 22px rgba(58, 111, 216, 0.25),
    0 0 24px rgba(95, 212, 255, 0.2);
}

.countdown-label {
  text-align: center;
  font-size: clamp(8px, 1.8vmin, 12px);
  letter-spacing: 3px;
  color: var(--lime);
  text-shadow: 0 0 10px rgba(184, 230, 62, 0.8);
  margin-bottom: 8px;
  animation: labelBlink 2.2s steps(1) infinite;
}

@keyframes labelBlink {
  0%, 70%  { opacity: 1; }
  71%, 100% { opacity: 0.55; }
}

.time-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.2vmin, 10px);
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, rgba(58, 111, 216, 0.28) 0%, rgba(10, 14, 26, 0.5) 100%);
  border: 1px solid rgba(95, 212, 255, 0.35);
  border-radius: 8px;
  padding: 6px clamp(5px, 1.4vmin, 12px);
  min-width: clamp(44px, 11vmin, 78px);
  box-shadow: inset 0 0 12px rgba(95, 212, 255, 0.12);
}

.time-value {
  font-size: clamp(14px, 4.2vmin, 30px);
  color: var(--cyan);
  text-shadow:
    0 0 8px rgba(95, 212, 255, 0.9),
    0 0 22px rgba(58, 111, 216, 0.7);
  display: inline-block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.time-value.tick {
  animation: digitPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes digitPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35) translateY(-3px); color: #fff; text-shadow: 0 0 16px var(--cyan), 0 0 34px var(--blue); }
  100% { transform: scale(1); }
}

.time-unit {
  font-size: clamp(5px, 1.2vmin, 8px);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.time-sep {
  font-size: clamp(14px, 4vmin, 28px);
  color: var(--red);
  text-shadow: 0 0 10px rgba(232, 90, 90, 0.9);
  animation: sepBlink 1s steps(1) infinite;
  align-self: flex-start;
  padding-top: 4px;
}

@keyframes sepBlink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

/* ---- Fertig-Meldung ---- */
.finished {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  width: 82%;
  text-align: center;
  font-size: clamp(9px, 2vmin, 14px);
  color: var(--lime);
  text-shadow: 0 0 12px rgba(184, 230, 62, 0.9);
  background: rgba(5, 8, 18, 0.85);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 14px 10px;
  animation: livePulse 0.9s ease-in-out infinite alternate;
}

.finished.show { display: block; }
.countdown.done { display: none; }

@keyframes livePulse {
  from { box-shadow: 0 0 12px rgba(143, 206, 63, 0.4); transform: translateX(-50%) scale(1); }
  to   { box-shadow: 0 0 34px rgba(184, 230, 62, 0.9);  transform: translateX(-50%) scale(1.03); }
}

/* ---- Datum Hinweis ---- */
.date-hint {
  font-size: clamp(7px, 1.5vmin, 10px);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(95, 212, 255, 0.4);
  animation: fadeIn 1.6s 0.4s ease both;
}

@media (max-width: 480px) {
  .countdown-inner { padding: 8px 6px; }
  .time-box { min-width: 42px; padding: 5px 4px; }
  .time-sep { display: none; }
  .time-grid { gap: 3px; }
}
