:root {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #1a1f28;
  --text: #f4f6fb;
  --muted: #a8b0c0;
  --accent: #f5b942;
  --accent-dark: #c8921d;
  --border: rgba(245, 185, 66, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(245, 185, 66, 0.12), transparent 42%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

main {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-court {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-streaks {
  height: 1.15em;
  width: auto;
  display: block;
  transform: translateY(0.06em);
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

/* Legacy emoji mark — kept for any leftover markup */
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #111;
  font-size: 1.2rem;
}

.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  text-align: center;
}

.brand-hero-logo {
  width: min(220px, 58vw);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.brand-hero-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text);
}

.brand-hero-wordmark .logo-streaks {
  height: 1.05em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border);
}

.code-box strong {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #111;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

.note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.bullets {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.bullets li + li {
  margin-top: 8px;
}

footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden {
  display: none;
}
