/* youwon.app — static, no build. Tokens mirror DESIGN.md front matter (YW-2). System font only (PLAN §15.2). */
:root {
  color-scheme: light dark;
  --you: #2350D8; --won: #E6F23A; --on-won: #0D1B4C; --night: #0D1B4C;
  --bg: #F2F2F7; --surface: #FFFFFF; --text: #000000; --muted: rgba(60, 60, 67, .6); --sep: rgba(60, 60, 67, .18);
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", var(--font);
}
@media (prefers-color-scheme: dark) {
  :root { --you: #5B8CFF; --bg: #000000; --surface: #1C1C1E; --text: #FFFFFF; --muted: rgba(235, 235, 245, .6); --sep: rgba(84, 84, 88, .6); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--you); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 9; }

/* header + footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 20px/1 var(--rounded); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.langs { display: flex; gap: 4px; font-size: 15px; font-weight: 600; }
.langs a, .langs span { padding: 6px 10px; border-radius: 99px; text-decoration: none; }
.langs span { background: var(--surface); color: var(--text); }
.foot { border-top: .5px solid var(--sep); margin-top: 64px; padding-top: 24px; padding-bottom: 40px; font-size: 15px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }

/* home */
.hero { background: var(--night); color: #fff; border-radius: 28px; padding: 56px 40px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero h1 { font: 800 clamp(44px, 8vw, 76px)/1.05 var(--rounded); margin: 0 0 16px; letter-spacing: -.5px; }
.hero p { font-size: 20px; margin: 0; max-width: 34em; color: rgba(255, 255, 255, .85); }
.hero .soon { display: inline-block; margin-top: 28px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 99px; } /* won yellow = the win only (DESIGN.md) */
.hero svg { width: 220px; height: auto; }
.sports { color: var(--muted); text-align: center; margin: 32px auto 0; max-width: 40em; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.screens figure { margin: 0; }
.screens img { display: block; width: 100%; max-width: 280px; margin: 0 auto 24px; filter: drop-shadow(0 20px 30px rgba(13, 27, 76, .18)); }
.screens h2, .note h2 { font: 700 22px/1.3 var(--font); margin: 0 0 8px; }
.screens p { margin: 0; color: var(--muted); }
.note { background: var(--surface); border-radius: 22px; padding: 32px; margin-top: 56px; }
.note p { margin: 0 0 12px; }

/* text pages */
.doc { max-width: 720px; }
.doc h1 { font: 800 clamp(34px, 6vw, 44px)/1.1 var(--rounded); margin: 24px 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font: 700 22px/1.3 var(--font); margin: 40px 0 8px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.lead { font-size: 20px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .hero svg { width: 140px; order: -1; }
  .screens { grid-template-columns: 1fr; gap: 48px; }
  .note { padding: 24px; }
}
