:root {
  --bg: #0b0b14;
  --bg-2: #1b1033;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --accent: #ff3d7f;
  --accent-2: #ffb13d;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: radial-gradient(120% 80% at 50% 30%, var(--bg-2), var(--bg));
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.phone {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 9vw, 44px);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.message {
  margin: 0;
  min-height: 2.6em;
  font-size: clamp(18px, 5.5vw, 26px);
  font-weight: 600;
  color: var(--muted);
}

.tap {
  width: min(72vw, 48dvh);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 60%);
  color: #fff;
  font: inherit;
  font-size: clamp(36px, 12vw, 64px);
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow:
    0 0 0 8px rgba(255, 61, 127, 0.18),
    0 20px 60px rgba(255, 61, 127, 0.45);
  touch-action: manipulation;
  cursor: pointer;
}

.tap.done {
  filter: saturate(0.6);
}

footer {
  width: 100%;
  max-width: 420px;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.25s ease-out;
}

.count {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.offline {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 14px;
}
