/* Shared surface, text, spacing and keyboard states. Per-type files own composition. */
:root {
  --v3-paper:#eff4f7; --v3-surface:#fff; --v3-mist:#dce8f1;
  --v3-ink:#142b46; --v3-muted:#4a6173; --v3-accent:#1949a0;
  --v3-rule:#bbcbd7; --v3-ring:#2566ce;
  --v3-shadow:0 12px 32px rgba(20,43,70,.15);
  --v3-gutter:clamp(16px,5.1vw,48px);
  --v3-width:1240px; --v3-reading:68ch;
  --v3-font:"Atlas Source","Source Sans 3","Segoe UI",Arial,sans-serif;
  --v3-display:"Atlas Display","Bricolage Grotesque","Trebuchet MS",sans-serif;
}
:root[data-theme="dark"] {
  --v3-paper:#172d43; --v3-surface:#213b54; --v3-mist:#2c4962;
  --v3-ink:#f2f7fa; --v3-muted:#c4d5df; --v3-accent:#b3d4ff;
  --v3-rule:#526d82; --v3-ring:#f4b657;
}
body.sn-v3 {
  --a-bg:var(--v3-paper); --a-panel:var(--v3-surface); --a-ink:var(--v3-ink);
  --a-secondary:var(--v3-muted); --a-muted:var(--v3-muted); --a-line:var(--v3-rule);
  --a-blue:var(--v3-accent); --a-soft:var(--v3-mist); --a-focus:var(--v3-ring);
  margin:0; color:var(--v3-ink); background:var(--v3-paper);
  font:400 1.0625rem/1.52 var(--v3-font);
}
.sn-v3 :where(h1,h2,h3){text-wrap:balance; overflow-wrap:break-word}
.sn-v3 :where(h2,h3,[id]){scroll-margin-top:7rem}
.sn-v3 :where(figure,section,article,aside,main,nav){min-width:0}
.sn-v3 :where(button,summary,input,select){font:inherit}
.sn-v3 :where(button,summary,select){touch-action:manipulation}
.sn-v3 :where(button,summary,select),.sn-v3 .atlas-primary a,.sn-v3 .atlas-langs a,.sn-v3 .atlas-menu-sections a {min-height:44px}
.sn-v3 :where(button,summary,select):not(:disabled){cursor:pointer}
.sn-v3 :is(a,button,summary,select,input,[tabindex]):focus-visible {
  outline:3px solid var(--v3-ring);outline-offset:3px;
  box-shadow:0 0 0 2px var(--v3-surface)
}
.sn-v3 :where(table){font-variant-numeric:tabular-nums}
.sn-v3 .atlas-header {background:var(--v3-paper);color:var(--v3-ink);border-block-end:1px solid var(--v3-rule)}
.sn-v3 .atlas-bar {max-width:var(--v3-width);padding-inline:var(--v3-gutter)}
.sn-v3 .atlas-brand {letter-spacing:-.045em}
.sn-v3 .atlas-brand img {border-radius:8px}
.sn-v3 .atlas-primary a {display:inline-flex;align-items:center}
.sn-v3 .atlas-panel {box-shadow:var(--v3-shadow)}
.sn-v3 .atlas-footer {background:var(--v3-ink);color:var(--v3-paper)}
.sn-v3 .atlas-footer a,.sn-v3 .atlas-footer .atlas-brand,.sn-v3 .atlas-footer p {color:inherit}
:root[data-theme="dark"] .sn-v3 .atlas-footer {background:#14273a;color:var(--v3-ink)}
@media(max-width:639px){
  .sn-v3 .atlas-bar {padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))}
}
@media(prefers-reduced-motion:reduce){
  html:has(body.sn-v3){scroll-behavior:auto}
  .sn-v3 *, .sn-v3 *::before, .sn-v3 *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

.sn-v3 .sn-viewer{position:fixed;inset:0;margin:auto;width:min(94vw,58rem);height:fit-content;max-height:93dvh;overflow:auto;overscroll-behavior:contain;padding:clamp(12px,2vw,24px);border-radius:16px;background:#142b46;color:white;border:0}
.sn-viewer::backdrop{background:rgb(6 18 33 / .85)}
.sn-v3 .sn-viewer>img{display:block;max-height:66dvh;width:100%;height:auto;object-fit:contain;margin:0 auto}
.sn-v3 .sn-viewer p{margin:.7em 0 0;color:#fff;font-size:1rem}
.sn-viewer-bar{display:flex;align-items:center;gap:8px;margin-block-end:8px}
.sn-viewer-bar button{min-width:44px;min-height:44px;padding:4px 12px;border:1px solid #8aa1bd;border-radius:8px;background:#203e60;color:white;font-size:18px;cursor:pointer}
.sn-viewer-bar button:first-child{margin-inline-end:auto}
.sn-v3 :is(button,a,summary,input,select):focus-visible{outline:3px solid #2587e5;outline-offset:3px}
.sn-v3 .sn-viewer-bar button[hidden]{display:none}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .sn-v3 .sn-official-hero img{transition:transform 180ms ease-out;transform-origin:center}
  .sn-v3 .sn-official-hero:hover img{transform:perspective(70rem) rotateY(-.65deg) scale(1.006)}
}
.sn-error{padding:clamp(20px,5vw,66px);background:var(--v3-surface,#fff);color:var(--v3-ink,#142b46);border-inline-start:6px solid #1949a0}
.sn-error h1,.sn-error .lead{color:inherit}
.sn-error .hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.sn-error .hero-actions a{display:inline-flex;min-height:44px;align-items:center;padding:8px 14px;color:#1949a0;background:#eff4f7}
/* These inherited illustrations carry text on fixed navy surfaces in either theme. */
.sn-v3 figure.b31-poster figcaption,.sn-v3 figure.b31-opinion blockquote p{color:#f2f6fb}
.sn-v3 .read-card small{color:var(--v3-muted,#4a6173)}
.sn-v3 .read-more summary,.sn-v3 details[class*="read"]>summary{display:flex;align-items:center;min-height:44px}
.sn-v3 .dir-cover .sn-official-hero figcaption{color:#f2f6fb;background:#142b46;padding:.4em .65em}
.sn-v3 #main .read-next .read-card small{opacity:1;color:var(--v3-muted)}
.sn-v3 #main #b31-opinion figure.b31-opinion blockquote p{color:#f2f6fb}

/* Field guides, studio news and the publisher's reading room. */
body.sn-v3 #main.v3-ed {
  --ed-ink:#182f4b;
  --ed-muted:#405770;
  --ed-rule:#b4c8d7;
  --ed-paper:#fff;
  color:var(--ed-ink);
  width:min(100% - 2rem,76rem);
  max-width:76rem;
  padding-inline:0;
  margin-inline:auto;
  overflow-wrap:break-word;
}
body.sn-v3 #main.v3-ed .ed-cover {
  display:grid;
  position:relative;
  isolation:isolate;
  gap:1rem;
  margin:1rem 0 clamp(1.5rem,4vw,3.75rem);
  padding:clamp(1.15rem,3.4vw,3.25rem);
  border:0;
  border-radius:clamp(14px,2vw,28px);
  box-shadow:none;
  background:#deeaf2;
  color:var(--ed-ink);
  align-items:center;
}
body.sn-v3 #main.v3-ed .ed-cover::before,body.sn-v3 #main.v3-ed .ed-cover::after {content:none}
body.sn-v3 #main .ed-copy {min-width:0;align-self:center}
body.sn-v3 #main.v3-ed .ed-cover h1 {
  position:static;
  color:inherit;
  font:700 clamp(2.05rem,4.2vw,4.2rem)/1.035 var(--font-display, "Avenir Next Condensed", "Arial Narrow", system-ui,sans-serif);
  letter-spacing:-.04em;
  max-width:26ch;
  margin:0;
  text-wrap:balance;
  hyphens:auto;
  overflow-wrap:anywhere;
}
body.sn-v3 #main.v3-ed .ed-copy p {max-width:59ch}
body.sn-v3 #main.v3-ed .ed-copy .ed-lead {
  color:var(--ed-muted);
  margin:.9rem 0 0;
  font-size:clamp(1rem,1.4vw,1.2rem);
  line-height:1.56;
}
body.sn-v3 #main.v3-ed .ed-date {color:inherit;font-size:.92rem;font-weight:600;margin:0 0 .8rem}
body.sn-v3 #main.v3-ed .ed-copy .field-sourceline {margin:.8rem 0 0;font-size:.94rem;color:inherit}
body.sn-v3 #main.v3-ed .ed-copy .field-sourceline a {color:inherit;text-decoration:underline;text-underline-offset:.2em}
body.sn-v3 #main.v3-ed .ed-art:empty {display:none}
body.sn-v3 #main.v3-ed .ed-art {min-width:0}
body.sn-v3 #main.v3-ed .ed-art figure {margin:0;box-shadow:none;border:0;padding:0;display:block;width:100%;max-width:none;background:transparent}
body.sn-v3 #main.v3-ed .ed-art img {
  display:block;width:100%;max-width:100%;height:auto;max-height:29rem;aspect-ratio:auto;
  object-fit:contain;background:#16304b;border-radius:.5rem;
}
body.sn-v3 #main.v3-ed .ed-art a {display:block}
body.sn-v3 #main.v3-ed .ed-art figcaption {font-size:.9rem;line-height:1.4;color:inherit;background:transparent;padding:.45rem 0 0;max-width:64ch}
body.sn-v3 #main.v3-ed[data-editorial-type="news"] .ed-cover {color:#fff;background:#263555;border-radius:.35rem clamp(30px,4vw,60px) .35rem .35rem}
body.sn-v3 #main.v3-ed[data-editorial-type="news"] .ed-copy .ed-lead {color:#e7f0fb}
body.sn-v3 #main.v3-ed[data-editorial-type="news"] .ed-cover h1 {max-width:21ch;letter-spacing:-.025em}
body.sn-v3 #main.v3-ed[data-editorial-type="news"] .ed-art img {background:transparent}
body.sn-v3 #main.v3-ed[data-editorial-type="live"] .ed-cover {background:#dbeae8}
body.sn-v3 #main.v3-ed[data-editorial-type="terms"] .ed-cover,
body.sn-v3 #main.v3-ed[data-editorial-type="publisher"] .ed-cover {background:transparent;border-radius:0;padding-inline:0;border-bottom:2px solid var(--ed-rule)}
body.sn-v3 #main.v3-ed[data-editorial-type="publisher"] .ed-cover h1 {max-width:30ch}
body.sn-v3 #main.v3-ed :is(h2,h3,[id]) {scroll-margin-top:5.25rem}
body.sn-v3 #main.v3-ed .ed-layout {
  display:grid;align-items:start;grid-template-columns:minmax(0,1fr);
  gap:clamp(1.25rem,3vw,3.25rem);max-width:70rem;margin-inline:auto;
}
body.sn-v3 #main.v3-ed .ed-contents {margin:0;padding:0;min-width:0;color:var(--ed-ink)}
body.sn-v3 #main.v3-ed .ed-contents-panel {
  display:block;margin:0;background:transparent;color:inherit;border:0;
  border-top:2px solid #466a89;border-bottom:1px solid var(--ed-rule);border-radius:0;padding:0;box-shadow:none;
}
body.sn-v3 #main.v3-ed .ed-contents-panel summary {
  position:relative;cursor:pointer;min-height:46px;padding:.72rem 1.7rem .72rem 0;display:block;font-size:1rem;font-weight:700;color:inherit;list-style:none;
}
body.sn-v3 #main.v3-ed .ed-contents-panel summary::-webkit-details-marker {display:none}
body.sn-v3 #main.v3-ed .ed-contents-panel summary::after {
  content:"";position:absolute;inset:.95rem .35rem auto auto;width:.6rem;height:.6rem;
  border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);
}
body.sn-v3 #main.v3-ed .ed-contents-panel[open] summary::after {transform:rotate(225deg);top:1.2rem}
body.sn-v3 #main.v3-ed .ed-chapters {padding:0;margin:0 0 .55rem;list-style:none}
body.sn-v3 #main.v3-ed .ed-chapters li {margin:0;padding:0;list-style:none}
body.sn-v3 #main.v3-ed .ed-chapters a {display:flex;align-items:center;min-height:44px;padding:.4rem .25rem;line-height:1.32;font-size:.98rem;color:#254a6a;text-decoration:underline;text-underline-offset:.2em}
body.sn-v3 #main.v3-ed .ed-chapters a:is(:hover,:focus-visible,[aria-current="location"]) {color:#112f4f;background:#dcebf3}
body.sn-v3 #main.v3-ed .ed-article {
  color:var(--ed-ink);width:100%;min-width:0;max-width:72ch;margin:0 auto;
  padding:0;border:0;background:transparent;border-radius:0;box-shadow:none;font-size:clamp(1.035rem,1.3vw,1.13rem);line-height:1.66;
}
body.sn-v3 #main.v3-ed .ed-article > :is(section, aside.sourcebox) {
  margin:0 0 clamp(1.6rem,4vw,3rem);max-width:none;
}
body.sn-v3 #main.v3-ed .ed-article > section:not(.b31-block):not(.field-notes) {
  padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
}
body.sn-v3 #main.v3-ed .ed-article :is(h2,h3):not(.button) {color:var(--ed-ink);text-wrap:balance;letter-spacing:-.025em;line-height:1.18}
body.sn-v3 #main.v3-ed .ed-article h2 {font-size:clamp(1.45rem,2.65vw,2.25rem);margin-block:0 .6rem}
body.sn-v3 #main.v3-ed .ed-article h3 {font-size:clamp(1.1rem,1.9vw,1.5rem)}
body.sn-v3 #main.v3-ed .ed-article p {color:var(--ed-ink);max-width:72ch;font-size:inherit;line-height:inherit}
body.sn-v3 #main.v3-ed .ed-article > section p {margin-block:.4rem .85rem}
body.sn-v3 #main.v3-ed .ed-article :is(p,li,td,figcaption) a:not(.button):not(.poster-table-link) {color:#15537c;text-underline-offset:.17em}
body.sn-v3 #main.v3-ed .ed-article :is(.field-notes,.b31-block,.sourcebox) {color:var(--ed-ink);background:#f2f6f9;border-color:var(--ed-rule)}
body.sn-v3 #main.v3-ed .ed-article :is(.b31-block,.field-notes,.sourcebox) :is(dt,dd,summary,li,strong,th,td,blockquote,figcaption) {color:inherit}
body.sn-v3 #main.v3-ed .ed-article :is(.b31-block,.field-notes) :is(dl,dt,dd,ul,ol) {max-width:100%}
body.sn-v3 #main.v3-ed .ed-table {width:100%;overflow-x:auto;max-width:100%;margin-block:1.1rem;overscroll-behavior-inline:contain}
body.sn-v3 #main.v3-ed .ed-table table {width:100%;background:#fff;color:var(--ed-ink);font-variant-numeric:tabular-nums;min-width:0}
body.sn-v3 #main.v3-ed .ed-table :is(td,th) {white-space:normal;overflow-wrap:anywhere}
body.sn-v3 #main.v3-ed .ed-table th {background:#dfeaf2;color:#182f4b}
body.sn-v3 #main.v3-ed .ed-table td {background:#fff;color:#182f4b}
body.sn-v3 #main.v3-ed .ed-plates {width:100%;max-width:100%;margin:1.4rem 0 2.25rem;color:var(--ed-ink)}
body.sn-v3 #main.v3-ed :is(.sn-official-gallery.ed-plates,.field-gallery.ed-plates) {
  display:grid;grid-auto-flow:column;grid-auto-columns:min(75%,21rem);grid-template-columns:none;
  overflow-x:auto;scroll-snap-type:x proximity;gap:.8rem;padding:.25rem 0 .7rem;scrollbar-color:#6d8b9d #e0e9ef;
}
body.sn-v3 #main.v3-ed .ed-plates figure {min-width:0;width:100%;margin:0;scroll-snap-align:start;background:transparent;border:0;box-shadow:none}
body.sn-v3 #main.v3-ed .ed-plates figure img {width:100%;height:auto;object-fit:contain}
body.sn-v3 #main.v3-ed .ed-plates figure figcaption {color:var(--ed-muted);font-size:.94rem;line-height:1.4;margin-top:.4rem}
body.sn-v3 #main.v3-ed :is(a,button,summary):focus-visible {outline:3px solid #0876b0;outline-offset:3px}
body.sn-v3 #main.v3-ed .ed-actions {margin-block:1.5rem;display:flex;flex-wrap:wrap;gap:.75rem}
body.sn-v3 #main.v3-ed .ed-actions > a {min-height:44px}
@media (min-width:850px) {
  body.sn-v3 #main.v3-ed {width:min(100% - 4rem,76rem)}
  body.sn-v3 #main.v3-ed .ed-cover.ed-illustrated {grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:clamp(1.5rem,3vw,3.5rem)}
  body.sn-v3 #main.v3-ed[data-editorial-type=news] .ed-cover.ed-illustrated {grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
  body.sn-v3 #main.v3-ed .ed-layout:has(.ed-contents) {grid-template-columns:minmax(10rem,.7fr) minmax(0,2.25fr)}
  body.sn-v3 #main.v3-ed .ed-layout .ed-contents {position:sticky;top:5.6rem;max-height:calc(100svh - 7rem);overflow:auto}
  body.sn-v3 #main.v3-ed .ed-cover:not(.ed-illustrated) {padding-block:3rem}
}
@media (prefers-reduced-motion:reduce) {
  body.sn-v3 #main.v3-ed, body.sn-v3 #main.v3-ed * {scroll-behavior:auto;animation:none;transition:none}
}
/* On a handset the reader sees which game screen the headline describes
   before the longer lead. Desktop keeps the original reading order. */
@media (max-width:849px) {
  body.sn-v3 #main.v3-ed .ed-illustrated {gap:.75rem}
  body.sn-v3 #main.v3-ed .ed-illustrated .ed-copy {display:contents}
  body.sn-v3 #main.v3-ed .ed-illustrated .ed-date {grid-row:1;margin:0}
  body.sn-v3 #main.v3-ed .ed-illustrated h1 {grid-row:2}
  body.sn-v3 #main.v3-ed .ed-illustrated .ed-art {grid-row:3}
  body.sn-v3 #main.v3-ed .ed-illustrated .ed-lead {grid-row:4;margin:0}
  body.sn-v3 #main.v3-ed .ed-illustrated .field-sourceline {grid-row:5;margin:0}
  body.sn-v3 #main.v3-ed .ed-illustrated:not(:has(.ed-date)) h1 {grid-row:1}
  body.sn-v3 #main.v3-ed .ed-illustrated:not(:has(.ed-date)) .ed-art {grid-row:2}
  body.sn-v3 #main.v3-ed .ed-illustrated:not(:has(.ed-date)) .ed-lead {grid-row:3}
  body.sn-v3 #main.v3-ed .ed-illustrated:not(:has(.ed-date)) .field-sourceline {grid-row:4}
}

@supports (content-visibility:auto){
  main.v3-ed .ed-article>section.b31-block{content-visibility:auto;contain-intrinsic-block-size:auto 20rem}
}
main.v3-ed .ed-article .post-release-keyart.ed-source-thumb{max-width:13rem;margin:1rem 0 2rem}
main.v3-ed .ed-article .post-release-keyart.ed-source-thumb img{width:100%;height:auto;object-fit:contain}
/* Set the reading surface on the contained section for both native colour schemes. */
body.sn-v3 #main.v3-ed .ed-article>:is(#b31-steps,#b31-pros-cons),
body.sn-v3 #main.v3-ed .ed-article>:is(#b31-steps,#b31-pros-cons)>h2,
body.sn-v3 #main.v3-ed #b31-steps ol.b31-steps>li{
  background-color:var(--v3-paper);
  color:var(--v3-ink);
}
