:root {
  color-scheme: dark;
  --bg: #111319;
  --surface: #1a1e27;
  --surface-2: #222735;
  --ink: #f4f2fb;
  --muted: #b3b8c9;
  --line: #34394a;
  --accent: #d2f878;
  --accent-ink: #161d0c;
  --radius: 13px;
  --display: "Bahnschrift", "Arial Narrow", Arial, sans-serif;
  --text: "Segoe UI", system-ui, sans-serif;
}
[data-edition="events"] {
  color-scheme: light;
  --bg: #fbf2e5;
  --surface: #fff9ef;
  --surface-2: #f1dfcc;
  --ink: #201818;
  --muted: #604b48;
  --line: #d7bdad;
  --accent: #9f2a23;
  --accent-ink: #fff8ec;
  --radius: 2px;
  --display: Georgia, serif;
}
[data-edition="maps"] {
  --bg: #0d1b29;
  --surface: #132839;
  --surface-2: #193449;
  --ink: #effaff;
  --muted: #adcadc;
  --line: #2c5065;
  --accent: #81e8e3;
  --accent-ink: #0c282b;
  --radius: 22px;
  --display: "Trebuchet MS", "Segoe UI", sans-serif;
}
[data-edition="ranked"] {
  --bg: #161222;
  --surface: #211a33;
  --surface-2: #302341;
  --ink: #fbf2ff;
  --muted: #d1c1de;
  --line: #4e3d62;
  --accent: #e0b7ff;
  --accent-ink: #29143c;
  --radius: 6px;
  --display: "Bahnschrift", "Arial Narrow", Arial, sans-serif;
}
[data-edition="loadouts"] {
  color-scheme: light;
  --bg: #ebf1e8;
  --surface: #f8fbf4;
  --surface-2: #dce9db;
  --ink: #162b26;
  --muted: #455e54;
  --line: #bfcec1;
  --accent: #166452;
  --accent-ink: #fffdf8;
  --radius: 10px;
  --display: "Trebuchet MS", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 var(--text);
}
body, button { font-family: var(--text); }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 5.2vw, 5.125rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.9rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.025em; }
p { overflow-wrap: anywhere; }
.wrap { width: min(100% - 64px, 1240px); margin-inline: auto; }
.main { flex: 1; padding-block: 36px 68px; min-width: 0; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 12px; z-index: 5; transform: translateY(-160%); background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 18px; }
.logo { text-decoration: none; flex: 0 0 auto; }
.logo img { width: 160px; height: auto; }
.edition {
  font-size: .825rem;
  font-weight: 700;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(4px, 1vw, 16px); }
.desktop-nav a { text-decoration: none; font-weight: 650; font-size: .9rem; padding: 7px 3px; border-bottom: 2px solid transparent; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { border-color: var(--accent); color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: .925rem; font-weight: 700; padding: 8px 12px; }
.menu-toggle span { padding-left: 4px; }
dialog {
  width: min(calc(100% - 32px), 410px);
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--surface);
  color: var(--ink);
}
dialog::backdrop { background: #080d16b8; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-top h2 { font-size: 1.5rem; }
.dialog-close { border: 1px solid var(--line); min-width: 44px; min-height: 44px; background: var(--surface-2); border-radius: 8px; color: var(--ink); font-size: 1.5rem; }
dialog nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
dialog nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; }
dialog nav a:is(:hover,[aria-current]) { color: var(--accent); border-color: var(--accent); }

.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow span { margin-inline: 4px; }
.primary-action {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 10px 19px;
  border-radius: min(var(--radius), 8px);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  text-decoration: none;
  line-height: 1.3;
}
.primary-action:hover { filter: brightness(.9); }
.text-link { text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 700; }
.text-link:hover { color: var(--accent); }

.home-hero { display: grid; grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr); align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hero-copy { min-width: 0; padding: clamp(26px,4vw,62px); align-self: center; }
.hero-description { max-width: 44ch; margin-block: 18px 23px; color: var(--muted); }
.hero-art { min-width: 0; display: grid; grid-template-columns: minmax(0,1.75fr) minmax(0,1fr); gap: 8px; padding: 12px 12px 12px 0; }
.hero-secondary { display: grid; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 8px; min-width: 0; }
.feature-art { position: relative; display: flex; align-items: flex-end; min-width: 0; min-height: 120px; isolation: isolate; border-radius: min(var(--radius), 12px); overflow: hidden; background: #202d3b; color: white; text-decoration: none; }
.feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .2s; }
.feature-art:hover img { transform: scale(1.035); }
.feature-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,#0b111a08 15%,#0b111a27 43%,#0b111aeb 100%); }
.feature-art span { padding: clamp(10px,1.6vw,22px); min-width: 0; }
.feature-art small, .feature-art strong { display: block; line-height: 1.2; overflow-wrap: anywhere; }
.feature-art small { font-size: .8125rem; font-weight: 700; color: #eef0f7; margin-bottom: 4px; }
.feature-art strong { font-family: var(--display); font-size: clamp(.95rem,1.6vw,1.5rem); }
.hero-main strong { font-size: clamp(1.15rem,2.5vw,2.05rem); }

.curated { display: grid; align-items: start; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-block: 26px 60px; }
.curated-panel { min-width: 0; padding: clamp(15px,2.3vw,27px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.section-copy { margin-bottom: 20px; }
.section-copy p, .library-title p, .category-heading p, .collection-banner p, .play-tip p { color: var(--muted); margin-top: 8px; }
.card-grid { display: grid; gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.curated-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
.game-card { min-width: 0; }
.game-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-radius: min(var(--radius), 11px);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .16s, background-color .16s;
}
.game-card > a:hover { border-color: var(--accent); background: var(--surface-2); }
.game-cover { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-2); border-radius: min(var(--radius), 10px) min(var(--radius), 10px) 0 0; }
.game-text { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 10px 11px 12px; }
.game-tag { font-size: .8rem; font-weight: 650; color: var(--muted); line-height: 1.2; }
.game-text strong { line-height: 1.25; overflow-wrap: break-word; }
.game-description { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; line-height: 1.45; }
.curated-panel .game-card > a { display: flex; }
.curated-panel .game-cover { flex: none; }

.library-title { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 24px; }
.category-panels { display: grid; gap: 22px; }
.category-panel { min-width: 0; display: grid; grid-template-columns: minmax(170px,.24fr) minmax(0,1fr); gap: 22px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.category-heading { align-self: center; min-width: 0; }
.category-heading p { font-size: .93rem; line-height: 1.45; margin-bottom: 10px; }
.guide { display: grid; grid-template-columns: minmax(190px,.46fr) minmax(0,1fr); gap: 24px; margin-top: 40px; padding: clamp(22px,3vw,40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.guide p { margin-bottom: 11px; color: var(--muted); }
.guide p:last-child { margin: 0; }
.guide strong { color: var(--ink); }

[data-edition="patches"] .home-hero {
  background: radial-gradient(ellipse at 22% 56%, #2b293d 0%, #1b1e28 55%, #1a1e27 100%);
  border-top: 3px solid var(--accent);
}
[data-edition="patches"] .hero-art { grid-template-columns: minmax(0,1.8fr) minmax(0,.85fr); }
[data-edition="patches"] .curated-panel { border-left: 3px solid var(--accent); }
[data-edition="patches"] .category-panel:nth-child(even) { background: var(--bg); }

[data-edition="events"] .site-header { border-top: 5px solid var(--accent); }
[data-edition="events"] .home-hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 0; border-bottom: 4px double var(--accent); background: transparent; padding-bottom: 22px; }
[data-edition="events"] .hero-copy { padding: 16px 32px 16px 0; }
[data-edition="events"] .hero-art { grid-template-columns: 1fr; padding: 0; }
[data-edition="events"] .hero-main { min-height: 0; aspect-ratio: 16/10; }
[data-edition="events"] .hero-small { min-height: 0; aspect-ratio: 16/10; }
[data-edition="events"] .hero-main img { object-position: center 26%; }
[data-edition="events"] .hero-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; }
[data-edition="events"] .curated-panel { border: 0; border-top: 3px solid var(--accent); }
[data-edition="events"] .category-panel { background: transparent; border-width: 1px 0 0; padding-inline: 0; }
[data-edition="events"] .category-heading h3 { color: var(--accent); }

[data-edition="maps"] .home-hero {
  background: repeating-radial-gradient(ellipse at 9% 87%,transparent 0 21px,#72d6dc17 22px 23px,transparent 24px 34px),var(--surface);
}
[data-edition="maps"] .hero-art { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); padding: 18px 18px 18px 0; gap: 12px; }
[data-edition="maps"] .feature-art, [data-edition="maps"] .hero-secondary { border-radius: 16px; }
[data-edition="maps"] .curated { grid-template-columns: 1fr; gap: 15px; }
[data-edition="maps"] .curated-panel { display: grid; grid-template-columns: minmax(145px,.25fr) minmax(0,1fr); gap: 20px; align-items: center; }
[data-edition="maps"] .curated-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
[data-edition="maps"] .category-panels { grid-template-columns: repeat(2,minmax(0,1fr)); }
[data-edition="maps"] .category-panel { grid-template-columns: 1fr; align-content: start; }
[data-edition="maps"] .category-panel .game-text { padding-inline: 7px; }

[data-edition="ranked"] .site-header { border-top: 4px solid var(--accent); }
[data-edition="ranked"] .home-hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-top: 0; background: linear-gradient(140deg,#261d38,#38224a 66%,#211a33); }
[data-edition="ranked"] .hero-copy { border-right: 1px solid var(--line); }
[data-edition="ranked"] .hero-art { grid-template-columns: 1fr; grid-template-rows: minmax(160px,1.6fr) minmax(98px,1fr); padding: 12px; }
[data-edition="ranked"] .hero-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; }
[data-edition="ranked"] .feature-art { min-height: 98px; }
[data-edition="ranked"] .hero-main img { object-position: center 23%; }
[data-edition="ranked"] .curated-cards { grid-template-columns: 1fr; }
[data-edition="ranked"] .curated-panel .game-card > a { display: grid; grid-template-columns: clamp(76px,9vw,112px) minmax(0,1fr); align-items: center; }
[data-edition="ranked"] .curated-panel .game-cover { height: auto; max-height: none; aspect-ratio: 1; border-radius: min(var(--radius), 10px) 0 0 min(var(--radius), 10px); }
[data-edition="ranked"] .curated-first { background: var(--surface-2); }
[data-edition="ranked"] .category-panel { border-top: 2px solid var(--line); }
[data-edition="ranked"] .category-heading h3 { text-transform: uppercase; }

[data-edition="loadouts"] .home-hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 0; background: #173c33; color: #f5f3e8; }
[data-edition="loadouts"] .hero-copy { grid-column: 2; grid-row: 1; }
[data-edition="loadouts"] .hero-art { grid-column: 1; grid-row: 1; padding: 18px 0 18px 18px; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
[data-edition="loadouts"] .hero-copy .eyebrow { color: #d1e99e; }
[data-edition="loadouts"] .hero-description { color: #d4e5d5; }
[data-edition="loadouts"] .hero-copy .primary-action { background: #d1e99e; color: #1a3427; }
[data-edition="loadouts"] .hero-copy .primary-action:focus-visible,
[data-edition="loadouts"] .home-hero .feature-art:focus-visible { outline-color: #d1e99e; }
[data-edition="loadouts"] .curated-panel { background: var(--surface-2); }
[data-edition="loadouts"] .category-panels { grid-template-columns: repeat(2,minmax(0,1fr)); }
[data-edition="loadouts"] .category-panel { grid-template-columns: 1fr; align-content: start; background: var(--surface-2); }
[data-edition="loadouts"] .category-panel:nth-child(4n+2), [data-edition="loadouts"] .category-panel:nth-child(4n+3) { background: var(--surface); }
[data-edition="loadouts"] .category-panel .game-text { padding-inline: 8px; }

.breadcrumb { margin-bottom: 20px; font-size: .9rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 3px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { text-underline-offset: 3px; }
.collection-banner { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.4fr); gap: 25px; background: var(--surface); padding: clamp(20px,4vw,48px); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 36px; }
.collection-banner h1 { font-size: clamp(2.25rem,5vw,4.3rem); }
.collection-banner .eyebrow { color: var(--accent); }
.collection-facts { align-self: end; padding-left: 18px; border-left: 2px solid var(--accent); }
.collection-facts strong { color: var(--accent); font-size: 1.15rem; }
.catalog h2, .related h2 { margin-bottom: 18px; }
.full-catalog { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 17px; }

.detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.35fr); gap: 20px; margin-bottom: 38px; }
.detail-main { display: grid; grid-template-columns: minmax(140px,214px) minmax(0,1fr); align-items: center; gap: clamp(18px,3vw,35px); min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px,3vw,34px); }
.detail-cover { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: min(var(--radius), 12px); background: var(--surface-2); }
.detail-copy h1, .player-heading h1 { font-size: clamp(1.85rem,4vw,3.5rem); }
.detail-copy > p:not(.eyebrow,.provider-note) { margin-top: 12px; color: var(--muted); }
.detail-copy .primary-action { margin-top: 18px; }
.provider-note { font-size: .875rem; color: var(--muted); margin-top: 10px; }
.play-tip { align-content: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.play-tip h2 { font-size: 1.45rem; }
.related { max-width: 980px; }
[data-edition="events"] .detail-main { border-top: 4px solid var(--accent); }
[data-edition="maps"] .detail-main { background: linear-gradient(135deg,var(--surface-2),var(--surface)); }
[data-edition="ranked"] .detail-main { border-left: 4px solid var(--accent); }
[data-edition="loadouts"] .detail-main { background: var(--surface-2); }
[data-edition="loadouts"] .play-tip { background: var(--surface); }
.player-heading { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 17px; }
.player { border: 1px solid var(--line); background: #0c1118; border-radius: var(--radius); overflow: hidden; }
.player iframe { display: block; border: 0; width: 100%; height: clamp(400px, 74dvh, 900px); }

.information { max-width: 910px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.info-heading { padding: clamp(20px,4vw,45px); border-bottom: 1px solid var(--line); }
.info-heading h1 { font-size: clamp(2rem,5vw,4.5rem); }
.info-heading h1 + p { margin-block: 12px; color: var(--muted); }
.prose { padding: clamp(20px,4vw,45px); }
.prose p, .prose ul, .prose dl { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-block: 26px 12px; }
.prose li + li { margin-top: 7px; }
.prose dt { font-weight: 750; }
.prose dd { margin: 3px 0 13px; }
.prose a { text-underline-offset: 3px; }
.prose code { overflow-wrap: anywhere; }
.policy-date { color: var(--muted); font-size: .9rem; }
.policy-toc { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px; margin-block: 20px 24px; background: var(--surface-2); border-radius: var(--radius); }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
.footer-inner nav a { text-underline-offset: 3px; }

@media (max-width: 1050px) {
  .curated { grid-template-columns: 1fr; }
  .curated-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
  [data-edition="ranked"] .curated-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-panel { grid-template-columns: minmax(145px,.24fr) minmax(0,1fr); gap: 14px; }
  [data-edition="maps"] .category-sample, [data-edition="loadouts"] .category-sample { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 870px) {
  .wrap { width: calc(100% - 40px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .curated { gap: 14px; }
  .curated-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  [data-edition="loadouts"] .curated-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  [data-edition="maps"] .curated-panel { grid-template-columns: 1fr; gap: 10px; }
  [data-edition="maps"] .curated-panel .section-copy { margin-bottom: 0; }
  .full-catalog { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .category-panel { grid-template-columns: 1fr; }
}
@media (max-width: 629px) {
  .wrap { width: calc(100% - 32px); }
  .main { padding-block: 21px 42px; }
  .header-inner { min-height: 60px; gap: 8px; }
  .header-inner .logo img { width: 132px; }
  .edition { display: none; }
  .header-inner .menu-toggle { font-size: .875rem; }
  .home-hero,
  [data-edition] .home-hero { grid-template-columns: minmax(0,1fr); }
  .hero-copy, [data-edition] .hero-copy { padding: 23px 19px 17px; border-right: 0; grid-column: auto; grid-row: auto; }
  [data-edition="events"] .hero-copy { padding-inline: 0; }
  .hero-description { margin-block: 11px 16px; }
  .hero-art, [data-edition] .hero-art { padding: 0 10px 10px; grid-column: auto; grid-row: auto; }
  [data-edition="events"] .hero-art { padding: 0; }
  [data-edition] .hero-art { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; }
  [data-edition] .hero-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 1fr; }
  [data-edition] .hero-main { min-height: 0; aspect-ratio: 16/10; }
  [data-edition] .hero-small { min-height: 0; aspect-ratio: 4/3; }
  [data-edition="ranked"] .curated-cards { grid-template-columns: 1fr; }
  .curated, [data-edition] .curated { grid-template-columns: 1fr; margin-block: 17px 36px; }
  [data-edition="maps"] .curated-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-grid { gap: 10px; }
  .category-sample, .full-catalog, .related-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-panels, [data-edition] .category-panels { grid-template-columns: 1fr; gap: 15px; }
  .category-panel { padding: 15px; }
  .guide, .collection-banner, .detail { grid-template-columns: 1fr; gap: 18px; }
  .collection-banner { margin-bottom: 26px; }
  .collection-facts { align-self: auto; }
  .detail { margin-bottom: 25px; }
  .detail-main { grid-template-columns: minmax(75px,112px) minmax(0,1fr); align-items: start; gap: 13px; }
  .detail-copy .eyebrow { margin-bottom: 7px; }
  .detail-copy h1 { font-size: clamp(1.4rem,5vw,2rem); }
  .detail-copy > p:not(.eyebrow,.provider-note) { margin-top: 7px; }
  .detail-copy .primary-action { margin-top: 12px; padding-inline: 11px; }
  .player-heading { align-items: flex-start; }
  .player-heading h1 { font-size: 1.65rem; }
  .player-heading .text-link { flex: 0 0 auto; font-size: .875rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 24px); }
  .detail-main { grid-template-columns: minmax(65px,85px) minmax(0,1fr); padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Advertisements are separated by their own wrapper, independent of content panels. */
.home-page .main, .category-page .main, .detail-page .main { padding-top: 0; }
.ad-placement {
  display: grid;
  justify-items: center;
  padding-block: 50px;
  min-width: 0;
}
.ad-placement > div { max-width: 100%; margin-inline: auto; text-align: center; }
.ad-placement > div > div { margin-inline: auto; }
.ad-placement + .curated { margin-top: 0; }
.ad-placement + .breadcrumb { margin-top: 0; }

.detail-cover { object-fit: contain; border: 1px solid var(--line); }
.detail { align-items: start; grid-template-columns: minmax(0,1fr) minmax(210px,.39fr); }
.detail-main { grid-template-columns: minmax(128px,208px) minmax(0,1fr); }
.detail-copy .intro { max-width: 60ch; }
.detail-copy .provider-note { margin-top: 8px; }
.detail-secondary { min-width: 0; align-self: stretch; display: grid; align-content: start; }
.editorial-note { padding: clamp(16px,2.5vw,26px); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.editorial-note h2 { font-size: clamp(1.35rem,2vw,1.85rem); }
.editorial-note p { margin-top: 10px; color: var(--muted); }
.game-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0 0 38px; }
.game-fact { min-width: 0; padding: clamp(16px,2.5vw,25px); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.game-fact h2 { font-size: clamp(1.3rem,2.4vw,1.85rem); }
.game-fact p { margin-top: 9px; color: var(--muted); }
.related > p { margin: -4px 0 18px; color: var(--muted); }
[data-edition="events"] .game-facts { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr); }
[data-edition="maps"] .editorial-note { background: repeating-radial-gradient(ellipse at 0 100%,transparent 0 16px,#72d6dc12 17px 18px,transparent 19px 25px),var(--surface-2); }
[data-edition="ranked"] .game-fact:last-child { background: var(--surface-2); }
[data-edition="loadouts"] .game-fact { background: var(--surface-2); }
.player-toolbar { min-height: 52px; display: flex; justify-content: flex-end; align-items: center; padding: 7px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.fullscreen-toggle { min-height: 36px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: .875rem; font-weight: 650; }
.fullscreen-toggle:hover { border-color: var(--accent); }
.fullscreen-toggle svg { flex: none; }
.player:fullscreen, .player.player-expanded { display: flex; flex-direction: column; width: 100%; height: 100%; border: 0; border-radius: 0; }
.player:fullscreen iframe, .player.player-expanded iframe { flex: 1; min-height: 0; height: 100%; }
.player-expanded { position: fixed; inset: 0; z-index: 20; }
.game-expanded { overflow: hidden; }

@media (max-width: 850px) {
  .detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .game-facts, [data-edition="events"] .game-facts { grid-template-columns: 1fr; margin-bottom: 28px; }
  .detail-main { grid-template-columns: minmax(72px,110px) minmax(0,1fr); }
}
@media (max-width: 365px) {
  .detail-main { grid-template-columns: minmax(68px,82px) minmax(0,1fr); }
}
