@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/plus-jakarta-sans-latin.woff2') format('woff2');
}

:root {
  --primary: #3949B8;
  --primary-dark: #28368C;
  --accent: #0A9FD1;
  --accent-light: #51D9DF;
  --bg: #F7F8FF;
  --surface: #FFFFFF;
  --surface-2: #EEF0FF;
  --text: #141833;
  --muted: #5A6080;
  --border: #DDE1F5;
  --good: #2E7D5B;
  --bad: #C0392B;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(32, 42, 112, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #7A7BF2;
    --primary-dark: #5C5ED8;
    --bg: #0D1025;
    --surface: #151A38;
    --surface-2: #1D2449;
    --text: #EEF0FF;
    --muted: #A3A9CC;
    --border: #27305C;
    --good: #4CC38A;
    --bad: #F0705F;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--primary); }
button { font: inherit; cursor: pointer; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 960px; margin: 0 auto; padding: 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand small { font-weight: 600; color: var(--muted); }
.top nav a { text-decoration: none; font-weight: 600; font-size: 14px; }

main { max-width: 960px; margin: 0 auto; padding: 8px 16px 48px; }
h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.1; margin: 16px 0 8px; letter-spacing: -.02em; }
.lede { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 8px; transition: transform .15s;
}
a.card:hover { transform: translateY(-3px); }
.card .art { height: 120px; border-radius: 12px; margin-bottom: 6px; }
.card h2 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .best { font-size: 13px; font-weight: 700; color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700;
  background: var(--primary); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--primary-dark); }
.btn.ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }

.hud { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 16px; }
.pill {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 14px;
}
.pill span { color: var(--muted); font-weight: 600; margin-right: 4px; }

.stage { position: relative; }
.overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(4px);
  border-radius: var(--radius); z-index: 5; padding: 16px;
}
.overlay[hidden] { display: none; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; text-align: center; max-width: 380px; width: 100%;
}
.panel h2 { margin: 0 0 6px; }
.panel .big { font-size: 44px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.panel p { color: var(--muted); margin: 6px 0 16px; }
.panel .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.cta {
  margin-top: 32px; padding: 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta p { margin: 0; max-width: 46ch; }
.cta strong { display: block; font-size: 18px; }
.cta .btn { background: #fff; color: #202A70; }

.how { margin-top: 24px; color: var(--muted); font-size: 15px; }
.how h2 { color: var(--text); font-size: 18px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }

.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
