/* The public pages: the landing, guide, screenshots, support, Android, legal and 404 pages, and the
   API's user pages, /games and /stats. The web client (sign-in and signed-in pages) keeps style.css.
   Landing redesigned 2026-11-15, the other public pages 2026-11-16 after an unslop pass (unslop by @heydamir, CC BY 4.0; draft in
   docs/drafts/site-landing-unslop.html): the site's own palette and brand gradient, Manrope,
   a wider page with the app's screens on soft panels, and one spacing scale (multiples of 4).
   First-party like style.css: the fonts come from this host and nothing here asks a third party. */

@font-face { font-family: Manrope; src: url("fonts/Manrope-Regular.woff2?v=2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url("fonts/Manrope-Medium.woff2?v=2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url("fonts/Manrope-SemiBold.woff2?v=2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url("fonts/Manrope-Bold.woff2?v=2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("fonts/Manrope-ExtraBold.woff2?v=2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* style.css's palette and the app icon's gradient. */
  --brand-from: #fd9305;
  --brand-to: #b153d8;
  --brand: linear-gradient(110deg, var(--brand-from), var(--brand-to));
  --bg: #ffffff;
  --card: #ffffff;
  --raised: #f6f5f8;
  --ink: #16141a;
  --ink-2: #55505e;
  --ink-3: #6e6878;
  --line: #e6e3ea;
  /* Purple for small text marks (numbers, the tick): brand-to darkened to read on white. */
  --mark: #8f3fb3;
  --btn: #000000;
  --btn-ink: #ffffff;
  --phone: #16141a;
  --shadow: 0 24px 48px -16px rgba(40, 20, 60, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* The app's own colours for the three shelves (the Library screen's tab badges). */
  --library: #4a90d9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121016;
    --card: #1a171f;
    --raised: #1a171f;
    --ink: #f4f2f7;
    --ink-2: #a9a2b5;
    --ink-3: #8f889b;
    --line: #2b2733;
    --mark: #d08cf0;
    --btn: #ffffff;
    --btn-ink: #000000;
    --phone: #0a090c;
    --shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font-family: inherit; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* The brand gradient as a hairline across the top, as on every page of the site. */
body::before { content: ""; display: block; height: 4px; background: var(--brand); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-from); outline-offset: 3px; border-radius: 8px; }

.bar, main { max-width: 1120px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }
@media (min-width: 900px) { .bar, main { padding: 0 32px; } }

/* Header: the same markup as every page (brand, language menu, Sign In) */
header.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { display: block; width: 32px; height: 32px; border-radius: 8px; }
/* The buttons' own 12px padding hangs past the edge, so their text lines up with the page. */
.w-top-end { display: flex; align-items: center; gap: 4px; margin-right: -12px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--raised); color: var(--ink); }
.lang-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang-list { position: absolute; right: 0; top: 44px; z-index: 5; margin: 0; padding: 4px; list-style: none; min-width: 168px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.lang-list a { display: block; padding: 6px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; }
.lang-list a:hover { background: var(--raised); }
.lang-list a[aria-current] { color: var(--mark); font-weight: 600; }
.w-who { height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 150ms var(--ease); }
.w-who:hover { background: var(--raised); }
.w-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* On a phone the brand keeps only its icon; the link keeps the name as its label. */
@media (max-width: 520px) { .brand span { display: none; } }

/* Hero: the text beside the app's "Propose exchange" screen, rising out of a panel */
.hero { display: grid; gap: 40px; padding: 32px 0 48px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; gap: 64px; padding: 32px 0 64px; } }
h1 { margin: 0; font-weight: 800; font-size: 40px; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: break-word; }
@media (min-width: 900px) { h1 { font-size: 56px; letter-spacing: -0.03em; } }
.lede { margin: 20px 0 0; max-width: 32rem; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 360px; margin: 32px 0 0; }
.badge { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 10px; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 150ms var(--ease), transform 120ms var(--ease); }
.badge:active { transform: scale(0.98); }
.badge-store { background: var(--btn); color: var(--btn-ink); }
.badge-store:hover { background: color-mix(in srgb, var(--btn) 85%, var(--bg)); }
.badge-android { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.badge-android:hover { background: var(--raised); }
.badge::before { content: ""; flex: none; background: currentColor; }
.badge-store::before { width: 18px; height: 20px; margin-top: -3px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701'/%3E%3C/svg%3E") center / contain no-repeat; }
.badge-android::before { width: 20px; height: 20px; margin-top: -2px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.6 9.48l1.84-3.18c.16-.31.04-.69-.26-.85a.64.64 0 0 0-.83.22l-1.88 3.24a11.46 11.46 0 0 0-8.94 0L5.65 5.67a.64.64 0 0 0-.87-.2c-.28.18-.37.54-.22.83L6.4 9.48A10.78 10.78 0 0 0 1 18h22a10.78 10.78 0 0 0-5.4-8.52M7 15.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5m10 0a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.6 9.48l1.84-3.18c.16-.31.04-.69-.26-.85a.64.64 0 0 0-.83.22l-1.88 3.24a11.46 11.46 0 0 0-8.94 0L5.65 5.67a.64.64 0 0 0-.87-.2c-.28.18-.37.54-.22.83L6.4 9.48A10.78 10.78 0 0 0 1 18h22a10.78 10.78 0 0 0-5.4-8.52M7 15.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5m10 0a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
/* "Use in browser" in the brand gradient, and the line that says it's free beside it. */
.cta-after { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.cta-main { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity 150ms var(--ease); }
.cta-main:hover { opacity: 0.9; }
.trust { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.tick svg { display: block; width: 16px; height: 16px; fill: none; stroke: var(--mark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The whole phone, down to the screen's own button, on the page itself — no grey panel behind it
   (Roman, 2026-11-16; the step screens below keep theirs). */
.stage { display: flex; justify-content: center; }
.phone { width: 260px; padding: 10px; border-radius: 48px; background: var(--phone); box-shadow: var(--shadow); }
@media (min-width: 521px) { .phone { width: 280px; } }
.phone img { display: block; width: 100%; height: auto; border-radius: 38px; }

/* The three shelves as small tags, in the app's colours */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; vertical-align: 1px; line-height: 1; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.tag-library::before { background: var(--library); }
.tag-swap::before { background: var(--brand-to); }
.tag-wish::before { background: var(--brand-from); }

/* Consoles */
.consoles { padding: 0 0 56px; }
@media (min-width: 900px) { .consoles { padding-bottom: 80px; } }
.consoles h2 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.consoles ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 700px) { .consoles ul { grid-template-columns: repeat(3, 1fr); } }
.consoles li { background: var(--card); padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.consoles li b { font-size: 18px; font-weight: 700; }
.consoles li span { font-size: 14px; color: var(--ink-2); }
.consoles p { margin: 16px 0 0; max-width: 48rem; font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* Steps: the text beside the app screen, alternating sides, numbered 01–03 */
.steps { display: grid; gap: 64px; padding: 56px 0 48px; border-top: 1px solid var(--line); counter-reset: step; }
@media (min-width: 900px) { .steps { gap: 96px; padding: 80px 0 64px; } }
.steps article { display: grid; gap: 32px; align-items: center; counter-increment: step; }
@media (min-width: 900px) {
  .steps article { grid-template-columns: 1fr 1fr; gap: 64px; }
  .steps article:nth-child(even) > div:first-child { order: 2; }
}
.steps article > div:first-child::before { content: counter(step, decimal-leading-zero); display: block; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--mark); font-variant-numeric: tabular-nums; }
.steps h2 { margin: 0; font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
@media (min-width: 900px) { .steps h2 { font-size: 32px; letter-spacing: -0.02em; } }
.steps p { margin: 16px 0 0; max-width: 30rem; color: var(--ink-2); line-height: 1.7; }
.shelf { display: flex; justify-content: center; height: 400px; padding: 40px 24px 0; border-radius: 20px; background: var(--raised); overflow: hidden; }
@media (min-width: 900px) { .shelf { height: 440px; } }
.shot { align-self: flex-start; width: 260px; height: auto; border-radius: 32px; border: 8px solid var(--phone); box-shadow: var(--shadow); }

.more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0 0 56px; }
@media (min-width: 900px) { .more { padding-bottom: 80px; } }
.more a { font-weight: 600; text-decoration: none; }
.more a::after { content: "→"; display: inline-block; margin-left: 6px; color: var(--ink-3); transition: transform 150ms var(--ease); }
.more a:hover::after { transform: translateX(2px); }

/* Swapping safely and the questions */
.safety, .faq { padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .safety, .faq { padding: 80px 0; } }
.safety h2, .faq h2 { margin: 0 0 40px; font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
@media (min-width: 900px) { .safety h2, .faq h2 { font-size: 36px; letter-spacing: -0.02em; } }
.safety ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: tip; }
@media (min-width: 700px) { .safety ol { grid-template-columns: 1fr 1fr; } }
.safety li { counter-increment: tip; padding: 24px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.safety li::before { content: counter(tip, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--mark); font-variant-numeric: tabular-nums; }
.safety b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 700; font-size: 16px; }
.faq dl { margin: 0; display: grid; grid-template-columns: 1fr; }
.faq dt { font-weight: 700; font-size: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.faq dd { margin: 8px 0 0; padding-bottom: 24px; color: var(--ink-2); max-width: 40rem; }
.faq dt:first-child { padding-top: 0; border-top: 0; }
.faq dd:last-child { padding-bottom: 0; }
@media (min-width: 900px) {
  .faq dl { grid-template-columns: 1fr 2fr; column-gap: 32px; }
  .faq dd { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .faq dt:first-child + dd { padding-top: 0; border-top: 0; }
}

/* Footer: the same markup as every page */
.foot { display: grid; gap: 16px 32px; padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
@media (min-width: 700px) { .foot { grid-template-columns: 1fr auto; } .foot nav { grid-row: span 2; } }
.foot nav { display: flex; flex-wrap: wrap; align-content: start; gap: 8px 20px; }
.foot nav a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.foot nav a:hover { color: var(--ink); }
.fine { margin: 0; }
.app-versions { font-variant-numeric: tabular-nums; }

/* One entrance on load */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 480ms var(--ease) both; }
  .hero > *:nth-child(2) { animation-delay: 60ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}

/* ---- Text pages: support, Android, the legal pages, the guide, 404 ---------------------------
   One reading column, left-aligned with the header. Top and bottom padding only: the sides come
   from main's gutter, which a `padding` shorthand here would zero out on a phone. */
.prose { padding-top: 48px; padding-bottom: 80px; }
@media (min-width: 900px) { .prose { padding-top: 64px; } }
.prose > * { max-width: 720px; }
.prose h1 { margin: 0 0 24px; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
@media (min-width: 900px) { .prose h1 { font-size: 44px; letter-spacing: -0.025em; } }
.prose h2 { margin: 48px 0 12px; font-weight: 700; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; scroll-margin-top: 24px; }
.prose h3 { margin: 32px 0 8px; font-weight: 600; font-size: 18px; scroll-margin-top: 24px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 16px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li > ul, .prose li > ol { margin: 8px 0 0; }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.prose a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; transition: text-decoration-color 150ms var(--ease); }
.prose a:hover { text-decoration-color: var(--mark); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.prose .lede { margin: 0 0 24px; max-width: 40rem; }
.prose .updated { margin: -8px 0 32px; font-size: 14px; color: var(--ink-3); }
.prose .fine { margin: 0 0 16px; font-size: 14px; color: var(--ink-3); }

/* The Android page's one button: the download, in the brand gradient. */
.prose > .cta.cta-single { grid-template-columns: 1fr; max-width: 360px; margin: 32px 0 12px; }
.cta-single .cta-main { justify-content: center; height: 48px; padding: 0 20px; font-size: 16px; }
.prose .cta-main, .prose .cta-main:hover { color: #fff; text-decoration: none; }

/* The guide: each section a card, its colour in the app (--accent, set per section) as a dot. */
.guide-points { margin: 0 0 40px; padding-left: 24px; }
.guide-points li { margin: 4px 0; }
.guide-box { margin: 0 0 16px; padding: 24px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.guide-box h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.guide-box h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.guide-box > :last-child { margin-bottom: 0; }

/* ---- Screenshots: the app's screens in phone frames, the website's below them ------------------ */
.shots-page { padding-top: 48px; padding-bottom: 80px; }
@media (min-width: 900px) { .shots-page { padding-top: 64px; } }
.shots-page h1 { margin: 0 0 16px; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
@media (min-width: 900px) { .shots-page h1 { font-size: 44px; letter-spacing: -0.025em; } }
.shots-page .lede { margin: 0 0 40px; }
.shots-page .lede a { color: var(--mark); font-weight: 600; text-decoration: none; }
.shots-page .lede a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }
@media (min-width: 700px) { .shots-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (min-width: 900px) { .shots-grid { grid-template-columns: repeat(4, 1fr); } }
.shots-grid figure { margin: 0; }
.shots-grid img { display: block; width: 100%; height: auto; border-radius: 24px; border: 6px solid var(--phone); background: var(--phone); box-shadow: 0 12px 24px -12px rgba(40, 20, 60, 0.25); }
@media (max-width: 520px) { .shots-grid img { border-width: 4px; border-radius: 20px; } }
.shots-grid figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.shots-h2 { margin: 64px 0 24px; font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
@media (min-width: 900px) { .shots-h2 { font-size: 36px; letter-spacing: -0.02em; } }
.shots-web { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 700px) { .shots-web { grid-template-columns: repeat(2, 1fr); } }
.shots-web img { border: 0; border-radius: 12px; background: var(--raised); box-shadow: 0 0 0 1px var(--line), 0 12px 24px -12px rgba(40, 20, 60, 0.2); }

/* ---- The API's pages: user pages (playsw.app/<username>) and /games ------------------------------
   The markup lives in server/src/publicPageHtml.ts and gamesCatalogueHtml.ts. One reading column. */
.pf-head, .pf-section, .pf-list, .pf-empty, .pf-cta, .pf-note, .gc-filters, .gc-pager { max-width: 720px; }
.pf-head { padding: 48px 0 8px; }
@media (min-width: 900px) { .pf-head { padding-top: 64px; } }
.pf-person { display: flex; align-items: center; gap: 16px; }
.pf-who { min-width: 0; }
.pf-avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 26px; font-weight: 800; }
.pf-name { display: inline; margin: 0; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; overflow-wrap: anywhere; }
.pf-person .pf-name { font-size: clamp(28px, 5vw, 36px); }
.pf-badge { display: inline-block; vertical-align: 6px; margin-left: 12px; padding: 0 10px; height: 24px; line-height: 24px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }
.pf-handle { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pf-meta { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; }
.pf-handle + .pf-meta { margin-top: 4px; }
.pf-section { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 48px 0 0; }
.pf-section h2 { margin: 0; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.pf-count { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-list { margin: 12px 0 0; padding: 0 16px; list-style: none; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pf-list li { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; }
.pf-list li + li { border-top: 1px solid var(--line); }
/* Both the real cover and the letter placeholder for a game with no artwork. */
.pf-cover { flex: none; display: grid; place-items: center; width: 52px; height: 69px; border-radius: 6px; object-fit: cover; background: var(--raised); color: var(--ink-3); font-size: 18px; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.pf-title { flex: 1; min-width: 0; }
.pf-title b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.pf-title span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.gc-terms { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 8px; }
.pf-title .pf-cap { display: inline-block; margin: 0; padding: 2px 8px; border-radius: 6px; background: var(--raised); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pf-title .gc-copies { display: inline; margin: 0; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.pf-empty { margin: 12px 0 0; padding: 24px; border-radius: 16px; background: var(--raised); color: var(--ink-2); }
/* "Open in PlayShare Swap" on a user page (a label until the open host exists), the App Store on /games. */
.pf-cta { margin: 40px 0 0; }
.pf-cta .badge { display: inline-flex; width: 100%; max-width: 360px; }
.pf-cta .badge:not(.badge-store) { background: var(--brand); color: #fff; }
.pf-cta .badge:not(.badge-store)::before { content: none; }
.pf-note { margin: 40px 0 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }

/* /games: a plain GET form (country, city, console, search) and a pager. */
.gc-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; margin: 32px 0 0; }
.gc-field { display: block; min-width: 0; }
.gc-field span { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.gc-filters select, .gc-filters input, .gc-filters button { width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--raised); color: var(--ink); font: inherit; font-size: 16px; /* below 16px iOS Safari zooms on focus */ }
.gc-filters select:disabled { color: var(--ink-3); }
.gc-filters button { background: var(--btn); color: var(--btn-ink); font-weight: 600; cursor: pointer; transition: background-color 150ms var(--ease); }
.gc-filters button:hover { background: color-mix(in srgb, var(--btn) 85%, var(--bg)); }
.gc-pager { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0 0; font-weight: 600; }
.gc-pager a { color: var(--ink); text-decoration: none; }
.gc-pager a:hover { color: var(--mark); }
.gc-pager .gc-next { margin-left: auto; }

/* ---- /stats (server/src/statsPageHtml.ts): four figures, then ranked lists with thin bars -------- */
.stats { padding-top: 48px; padding-bottom: 80px; }
@media (min-width: 900px) { .stats { padding-top: 64px; } }
.stats > * { max-width: 720px; }
.stats h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
@media (min-width: 900px) { .stats h1 { font-size: 44px; letter-spacing: -0.025em; } }
.stats .sub { margin: 0 0 32px; color: var(--ink-3); font-size: 14px; }
.stats .tiles { margin: 0 0 48px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .stats .tiles { grid-template-columns: repeat(4, 1fr); } }
.stats .tiles li { padding: 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.stats .tiles b { display: block; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats .tiles span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.stats h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.stats .rows { margin: 0 0 40px; padding: 0; list-style: none; display: grid; gap: 4px; }
.stats .rows li { position: relative; isolation: isolate; display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-radius: 10px; overflow: hidden; font-size: 15px; }
.stats .rows li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--share); background: var(--raised); z-index: -1; }
.stats .rows li b { font-weight: 600; }
.stats .rows li span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stats .note { margin: 0; color: var(--ink-3); font-size: 14px; }
