/* ROB RUN Wiki V4 (11-20): the wiki shell and the database pages. Loaded after style.css and built on its tokens
   (warm near-black, gold = the visitor's own thing and the one main action, bronze = quiet second accent).
   Three layouts, made separately:
   - phone upright (base): top bar with the search, bottom bar of five tabs;
   - phone sideways (min-width 600 and max-height 500): the five tabs as a left rail, the top bar is the first row;
   - wide (1000 up and taller than 500): top bar, a left column of sections with counts (home, the map and the
     forum use the whole width and carry the section links in the top bar).
   No inline styles anywhere (CSP): sizes are classes, map pins and bars are SVG attributes. */
:root { --header: 56px; --tabbar: 64px; --rail: 0px; --strip: 0px; --side: 0px;
  --r-uncommon: #7fd08a; --r-rare: #7fb2f0; --r-epic: #b79cf0; --r-legendary: #f59e42; --r-exotic: #ff7b72; }
@media (min-width: 1000px) and (min-height: 501px) { :root { --header: 64px; --tabbar: 0px; --side: 240px; } }
@media (min-width: 600px) and (max-height: 500px) { :root { --header: 0px; --tabbar: 0px; --rail: 76px; } }

/* ---- Top bar ---- */
.top { position: sticky; top: 0; z-index: 50; height: var(--header); display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.top a { text-decoration: none; }
.top .brand { min-height: 44px; font: 700 20px/1 var(--display); letter-spacing: 0; }
.top .brand span { display: none; }
.top .brand b { font-weight: 700; color: var(--under); }
.top .mark { width: 32px; height: 32px; border-radius: 8px; }
.top-nav { display: none; }
.top-search { position: relative; flex: 1; min-width: 0; }
.top-q { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); }
.top-q:focus-within { border-color: var(--soft); }
.top-q input { flex: 1; min-width: 0; height: 40px; background: transparent; border: 0; outline: 0; color: var(--ink); font: 400 16px var(--font); }
.top-q input::placeholder, .h4-q input::placeholder { color: var(--muted); opacity: 1; }
.top-q kbd, .h4-q kbd { display: none; font: 400 12px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; }
.top-gap { display: none; }
/* Home has its own big search under the title: on phones the top bar shows the name instead of a second box. */
.is-home .top-search { display: none; }
.is-home .top .brand span { display: inline; }
.is-home .top-srv { margin-left: auto; }
.top-srv { flex: none; display: flex; }
.ts { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ts:hover { border-color: var(--soft); color: var(--ink); }
.ts .ic { flex: none; }
.ts-l { display: none; }
.ts-set { border-color: var(--gold-line); }
.ts-set .srv { display: none; }
.ts-left { display: inline-flex; align-items: center; gap: 6px; }
.ts-left .ic { color: var(--muted); }
.top > .lang { display: none; border-color: var(--line); border-radius: 10px; font-size: 13px; }
.top > .lang a, .top > .lang span { min-height: 44px; padding: 0 12px; }
.top > .lang span { background: var(--surface-2); }
.legal-row .foot-lang { margin-left: auto; }
.search-hits { border-color: var(--line-2); border-radius: 12px; max-height: min(70vh, 520px); overflow-y: auto; }
.top-search .search-hits { top: calc(100% + 8px); }
@media (max-width: 599px) { .top-search .search-hits { position: fixed; left: 8px; right: 8px; top: calc(var(--header) + 4px); } }

/* ---- Shell: left column (wide), tabs (phones) ---- */
.shell-main { min-width: 0; }
.side { display: none; }
.v4tabs { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--surface); font: 600 11px/1.2 var(--font); }
.v4tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; color: var(--muted); text-decoration: none; }
.v4tab[aria-current="page"] { color: var(--gold); }
.v4tab:hover { color: var(--ink); }
.v4tab[aria-current="page"]:hover { color: var(--gold-hi); }
.v4tabs-brand { display: none; }

@media (min-width: 1000px) and (min-height: 501px) {
  .v4tabs { display: none; }
  .top { gap: 24px; padding: 0 24px; }
  .top .brand span { display: inline; }
  .has-side .top .brand { width: 204px; }
  .top-search { max-width: 560px; }
  .top-q { gap: 10px; padding: 0 14px; }
  .top-q input { font-size: 15px; }
  .top-q kbd, .h4-q kbd { display: inline; }
  .top-srv { margin-left: auto; }
  .ts { padding: 0 14px; }
  .ts-l { display: inline; }
  .ts-set .srv { display: inline-flex; }
  .top > .lang { display: inline-flex; }
  .legal-row .foot-lang { display: none; }
  .is-app .top-nav { display: flex; align-items: center; gap: 28px; flex: none; font: 500 15px var(--font); }
  .top-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
  .top-nav a:hover { color: var(--gold-hi); }
  .top-nav a[aria-current="page"] { color: var(--gold); }
  .is-app .top { gap: 32px; }
  .is-home .top { padding: 0 max(40px, calc((100% - 1200px) / 2 + 40px)); }
  .is-home .top-search { display: none; }
  .is-app .top-search { max-width: 360px; }
  .shell { display: flex; align-items: stretch; }
  .shell-main { flex: 1; }
  .side { display: block; flex: none; width: var(--side); box-sizing: border-box; padding: 16px 12px 32px; border-right: 1px solid var(--line); font-size: 14px; line-height: 1.3; position: sticky; top: var(--header); align-self: flex-start; height: calc(100vh - var(--header)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  .side-h { display: block; margin: 18px 0 6px; padding: 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
  a.side-h:hover { color: var(--ink); }
  .side-g > a:not(.side-h) { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
  .side-g > a:not(.side-h):hover { background: var(--surface); color: var(--ink); }
  .side-g > a:not(.side-h)[aria-current="page"], .side-g > a.is-on { background: var(--surface-2); font-weight: 600; }
  a.side-h[aria-current="page"] { color: var(--ink); }
  .side-n { font: 400 12px var(--mono); color: var(--muted); }
  .side-g > a[aria-current="page"] .side-n, .side-g > a.is-on .side-n { color: var(--gold); }
}
@media (min-width: 600px) and (max-height: 500px) {
  .v4tabs { left: 0; top: 0; right: auto; bottom: 0; width: var(--rail); height: auto; display: flex; flex-direction: column; align-items: stretch; padding: 0 0 env(safe-area-inset-bottom, 0px); border-top: 0; border-right: 1px solid var(--line); }
  .v4tabs-brand { display: flex; flex: none; height: 54px; align-items: center; justify-content: center; }
  .v4tabs-brand .mark { width: 32px; height: 32px; border-radius: 8px; }
  .v4tab { flex: 1; gap: 3px; }
  .v4tab .ic { width: 20px; height: 20px; }
  .top { position: static; height: auto; border: 0; padding: 12px 20px 0; gap: 10px; }
  .top .brand { display: none; }
  .is-home .top-search { display: block; }
  .ts-l { display: inline; font-size: 13px; }
  .ts { padding: 0 12px; }
}
/* The site footer inside the main column. */
.site-footer .wrap { max-width: 1200px; margin: 0; }
.is-app .site-footer .wrap { margin: 0 auto; }

/* ---- Shared bits of database pages ---- */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.db .muted, .home4 .muted { color: var(--muted); }
.db a, .home4 a { text-decoration: none; }
.db a:hover, .home4 a:hover { color: var(--gold-hi); }
.db a.ul, .db .ul { text-decoration: underline; text-decoration-color: var(--under); text-underline-offset: 3px; }
.r { font-weight: 500; } .r1 { color: var(--muted); } .r2 { color: var(--r-uncommon); } .r3 { color: var(--r-rare); } .r4 { color: var(--r-epic); } .r5 { color: var(--r-legendary); } .r6 { color: var(--r-exotic); }
.icw { flex: none; display: flex; align-items: center; justify-content: center; }
.icw img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.icw-24 { width: 28px; height: 22px; } .icw-56 { width: 56px; height: 40px; } .icw-72 { width: 72px; height: 52px; } .icw-88 { width: 88px; height: 64px; }
.db { box-sizing: border-box; padding: 12px 16px 24px; font-size: 15px; line-height: 1.45; }
.db h1 { margin: 0; font: 700 28px/1.1 var(--display); letter-spacing: 0; text-wrap: balance; }
.db h2 { margin: 24px 0 10px; font: 700 17px/1.3 var(--font); letter-spacing: 0; }
.db-p { margin: 0 0 10px; max-width: 640px; }
.db-p.muted { margin: 8px 0 0; font-size: 13px; }
.crumbs2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.crumbs2 a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); }
.crumbs2 [aria-current] { color: var(--ink); }
.db-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 4px 0 12px; }
.db-count { font-size: 13px; color: var(--muted); }
.db-count .mono { color: var(--ink); }
.db-stamp { margin: 0 0 16px; font-size: 12px; color: var(--muted); }
.db-note { margin: 12px 0 0; max-width: 760px; font-size: 12px; color: var(--muted); }
.db .db-h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.db .rel-h { margin: 24px 0 2px; font-size: 16px; font-weight: 700; color: var(--ink); }
.rel { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; }
.rel a { display: flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.rel-t { font-weight: 600; }
.rel-d { font-size: 13px; color: var(--muted); }
.grow { flex: 1; }

/* Segments (the mark, the grade) and filter chips. */
.sw { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 100%; }
.sg { flex-wrap: wrap; max-width: 100%; }
.sw-l { font-size: 13px; color: var(--muted); }
.sg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; font-size: 13px; font-weight: 600; }
.sg a, .sg button { display: flex; align-items: center; height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; white-space: nowrap; }
.sg a[aria-current="true"], .sg button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }
.sg a:hover, .sg button:hover { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 13px var(--font); white-space: nowrap; cursor: pointer; }
.fchip span { font: 500 12px var(--mono); color: var(--muted); }
.fchip[aria-pressed="true"] { background: var(--surface-3); border-color: var(--line-2); }
.fchip:hover { border-color: var(--soft); }
.sortsel { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sortsel span { color: var(--muted); font-weight: 500; }
.sortsel select { height: 40px; max-width: 150px; border: 0; background: transparent; color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.sortsel select option { background: var(--surface); color: var(--ink); }
.mapbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--ink); font: 600 12px var(--font); white-space: nowrap; cursor: pointer; }
.mapbtn:hover { border-color: var(--gold); color: var(--gold-hi); }
.mapbtn .ic { width: 14px; height: 14px; }

/* ---- List pages ---- */
.picks { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 16px; }
.pk { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px; color: var(--ink); }
.pk + .pk { border-top: 1px solid var(--line); }
.pk .icw { display: none; }
.pk-b { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
.pk-l { grid-column: 1; font-size: 11px; font-weight: 600; color: var(--muted); }
.pk-t { grid-column: 1; font-weight: 600; font-size: 14px; }
.pk-d { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; font-weight: 600; white-space: nowrap; text-align: right; }
.pk-s { display: none; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 6px; }
.tbl-wrap { margin: 0; }
.tbl { width: 100%; border-collapse: collapse; }
.db th, .db td { vertical-align: middle; padding: 0; border-bottom: 0; }
.tbl-none { margin: 0; padding: 20px 0; color: var(--muted); }
/* Phones: every row is a card: picture, name and facts, and the number the list is sorted by on the right. */
.tbl, .tbl tbody { display: block; }
.tbl thead { display: none; }
.tbl tr { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tbl tr[hidden] { display: none; }
.tbl tbody th { flex: 1; min-width: 0; padding: 0; text-align: left; font-weight: 400; }
.tbl td.c { display: none; }
.nm { display: flex; align-items: center; gap: 12px; min-height: 60px; color: var(--ink); }
.nm-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nm-t { font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--under); text-underline-offset: 3px; overflow-wrap: anywhere; }
.nm-s, .nm-m, .nm-p { font-size: 12px; color: var(--muted); }
.nm-m { overflow-wrap: anywhere; }
.tbl:not(.tbl-noic) .nm-p { display: none; }
.tbl-noic .nm-s { display: none; }
.c-ph { flex: none; display: flex; flex-direction: column; align-items: flex-end; padding: 0; text-align: right; }
.c-ph b { font: 600 16px/1.2 var(--mono); white-space: nowrap; }
.c-ph span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.c-ph .mapbtn { display: none; }
.tbl .hs { display: none; }
.pips { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.pips i { width: 12px; height: 12px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line-2); }
.pips i.on { background: var(--ink); }
.pips-n { margin-left: 8px; }
.bar { display: inline-flex; align-items: center; gap: 8px; }
.bar svg { width: 52px; height: 6px; }
.bar-bg { fill: var(--surface-2); } .bar-fg { fill: var(--under); }
.bar-n { width: 22px; text-align: right; }
.tbl .sub { display: block; font: 400 11px var(--font); color: var(--muted); }
.note-s { font: 400 12px var(--font); }

/* Tables: wide screens and phones held sideways. */
@media (min-width: 1000px) and (min-height: 501px), (min-width: 600px) and (max-height: 500px) {
  .tbl { display: table; }
  .tbl thead { display: table-header-group; }
  .tbl tbody { display: table-row-group; }
  .tbl tbody[hidden] { display: none; }
  .tbl tr { display: table-row; min-height: 0; }
  .tbl tr[hidden] { display: none; }
  .tbl td.c { display: table-cell; }
  .tbl .c-ph { display: none; }
  .tbl thead th { padding: 0 12px; height: 44px; text-align: right; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line-2); }
  .tbl thead th.c-first, .tbl thead th.c-l { text-align: left; }
  .tbl thead th button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
  .tbl thead th button:hover { color: var(--ink); }
  .tbl thead th[aria-sort] { color: var(--ink); font-weight: 700; background: var(--surface); }
  .arr { width: 10px; text-align: center; }
  th[aria-sort="descending"] .arr::before { content: '↓'; }
  th[aria-sort="ascending"] .arr::before { content: '↑'; }
  .tbl tbody th { padding: 0 12px; height: 64px; border-bottom: 1px solid var(--line); }
  .nm { gap: 14px; min-height: 56px; }
  .nm-s, .nm-t { white-space: nowrap; }
  .nm-m, .nm-p, .tbl-noic .nm-p { display: none; }
  .tbl-noic .nm-s { display: block; }
  .tbl td.c { padding: 0 12px; text-align: right; font: 400 13px var(--mono); white-space: nowrap; border-bottom: 1px solid var(--line); }
  .tbl td.c-l { text-align: left; font: 400 14px var(--font); color: var(--muted); }
  .tbl td.c-ink { color: var(--ink); }
  .tbl td.c-wrap { white-space: normal; min-width: 180px; }
  .tbl td.c-key, .tbl td.is-sorted { background: var(--surface); font-weight: 600; font-size: 15px; color: var(--ink); }
  .tbl td.c-l.c-key, .tbl td.c-l.is-sorted { font-weight: 500; font-size: 14px; }
  .tbl.is-resorted td.c-key:not(.is-sorted) { background: none; font-weight: 400; font-size: 13px; }
  .tbl.is-resorted td.c-l.c-key:not(.is-sorted) { font-size: 14px; color: var(--muted); }
  .sortsel { display: none; }
}
@media (min-width: 1000px) and (min-height: 501px) {
  .db { padding: 28px 40px 56px; max-width: 1200px; font-size: 16px; line-height: 1.5; }
  .db h1 { font-size: 40px; }
  .db h2 { margin: 36px 0 10px; font-size: 18px; }
  .crumbs2 { font-size: 13px; }
  .db-head { justify-content: flex-start; gap: 8px 16px; margin: 10px 0 6px; }
  .db-count { font-size: 15px; }
  .db-stamp { margin-bottom: 24px; font-size: 13px; }
  .db-note { margin-top: 14px; font-size: 13px; }
  .db .db-h2 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
  .db .rel-h { margin: 40px 0 6px; }
  .rel { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .rel a { min-height: 64px; }
  .rel-d { font-size: 14px; }
  .sg a, .sg button { height: 40px; }
  .fchip { height: 40px; }
  .picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 0 0 32px; background: none; border: 0; border-radius: 0; }
  .pk { gap: 16px; min-height: 96px; padding: 12px 18px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
  .pk + .pk { border-top: 1px solid var(--line); }
  .pk:hover { border-color: var(--line-2); }
  .pk .icw { display: flex; }
  .pk-b { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
  .pk-l { font-size: 12px; }
  .pk-t { font-size: 17px; font-weight: 700; }
  .pk-d { font-size: 13px; font-weight: 400; color: var(--muted); white-space: normal; text-align: left; }
  .pk-d b { color: var(--ink); font-weight: 600; }
  .pk-s { display: inline; }
  .pk-s .mono { color: var(--ink); }
  .filters { margin-bottom: 14px; }
  .tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
  .tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
  .tbl tbody tr:hover th, .tbl tbody tr:hover td { background-color: rgba(var(--ink-rgb), .025); }
  .tbl tbody tr:hover td.c-key, .tbl tbody tr:hover td.is-sorted { background-color: var(--surface-2); }
  .tbl-none { padding: 20px 16px; }
}
@media (min-width: 600px) and (max-height: 500px) {
  .db { padding: 10px 20px 20px; font-size: 14px; line-height: 1.4; }
  .db h1 { font-size: 24px; }
  .db h2 { margin: 20px 0 8px; font-size: 16px; }
  .db-list .crumbs2, .db-list .db-stamp, .db-list .picks-h { display: none; }
  .db-head { justify-content: flex-start; gap: 6px 12px; margin: 0 0 10px; }
  .db-count { font-size: 12px; }
  .picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; background: none; border: 0; }
  .pk { min-height: 52px; padding: 4px 10px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
  .pk + .pk { border-top: 1px solid var(--line); }
  .pk-b { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
  .pk-l { grid-column: 1 / -1; }
  .pk-t { grid-column: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pk-d { grid-column: 2; grid-row: 2; font-size: 13px; text-align: left; overflow: hidden; text-overflow: ellipsis; }
  .filters { margin-bottom: 10px; }
  .tbl thead th { padding: 0 8px; height: 36px; font-size: 11px; }
  .tbl thead th button { min-height: 36px; }
  .tbl tbody th { padding: 0 8px; height: 48px; }
  .nm { gap: 10px; min-height: 44px; }
  .nm .icw-72 { width: 48px; height: 36px; }
  .nm-t { font-size: 13px; }
  .nm-s { font-size: 11px; }
  .tbl td.c { padding: 0 8px; font-size: 12px; }
  .tbl td.c-l { font-size: 12px; }
  .tbl td.c-key, .tbl td.is-sorted { font-size: 13px; }
  .tbl td.c-wrap { min-width: 140px; }
  .tbl .c:not(.c-land) { display: none; }
  .tbl .has-hs .hl, .tbl td .hl { display: none; }
  .tbl .has-hs .hs, .tbl td .hs { display: inline; }
  .bar svg { display: none; }
  .bar-n { width: auto; }
  .db-note { margin-top: 10px; }
  .rel { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .rel a { min-height: 56px; }
  .rel-d { font-size: 12px; }
  .db .rel-h { margin-top: 16px; font-size: 14px; }
}

/* ---- Entry pages ---- */
.en { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 4px; }
.en > * { min-width: 0; }
.en-head h1 { margin: 0 0 8px; }
.en-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 12px; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag.r2 { border-color: var(--r-uncommon); } .tag.r3 { border-color: var(--r-rare); } .tag.r4 { border-color: var(--r-epic); } .tag.r5 { border-color: var(--r-legendary); } .tag.r6 { border-color: var(--r-exotic); }
.tag.r1 { color: var(--ink); }
.lead { margin: 0 0 14px; font-size: 16px; line-height: 1.45; max-width: 640px; }
.lead .mono { font-weight: 600; }
.kc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kc-i { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.kc-n { font: 600 20px/24px var(--mono); white-space: nowrap; }
.kc-n.kc-s { font-size: 16px; } .kc-n.kc-xs { font-size: 13px; }
.kc-l { font-size: 13px; font-weight: 600; }
.kc-d { font-size: 12px; color: var(--muted); }
.en-aside-h { display: block; }
.db-entry .en-aside .db-stamp { margin: 10px 4px 0; }
.ib { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ib-pic { height: 120px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; }
.ib-pic img { max-width: 200px; max-height: 96px; width: auto; height: auto; }
.ib-rows { margin: 0; padding: 0 16px 6px; }
.ib-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 14px; }
.ib-rows > div + div { border-top: 1px solid var(--line); }
.ib-pic + .ib-rows > div:first-child { border-top: 1px solid var(--line); }
.ib-rows dt { color: var(--muted); }
.ib-rows dd { margin: 0; font-size: 13px; text-align: right; }
.ib-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); }
.st-wrap { overflow-x: auto; }
.st { width: 100%; border-collapse: collapse; }
.st th, .st td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.st thead th { height: 36px; text-align: right; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom-color: var(--line-2); }
.st thead th:first-child, .st tbody th { text-align: left; }
.st tbody th { height: 44px; font-size: 13px; font-weight: 600; }
.st tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
.st td { text-align: right; font: 400 12px var(--mono); }
.st-wrap-cells td { font-family: var(--font); font-size: 13px; }
.st tr.is-on th, .st tr.is-on td { background: var(--surface); }
.st-badge { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.st .t-wide { display: none; }
.steps2 { list-style: none; margin: 0; padding: 0; }
.steps2 li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.steps2-n { flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; font: 600 12px var(--mono); }
.steps2-t { flex: 1; min-width: 0; font-size: 14px; }
.steps2-y { display: block; font-size: 12px; color: var(--muted); }
.steps2-p { font: 600 14px var(--mono); white-space: nowrap; }
.steps2-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin: 0; font-size: 14px; font-weight: 600; }
.steps2-total .mono { font-size: 15px; }
.dist-r { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.dist-l { flex: none; width: 96px; font-size: 13px; color: var(--muted); }
.dist-b { flex: 1; min-width: 0; height: 20px; border-radius: 4px; overflow: hidden; }
.dist-b .bar-bg { fill: var(--surface); }
.dist-v { flex: none; width: 28px; text-align: right; font: 600 14px var(--mono); }
/* The "where" module: the map, then the numbered places (phones); places beside the map (wide). */
.mm { display: flex; flex-direction: column-reverse; gap: 6px; }
.mm-map { position: relative; }
.cmap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--map-bg); }
.mm-open { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); font: 600 12px var(--font); cursor: pointer; }
.mm-open:hover { border-color: var(--gold); color: var(--gold-hi); }
.mm-open .ic { width: 14px; height: 14px; }
.pl { list-style: none; margin: 0; padding: 0; }
.pl li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.pl-n0 { background: none; border: 1px dashed var(--line-2); }
.pl-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-t { font-weight: 600; font-size: 14px; }
.pl-d { font-size: 13px; color: var(--muted); }
.pl-v { font: 600 13px var(--mono); white-space: nowrap; }
@media (min-width: 1000px) and (min-height: 501px) {
  .en { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); column-gap: 40px; margin-top: 10px; align-items: start; }
  .en > * { grid-column: 1; }
  .en > .en-aside { grid-column: 2; grid-row: 1 / span 12; }
  .en-aside-h { display: none; }
  .en-head h1 { margin-bottom: 12px; }
  .en-tags { margin-bottom: 16px; }
  .tag { height: 32px; }
  .lead { margin-bottom: 20px; font-size: 18px; line-height: 1.5; }
  .kc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kc-i { padding: 14px 16px; }
  .kc-n { font-size: 26px; line-height: 31px; }
  .kc-n.kc-s { font-size: 21px; } .kc-n.kc-xs { font-size: 16px; }
  .ib-pic { height: 148px; }
  .ib-pic img { max-width: 240px; max-height: 120px; }
  .ib-rows > div { min-height: 40px; }
  .st th, .st td { padding: 4px 10px; }
  .st tbody th { font-size: 14px; white-space: nowrap; }
  .st td { font-size: 13px; white-space: nowrap; }
  .st-wrap-cells td, .st-wrap-cells tbody th { white-space: normal; }
  .st-wrap-cells td { font-size: 14px; }
  .st .t-wide { display: table-cell; }
  .dist-l { width: 110px; }
  .mm { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  .db-p { font-size: 15px; }
}
@media (min-width: 1000px) and (min-height: 501px) and (max-width: 1320px) {
  .kc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-height: 500px) {
  .en { grid-template-columns: minmax(0, 1fr) 270px; column-gap: 20px; margin-top: 2px; align-items: start; }
  .en > * { grid-column: 1; }
  .en > .en-aside { grid-column: 2; grid-row: 1 / span 12; }
  .en-aside-h { display: none; }
  .en-tags { margin-bottom: 8px; gap: 8px; }
  .tag { height: 26px; }
  .lead { margin-bottom: 10px; font-size: 14px; }
  .kc-i { padding: 8px 12px; }
  .kc-n { font-size: 17px; line-height: 21px; }
  .kc-n.kc-s { font-size: 15px; } .kc-n.kc-xs { font-size: 13px; }
  .ib-pic { height: 84px; }
  .ib-pic img { max-width: 150px; max-height: 68px; }
  .ib-rows { padding: 0 12px 4px; }
  .ib-rows > div { min-height: 34px; font-size: 13px; }
  .ib-rows dd { font-size: 12px; }
  .mm { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 14px; flex-direction: row; align-items: start; }
}
@media (max-width: 999px), (max-height: 500px) {
  /* Narrow layouts: the stats box comes after the first section. */
  .en-head { order: 1; } .en > .en-sec:nth-of-type(1) { order: 2; } .en > .en-aside { order: 3; } .en > .en-sec { order: 4; }
}
@media (min-width: 600px) and (max-height: 500px) { .en-head, .en > .en-sec:nth-of-type(1), .en > .en-aside, .en > .en-sec { order: 0; } }
.en-aside { margin-top: 24px; }
.en-aside-h { margin: 0 0 10px; }
@media (min-width: 1000px) and (min-height: 501px), (min-width: 600px) and (max-height: 500px) { .en-aside { margin-top: 0; } }

/* ---- The floating map ---- */
.mapdlg { padding: 0; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .6); overflow: hidden; font: 400 15px/1.45 var(--font); }
.mapdlg::backdrop { background: rgba(0, 0, 0, .6); }
.mapdlg:not([open]) { display: none; }
.md-head { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); }
.md-title { flex: 1; min-width: 0; margin: 0; font: 700 15px/1.3 var(--font); letter-spacing: 0; }
.md-full { display: flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--gold); white-space: nowrap; text-decoration: none; }
.md-full:hover { color: var(--gold-hi); }
.md-close { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 8px; }
.md-close:hover { background: var(--surface-2); }
.md-list { padding: 0 16px 4px; overflow-y: auto; }
.md-list .pl li { min-height: 64px; }
.md-list .pl a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--under); text-underline-offset: 3px; }
.md-note { margin: 10px 0 8px; font-size: 13px; color: var(--muted); }
.md-map { background: var(--map-bg); min-height: 0; overflow: hidden; }
/* phones upright: a sheet from the bottom, over the tab bar */
.mapdlg { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92dvh; margin: 0; border-width: 1px 0 0; border-radius: 16px 16px 0 0; }
.mapdlg[open] { display: flex; flex-direction: column; }
.mapdlg::before { content: ''; flex: none; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; }
.md-body { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.md-list { flex: none; max-height: 38dvh; }
.md-map { flex: none; }
@media (min-width: 1000px) and (min-height: 501px) {
  .mapdlg { inset: 96px auto auto 50%; transform: translateX(-50%); width: min(1000px, calc(100vw - 48px)); max-height: calc(100vh - 128px); border-width: 1px; border-radius: 16px; }
  .mapdlg::before { display: none; }
  .md-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; }
  .md-list { max-height: calc(100vh - 190px); padding: 4px 16px 16px; }
}
@media (min-width: 600px) and (max-height: 500px) {
  .mapdlg { inset: 0 0 0 auto; width: min(690px, calc(100vw - var(--rail))); height: 100dvh; max-height: none; border-width: 0 0 0 1px; border-radius: 0; }
  .mapdlg::before { display: none; }
  .md-body { flex: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr); overflow: hidden; }
  .md-list { max-height: none; padding: 0 14px; }
}

/* ---- Database hub and the guides list ---- */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 20px; }
.hub-c { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 8px 14px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.hub-c:hover { border-color: var(--line-2); }
.hub-c .icw-72 { width: 48px; height: 40px; }
.hub-b { display: flex; flex-direction: column; min-width: 0; }
.hub-t { font-weight: 600; }
.hub-n { font: 400 13px var(--mono); color: var(--muted); }
.hub-d { font-size: 13px; color: var(--muted); }
.hub-big { font-size: 26px; font-weight: 600; min-width: 56px; }
.gd-g h2 { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.gd-g .ic { color: var(--muted); }
.gd .rel { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) and (min-height: 501px) {
  .hub { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 32px; }
  .hub-c { min-height: 96px; padding: 0 16px; gap: 14px; }
  .hub-c .icw-72 { width: 72px; height: 52px; }
  .gd .rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Home ---- */
.home4 { box-sizing: border-box; padding: 16px 16px 8px; font-size: 15px; line-height: 1.45; }
.home4 h1 { margin: 0 0 8px; font: 700 32px/1.05 var(--display); letter-spacing: -.01em; }
.home4 h2 { margin: 0 0 12px; font: 700 18px/28px var(--font); letter-spacing: 0; }
.h4-lede { margin: 0 0 14px; color: var(--muted); max-width: 620px; }
.h4-q { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; margin: 0 0 12px; max-width: 660px; color: var(--muted); }
.h4-q:focus-within { border-color: var(--soft); }
.h4-q input { flex: 1; min-width: 0; height: 44px; background: transparent; border: 0; outline: 0; color: var(--ink); font: 400 16px var(--font); }
.h4-q button { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font: 700 15px var(--font); cursor: pointer; }
.h4-q button:hover { background: var(--gold-hi); }
.h4-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.h4-pop-l { color: var(--muted); margin-right: 4px; }
.h4-pop a { display: flex; align-items: center; height: 36px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.h4-pop a:hover { border-color: var(--line-2); }
.h4-hero { display: flex; flex-direction: column; gap: 20px; padding: 4px 0 28px; }
.h4-live { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; display: flex; flex-direction: column; }
.h4-live-r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.h4-live-r:last-child { border-bottom: 0; }
.h4-live-k { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; color: var(--muted); font-size: 14px; }
.h4-live-k .dot { width: 8px; height: 8px; background: var(--ok); }
.h4-live-s { flex-basis: 100%; font-size: 13px; }
.h4-live-r b { font-weight: 600; font-size: 20px; white-space: nowrap; }
.h4-live-st { align-items: center; min-height: 56px; padding: 6px 0; font-size: 14px; }
.h4-live-t { font-weight: 600; font-size: 15px; }
.h4-st { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 14px; color: var(--muted); }
.h4-st-r { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.h4-st-r .dot { width: 8px; height: 8px; }
.h4-st-s { text-transform: lowercase; }
.h4-go { transform: rotate(-90deg); color: var(--ink); }
.h4-sec { margin: 0 0 32px; }
.h4-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.h4-sec-h h2 { margin: 0; }
.h4-all { font-size: 14px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.h4-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.h4-big { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); min-width: 0; }
.h4-big:hover, .h4-cat:hover, .h4-sy:hover { border-color: var(--line-2); }
.h4-big-img { width: 100%; height: 96px; object-fit: cover; object-position: 50% 45%; }
.h4-big-art { height: 96px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; overflow: hidden; }
.h4-art-items img { height: 36px; width: auto; max-width: 22%; object-fit: contain; }
.h4-art-srv { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; font: 400 12px var(--mono); white-space: nowrap; }
.h4-newest, .h4-mine { display: flex; flex-direction: column; gap: 6px; }
html[data-server="set"] .h4-newest { display: none; }
.h4-art-k { font: 600 12px var(--font); color: var(--muted); }
.h4-new { display: flex; flex-direction: column; gap: 6px; }
.h4-new-r { display: flex; justify-content: space-between; gap: 8px; overflow: hidden; }
.h4-mine .srv { align-self: flex-start; }
.h4-mine-l { font-family: var(--font); color: var(--muted); }
.h4-mine-l b { color: var(--ink); font-size: 14px; }
.h4-big-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.h4-big-t { font-size: 15px; font-weight: 700; }
.h4-big-d { font-size: 13px; color: var(--muted); }
.h4-big-d .mono, .h4-cat-n { font-family: var(--mono); }
.h4-big-d .mono { color: var(--ink); }
.h4-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.h4-cat { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 6px 12px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); min-width: 0; }
.h4-cat-ic { flex: none; width: 48px; height: 44px; display: flex; align-items: center; justify-content: center; }
.h4-cat-ic img { max-width: 48px; max-height: 42px; width: auto; height: auto; }
.h4-cat-b { display: flex; flex-direction: column; min-width: 0; }
.h4-cat-t { font-weight: 600; font-size: 14px; line-height: 1.25; }
.h4-cat-n { font-size: 13px; color: var(--muted); }
.h4-sys { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.h4-sy { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 6px 14px; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.h4-sy-n { flex: none; min-width: 56px; display: flex; font: 600 22px var(--mono); }
.h4-sy-b { display: flex; flex-direction: column; min-width: 0; }
.h4-sy-t { font-weight: 600; }
.h4-sy-d { font-size: 13px; color: var(--muted); }
.h4-two { display: flex; flex-direction: column; gap: 32px; margin: 0 0 32px; }
.h4-links { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; }
.h4-links a { display: flex; flex-direction: column; justify-content: center; min-height: 60px; border-bottom: 1px solid var(--line); color: var(--ink); }
.h4-links-s a { min-height: 52px; }
.h4-link-t { font-weight: 600; }
.h4-link-d { font-size: 13px; color: var(--muted); }
.home4 .h4-h2b { margin: 28px 0 0; }
.h4-news { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 14px; }
.h4-news a { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.h4-news-d { font-size: 12px; color: var(--muted); }
.h4-stamp { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.h4-board { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); }
.h4-board .hb-k { font-weight: 600; }
.h4-board .hb-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; }
.home-secs { max-width: 1200px; }
@media (min-width: 600px) {
  .h4-start { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .h4-cats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .h4-sys { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .h4-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The Russian home H1 is a sentence ("ROB RUN вики (Роб Ран): карта, вайп и гайды", 11-21): at 32px it takes three
   lines on a phone; at 26px it breaks after the colon into two (phones from 360px wide). */
@media (max-width: 479px) { html[lang="ru"] .home4 h1 { font-size: 26px; line-height: 1.12; } }
@media (min-width: 1000px) and (min-height: 501px) {
  .home4 { max-width: 1200px; margin: 0 auto; padding: 0 40px; font-size: 16px; line-height: 1.5; }
  .home4 h1 { margin-bottom: 12px; font-size: 56px; }
  .home4 h2 { margin-bottom: 16px; font-size: 20px; line-height: 32px; }
  .h4-hero { flex-direction: row; flex-wrap: wrap; gap: 48px; align-items: stretch; padding: 48px 0 44px; }
  .h4-intro { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
  .h4-lede { margin-bottom: 24px; font-size: 18px; }
  .h4-q { gap: 12px; height: 60px; padding: 0 8px 0 18px; margin-bottom: 16px; }
  .h4-q input { font-size: 17px; }
  .h4-q button { height: 44px; padding: 0 20px; }
  .h4-live { flex: 1 1 360px; min-width: 0; padding: 8px 20px; justify-content: center; }
  .h4-live-r b { font-size: 22px; }
  .h4-sec { margin-bottom: 48px; }
  .h4-sec-h { margin-bottom: 16px; }
  .h4-start { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
  .h4-big { height: 224px; }
  .h4-big-img, .h4-big-art { flex: none; height: 128px; }
  .h4-art-items { gap: 14px; padding: 0 16px; }
  .h4-art-items img { height: 52px; }
  .h4-art-srv { padding: 0 18px; gap: 8px; font-size: 13px; }
  .h4-new { gap: 8px; }
  .h4-big-b { padding: 14px 18px; }
  .h4-big-t { font-size: 18px; }
  .h4-big-d { font-size: 14px; }
  .h4-cats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
  .h4-cat { min-height: 96px; gap: 14px; padding: 0 16px; }
  .h4-cat-ic { width: 72px; height: 64px; }
  .h4-cat-ic img { max-width: 72px; max-height: 60px; }
  .h4-cat-t { font-size: 16px; }
  .h4-sys { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
  .h4-sy { min-height: 88px; gap: 16px; padding: 0 18px; }
  .h4-sy-n { min-width: 64px; font-size: 26px; }
  .h4-two { flex-direction: row; flex-wrap: wrap; gap: 48px; margin-bottom: 56px; }
  .h4-two-a { flex: 999 1 520px; min-width: 0; }
  .h4-two-b { flex: 1 1 380px; min-width: 0; }
  .h4-sec-h + .h4-links { margin-top: -8px; }
  .h4-links { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .h4-links a { min-height: 64px; }
  .h4-link-d { font-size: 14px; }
  .home4 .h4-h2b { margin-top: 40px; }
  .h4-two-b h2 { margin-bottom: 8px; }
  .h4-news { padding: 4px 18px 14px; }
  .home-secs { margin: 0 auto; padding: 0 40px; }
}
@media (min-width: 600px) and (max-height: 500px) {
  .home4 { padding: 10px 20px 8px; font-size: 14px; }
  .home4 h1 { font-size: 26px; }
  .h4-lede { display: none; }
  .h4-hero { flex-direction: row; gap: 16px; padding-bottom: 16px; }
  .h4-intro { flex: 1.2; min-width: 0; }
  .h4-q { display: none; }
  .h4-live { flex: 1; padding: 0 14px; }
  .h4-live-r { padding: 7px 0; }
  .h4-live-r b { font-size: 16px; }
  .h4-live-st { min-height: 44px; }
  .h4-sec, .h4-two { margin-bottom: 20px; }
  .h4-big-img, .h4-big-art { height: 84px; }
  .h4-two { flex-direction: row; gap: 20px; }
  .h4-two-a { flex: 1.3; min-width: 0; } .h4-two-b { flex: 1; min-width: 0; }
}
html.dlg-open { overflow: hidden; }

/* ---- After the 11-20 design review ---- */
/* Comparison tables: headings wrap (the site-wide rule keeps table headings on one line), so on a phone the last
   column stays on the screen. */
.st thead th { white-space: normal; vertical-align: bottom; padding-bottom: 6px; line-height: 1.25; }
.st td b { font-weight: 600; }
/* A pick is a link: its name is underlined like every other name. */
.pk-t { text-decoration: underline; text-decoration-color: var(--under); text-underline-offset: 3px; }
.c-must { color: var(--ink); }
.c-opt { font-size: 13px; }
@media (max-width: 599px) {
  /* Phones: a pick keeps its unit under the number; filters are one row that slides; the mark and the sort share a row. */
  .pk-d { display: flex; flex-direction: column; align-items: flex-end; }
  .pk-s { display: block; max-width: 160px; font-size: 11px; font-weight: 400; line-height: 1.25; color: var(--muted); white-space: normal; text-align: right; }
  .pk-s .mono { font-weight: 400; }
  .filters .chips { flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .filters .chips::-webkit-scrollbar { display: none; }
  .filters .sw-l { display: none; }
}
@media (max-width: 999px) and (min-height: 501px), (max-width: 599px) {
  /* Narrow upright screens: every section first, then the stats box, then Related (two reviews: the box sat between
     the first section and "How to get it" and pushed it three screens down). */
  .en > .en-sec, .en > .en-sec:nth-of-type(1) { order: 2; }
  .en > .en-aside { order: 3; }
  .en > .en-sec:last-of-type { order: 4; }
}
@media (min-width: 1000px) and (min-height: 501px) {
  .st thead th { white-space: nowrap; }
  .st-wrap-cells thead th { white-space: normal; }
  /* The list tables: tighter cells, so ten columns fit beside the left column at 1440. */
  .tbl thead th, .tbl td.c { padding: 0 10px; }
  .tbl tbody th { padding: 0 10px 0 12px; }
  .tbl .nm .icw-72 { width: 64px; height: 46px; }
}
@media (min-width: 600px) and (max-height: 500px) {
  .filters .chips { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters .chips::-webkit-scrollbar { display: none; }
  /* Heist targets: the gear column does not fit, so the gear goes under the name. */
  .tbl-noic .nm-s { display: none; }
  .tbl-noic .nm-p { display: block; font-size: 11px; white-space: normal; }
  /* The floating map's list is a narrow column: the count goes under the name. */
  .md-list .pl li { flex-wrap: wrap; row-gap: 0; }
  .md-list .pl-v { flex-basis: 100%; padding-left: 36px; white-space: normal; }
}
@media (max-width: 599px) {
  /* Comparison tables on a phone: the row's shading says which one this page is; the badge and wide padding go. */
  .st-badge { display: none; }
  .st th, .st td { padding: 4px 4px; }
  .st thead th { font-size: 11px; }
}
.sortsel select { padding-right: 6px; text-overflow: ellipsis; }
/* The main column keeps its heading emphasis even when it carries no sort arrow (a column of words). */
@media (min-width: 1000px) and (min-height: 501px), (min-width: 600px) and (max-height: 500px) {
  .tbl:not(.is-resorted) thead th.c-key { color: var(--ink); font-weight: 700; background: var(--surface); }
}
@media (max-width: 359px) {
  /* The narrowest phones: comparison tables get tighter still, and a long name may break. */
  .st th, .st td { padding: 4px 3px; }
  .st td { font-size: 11px; }
  .st tbody th { font-size: 12px; overflow-wrap: anywhere; }
  .st-wrap-cells td { font-size: 12px; }
}

/* ---- Map, 11-20 (owner): every point at every zoom, each with its icon; the same map in a frame on database pages ---- */
/* Pins shrink while the whole city is on screen and grow back as the map zooms in (--pin-k, set by map.mjs). */
.lmap-canvas .lpin-dot { transform: scale(var(--pin-k, 1)); }
.lmap-canvas .lpin:hover .lpin-dot, .lmap-canvas .lpin.is-on .lpin-dot { transform: scale(max(var(--pin-k, 1), 1)); }
.lmap-canvas .lpin:hover, .lmap-canvas .lpin:focus-visible { z-index: 4; }
/* A loot or security spot's disc: its kind's icon on its kind's colour (Layers rows, the tap card; the map draws the same). */
.lpin-dot.lspot-ic { border-color: #17120e; }
.lspot-pop .sp-t { gap: 8px; }
.lspot-pop .sp-t .lspot-ic { margin: 0; }

/* The embedded map (/map/embed/): the map fills the frame; the panel is shut behind the Layers button and opens over
   the whole frame; a place's card comes up from the bottom. The frame's own size picks none of the phone layouts. */
html[data-embed], html[data-embed] body, html[data-embed] main { height: 100%; }
html[data-embed] body { padding: 0; overflow: hidden; }
.lmap.is-embed { height: 100%; min-height: 0; }
.lmap.is-embed .lmap-still { padding: 0; }
.lmap.is-embed:not(.is-live) .lmap-stage { height: 100%; max-height: none; aspect-ratio: auto; }
.lmap.is-embed:not(.is-live) .lmap-top, .lmap.is-embed:not(.is-live) .lmap-sheet, .lmap.is-embed:not(.is-live) .lmap-ebar { display: none; }
.lmap-ebar { position: absolute; z-index: 5; left: 10px; top: 10px; display: flex; gap: 8px; }
.lmap-ebtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(var(--bg-rgb), .92); color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.lmap-ebtn:hover { border-color: var(--soft); }
.lmap-ebtn .ic { width: 16px; height: 16px; }
.lmap.is-embed .lmap-top { display: none; }
.lmap.is-embed.filters-open .lmap-top { display: flex; left: 0; right: auto; top: 0; bottom: 0; width: min(100%, 340px); max-height: none; z-index: 9; box-shadow: 8px 0 24px rgba(0, 0, 0, .35); }
.lmap.is-embed .lmap-panel { flex: 1; min-height: 0; max-height: none; padding: 0 12px 10px; gap: 0; border: 0; border-radius: 0; background: var(--bg); }
.lmap.is-embed .lmap-panel > :not(.lmap-filters) { display: none; }
.lmap.is-embed.is-live.filters-open .lmap-panel > .lmap-filters:not([hidden]) { display: block; position: static; flex: 1 1 auto; min-height: 0; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow-y: auto; }
.lmap.is-embed .lmap-fsheet-h { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; margin: 0 0 6px; padding: 8px 0 6px; background: var(--bg); font-size: 16px; }
.lmap.is-embed .lmap-fsheet-h .lmap-close { float: none; position: static; margin: 0; }
.lmap.is-embed .lmap-ftop [data-map-filter="mine"] { display: none; }
.lmap.is-embed .lmap-frow { min-height: 40px; }
.lmap.is-embed .lmap-sheet { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: auto; max-height: 58%; padding: 14px; border-radius: 12px; }
.lmap.is-embed.card-open { --sheet-w: 0px; }
.lmap.is-embed .lmap-name { font-size: 20px; }
.lmap.is-embed .maplibregl-ctrl-top-right, .lmap.is-embed.card-open .maplibregl-ctrl-top-right { top: 0; right: 0; bottom: auto; }
.lmap.is-embed .maplibregl-ctrl-group button { width: 34px; height: 34px; }
/* The entry's own places: full size, named, over everything else. */
.lmap.is-embed .lpin.is-pinned { z-index: 3; }
.lmap.is-embed .lpin.is-pinned .lpin-dot { transform: none; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, .5); }
.lmap.is-embed .lpin.is-pinned .lpin-name, .lmap.is-embed.show-names .lpin.is-pinned.no-name .lpin-name { display: block; }

/* Database pages: the frame that holds it (a page's small map, the floating map), and a listed place's "show on the map" button. */
.cmap { aspect-ratio: 4 / 3; }
.mm-frame, .md-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--map-bg); }
.pl-n { flex: none; width: 30px; height: 30px; border-radius: 50%; }
/* The button is the place's pin: its category's colour and icon (the colours the map uses, named here for pages outside it). */
.pl { --pin-key: #ffd166; --pin-fence: #a8e063; --pin-heist: #f07167; --pin-shop: #8ecae6; --pin-service: #e9e4dc; --pin-home: #cdb4db; }
.pl-go { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 2px solid var(--bg); border-radius: 50%; background: var(--pin, var(--gold)); color: var(--bg); box-shadow: 0 0 0 1.5px var(--line-2); cursor: pointer; }
.pl-go::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.pl-go:hover, .pl-go:focus-visible { box-shadow: 0 0 0 2px #fff; }
.pl-go .ic { width: 15px; height: 15px; }
.md-map { height: 56dvh; }
@media (min-width: 1000px) and (min-height: 501px) {
  .cmap { aspect-ratio: 1; }
  .md-map { height: min(640px, calc(100vh - 190px)); }
}
@media (min-width: 600px) and (max-height: 500px) {
  .cmap { aspect-ratio: 1; }
  .md-map { height: auto; }
}
.lmap.is-embed .ldist { font-size: 12.5px; padding: 1px 6px; }

/* Left column, 11-20 (owner): an icon in front of every item, the same line set as the phone's bottom bar. */
@media (min-width: 1000px) and (min-height: 501px) {
  .side-g > a:not(.side-h) { justify-content: flex-start; gap: 10px; padding: 0 10px; }
  .side-ic { flex: none; width: 18px; height: 18px; color: var(--muted); }
  .side-t { flex: 1; min-width: 0; }
  .side-g > a:not(.side-h):hover .side-ic { color: var(--ink); }
  .side-g > a[aria-current="page"] .side-ic, .side-g > a.is-on .side-ic { color: var(--gold); }
}

/* ---- Map, after the 11-20 review ---- */
/* Panels over the map are solid: with every point drawn, pins and district names showed through and read as rows. */
.lmap .lmap-panel, .lmap .lmap-sheet { background: var(--surface); }
@media (max-width: 760px) and (orientation: portrait) {
  .lmap.is-live.filters-open:not(.is-embed) .lmap-panel > .lmap-filters:not([hidden]) { background: var(--surface); }
}
/* Our own places stand over the added points (ATMs, parking, conquest points, cargo): a white ring, and the added ones a size smaller.
   The two landmarks (bank, police station) are always named. */
.lmap-canvas .lpin:not([data-gen]) { z-index: 1; }
.lmap-canvas .lpin:not([data-gen]) .lpin-dot { box-shadow: 0 0 0 1.5px #fff, 0 2px 8px rgba(0, 0, 0, .5); }
.lmap-canvas .lpin[data-gen] .lpin-dot { transform: scale(calc(var(--pin-k, 1) * .8)); }
.lmap-canvas .lpin.c-key .lpin-name { display: block; }
.lmap-canvas .lpin.is-on { z-index: 3; }
/* Embedded: a row that is on says so; a very small frame leaves the names to a hover or a tap. */
.lmap.is-embed .lmap-frow[aria-pressed="true"]:not([data-focus]) { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--gold); }
@media (max-width: 259px), (max-height: 259px) {
  .lmap.is-embed .lpin:not(:hover):not(.is-on) .lpin-name, .lmap.is-embed.show-names .lpin.is-pinned.no-name:not(:hover):not(.is-on) .lpin-name { display: none; }
  /* No room for zoom buttons either (they sat on the entry's own pin): pinch, double-tap or "Open map". */
  .lmap.is-embed .maplibregl-ctrl-top-right { display: none; }
}
/* Phones held sideways: beside the small map the list is narrow, so a place's count goes under its name. */
@media (min-width: 600px) and (max-height: 500px) {
  .mm-list .pl li { flex-wrap: wrap; row-gap: 0; }
  .mm-list .pl-b { flex-basis: calc(100% - 44px); }
  .mm-list .pl-v { flex-basis: 100%; padding-left: 42px; white-space: normal; }
}
.lmap-canvas .lpin.c-key:not(.is-on) { z-index: 2; }
.md-full { gap: 4px; }

/* ---- Entry headings and list rows, 11-20 (owner) ---- */
/* An entry's H1 is its name and, under it, what sets it apart ("AP Scalar" / "the hardest-hitting SMG"). */
.db h1 .h1-x { display: block; margin-top: 6px; font: 600 17px/1.3 var(--font); color: var(--soft); letter-spacing: 0; text-wrap: pretty; }
@media (min-width: 1000px) and (min-height: 501px) { .db h1 .h1-x { font-size: 20px; margin-top: 8px; } }
@media (min-width: 600px) and (max-height: 500px) { .db h1 .h1-x { font-size: 15px; margin-top: 4px; } }
/* A list row linked to by its name (/database/weapons/#ap-scalar): clear of the top bar, and marked. */
.tbl tr[id] { scroll-margin-top: calc(var(--header) + 96px); }
.tbl tr:target > * { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.tbl tr:target > :first-child { box-shadow: inset 3px 0 0 var(--gold); }
/* A landmark's name reads over a district name where the two still meet. */
.lmap-canvas .lpin.c-key:not(.is-on) { z-index: 3; }

/* ---- Russian database pages (11-20). Russian words run longer than the English ones this layout was drawn for, and a
   thing with an official Russian name carries both names («Банк Лути-Бей (Looty Bay Bank)»). Two design reviews of
   the Russian pages (11-20) found the list tables pushed past their box on wide screens, the floating map's list
   squeezed to a word a line, and words set in the number font. These rules are for lang="ru" only: the English
   pages render as before. */
html[lang="ru"] .db th, html[lang="ru"] .db td { hyphens: manual; }
html[lang="ru"] .hub-t { overflow-wrap: anywhere; hyphens: auto; }
/* The number font is for figures: a card or a count that is words («Купить нельзя», «гарантированно 7 шт.») takes the text font. */
html[lang="ru"] .kc-n.kc-w, html[lang="ru"] .pl-v, html[lang="ru"] .tbl td.c .muted, html[lang="ru"] .c-ph b:not(:has(.mono)) { font-family: var(--font); letter-spacing: 0; }
@media (min-width: 1000px) and (min-height: 501px), (min-width: 600px) and (max-height: 500px) {
  /* List tables: headings, names and text cells may take two lines, so ten columns fit their box. */
  html[lang="ru"] .tbl thead th { white-space: normal; line-height: 1.2; }
  html[lang="ru"] .tbl thead th button { text-align: inherit; }
  html[lang="ru"] .tbl .nm-t, html[lang="ru"] .tbl td.c-l { white-space: normal; }
}
@media (min-width: 1000px) and (min-height: 501px) {
  /* Comparison tables on entry pages: headings wrap instead of pushing the last column out. */
  html[lang="ru"] .st thead th { white-space: normal; }
  /* A place's count goes under its name (as it already does on a phone held sideways). */
  html[lang="ru"] .md-list .pl li, html[lang="ru"] .mm-list .pl li { flex-wrap: wrap; row-gap: 0; }
  html[lang="ru"] .md-list .pl-b, html[lang="ru"] .mm-list .pl-b { flex-basis: calc(100% - 48px); }
  html[lang="ru"] .md-list .pl-v, html[lang="ru"] .mm-list .pl-v { flex-basis: 100%; padding-left: 40px; white-space: normal; }
}
/* Phones held sideways, both languages (review 11-20): a long name no longer takes the whole pick card and cuts its
   number off; the name gives way first. */
@media (min-width: 600px) and (max-height: 500px) {
  .pk-b { grid-template-columns: fit-content(58%) minmax(0, 1fr); }
}
/* Russian names are long («Ключ от комнаты · в оружейном магазине района Санни-Бич (Room Key · Gun Shop, Sunny Beach)»):
   on a phone a table of text cells may break its words, with a hyphen, rather than run past the screen. */
@media (max-width: 599px) {
  html[lang="ru"] .db .st-wrap-cells th, html[lang="ru"] .db .st-wrap-cells td { hyphens: auto; overflow-wrap: anywhere; }
}
/* … and on a phone held sideways the line under a row's name («Легендарный · 3 версии») may take two lines. */
@media (min-width: 600px) and (max-height: 500px) {
  html[lang="ru"] .tbl .nm-s { white-space: normal; line-height: 1.15; }
}
/* … and a comparison table's first column (the two-language names) wraps on wide screens too. */
@media (min-width: 1000px) and (min-height: 501px) {
  html[lang="ru"] .st tbody th { white-space: normal; }
  html[lang="ru"] .st tbody th a { display: inline; }
}
/* On a phone the last breadcrumb repeats a long two-language name right above the H1: there it is left out. */
@media (max-width: 999px), (max-height: 500px) {
  html[lang="ru"] .db-entry .crumbs2 [aria-current="page"], html[lang="ru"] .db-entry .crumbs2 span[aria-hidden]:has(+ [aria-current="page"]) { display: none; }
}
/* A switch over grades and states has six long labels in Russian («Легендарный, наполняется»): on a phone they sit
   in two columns, a grade a row, instead of wrapping as they fall. */
@media (max-width: 599px) {
  html[lang="ru"] .db-entry .sw:has(.sg > a:nth-child(5)) { display: flex; flex-direction: column; align-items: stretch; }
  html[lang="ru"] .db-entry .sg:has(> a:nth-child(5)) { display: grid; grid-template-columns: 1fr 1fr; }
  html[lang="ru"] .db-entry .sg:has(> a:nth-child(5)) a { height: auto; min-height: 44px; padding: 4px 10px; white-space: normal; font-size: 12px; line-height: 1.2; }
}
/* A pick card whose value is words («Купить нельзя») takes the text font. */
html[lang="ru"] .pk-d b.pk-w { font-family: var(--font); letter-spacing: 0; }
/* The English name under the Russian one in a Russian heading: a quiet line, not the big type. */
.db h1 .h1-en { display: block; margin-top: 4px; font: 500 14px/1.3 var(--font); color: var(--muted); letter-spacing: 0; }
@media (min-width: 1000px) and (min-height: 501px) { .db h1 .h1-en { font-size: 16px; margin-top: 6px; } }
@media (min-width: 600px) and (max-height: 500px) { .db h1 .h1-en { font-size: 13px; margin-top: 2px; } }

/* ==== Search results (11-21, public/app.mjs "Search", rules in public/search.mjs) ================================
   One row design for the list under a search box (.sx-drop) and for the search page (.sx-page): a picture box of one
   size on the left, the name, one quiet line under it. Results are grouped by kind in a set order; each group has a
   small heading with its count. A server is the server list's own line (chip with its week, day, players, time to the
   wipe). Three layouts, made separately:
   - phone upright: while the top bar's box is in use (html.sx-on) the bar is the box and Cancel and the list takes
     the screen;
   - phone sideways: the same full-screen list beside the rail, groups in two columns, rows on one line;
   - wide: a panel under the box that ends inside the screen; the search page lays rows out in columns. */
.sx { --pic-w: 56px; --pic-h: 42px; }
.sx a { text-decoration: none; }
.sx-drop { padding: 4px 6px 0; overscroll-behavior: contain; }
.sx-g + .sx-g { margin-top: 2px; border-top: 1px solid var(--line); }
.sx-h { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 10px 4px; font: 600 13px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
html[lang="ru"] .sx-h { letter-spacing: .02em; }
.sx-n { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: 0; }
.sx-h .sx-n { padding: 3px 6px; border-radius: 6px; background: var(--surface-3); color: var(--soft); }
.search-hits.sx .sx-row, .sx-row { display: grid; grid-template-columns: var(--pic-w) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 56px; padding: 6px 10px; border-radius: 10px; color: var(--ink); }
.sx-row:hover, .sx-row[aria-selected="true"], .sx-more:hover, .sx-more[aria-selected="true"] { background: var(--surface-3); }
.sx-row[aria-selected="true"], .sx-more[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--soft); }
.sx-row:focus-visible, .sx-more:focus-visible, .sx-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.sx-pic { display: flex; align-items: center; justify-content: center; width: var(--pic-w); height: var(--pic-h); border-radius: 8px; overflow: hidden; flex: none; }
.sx-pic-item { background: var(--surface-3); padding: 4px; }
.search-hits .sx-pic-item { background: var(--bg); }
.sx-pic-item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sx-pic-map { background: var(--map-bg); }
.sx-pic-map svg { display: block; width: 100%; height: 100%; }
.sx-pin { fill: #1c1b19; stroke: #fff; }
/* A guide has no picture: a quiet mark in the same column, so names line up down the list. */
.sx-pic-ic { color: var(--muted); background: var(--surface-2); }
.search-hits .sx-pic-ic { background: rgba(var(--ink-rgb), .05); }
.sx-b { display: grid; gap: 3px; min-width: 0; }
.sx-t { font: 600 16px/1.25 var(--font); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.sx-w { font: 400 14px/1.3 var(--font); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-sec::before { content: '› '; }
/* The words typed: a thin line under them in a name (the rest of the name is what tells two rows apart); a soft
   ground only where a word from a guide's text is quoted. */
.sx mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sx-w mark { color: var(--soft); text-decoration-thickness: 1px; }
.sx-said mark { color: var(--ink); }
/* A server: the list's own parts, each in its own box on a line that wraps (pre-deploy review: in a grid the players
   slid under the day and the week). Phone: chip and the time to the wipe, then the day and the players. */
.search-hits.sx .sx-sv, .sx-sv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px; }
.sx-sv > * { flex: none; min-width: 0; }
.sx-sv-id { order: 1; display: flex; align-items: center; }
.sx-sv-id .srv { height: 30px; font-size: 15px; }
.sx-sv-left { order: 2; margin-left: auto; font: 600 14px/1.2 var(--font); white-space: nowrap; }
.sx-go { order: 3; display: flex; align-items: center; color: var(--muted); }
.sx-sv::after { content: ''; order: 4; flex-basis: 100%; height: 0; }
@media (max-width: 599px) { .sx-go { display: none; } }   /* the whole row is the tap target; the arrow pushed a Russian time to a third line */
.sx-sv-day { order: 5; font-size: 14px; color: var(--muted); white-space: nowrap; }
.sx-sv-pop { order: 6; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sx-sv-n { font-size: 14px; color: var(--muted); white-space: nowrap; }
.search-hits.sx .sx-more, .sx-more { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; margin: 2px 0 4px; padding: 0 10px 0 calc(var(--pic-w) + 22px); border: 0; border-radius: 10px; background: none; color: var(--soft); font: 500 14px/1.2 var(--font); text-align: left; cursor: pointer; }
.sx-more .ic { flex: none; color: var(--muted); }
/* "All N results": stays at the foot of the list while it scrolls, so the way to everything is always in view. */
.search-hits.sx .sx-foot, .sx-foot { position: sticky; bottom: 0; margin: 4px -6px 0; width: auto; padding: 0 16px; min-height: 46px; border-top: 1px solid var(--line-2); border-radius: 0 0 11px 11px; background: var(--surface-2); color: var(--ink); font-weight: 600; }
.sx-foot:hover, .sx-foot[aria-selected="true"] { background: var(--surface-3); }
.sx-note { margin: 0; padding: 12px 10px 6px; font-size: 15px; color: var(--soft); }
.sx-none { padding-bottom: 14px; }
.sx-cancel { display: none; }
.sx-drop > .sx-g:last-child, .sx-drop > .sx-note:last-child { padding-bottom: 8px; }

/* The search page. Its own box is the one box: the top bar shows the site's name instead of a second one. */
.is-search .top-search { display: none; }
.is-search .top .brand span { display: inline; }
.is-search .top-srv { margin-left: auto; }
.sx-page { --pic-w: 64px; --pic-h: 48px; margin-top: 4px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 2px 0; }
.sx-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--soft); font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap; }
.sx-chip:hover { border-color: var(--soft); color: var(--ink); }
.sx-chip[aria-pressed="true"] { background: var(--surface-3); border-color: var(--soft); color: var(--ink); }
.sx-chip[aria-pressed="true"] .sx-n { color: var(--soft); }
.sx-page .sx-g { padding-bottom: 6px; }
.sx-page .sx-g + .sx-g { margin-top: 6px; }
.sx-page .sx-h { padding: 16px 0 8px; font-size: 14px; }
.sx-page .sx-row { margin: 0 -10px; }
.sx-page .sx-more { width: auto; margin: 4px -10px 0; padding-left: 10px; justify-content: flex-start; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.sx-page .sx-more:hover { background: none; text-decoration-color: var(--ink); }
.sx-page .sx-note { padding: 8px 0 2px; font-size: 16px; }
/* The results say that nothing matched, in their own words: the page's line under them is not said twice, and its
   popular links stand back (they are a way on, not the answer). */
.sx-page.sx-closest + .search-none > p, .sx-page.sx-empty + .search-none > p { display: none; }
.search-page .search-none { margin-top: 20px; }
.search-page .search-none .quick a { min-height: 36px; padding-top: 0; padding-bottom: 0; font-size: 14px; font-weight: 500; color: var(--soft); }
.search-page .search-none:not([hidden]) + .search-all { display: none; }
@media (max-width: 599px) { .search-page h1 { margin-bottom: 8px; } }

/* Phone upright: while the top bar's search is in use, the bar is the box and Cancel, the results take the screen. */
@media (max-width: 599px) {
  .top-search { display: flex; align-items: center; gap: 4px; }
  .top-search .top-q { flex: 1; min-width: 0; }
  html.sx-on .top .brand, html.sx-on .top-srv, html.sx-on .top > .lang { display: none; }
  html.sx-on .top { padding-left: 12px; padding-right: 4px; }
  html.sx-on .sx-cancel { display: inline-flex; align-items: center; height: 44px; padding: 0 10px; border: 0; background: none; color: var(--soft); font: 600 15px/1 var(--font); }
  html.sx-on .v4tabs { display: none; }
  .top-search .search-hits.sx-drop { top: var(--header); left: 0; right: 0; bottom: 0; max-height: none; border: 0; border-radius: 0; background: var(--bg); box-shadow: none; padding: 2px 8px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .top-search .sx-drop .sx-pic-item { background: var(--surface-2); }
  .top-search .sx-drop .sx-foot { position: static; margin: 10px 2px 0; border: 1px solid var(--line-2); border-radius: 10px; }
  .sx-row:hover { background: none; }
  .sx-row:active, .sx-more:active { background: var(--surface-2); }
}
/* Phone sideways: the same full-screen list, to the right of the rail; two columns of groups, each row on one line. */
@media (min-width: 600px) and (max-height: 500px) {
  .sx { --pic-w: 40px; --pic-h: 30px; }
  .top-search { display: flex; align-items: center; gap: 4px; }
  .top-search .top-q { flex: 1; min-width: 0; }
  html.sx-on { overflow: hidden; }
  html.sx-on .top-srv { display: none; }
  html.sx-on .top { position: relative; z-index: 60; background: var(--bg); padding-bottom: 8px; }
  html.sx-on .sx-cancel { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border: 0; background: none; color: var(--soft); font: 600 15px/1 var(--font); }
  .top-search .search-hits.sx-drop { position: fixed; top: 64px; left: var(--rail); right: 0; bottom: 0; max-height: none; border: 0; border-radius: 0; background: var(--bg); box-shadow: none; padding: 0 16px 12px; column-count: 2; column-gap: 28px; }
  .sx-drop .sx-g, .sx-drop .sx-note { break-inside: avoid; }
  .sx-drop .sx-g + .sx-g { border-top: 0; margin-top: 0; }
  .sx-drop .sx-note { column-span: all; }
  .search-hits.sx .sx-row, .sx-drop .sx-row { min-height: 40px; padding: 4px 8px; gap: 10px; }
  .sx-drop .sx-b { grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 10px; }
  .sx-drop .sx-t { font-size: 15px; -webkit-line-clamp: 1; }
  .sx-drop .sx-w { font-size: 13px; }
  .sx-drop .sx-h { padding: 10px 8px 2px; }
  .search-hits.sx .sx-more, .sx-drop .sx-more { min-height: 36px; margin: 0; padding-left: calc(var(--pic-w) + 18px); }
  .top-search .sx-drop .sx-foot { position: static; column-span: all; margin: 8px 0 0; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; }
  .sx-sv::after { display: none; }
  .sx-sv-day { order: 2; } .sx-sv-pop { order: 3; margin-left: 0; } .sx-sv-left { order: 4; } .sx-go { order: 5; }
  .search-hits.sx .sx-sv, .sx-sv { padding: 6px 8px; }
  .sx-drop .sx-exact { column-span: all; }
  .sx-page { --pic-w: 52px; --pic-h: 39px; }
  .sx-page .sx-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .sx-page .sx-g-server .sx-rows, .sx-page .sx-exact .sx-rows { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .sx-page .sx-row { min-height: 50px; padding: 4px 10px; }
  .search-page h1 { font-size: 18px; margin: 0 0 6px; }
  .search-page { padding-top: 6px; }
  .search-page .home-search { margin: 6px 0; }
}
/* Wide: the panel ends inside the screen; a server on one line. */
@media (min-width: 1000px) and (min-height: 501px) {
  .sx-drop { --pic-w: 52px; --pic-h: 39px; }
  .top-search .search-hits.sx-drop { min-width: 600px; max-height: calc(100vh - var(--header) - 20px); }
  .search-hits.sx .sx-row, .sx-drop .sx-row { min-height: 50px; padding: 5px 10px; }
  .sx-sv::after { display: none; }
  .sx-sv-day { order: 2; } .sx-sv-pop { order: 3; margin-left: 0; } .sx-sv-left { order: 4; } .sx-go { order: 5; }
  .search-hits.sx .sx-sv, .sx-sv { padding: 8px 10px; }
  .search-hits.sx-drop .sx-sv { flex-wrap: nowrap; } .sx-drop .sx-go { display: none; }
  .sx-drop .sx-sv-day { display: none; }   /* the chip's seven cells already say the day; the page and phones spell it out */   /* the panel's rows carry no arrows; one line */
  .sx-drop .sx-h { padding-top: 10px; }
  .search-hits.sx .sx-more, .sx-drop .sx-more { min-height: 38px; margin: 0 0 2px; }
  .sx-t { font-size: 15px; }
  .sx-drop .sx-t { -webkit-line-clamp: 1; }
  .sx-page { --pic-w: 72px; --pic-h: 54px; }
  .sx-page .sx-t { font-size: 16px; }
  .sx-chips { margin-bottom: 8px; }
  .sx-page .sx-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px 28px; }
  .sx-page .sx-g-guide .sx-rows { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
  .sx-page .sx-g-server .sx-rows, .sx-page .sx-exact .sx-rows { grid-template-columns: minmax(0, 620px); }
  .sx-page .sx-h { padding-top: 22px; }
}
/* ==== end of search results ==== */
