:root {
  color-scheme: light;
  --paper: #f9f6ee;
  --ink: #142344;
  --muted: #4d5971;
  --line: #d4d8df;
  --blue: #1645c9;
  --orange: #fa673c;
  --shell-width: 1088px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button, summary { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #a52a00; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.05; }
p, li { line-height: 1.6; }
img { max-width: 100%; display: block; }
.shell { width: min(var(--shell-width), calc(100% - 2 * clamp(18px, 4vw, 48px))); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; background: white; padding: .75rem; transform: translateY(-160%); }
.skip:focus { transform: none; }

.top {
  background: #10214b;
  background-image: repeating-linear-gradient(120deg, transparent 0 160px, #ffffff0a 161px 163px, transparent 164px 260px);
  color: white;
  border-bottom: 4px solid var(--orange);
  position: relative;
  z-index: 2;
}
.top-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.wordmark { display: inline-flex; gap: .6rem; align-items: center; color: inherit; text-decoration: none; font-size: 1.2rem; font-weight: 850; letter-spacing: -.035em; white-space: nowrap; }
.wordmark small { font-size: .85em; color: #ff987b; }
.main-nav { display: flex; gap: clamp(.85rem, 2vw, 1.7rem); align-items: center; }
.main-nav a, .mobile-menu a { color: white; text-decoration: none; font-size: .9rem; font-weight: 720; }
.main-nav a:hover, .main-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.main-nav a:last-child, .mobile-menu summary { background: #fff9ea; color: var(--ink); padding: .65rem .9rem; }
.mobile-menu { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); margin-top: 32px; min-height: 410px; border: 1px solid var(--ink); }
.hero-copy { padding: clamp(24px, 4.4vw, 60px); align-self: center; }
.hero-meta { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-weight: 720; font-size: .9rem; }
.hero-meta span { width: .35rem; height: .35rem; background: var(--orange); border-radius: 50%; }
.hero h1 { font-size: clamp(3.25rem, 6.3vw, 4.55rem); line-height: .93; margin: 1.35rem 0 1.25rem; font-weight: 900; letter-spacing: -.085em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-copy p { font-size: clamp(1rem, 1.6vw, 1.125rem); max-width: 31ch; }
.hero-art { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 77% center; border-left: 1px solid var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.55rem; }
.button { display: inline-flex; align-items: center; gap: .55rem; justify-content: center; padding: .78rem .85rem; border: 1px solid var(--ink); font-weight: 780; font-size: .86rem; text-decoration: none; color: var(--ink); }
.button:hover { box-shadow: 3px 3px var(--ink); }
.primary { background: var(--orange); }
.secondary { background: #fffdf8; }
.ad--native { width: 100%; }
.ad--native iframe { max-width: 100%; }
.ad--rail { display: none; position: absolute; top: calc(100vh - 604px); left: calc((100% - var(--shell-width)) / 2 - 164px); width: 160px; height: 600px; overflow: hidden; }

.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; background: var(--ink); color: white; gap: 1px; border: 1px solid var(--ink); }
.quick a { padding: 1.05rem 1.2rem; position: relative; display: grid; gap: .25rem; color: var(--ink); text-decoration: none; background: #fffdf8; padding-right: 2.4rem; }
.quick a:hover { background: #ffeadb; }
.quick small { font-weight: 750; color: var(--blue); }
.quick strong { font-size: .95rem; }
.quick span { position: absolute; right: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--blue); }

.home-section { margin: clamp(40px, 6vw, 80px) 0; }
.home-section h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 860; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: .85rem 1.25rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-head a { font-weight: 750; font-size: .9rem; }
.first-steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.first-steps li { counter-increment: steps; padding: 1.2rem; }
.first-steps li + li { border-left: 1px solid var(--line); }
.first-steps li::before { content: "0" counter(steps); color: var(--blue); display: block; font-size: 1.55rem; font-weight: 860; line-height: 1; margin-bottom: .75rem; }
.first-steps h3, .feature h3 { font-size: 1.3rem; }
.first-steps p, .feature p { color: var(--muted); margin-top: .4rem; font-size: .95rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.feature { display: block; padding: 1.25rem; color: var(--ink); background: #fffdf8; text-decoration: none; border: 1px solid var(--line); }
.feature:hover { border-color: var(--blue); }
.feature svg { color: var(--blue); width: 28px; height: 28px; margin-bottom: .9rem; }
.game-info dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.25rem; background: var(--blue); color: white; }
.game-info dt { font-size: .875rem; }
.game-info dd { margin: .3rem 0 0; font-weight: 800; }
.game-info p { font-size: .875rem; color: var(--muted); }
.faq h2 { margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-weight: 750; }
.faq p { margin-top: .55rem; }

.crumbs { display: flex; gap: .6rem; align-items: center; margin: 1.55rem 0 0; font-weight: 700; font-size: .85rem; }
.article-head { margin: 1.5rem 0 0; padding: clamp(22px, 5vw, 54px); background: #e9efff; border-block: 1px solid var(--ink); border-left: 5px solid var(--blue); }
.article-head > p:first-child { color: #364464; font-size: .9rem; font-weight: 700; margin-bottom: .65rem; }
.article-head h1 { font-size: clamp(2.1rem, 5.6vw, 4.6rem); font-weight: 900; }
.intro { max-width: 73ch; margin-top: .9rem; font-size: 1.075rem; }
.article-layout { display: grid; grid-template-columns: minmax(155px, 195px) minmax(0, 1fr); margin: 2rem 0 4.5rem; gap: clamp(1.25rem, 5vw, 4rem); }
.toc { padding-right: 1rem; align-self: start; border-right: 1px solid var(--line); }
.toc h2 { font-size: 1.125rem; margin-bottom: .6rem; }
.toc a { display: block; line-height: 1.45; padding: .38rem 0; font-size: .9rem; }
.prose { min-width: 0; }
.prose section { padding: 1.55rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.prose section:first-child { padding-top: 0; }
.prose section h2 { font-size: clamp(1.65rem, 3.5vw, 2.35rem); margin-bottom: .75rem; }
.prose p + p { margin-top: .75rem; }
.prose ol, .prose ul { padding-left: 1.55rem; }
.prose li + li { margin-top: .6rem; }
.prose li::marker { color: var(--blue); font-weight: 800; }
.table-wrap { overflow: auto; background: #fffdf8; border: 1px solid var(--ink); margin-bottom: .85rem; }
table { width: 100%; border-collapse: collapse; line-height: 1.5; text-align: left; }
th, td { padding: .75rem .8rem; }
th { font-size: .88rem; background: var(--ink); color: white; }
td { border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: .9rem 0; }
.filters button, [data-copy] { padding: .48rem .85rem; border: 1px solid var(--ink); color: var(--ink); background: #fffdf8; font-weight: 720; }
.filters [aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.ability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.ability-card { border: 1px solid var(--line); padding: 1rem; background: #fffdf8; }
.ability-card h3 { font-size: 1.36rem; margin: .55rem 0; }
.ability-card p { font-size: .94rem; }
.ability-card strong { display: block; margin-top: .65rem; }
.tag { display: inline-block; padding: .15rem .4rem; background: #e9efff; color: #163681; font-size: .8rem; font-weight: 760; }
.timeline article { display: grid; gap: .35rem; padding: .6rem 0 1rem 1rem; border-left: 2px solid var(--blue); margin-top: .7rem; }
.timeline time { color: var(--muted); font-weight: 700; font-size: .85rem; }
.timeline h3 { font-size: 1.35rem; }
.related a { display: inline-block; margin: .25rem 1rem .25rem 0; font-weight: 725; }
.footer { color: white; background: #10214b; border-top: 4px solid var(--orange); margin-top: 3.75rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.4rem; padding-block: 2.3rem; }
.footer p { color: #d8e2f8; margin-top: .75rem; }
.footer h2 { font-size: 1.1rem; margin-bottom: .55rem; }
.footer a:not(.wordmark) { display: block; color: #d8e2f8; margin: .4rem 0; }
.top :focus-visible, .footer :focus-visible { outline-color: #ffb689; }

@media (min-width: 1416px) { .ad--rail { display: block; } }

@media (max-width: 820px) {
  .main-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { list-style: none; font-weight: 760; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; right: clamp(18px, 4vw, 48px); top: 100%; min-width: 175px; background: #10214b; border: 1px solid #7893c8; box-shadow: 4px 5px #14234425; padding: .35rem; }
  .mobile-menu nav a { display: block; padding: .75rem; }
  .mobile-menu nav a:hover, .mobile-menu nav [aria-current] { background: #27467e; }
  .hero { min-height: 345px; }
  .hero h1 { font-size: clamp(3.15rem, 8.5vw, 5.4rem); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; gap: 1.3rem; }
  .toc { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: .85rem; }
  .toc a { display: inline-block; margin-right: 1rem; }
}

@media (max-width: 550px) {
  .top-inner { min-height: 64px; }
  .hero { grid-template-columns: 1fr; margin-top: 16px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .hero-art { height: auto; aspect-ratio: 3 / 2; border-left: 0; border-top: 1px solid var(--ink); }
  .quick, .first-steps, .ability-grid { grid-template-columns: 1fr; }
  .first-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .feature { padding: .85rem; }
  .game-info dl { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .table-wrap table:has(th:nth-child(4)) { min-width: 33rem; }
}
