:root {
  --brand: #6c5ce7;
  --brand-dark: #4b3fc4;
  --ink: #14131a;
  --muted: #6b6a75;
  --bg: #f6f5ff;
  --card: #ffffff;
  --line: #e7e5f5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f3ff;
    --muted: #a9a7bb;
    --bg: #14131a;
    --card: #1e1c29;
    --line: #2d2a3d;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 24px 16px 48px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin: 8px 0 24px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand);
  display: grid; place-items: center; color: #fff; font-size: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px;
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.12);
}
.from { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.from .emoji {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg);
  display: grid; place-items: center; font-size: 22px;
}
h1 { font-size: 28px; line-height: 1.15; margin: 14px 0 4px; }
.when { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.timer {
  border-radius: 20px; padding: 16px 10px; margin-bottom: 14px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center;
  background: var(--brand); color: #fff;
}
.timer .n { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.timer .l { font-size: 12px; opacity: 0.85; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.going { color: var(--muted); font-size: 15px; text-align: center; margin: 0 0 18px; }
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 16px; padding: 15px 16px; font: inherit; font-weight: 700; font-size: 17px;
  background: var(--brand); color: #fff;
}
.btn:active { background: var(--brand-dark); }
.btn.secondary { background: transparent; color: var(--brand); border: 2px solid var(--brand); margin-top: 10px; }
.btn[hidden] { display: none; }
.hint { color: var(--muted); font-size: 13px; text-align: center; margin: 12px 0 0; }
.center { text-align: center; padding: 18px 4px; }
.center .big { font-size: 46px; }
.footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
.footer a { color: inherit; }
[hidden] { display: none !important; }
.hero h1 { font-size: 34px; }
.hero p { color: var(--muted); font-size: 18px; }
ul.features { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
ul.features li { display: flex; gap: 12px; align-items: flex-start; }
ul.features .i { font-size: 24px; }
