:root {
  --blue: #2e6bff;
  --blue-dark: #174fe3;
  --red: #f23b36;
  --navy: #0e1730;
  --muted: #66718a;
  --paper: #f6f8fc;
  --panel: #ffffff;
  --line: #dfe5ef;
  --yellow: #ffbd2e;
  --violet: #7257f4;
  --green: #27a96f;
  /* --blue reaches only 4.24:1 on --paper; this darker blue clears AA (4.67:1)
     and is used wherever the accent carries small text. */
  --blue-text: #2864f5;
  --shadow: 0 24px 70px rgba(19, 38, 82, 0.12);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* The rotated .hero-art bleeds past its container; clip what would leave the
   screen rather than let the page scroll sideways. `clip` (not `hidden`) is
   used so no scroll container is created and the sticky .toc keeps working. */
main { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
/* height:auto is required: the HTML width/height attributes map to CSS
   presentational hints, and a definite height makes aspect-ratio a no-op. */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header,
.article-hero,
.article-layout,
.related,
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
/* NOTE: the page shell (reset, tokens, header, wordmark, nav, button, footer)
   is duplicated in how-to-play/styles.css. Values below are kept in sync with
   that file so the chrome does not resize when crossing between pages. */
.site-header {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.wordmark {
  width: max-content;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -1px;
  text-decoration: none;
}
.wordmark span { color: var(--blue); }
.wordmark b { color: var(--navy); }
.wordmark em { color: var(--red); font-style: normal; }
.wordmark--small { font-size: 18px; }
.header-nav { display: flex; align-items: center; gap: 25px; }
.header-nav a {
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.header-nav a[aria-current="page"],
.header-nav a:hover { color: var(--navy); }
/* Non-colour cue so the current page is distinguishable from a hovered one. */
.header-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.site-header > .button { justify-self: end; }
.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border-radius: 15px;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(46, 107, 255, 0.28);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
  box-shadow: 0 16px 36px rgba(46, 107, 255, 0.32);
}
.button--small {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 14px;
}
.button--light {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}
.button--light:hover { background: #eef3ff; }
.button:focus-visible,
.header-nav a:focus-visible,
.wordmark:focus-visible,
.text-link:focus-visible,
.toc a:focus-visible,
.related-card:focus-visible,
.site-footer a:focus-visible,
.breadcrumbs a:focus-visible,
.powerup-index a:focus-visible,
.article-body a:focus-visible,
.related__head a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.toc-cta a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.article-hero { padding-block: 72px 82px; }
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  color: #5f6b83;
  font-size: 12px;
  font-weight: 700;
}
/* Underlined so the links are distinguishable from the separators and the
   current-page label by more than colour alone. */
.breadcrumbs a {
  padding-block: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumbs a:hover { color: var(--blue-text); }
.article-hero__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker span {
  width: 25px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
}
.kicker--light { color: rgba(255, 255, 255, 0.7); }
.kicker--light span { background: var(--yellow); }
/* On the blue .article-end panel the translucent whites drop to 3.0:1, so the
   text there is opaque (4.5:1). On navy panels the translucent value is fine. */
.article-end .kicker--light { color: #fff; }
h1 {
  margin: 0;
  font-size: clamp(50px, 6.2vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.066em;
}
h1 em {
  color: var(--blue);
  font-style: normal;
}
.article-deck {
  max-width: 560px;
  margin: 25px 0 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #5f6b83;
  font-size: 12px;
  font-weight: 700;
}
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.hero-art {
  position: relative;
  margin: 0;
  padding: 8px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero-art img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 21px;
  object-fit: cover;
}
.hero-art figcaption {
  position: absolute;
  right: 20px;
  bottom: 19px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(14, 23, 48, 0.76);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9px;
  font-weight: 750;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: center;
  gap: clamp(50px, 8vw, 110px);
  padding-block: 80px 130px;
  border-top: 1px solid var(--line);
}
.toc {
  align-self: start;
  position: sticky;
  top: 28px;
  padding-top: 8px;
}
.toc > span {
  display: block;
  margin-bottom: 15px;
  color: #5f6b83;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #5f6b83;
  font-size: 10px;
  font-weight: 900;
  padding-top: 1px;
}
.toc a:hover { background: #fff; color: var(--navy); }
.toc-cta {
  margin-top: 25px;
  padding: 18px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
}
.toc-cta p {
  margin: 0 0 12px;
  color: #b6c0d2;
  font-size: 11px;
  line-height: 1.5;
}
.toc-cta a {
  display: inline;
  padding: 0;
  color: #fff;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.toc-cta a::before { display: none; }

.article-body { min-width: 0; }
.article-body > p:first-child {
  margin-top: 0;
  color: #3f4c66;
  font-size: 21px;
  line-height: 1.72;
}
.article-body p,
.article-body li {
  color: #536079;
  font-size: 16px;
  line-height: 1.8;
}
.article-body p { margin: 0 0 22px; }
.article-body h2 {
  scroll-margin-top: 30px;
  margin: 72px 0 22px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.article-body h3 {
  margin: 36px 0 12px;
  font-size: 23px;
  letter-spacing: -0.035em;
}
.article-body strong { color: var(--navy); }
.article-body a { color: var(--blue-text); text-underline-offset: 3px; }
.section-num {
  display: block;
  margin-bottom: 13px;
  color: var(--blue-text);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
}
.article-body ul,
.article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 9px; padding-left: 5px; }
.callout {
  margin: 38px 0;
  padding: 25px 27px;
  border-left: 4px solid var(--blue);
  border-radius: 0 18px 18px 0;
  background: #eaf0ff;
}
.callout--gold {
  border-left-color: #e5a000;
  background: #fff7dc;
}
.callout--red {
  border-left-color: var(--red);
  background: #fff0ef;
}
.callout b {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.callout p { margin: 0; color: #4d5971; font-size: 14px; }
.quote {
  margin: 55px 0;
  padding: 35px 0 35px 32px;
  border-left: 1px solid var(--line);
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
.score-example {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 38px 0;
  padding: 28px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.score-example div { display: flex; flex-direction: column; }
.score-example span {
  color: #aab5ca;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.score-example strong { color: #fff; font-size: 34px; }
.score-example div:first-child strong { color: #65a0ff; }
.score-example div:last-child strong { color: #ff7772; }
.score-example > b { color: #7f8ba3; font-size: 12px; }
.checklist {
  display: grid;
  gap: 11px;
  margin: 26px 0 0;
  padding: 0 !important;
  list-style: none;
}
.checklist li {
  position: relative;
  margin: 0;
  padding: 15px 17px 15px 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: #4e5b74;
  font-size: 14px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6f8ef;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}
.inline-image {
  margin: 48px 0;
  padding: 8px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(19, 38, 82, 0.1);
}
.inline-image img { border-radius: 16px; }
.inline-image figcaption {
  padding: 12px 8px 4px;
  color: #8993a6;
  font-size: 11px;
  line-height: 1.5;
}

.powerup-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0 48px;
}
.powerup-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.powerup-index i,
.powerup-badge {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #eeebff;
  font-size: 19px;
  font-style: normal;
}
.powerup-entry {
  scroll-margin-top: 30px;
  margin: 26px 0;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.powerup-entry__head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.powerup-entry h3 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.035em;
}
.powerup-entry__head span {
  display: block;
  margin-top: 3px;
  color: #5f6b83;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.powerup-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 20px;
}
.powerup-facts div {
  padding: 14px;
  border-radius: 12px;
  background: #f3f6fa;
}
.powerup-facts b {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.powerup-facts span {
  color: #5f6b83;
  font-size: 12px;
  line-height: 1.55;
}

.milestones {
  position: relative;
  margin: 38px 0;
  padding-left: 30px;
}
.milestones::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: var(--line);
}
.milestone {
  position: relative;
  margin-bottom: 30px;
}
.milestone::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}
.milestone small {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.milestone h3 { margin: 0 0 7px; }
.milestone p { margin: 0; font-size: 14px; }
.feature-grid,
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 30px 0 40px;
}
.feature-grid article,
.roadmap-grid article {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.feature-grid span,
.roadmap-grid span {
  font-size: 25px;
}
.feature-grid h3,
.roadmap-grid h3 {
  margin: 12px 0 7px;
  font-size: 18px;
}
.feature-grid p,
.roadmap-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--violet);
  font-size: 9px !important;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.article-end {
  margin-top: 75px;
  padding: 36px;
  border-radius: 24px;
  background: var(--blue);
  color: #fff;
}
.article-end h2 { margin: 0 0 13px; color: #fff; }
.article-end p { color: #fff; }

.related {
  padding-block: 110px;
  border-top: 1px solid var(--line);
}
.related__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}
.related__head h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.055em;
}
.related__head a {
  display: inline-block;
  padding-block: 4px;
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 4px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(19, 38, 82, 0.11);
}
.related-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.related-card div { padding: 20px; }
.related-card small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.related-card h3 {
  margin: 9px 0 8px;
  font-size: 20px;
  letter-spacing: -0.035em;
}
.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.site-footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.site-footer p {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
}
/* min-height keeps the links at the 24px minimum target size (WCAG 2.5.8). */
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--navy); }

@media (max-width: 900px) {
  /* Keep the guide nav reachable on mobile — it used to be display:none, which
     left the footer as the only way to move between the four pages. It moves to
     a scrollable second row instead. */
  .site-header {
    min-height: 0;
    grid-template-columns: 1fr auto;
    row-gap: 6px;
    padding-block: 14px 0;
  }
  /* Explicit placement — without it the full-width nav on row 2 pushes the
     "Play now" CTA onto a third row and the header triples in height. */
  .site-header > .wordmark { grid-area: 1 / 1; }
  .site-header > .button { grid-area: 1 / 2; }
  .header-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-inline: -4px;
    padding: 0 4px;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
  }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-nav a { flex: 0 0 auto; padding-block: 11px; }
  .article-hero__grid { grid-template-columns: 1fr; }
  .article-hero__copy { max-width: 720px; }
  .hero-art { max-width: 720px; transform: none; }
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .related-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 9px); }
}

@media (max-width: 640px) {
  .site-header,
  .article-hero,
  .article-layout,
  .related,
  .site-footer {
    width: min(100% - 32px, 1120px);
  }
  .site-header { min-height: 74px; }
  .site-header .button span { display: none; }
  .button--small { min-height: 42px; padding-inline: 15px; }
  .article-hero { padding-block: 46px 65px; }
  .breadcrumbs { margin-bottom: 35px; }
  .article-hero__grid { gap: 44px; }
  h1 { font-size: clamp(47px, 14.5vw, 68px); }
  .article-deck { font-size: 17px; }
  .hero-art { padding: 5px; border-radius: 20px; }
  .hero-art img { border-radius: 15px; }
  .article-layout { padding-block: 65px 95px; }
  .article-body > p:first-child { font-size: 19px; }
  .article-body p,
  .article-body li { font-size: 15px; }
  .article-body h2 { margin-top: 60px; font-size: 36px; }
  .score-example { gap: 10px; padding: 20px 13px; }
  .score-example strong { font-size: 27px; }
  .quote { padding-left: 22px; font-size: 25px; }
  .powerup-index,
  .powerup-facts,
  .feature-grid,
  .roadmap-grid { grid-template-columns: 1fr; }
  .powerup-entry { padding: 21px; }
  .related { padding-block: 85px; }
  .related__head { align-items: start; flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card:last-child { grid-column: auto; max-width: none; }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 42px;
    text-align: center;
  }
  .site-footer .wordmark { justify-self: center; }
  .site-footer p { margin: 0; }
  .site-footer nav { justify-content: center; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
