/* Base styles: mobile first, system fonts */
:root {
  --navy-900: #080a52;
  --navy-800: #13166a;
  --navy-700: #1f2380;
  --magenta: #ea2087;
  --magenta-dark: #c40f6c;
  --magenta-soft: #fde7f2;
  --ink: #14163a;
  --ink-2: #474a6b;
  --line: #dfe2ec;
  --grey-50: #f5f6fa;
  --grey-100: #eff2f4;
  --white: #ffffff;
  --amber-bg: #fff4dc;
  --amber-ink: #7a4b00;
  --slate-bg: #eceef5;
  --slate-ink: #3c3f5c;
  --green-bg: #e2f7ee;
  --green-ink: #0d5e3d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(8, 10, 82, .06), 0 6px 20px rgba(8, 10, 82, .06);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta-dark); text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; color: var(--navy-900); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--white); color: var(--navy-900); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 8px; }

/* Header */
.site-header { background: var(--navy-900); color: var(--white); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; padding: 8px 0; }
.brand img { width: 132px; height: 30px; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav li { margin: 0; }
.site-nav a { display: block; color: #e8e9ff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.site-nav a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--magenta); border-radius: 0; }

/* Nav wraps by default; collapses behind toggle on small screens when JS is on */
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--white);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.site-nav { width: 100%; padding-bottom: 10px; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.js .site-nav ul { flex-direction: column; }
.js .site-nav a { padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }

@media (min-width: 900px) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; padding: 0; }
  .js .site-nav ul { flex-direction: row; }
  .js .site-nav a { padding: 8px 10px; border: 0; }
  .header-inner { flex-wrap: nowrap; }
  .site-header .header-cta { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--magenta-dark); color: var(--white); }
.btn-primary:hover { background: #a80b5c; color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy-900); border-color: var(--navy-900); }
.btn-secondary:hover { background: var(--grey-100); color: var(--navy-900); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.header-cta.btn { background: var(--magenta-dark); color: var(--white); }
.header-cta.btn:hover { background: #a80b5c; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Breadcrumb */
.breadcrumb { background: var(--grey-50); border-bottom: 1px solid var(--line); font-size: .9rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { margin: 0; color: var(--ink-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9a9db5; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--grey-50), var(--white)); padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero .lede { font-size: 1.08rem; color: var(--ink-2); max-width: 60ch; }
.hero-note { font-size: .9rem; color: var(--ink-2); margin-top: 14px; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
}
.page-hero { padding: 28px 0 24px; border-bottom: 1px solid var(--line); background: var(--grey-50); }
.page-hero .lede { font-size: 1.06rem; color: var(--ink-2); max-width: 70ch; margin-bottom: .6em; }
.updated { font-size: .85rem; color: var(--ink-2); margin: 0; }

/* Device frame */
.device-figure { margin: 0 auto; max-width: 300px; }
.device {
  width: 260px; height: 470px; margin: 0 auto; border-radius: 38px; background: var(--navy-900); padding: 12px;
  box-shadow: 0 18px 40px rgba(8, 10, 82, .22);
}
.device-screen { height: 100%; border-radius: 28px; background: var(--grey-100); overflow: hidden; display: flex; flex-direction: column; }
.device-bar { background: var(--navy-900); padding: 18px 16px 12px; display: flex; justify-content: space-between; align-items: center; }
.device-bar img { width: 88px; height: 20px; }
.device-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-700); }
.device-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.device-tile { background: var(--white); border-radius: 14px; padding: 14px 10px; text-align: center; font-size: .78rem; font-weight: 700; color: var(--navy-900); }
.device-tile svg { width: 34px; height: 34px; margin: 0 auto 6px; }
.device-placeholder { margin: 4px 14px 14px; flex: 1; border: 2px dashed #b9bdd4; border-radius: 14px; display: grid; place-items: center; text-align: center; color: var(--ink-2); font-size: .78rem; padding: 10px; }
.device-figure figcaption { font-size: .85rem; color: var(--ink-2); text-align: center; margin-top: 12px; }

/* Sections */
.section { padding: 44px 0; }
.section-alt { background: var(--grey-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 70ch; margin-bottom: 22px; }
.section-head p { color: var(--ink-2); }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
@media (min-width: 900px) { .section { padding: 64px 0; } }

/* Cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card .card-link { margin-top: auto; font-weight: 700; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--magenta-soft); display: grid; place-items: center; margin-bottom: 12px; }
.card-icon svg { width: 26px; height: 26px; }

/* Status labels and fact tables */
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.status-stated { background: var(--amber-bg); color: var(--amber-ink); }
.status-pending { background: var(--slate-bg); color: var(--slate-ink); }
.status-confirmed { background: var(--green-bg); color: var(--green-ink); }
.facts { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); margin: 0 0 1.4em; }
.facts th, .facts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 34%; color: var(--navy-900); background: var(--grey-50); font-weight: 700; }
.facts td .status { margin-bottom: 4px; }
@media (max-width: 560px) {
  .facts th, .facts td { display: block; width: 100%; }
  .facts th { border-bottom: 0; padding-bottom: 4px; }
}
.legend { font-size: .9rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 14px; }

/* Callouts */
.callout { border-left: 4px solid var(--magenta); background: var(--magenta-soft); padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }
.callout-neutral { border-left-color: var(--navy-700); background: var(--grey-50); }
.callout strong { color: var(--navy-900); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy-900); color: var(--white); font-weight: 700; display: grid; place-items: center; font-size: .9rem;
}

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; color: var(--navy-900); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--magenta-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 18px 16px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Link list */
.link-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.link-list a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; color: var(--navy-900); background: var(--white); }
.link-list a span { display: block; font-weight: 400; color: var(--ink-2); font-size: .92rem; }
.link-list a:hover { border-color: var(--magenta); }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { margin: 0; background: var(--grey-100); border-radius: 999px; padding: 4px 12px; font-size: .9rem; color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy-900); color: #d6d8f5; padding: 40px 0 24px; margin-top: 0; font-size: .93rem; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #ffffff; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; }
.footer-brand img { width: 120px; height: 27px; margin-bottom: 12px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #b9bce6; }
.age-badge { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 2px solid #ffffff; border-radius: 50%; font-weight: 800; font-size: .8rem; color: #ffffff; margin-right: 8px; vertical-align: middle; }

/* Utility */
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .nav-toggle, .btn-row { display: none; } }
.mb-0 { margin-bottom: 0; }

.site-header .header-cta { display: none; }
@media (min-width: 900px) { .site-header .header-cta { display: inline-flex; } }
@media (max-width: 599px) {
  .device { width: 210px; height: 380px; border-radius: 32px; padding: 10px; }
  .device-screen { border-radius: 24px; }
  .device-tiles { gap: 8px; padding: 10px; }
  .device-tile { padding: 10px 6px; font-size: .72rem; }
  .device-tile svg { width: 26px; height: 26px; }
}
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 75ch; }
.legend { display: block; }
.legend span.legend-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.legend span.legend-row { flex-wrap: nowrap; } .legend-row .status { flex-shrink: 0; }

/* Active nav state */
.site-nav a[aria-current="true"] { color: var(--white); }
@media (min-width: 900px) { .site-nav a { padding: 8px 8px; font-size: .92rem; } }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }

/* Two-column hero */
.promo-hero-grid { display: grid; gap: 24px; align-items: center; }
.promo-banner { margin: 0; }
.promo-banner img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.promo-banner img.square { max-width: 340px; margin: 0 auto; aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 900px) {
  .promo-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .promo-hero-grid.no-pic { grid-template-columns: 1fr; }
}

/* Image cards */
.hub-cards { margin-bottom: 8px; }
.promo-card { padding: 0; overflow: hidden; }
.promo-card > img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: var(--grey-100); }
.promo-card > img.pos-low { object-position: center 85%; }
.promo-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.promo-card h3 a { color: var(--navy-900); text-decoration: none; }
.promo-card h3 a:hover { color: var(--magenta-dark); }
.tag { display: inline-block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--magenta-dark); margin-bottom: 6px; }
.promo-key { font-size: .88rem; color: var(--navy-900); background: var(--grey-50); border-radius: var(--radius-sm); padding: 8px 10px; }

/* Worked examples and number tables */
.example { border: 1px solid var(--line); border-top: 4px solid var(--navy-900); border-radius: var(--radius); padding: 18px 20px 6px; background: var(--white); margin: 0 0 1.6em; box-shadow: var(--shadow); }
.example-label { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--magenta-dark); margin-bottom: 4px; }
.example h3 { margin-top: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.calc, .compare { font-size: .93rem; }
.calc th, .calc td, .compare th, .compare td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.calc thead th { background: var(--grey-50); color: var(--navy-900); font-size: .84rem; }
.calc tbody th { font-weight: 600; color: var(--ink); }
.calc .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc tr:last-child th, .calc tr:last-child td, .compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.calc tr.total th, .calc tr.total td { font-weight: 800; color: var(--navy-900); background: var(--magenta-soft); }
.compare { min-width: 720px; }
.compare thead th { background: var(--navy-900); color: var(--white); }
.compare tbody th a { font-weight: 700; }

/* Tips */
.tips { list-style: none; padding: 0; }
.tips li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.tips li::before { content: "\2713"; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%; background: var(--magenta-soft); color: var(--magenta-dark); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.tips strong { color: var(--navy-900); }

/* Game thumbnails */
.game-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; margin: 0 0 1.2em; max-width: none !important; }
.game-grid li { margin: 0; font-size: .82rem; font-weight: 600; color: var(--navy-900); line-height: 1.3; }
.game-grid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; margin-bottom: 6px; background: var(--grey-100); }
.wrap.prose > .game-grid { max-width: none; }

/* Misc components */
.eyebrow { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--magenta-dark); margin-bottom: .5em; }
.mt-2 { margin-top: 1.6em; }
.device-join { background: var(--magenta-dark); color: #fff; font-size: .62rem; font-weight: 800; padding: 4px 8px; border-radius: 999px; }
.device-promo { width: calc(100% - 20px); margin: 10px 10px 0; border-radius: 10px; height: auto; }
.device .device-tiles { padding-top: 10px; }
.ways .card h3 { margin-top: 0; }
.card-title-link { color: var(--navy-900); text-decoration: none; }
.card-title-link:hover { color: var(--magenta-dark); text-decoration: underline; }
.compare.compare-sm { min-width: 560px; }
.compare-sm tbody th { background: var(--grey-50); color: var(--navy-900); width: 22%; }

/* Form mockups */
.mock-figure { margin: 0 auto; max-width: 360px; }
.mock { background: var(--white); border-radius: 20px; padding: 26px 22px 0; box-shadow: 0 18px 40px rgba(8, 10, 82, .18); border: 1px solid var(--line); overflow: hidden; text-align: center; }
.mock-title { font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; color: var(--ink); margin-bottom: 18px; }
.mock-field { display: flex; gap: 12px; background: #ecebee; border-radius: 6px; padding: 11px 12px; font-size: .88rem; font-weight: 600; color: var(--ink); text-align: left; }
.mock-cc { white-space: nowrap; }
.mock-note { font-size: .85rem; font-weight: 600; margin: 14px 0 8px; }
.mock-banner { background: linear-gradient(90deg, #c2187b, #3d1bd8 75%, #1100ff); color: #fff; border-radius: 6px; padding: 10px 12px; font-size: .86rem; font-weight: 800; text-align: left; }
.mock-banner small { display: block; font-weight: 600; font-size: .78rem; }
.mock-btn { margin: 22px 10px 0; background: #ef7fb8; color: #fff; font-weight: 800; border-radius: 999px; padding: 11px; font-size: .95rem; }
.mock-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 16px; }
.mock-split span { background: #ef7fb8; color: #fff; font-weight: 800; font-size: .84rem; padding: 11px 6px; }
.mock-split span:first-child { border-radius: 6px 0 0 6px; } .mock-split span:last-child { border-radius: 0 6px 6px 0; }
.mock-foot { margin: 22px -22px 0; background: var(--grey-100); padding: 14px; font-size: .88rem; font-weight: 600; }
.mock-foot span { color: var(--magenta); border: 1px solid var(--line); background: #fff; padding: 2px 8px; margin-left: 4px; }
.mock-figure figcaption { font-size: .85rem; color: var(--ink-2); text-align: center; margin-top: 12px; }

/* Back-to-top button */
.scroll-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #ea2087; background: #080a52; color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(8, 10, 82, .3); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease, color .2s ease; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover, .scroll-top:focus-visible { background: #ea2087; color: #080a52; }
.scroll-top:focus-visible { outline: 3px solid #080a52; outline-offset: 3px; box-shadow: 0 0 0 6px #fff, 0 4px 14px rgba(8, 10, 82, .3); }
.scroll-top svg { width: 22px; height: 22px; display: block; }
@media (max-width: 767px) { .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .scroll-top { transition: none; } }
