/* Same look as the app: night-out purple, pink-to-violet glow, rounded heavy type. */
:root {
  --bg-top: #0d0517;
  --bg-bottom: #1c0a30;
  --pink: #ff2e87;
  --violet: #8c5cf5;
  --card: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --faint: rgba(255, 255, 255, 0.5);
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--bg-top);
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 55% at 0% 0%, rgba(255, 46, 135, 0.2), transparent 60%),
    radial-gradient(110% 55% at 100% 100%, rgba(140, 92, 245, 0.24), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
}

main {
  max-width: 440px;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ball { font-size: 72px; line-height: 1; text-align: center; margin-top: 8px; }

h1 {
  margin: 0;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
}

h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; }

.tagline {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
}

.code-label { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--faint); text-align: center; }

.code {
  margin: 0;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.code.broken { font-size: 22px; letter-spacing: 0; font-weight: 700; color: var(--muted); }

.copy {
  display: block;
  margin: 6px auto 0;
  padding: 8px 14px;
  border: 0;
  background: none;
  color: var(--pink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.buttons { display: flex; flex-direction: column; gap: 12px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--pink), var(--violet));
  box-shadow: 0 10px 32px rgba(255, 46, 135, 0.35);
}

.btn-secondary { background: var(--card); border: 1px solid var(--border); }

.btn[aria-disabled="true"] { opacity: 0.6; box-shadow: none; cursor: default; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.emoji { flex: none; width: 30px; font-size: 24px; line-height: 1.1; text-align: center; }

.num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  font-size: 15px;
  font-weight: 900;
}

.small { margin: 0; font-size: 14px; line-height: 1.4; color: var(--faint); text-align: center; }

[hidden] { display: none !important; }
