*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0c0c0c;
  color: #eee;
  -webkit-font-smoothing: antialiased;
}

/* top accent line */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #555 30%, #555 70%, transparent 100%);
  z-index: 10;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  animation: fadein 1.2s ease both;
}

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

.title {
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #444;
  font-weight: 400;
  margin: 0 0 52px;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 0;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(12px, 3.5vw, 48px);
}

.time-unit .num {
  font-size: clamp(4.5rem, 15vw, 13rem);
  font-weight: 100;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #f2f2f2;
}

.time-unit .unit {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #383838;
}

.sep {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 100;
  color: #222;
  line-height: 1;
  margin-bottom: 20px;
  user-select: none;
}

.message {
  margin-top: 56px;
  font-size: 0.82rem;
  color: #383838;
  letter-spacing: 0.06em;
  text-align: center;
  max-width: 320px;
  line-height: 2;
}

/* Birthday state */
.birthday-title {
  display: none;
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 100;
  letter-spacing: 0.18em;
  color: #f2f2f2;
  margin: 0 0 40px;
}

.is-birthday .countdown { display: none; }
.is-birthday .title { display: none; }
.is-birthday .birthday-title { display: block; }
.is-birthday .message { color: #555; margin-top: 0; }

@media (max-width: 480px) {
  .sep { display: none; }
  .time-unit { padding: 0 clamp(8px, 4vw, 20px); }
}
