/* style.css — all styling */
:root {
  --bg: #0b1220;
  --bg-2: #0f1830;
  --panel: #121d36;
  --panel-2: #16223f;
  --text: #e8eefc;
  --muted: #93a4c4;
  --line: rgba(255,255,255,.08);
  --blue: #2f7bff;
  --blue-2: #4ea1ff;
  --blue-glow: rgba(78,161,255,.55);
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef3fb;
    --bg-2: #e3ebf7;
    --panel: #ffffff;
    --panel-2: #f4f8ff;
    --text: #0d1b3a;
    --muted: #5a6b8a;
    --line: rgba(13,27,58,.10);
    --blue: #2f7bff;
    --blue-2: #1f63d8;
    --blue-glow: rgba(47,123,255,.35);
    --shadow: 0 18px 45px rgba(31,50,90,.18);
    color-scheme: light;
  }
}
html[data-theme="dark"] {
  --bg: #0b1220; --bg-2: #0f1830; --panel: #121d36; --panel-2: #16223f;
  --text: #e8eefc; --muted: #93a4c4; --line: rgba(255,255,255,.08);
  --blue: #2f7bff; --blue-2: #4ea1ff; --blue-glow: rgba(78,161,255,.55);
  --shadow: 0 18px 50px rgba(0,0,0,.45); color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #eef3fb; --bg-2: #e3ebf7; --panel: #ffffff; --panel-2: #f4f8ff;
  --text: #0d1b3a; --muted: #5a6b8a; --line: rgba(13,27,58,.10);
  --blue: #2f7bff; --blue-2: #1f63d8; --blue-glow: rgba(47,123,255,.35);
  --shadow: 0 18px 45px rgba(31,50,90,.18); color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(47,123,255,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(78,161,255,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  -webkit-font-smoothing: antialiased;
}

.card {
  position: relative;
  width: min(560px, 100%);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
}

.eyebrow {
  margin: 4px 0 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-2);
}
.hello {
  margin: 0 0 10px;
  font-size: clamp(24px, 5.5vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
}
.sub {
  margin: 0 auto 26px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.blue-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 18px 30px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow:
    0 12px 28px rgba(47,123,255,.42),
    0 2px 0 rgba(255,255,255,.22) inset,
    0 -6px 14px rgba(0,0,0,.18) inset;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
  touch-action: manipulation;
  user-select: none;
}
.blue-btn:hover { filter: brightness(1.05); box-shadow: 0 16px 34px var(--blue-glow), 0 2px 0 rgba(255,255,255,.25) inset, 0 -6px 14px rgba(0,0,0,.18) inset; }
.blue-btn:active { transform: translateY(2px) scale(.99); }
.blue-btn:focus-visible { outline: 3px solid var(--blue-glow); outline-offset: 3px; }
.blue-btn.pop { animation: pop .22s ease; }
@keyframes pop { 0%{transform:scale(1)} 40%{transform:scale(.95)} 100%{transform:scale(1)} }

.btn-label { letter-spacing: .01em; }
.btn-count {
  min-width: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset;
}

.hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.confetti {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5;
}
.confetti .bit {
  position: absolute; top: -20px; border-radius: 2px; opacity: 0;
  animation-name: fall; animation-timing-function: cubic-bezier(.2,.7,.3,1); animation-fill-mode: forwards;
}
@keyframes fall {
  0% { opacity: 1; transform: translate3d(0,0,0) rotate(0deg); }
  100% { opacity: 0; transform: translate3d(0, 90vh, 0) rotate(var(--rot)); }
}

.pause {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,10,20,.62);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.pause-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: #fff; font-weight: 600; font-size: 15px;
}
.pause-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 0 0 var(--blue-glow);
  animation: ping 1.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 var(--blue-glow); }
  100% { box-shadow: 0 0 0 18px rgba(78,161,255,0); }
}
