* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  min-height: 100vh;
  color: #2c3e50;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;

  /* --- NOVÉ DESIGNU ZAJÍMAVÉ POZADÍ --- */
  background-color: #fdfbf7; /* Základní krémová */
  background-image:
    radial-gradient(at 10% 10%, rgba(255, 218, 224, 0.7) 0px, transparent 50%),
    /* Jemná růžová vlevo nahoře */
    radial-gradient(at 90% 10%, rgba(212, 230, 241, 0.7) 0px, transparent 50%),
    /* Jemná modrá vpravo nahoře */
    radial-gradient(at 90% 90%, rgba(220, 237, 225, 0.7) 0px, transparent 50%),
    /* Šalvějově zelená vpravo dole */
    radial-gradient(at 10% 90%, rgba(250, 235, 215, 0.7) 0px, transparent 50%); /* Teplá béžová vlevo dole */
  background-attachment: fixed;
  background-size: 100% 100%;
}

.container {
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  padding: 4rem 2rem;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.subtitle {
  display: block;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8e9aaf;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 800;
  color: #3d5a80;
  margin: 0 0 2rem 0;
  line-height: 1;
}

.image-wrapper {
  margin: 0 auto 2rem auto;
  max-width: 400px;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  /* Pokud použiješ obrázek bez pozadí, tyto vlastnosti dole se neprojeví, 
       ale nechávám je tu jako pojistku, kdybys dal fotku. */
  border-radius: 16px;
  object-fit: cover;
}

.announcement {
  font-size: 1.4rem;
  font-weight: 500;
  color: #2b2d42;
  margin-bottom: 0.5rem; /* Zmenšeno, aby datum pod tím navazovalo */
}

/* Nový styl pro termín narození */
.due-date {
  font-size: 1.05rem;
  color: #8e9aaf;
  margin-bottom: 2.5rem; /* Větší mezera před samotným odpočtem */
  font-weight: 500;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.time-box {
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  padding: 1rem;
  border-radius: 16px;
  min-width: 85px;
  flex: 1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.time-box span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #e07a5f;
}

.time-box label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6c757d;
}

/* --- ANIMACE (Postupné objevování) --- */
.fade-in {
  opacity: 0; /* Na začátku není nic vidět */
  transform: translateY(20px); /* Prvky jsou lehce posunuté dolů */
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Zpoždění pro jednotlivé prvky (stagger effect) */
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.5s;
}
.delay-3 {
  animation-delay: 0.8s;
}
.delay-4 {
  animation-delay: 1.1s;
}
.delay-5 {
  animation-delay: 1.4s;
} /* Text s termínem */
.delay-6 {
  animation-delay: 1.7s;
} /* Odpočet */

.names-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.5rem;
}

.name-tag {
  background: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  color: #4a5568;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: inline-block;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
  cursor: default;
}

.name-tag:hover {
  transform: scale(1.08) rotate(0deg) !important;
  background: #fff5f5;
  color: #e07a5f;
}

.n-1 {
  font-size: 0.9rem;
  transform: rotate(-4deg);
}
.n-2 {
  font-size: 1.2rem;
  transform: rotate(3deg);
}
.n-3 {
  font-size: 0.85rem;
  transform: rotate(-6deg);
}
.n-4 {
  font-size: 1.1rem;
  transform: rotate(5deg);
}
.n-5 {
  font-size: 0.95rem;
  transform: rotate(-2deg);
}
.n-6 {
  font-size: 1.25rem;
  transform: rotate(4deg);
}
.n-7 {
  font-size: 0.8rem;
  transform: rotate(-5deg);
}

/* Aktualizované časování animací (přidána delay-7 pro jména) */
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.5s;
}
.delay-3 {
  animation-delay: 0.8s;
}
.delay-4 {
  animation-delay: 1.1s;
}
.delay-5 {
  animation-delay: 1.4s;
}
.delay-6 {
  animation-delay: 1.7s;
}
.delay-7 {
  animation-delay: 2s;
} /* Jména naskočí jako poslední */

.welcome-action {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.enter-btn {
  background: #ffffff;
  color: #3d5a80;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: inline-block;
}

.enter-btn:hover {
  transform: scale(1.05);
  background: #fff5f5;
  color: #e07a5f;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
  .countdown {
    flex-direction: column;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .countdown {
    flex-direction: column;
  }
}
