:root {
  --bg: #0a0506;
  --fg: #ffffff;
  --muted: #c9a3a6;
  --red: #e8414a;          /* primary accent: buttons, labels */
  --red-soft: #f05a62;
  --card-top: #5c1418;     /* card gradient */
  --card-bot: #3d1013;
  --inner: rgba(30, 6, 8, 0.55);
  --line: rgba(232, 65, 74, 0.28);
}

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

html, body { height: 100%; }
html { overflow: hidden; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(rgba(232, 65, 74, 0.22) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(120% 80% at 50% 0%, #1c0a0c 0%, var(--bg) 60%);
  background-color: var(--bg);
  background-attachment: fixed;
}

/* ---------- Cloud background ---------- */
.sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: left, top, opacity;
}
.c1 { width: 560px; height: 380px; background: radial-gradient(closest-side, rgba(232, 65, 74, 0.45), transparent); }
.c2 { width: 480px; height: 320px; background: radial-gradient(closest-side, rgba(150, 24, 32, 0.55), transparent); }
.c3 { width: 400px; height: 280px; background: radial-gradient(closest-side, rgba(255, 110, 90, 0.25), transparent); }
.c4 { width: 620px; height: 400px; background: radial-gradient(closest-side, rgba(110, 16, 22, 0.60), transparent); }
.c5 { width: 360px; height: 260px; background: radial-gradient(closest-side, rgba(240, 90, 98, 0.30), transparent); }

@media (max-width: 600px) {
  .cloud { transform: scale(0.6); }
}

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 0;
  padding: clamp(10px, 3vh, 40px) 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: clamp(10px, 3.5vh, 32px);
}

.muted { color: var(--red); font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(8px, 2vh, 18px);
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--fg);
  background: rgba(232, 65, 74, 0.12);
  box-shadow: 0 0 18px rgba(232, 65, 74, 0.25);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(232, 65, 74, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(232, 65, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 65, 74, 0); }
}

h1 {
  margin: 0 0 clamp(6px, 1.5vh, 14px);
  font-size: clamp(1.8rem, min(7vw, 7vh), 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.grad {
  background: linear-gradient(90deg, var(--red), #ff8a70);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 auto clamp(12px, 3.5vh, 32px);
  max-width: 40ch;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
}

/* ---------- Card with countdown ---------- */
.card {
  width: 100%;
  max-width: 600px;
  padding: clamp(14px, 3vh, 28px) 24px clamp(16px, 3vh, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bot));
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(232, 65, 74, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card h2 {
  margin: 0 0 clamp(10px, 2.2vh, 22px);
  font-size: clamp(1.2rem, min(4vw, 3.5vh), 1.9rem);
  font-weight: 600;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 clamp(12px, 2.6vh, 26px);
}

.unit {
  padding: clamp(8px, 1.6vh, 14px) 6px clamp(10px, 1.8vh, 16px);
  border-radius: 14px;
  background: var(--inner);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.lbl {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--red-soft);
}

.num {
  display: block;
  font-size: clamp(1.5rem, min(7vw, 5vh), 2.8rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.live {
  margin: -10px 0 22px;
  color: var(--red-soft);
  font-weight: 600;
}

/* ---------- Button ---------- */
.btn {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: clamp(10px, 1.6vh, 14px) 22px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(232, 65, 74, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--red-soft); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: clamp(8px, 1.8vh, 20px);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(232, 65, 74, 0.15);
}

@media (max-width: 460px) {
  .card { padding: 22px 14px 24px; border-radius: 18px; }
  .countdown { gap: 8px; }
  .unit { padding: 10px 2px 12px; border-radius: 12px; }
  .lbl { font-size: 0.7rem; }
}

/* Very short screens (landscape phones): allow scroll rather than clip */
@media (max-height: 480px) {
  html, body { overflow: auto; }
  body { height: auto; min-height: 100dvh; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .btn { transition: none; }
}
