/* Complex Studios website. Same visual system as the launcher (direction B):
   black, white and neutral greys only (R = G = B), Archivo for display,
   Geist for text, Geist Mono for IDs and hashes. Shapes come from the CS
   monogram (design/brand/BRAND.md): actions, cards and panels turn one
   diagonal pair of corners on a large radius and keep the other two square;
   badges are pills like the C and O of the wordmark; fields, small controls,
   rows and every image stay square. No 45-degree cuts. */

@font-face { font-family: 'Archivo'; src: url(fonts/archivo-latin-wdth-normal.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'Archivo'; src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family: 'Geist'; src: url(fonts/geist-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'Geist'; src: url(fonts/geist-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family: 'Geist Mono'; src: url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'Geist Mono'; src: url(fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }

/* Arabic: Noto Sans Arabic (OFL, fonts/OFL-Noto-Sans-Arabic.txt), only downloaded when a page has Arabic text. */
@font-face { font-family: 'Noto Sans Arabic Variable'; src: url(fonts/noto-sans-arabic-arabic-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC }

:root {
  /* Font stacks per script (docs/FEATURES-2.md 5.1). Latin comes from Geist and
     Archivo (their unicode-range stops there); other scripts fall through to
     the next face: Noto Sans Arabic, then the CJK fonts Windows ships with,
     then their macOS and Noto equivalents. */
  --f-text: 'Geist', system-ui, sans-serif;
  --f-display: 'Archivo', sans-serif;
  --f-mono: 'Geist Mono', monospace;
  --frame: #050505;
  --bg: #0b0b0b;
  --s1: #111111;
  --s2: #161616;
  --s3: #1d1d1d;
  --s4: #262626;
  --line: #1f1f1f;
  --line2: #2c2c2c;
  --line3: #444444;
  --tx: #f2f2f2;
  --tx2: #a3a3a3;
  /* Raised from the mockups' #6b6b6b so small meta text passes AA (5.7:1 on --bg). */
  --tx3: #8a8a8a;
  /* Strokes and disabled states only, never text. */
  --tx4: #4d4d4d;
  /* The brand corner: card and panel radius; buttons set their own --r. */
  --rc: 18px;
  --gutter: 40px;
  --max: 1200px;
  --head: 64px;
  /* Greyscale grain for art placeholders; saturate 0 keeps R = G = B. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

:lang(ar) { --f-text: 'Geist', 'Noto Sans Arabic Variable', 'Segoe UI', Tahoma, sans-serif; --f-display: 'Archivo', 'Noto Sans Arabic Variable', 'Segoe UI', Tahoma, sans-serif }
:lang(zh-CN) { --f-text: 'Geist', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif; --f-display: 'Archivo', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif }
:lang(zh-TW) { --f-text: 'Geist', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif; --f-display: 'Archivo', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif }
:lang(ja) { --f-text: 'Geist', 'Yu Gothic UI', 'Meiryo UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif; --f-display: 'Archivo', 'Yu Gothic UI', 'Meiryo UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif }
:lang(ko) { --f-text: 'Geist', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; --f-display: 'Archivo', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif }
/* Archivo has no Cyrillic: Russian display text is set in Geist. */
:lang(ru) { --f-display: 'Geist', system-ui, sans-serif }

* { box-sizing: border-box }
html { background: var(--frame); -webkit-text-size-adjust: 100%; text-size-adjust: 100% }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--tx); font: 400 16px/1.55 var(--f-text); font-feature-settings: 'tnum' 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale }
main { flex: 1; display: block; outline: none }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0 }
ul, ol { padding: 0 }
a { color: inherit; text-decoration: none }
img { display: block; max-width: 100% }
::selection { background: #f2f2f2; color: #0b0b0b }
/* Console-style focus: a white ring with a gap, readable on any art. */
:focus-visible { outline: 2px solid #f2f2f2; outline-offset: 3px }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) }
.wrap-narrow { width: 100%; max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) }
.wrap-narrow-left { max-width: 720px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 50; background: #f2f2f2; color: #0b0b0b; padding: 10px 14px; font-weight: 600; font-size: 14px }
.skip:focus { top: 12px }

/* ---------- type ---------- */
.eb { font: 600 11px/1.3 var(--f-display); font-stretch: 120%; letter-spacing: .14em; text-transform: uppercase; color: var(--tx3) }
.eb.lt { color: var(--tx2) }
.eb a:hover { color: var(--tx) }
.muted { color: var(--tx2) }
.dim { color: var(--tx3) }
.small { font-size: 13px }
.mono { font-family: var(--f-mono); font-feature-settings: normal }
.h-hero { font: 700 52px/1.02 var(--f-display); font-stretch: 112%; letter-spacing: -.01em; text-transform: uppercase; max-width: 20ch; text-wrap: balance }
/* Home hero: the owner's Primary lockup instead of a typed headline (the text stays for screen readers). */
.h-hero-logo { max-width: none; margin: 0 }
.h-hero-logo .hero-lockup { display: block; width: min(520px, 100%); height: auto }
.h-sec { font: 700 30px/1.05 var(--f-display); font-stretch: 115%; text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance }
.glogo { font: 800 76px/.92 var(--f-display); font-stretch: 125%; letter-spacing: -.012em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere }
.lead { color: var(--tx2); font-size: 17px; line-height: 1.55; max-width: 560px }
.ptitle { font: 700 36px/1 var(--f-display); font-stretch: 115%; text-transform: uppercase; letter-spacing: -.005em }
.ptitle-sub { color: var(--tx3) }
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px }
.sh h2, .sh-h { font: 700 13px/1.2 var(--f-display); font-stretch: 120%; letter-spacing: .1em; text-transform: uppercase }
.sh-h { margin-bottom: 16px }
.sh-h.sub { margin-top: 32px; margin-bottom: 8px }
.sh a { color: var(--tx2); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap }
.sh a:hover { color: var(--tx) }

/* ---------- icons ---------- */
.ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; flex: none; display: block }
/* The owner's marks (brand.ts): white only, never tinted. */
.mark { display: block; flex: none; color: #fff }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden }
/* The brand corner, logical so it mirrors in right-to-left pages. */
.btn, .soon, .card { border-start-start-radius: var(--r, var(--rc)); border-end-end-radius: var(--r, var(--rc)) }

/* ---------- buttons: one solid white primary, brand corner ---------- */
.btn { --r: 12px; height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 13px/1 var(--f-display); font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; position: relative; isolation: isolate; flex: none; border: 0; cursor: pointer }
.btn-primary { background: #f2f2f2; color: #0b0b0b }
.btn-primary:hover { background: #ffffff }
.btn-primary:active { background: #d9d9d9 }
/* Secondary actions are outlined, same corner. */
.btn-line { color: var(--tx); box-shadow: inset 0 0 0 1px #575757; background: transparent }
.btn-line:hover { box-shadow: inset 0 0 0 1px #8a8a8a; background: var(--s2) }
.btn-text { display: inline-flex; align-items: center; gap: 4px; color: var(--tx2); font: 500 15px/1 var(--f-text); white-space: nowrap }
.btn-text:hover { color: var(--tx) }
.btn-xl { height: 56px; min-width: 216px; font-size: 16px; letter-spacing: .1em; --r: 16px; padding: 0 28px }
.btn-lg { height: 50px; font-size: 14px; padding: 0 26px; --r: 14px }
.btn-sm { height: 36px; font-size: 11.5px; padding: 0 14px; --r: 10px; gap: 8px }
.btn:focus-visible { outline-offset: 4px }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px }

/* ---------- chips: pills like the C and O; the status square stays square ---------- */
/* Status badges ("In development", "Coming soon"): quiet text, no box or dot (owner's choice). Solid = the important one, in white. */
.chip { display: inline-flex; align-items: center; font: 700 10.5px/1 var(--f-display); font-stretch: 120%; letter-spacing: .14em; text-transform: uppercase; color: var(--tx2); white-space: nowrap }
.chip.solid { color: var(--tx) }
.chip .sq { display: none }
/* Without a box, a badge next to other caps text (the game's developer) needs a divider. */
.chip + .chip::before, .chip + .eb::before { content: ''; display: inline-block; width: 1px; height: 12px; margin-inline-end: 14px; vertical-align: -1px; background: var(--line3) }

/* ---------- placeholder art: flat grey, faint linear falloff, grey grain ---------- */
.art { position: relative; background-color: #222222; background-image: var(--grain), linear-gradient(var(--a, 160deg), var(--p1, #2e2e2e), var(--p2, #1a1a1a)); background-blend-mode: soft-light, normal; background-size: 220px 220px, cover; overflow: hidden }
.art.v1 { --p1: #303030; --p2: #1b1b1b; --a: 200deg }
.art.v2 { --p1: #2b2b2b; --p2: #191919; --a: 120deg }
.art.v3 { --p1: #2a2a2a; --p2: #1c1c1c; --a: 230deg }
.art.has-img { background: var(--s2) }
.art img { width: 100%; height: 100%; object-fit: cover }
.art picture { position: absolute; inset: 0 }
.art picture img { display: block }
.scrim-l, .scrim-b { position: absolute; inset: 0; pointer-events: none }
.scrim-l { background: linear-gradient(90deg, rgba(11,11,11,.94) 0%, rgba(11,11,11,.7) 38%, rgba(11,11,11,0) 72%) }
.scrim-b { background: linear-gradient(0deg, #0b0b0b 0%, rgba(11,11,11,.88) 26%, rgba(11,11,11,0) 64%) }
.thumb { aspect-ratio: 16 / 9; display: block }
.wide { aspect-ratio: 16 / 9 }

.card { background: var(--s1); border: 1px solid var(--line) }

/* ---------- site header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--frame); border-bottom: 1px solid var(--line) }
.head-in { display: flex; align-items: center; gap: 36px; height: var(--head) }
/* Horizontal Inline lockup; the monogram alone on phones (below 260 px wide the lockup is not allowed). */
.brand { display: flex; align-items: center; color: #fff; flex: none; padding-block: 8px }
.brand-mono { display: none }
/* A rule and room between the lockup and the nav, and lighter nav type, so the
   links never read as more letters of the wordmark. */
.site-nav { position: relative; padding-inline-start: 34px }
.site-nav::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: 1px; height: 20px; margin-top: -10px; background: var(--line3) }
.site-nav ul { list-style: none; display: flex; gap: 28px }
.site-nav a { display: block; font: 500 12.5px/var(--head) var(--f-display); font-stretch: 100%; letter-spacing: .07em; text-transform: uppercase; color: var(--tx2); position: relative }
.site-nav a:hover { color: var(--tx) }
.site-nav a[aria-current='page'] { color: var(--tx) }
.site-nav a[aria-current='page']::after { content: ''; position: absolute; inset-inline: 0; bottom: 14px; height: 2px; background: #f2f2f2 }
.head-cta[aria-current='page'] { box-shadow: inset 0 0 0 1px #f2f2f2 }
.cta-short { display: none }

/* Language menu: a details element, so it works without script. */
.lang-menu { position: relative; margin-inline-start: auto; flex: none }
.lang-menu + .head-cta { margin-inline-start: -20px }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; color: var(--tx2); font: 500 14px/1 var(--f-text); white-space: nowrap; cursor: pointer; user-select: none }
.lang-menu summary::-webkit-details-marker { display: none }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--tx) }
.lang-menu[open] summary .ic:last-child { transform: rotate(180deg) }
.lang-pop { --r: 14px; position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 30; display: grid; gap: 10px; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); padding: 14px 12px 12px; border-color: var(--line2) }
.lang-pop .eb { padding-inline-start: 10px }
.lang-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px }
.lang-list a { display: block; padding: 8px 10px; font-size: 14.5px; line-height: 1.4; color: var(--tx2); white-space: nowrap; border-inline-start: 2px solid transparent }
.lang-list a:hover { background: var(--s3); color: var(--tx) }
.lang-list a[aria-current='true'] { color: var(--tx); border-inline-start-color: #f2f2f2 }
.lang-list a:focus-visible { outline-offset: -2px }

/* ---------- footer ---------- */
.site-foot { background: var(--frame); border-top: 1px solid var(--line); margin-top: 96px }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 40px 56px; padding-top: 48px; padding-bottom: 40px }
.foot-brand { display: flex; align-items: center; align-self: start; color: #fff }
.foot-nav { display: flex; gap: 64px }
.foot-nav ul { list-style: none; display: grid; gap: 10px; margin-top: 14px }
.foot-nav a { color: var(--tx2); font-size: 14.5px }
.foot-nav a:hover { color: var(--tx) }
.foot-lang { grid-column: 1 / -1 }
.foot-lang ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px }
.foot-lang a { color: var(--tx3); font-size: 13.5px }
.foot-lang a:hover, .foot-lang a[aria-current='true'] { color: var(--tx) }
.foot-copy { grid-column: 1 / -1; color: var(--tx3); font-size: 13px; border-top: 1px solid var(--line); padding-top: 22px }

/* ---------- home ---------- */
.hero, .dlhero { position: relative; min-height: 480px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line) }
.hero-art { position: absolute; inset: 0 }
/* The owner's wave: the bright crest sits low on the right; the picture is
   placed so it shows, and the last third fades into the page so the section
   edge never cuts it (no hard line under the hero). */
.hero:has(.wave) { border-bottom: 0; min-height: 520px }
.wave { background: #000; overflow: hidden }
.wave picture, .wave img { display: block; width: 100%; height: 100% }
.wave img { object-fit: cover; object-position: 60% 38% }
.wave::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.5) 0%, rgba(5,5,5,0) 22%, rgba(11,11,11,0) 58%, rgba(11,11,11,.72) 84%, #0b0b0b 100%) }
.hero-in { position: relative; padding-top: 96px; padding-bottom: 64px; display: grid; gap: 18px; justify-items: start }
.sec { margin-top: 64px }

.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: stretch; overflow: hidden }
/* The art slot keeps its square corners: the turns sit on the text side, as on the C. */
.teaser.card { border-end-end-radius: 0; border-end-start-radius: var(--rc) }
.teaser-t { padding: 40px; display: grid; gap: 18px; align-content: center; justify-items: start }
.teaser-t .muted { max-width: 440px }
.teaser-art { min-height: 300px; height: 100%; border-inline-start: 1px solid var(--line) }

.facts { display: flex; flex-wrap: wrap; gap: 14px 0 }
.facts > div { display: grid; gap: 7px; padding: 0 24px; border-inline-start: 1px solid var(--line2) }
.facts > div:first-child { padding-inline-start: 0; border-inline-start: 0 }
.facts dd { font-size: 15px; font-weight: 600; white-space: nowrap }

.ncards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px }
.ncards.three { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.ncard { position: relative; display: grid; gap: 10px; align-content: start }
.ncard .thumb { margin-bottom: 4px }
.ncard-t { font-size: 16px; line-height: 1.35; font-weight: 600; text-wrap: pretty }
.ncard-t a::after { content: ''; position: absolute; inset: 0 }
.ncard:hover .ncard-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px }
.ncard:hover .thumb { outline: 1px solid #f2f2f2; outline-offset: 3px }
.ncard:focus-within .thumb { outline: 2px solid #f2f2f2; outline-offset: 3px }
.ncard-t a:focus-visible { outline: none }

.zstrip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px }
.zcell { display: flex; align-items: center; gap: 20px; padding: 22px 24px }
.zcell-t { flex: 1; display: grid; gap: 6px; min-width: 0 }
.zcell-h { font-size: 17px; font-weight: 600; line-height: 1.3 }
.zcell p:not(.eb) { font-size: 14.5px; color: var(--tx2); line-height: 1.5 }
.emark { width: 48px; height: 48px; border: 1px dashed #4a4a4a; display: grid; place-items: center; color: var(--tx2); flex: none; align-self: flex-start }

.empty { display: flex; gap: 20px; padding: 28px; align-items: flex-start }
.empty > div { display: grid; gap: 8px; justify-items: start }
.empty-t { font-size: 17px; font-weight: 600 }
.empty .muted { max-width: 520px }

/* ---------- generic page ---------- */
.page { padding-top: 56px }
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px }
.phead.stack { display: grid; justify-content: start; gap: 16px; margin-bottom: 40px }
.phead .dim { font-size: 14px }
.err { padding-top: 96px; display: grid; gap: 18px; justify-items: start }

.tabs { border-bottom: 1px solid var(--line2); margin-bottom: 8px; overflow-x: auto; scrollbar-width: none }
.tabs::-webkit-scrollbar { display: none }
.tabs ul { list-style: none; display: flex; gap: 26px }
.tabs a { display: block; padding: 10px 0 12px; font-size: 14.5px; font-weight: 500; color: var(--tx2); position: relative; white-space: nowrap }
.tabs a:hover { color: var(--tx) }
.tabs a[aria-current='page'] { color: var(--tx) }
.tabs a[aria-current='page']::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: #f2f2f2 }
.tabs a:focus-visible { outline-offset: -2px }

.nlist { display: grid }
.nrow { position: relative; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center }
.nrow-t { display: grid; gap: 8px; align-content: center }
.nrow-h { font-size: 21px; line-height: 1.3; font-weight: 600; text-wrap: pretty }
.nrow-h a::after { content: ''; position: absolute; inset: 0 }
.nrow .muted { font-size: 15px; max-width: 640px }
.nrow:hover .nrow-h { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px }
.nrow:hover .thumb { outline: 1px solid #f2f2f2; outline-offset: 3px }
.nrow:focus-within .thumb { outline: 2px solid #f2f2f2; outline-offset: 3px }
.nrow-h a:focus-visible { outline: none }
.nlist + .empty, .tabs + .empty { margin-top: 24px }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 32px }
.pager > :last-child { justify-self: end }
.pager .dim { font-size: 14px }

/* ---------- article ---------- */
.a-head { padding-top: 48px; display: grid; gap: 16px; justify-items: start }
/* An article shown in its original language keeps that language's alignment. */
.a-head > [lang] { justify-self: stretch }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--tx2); font-size: 14px; margin-bottom: 12px }
.crumb:hover { color: var(--tx) }
/* Shown when an article is not available in the page's language. */
.note { font-size: 14.5px; line-height: 1.55; color: var(--tx2); background: var(--s1); border: 1px solid var(--line2); border-inline-start: 2px solid #8a8a8a; padding: 10px 14px; max-width: 68ch }
.a-title { font: 700 46px/1.06 var(--f-display); font-stretch: 108%; letter-spacing: -.015em; text-wrap: balance }
.a-lead { font-size: 20px; line-height: 1.5; color: var(--tx2); text-wrap: pretty }
.a-by { font-size: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); width: 100% }
.a-by a { color: var(--tx2); text-decoration: underline; text-underline-offset: 3px }
.a-cover { margin-top: 32px; max-width: calc(960px + 2 * var(--gutter)) }
.article .prose { margin-top: 32px }

.prose { font-size: 17.5px; line-height: 1.7; color: #dcdcdc; max-width: 68ch; overflow-wrap: break-word }
.prose > * + * { margin-top: 1.1em }
.prose h2 { font: 650 25px/1.25 var(--f-text); color: var(--tx); margin-top: 1.9em; letter-spacing: -.01em }
.prose h3 { font: 600 20px/1.3 var(--f-text); color: var(--tx); margin-top: 1.6em }
.prose h4, .prose h5, .prose h6 { font: 600 17.5px/1.4 var(--f-text); color: var(--tx); margin-top: 1.4em }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em }
.prose > :first-child { margin-top: 0 }
.prose strong { color: var(--tx); font-weight: 600 }
.prose a { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: #8a8a8a }
.prose a:hover { text-decoration-color: var(--tx) }
.prose ul, .prose ol { padding-inline-start: 1.4em; display: grid; gap: .5em }
.prose ul { list-style: none; padding-inline-start: 1.3em }
.prose ul > li { position: relative }
.prose ul > li::before { content: ''; position: absolute; inset-inline-start: -1.25em; top: .68em; width: 6px; height: 6px; background: #8a8a8a }
.prose ol > li::marker { color: var(--tx3); font-weight: 600 }
.prose code { font: 400 .88em var(--f-mono); font-feature-settings: normal; background: var(--s3); padding: .12em .35em }
.prose pre { background: var(--s1); border: 1px solid var(--line2); padding: 16px 18px; overflow-x: auto; font-size: 14.5px; line-height: 1.6 }
.prose pre code { background: none; padding: 0; font-size: inherit }
.prose blockquote { border-inline-start: 2px solid #f2f2f2; padding-inline-start: 18px; color: var(--tx2) }
.prose hr { border: 0; border-top: 1px solid var(--line2); margin: 2em 0 }

.more { padding-top: 8px }
.wrap-narrow.prose { max-width: calc(720px + 2 * var(--gutter)) }

/* ---------- games ---------- */
.ggrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px }
.gtile { position: relative; display: grid; gap: 8px; align-content: start }
.gtile-art { position: relative; margin-bottom: 6px }
.cover { aspect-ratio: 2 / 3; display: block }
.tname { position: absolute; inset-inline: 14px; bottom: 14px; font: 800 20px/1.02 var(--f-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.005em; color: rgba(255,255,255,.88); overflow-wrap: anywhere }
.gtile-t { font-size: 17px; font-weight: 600; line-height: 1.3 }
.gtile-t a::after { content: ''; position: absolute; inset: 0 }
.gtile .muted { font-size: 14.5px; line-height: 1.5 }
.gtile:hover .cover, .gtile:focus-within .cover { outline: 1px solid #f2f2f2; outline-offset: 3px }
.gtile:focus-within .cover { outline-width: 2px }
.gtile-t a:focus-visible { outline: none }

/* Game page: art fills the top, title and actions sit bottom-left on it (Battle.net style). */
.gp { position: relative; min-height: 640px; display: flex; border-bottom: 1px solid var(--line) }
/* Without owner art the title block moves up instead of sitting under an empty band. */
.gp.no-art { min-height: 0 }
.gp.no-art .gp-in { gap: 96px }
.gp-art { position: absolute; inset: 0 }
.gp-in { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px }
.gtabs ul { list-style: none; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none }
.gtabs a { display: block; font: 600 12.5px/56px var(--f-display); font-stretch: 115%; letter-spacing: .08em; text-transform: uppercase; color: var(--tx2); position: relative; white-space: nowrap }
.gtabs a:hover { color: var(--tx) }
.gtabs a[aria-current='true'] { color: var(--tx) }
.gtabs a[aria-current='true']::after { content: ''; position: absolute; inset-inline: 0; bottom: 10px; height: 2px; background: #f2f2f2 }
.gin { display: grid; gap: 16px; justify-items: start; padding-bottom: 56px }
.gin-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap }
.glogo-img img { max-height: 160px; width: auto }
.actbar { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 12px }
.soon { --r: 16px; display: inline-flex; align-items: center; height: 56px; padding: 0 24px; box-shadow: inset 0 0 0 1px #575757; font: 700 15px/1 var(--f-display); font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase }

.gbody { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: 56px; align-items: start; scroll-margin-top: calc(var(--head) + 16px) }
.gmain { display: grid; gap: 56px; min-width: 0 }
.gside { padding: 24px }
.kv { display: grid }
.kv > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px }
.kv > div:first-child { padding-top: 0 }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0 }
.kv dt { color: var(--tx3) }
.gside .kv > div { grid-template-columns: 1fr; gap: 3px }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.gal:hover .thumb { outline: 1px solid #f2f2f2; outline-offset: 3px }
#requirements, #game-news { scroll-margin-top: calc(var(--head) + 16px) }
.tscroll { overflow-x: auto }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px }
.spec th, .spec td { text-align: start; padding-block: 12px; padding-inline: 0 16px; border-bottom: 1px solid var(--line); vertical-align: top }
.spec thead th { font: 600 11px/1.3 var(--f-display); font-stretch: 120%; letter-spacing: .14em; text-transform: uppercase; color: var(--tx3); border-bottom-color: var(--line2) }
.spec tbody th { color: var(--tx3); font-weight: 400; width: 130px }

/* ---------- download ---------- */
.dl { display: grid; gap: 14px; justify-items: start; margin-top: 12px }
.dl .muted { max-width: 520px }
.dlbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start }
.hash { font-size: 13.5px; line-height: 1.6; color: var(--tx2); overflow-wrap: anywhere; background: var(--s1); border: 1px solid var(--line2); padding: 12px 14px; margin-top: 10px; max-width: 560px }

/* ---------- careers, legal ---------- */
.careers { display: grid; gap: 28px; max-width: 760px }
.careers-head { display: grid; gap: 12px; justify-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line) }
.legal-dates { color: var(--tx3); font-size: 14px; line-height: 1.5 }
.legal-note { padding: 14px 18px; margin-bottom: 32px; border: 1px solid var(--line2); background: var(--s1); color: var(--tx2); font-size: 15px; line-height: 1.55; max-width: 68ch }
.legal-note a { color: var(--tx); text-decoration: underline; text-underline-offset: 3px }
.legal h2, .legal h3 { scroll-margin-top: calc(var(--head) + 16px) }
.legal-toc { border: 1px solid var(--line2); padding: 18px 20px; display: grid; gap: 10px }
.prose .legal-toc ol { padding-inline-start: 1.6em; gap: .3em; font-size: 15.5px; line-height: 1.5 }
.prose .legal-toc a { text-decoration: none; color: var(--tx2) }
.prose .legal-toc a:hover { color: var(--tx); text-decoration: underline }
.legal > section { margin-top: 2.6em }
.legal > section > * + * { margin-top: 1.1em }
.legal > section > h2 { margin-top: 0 }
.legal > section > h2 + * { margin-top: .6em }
.prose .legal-facts { color: var(--tx2); font-size: 16px }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  /* The header makes room: the language menu shrinks to its globe, the download button to one word. */
  .lang-name, .cta-long { display: none }
  .cta-short { display: inline }
  .ncards { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .gbody { grid-template-columns: minmax(0, 1fr); gap: 48px }
  .gside { max-width: 560px }
  .teaser { grid-template-columns: 1fr }
  .teaser.card { border-start-start-radius: 0; border-end-start-radius: 0; border-end-end-radius: var(--rc) }
  .teaser-art { min-height: 0; aspect-ratio: 16 / 7; border-inline-start: 0; border-top: 1px solid var(--line); order: -1 }
}

@media (max-width: 960px) {
  /* The nav drops to its own row under the brand, with the language menu at
     its end, so no menu script is needed. */
  .head-in { flex-wrap: wrap; height: auto; gap: 0 }
  .site-nav { padding-inline-start: 0 }
  .site-nav::before { display: none }
  .brand { height: var(--head) }
  .head-cta, .lang-menu + .head-cta { margin-inline-start: auto; height: 34px }
  .site-nav { order: 3; flex: 1 1 calc(100% - 48px); min-width: 0; border-top: 1px solid var(--line) }
  .site-nav a { line-height: 46px }
  .site-nav a[aria-current='page']::after { bottom: 8px }
  .lang-menu { order: 4; margin-inline-start: 0; border-top: 1px solid var(--line) }
  .lang-menu summary { height: 46px; padding-block: 0; padding-inline: 12px 0; gap: 6px }
  .lang-name, .lang-menu summary .ic:last-child { display: none }
  .lang-pop { top: calc(100% + 4px); inset-inline-end: 0 }
}

@media (max-width: 860px) {
  :root { --gutter: 24px }
  .zstrip, .dlbody { grid-template-columns: 1fr }
  .ncards.three { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .nrow { grid-template-columns: 200px minmax(0, 1fr); gap: 20px }
  .h-hero { font-size: 42px }
  .glogo { font-size: 58px }
  .gp { min-height: 560px }
  .foot-in { grid-template-columns: 1fr }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --head: 56px; --rc: 16px }
  body { font-size: 15.5px }
  .brand-lockup { display: none }
  .brand-mono { display: block }
  .wave img { object-position: 74% 40% }
  /* Phones: the copy spans the width, so the whole wave dims behind it (both directions). */
  .hero .wave ~ .scrim-l, [dir='rtl'] .hero .wave ~ .scrim-l { background: linear-gradient(180deg, rgba(11,11,11,.3) 0%, rgba(11,11,11,.5) 30%, rgba(11,11,11,.72) 55%, rgba(11,11,11,.72) 75%, rgba(11,11,11,.4) 100%) }
  .hero:has(.wave) { min-height: 0 }
  .head-cta { padding: 0 10px }
  .site-nav ul { gap: 24px }
  .lang-list a { padding: 8px }
  /* Full width under the header on phones. */
  .lang-pop { position: fixed; top: calc(var(--head) + 48px); inset-inline: var(--gutter); width: auto; max-width: none }
  .hero, .dlhero { min-height: 0 }
  .hero-in { padding-top: 64px; padding-bottom: 40px; gap: 16px }
  .h-hero { font-size: 34px; max-width: none }
  .lead { font-size: 16px }
  .sec { margin-top: 48px }
  .page { padding-top: 36px }
  .ptitle { font-size: 30px }
  .teaser-t { padding: 24px 20px }
  .h-sec { font-size: 24px }
  .facts > div { padding: 0 18px }
  .ncards, .ncards.three { grid-template-columns: 1fr 1fr; gap: 24px 14px }
  .ncard-t { font-size: 15px }
  /* Two columns on phones: a third card would sit alone on its row. */
  .ncards.three > :nth-child(3) { display: none }
  .ggrid { grid-template-columns: 1fr 1fr; gap: 28px 14px }
  .tname { font-size: 16px; inset-inline-start: 10px; bottom: 10px }
  .nrow { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 18px 0; align-items: start }
  .nrow-h { font-size: 16.5px }
  .nrow .muted { display: none }
  .zcell { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px }
  .zcell-t { width: 100% }
  .ncard .eb { letter-spacing: .1em }
  /* Wrap between category and date, never inside "16 OCT". */
  .ncard .eb time { white-space: nowrap }
  .zcell .emark { display: none }
  .empty { padding: 22px 20px; gap: 16px }
  .empty .emark { width: 40px; height: 40px }
  .a-head { padding-top: 32px }
  .a-title { font-size: 32px }
  .a-lead { font-size: 18px }
  .prose { font-size: 16.5px; line-height: 1.68 }
  .prose h2 { font-size: 21px }
  .prose h3 { font-size: 18.5px }
  .gp { min-height: 520px }
  .gp.no-art .gp-in { gap: 56px }
  .gin { padding-bottom: 36px }
  .glogo { font-size: 40px }
  .btn-xl { min-width: 0; width: 100%; font-size: 14.5px; height: 52px; --r: 14px }
  .actbar { width: 100%; gap: 20px }
  .soon { width: 100%; justify-content: center }
  .gallery { grid-template-columns: 1fr 1fr }
  .spec { min-width: 0; font-size: 14px }
  .spec th, .spec td { padding-inline-end: 10px }
  .spec tbody th { width: 84px }
  .kv > div { grid-template-columns: 1fr; gap: 2px }
  .foot-nav { gap: 32px; flex-wrap: wrap }
  .site-foot { margin-top: 72px }
  .pager .btn { padding: 0 12px }
}

/* Narrow phones: the download button drops its icon so it stays beside the brand. */
@media (max-width: 420px) {
  .head-cta .ic { display: none }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .btn-text, .site-nav a, .tabs a, .sh a, .foot-nav a { transition: color .12s, background-color .12s, box-shadow .12s }
}

/* ---------- right to left (Arabic) ---------- */
/* Arrows that mean back/next/open point the other way; download, logo and media icons do not. */
[dir='rtl'] .ic-dir { transform: scaleX(-1) }
/* The wave turns with the page, so its crest stays clear of the text. */
[dir='rtl'] .wave img { transform: scaleX(-1) }
/* Text sits at the start edge, so the scrim darkens that side. */
[dir='rtl'] .scrim-l { background: linear-gradient(270deg, rgba(11,11,11,.94) 0%, rgba(11,11,11,.7) 38%, rgba(11,11,11,0) 72%) }

/* ---------- scripts without capitals ---------- */
/* Letter-spacing breaks Arabic joining and looks broken in CJK; the wide
   uppercase display style becomes plain bold, with room for taller glyphs. */
:is(.eb, .h-hero, .h-sec, .glogo, .ptitle, .sh h2, .sh-h, .btn, .chip, .site-nav a, .gtabs a, .spec thead th, .soon, .tname, .a-title, .prose h2):is(:lang(ar), :lang(ja), :lang(ko), :lang(zh)) { letter-spacing: 0; text-transform: none }
:is(.h-hero, .h-sec, .ptitle, .glogo, .a-title):is(:lang(ar), :lang(ja), :lang(ko), :lang(zh)) { line-height: 1.3 }
.glogo:is(:lang(ar), :lang(ja), :lang(ko), :lang(zh)) { line-height: 1.2 }
.eb:is(:lang(ar), :lang(ja), :lang(ko), :lang(zh)) { font-size: 12.5px; font-weight: 600 }
:is(.sh h2, .sh-h, .chip, .btn, .site-nav a, .gtabs a):is(:lang(ar), :lang(ja), :lang(ko), :lang(zh)) { font-size: 14px }
.btn-sm:is(:lang(ar), :lang(ja), :lang(ko), :lang(zh)) { font-size: 13px }
.btn-xl:is(:lang(ar), :lang(ja), :lang(ko), :lang(zh)) { font-size: 17px }
/* Arabic body text needs more leading than Latin. */
:is(.ncard-t, .nrow-h, .zcell-h, .gtile-t, .empty-t, .a-lead, .zcell p, .gtile .muted):lang(ar) { line-height: 1.55 }
.prose:lang(ar) { line-height: 1.85 }
/* Russian display text in Geist: bold, a little tighter. */
:is(.h-hero, .h-sec, .ptitle, .glogo):lang(ru) { letter-spacing: -.02em }

