:root {
  color-scheme: light dark;
  --bg: #fff8ee;
  --bg-2: #f6ecdc;
  --card: #ffffff;
  --text: #2a2540;
  --muted: #625b78;
  --violet: #7f77dd;
  --violet-ink: #4f46b8;
  --violet-soft: #ece9fb;
  --line: #eadfcd;
  --shadow: 0 1px 2px rgba(42, 37, 64, .06), 0 8px 24px rgba(42, 37, 64, .06);
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1928;
    --bg-2: #222033;
    --card: #282539;
    --text: #f6f1e7;
    --muted: #b9b3c9;
    --violet: #8f88e6;
    --violet-ink: #b9b4f5;
    --violet-soft: #33304d;
    --line: #37344b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-ink); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); margin: .2em 0 .35em; }
h2 { font-size: 1.45rem; margin: 2em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 .3em; }
p, ul, ol { margin: 0 0 1em; }
li + li { margin-top: .3em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand svg { width: 36px; height: 36px; }
.site-header nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--violet-ink); background: var(--violet-soft); }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding: 28px 0 8px; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.hero-art { background: var(--bg-2); border-radius: 36px; padding: 28px 18px 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--violet-soft); color: var(--violet-ink); font-weight: 800; font-size: .92rem; padding: 6px 14px; border-radius: 999px; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; background: var(--text); color: var(--bg); font-weight: 800; padding: 12px 20px; border-radius: 16px; }
.badge svg { width: 20px; height: 20px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 24px; padding: 0; list-style: none; }
.cards li { margin: 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); height: 100%; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
.card .dot { width: 40px; height: 40px; margin-bottom: 10px; }

.games { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 8px 0 28px; }
.games li { margin: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.games li small { color: var(--muted); font-weight: 600; }

.promise { background: var(--violet-soft); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0 8px; }
.promise h2 { margin-top: 0; font-size: 1.25rem; }
.promise p { margin: 0; }

.doc { padding: 12px 0 40px; }
.doc .meta { color: var(--muted); margin-top: -.4em; }
.doc .summary { background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.doc .summary ul { margin: 0; padding-left: 1.2em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 800; }
.table-scroll { overflow-x: auto; }

details { background: var(--card); box-shadow: var(--shadow); border-radius: 18px; padding: 4px 20px; margin: 0 0 12px; }
summary { cursor: pointer; font-weight: 800; padding: 12px 28px 12px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: rotate(45deg); }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details[open] summary { padding-bottom: 4px; }
details > div { padding-bottom: 8px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 32px; color: var(--muted); font-size: .95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero-art { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-header nav { margin-left: -12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob 3.2s ease-in-out infinite; transform-origin: center bottom; transform-box: fill-box; }
  .bob.late { animation-delay: -1.6s; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
}
