
  /* Layout: sticky top bar; views swapped by the hash; home = main column + slim character rail (a strip on phones). */
  /* Always the dark blue look, whatever the browser's light/dark setting (owner's request, 22 Nov 2026). */
  :root {
    --bg: #0d131c;
    --bar: #141c27;
    --surface: #141c27;
    --surface-2: #1c2633;
    --fg: #e8eef6;
    --muted: #a9b6c6;
    --line: #253141;
    --accent: #6ea2ff;
    --accent-ink: #08111f;
    --accent-soft: #16264a;
    --buff: #5ccb8d;
    --buff-soft: #183224;
    --nerf: #f27b6f;
    --nerf-soft: #3b1d19;
    --neutral: #b3a4ff;
    --neutral-soft: #252040;
    --mark: #f5c84c;
    --mark-ink: #1a140c;
    --qr-bg: #ffffff;
    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --radius: 14px;
    color-scheme: dark;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0d131c; --bar: #141c27; --surface: #141c27; --surface-2: #1c2633; --fg: #e8eef6; --muted: #a9b6c6;
      --line: #253141; --accent: #6ea2ff; --accent-ink: #08111f; --accent-soft: #16264a;
      --buff: #5ccb8d; --buff-soft: #183224; --nerf: #f27b6f; --nerf-soft: #3b1d19;
      --neutral: #b3a4ff; --neutral-soft: #252040; --mark: #f5c84c; --mark-ink: #1a140c;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0d131c; --bar: #141c27; --surface: #141c27; --surface-2: #1c2633; --fg: #e8eef6; --muted: #a9b6c6;
    --line: #253141; --accent: #6ea2ff; --accent-ink: #08111f; --accent-soft: #16264a;
    --buff: #5ccb8d; --buff-soft: #183224; --nerf: #f27b6f; --nerf-soft: #3b1d19;
    --neutral: #b3a4ff; --neutral-soft: #252040; --mark: #f5c84c; --mark-ink: #1a140c;
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bar); }
  h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; letter-spacing: -0.01em; }
  /* One main title per page: only the home view uses h1; the other app views use h2.h1, which looks the same. */
  h2.h1 { font-size: 2em; margin: .67em 0; font-weight: 700; }
  a { color: var(--accent); }
  button, input, select { font: inherit; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

  /* Top bar */
  .topbar { background: var(--bar); border-bottom: 1px solid var(--line); }
  .topbar-inner, .wrap {
    max-width: 1060px; margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .topbar-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 10px; }
  .logo { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 8px; margin-right: auto; }
  .logo-mark { width: 28px; height: 28px; display: grid; place-items: center; flex: none; }
  .logo-svg { width: 100%; height: 100%; display: block; }
  .lm-bg { fill: var(--accent); }
  .lm-up { fill: var(--accent-ink); stroke: var(--accent-ink); }
  .lm-down { fill: color-mix(in srgb, var(--accent-ink) 58%, var(--accent)); stroke: color-mix(in srgb, var(--accent-ink) 58%, var(--accent)); }
  .nav { display: flex; gap: 4px; flex-wrap: wrap; }
  .nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; padding: 6px 10px; border-radius: 8px; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
  .preview-band { background: var(--accent-soft); color: var(--fg); font-size: .82rem; text-align: center; padding-block: 6px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

  main.wrap { padding-block: 24px 56px; }
  /* Links to a section stop below the frozen header, not under it */
  .section-h, .sub-h, [id^="s"] { scroll-margin-top: 150px; }
  @media (max-width: 640px) { .section-h, .sub-h, [id^="s"] { scroll-margin-top: 96px; } }
  .view { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
  .view.narrow { max-width: 820px; margin: 0 auto; }

  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
  .eyebrow { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
  .muted { color: var(--muted); }
  .label { font-weight: 700; margin: 0 0 10px; }
  .label span { color: var(--muted); font-weight: 500; }
  .btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
  .btn:hover { border-color: var(--accent); }
  .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .btn.small { padding: 5px 10px; font-size: .84rem; }
  .btn.link { border: 0; background: none; padding: 0; color: var(--accent); }
  .btn:disabled { opacity: .5; cursor: not-allowed; }
  .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

  /* Home */
  /* ---------- Home: pick your game ---------- */
  .hub-hero { display: grid; gap: 6px; justify-items: center; text-align: center; padding-block: 18px 6px; position: relative; }
  .hub-hero::before { content: ""; position: absolute; inset: -40px 10% auto; height: 220px; z-index: -1; pointer-events: none;
    background: radial-gradient(50% 60% at 50% 40%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
  .hub-hero h1, .hub-hero .h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; font-weight: 800; letter-spacing: -.01em; }
  .hub-hero p { margin: 0; font-size: 1.1rem; color: var(--muted); font-weight: 600; }
  .hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
  .gcard { --gc: #555; position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-align: left; font: inherit; cursor: pointer; padding: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
  .gcard:hover, .gcard:focus-visible { transform: translateY(-3px); border-color: var(--gc); box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--gc) 70%, black); }
  .gc-art { position: relative; height: 128px; overflow: hidden; display: flex; align-items: flex-end; padding: 14px 16px;
    background: radial-gradient(70% 90% at 85% 10%, color-mix(in srgb, var(--gc) 55%, white 10%), transparent 70%),
                linear-gradient(135deg, color-mix(in srgb, var(--gc) 92%, black), color-mix(in srgb, var(--gc) 60%, black)); }
  .gc-art::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.2px); background-size: 14px 14px; mask-image: linear-gradient(to left, #000, transparent 80%); -webkit-mask-image: linear-gradient(to left, #000, transparent 80%); }
  .gcard.has-art .gc-art { background: linear-gradient(to top, color-mix(in srgb, var(--gc) 55%, black) 0%, transparent 70%), var(--art) var(--art-pos, center) / cover no-repeat, var(--gc); }
  .gcard.has-art .gc-art::after, .gcard.has-art .gc-big { display: none; }
  .gc-big { position: absolute; right: -6px; bottom: -22px; font-family: var(--font-display); font-weight: 800; font-size: 6.2rem; line-height: 1; color: rgba(255,255,255,.13); letter-spacing: -.03em; pointer-events: none; }
  .gc-name { position: relative; z-index: 1; margin: 0; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.05; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
  .gc-tags { position: absolute; top: 12px; left: 14px; right: 14px; z-index: 1; display: flex; justify-content: space-between; gap: 6px; }
  .gc-tag { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.22); border-radius: 7px; padding: 3px 7px; backdrop-filter: blur(4px); }
  .gc-tag.new { background: var(--nerf); border-color: transparent; }
  .gc-body { display: grid; gap: 10px; padding: 14px 16px 16px; align-content: start; }
  .gc-patch { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .gc-patch .ver { flex: 0 0 auto; }
  .gc-patch b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .gc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .86rem; }
  .gc-meta strong { color: var(--fg); }
  .gc-up { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .gc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .gc-chars { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; min-width: 0; }
  .gc-go { font-family: var(--font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
  .gcard.soon { cursor: default; opacity: .7; }
  .gcard.soon:hover { transform: none; box-shadow: none; }
  .gc-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
  @media (max-width: 640px) {
    .hub-hero { padding-block: 6px 0; }
    .hub-hero h1, .hub-hero .h1 { font-size: 2.1rem; }
    .hub-hero p { font-size: 1rem; }
    .hub-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gcard { border-radius: 16px; }
    .gc-art { height: 92px; padding: 10px 12px; }
    .gc-big { font-size: 3.6rem; bottom: -12px; }
    .gc-name { font-size: 1.02rem; }
    .gc-tags { top: 8px; left: 10px; right: 10px; }
    .gc-tag { font-size: .58rem; padding: 2px 5px; }
    .gc-body { padding: 10px 12px 12px; gap: 6px; }
    .gc-patch, .gc-chars { display: none; }
    .gc-meta { font-size: .76rem; gap: 2px 10px; }
    .gc-foot { padding-top: 8px; justify-content: flex-end; }
  }
  .patch-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0 0; border-top: 1px solid var(--line); margin-top: 6px; font-size: .92rem; }
  .patch-foot #patch-game { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  #output { scroll-margin-top: 120px; }
  .ver-badge { display: inline-block; vertical-align: 3px; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; font-family: var(--font-body); letter-spacing: 0; white-space: nowrap; }
  .ver-badge.live { background: var(--buff-soft); color: var(--buff); }
  /* "Live": a green dot that glows slowly, like a status light. */
  .live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; vertical-align: 1px; border-radius: 50%; background: var(--buff); animation: livepulse 2.4s ease-in-out infinite; }
  @keyframes livepulse { 0%, 100% { opacity: .55; box-shadow: 0 0 0 0 var(--buff); } 50% { opacity: 1; box-shadow: 0 0 8px 2px var(--buff); } }
  /* New patches since your last look at the Patches page: a red dot on the tab. */
  .nav-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; vertical-align: 2px; border-radius: 50%; background: var(--nerf); animation: navblink 1.6s ease-in-out infinite; }
  @keyframes navblink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
  @media (prefers-reduced-motion: reduce) { .live-dot, .nav-dot { animation: none; } }
  .ver-badge.prev { background: var(--surface-2); color: var(--muted); }
  .old-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; }
  .last-change { margin: 10px 0 0; font-weight: 600; }
  .share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
  .share-row .btn { gap: 8px; }
  .share-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .tr-send { margin-bottom: 10px; }
  .phone-offer { margin-top: 8px; }
  .tr-h { margin: 0; font-weight: 800; font-family: var(--font-display); font-size: 1rem; }
  .tr-recv { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .track-box { display: grid; gap: 8px; justify-items: start; }
  .track-box .btn.primary { font-size: 1rem; padding: 11px 18px; }
  .track-box .track-sub { margin: 0; color: var(--muted); font-size: .9rem; }
  .track-box form { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .track-box .field { flex: 1 1 200px; min-width: 0; }
  .saved-note { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--buff-soft); color: var(--fg); font-weight: 600; font-size: .92rem; }
  .hub-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0 0; }
  .hub-ctas .btn { padding: 11px 18px; font-size: .98rem; }
  .linkish { background: none; border: 0; padding: 4px 2px; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .linkish:hover { text-decoration-thickness: 2px; }
  .req-mark { color: var(--nerf) !important; font-weight: 700; font-size: .78em; }
  .opt-mark { color: var(--muted); font-weight: 500; font-size: .78em; }
  .form-err { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--nerf-soft); color: var(--nerf); font-weight: 600; }
  .hub-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; }
  .hub-grid.one { grid-template-columns: minmax(0, 520px); justify-content: center; }
  .hub-pick { display: grid; gap: 10px; scroll-margin-top: 140px; }
  .hub-grid.flash { animation: hubflash 1.2s ease; border-radius: 22px; }
  @keyframes hubflash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); } }
  .gc-moves { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
  .mv { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 7px; }
  .mv.buff { color: var(--buff); background: var(--buff-soft); }
  #patch-game { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  #patch-game .game-page-link, #view-patches .game-page-link { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; white-space: normal; min-width: 0; overflow-wrap: anywhere; padding: 8px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); text-decoration: none; }
  #patch-game .game-page-link:hover, #view-patches .game-page-link:hover { background: var(--accent); color: var(--accent-ink); text-decoration: none; }
  /* Under the result it's a plain link: the character comes first (UX audit, 22 Nov 2026). */
  .patch-foot #patch-game .game-page-link { background: none; border: 0; padding: 0; color: var(--accent); }
  .patch-foot #patch-game .game-page-link:hover { background: none; color: var(--accent); text-decoration: underline; }
  #patch-game .game-page-link::before, #view-patches .game-page-link::before { content: "\2261"; font-size: 1.1rem; line-height: 1; }
  .mv.nerf { color: var(--nerf); background: var(--nerf-soft); }
  @media (max-width: 640px) { .mv { font-size: .72rem; padding: 1px 6px; } .gc-moves .mv:nth-child(n+3) { display: none; } }
  .hchip .cc-tag { margin-left: 2px; font-family: inherit; font-size: .8rem; letter-spacing: 0; text-transform: none; padding: 3px 9px; }
  .hchip .cc-tag:not(.good):not(.bad):not(.mixed) { color: var(--fg); }
  /* ---------- Release notes: banner + side panel ---------- */
  .rel-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 10px 10px 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 12px; background: var(--accent-soft); color: var(--fg); font-weight: 600; font-size: .92rem; }
  .rel-item-h { margin: 10px 0 2px; font-weight: 700; }
  .rel-new-dot { display: inline-block; width: 7px; height: 7px; margin-left: 5px; vertical-align: 2px; border-radius: 50%; background: var(--accent); }
  .rel-banner .rel-text { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 8px; }
  .rel-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
  .icon-x { flex: 0 0 auto; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer; }
  .icon-x:hover, .icon-x:focus-visible { color: var(--fg); border-color: var(--line); background: var(--surface); }
  .rel-back { position: fixed; inset: 0; z-index: 30; background: rgba(10, 8, 6, .45); animation: relfade .2s ease; }
  .rel-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(420px, 100%); display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); color: var(--fg); border-left: 1px solid var(--line); box-shadow: -18px 0 40px -24px rgba(0,0,0,.5); animation: relslide .25s ease;
    padding: calc(14px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) 18px; }
  .rel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .rel-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
  .rel-list { overflow-y: auto; display: grid; gap: 18px; align-content: start; padding-block: 16px; min-height: 0; }
  .rel-item h3 { margin: 2px 0 6px; font-size: 1.02rem; }
  .rel-item time { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .rel-item ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
  .rel-foot { padding-top: 12px; border-top: 1px solid var(--line); }
  @keyframes relslide { from { transform: translateX(100%); } to { transform: none; } }
  @keyframes relfade { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .rel-drawer, .rel-back, .hub-grid.flash { animation: none; } }
  .hub-chars { display: grid; gap: 8px; }
  .hub-label { margin: 0; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .hub-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .hchip { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; }
  .hchip:hover { border-color: var(--accent); }
  .hchip .emblem { min-width: 34px; height: 28px; font-size: .7rem; }
  .hchip small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
  /* Quick actions on the home character chips: hover on a computer, "⋯" on a phone. */
  .hc-wrap { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
  .hc-more { display: none; position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); padding: 0; cursor: pointer; align-items: center; justify-content: center; }
  .hc-more svg, .hc-act svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
  .hc-more svg { fill: currentColor; stroke: none; }
  .hc-acts { display: none; gap: 2px; }
  .hc-act { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--fg); font: inherit; font-size: .8rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
  .hc-act:hover { background: var(--surface); border-color: var(--line); }
  .hc-act.danger { color: var(--nerf); }
  /* Computer: hovering the chip swaps its patch result for three icons. */
  @media (hover: hover) {
    .hc-acts { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
    .hc-wrap:hover .hc-acts, .hc-wrap:focus-within .hc-acts { display: flex; }
    .hc-wrap:hover .cc-tag, .hc-wrap:focus-within .cc-tag { visibility: hidden; }
    .hc-act span { display: none; }
    .hc-act[data-armed] span { display: inline; }
  }
  /* Phone: a "⋯" button on the chip opens a row of actions under it. */
  @media (hover: none) {
    .hc-more { display: inline-flex; top: 27px; }
    .hc-wrap { max-width: 100%; }
    .hchip { padding-right: 46px; min-width: 0; max-width: 100%; }
    .hchip > span:not(.cc-tag) { min-width: 0; overflow: hidden; }
    .hchip > span:not(.cc-tag), .hchip > span:not(.cc-tag) small { text-overflow: ellipsis; white-space: nowrap; }
    .hc-wrap.open .hc-acts { display: flex; }
    .hc-wrap.open .hc-more { background: var(--accent-soft); border-color: var(--accent); }
  }
  .hchip.add { border-style: dashed; color: var(--accent); padding: 6px 14px; }
  .home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; align-items: start; }
  .home-main { display: grid; gap: 16px; min-width: 0; }
  .side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 70px); display: grid; gap: 6px; min-width: 0; }
  .side-list { display: grid; gap: 4px; max-height: 60vh; overflow-y: auto; }
  .side-item { cursor: pointer; text-align: left; border: 1px solid transparent; background: none; color: var(--fg); padding: 7px 10px; border-radius: 10px; display: grid; gap: 0; min-width: 0; }
  .side-item:hover { background: var(--surface-2); }
  .side-item[aria-pressed="true"] { background: var(--surface); border-color: var(--accent); }
  .side-item b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-item span { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-new { font-size: .84rem; font-weight: 600; padding: 6px 10px; text-decoration: none; }
  @media (max-width: 820px) {
    .home-grid { grid-template-columns: 1fr; }
    .side { position: static; order: -1; }
    .side-list { display: flex; overflow-x: auto; max-height: none; padding-bottom: 4px; }
    .side-item { flex: 0 0 auto; max-width: 180px; border-color: var(--line); background: var(--surface); }
    .side-row { display: flex; align-items: center; gap: 8px; }
  }
  .hero { display: grid; gap: 10px; }
  .hero h1, .hero .h1 { font-size: clamp(1.9rem, 5.5vw, 2.7rem); line-height: 1.06; margin: 0; font-weight: 800; }
  .hero p { margin: 0; font-size: 1.05rem; color: var(--muted); }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  @media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
  .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; align-content: start; }
  .step b { font-family: var(--font-display); font-size: 1.02rem; }
  .step .n { font-family: var(--font-mono); color: var(--accent); font-weight: 700; font-size: .78rem; }
  .step.now { border: 2px solid var(--accent); padding: 13px; background: var(--accent-soft); }
  .step.done { opacity: .6; }
  #latest-title { scroll-margin-top: 90px; }
  .step.done .n::after { content: " \2713"; }
  .game-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px; }
  .game-pick .gtab { width: 100%; padding: 8px 12px 8px 8px; }
  .game-pick .gt-full { display: inline !important; }
  .game-pick .gt-short { display: none !important; }
  .step p { margin: 0; color: var(--muted); font-size: .92rem; }
  .section-h { margin: 6px 0 0; font-size: 1.15rem; }
  .launch { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
  .count { font-family: var(--font-mono); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
  .count small { font-size: .78rem; display: block; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
  .launch-text { flex: 1 1 240px; min-width: 0; }
  .launch-text p { margin: 0; color: var(--muted); }
  .game-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
  .game-head b { font-family: var(--font-display); font-size: 1.1rem; }
  .game-head .ver { font-family: var(--font-mono); font-weight: 700; font-size: .9rem; }
  .game-head .muted { font-size: .86rem; }
  .vrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .vrow .info { flex: 1 1 200px; min-width: 0; }
  .vrow .info b { display: block; }
  .vrow .info span { color: var(--muted); font-size: .86rem; }
  .vpill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
  .vpill.good { background: var(--buff-soft); color: var(--buff); }
  .vpill.bad { background: var(--nerf-soft); color: var(--nerf); }
  .vpill.mixed { background: var(--accent-soft); color: var(--accent); }
  .more-games { color: var(--muted); font-size: .86rem; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
  .sel-verdict { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 2px; }
  .sel-verdict b { font-family: var(--font-display); font-size: 1.25rem; }

  /* Patch list */
  .patch-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .patch-item:last-child { border-bottom: 0; }
  .patch-item .ver { font-family: var(--font-mono); font-weight: 700; min-width: 64px; }
  .patch-item .info { flex: 1 1 220px; min-width: 0; }
  .patch-item .info b { display: block; }
  .patch-item .info span { color: var(--muted); font-size: .9rem; }
  .pill { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
  .pill.soon { background: var(--accent-soft); color: var(--accent); }
  .pill.later { background: var(--surface-2); color: var(--muted); }

  /* Character editor */
  .editor { display: grid; gap: 14px; }
  .group { display: grid; gap: 8px; }
  .group-label { font-weight: 700; font-size: .9rem; }
  .group-label span { color: var(--muted); font-weight: 500; }
  .group-label span:has(> .req-mark), .group-label span:has(> .opt-mark) { color: var(--fg); font-weight: 700; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip { cursor: pointer; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 6px 12px; border-radius: 999px; font-size: .9rem; }
  .chip:hover { border-color: var(--accent); }
  .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
  .skill-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .88rem; }
  .skill-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 6px; border-radius: 999px; }
  .skill-chip button:hover { color: var(--fg); background: var(--surface); }
  .field { flex: 1 1 200px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); }
  .details-more > summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 4px 0; }
  .details-more[open] > summary { margin-bottom: 10px; }
  .details-more .editor { gap: 14px; }

  /* Characters */
  .chars { display: flex; gap: 8px; flex-wrap: wrap; }
  .char { cursor: pointer; text-align: left; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 8px 12px; border-radius: 12px; display: grid; gap: 1px; min-width: 0; max-width: 100%; }
  .char:hover { border-color: var(--accent); }
  .char[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
  .char b { font-size: .95rem; }
  .char span { font-size: .8rem; color: var(--muted); }
  .save-box { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
  .banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; }
  .banner p { margin: 0; flex: 1 1 220px; min-width: 0; }
  /* ---------- Character cards ---------- */
  #view-characters > .card:not(.cc-transfer) { max-width: 820px; }
  .ccard.has-art .cc-kicker { color: var(--muted); }
  .ccard.has-art .cc-score { color: var(--fg); }
  .cc-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .cc-search, .cc-sort { position: relative; display: flex; align-items: center; min-width: 0; }
  .cc-search { flex: 1 1 260px; max-width: 420px; }
  .cc-search svg, .cc-sort svg { position: absolute; left: 11px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
  .cc-search .field, .cc-sort .field { padding-left: 36px; width: 100%; }
  .cc-sort .field { width: auto; font-weight: 600; }
  .cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: start; }
  .ccard[aria-pressed] { cursor: pointer; }
  .ccard.picked { outline: 2px solid var(--accent); outline-offset: 2px; }
  .ccard.picked::after { content: "✓"; position: absolute; top: 46px; right: 12px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink, #fff); font-weight: 800; font-size: 14px; }
  .tr-pick { margin: 0; font-size: 13px; color: var(--muted); }
  .tr-pick.on { color: var(--fg); font-weight: 600; }
  .ccard { --h: 20; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
  .ccard:hover { border-color: hsl(var(--h) 45% 50%); transform: translateY(-2px); box-shadow: 0 14px 30px -18px hsl(var(--h) 50% 30% / .55); }
  .ccard.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  .cc-top { position: absolute; inset: 12px 12px auto; display: flex; justify-content: space-between; gap: 8px; z-index: 2; }
  .cc-tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); white-space: nowrap; }
  .cc-tag.good { color: var(--buff); border-color: var(--buff); background: var(--buff-soft); }
  .cc-tag.bad { color: var(--nerf); border-color: var(--nerf); background: var(--nerf-soft); }
  .cc-tag.mixed { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
  .cc-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .cc-visual { position: relative; height: 168px; display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(60% 70% at 50% 55%, hsl(var(--h) 55% 50% / .22), transparent 70%), var(--surface-2); }
  .cc-water { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 9vw, 3.4rem); letter-spacing: .04em; text-transform: uppercase; color: hsl(var(--h) 40% 45% / .1); white-space: nowrap; pointer-events: none; }
  .cc-sigil { position: relative; z-index: 1; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; background: linear-gradient(145deg, hsl(var(--h) 50% 48%), hsl(var(--h) 55% 32%)); box-shadow: 0 16px 30px -12px hsl(var(--h) 60% 25% / .7), inset 0 0 0 1px rgba(255,255,255,.18); transform: translateY(-6px); }
  .cc-pedestal { position: absolute; bottom: 22px; left: 50%; width: 150px; height: 26px; margin-left: -75px; border-radius: 50%; border: 1px solid hsl(var(--h) 50% 45% / .35); background: radial-gradient(closest-side, hsl(var(--h) 55% 45% / .22), transparent); }
  .cc-body { display: grid; gap: 10px; padding: 14px 16px 12px; min-width: 0; }
  .cc-kicker { margin: 0; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--h) 45% 40%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cc-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
  .cc-title h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cc-score { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: hsl(var(--h) 45% 38%); white-space: nowrap; }
  .cc-score small { font-family: var(--font-body, inherit); font-size: .7rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
  .cc-meter { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
  .cc-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, hsl(var(--h) 50% 45%), hsl(var(--h) 55% 58%)); }
  .cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .cc-stat { border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; display: grid; gap: 5px; }
  .cc-stat .top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .76rem; font-weight: 700; }
  .cc-stat .bar { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
  .cc-stat .bar span { display: block; height: 100%; border-radius: inherit; }
  .cc-stat.b .top { color: var(--buff); } .cc-stat.b .bar span { background: var(--buff); }
  .cc-stat.n .top { color: var(--nerf); } .cc-stat.n .bar span { background: var(--nerf); }
  .cc-stat.o .top { color: var(--muted); } .cc-stat.o .bar span { background: var(--neutral); }
  .cc-sep { height: 1px; background: var(--line); }
  .cc-label { margin: 0; font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .cc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .cc-chips span { font-size: .76rem; font-weight: 600; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); }
  .cc-chips .none { color: var(--muted); font-weight: 500; border-style: dashed; background: none; }
  .cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .cc-status { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--buff); color: var(--buff); background: var(--buff-soft); }
  .cc-date { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); }
  .cc-date svg, .cc-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cc-actions { display: flex; border-top: 1px solid var(--line); }
  .cc-go { flex: 1 1 auto; border: 0; background: none; color: var(--fg); font: inherit; font-family: var(--font-mono); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 13px; cursor: pointer; }
  .cc-go:hover { background: var(--accent-soft); color: var(--accent); }
  .cc-icon { flex: 0 0 46px; display: grid; place-items: center; border: 0; border-left: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
  .cc-icon:hover { color: var(--fg); background: var(--surface-2); }
  .cc-icon.armed.ok { background: var(--buff); }
  a.cc-icon { text-decoration: none; }
  .cc-icon.armed { color: #fff; background: var(--nerf); flex-basis: auto; padding: 0 12px; font-size: .78rem; font-weight: 700; }
  .cc-edit { grid-column: 1 / -1; }
  /* Official icons */
  .gi { flex: none; width: 20px; height: 20px; border-radius: 5px; object-fit: cover; vertical-align: middle; background: var(--surface-2); }
  .gi.sm { width: 22px; height: 22px; }
  .gi.hicon { width: 30px; height: 30px; border-radius: 8px; }
  .gi-strip { display: inline-flex; gap: 3px; margin-right: 6px; flex: none; align-self: center; }
  .gi.wide { width: auto; max-width: 56px; object-fit: contain; background: none; border-radius: 0; }
  .gi-strip .gi { width: 22px; height: 22px; }
  .suggest-item { display: flex; align-items: center; gap: 8px; }
  .cc-sigil.has-icon { padding: 0; overflow: hidden; }
  .cc-sigil.has-icon .gi { width: 100%; height: 100%; border-radius: inherit; background: none; }
  /* Feedback: "was this useful?" and "found a mistake?" */
  .fb-line { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 14px 0 4px; color: var(--muted); font-size: .92rem; }
  .fb-btn { display: inline-grid; place-items: center; width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 1.05rem; cursor: pointer; }
  .fb-btn:hover { border-color: var(--accent); }
  .fb-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
  .fb-thanks { font-weight: 600; color: var(--fg); }
  .fb-report { display: inline-block; margin-top: 6px; font-size: .78rem; color: var(--muted); }
  .fb-report:hover { color: var(--accent); }
  /* Compact character cards */
  .cc-visual { height: 116px; }
  .cc-sigil { width: 62px; height: 62px; border-radius: 20px; font-size: 1.15rem; }
  .cc-body { gap: 8px; padding: 12px 14px 12px; }
  .cc-counts { display: flex; gap: 6px; flex-wrap: wrap; }
  .cc-count { font-family: var(--font-mono); font-size: .76rem; font-weight: 700; padding: 2px 8px; border-radius: 7px; }
  .cc-count.b { color: var(--buff); background: var(--buff-soft); }
  .cc-count.n { color: var(--nerf); background: var(--nerf-soft); }
  .cc-count.o { color: var(--neutral); background: var(--neutral-soft); }
  .cc-count.zero { opacity: .45; }
  .cc-go { padding: 11px; }
  @media (max-width: 640px) {
    .cc-grid { gap: 12px; }
    .cc-visual { height: 92px !important; }
    .cc-sigil { width: 50px !important; height: 50px !important; border-radius: 16px !important; font-size: 1rem !important; }
    .cc-title h3 { font-size: 1.12rem; }
  }
  /* Characters page, in the style of the home page */
  .cc-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .cc-fchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
  .cc-fchip.all { padding-left: 14px; }
  .cc-fchip:hover { border-color: var(--accent); }
  .cc-fchip[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
  .cc-fchip .emblem { min-width: 34px; height: 26px; font-size: .68rem; }
  .cc-fchip .n { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
  .ccard.has-art .cc-visual { background: linear-gradient(to top, color-mix(in srgb, var(--gc) 60%, black) 0%, transparent 80%), var(--art) var(--art-pos, center) / cover no-repeat, var(--gc); }
  .ccard.has-art .cc-water, .ccard.has-art .cc-pedestal { display: none; }
  .ccard.has-art .cc-sigil { background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 16px 30px -12px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.4); transform: none; }
  .ccard.has-art:hover { border-color: var(--gc); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--gc) 70%, black); }
  .ccard.has-art .cc-top .cc-tag.game { color: #fff; background: rgba(0,0,0,.32); border-color: rgba(255,255,255,.25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .ccard.has-art .cc-top .cc-tag:not(.game):not(.good):not(.bad):not(.mixed) { color: #fff; background: rgba(0,0,0,.32); border-color: rgba(255,255,255,.25); }
  .cc-transfer summary { cursor: pointer; list-style: none; display: grid; gap: 2px; padding-right: 28px; position: relative; }
  .cc-transfer summary::-webkit-details-marker { display: none; }
  .cc-transfer summary::after { content: "⌄"; position: absolute; right: 2px; top: 0; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
  .cc-transfer[open] summary::after { transform: rotate(180deg); }
  .cc-transfer[open] summary { margin-bottom: 14px; }
  .cc-tr-title { font-weight: 800; font-family: var(--font-display); font-size: 1.05rem; }
  .cc-transfer summary .muted { font-size: .88rem; }
  .cc-art-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; width: 100%; max-width: 760px; }
  .cc-art { position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: 6px 8px; border: 0; border-radius: 10px; cursor: pointer; text-align: left; font: inherit;
    background: linear-gradient(to top, rgba(0,0,0,.72), transparent 70%), var(--art) var(--art-pos, center) / cover no-repeat, var(--gc); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .15s, box-shadow .15s; }
  .cc-art:hover, .cc-art:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--gc), 0 10px 20px -12px rgba(0,0,0,.6); }
  .cc-art-name { color: #fff; font-weight: 800; font-size: .8rem; line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
  @media (max-width: 640px) { .cc-art-row { grid-template-columns: repeat(3, 1fr); } }
  .cc-new-games { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  @media (max-width: 640px) { .cc-visual { height: 132px; } .cc-sigil { width: 68px; height: 68px; border-radius: 22px; font-size: 1.25rem; } .cc-search { flex-basis: 100%; max-width: none; } }
  .cc-end { text-align: center; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
  .cc-empty { text-align: center; display: grid; gap: 10px; justify-items: center; padding-block: 28px; }
  .cc-empty-t { margin: 8px 0 0; font-family: var(--font-display); font-size: 1.4rem; }
  .cc-empty .muted { margin: 0; max-width: 46ch; }
  .char-row { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
  .char-row:last-child { border-bottom: 0; }
  .char-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .char-top .info { flex: 1 1 220px; min-width: 0; }
  .char-top .info b { display: block; font-size: 1.02rem; }
  .char-top .info span { color: var(--muted); font-size: .88rem; }
  .linkbox { font-family: var(--font-mono); font-size: .8rem; background: var(--surface-2); border-radius: 8px; padding: 6px 10px; overflow-x: auto; white-space: nowrap; max-width: 100%; margin-top: 6px; }
  .edit-panel { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 14px; }
  .transfer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
  @media (max-width: 600px) { .transfer { grid-template-columns: 1fr; } }
  .qr { background: var(--qr-bg); padding: 10px; border-radius: 12px; width: 180px; height: 180px; display: grid; place-items: center; border: 1px solid var(--line); }
  .qr img, .qr canvas { display: block; max-width: 100%; }
  .code-out { font-family: var(--font-mono); font-size: .8rem; word-break: break-all; white-space: pre-wrap; max-height: 9em; overflow-y: auto; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin: 0; }
  .toast { font-size: .85rem; color: var(--buff); font-weight: 600; min-height: 1.2em; }
  .toast.err { color: var(--nerf); }

  /* Results */
  .see-all { justify-self: start; }
  .suggest-wrap { position: relative; flex: 1 1 200px; min-width: 0; }
  .suggest-wrap .field { width: 100%; }
  .suggest-wrap.open .field { border-color: var(--accent); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .suggest-wrap.open .field:focus-visible { outline: none; }
  .suggest-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: -1px; background: var(--surface); border: 1px solid var(--accent); border-top-color: var(--line); border-radius: 0 0 12px 12px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.35); max-height: 264px; overflow-y: auto; padding: 4px; }
  .suggest-item { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--fg); font: inherit; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
  .suggest-item:hover, .suggest-item[aria-selected="true"] { background: var(--accent-soft); }
  .suggest-item mark { background: none; color: var(--accent); font-weight: 700; padding: 0; }
  .other-char { margin-top: 10px; }
  .other-char:empty { display: none; }
  .new-pill { display: inline-block; font-family: var(--font-mono); font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--nerf); border-radius: 999px; padding: 2px 6px; line-height: 1.3; vertical-align: middle; }
  .gtab .new-pill { position: absolute; top: -7px; right: -4px; box-shadow: 0 0 0 2px var(--surface); }
  .gtab { position: relative; }
  .game-tabs { padding-top: 12px; }
  .verdict { border-width: 2px; }
  .verdict.good { border-color: var(--buff); background: var(--buff-soft); }
  .verdict.bad { border-color: var(--nerf); background: var(--nerf-soft); }
  .verdict.mixed { border-color: var(--accent); background: var(--accent-soft); }
  .verdict .head { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
  .verdict .tldr { margin: 0; font-size: 1.04rem; }
  .verdict .counts { margin: 10px 0 0; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
  .ch { border-bottom: 1px solid var(--line); }
  .ch:last-child { border-bottom: 0; }
  .ch > summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 10px 0; }
  .ch > summary::-webkit-details-marker { display: none; }
  .ch > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 700; }
  .ch[open] > summary::after { content: "\2212"; }
  .ch > summary > span:nth-child(2) { min-width: 0; }
  .icon { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
  .icon.buff { background: var(--buff-soft); color: var(--buff); }
  .icon.nerf { background: var(--nerf-soft); color: var(--nerf); }
  .icon.change, .icon.fix { background: var(--neutral-soft); color: var(--neutral); }
  .ch .body { padding: 0 0 12px 36px; }
  .ch .body p { margin: 0; }
  .why { color: var(--muted); font-size: .84rem; margin-top: 6px; }
  .where { color: var(--muted); font-size: .78rem; margin-left: 6px; font-weight: 500; }
  .more > summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 6px 0; }
  .fold > summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 4px 0; }
  .fold + .fold { margin-top: 8px; }
  .hint { text-align: center; color: var(--muted); padding-block: 22px; }
  .vals { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
  .val { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; max-width: 100%; font-family: var(--font-mono); font-size: .74rem; font-weight: 700; line-height: 1.5; padding: 1px 7px; border-radius: 6px; background: var(--neutral-soft); color: var(--neutral); }
  .val.buff { background: var(--buff-soft); color: var(--buff); }
  .val.nerf { background: var(--nerf-soft); color: var(--nerf); }
  .val > span { white-space: nowrap; }
  .val .lb { font-weight: 500; }
  .val .fr { font-weight: 500; opacity: .8; }
  .dev-why { margin: 6px 0 0 !important; font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 8px; }
  .dev-why b { color: var(--fg); font-weight: 600; }
  /* Search in every game and patch (home) */
  .ss { position: relative; max-width: 640px; width: 100%; margin: 4px auto 0; }
  .ss-input { width: 100%; font: inherit; font-size: 1.08rem; padding: 15px 44px 15px 48px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--surface); color: var(--fg); box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 24px rgba(0,0,0,.18); }
  .ss-input::placeholder { color: var(--muted); opacity: 1; }
  .ss-ico { position: absolute; left: 16px; top: 26px; width: 20px; height: 20px; margin-top: -10px; color: var(--accent); pointer-events: none; }
  .ss-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .ss-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .ss-key { position: absolute; right: 14px; top: 16px; font-family: var(--font-mono); font-size: .75rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; pointer-events: none; }
  .ss-input:not(:placeholder-shown) + .ss-key { display: none; }
  @media (max-width: 640px), (hover: none) { .ss-key { display: none; } .ss-input { padding-right: 14px; font-size: 1rem; } }
  .ss-results { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 8px; text-align: left; }
  .ss-chars { display: flex; flex-wrap: wrap; gap: 6px; }
  .ss-chars .hchip { text-decoration: none; }
  .ss-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; }
  .ss-row:hover b { text-decoration: underline; }
  .ss-row small { display: block; color: var(--muted); font-weight: 500; }
  .ss-note { margin: 0; color: var(--muted); font-size: .88rem; }
  /* Since your last visit (home) */
  .hub-since { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--accent); border-radius: 14px; background: var(--surface); }
  .hub-since .hs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .hs-game { margin: 4px 0 0; font-weight: 700; }
  .hs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .hs-row .hchip { flex: 0 1 auto; }
  .hs-row a { font-weight: 600; font-size: .9rem; }
  .hotfix { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--neutral-soft); color: var(--neutral); margin-left: 6px; white-space: nowrap; }
  .pill.live { background: var(--buff-soft); color: var(--buff); }
  mark { background: var(--mark); color: var(--mark-ink); border-radius: 3px; padding: 0 2px; }
  .search { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font-size: 1rem; }
  .scope { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .9rem; cursor: pointer; }
  .scope input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
  .scope b { color: var(--accent); }
  .quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .quick button { cursor: pointer; font-size: .82rem; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
  .quick button:hover { color: var(--fg); border-color: var(--accent); }
  .results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .results-head p { margin: 0; font-weight: 800; }
  .scope-line { color: var(--muted); font-size: .85rem; margin: 4px 0 8px; }
  .patch-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .patch-head .h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
  /* Side columns on wide screens (the patch page) */
  .side { display: none; }
  @media (min-width: 1280px) {
    main.wrap.app-sides { max-width: 1440px; display: grid; grid-template-columns: 210px minmax(0, 820px) 300px; column-gap: 32px; justify-content: center; align-content: start; }
    main.wrap.app-sides > * { grid-column: 2; }
    main.wrap.app-sides > .side { display: grid; gap: 14px; align-content: start; position: sticky; top: 150px; grid-row: 1 / span 30; max-height: calc(100vh - 170px); overflow-y: auto; scrollbar-width: thin; }
    main.wrap.app-sides > .side-l { grid-column: 1; }
    main.wrap.app-sides > .side-r { grid-column: 3; }
    main.wrap.app-sides > .view.narrow { max-width: none; margin: 0; }
  }
  .side-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
  .side-h { margin: 0; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .side-list, .side-cal { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
  .side-list li, .side-cal li { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .side-list a, .side-cal a { color: var(--fg); text-decoration: none; font-weight: 600; }
  /* Announced patches in the left column: accent colour and a small "Coming soon" tag. */
  .side-list li.soon a, .side-list li.soon > span:first-child { color: var(--neutral); font-weight: 700; }
  .side-list li.soon + li:not(.soon) { border-top: 1px dashed var(--line); padding-top: 6px; }
  .side-soon { margin-left: auto; flex: none; padding: 1px 8px; border-radius: 999px; background: var(--neutral-soft); color: var(--neutral); font-size: .72rem; font-weight: 700; white-space: nowrap; }
  .side-list a:hover, .side-cal a:hover { color: var(--accent); }
  .side-list a[aria-current="page"] { color: var(--accent); }
  .side .emblem { min-width: 34px; height: 22px; font-size: .62rem; flex: none; }
  .side-days { color: var(--muted); font-size: .8rem; }
  .side-cal li.soon b { color: var(--accent); }
  .side-wl li .mv { margin-left: auto; }
  /* Winners and losers: each row opens to show why (its changes and the developers' reason). */
  .wl-item > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; }
  .wl-item > summary::-webkit-details-marker { display: none; }
  .wl-item > summary::after { content: "▾"; margin-left: 6px; color: var(--muted); font-size: .8rem; transition: transform .2s; }
  .wl-item[open] > summary::after { transform: rotate(180deg); }
  .wl-item > summary:hover { background: var(--surface-2); }
  .wl-item .wl-name { font-weight: 700; }
  .wl-item .wl-n { margin-left: auto; }
  .side-wl .wl-item > summary .mv { margin-left: auto; }
  .wl-why { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; display: grid; gap: 8px; }
  .wl-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .wl-why li { display: flex; gap: 8px; align-items: flex-start; }
  .wl-why li .mv { line-height: 1.5; }
  .wl-hint { margin: -6px 0 0; font-size: .85rem; }
  .side-wl li { display: block; } .wl-item { width: 100%; }
  .wl-why li .mv { flex: none; font-size: .75rem; margin-left: 0; background: none; padding: 0; }
  .wl-why li .mv.buff { color: var(--buff); } .wl-why li .mv.nerf { color: var(--nerf); }
  .wl-dev { display: block; margin-top: 2px; color: var(--muted); font-style: italic; }
  .wl-more { font-weight: 700; font-size: .85rem; }
  .side-more { font-size: .82rem; font-weight: 700; color: var(--accent); text-decoration: none; }
  .official-link { font-weight: 700; font-size: .92rem; color: var(--accent); white-space: nowrap; text-decoration: none; }
  .official-link:hover { text-decoration: underline; }
  .ver-select { width: auto; padding: 6px 10px; font-size: .9rem; }
  .quick-pick { display: grid; gap: 8px; }
  .ghost { border: 1px dashed var(--line); background: none; color: var(--muted); padding: 7px 11px; border-radius: 10px; font-size: .86rem; cursor: not-allowed; }
  .prose p { margin: 0 0 10px; max-width: 65ch; }
  .prose p:last-child { margin-bottom: 0; }
  footer.wrap { color: var(--muted); font-size: .82rem; padding-block: 0 32px; }
  .lang { display: flex; align-items: center; }
  .lang select { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 8px; padding: 5px 8px; font-size: .88rem; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .names-note { color: var(--muted); font-size: .82rem; margin: 0; }
  /* Selected game */
  .emblem { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 7px; border-radius: 8px; color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: .78rem; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
  .emblem.big { min-width: 48px; height: 38px; font-size: .9rem; border-radius: 10px; }
  /* Game tabs: always visible at the top of the screen */
  /* Menu and game tabs stay at the top. On phones the logo row scrolls away (--hide) so the frozen part stays small. */
  .sticky-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) - var(--hide, 0px)); z-index: 5; box-shadow: 0 6px 16px -12px rgba(0,0,0,.35); }
  .gamebar { background: var(--bar); border-bottom: 1px solid var(--line); }
  .gtab-edit { color: var(--accent); border-style: dashed; padding: 5px 12px; }
  .gtab-edit[aria-expanded="true"] { background: var(--accent-soft); border-style: solid; border-color: var(--accent); }
  .games-edit { border-top: 1px solid var(--line); padding-block: 12px 14px; display: grid; gap: 10px; max-height: min(70vh, 520px); overflow-y: auto; }
  .games-edit h2 { margin: 0; font-size: 1rem; }
  .ge-list { display: grid; gap: 6px; }
  .ge-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .ge-row.off { background: var(--surface-2); }
  .ge-row.off .emblem { opacity: .5; }
  .ge-row b { flex: 1 1 auto; min-width: 0; }
  .ge-row .btn { padding: 4px 10px; }
  .ge-hint { margin: -4px 0 0; color: var(--muted); font-size: .86rem; }
  .ge-grip { flex: none; display: grid; place-items: center; width: 30px; height: 34px; margin: -2px -4px -2px -2px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: grab; touch-action: none; }
  .ge-grip svg { width: 18px; height: 18px; fill: currentColor; }
  .ge-grip:hover, .ge-grip:focus-visible { color: var(--fg); background: var(--surface-2); }
  .ge-row.drag { user-select: none; -webkit-user-select: none; }
  @media (hover: hover) and (pointer: fine) { .ge-row.drag { cursor: grab; } }
  .ge-list.sorting { cursor: grabbing; }
  .ge-row.dragging { position: relative; z-index: 2; border-color: var(--accent); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); cursor: grabbing; }
  .ge-row.dragging .ge-grip { cursor: grabbing; color: var(--accent); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bar); }
  .gamebar-inner { max-width: 1060px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  /* When the games don't fit: a thin scroll bar under the tabs, arrows at the ends and a fade on the hidden side. */
  .tabs-row { display: flex; align-items: center; gap: 6px; }
  .tabs-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
  .tabs-row > .gtab-edit { flex: 0 0 auto; }
  .game-tabs { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scroll-snap-type: x proximity; scroll-padding-inline: 40px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .game-tabs::-webkit-scrollbar { height: 6px; }
  .game-tabs::-webkit-scrollbar-track { background: transparent; }
  .game-tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
  .game-tabs::-webkit-scrollbar-thumb:hover { background: var(--muted); }
  .tabs-wrap.fade-l .game-tabs { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px); mask-image: linear-gradient(to right, transparent 0, #000 40px); }
  .tabs-wrap.fade-r .game-tabs { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 40px); mask-image: linear-gradient(to left, transparent 0, #000 40px); }
  .tabs-wrap.fade-l.fade-r .game-tabs { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
  .tabs-arrow { position: absolute; top: 50%; transform: translateY(-58%); z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); display: grid; place-items: center; padding: 0 0 2px; }
  .tabs-arrow:hover { border-color: var(--accent); color: var(--accent); }
  .tabs-arrow.left { left: -6px; }
  .tabs-arrow.right { right: -6px; }
  .gtab { --gc: var(--accent); flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; text-align: left; transition: border-color .15s, background .15s; }
  .gtab:hover { border-color: var(--gc); color: var(--fg); }
  .gtab .emblem { min-width: 36px; height: 28px; font-size: .72rem; opacity: .7; transition: opacity .15s; }
  .gtab:hover .emblem { opacity: .85; }
  .gt-text { display: grid; line-height: 1.15; }
  .gt-text small { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; color: var(--muted); }
  .gt-short { display: none; }
  .gtab[aria-current="true"] { color: var(--fg); border-color: var(--gc); background: color-mix(in srgb, var(--gc) 13%, var(--surface)); box-shadow: inset 0 -3px 0 var(--gc); }
  .gtab[aria-current="true"] .emblem { opacity: 1; }
  .gtab[aria-current="true"] .gt-text small { color: var(--fg); }
  @media (max-width: 900px) { .gt-full { display: none; } .gt-short { display: inline; } }
  @media (max-width: 640px) { .gt-short { display: none; } .gtab { padding-right: 10px; gap: 6px; } }
  /* About page */
  .view.about { display: grid; gap: 18px; }
  .ab-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: center; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 22px; padding: 26px; }
  .ab-hero-text { display: grid; gap: 10px; min-width: 0; }
  .ab-hero .h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.06; text-wrap: balance; }
  .ab-sub { margin: 0; font-size: 1.05rem; color: var(--muted); max-width: 52ch; }
  .ab-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; box-shadow: 0 12px 28px -18px rgba(0,0,0,.45); transform: rotate(1.5deg); }
  .ab-demo p { margin: 0; }
  .ab-demo-q { font-weight: 700; font-family: var(--font-display); }
  .ab-demo-a { display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: .92rem; }
  .ab-tag { flex: none; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; color: var(--accent-ink); background: var(--buff); }
  .ab-demo-bar { display: flex; gap: 4px; }
  .ab-demo-bar span { flex: 1; height: 8px; border-radius: 4px; background: var(--buff); opacity: .85; }
  .ab-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .ab-stats > div { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
  .ab-stats b { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
  .ab-stats span { font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .ab-h { margin: 8px 0 0; font-family: var(--font-display); font-size: 1.3rem; }
  .ab-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
  .ab-me, .ab-cta { display: grid; gap: 10px; align-content: start; }
  .ab-me p, .ab-cta p { margin: 0; }
  .ab-cta { border-color: var(--accent); }
  .ab-cta .btn { justify-self: start; }
  .ab-mail { font-family: var(--font-mono); font-size: .85rem; }
  .ab-legal { margin: 0; font-size: .85rem; }
  @media (max-width: 640px) {
    .ab-hero { grid-template-columns: 1fr; padding: 20px; }
    .ab-demo { transform: none; }
    .ab-stats { grid-template-columns: 1fr 1fr; }
    .ab-two { grid-template-columns: 1fr; }
  }
  .nav-short { display: none; }
  /* Medium screens: "My characters" → "Mine", so the top bar fits on one line (UX audit). */
  @media (max-width: 1180px) { .nav .nav-long { display: none; } .nav .nav-short { display: inline; } }
  .nav-ico { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  /* Phones: the menu moves to a bar at the bottom of the screen, where the thumb reaches. */
  @media (max-width: 640px) {
    .topbar-inner { gap: 8px; padding-block: 8px; }
    .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px -12px rgba(0,0,0,.35); padding: 4px max(6px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
    .nav a { display: grid; justify-items: center; gap: 2px; padding: 5px 2px; font-size: .7rem; border-radius: 10px; text-align: center; }
    .nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
    .nav-ico { display: block; }
    .nav .nav-long { display: none; }
    .nav .nav-short { display: inline; }
    .nav a { position: relative; }
    .nav .nav-dot { position: absolute; top: 4px; left: calc(50% + 8px); margin: 0; }
    .rel-banner { display: none !important; }   /* phones: the tab bar and the game cards are enough */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  }
  .game-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); font-size: .9rem; }
  .small-note { margin: 0; font-size: .85rem; }
  .foot-link { margin: 0 0 6px; font-size: .86rem; }
  .riot-note { margin: 6px 0 0; font-size: .74rem; color: var(--muted); max-width: 70ch; }
  .legal h2 { font-size: 1.05rem; margin: 18px 0 6px; }
  .legal h2:first-child { margin-top: 0; }
  .legal p { margin: 0 0 8px; max-width: 70ch; }
  .foot-link a { color: var(--muted); }
  .foot-link a:hover { color: var(--accent); }
  .foot-social { margin: 0 0 6px; font-size: .86rem; } .foot-social a { font-weight: 600; }

  /* Generated pages */
  :root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  [hidden] { display: none !important; }
  .view.narrow h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.12; }
  .lead { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 65ch; }
  .crumbs { margin: 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
  .crumbs a { color: var(--muted); }
  .lang-links { display: flex; gap: 4px; }
  .lang-links a { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--muted); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); }
  .lang-links a[aria-current] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
  .slist { list-style: none; margin: 0; padding: 0; }
  .tldr-top { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
  .tldr-top li { display: flex; gap: 8px; align-items: baseline; font-weight: 600; }
  .tldr-top .mv { flex: none; }
  .hist-link { margin: 10px 0 0; font-weight: 600; }
  .hist-patch .section-h a { color: inherit; }
  .hist-date { font-size: .85rem; font-weight: 500; margin-left: 6px; }
  .hist-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: .9rem; }
  .slist li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .slist li:last-child { border-bottom: 0; }
  .slist li > div { min-width: 0; }
  .slist p { margin: 2px 0 0; }
  .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .tile { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--fg); text-decoration: none; font-weight: 700; }
  .tile:hover { border-color: var(--accent); }
  .tile span { font-weight: 500; font-size: .82rem; color: var(--muted); }
  .sub-h { margin: 8px 0 0; font-size: 1.05rem; }
  .sub-h a { color: var(--fg); }
  .cta { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); border-color: var(--accent); }
  .cta > div { flex: 1 1 260px; min-width: 0; }
  .fold-s > summary { cursor: pointer; font-weight: 700; }
  .fold-s[open] > summary { margin-bottom: 8px; }
  .small-note { margin: 0; font-size: .85rem; }
  .faq-search { width: 100%; padding-left: 12px; }
  .faq-group { display: grid; gap: 10px; }
  .faq-q > p, .faq-contact p { margin: 0; }
  .faq-contact { display: grid; gap: 10px; }
  .faq-mail { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
  .crumbs-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .share-box { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
  .share-ico { display: block; flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .share-box .toast { min-height: 0; }
  .share-big.share-box { display: flex; flex-wrap: wrap; margin: 12px 0 0; gap: 10px; }
  .track-top { margin: 12px 0 0; }
  .ver-badge { display: inline-block; vertical-align: 2px; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
  .ver-badge.live { background: var(--buff-soft); color: var(--buff); }
  .ver-badge.prev { background: var(--surface-2); color: var(--muted); }
  .old-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; }
  .track-top .btn { font-size: 1rem; padding: 11px 18px; }
  .share-big .btn { gap: 8px; }
  .up-count { text-align: center; }
  .up-num { margin: 0 0 4px; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
  .up-clock { display: flex; justify-content: center; gap: 10px; margin: 2px 0 8px; }
  .up-clock span { display: grid; min-width: 64px; padding: 8px 6px; border-radius: 12px; background: var(--accent-soft); }
  .up-clock b { font-size: 1.9rem; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
  .up-clock small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .up-when { margin: 0 0 4px; font-size: .88rem; }
  @media (max-width: 400px) { .up-clock { gap: 6px; } .up-clock span { min-width: 54px; } .up-clock b { font-size: 1.5rem; } }
  .up-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
  .pv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .pv-fact { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--line); }
  .pv-fact b { font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); }
  .pv-fact span { font-size: .9rem; color: var(--muted); }
  .pv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
  .pv-class p { margin: 0 0 8px; } .pv-class p:last-child { margin: 0; }
  .pv-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
  .pv-new { font-family: inherit; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 7px; background: var(--buff-soft); color: var(--buff); }
  .pv-weap { font-weight: 700; color: var(--accent); }
  .pv-list { gap: 10px; } .pv-hist { white-space: nowrap; font-size: .9rem; }
  .pv-src { font-size: .88rem; margin-top: 10px; }
  .lead.answer { color: var(--fg); font-weight: 600; }
  .per-class-body { display: grid; gap: 12px; margin-top: 12px; }
  .per-class-body .sub-h { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
  /* Side columns: only on wide screens */
  .side { display: none; }
  @media (min-width: 1280px) {
    main.wrap.has-sides { max-width: 1440px; }
    .sides-grid { display: grid; grid-template-columns: 210px minmax(0, 820px) 300px; gap: 32px; justify-content: center; align-items: start; }
    .sides-grid > .view.narrow { margin: 0; max-width: none; }
    .side { display: grid; gap: 14px; position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; scrollbar-width: thin; }
  }
  .side-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
  .side-h { margin: 0; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .side-list, .side-cal, #side-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
  .side-list li, .side-cal li { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .side-list a, .side-cal a, #side-toc a { color: var(--fg); text-decoration: none; font-weight: 600; }
  .side-list a:hover, .side-cal a:hover, #side-toc a:hover { color: var(--accent); }
  .side-list a[aria-current="page"] { color: var(--accent); }
  #side-toc a { font-weight: 500; color: var(--muted); font-size: .88rem; }
  .side .emblem { min-width: 34px; height: 22px; font-size: .62rem; flex: none; }
  .side-days { color: var(--muted); font-size: .8rem; }
  .side-cal li.soon b { color: var(--accent); }
  .side-wl li .mv { margin-left: auto; }
  .side-more { font-size: .82rem; font-weight: 700; color: var(--accent); text-decoration: none; }
  .foot-social { margin: 6px 0 0; } .foot-social a { font-weight: 600; }
  .faq-contact .foot-social { margin-top: 14px; }
  .rel-last { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .95rem; }
  .rel-last .rel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--buff); box-shadow: 0 0 0 4px var(--buff-soft); flex: none; }
  .rel-count { font-size: .9rem; font-weight: 500; }
  .rel-list { list-style: none; margin: 0; padding: 4px 18px; }
  .rel-row { display: grid; grid-template-columns: 4.2em auto minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rel-row:last-child { border-bottom: 0; }
  .rel-date { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); white-space: nowrap; }
  .rel-tag { justify-self: start; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 7px; white-space: nowrap; background: var(--accent-soft); color: var(--accent); }
  .rel-tag.improvement { background: var(--buff-soft); color: var(--buff); }
  .rel-tag.patch { background: var(--surface-2, var(--accent-soft)); color: var(--fg); border: 1px solid var(--line); }
  .rel-tag.fix { background: var(--nerf-soft); color: var(--nerf); }
  .rel-body { min-width: 0; }
  .rel-month > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; }
  .rel-month > summary::-webkit-details-marker, .rel-more > summary::-webkit-details-marker { display: none; }
  .rel-month > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; display: inline-block; }
  .rel-month[open] > summary::before { transform: rotate(90deg); }
  .rel-month > summary .section-h { margin: 0; }
  .rel-more > summary { list-style: none; cursor: pointer; }
  .rel-more > summary::after { content: " ▾"; color: var(--muted); font-size: .85em; }
  .rel-more[open] > summary::after { content: " ▴"; }
  .rel-body ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; color: var(--muted); }
  .rel-body a { text-decoration: none; color: inherit; } .rel-body a b { color: var(--accent); }
  @media (max-width: 520px) { .rel-row { grid-template-columns: auto minmax(0, 1fr); } .rel-body { grid-column: 1 / -1; } }
  .releases ul { margin: 0; padding: 14px 0 14px 20px; display: grid; gap: 6px; }
  .releases ul + ul { border-top: 1px solid var(--line); }
  .releases ul:first-child { padding-top: 0; } .releases ul:last-child { padding-bottom: 0; }
  .gi { flex: none; width: 20px; height: 20px; border-radius: 5px; object-fit: cover; vertical-align: -4px; background: var(--surface-2); }
  .gi-strip { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: -5px; }
  .gi.wide { width: auto; max-width: 56px; object-fit: contain; background: none; border-radius: 0; }
  .gi-strip .gi { width: 22px; height: 22px; }
  .tile:has(> .tile-i) { grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
  .tile:has(> .tile-i) > span { grid-column: 2; }
  .tile-i { grid-row: span 2; width: 30px; height: 30px; border-radius: 7px; }
  .wl li { display: block; }
  .wl li .gi { width: 24px; height: 24px; }
  h1.with-icon { display: flex; align-items: center; gap: 12px; }
  .h1-i { width: 52px; height: 52px; border-radius: 12px; }
  .h2-i { width: 26px; height: 26px; border-radius: 6px; margin-right: 8px; vertical-align: -6px; }
  .wl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 22px; }
  .wl-h { margin: 0 0 6px; font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .wl-col.win .wl-h { color: var(--buff); } .wl-col.lose .wl-h { color: var(--nerf); }
  .wl ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
  .wl li a { font-weight: 700; color: var(--fg); }
  .wl-n { margin-left: 8px; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
