:root {
  --bg1: #dff3ff;
  --bg2: #ffffff;
  --ink: #0a2540;
  --muted: #5b728a;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans';
}

.wrap {
  width: min(940px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
  position: relative;
}

h1 {
  font-size: clamp(28px, 6vw, 64px);
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.lead {
  font-size: clamp(16px, 3.2vw, 22px);
  color: var(--muted);
  margin: 0 0 24px;
}

.counter {
  font-size: clamp(56px, 11vw, 150px);
}

.sky {
  position: relative;
  height: 32vh;
  min-height: 200px;
  width: 100%;
  margin: 28px auto;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.2)
  );
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.balloon {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 70px;
  border-radius: 50% 50% 46% 46%/56% 56% 44% 44%;
  box-shadow:
    inset -6px -10px 14px rgba(0, 0, 0, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.08);
  animation: floatUp var(--dur, 10s) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0.85;
}

.balloon:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: currentColor;
}

.balloon .string {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 1.5px;
  height: 90px;
  background: #9aaec2;
  transform: translateX(-50%);
  opacity: 0.6;
}

@keyframes floatUp {
  0% {
    transform: translate(-50%, 120%) scale(0.9);
  }

  100% {
    transform: translate(-50%, var(--endY, -110%)) scale(1.05);
  }
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: -4px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 520px) {
  .sky {
    height: 28vh;
    min-height: 180px;
  }

  .counter {
    font-size: clamp(48px, 18vw, 120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .balloon {
    animation: none;
    transform: translateX(-50%);
  }
}

.footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}
