/* ==========================================================================
   MacPaw — The Practical Guide to Mac Gaming in 2026
   Production stylesheet (no build step, no framework)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "FixelDisplay";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/FixelDisplay-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "FixelDisplay";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/FixelDisplay-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "FixelDisplay";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/FixelDisplay-ExtraBold.woff2") format("woff2");
}
@font-face {
  font-family: "Fixel";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/FixelVariable.ttf") format("truetype-variations"),
       url("../assets/fonts/FixelVariable.ttf") format("truetype");
}
@font-face {
  font-family: "Fixel";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/FixelVariableItalic.ttf") format("truetype-variations"),
       url("../assets/fonts/FixelVariableItalic.ttf") format("truetype");
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --pink: #FF00AA;
  --pink-10: #FFE5F6;
  --link: #266CFA;
  --link-hover: #1F5AD1;
  --link-on-dark: #8AB4FF;
  --link-on-dark-hover: #B3CDFF;
  --black: #000000;
  --white: #FFFFFF;
  --grey-5: #F2F2F2;
  --grey-10: #E5E5E5;
  --grey-20: #CCCCCC;
  --grey-30: #B2B2B2;
  --grey-40: #999999;
  --grey-60: #666666;
  --grey-70: #4D4D4D;
  --grey-80: #333333;
  --grey-90: #1A1A1A;
  --green-5: #EBF9EE;
  --green-10: #E5F7EA;
  --green-20: #D6F1DE;
  --green-text: #1E7A3C;
  --yellow-10: #FFF5CC;
  --hero-bg: #14082E;
  --font-display: "FixelDisplay", "Fixel", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-text: "Fixel", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;
  --radius-card: 20px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; color: inherit; }
img, svg { max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
.prose a:not([class]):focus-visible { outline-color: var(--link); }
[id] { scroll-margin-top: calc(var(--header-h) + 32px); }
[hidden] { display: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -200px; z-index: 200;
  background: var(--pink); color: var(--white); font-weight: 600;
  padding: 12px 18px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Utilities that replace one-off inline styles from the design */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-8 { margin: 0 0 8px !important; }
.mb-12 { margin: 0 0 12px !important; }
.emoji { display: inline-block; margin-inline-end: 8px; vertical-align: baseline; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.body-wrap { padding-top: 56px; padding-block-end: clamp(64px, 8vw, 128px); }
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) {
  .body-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--black); color: var(--white); }
.site-nav { position: relative; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; height: 44px; color: var(--white); }
.nav-logo img { height: 24px; width: auto; display: block; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-ctl {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; color: var(--white); text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 12px;
  min-height: 44px; min-width: 44px;
  transition: background 140ms var(--ease);
}
.nav-ctl:hover, .nav-ctl[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.nav-ctl:focus-visible { outline-color: var(--white); }
.nav-store-top { display: none; }
.nav-menu-btn[aria-expanded="true"] .nav-ico--open,
.nav-menu-btn[aria-expanded="false"] .nav-ico--close { display: none; }
.nav-backdrop {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
  background: rgba(0, 0, 0, 0.6); z-index: 80; border: 0; padding: 0; margin: 0; cursor: default;
}
.nav-drop {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; overflow-y: auto;
  background: var(--grey-90); border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); z-index: 90;
}
.nav-links { list-style: none; margin: 0; display: flex; flex-direction: column; background: var(--grey-80); padding: 8px 0; }
.nav-links a {
  display: flex; align-items: center; gap: 20px; color: var(--white); text-decoration: none;
  font-weight: 600; font-size: 18px; padding: 18px 24px; min-height: 56px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:focus-visible, .prods a:focus-visible { outline-color: var(--white); }
.prods { list-style: none; margin: 0; padding: 16px 24px 40px; display: flex; flex-direction: column; background: var(--black); }
.prods a {
  display: flex; align-items: center; gap: 20px; color: var(--white); text-decoration: none;
  font-weight: 600; font-size: 17px; padding: 14px 0; min-height: 56px;
}
.prods a:hover { color: var(--white); }
.prods img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.prods .new { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--pink); margin-left: auto; }
.prods .new-top { display: none; }
@media (min-width: 768px) {
  .nav-store-top { display: inline-flex; }
  .nav-drop { position: absolute; bottom: auto; overflow: visible; }
  .nav-links { flex-direction: row; justify-content: center; gap: 24px; padding: 0 24px; }
  .nav-links a { gap: 12px; padding: 22px 12px; min-height: 0; }
  .prods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; padding: 32px 32px 48px; max-width: 1400px; margin: 0 auto; }
  .prods li { min-width: 0; }
  .prods a { flex-direction: column; gap: 14px; font-size: 14px; padding: 12px 8px 4px; }
  .prods img { width: 64px; height: 64px; border-radius: 16px; }
  .prods .new { display: none; }
  .prods .new-top { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--white); height: 32px; margin: 0; }
  .prods .new-top.empty { visibility: hidden; }
}
@media (min-width: 1280px) { .prods { grid-template-columns: repeat(10, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; color: var(--white); padding: 40px 0 56px;
  background-color: var(--hero-bg);
  background-image: url("../assets/images/game-guide-background.webp");
  background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;
}
.crumbs ol {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 8px; font-size: 14px; color: var(--grey-30);
}
.crumbs a { color: var(--grey-30); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; padding: 4px 2px; }
.crumbs a:hover { color: var(--white); }
.crumbs a:focus-visible { outline-color: var(--white); }
.crumbs [aria-current="page"] { color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 6vw, 70px); line-height: 0.98; letter-spacing: -0.04em;
  margin: 0 0 24px; text-wrap: pretty;
}
.hero-sub {
  font-size: clamp(18px, 2vw, 22px); line-height: 1.4; letter-spacing: -0.01em;
  color: var(--grey-10); margin: 0; max-width: 34ch;
}
.hero-fig { margin: 0; }
.hero-img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
@media (min-width: 1200px) {
  .hero-fig { justify-self: end; width: auto; }
  .hero-fig .hero-img { margin: 0; }
}

/* --------------------------------------------------------------------------
   Sidebar: table of contents + contextual banner
   -------------------------------------------------------------------------- */
.toc-desk { display: none; }
@media (min-width: 1024px) {
  .toc-desk { display: block; }
  .toc-mob { display: none; }
}
.toc-title {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  margin: 0 0 6px; padding: 0 12px;
}
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.toc-list a {
  display: block; color: var(--grey-70); text-decoration: none; font-size: 14px; line-height: 1.4;
  padding: 8px 12px; border-left: 2px solid transparent;
}
.toc-desk .toc-list a { padding: 4px 12px; line-height: 1.3; }
.toc-list a:hover { color: var(--black); }
.toc-list a.is-active { color: var(--black); font-weight: 600; border-left-color: var(--pink); }

/* Contextual banner sits below the TOC (as in the approved design). On tall
   viewports its box is reserved while hidden so the fade never shifts the sidebar.
   On shorter desktop viewports it is only laid out while shown, and main.js lets
   the sticky sidebar follow the scroll direction so TOC and banner both stay reachable. */
.side-promo {
  display: none; position: relative; width: 100%; max-width: 256px; aspect-ratio: 1024 / 1684; margin: 24px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
}
@media (min-width: 1024px) {
  .toc-stack.promo-on .side-promo { display: block; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
}
@media (min-width: 1024px) and (min-height: 930px) { .side-promo { display: block; } }
.side-promo-link { display: block; line-height: 0; }
.side-promo-link img { display: block; width: 100%; height: auto; }
.side-promo-link:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.side-promo-close {
  position: absolute; top: 2.5%; right: 4%; width: 15.5%; aspect-ratio: 1;
  border: 0; background: transparent; border-radius: 50%; padding: 0;
}
.side-promo-close:hover { background: rgba(0, 0, 0, 0.06); }

/* Mobile / tablet: compact collapsible TOC */
.toc-mob { border: 1px solid var(--grey-10); border-radius: 16px; padding: 4px 16px; }
.toc-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: 0; padding: 14px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  color: var(--black); min-height: 48px; text-align: left;
}
.chev { flex: none; transition: transform 220ms var(--ease); }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.toc-panel { padding-bottom: 12px; }

/* --------------------------------------------------------------------------
   Article prose
   -------------------------------------------------------------------------- */
.prose { width: 100%; max-width: none; min-width: 0; }
.prose > *, .prose section > * { width: 100%; max-width: none; }
.prose .intro > p, .prose section > p, .prose .numbered-section__content > p,
.prose .numbered-section__content > ul, .prose section > ul, .prose section > ol:not(.numbered-section) { max-width: 80ch; }
.prose p, .prose li { font-size: 18px; line-height: 1.6; letter-spacing: -0.01em; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 0 0 8px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12; letter-spacing: -0.02em; margin: 80px 0 20px; text-wrap: balance;
}
.prose h3 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 27px);
  line-height: 1.2; letter-spacing: -0.02em; margin: 48px 0 16px; text-wrap: pretty;
}
.prose h4 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; margin: 36px 0 12px; }
.prose h5 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; margin: 28px 0 10px; }
.prose figure { margin: 32px 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 20px; }
.wide { max-width: 100%; }
.intro { margin-bottom: 64px; }

/* Byline */
.byline {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 32px; margin: 0 0 40px; padding: 0 0 24px; border-bottom: 1px solid var(--grey-10);
}
.byline-author { display: flex; align-items: center; gap: 16px; min-width: 0; font-style: normal; }
.byline-photo { display: block; flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
.byline-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.byline-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.byline-label { font-size: 13px; line-height: 1.4; color: var(--grey-60); }
.byline-name {
  display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; min-height: 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--black); text-decoration: none;
}
.byline-name:hover { color: var(--pink); }
.byline-name svg { flex: none; color: var(--pink); }
.byline-role { font-size: 14px; line-height: 1.4; color: var(--grey-60); }
.prose .byline-dates { margin: 0; font-size: 14px; line-height: 1.4; color: var(--grey-60); text-align: right; white-space: nowrap; letter-spacing: 0; }
@media (max-width: 600px) {
  .byline { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
  .byline-photo { width: 56px; height: 56px; }
  .prose .byline-dates { text-align: left; white-space: normal; }
}

/* Timeline (chronological sequence: dots + connecting line) */
.prose .timeline { list-style: none; padding: 0; margin: 24px 0; border-left: 2px solid var(--grey-10); }
.prose .timeline__item { position: relative; padding: 0 0 24px 28px; margin: 0; }
.prose .timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); }
.timeline__title { display: block; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.015em; margin-bottom: 6px; }
.loop { font-weight: 700; }

/* Tables */
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grey-10); }
.prose th { font-weight: 600; background: var(--grey-5); }
.prose tbody th { background: none; }
.prose thead th:first-child { border-radius: 12px 0 0 0; }
.prose thead th:last-child { border-radius: 0 12px 0 0; }
.tbl-wrap { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; }
.tbl-wrap table { min-width: 560px; }

/* Notes */
.note { background: var(--grey-5); border-radius: 20px; padding: 24px 28px; margin: 28px 0; }
.note p, .note li { font-size: 17px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* CleanMyMac blocks */
.cmm { background: var(--black); color: var(--white); border-radius: 28px; padding: 24px; margin: 40px 0; }
.cmm p, .cmm li { color: var(--white); font-size: 17px; }
.cmm a { color: var(--link-on-dark); }
.cmm a:hover { color: var(--link-on-dark-hover); text-decoration-thickness: 2px; }
.cmm a:focus-visible { outline: 2px solid var(--link-on-dark); outline-offset: 2px; border-radius: 4px; }
.cmm.light { background: var(--white); color: var(--black); border: 2px solid var(--pink); padding: 28px; }
.cmm.light p, .cmm.light li { color: var(--black); }
.cmm.light a { color: var(--link); }
.cmm.light a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.cmm.light a:focus-visible { outline: 2px solid var(--link); }
@media (max-width: 700px) { .cmm.light { padding: 20px 18px; } }
.cmm.tip p { max-width: 80ch; font-size: 18px; line-height: 1.6; margin: 0 0 20px; }
.cmm.tip p:last-child { margin-bottom: 0; }
.cmm-heading {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2;
  margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
}
.prose .cmm-figure { margin: 20px 0 0; border: 1px solid var(--grey-10); border-radius: 12px; overflow: hidden; line-height: 0; }
.prose .cmm-figure img { border-radius: 0; }
.cmm-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.cmm-split > * { min-width: 0; width: 100%; max-width: 100%; }
.cmm-split figure { margin: 0; justify-self: center; max-width: 320px; }
.cmm-split figure img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; border-radius: 16px; }
@media (min-width: 769px) {
  .cmm-split { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); grid-template-rows: auto 1fr; column-gap: 28px; row-gap: 16px; }
  .cmm-split .cs-lead { grid-column: 1; grid-row: 1; }
  .cmm-split .cs-rest { grid-column: 1; grid-row: 2; }
  .cmm-split figure { grid-column: 2; grid-row: 1 / 3; max-width: 220px; }
}
.cmm-appicon { display: block; position: relative; overflow: hidden; width: 87px; height: 72px; margin: 0 0 28px; }
.cmm-appicon img { position: absolute; display: block; width: 225px; height: 225px; max-width: none; left: -70px; top: -77px; }
@media (max-width: 768px) {
  .cmm-appicon { width: 63px; height: 52px; margin-bottom: 24px; }
  .cmm-appicon img { width: 161px; height: 161px; left: -50px; top: -55px; }
}
@media (max-width: 430px) { .cmm { padding: 24px 20px; border-radius: 24px; } .cmm-split { gap: 20px; } }
@media (max-width: 360px) { .cmm { padding: 20px 16px; } }

/* Screenshot + copy pairs */
.shot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 48px; margin: 0 0 24px; align-items: start; }
.shot .shot-lead { margin: 0; }
.shot .shot-rest > p { margin: 0 0 16px; }
.shot .shot-rest > *:last-child { margin-bottom: 0; }
.prose .shot figure { margin: 0; width: 100%; max-width: 280px; justify-self: center; }
.prose .shot figure img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 16px; border: 1px solid var(--grey-10); }
.shot .clue { margin: 0; }
.shot .shot-rest .clue { margin-top: 4px; }
.shot-callout { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; }
@media (min-width: 900px) {
  .shot { grid-template-columns: minmax(0, 64fr) minmax(0, 32fr); grid-template-rows: auto 1fr; }
  .shot .shot-lead { grid-column: 1; grid-row: 1; }
  .shot .shot-rest { grid-column: 1; grid-row: 2; }
  .prose .shot figure { grid-column: 2; grid-row: 1 / 3; justify-self: start; max-width: 100%; }
}

/* At-a-glance tags */
.prose .tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; padding: 0; }
.prose .tags li {
  display: inline-flex; align-items: center; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--grey-20); color: var(--grey-80);
}

/* Game lists */
.prose .games { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.prose .games li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 14px 0; border-bottom: 1px solid var(--grey-10); margin: 0;
}
.prose .games li:last-child { border-bottom: 0; }
.games strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.prose .collage { margin: 24px 0 8px; }
.prose .collage img { border-radius: 0; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.stores .badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--black); background: var(--green-10); padding: 8px 12px; border-radius: 999px; min-height: 32px; white-space: nowrap;
}
.stores .badge:hover { background: var(--green-20); }
.stores .badge a { display: inline-flex; align-items: center; padding: 8px 0; margin: -8px 0; color: var(--black); text-decoration: none; }
.stores .badge a:hover, .stores .badge a:active, .stores .badge a:visited { color: var(--black); text-decoration: none; }
.stores .badge .ok { color: var(--green-text); font-weight: 700; }
.games.em .badge, .games.em .badge a, .games.em .badge .ok, .stores .badge { font-style: normal; }

/* Stat cards */
/* "The reality of Mac gaming" statistics: one column on phones, two on tablets, approved 3-column mosaic on desktop */
.prose .stats { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 32px 0; }
@media (max-width: 767px) {
  .prose .stats > .stat { grid-column: auto; grid-row: auto; min-height: 0; width: 100%; }
  .stats .stat .num.mix, .stats .stat .num.mix.long { font-size: clamp(32px, 9vw, 40px); }
  .stats .stat .num.mix .sm, .stats .stat .num.mix.long .sm { font-size: clamp(15px, 4.5vw, 20px); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .prose .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prose .stats > .stat:first-child { grid-column: 1 / -1; min-height: 0; }
}
@media (min-width: 1024px) { .prose .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.prose .stat {
  border-radius: var(--radius-card); padding: 24px; background: var(--grey-5);
  display: flex; flex-direction: column; gap: 8px; min-height: 160px; margin: 0; container-type: inline-size;
  font-size: 16px; line-height: 1.5; letter-spacing: 0;
}
.prose .stats-pair { list-style: none; padding: 0; }
.prose .stat.compact.cost {
  container-type: normal; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  width: 100%; max-width: 100%; padding: 22px 28px; min-height: 0; margin: 0 0 20px;
}
.stat.compact.cost .num { font-size: clamp(30px, 9vw, 48px); white-space: nowrap; }
.stat.compact.cost .lbl { font-size: 15px; line-height: 1.4; }
@media (max-width: 360px) { .stat.compact.cost .num { white-space: normal; } }
@media (min-width: 1024px) { .prose .stat.compact.cost { width: 56%; } }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.stat .num.mix { display: inline-flex; align-items: baseline; gap: 0.16em; font-size: clamp(30px, 21.5cqw, 66px); align-self: flex-start; max-width: 100%; }
.stat .num.mix.long { font-size: clamp(32px, 4vw, 48px); gap: 0.12em; }
.stat:has(.num.mix.long) { padding-left: 18px; padding-right: 18px; }
.stat .num.mix .sm { font-size: clamp(14px, 9.4cqw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.stat .num.mix.long .sm { font-size: clamp(13px, 8cqw, 22px); }
.stat .lbl { font-size: 15px; line-height: 1.4; }
.stat .lbl--bold { font-weight: 700; }
.stat .fn { font-size: 12px; line-height: 1.4; margin-top: auto; opacity: 0.8; font-style: italic; }
.stat.dark { background: var(--black); color: var(--white); }
.stat.pink { background: var(--pink); color: var(--white); }

/* Column grids and tiles */
.cols2, .cols3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 24px 0; }
.prose .cols2, .prose .cols3 { padding: 0; }
.cols2.natural { align-items: start; }
.cols2.natural > .tile { height: auto; min-height: 0; }
@media (min-width: 700px) {
  .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Equal heights only within this one comparison row */
  .cols2.natural.equal-pair { align-items: stretch; }
  .cols2.natural.equal-pair > .tile { height: auto; min-height: 0; align-self: stretch; }
}
.group-sep { border: 0; border-top: 1px solid var(--grey-10); height: 0; margin: 32px 0; }
.cols2 + .group-sep + .cols2 { margin-top: 32px; }
@media (max-width: 767px) { .group-sep { margin: 22px 0; } .cols2 + .group-sep + .cols2 { margin-top: 22px; } }
.tile { border-radius: var(--radius-card); padding: 20px 22px; background: var(--grey-5); }
.tile p, .tile li { font-size: 16px; }
.tile p:last-child { margin-bottom: 0; }
.tile h5, .tile .t {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 28px; letter-spacing: -0.01em;
  margin: 0 0 8px; display: flex; align-items: flex-start; gap: 8px;
}
.tile.ok { background: var(--green-5); }
.tile.no { background: var(--pink-10); }
.prose .routes { list-style: none; }
.prose .tile--route {
  background: var(--black); color: var(--white); text-align: center; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 28px; letter-spacing: -0.01em;
}
.ic { width: 28px; height: 28px; flex: none; display: block; }
.ic-box { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }
.ic-box .ic { width: 28px; height: 28px; }
.ic-box .ic-sm { width: 25px; height: 25px; }
.ic-route { width: 32px; height: 32px; margin-right: 0; }

/* Storage cards */
.prose .storage-cards { list-style: none; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.prose .storage-cards .tile { padding: 16px 18px 18px; margin: 0; }
.storage-cards .tile .t { font-size: 15px; line-height: 32px; margin: 0 0 6px; gap: 8px; white-space: nowrap; }
.storage-cards .tile p:last-child { font-size: 15px; line-height: 1.45; }
@media (min-width: 1280px) {
  .prose .storage-cards { grid-template-columns: 0.85fr 1.15fr 1.1fr 0.85fr 1.3fr; gap: 10px; }
  .prose .storage-cards .tile { padding: 16px 14px 18px; }
  .storage-cards .tile .t { gap: 6px; }
  .storage-cards .ic-box { margin-right: 6px; }
}
@media (max-width: 420px) { .storage-cards .tile .t { white-space: normal; } }

/* Pricing tiers */
.prose .tiers { list-style: none; }
.prose .tier { border-radius: 16px; padding: 18px 20px; border: 1px solid var(--grey-10); display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.tier .t { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; color: var(--black); }
.tier .price { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.tier .d { font-size: 15px; color: var(--grey-80); line-height: 1.45; }

/* Decision routes ("Which route should you take?") — only the arrows are pink */
.route { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 24px 0; }
.route-row {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding: 16px 20px; min-height: 64px; border-radius: 16px; background: var(--grey-5);
}
.route dt, .route dd { margin: 0; }
.route-q { font-size: 17px; line-height: 1.4; }
.route-a { display: inline-flex; align-items: center; gap: 8px; color: var(--black); font-weight: 600; font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; }
.route-a strong { font-weight: 600; color: inherit; }
.route-arrow { flex: none; color: var(--pink); }
.route-diag .route-q strong { color: var(--black); font-weight: 600; }
.route-diag .route-a { font-weight: 400; align-items: flex-start; }
.route-diag .route-a .route-arrow { margin-top: 1px; }
@media (min-width: 1024px) {
  .route-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 24px; align-items: center; }
  .route-diag .route-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
@media (min-width: 1280px) {
  .route-a { font-size: 17px; white-space: nowrap; }
  .route-diag .route-a { white-space: normal; }
}

/* Numbered sections: badges + connecting line only for ordered procedures;
   pink arrows for independent points */
.prose .numbered-section { list-style: none; margin: 8px 0 32px; padding: 0; max-width: none; }
.numbered-section__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; position: relative; padding-bottom: 36px; margin: 0; }
.numbered-section__item:last-child { padding-bottom: 0; }
.numbered-section__badge {
  width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.numbered-section.list .numbered-section__badge { background: var(--white); border: 2px solid var(--pink); color: var(--pink); }
.numbered-section__arrow { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--pink); flex: none; }
.numbered-section__arrow svg { width: 24px; height: 24px; display: block; }
.numbered-section__content { min-width: 0; }
.numbered-section__content > .ns-h { margin: 0 0 12px; padding-top: 8px; }
.numbered-section__content > *:last-child { margin-bottom: 0; }
.numbered-section.flow .numbered-section__item::before {
  content: ""; position: absolute; left: 19px; top: 48px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--pink-10);
}
.numbered-section.flow .numbered-section__item:last-child::before { display: none; }
.numbered-section.list .numbered-section__item + .numbered-section__item { border-top: 1px solid var(--grey-10); padding-top: 32px; }
@media (max-width: 767px) { .numbered-section__arrow { width: 36px; height: 36px; } }
@media (max-width: 600px) {
  .numbered-section__item { grid-template-columns: 36px minmax(0, 1fr); }
  .numbered-section__badge { width: 36px; height: 36px; font-size: 17px; }
  .numbered-section.flow .numbered-section__item::before { left: 17px; top: 44px; }
}

/* Nested-OS illustration */
.prose .nest { margin: 24px auto 36px; width: 100%; max-width: 860px; }
.nest .label { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.nest .ic { width: 22px; height: 22px; flex: none; }
.nest .a-menubar .ic, .nest .a-titlebar .ic { width: 20px; height: 20px; }
.nest .a-titlebar .ic { color: var(--pink); }
.a-mac { border: 1px solid var(--grey-10); border-radius: 24px; padding: 16px; background: var(--white); }
.a-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0 4px; }
.a-head .label { font-size: 15px; letter-spacing: 0.04em; color: var(--black); }
.a-macos { border-radius: 16px; background: var(--grey-5); padding: 0 0 20px; overflow: hidden; }
.a-menubar { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #E9E9E9; }
.a-menubar .label { font-size: 15px; color: var(--black); }
.a-menubar .dots { display: flex; gap: 6px; margin-left: auto; }
.a-menubar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-20); }
.a-winwrap { padding: 20px 16px 0; display: flex; justify-content: center; }
.a-win { width: 72%; border-radius: 16px; background: var(--white); border: 2px solid var(--pink); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05); overflow: hidden; }
.a-titlebar { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--pink-10); border-bottom: 1px solid var(--pink-10); }
.a-titlebar .label { font-size: 15px; color: var(--pink); }
.a-titlebar .ctl { display: flex; gap: 6px; }
.a-titlebar .ctl i { width: 10px; height: 10px; border-radius: 50%; background: var(--pink-10); border: 1px solid var(--pink); }
.a-titlebar .ctl i:first-child { background: var(--pink); }
.a-body { padding: 20px 16px; display: grid; place-items: center; background: repeating-linear-gradient(0deg, transparent 0 15px, #F7F7F7 15px 16px), var(--white); }
.a-game { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 14px; background: var(--black); color: var(--white); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16); }
.a-game .label { font-size: 17px; color: var(--white); }
.a-game .ic { width: 24px; height: 24px; }
@media (max-width: 600px) {
  .a-mac { border-radius: 18px; padding: 12px; }
  .a-head { margin-bottom: 10px; }
  .a-macos { border-radius: 14px; padding-bottom: 14px; }
  .a-winwrap { padding: 14px 10px 0; }
  .a-win { width: 100%; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
  .a-body { padding: 16px 12px; }
  .a-game { padding: 11px 16px 11px 14px; }
}

/* Numbered instruction steps inside cards */
.prose .steps { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: s; }
.prose .steps li { position: relative; padding-left: 32px; margin-bottom: 14px; counter-increment: s; }
.steps li::before {
  content: counter(s) "."; position: absolute; left: 0; top: 0; width: 24px; color: var(--pink);
  font-family: var(--font-display); font-weight: 700; font-size: inherit; line-height: inherit; text-align: left;
}
@media (max-width: 600px) { .prose .steps li { padding-left: 28px; } }

/* Chips, paths, clues */
.prose .chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; padding: 0; }
.prose .chips li { margin: 0; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--black); color: var(--white); }
.prose .chips .chip--ok { background: var(--green-5); color: var(--black); }
.prose .chips .chip--warn { background: var(--yellow-10); color: var(--black); }
.prose .chips .chip--no { background: var(--pink-10); color: var(--black); }
.prose .path { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 24px; padding: 0; font-weight: 600; font-size: 16px; }
.prose .path li { margin: 0; font-size: 16px; padding: 10px 14px; border-radius: 12px; background: var(--grey-5); }
.prose .path li + li { margin-left: 20px; position: relative; }
.prose .path li + li::before { content: "→"; position: absolute; left: -20px; width: 20px; text-align: center; color: var(--grey-40); font-style: normal; }
.prose .path--tight { margin-top: -12px; }
.clue { display: flex; gap: 12px; align-items: flex-start; border-left: 3px solid var(--pink); padding: 4px 0 4px 16px; margin: 16px 0 24px; }
.clue p { margin: 0; }

/* Pre-game checklist cards (branded checkmark lives only in these headings) */
.prose .check { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 32px 0; padding: 0; }
.prose .check > li { border-radius: var(--radius-card); border: 1px solid var(--grey-10); padding: 22px 24px; margin: 0; }
.prose .check h3 { margin: 0 0 12px; font-size: 22px; color: var(--black); }
.check-h { display: flex; align-items: flex-start; gap: 12px; }
.check-ic { width: 30px; height: 30px; flex: none; margin-top: -1px; }
.check p:last-child, .check ol:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .check-ic { width: 26px; height: 26px; margin-top: 0; } }

/* FAQ accordion */
.faq { border-top: 1px solid var(--grey-10); margin: 24px 0 0; }
.prose .faq-h { margin: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; border-bottom: 1px solid var(--grey-10); text-align: left; padding: 22px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; color: var(--black); min-height: 64px;
}
.faq-q:hover { color: var(--pink); }
.faq-q svg { flex: none; transition: transform 220ms var(--ease); }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { border-bottom: 1px solid var(--grey-10); animation: faq-open 260ms var(--ease) both; }
.faq-a-inner { padding: 8px 0 24px; }
.faq-a p { margin: 0 0 20px; }
.faq-a p:last-child { margin-bottom: 0; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--grey-10); background: var(--white); color: var(--black); }
.ft-top { padding-top: 24px; padding-bottom: 8px; }
.ft-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
.ft-h-desk { display: none; }
.ft-h--always { display: block; }
.ft-h-mob {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  background: none; border: 0; border-bottom: 1px solid var(--grey-10); padding: 22px 0;
  font-weight: 600; font-size: 18px; color: var(--black); min-height: 64px; text-align: left;
}
.ft-h-mob svg { transition: transform 220ms var(--ease); }
.ft-h-mob[aria-expanded="true"] svg { transform: rotate(180deg); }
.ft-c { padding: 8px 0 20px; }
.ft-c ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ft-c a { display: inline-block; color: var(--grey-80); text-decoration: none; font-size: 15px; line-height: 1.4; padding: 8px 0; }
.ft-c a:hover { color: var(--pink); }
.ft-current { font-weight: 600; }
.ft-follow { padding: 24px 0 8px; }
.ft-social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--grey-5); padding: 0;
}
.social-link:hover { background: var(--pink-10); }
.ft-bottom { border-top: 1px solid var(--grey-10); margin-top: 32px; padding-top: 24px; padding-bottom: 32px; display: flex; align-items: center; gap: 14px; }
.ft-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.ft-mark img { height: 26px; width: auto; }
.ft-copy { margin: 0; font-size: 13px; color: var(--grey-60); }
@media (min-width: 1024px) {
  .ft-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px; }
  .ft-h-desk { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 18px; }
  .ft-h-mob { display: none; }
  .ft-c, .ft-c[hidden] { display: block; padding: 0; }
  .ft-c a { padding: 6px 0; font-size: 14px; }
  .ft-follow { padding: 0; }
  .ft-lang-title { margin-top: 32px; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .side-promo { transform: none; }
}
