/* games.suum-exse.ai: styles for the library, game pages and play.php errors.
   After changing this file, bump GAMES_ASSET_V in _layout.php. */
  /* Fonts come from suum-exse.ai (see assets/fonts/.htaccess there), not Google. */
  @font-face { font-family: "Geist"; src: url("https://suum-exse.ai/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
  @font-face { font-family: "Press Start 2P"; src: url("https://suum-exse.ai/assets/fonts/PressStart2P-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
  :root {
    --bg: #FFFFFF; --ink: #000000; --mid: #333333; --dim: #616161; --line: #D9D9D9;
    --raise: #F4F4F4; --line-soft: #EAEAEA;
    --gut: 16px;
    color-scheme: light;
  }
  /* Dark is declared twice (system setting + the theme button's choice). */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --bg: #000000; --ink: #FFFFFF; --mid: #CFCFCF; --dim: #A0A0A0; --line: #333333; --raise: #161616; --line-soft: #1F1F1F; color-scheme: dark; }
  }
  :root[data-theme="dark"] { --bg: #000000; --ink: #FFFFFF; --mid: #CFCFCF; --dim: #A0A0A0; --line: #333333; --raise: #161616; --line-soft: #1F1F1F; color-scheme: dark; }
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; }
  body {
    min-height: 100vh; display: flex; flex-direction: column;
    background: var(--bg); color: var(--mid);
    font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6;
  }
  a { color: inherit; }
  .wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: clamp(var(--gut), 4vw, 2rem); }

  /* Header: the same as suum-exse.ai. Links, a "More" menu, the theme
     switch and the waitlist button; at 780px and below the links move
     into a panel opened by the menu button. */
  .top { position: relative; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
  .top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
  .brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
  .brand img { width: 24px; height: 24px; }
  .brand .tld { color: var(--dim); font-weight: 500; }
  .top-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; }
  .top-links a { text-decoration: none; color: var(--mid); }
  .top-links a:hover, .top-links a[aria-current="page"] { color: var(--ink); }
  .top-right { display: flex; align-items: center; gap: 0.75rem; }
  .cta {
    display: inline-block; padding: 0.6rem 1.05rem; border-radius: 6px; white-space: nowrap;
    background: var(--ink); color: var(--bg); font-weight: 700; font-size: 0.88rem; text-decoration: none;
  }
  .cta:hover { opacity: 0.88; }

  .more { position: relative; }
  .more-btn {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0; background: none; border: none;
    font: inherit; color: var(--mid); cursor: pointer;
  }
  .more-btn svg { transition: transform 0.18s ease; }
  .more:hover .more-btn, .more.open .more-btn { color: var(--ink); }
  .more:hover .more-btn svg, .more.open .more-btn svg { transform: rotate(180deg); }
  .more-menu {
    position: absolute; top: calc(100% + 0.7rem); left: -0.75rem; min-width: 11rem;
    display: flex; flex-direction: column; padding: 0.35rem;
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }
  .more-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; } /* hover bridge */
  .more:hover .more-menu, .more:focus-within .more-menu, .more.open .more-menu { opacity: 1; visibility: visible; transform: none; }
  .more-menu a { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.65rem; border-radius: 6px; }
  .more-menu a:hover { background: var(--raise); }
  .more-menu a.is-soon, .more-menu a.is-soon:hover { color: var(--dim); background: none; cursor: default; }
  .soon {
    margin-left: 0.4rem; padding: 0.05rem 0.4rem; border: 1px dashed var(--dim); border-radius: 4px;
    font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  }

  .menu-btn {
    display: none; width: 38px; height: 38px; place-items: center; padding: 0;
    background: none; border: none; cursor: pointer; color: var(--ink); border-radius: 6px;
  }
  .menu-btn:hover { background: var(--raise); }
  .menu-btn svg { width: 22px; height: 22px; }
  .menu-btn path { transition: transform 0.2s ease, opacity 0.2s ease; transform-origin: 12px 12px; }
  .top.menu-open .nt-1 { transform: translateY(5px) rotate(45deg); }
  .top.menu-open .nt-2 { opacity: 0; }
  .top.menu-open .nt-3 { transform: translateY(-5px) rotate(-45deg); }
  .top-links .menu-theme { display: none; }

  @media (max-width: 780px) {
    .menu-btn { display: grid; }
    .top-right { gap: 0.25rem; }
    .cta { margin-right: 0.35rem; }
    .top-links {
      display: none; position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; align-items: stretch; gap: 0;
      padding: 0.5rem clamp(var(--gut), 4vw, 2rem) 1.5rem;
      background: var(--bg); border-bottom: 1px solid var(--line);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
      max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto;
    }
    .top.menu-open .top-links { display: flex; }
    .top-links > a, .more-menu a, .top-links .menu-theme {
      padding: 0.85rem 0; font-size: 1.05rem; color: var(--ink);
      border-bottom: 1px solid var(--line-soft);
    }
    .top-links a[aria-current="page"] { font-weight: 700; }
    .more-btn { display: none; }
    .more-menu {
      position: static; min-width: 0; padding: 0; background: none; border: none; border-radius: 0;
      box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
    }
    .more-menu::before { display: none; }
    .more-menu a { border-radius: 0; }
    .more-menu a:hover { background: none; }
  }
  @media (max-width: 480px) {
    .cta { padding: 0.5rem 0.8rem; font-size: 0.82rem; }
    .cta-the { display: none; }
    .top-right > .theme-btn { display: none; }
    .top-links .menu-theme {
      display: flex; align-items: center; gap: 0.6rem; width: 100%; height: auto;
      border-radius: 0; font: inherit; font-size: 1.05rem; text-align: left;
    }
    .top-links .menu-theme:hover { background: none; }
    .top-links .menu-theme svg { width: 18px; height: 18px; }
  }
  @media (max-width: 360px) {
    .top-in { gap: 0.5rem; }
    .cta { padding: 0.5rem 0.6rem; }
  }

  /* Games mark: black on light, white on dark. Both PNGs are transparent. */
  .mark-dark { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mark-light { display: none; }
    :root:not([data-theme="light"]) .mark-dark { display: block; }
  }
  :root[data-theme="dark"] .mark-light { display: none; }
  :root[data-theme="dark"] .mark-dark { display: block; }

  /* Theme button: the icon shows the theme you would switch TO. */
  .theme-btn {
    width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
    background: none; border: none; cursor: pointer; color: var(--dim); border-radius: 999px;
  }
  .theme-btn:hover { color: var(--ink); background: var(--raise); }
  .theme-btn svg { width: 16px; height: 16px; }
  .icon-sun { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: block; }
    :root:not([data-theme="light"]) .icon-moon { display: none; }
  }
  :root[data-theme="dark"] .icon-sun { display: block; }
  :root[data-theme="dark"] .icon-moon { display: none; }


  /* Footer */
  .foot { border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--dim); }
  .foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.5rem; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
  .foot a { text-decoration: none; }
  .foot a:hover { color: var(--ink); text-decoration: underline; }
  .social { display: flex; gap: 0.25rem; margin: -0.5rem 0 -0.5rem -0.5rem; }
  .foot .social a { width: 34px; height: 34px; display: grid; place-items: center; color: var(--dim); border-radius: 999px; }
  .foot .social a:hover { color: var(--ink); background: var(--raise); text-decoration: none; }
  .social svg { width: 17px; height: 17px; }


  /* ---------- Shared pieces ---------- */
  main { flex: 1; padding-bottom: clamp(3rem, 8vw, 5rem); }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.3rem;
    background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 8px;
    text-decoration: none; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; white-space: nowrap;
  }
  .btn:hover { opacity: 0.88; }
  .btn-quiet { background: none; color: var(--ink); border-color: var(--line); }
  .btn-quiet:hover { border-color: var(--ink); opacity: 1; }
  .btn.is-off { background: none; color: var(--dim); border: 1px dashed var(--line); cursor: default; opacity: 1; }
  .chip {
    display: inline-block; padding: 0.05rem 0.4rem; border: 1px solid currentColor; border-radius: 4px;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.6;
  }
  .fine { margin: 0; font-size: 0.85rem; color: var(--dim); }
  .fine a { color: var(--ink); }
  .notice { margin: 0 0 1rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); color: var(--ink); font-size: 0.92rem; }
  .cursor { display: inline-block; width: 0.6em; height: 0.12em; margin-left: 0.2em; background: var(--ink); animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  /* Page title: small, top-left */
  .ptitle { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: clamp(1.75rem, 4vw, 2.5rem) 1rem; }
  .ptitle h1 { margin: 0; color: var(--ink); font-family: "Press Start 2P", ui-monospace, monospace; font-weight: 400; font-size: clamp(1.15rem, 3vw, 1.6rem); line-height: 1.3; }
  .ptitle p { margin: 0; font-size: 0.92rem; color: var(--dim); }

  /* ---------- Library carousel ----------
     Without JavaScript it is a plain sideways-scrolling row. games.js
     adds .is-live: it then loops, drifts, and follows drag, wheel,
     arrows and keys. Cards are black and white until hovered (or, on
     touch screens, until they reach the middle). */
  .rail { --card-w: 248px; --card-gap: 18px; }
  .rail-view { overflow-x: auto; padding-block: 14px 10px; scrollbar-width: thin; }
  .rail.is-live .rail-view {
    overflow: hidden; cursor: grab; touch-action: pan-y;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
  .rail.is-live .rail-view.is-dragging { cursor: grabbing; }
  .rail.is-static .rail-view { -webkit-mask-image: none; mask-image: none; cursor: default; }
  .rail-track { display: flex; gap: var(--card-gap); width: max-content; margin: 0; padding: 0; list-style: none; will-change: transform; }
  .rail.is-static .rail-track { margin-inline: auto; }
  .rail-track > li { display: flex; }
  .card {
    flex: 0 0 var(--card-w); width: var(--card-w); display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--mid);
    text-decoration: none; user-select: none; -webkit-user-drag: none;
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
  }
  .card .art { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #05080c; filter: grayscale(1) contrast(1.08); transition: filter .5s ease; pointer-events: none; }
  .card .body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1rem 1.05rem; }
  .card .meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--dim); transition: color .35s ease; }
  .card h2 { margin: 0; color: var(--ink); font-family: "Press Start 2P", ui-monospace, monospace; font-weight: 400; font-size: 0.8rem; line-height: 1.5; transition: color .35s ease; }
  .card p { margin: 0; font-size: 0.85rem; line-height: 1.45; }
  .card.is-lit, .card:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--bg); transform: translateY(-6px); }
  .card.is-lit .art, .card:focus-visible .art { filter: none; }
  .card.is-lit h2, .card.is-lit .meta, .card:focus-visible h2, .card:focus-visible .meta { color: var(--bg); }
  @media (hover: hover) {
    .card:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); transform: translateY(-6px); }
    .card:hover .art { filter: none; }
    .card:hover h2, .card:hover .meta { color: var(--bg); }
  }
  .card.is-soon { cursor: default; }
  .card.is-soon h2 { color: var(--dim); }
  .rail-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; }
  .rail-ctrl .fine { font-size: 0.8rem; }
  .rail-arrows { display: none; gap: 0.5rem; }
  .rail.is-live:not(.is-static) .rail-arrows { display: flex; }
  .round-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
  .round-btn:hover { border-color: var(--ink); }

  /* Plans (visitors and members without a subscription) */
  .plans-wrap { display: grid; gap: 1rem; padding-top: clamp(2.5rem, 6vw, 4rem); }
  .plans-wrap > h2 { margin: 0; color: var(--ink); font-size: 1.25rem; letter-spacing: -0.01em; }
  .plans-wrap > p { margin: 0; max-width: 60ch; }
  .plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 640px; margin-top: 0.75rem; }
  .plan { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
  .plan.best { border-color: var(--ink); border-width: 2px; }
  .plan .tag { position: absolute; top: -0.7rem; left: 1.25rem; padding: 0.1rem 0.55rem; background: var(--ink); color: var(--bg); border-radius: 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
  .plan h3 { margin: 0; font-size: 0.95rem; color: var(--ink); }
  .plan .price { margin: 0; color: var(--ink); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
  .plan .price span { font-size: 0.95rem; font-weight: 500; color: var(--dim); }
  .plan .per { margin: 0; font-size: 0.85rem; color: var(--dim); }
  .plan .btn { margin-top: auto; }
  @media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

  /* ---------- Game page ---------- */
  .back { display: inline-block; margin-top: 1.5rem; font-size: 0.85rem; color: var(--dim); text-decoration: none; }
  .back:hover { color: var(--ink); }
  .hero { margin-top: 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #05080c; }
  .hero .art { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; }
  @media (max-width: 640px) { .hero .art { aspect-ratio: 4 / 3; } }
  .ghead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 260px); gap: 1.5rem 2.5rem; align-items: start; padding-top: 1.75rem; }
  @media (max-width: 760px) { .ghead { grid-template-columns: minmax(0, 1fr); } }
  .ghead h1 { margin: 0 0 0.6rem; color: var(--ink); font-family: "Press Start 2P", ui-monospace, monospace; font-weight: 400; font-size: clamp(1.3rem, 3.6vw, 2rem); line-height: 1.25; }
  .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin-bottom: 0.9rem; font-size: 0.82rem; color: var(--dim); }
  .tags .chip { color: var(--ink); }
  .about { margin: 0; max-width: 62ch; }
  .acts { display: flex; flex-direction: column; gap: 0.6rem; }
  .acts .btn { justify-content: space-between; }
  .acts .sub { font-size: 0.75rem; font-weight: 500; opacity: 0.75; }
  .gate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-top: 1.5rem; padding: 1rem 1.15rem; border: 1px solid var(--ink); border-radius: 12px; scroll-margin-top: 1rem; }
  .gate p { margin: 0; max-width: 52ch; color: var(--ink); font-size: 0.92rem; }
  .gate .row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .gate:target { box-shadow: 0 0 0 3px var(--raise); }
  .cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; padding-top: 2rem; }
  @media (max-width: 820px) { .cols { grid-template-columns: minmax(0, 1fr); } }
  .panel { min-width: 0; padding: 1.15rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; }
  .panel h2 { margin: 0 0 0.75rem; color: var(--ink); font-size: 1rem; }
  .panel p { margin: 0; font-size: 0.9rem; }
  .board-empty { display: grid; gap: 0.5rem; padding: 1.25rem; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
  .board-empty b { color: var(--ink); }
  .notes h3 { margin: 0; color: var(--ink); font-size: 0.92rem; }
  .notes .when { font-size: 0.78rem; color: var(--dim); }
  .notes ul { display: grid; gap: 0.25rem; margin: 0.5rem 0 1rem; padding-left: 1.1rem; font-size: 0.88rem; }
  .notes ul:last-child { margin-bottom: 0; }
  details.controls { margin-top: 1.25rem; padding: 0.9rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; }
  details.controls summary { cursor: pointer; color: var(--ink); font-weight: 600; }
  .kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 1.5rem; margin-top: 1rem; font-size: 0.85rem; }
  .kgrid h3 { margin: 0 0 0.35rem; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
  .kgrid ul { margin: 0; padding: 0; list-style: none; }
  .kgrid li { display: flex; gap: 0.6rem; padding-block: 0.12rem; }
  kbd { min-width: 4.2rem; padding: 0 0.35rem; border: 1px solid var(--line); border-radius: 4px; background: var(--raise); color: var(--ink); font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; text-align: center; white-space: nowrap; }

  /* ---------- Games sub-navigation (Library · Community · @you) ---------- */
  .subnav { border-bottom: 1px solid var(--line); background: var(--bg); }
  .subnav-in { display: flex; align-items: center; gap: 1.5rem; height: 44px; font-size: 0.88rem; overflow-x: auto; }
  .subnav a { color: var(--dim); text-decoration: none; white-space: nowrap; padding-block: 0.6rem; border-bottom: 2px solid transparent; }
  .subnav a:hover { color: var(--ink); }
  .subnav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
  .subnav .subnav-me { margin-left: auto; }

  /* ---------- Shared: labels, segmented links, score tables ---------- */
  .label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; margin-bottom: 0.75rem; border: 1px solid var(--line); border-radius: 999px; }
  .seg a { padding: 0.2rem 0.75rem; border-radius: 999px; color: var(--dim); font-size: 0.8rem; text-decoration: none; }
  .seg a:hover { color: var(--ink); }
  .seg a[aria-current="true"] { background: var(--ink); color: var(--bg); }
  table.board { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
  .board th { padding: 0 0.5rem 0.4rem; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; }
  .board td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); }
  .board tr:last-child td { border-bottom: 0; }
  .board .n { text-align: right; }
  .board .rk { width: 2.5rem; color: var(--dim); }
  .board a { color: var(--ink); text-decoration: none; font-weight: 500; }
  .board a:hover { text-decoration: underline; }
  .board tr.you td { color: var(--ink); font-weight: 700; background: var(--raise); }
  .board-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.75rem; }
  .stat-pick { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
  .stat-pick select { padding: 0.3rem 2rem 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: 0.8rem; cursor: pointer; }
  .stat-pick select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

  /* Tiles under the library carousel */
  .strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; padding-top: 2.5rem; }
  .tile { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; }
  .tile h2 { margin: 0; color: var(--ink); font-size: 1rem; text-wrap: balance; }
  .tile h2 a { color: inherit; }
  .tile p { margin: 0; font-size: 0.88rem; }
  .tile .more { margin-top: auto; padding-top: 0.4rem; color: var(--ink); font-size: 0.85rem; font-weight: 600; }

  /* ---------- Community ---------- */
  .tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .tabs a { padding: 0.6rem 0.9rem; border-bottom: 2px solid transparent; color: var(--dim); font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
  .tabs a:hover { color: var(--ink); }
  .tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
  .tabpanel { padding-top: 1.5rem; }
  .posts { display: grid; gap: 1rem; max-width: 720px; }
  .post { display: grid; gap: 0.5rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; }
  .post .when { font-size: 0.78rem; color: var(--dim); }
  .post .when a { color: var(--ink); }
  .post h2 { margin: 0; color: var(--ink); font-size: 1.1rem; text-wrap: balance; }
  .post p { margin: 0; max-width: 65ch; }
  .filters { display: flex; flex-wrap: wrap; gap: 0 0.75rem; }
  .split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  @media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
  form.bug { display: grid; gap: 0.85rem; }
  form.bug label { display: grid; gap: 0.3rem; color: var(--ink); font-size: 0.85rem; font-weight: 600; }
  form.bug .help { color: var(--dim); font-weight: 400; }
  form.bug .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  form.bug select, form.bug textarea, .search input {
    width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px;
    background: var(--bg); color: var(--ink); font: inherit; font-size: 0.92rem;
  }
  form.bug textarea { min-height: 6rem; resize: vertical; }
  form.bug select:focus, form.bug textarea:focus, .search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
  .issues { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }
  .issues li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
  .issues li:last-child { border-bottom: 0; padding-bottom: 0; }
  .st { padding: 0.05rem 0.4rem; border: 1px solid var(--line); border-radius: 4px; color: var(--dim); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
  .st-looking { border-color: var(--ink); color: var(--ink); }
  .st-fixed { border-color: var(--ink); background: var(--ink); color: var(--bg); }
  .search { display: flex; gap: 0.5rem; max-width: 520px; margin-bottom: 1rem; }

  /* ---------- Profile ---------- */
  .profile { display: flex; align-items: center; gap: 1.25rem; padding-top: 1.5rem; }
  .profile h1 { margin: 0 0 0.25rem; color: var(--ink); font-family: "Press Start 2P", ui-monospace, monospace; font-weight: 400; font-size: clamp(1.1rem, 3vw, 1.5rem); overflow-wrap: anywhere; }
  .avatar { flex: none; width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 12px; shape-rendering: crispEdges; }
  .avatar-bg { fill: var(--raise); }
  .avatar-px { fill: var(--ink); }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; padding-top: 1.5rem; }
  @media (max-width: 520px) { .stats { grid-template-columns: minmax(0, 1fr); } }
  .stat { padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; }
  .stat b { display: block; color: var(--ink); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
  .stat span { font-size: 0.78rem; color: var(--dim); }
  .badges { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
  .badges li { display: grid; gap: 0.15rem; justify-items: start; }
  .badges .chip { color: var(--ink); }

  @media (prefers-reduced-motion: reduce) {
    .cursor { animation: none; }
    .card, .card .art { transition: none; }
  }
