/* Same colours as the app (src/global.css, Midnight theme). No web fonts, no trackers. */
:root {
  --bg: #0b0b12;
  --surface: #171726;
  --surface-raised: #232338;
  --border: #34344f;
  --fg: #f5f5fa;
  --fg-muted: #a3a3bd;
  --primary: #ff2e63;
  --on-primary: #0b0b12;
  --accent: #c6ff3d;
  --pro: #ffc53d;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

main {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  align-self: flex-start;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.1;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

p {
  margin: 0;
}

.muted {
  color: var(--fg-muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.challenge-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.game-emoji {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  background: var(--surface-raised);
  border-radius: 1rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.score {
  font-size: clamp(2.5rem, 12vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--pro);
  vertical-align: middle;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.highlights li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.highlights .emoji {
  font-size: 1.75rem;
}

.highlights strong {
  font-size: 0.9375rem;
}

.highlights span.muted {
  font-size: 0.8125rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

footer a {
  color: var(--fg-muted);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: transform 0.1s ease;
  }
  .button:active {
    transform: scale(0.97);
  }
}
