/* Static page in the LOBBY kit (client/src/lobby/lobby.css): the hub scene
     behind, dark panels with the 2px #0a0d16 edge, gold Pixel-Gun title, green
     keycap = the one "go play" action, blue keycaps for everything else. */
  :root { color-scheme: dark; --panel: #262a3a; --panel-2: #303548; --edge: #0a0d16; --text: #fff; --text-2: #c9cdd3; --muted: #7c8296; }
  * { box-sizing: border-box; }
  html, body { margin: 0; background: #1b1e2b; color: var(--text); font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; line-height: 1.55; }
  .scene { position: fixed; inset: 0; z-index: 0; background: url('/assets/ui/lobby-bg.webp') center / cover no-repeat; filter: brightness(0.55) saturate(0.9); }
  .scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,30,43,.15), rgba(27,30,43,.75) 60%, #1b1e2b); }
  .wrap { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 22px 20px 56px; }

  .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
  .top img { height: 54px; display: block; filter: drop-shadow(0 3px 0 rgba(0,0,0,.6)); }
  .top .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; } .top .brand .ico { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 0 0 2px #0a0d16; filter: none; }

  /* keycaps — same recipe as #lobby button.keycap-cta / .keycap-dk */
  .key { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px 16px; border: 2px solid #120a02; border-radius: 0; font-weight: 800; font-size: 17px; color: #fff; text-decoration: none; cursor: pointer; transition: transform .05s, box-shadow .05s, filter .1s; white-space: nowrap; }
  .key:active { transform: translateY(2px); }
  .key.go { background: linear-gradient(180deg, #05e02a, #05c400); box-shadow: inset 0 3px 0 rgba(255,255,255,.4), inset 0 -8px 0 #0a8a0a; }
  .key.go:hover { filter: brightness(1.07) saturate(1.05); }
  .key.go:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -4px 0 #0a8a0a; }
  .key.dk { background: linear-gradient(180deg, #2ed3ff, #1668f0); box-shadow: inset 0 3px 0 rgba(255,255,255,.4), inset 0 -8px 0 #0e46b4; }
  .key.dk:hover { filter: brightness(1.14); }
  .key.dk:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -4px 0 #0e46b4; }
  .key.big { font-size: 24px; padding: 12px 30px 20px; }
  .key.big .pg { -webkit-text-stroke: 4px #000; }
  .key.big .pg::before { -webkit-text-stroke: 4px #000; color: #000; transform: translateY(2px); }
  /* Pixel-Gun label: outline + dark bottom extrude (a copy of the text pushed down) */
  .pg { position: relative; z-index: 0; display: inline-block; white-space: nowrap; color: #fff; -webkit-text-stroke: 3px #16160f; paint-order: stroke fill; }
  .pg::before { content: attr(data-text); position: absolute; left: 0; top: 0; transform: translateY(1.5px); color: #16160f; -webkit-text-stroke: 3px #16160f; paint-order: stroke fill; z-index: -1; pointer-events: none; white-space: nowrap; }

  /* gold page title — the lobby's .page-title recipe */
  h1, h2 { font-weight: 800; letter-spacing: .5px; color: #ffdc3f; -webkit-text-fill-color: #ffdc3f; -webkit-text-stroke: 4px #17110a; paint-order: stroke fill; margin: 0; line-height: 1.15;
    text-shadow: 0 1px 0 #7a4208, 0 2px 0 #7a4208, 0 3px 0 #7a4208, -2px 1px 0 #17110a, 2px 1px 0 #17110a, -2px 2px 0 #17110a, 2px 2px 0 #17110a, -2px 3px 0 #17110a, 2px 3px 0 #17110a, 0 4px 0 #17110a, -1px 4px 0 #17110a, 1px 4px 0 #17110a; }
  h1 { font-size: 38px; }
  h2 { font-size: 26px; margin: 34px 0 12px; }

  .panel { background: var(--panel); border: 2px solid var(--edge); box-shadow: inset 0 2px 0 rgba(255,255,255,.07), 0 8px 26px rgba(0,0,0,.35); }
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
  .hero > div { padding: 26px 26px 24px; }
  .hero img { width: 100%; height: 100%; object-fit: cover; display: block; border-left: 2px solid var(--edge); }
  .lead { font-size: 17px; color: var(--text-2); margin: 12px 0 18px; }
  .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
  .kstat { background: #0e1219; border: 2px solid var(--edge); box-shadow: inset 0 2px 0 rgba(0,0,0,.5); padding: 8px 10px; }
  .kstat .k { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .kstat .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }

  .feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
  .feats li { padding: 12px 14px; font-size: 15px; color: var(--text-2); }
  .feats b { color: #fff; display: block; margin-bottom: 2px; }
  .pill { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid #ff9e00; background: linear-gradient(180deg, #ffd40022, #ff9e0033); color: #ffd76a; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }

  .maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
  .maps figure { margin: 0; overflow: hidden; }
  .maps img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
  .maps figcaption { background: #000; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-top: 2px solid var(--edge); }

  .about p { margin: 0 0 10px; font-size: 15.5px; color: var(--text-2); }
  .about { padding: 16px 20px; }
  a.lnk { color: #2ed3ff; text-decoration: none; font-weight: 700; } a.lnk:hover { text-decoration: underline; }
  .foot { margin-top: 36px; padding-top: 16px; border-top: 2px solid rgba(255,255,255,.08); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
  .foot a { color: var(--text-2); text-decoration: none; font-weight: 700; } .foot a:hover { color: #fff; }

  @media (max-width: 760px) {
    .wrap { padding: 16px 16px 44px; }
    .top img { height: 44px; }
    .hero { grid-template-columns: 1fr; }
    .hero img { border-left: none; border-top: 2px solid var(--edge); order: -1; max-height: 200px; }
    h1 { font-size: 30px; } h2 { font-size: 22px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .key { font-size: 15px; padding: 9px 16px 14px; }
    .key.big { font-size: 20px; padding: 10px 22px 16px; width: 100%; }
    .acts a:not(.big) { flex: 1 1 45%; }
  }

  /* ---- /guide pages (server/src/wiki-pages.ts) on top of the /about kit ---- */
  .crumbs { font-size: 13px; color: var(--muted); margin: -10px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
  .crumbs a { color: var(--text-2); text-decoration: none; font-weight: 700; } .crumbs a:hover { color: #fff; }
  .art { padding: 18px 22px; }
  .art p, .art li { font-size: 15.5px; color: var(--text-2); max-width: 72ch; }
  .art p { margin: 0 0 12px; } .art ul, .art ol { margin: 0 0 12px; padding-left: 22px; } .art li { margin: 0 0 6px; }
  .art b, .art strong { color: #fff; }
  .art h3 { font-size: 18px; margin: 18px 0 8px; color: #fff; }
  .kv { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .kv th, .kv td { text-align: left; padding: 8px 12px; border-bottom: 2px solid #0a0d16; font-size: 14.5px; }
  .kv th { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; background: #0f131c; }
  .kv td { color: var(--text-2); } .kv td b { color: #fff; }
  .tblwrap { overflow-x: auto; }
  .tblwrap.sales { max-height: 300px; overflow-y: auto; } /* every sale, newest first, scrolls inside the box (owner 2026-11-03) */
  .tblwrap.sales th { position: sticky; top: 0; }
  .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
  .card { display: block; text-decoration: none; color: inherit; overflow: hidden; }
  .card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #0e1219; border-bottom: 2px solid var(--edge); }
  .card img.gun { object-fit: contain; padding: 10px; }
  /* lobby icons and the app icon sit centred in the tile with margin, never cropped */
  .card img.icon { object-fit: contain; padding: 14px 22px; background: #0e1219; }
  .card img.icon.sm { padding: 20px 34px; } /* a touch smaller (the news icon on Changelog, owner 2026-11-03) */
  .card img.app { object-fit: contain; padding: 12px; background: #0e1219; } /* the app icon (its corners are rounded in the file) with margin */
  .card img.banner { object-fit: cover; object-position: 22% 50%; } /* the owner's UPDATE banner fills the tile (owner 2026-11-03), character kept in frame */
  .card .ct { padding: 10px 12px 12px; }
  .card .ct b { display: block; color: #fff; font-size: 16px; }
  .card .ct span { font-size: 13.5px; color: var(--text-2); }
  .card:hover b { color: #ffdc3f; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .split > .panel img { width: 100%; display: block; }
  .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border: 1px solid #2ed3ff; color: #9be8ff; margin-left: 6px; vertical-align: middle; }
  .news-item { padding: 18px 22px; margin-bottom: 12px; }
  .news-item time { color: var(--muted); font-size: 13px; font-weight: 700; }
  .news-item img { width: 100%; max-height: 320px; object-fit: cover; display: block; margin: 10px 0 12px; border: 2px solid var(--edge); }
  @media (max-width: 760px) { .split { grid-template-columns: 1fr; } .art { padding: 14px 16px; } }
  /* ---- skin wiki (server/src/wiki-skins.ts) ---- */
  .rar { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border: 1px solid var(--rc); color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }
  .cards.skins { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .card.skin img { aspect-ratio: 16/10; object-fit: contain; padding: 8px; background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--rc) 38%, #0e1219), #0e1219 72%); border-bottom: 3px solid var(--rc); }
  .card.skin.char img { aspect-ratio: 4/5; }
  .card.skin .ct { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
  .card.skin .ct b { font-size: 14.5px; line-height: 1.25; }
  .skinart { background: radial-gradient(ellipse at 50% 58%, color-mix(in srgb, var(--rc) 40%, #0e1219), #0e1219 75%); border-bottom: 3px solid var(--rc); display: flex; align-items: center; justify-content: center; padding: 18px; }
  .skinart img { width: 100%; max-height: 320px; object-fit: contain; }
  .skinart.char img { max-height: 380px; width: auto; }
  .chart { padding: 10px 12px 6px; } .chart svg { width: 100%; height: auto; display: block; }
  .chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-bottom: 6px; }
  .ptabs { display: flex; gap: 4px; }
  .ptabs a { padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c9cedb; text-decoration: none; background: #0e1219; border: 2px solid #0a0d16; }
  .ptabs a.on { background: #2b7bff; color: #fff; }
  .chart-stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .chart-stats b { color: #fff; }
  .chart { position: relative; }
  .chart-tip { position: absolute; z-index: 3; pointer-events: none; background: #0e1219; border: 2px solid #0a0d16; padding: 5px 9px; font-size: 12.5px; color: #c9cedb; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
  .chart-tip b { color: #fff; }
  .chart svg circle.pt { transition: r .1s; } .chart svg circle.pt.hot { r: 6; }
  .jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
  .jump a { padding: 6px 12px; background: var(--panel-2); border: 2px solid var(--edge); color: #fff; font-weight: 800; font-size: 13.5px; text-decoration: none; }
  .jump a:hover { background: #3a4058; }
  @media (max-width: 760px) { .cards.skins { grid-template-columns: repeat(2, 1fr); } }

  /* ---- wiki layout (wiki-shell.ts page(): body.wiki) ---- */
  body.wiki .scene { filter: brightness(0.4) saturate(0.85); }
  .gh { position: sticky; top: 0; z-index: 40; background: rgba(21, 24, 35, .97); border-bottom: 2px solid var(--edge); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
  .ghin { max-width: 1280px; margin: 0 auto; padding: 9px 20px; display: flex; align-items: center; gap: 14px; }
  .gh .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
  .gh .brand .ico { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 2px #0a0d16; }
  .gh .brand .logo { height: 34px; display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
  .wtag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #17110a; background: #ffdc3f; padding: 2px 7px; }
  .gsearch { position: relative; flex: 1; max-width: 560px; margin-left: auto; }
  .gsearch input, .herosearch input { width: 100%; font: inherit; font-size: 15px; color: #fff; background: #0e1219; border: 2px solid var(--edge); box-shadow: inset 0 2px 0 rgba(0,0,0,.5); padding: 9px 40px 9px 12px; outline: none; border-radius: 0; -webkit-appearance: none; }
  .gsearch input:focus, .herosearch input:focus { border-color: #2ed3ff; }
  .gsearch input::placeholder, .herosearch input::placeholder { color: #747b90; }
  .gsearch button { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 38px; border: 0; background: none; color: #9aa1b4; font-size: 20px; cursor: pointer; }
  .gsearch button:hover { color: #fff; }
  .gh .key.go { padding: 7px 16px 11px; font-size: 15px; flex: none; }
  .menu-btn, .gclose { display: none; }

  .gres { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; background: var(--panel); border: 2px solid var(--edge); box-shadow: 0 14px 34px rgba(0,0,0,.55); max-height: min(70vh, 520px); overflow-y: auto; }
  .gres a.gr { display: flex; align-items: center; gap: 10px; padding: 7px 10px; text-decoration: none; color: var(--text-2); border-left: 3px solid var(--rc, transparent); }
  .gres a.gr img, .gres a.gr .noimg { width: 52px; height: 34px; object-fit: contain; flex: none; background: #0e1219; }
  .gres a.gr b { display: block; color: #fff; font-size: 14.5px; line-height: 1.25; }
  .gres a.gr small { font-size: 12px; color: var(--muted); }
  .gres a.gr:hover, .gres a.gr.on { background: var(--panel-2); }
  .gres .gnone { padding: 12px; color: var(--muted); font-size: 14px; }
  .gres a.gall { display: block; padding: 9px 12px; border-top: 2px solid var(--edge); color: #2ed3ff; font-weight: 700; font-size: 13.5px; text-decoration: none; background: #1f2331; }
  .gres a.gall:hover { text-decoration: underline; }

  .gl { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 20px 20px 56px; display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 26px; align-items: start; }
  .gside { position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto; background: rgba(38, 42, 58, .92); border: 2px solid var(--edge); padding: 6px 0; scrollbar-width: thin; }
  .gside details.sec + details.sec { border-top: 1px solid rgba(255,255,255,.06); }
  .gside summary { list-style: none; cursor: pointer; padding: 8px 14px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffdc3f; display: flex; justify-content: space-between; align-items: center; }
  .gside summary::-webkit-details-marker { display: none; }
  .gside summary::after { content: '▸'; color: var(--muted); transition: transform .15s; }
  .gside details[open] > summary::after { transform: rotate(90deg); }
  .gside ul { list-style: none; margin: 0 0 6px; padding: 0; }
  .gside li a { display: block; padding: 5px 14px 5px 18px; color: var(--text-2); text-decoration: none; font-size: 14px; border-left: 3px solid transparent; }
  .gside li a:hover { color: #fff; background: rgba(255,255,255,.04); }
  .gside li a.on { color: #fff; font-weight: 700; border-left-color: #ffdc3f; background: rgba(255, 220, 63, .08); }
  .gm { min-width: 0; }
  body.wiki .crumbs { margin: 0 0 10px; }
  body.wiki h1 { font-size: 36px; }
  .sub { margin: 8px 0 0; color: var(--text-2); font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .toc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 16px 0 0; padding: 10px 14px; background: rgba(14, 18, 25, .8); border: 2px solid var(--edge); font-size: 14px; }
  .toc b { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
  .toc a { color: #2ed3ff; text-decoration: none; font-weight: 700; } .toc a:hover { text-decoration: underline; }
  body.wiki h2[id], body.wiki .panel[id] { scroll-margin-top: 80px; }

  /* infobox: right column beside the article (top on phones) */
  .gart { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "content box"; gap: 20px; align-items: start; margin-top: 16px; }
  .gcontent { grid-area: content; min-width: 0; } .gcontent > .toc:first-child { margin-top: 0; } .gcontent > .panel.art:first-of-type { margin-top: 12px; }
  .infobox { grid-area: box; position: sticky; top: 74px; background: var(--panel); border: 2px solid var(--edge); box-shadow: 0 8px 26px rgba(0,0,0,.35); }
  .infobox .skinart { border-bottom: 3px solid var(--rc); padding: 14px; }
  .infobox .skinart img { max-height: 200px; }
  .infobox .skinart.char img { max-height: 260px; }
  .ibname { padding: 8px 12px; font-weight: 800; font-size: 16px; color: #fff; text-align: center; background: color-mix(in srgb, var(--rc) 22%, #1f2331); border-bottom: 2px solid var(--edge); }
  .kv.ib th, .kv.ib td { padding: 7px 12px; font-size: 13.5px; text-transform: none; letter-spacing: 0; }
  .kv.ib th { width: 44%; color: var(--muted); font-weight: 700; background: #222636; }
  .kv.ib td { color: #fff; font-weight: 700; }
  .rh { font-size: 17px; color: #fff; margin: 18px 0 10px; }
  .more { margin: 12px 0 0; font-size: 14.5px; }
  .pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; padding-top: 14px; border-top: 2px solid rgba(255,255,255,.08); font-size: 14px; }
  .pager a { color: #2ed3ff; font-weight: 700; text-decoration: none; padding: 8px 12px; background: var(--panel); border: 2px solid var(--edge); max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pager a:hover { background: var(--panel-2); } .pager span { color: var(--muted); font-variant-numeric: tabular-nums; }

  /* skin browser */
  .filters { margin-top: 14px; padding: 10px 14px; display: grid; gap: 8px; }
  .frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .frow[hidden] { display: none; }
  .fl { width: 74px; flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .chip { padding: 4px 10px; font-size: 13px; font-weight: 700; color: var(--text-2); text-decoration: none; background: #1f2331; border: 2px solid var(--edge); border-bottom-color: var(--rc, var(--edge)); }
  .chip:hover { color: #fff; background: var(--panel-2); }
  .chip.on { color: #17110a; background: #ffdc3f; border-color: #17110a; }
  .count { color: var(--text-2); font-size: 14px; margin: 14px 0 10px; } .count b { color: #fff; }
  .card.skin .meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .card[hidden] { display: none; }
  .noresults { color: var(--text-2); padding: 16px 0; }

  /* front page */
  .herosearch { margin-top: 16px; padding: 18px 20px; position: relative; }
  .herosearch label { display: block; font-weight: 800; color: #fff; font-size: 17px; margin-bottom: 10px; }
  .hsrow { display: flex; gap: 10px; align-items: stretch; } .hsrow input { padding: 12px 14px; font-size: 16px; }
  .herosearch .key { padding: 8px 18px 13px; }
  .herosearch .gres { left: 20px; right: 20px; top: calc(100% - 14px); }
  .hublists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hublist { padding: 12px 0 6px; }
  .hublist h3 { margin: 0 14px 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
  .hublist h3 a { color: #ffdc3f; text-decoration: none; } .hublist h3 a:hover { text-decoration: underline; }
  .hublist ul { list-style: none; margin: 0; padding: 0; }
  .hublist li a { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 14px; text-decoration: none; border-left: 3px solid var(--rc); }
  .hublist li a:hover { background: rgba(255,255,255,.04); }
  .hublist img { width: 50px; height: 34px; object-fit: contain; background: #0e1219; }
  .hublist .ln { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .hublist .ln b { color: #fff; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .hublist .ln .rar { font-size: 9.5px; }
  .hublist .rv { text-align: right; color: #fff; font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .hublist .rv small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }

  /* search results page */
  .sresults { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
  .sres { display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-decoration: none; border-left: 3px solid var(--rc, var(--edge)); }
  .sres img, .sres .noimg { width: 64px; height: 42px; object-fit: contain; background: #0e1219; flex: none; }
  .sres b { display: block; color: #fff; font-size: 15px; } .sres .st span { color: var(--muted); font-size: 13px; }
  .sres:hover b { color: #ffdc3f; }

  @media (max-width: 1080px) {
    .hublists { grid-template-columns: 1fr 1fr; }
    .gart { grid-template-columns: minmax(0, 1fr) 260px; }
  }
  @media (max-width: 900px) {
    .ghin { padding: 8px 12px; gap: 8px; }
    .gh .brand .logo { display: none; }
    .gh .key.go { padding: 6px 12px 10px; font-size: 14px; }
    .menu-btn { display: inline-flex; align-items: center; flex: none; padding: 8px 12px; font-weight: 800; font-size: 14px; color: #fff; text-decoration: none; background: var(--panel-2); border: 2px solid var(--edge); }
    .gl { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 44px; z-index: auto; } /* no stacking context: the drawer must rise over the header + backdrop */
    /* the drawer comes from the RIGHT, under the Menu button that opened it
       (owner 2026-11-03: a left-side drawer felt wrong on a phone), with its
       own Close row at the top; tapping the dimmed page closes it too */
    .gside { position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(300px, 84vw); max-height: none; z-index: 60; transform: translateX(105%); transition: transform .2s ease; background: #232737; padding-top: 0; box-shadow: -10px 0 30px rgba(0,0,0,.5); }
    .gclose { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; margin-bottom: 4px; color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; border-bottom: 2px solid #0a0d16; background: #1b1e2b; }
    .gclose span { font-size: 18px; line-height: 1; }
    body.navopen .gside, .gside:target { transform: none; }
    body.navopen::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
    .gart { grid-template-columns: minmax(0, 1fr); grid-template-areas: "box" "content"; }
    .infobox { position: static; }
    .hublists { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    .gh .brand .wtag { display: none; }
    body.wiki h1 { font-size: 28px; }
    .fl { width: 100%; }
    .hsrow { flex-direction: column; } .herosearch .key { width: 100%; }
    .pager a { max-width: 40%; }
  }
  @media (prefers-reduced-motion: reduce) { .gside { transition: none; } .gside summary::after { transition: none; } }

  /* ---- Armory look for the wiki (owner 2026-11-02: no background picture) ----
     Flat lobby ground, the black title band, #23263a panels, blue = selected,
     rarity-colour item cards with the Armory's gun tilt (InventoryPanel.vue). */
  body.wiki { background: #1b1e2b; }
  body.wiki .gh { background: #0f131c; box-shadow: none; }
  body.wiki .panel, body.wiki .gside, body.wiki .infobox { background: #23263a; border: 2px solid #0a0d16; box-shadow: none; }
  body.wiki .toc { background: #0e1219; }
  .gside summary { color: #c9cdd3; }
  .gside details[open] > summary { color: #fff; }
  .gside li a.on { border-left-color: #2b9df5; background: #1a2440; color: #fff; }
  .menu-btn { background: #0e1219; }

  /* filters = the Armory tab strip: dark well, blue active tab */
  body.wiki .filters { background: #23263a; }
  .frow { gap: 2px; }
  .frow .fl { margin-right: 8px; }
  .chip { background: #0e1219; border: 0; border-bottom: 0; color: #9aa1b4; font-size: 12.5px; font-weight: 800; padding: 6px 12px; box-shadow: inset 0 2px 0 rgba(0,0,0,.5); }
  .chip:hover { color: #fff; background: #151a25; }
  .chip.on { background: linear-gradient(180deg, #2b9df5, #1668f0); color: #fff; border: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }

  /* item cards */
  .cards.skins { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .card.skin { display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 50% 42%, var(--rc), color-mix(in srgb, var(--rc) 70%, #000 30%)); border: 3px solid color-mix(in srgb, var(--rc) 50%, #fff 50%); transition: filter .12s; }
  .card.skin:hover { filter: brightness(1.12); }
  .card.skin .si { height: 104px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .card.skin .si img { width: 110px; height: 70px; object-fit: contain; aspect-ratio: auto; padding: 0; border: 0; background: none; display: block; }
  .card.skin.char .si { height: 150px; } .card.skin.char .si img.body { width: auto; height: 136px; }
  .card.skin .nb { background: rgba(0,0,0,.55); padding: 6px 8px 7px; text-align: center; display: flex; flex-direction: column; gap: 1px; margin-top: auto; }
  .card.skin .nb b { color: #fff; font-size: 12.5px; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card.skin .nb .meta { font-size: 11px; color: #c9cdd3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card.skin .nb .meta i { font-style: normal; font-weight: 800; }
  .card.skin:hover b { color: #fff; }
  /* the Armory card gun tilt (InventoryPanel .item-img.diag, tuned via /gun-editor.html) */
  .diag { transform: scaleX(-1) rotate(34deg) scale(1.5); }
  .diag.w-rifle { transform: translate(4px, 0px) scaleX(-1) rotate(23deg) scale(1.78); }
  .diag.w-pistol { transform: translate(4px, -4px) scaleX(-1) rotate(17deg) scale(1.66); }
  .diag.w-shotgun { transform: translate(0px, -8px) scaleX(-1) rotate(23deg) scale(1.96); }
  .diag.w-sniper { transform: translate(3px, -13px) scaleX(-1) rotate(26deg) scale(2.1); }
  .diag.w-mg { transform: translate(8px, 3px) scaleX(-1) rotate(28deg) scale(2.24); }
  .diag.w-knife { transform: translate(1px, -12px) scaleX(-1) rotate(28deg) scale(2.92); }
  .diag.w-launcher { transform: translate(-6px, -23px) scaleX(-1) rotate(23deg) scale(2.18); }

  /* infobox picture = a big Armory card */
  .infobox .skinart { height: 210px; padding: 0; overflow: hidden; background: radial-gradient(circle at 50% 42%, var(--rc), color-mix(in srgb, var(--rc) 70%, #000 30%)); border-bottom: 3px solid color-mix(in srgb, var(--rc) 50%, #fff 50%); }
  .infobox .skinart img.diag { width: 150px; height: 96px; max-height: none; object-fit: contain; }
  .infobox .skinart img.body, .infobox .skinart.char img { height: 190px; width: auto; max-height: none; }
  .infobox .skinart:not(.char) img:not(.diag):not(.body) { max-height: 170px; width: auto; }
  .ibname { background: rgba(0,0,0,.55); }
  .kv.ib th { background: #1d2031; }
  body.wiki .kv th { background: #0e1219; }
  .pager a, body.wiki .chart { background: #23263a; }
  .hublist li a { border-left-color: color-mix(in srgb, var(--rc) 70%, #000); }
  .card.skin[hidden] { display: none; }
  .card.skin .si, .card.skin.char .si { height: 128px; } .card.skin.char .si img.body { height: 116px; }

  /* ---- in-game wiki (the lobby's Wiki panel frames these pages; html.emb is set
     by an inline head script when framed): the game already has its brand bar,
     Play button and legal links, so the wiki drops its own. ---- */
  html.emb .gh .brand, html.emb .gh .key.go, html.emb .foot { display: none; }
  html.emb .gsearch { margin-left: 0; max-width: none; }
  html.emb .ghin { max-width: none; padding: 8px 14px; }
  html.emb .gl { max-width: none; padding: 14px 14px 28px; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
  html.emb .gside { top: 62px; max-height: calc(100vh - 76px); }
  html.emb .infobox { top: 62px; }
  @media (max-width: 900px) { html.emb .gl { grid-template-columns: minmax(0, 1fr); } }
  html.emb h1.emb-hide { display: none; } /* wiki home in-game: the lobby page title already reads "Wiki" (the website keeps its h1) */
  html.emb h1.emb-hide + .herosearch { margin-top: 0; }

/* framed by a portal build (html.portal, set from the frame's name): links their rules forbid */
html.portal .ext { display: none; }

/* ---- COMPACT in-game view (html.emb.compact: a touch device with a short frame,
   i.e. a phone in landscape). Owner 2026-11-03: the full wiki was "so much
   information and cramped, hard to navigate" in a 340px-tall panel. One column,
   a row of section tabs under the search (the sidebar stays behind Menu for the
   deep lists), no duplicate hero search or intro on the home page, smaller type
   and tiles. The website and desktop in-game view are untouched. ---- */
.ctabs { display: none; }
html.emb.compact body { font-size: 14px; line-height: 1.45; }
html.emb.compact .ghin { padding: 6px 10px; gap: 8px; }
html.emb.compact .gsearch input { font-size: 14px; padding-top: 7px; padding-bottom: 7px; }
html.emb.compact .menu-btn { padding: 7px 10px; font-size: 13px; }
html.emb.compact .ctabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 10px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html.emb.compact .ctabs::-webkit-scrollbar { display: none; }
html.emb.compact .ctabs a { flex: none; padding: 5px 11px; border: 2px solid #0a0d16; background: #23263a; color: #c9cedb; text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
html.emb.compact .ctabs a.on { background: #2b7bff; color: #fff; border-color: #0a0d16; }
html.emb.compact .gl { padding: 8px 10px 20px; gap: 10px; }
html.emb.compact .gside { top: 0; bottom: 0; max-height: none; } /* the drawer covers the full frame height (it is fixed on phones) */
html.emb.compact .hub-intro, html.emb.compact .herosearch, html.emb.compact .crumbs { display: none; }
html.emb.compact h1 { font-size: 20px; margin: 4px 0 8px; }
html.emb.compact h2 { font-size: 15px; margin: 14px 0 8px; }
html.emb.compact h3 { font-size: 14px; margin: 10px 0 6px; }
html.emb.compact .art { padding: 10px 12px; }
html.emb.compact .panel { box-shadow: none; }
html.emb.compact .cards { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
html.emb.compact .cards.skins { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* skin cards lie wider than tall in a short frame (owner 2026-11-03: 'squashed') */
/* one picture-box height for weapon AND character cards so a mixed row lines
   up; the gun sits well inside its box with margin on every side (owner 2026-11-03) */
/* the Armory gun tilts (.diag.w-*) are tuned for a 110×70 image in a 104px box, so
   keep that geometry and shrink the whole picture box with zoom; guns sit a little
   lower than the Armory's centre (owner 2026-11-03) */
html.emb.compact .card.skin .si, html.emb.compact .card.skin.char .si { height: 104px; zoom: .86; padding-top: 16px; box-sizing: border-box; }
html.emb.compact .card.skin .si img { width: 110px; height: 70px; }
html.emb.compact .card.skin.char .si { padding-top: 4px; } html.emb.compact .card.skin.char .si img.body { height: 94px; }
html.emb.compact .card.skin .nb { padding: 4px 6px 5px; }
html.emb.compact .card:not(.skin) img { height: 64px; }
html.emb.compact .card img.icon { padding: 6px 14px; }
html.emb.compact .card img.icon.sm { padding: 10px 22px; }
html.emb.compact .hublist h3 { margin: 10px 14px 6px; } /* keep the list headings' side margin (the compact h3 rule had flattened it) */
html.emb.compact .hublist li a { padding: 6px 14px; }
html.emb.compact .card img.app { padding: 5px; }
html.emb.compact .card .ct { padding: 6px 8px 8px; }
html.emb.compact .card .ct b { font-size: 12.5px; }
html.emb.compact .card .ct span { display: none; }
html.emb.compact .gart { grid-template-areas: "box" "content"; }
html.emb.compact .infobox { position: static; margin-bottom: 10px; }
html.emb.compact .gart { grid-template-columns: minmax(0, 1fr); }
html.emb.compact table { font-size: 12px; }
html.emb.compact th, html.emb.compact td { padding: 5px 8px; }
html.emb.compact .toc { display: none; }
html.emb.compact .foot { display: none; }
/* skin pages: the infobox lies sideways — art left, facts right — instead of a
   full-height picture over a 340px panel */
html.emb.compact .infobox { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
/* a landscape card: art on the left filling the full height, name + a 2-column
   grid of fact chips on the right (owner 2026-11-03, third cut) */
html.emb.compact .infobox { grid-template-columns: 300px minmax(0, 1fr); gap: 0; } /* art 300 wide (owner 2026-11-03) */
html.emb.compact .infobox .skinart { height: auto; min-height: 150px; align-self: stretch; grid-row: 1 / span 2; grid-column: 1; }
html.emb.compact .infobox .ibname { grid-row: 1; grid-column: 2; font-size: 17px; padding: 8px 10px 4px; text-align: left; }
html.emb.compact .infobox table.kv.ib { grid-row: 2; grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 10px 10px; align-content: start; }
html.emb.compact .infobox table.kv.ib tbody { display: contents; }
html.emb.compact .infobox table.kv.ib tr { display: flex; flex-direction: column; gap: 1px; background: #171a27; border: 2px solid #0a0d16; padding: 5px 8px; min-width: 0; }
html.emb.compact .infobox table.kv.ib th, html.emb.compact .infobox table.kv.ib td { padding: 0; border: 0; background: none; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.emb.compact .infobox table.kv.ib th { font-size: 9.5px; letter-spacing: .1em; }
html.emb.compact .infobox .ibname { padding: 8px 10px 4px; }
html.emb.compact .infobox table.kv.ib { font-size: 12px; }
html.emb.compact .infobox .skinart img.body, html.emb.compact .infobox .skinart.char img { height: 230px; }
html.emb.compact .infobox .skinart img.diag { width: 210px; height: 135px; } /* room around the gun (owner 2026-11-03) */
html.emb.compact .infobox .skinart:not(.char) img:not(.diag):not(.body) { max-height: 120px; }

/* safe-area insets handed over by the game's phone overlay (--sal/--sar/--sab,
   wiki-shell head script): the header band and panels run edge to edge, their
   contents and the page keep clear of the notch and the home bar */
html.emb { --sal: 0px; --sar: 0px; --sab: 0px; }
html.emb .ghin { padding-left: calc(14px + var(--sal)); padding-right: calc(14px + var(--sar)); }
html.emb.compact .ghin { padding-left: calc(10px + var(--sal)); padding-right: calc(10px + var(--sar)); }
/* the scrolling tab row stops at the safe margins instead of running under the
   notch (owner's iPhone 2026-11-03): margins instead of padding (Safari drops the
   trailing padding of a scroller), an end spacer, and a fade on the right edge
   so the cut-off reads as "more to scroll" */
html.emb.compact .ctabs { margin: 0 var(--sar) 0 var(--sal); padding: 0 10px 8px; mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
html.emb.compact .ctabs::after { content: ''; flex: none; width: 22px; }
html.emb .gl { padding-left: calc(14px + var(--sal)); padding-right: calc(14px + var(--sar)); padding-bottom: calc(28px + var(--sab)); }
html.emb.compact .gl { padding-left: calc(10px + var(--sal)); padding-right: calc(10px + var(--sar)); padding-bottom: calc(20px + var(--sab)); }
html.emb .gside { padding-right: var(--sar); }
