/* played.enderlit.com: same Primer tokens and primitives as enderlit.com (assets/site.css), plus tier list parts. */
:root {
  color-scheme: light;
  --bg: #ffffff; --bg-inset: #f6f8fa; --card: #ffffff; --header: #f6f8fa;
  --border: #d0d7de; --border-muted: #d8dee4;
  --fg: #1f2328; --muted: #656d76; --subtle: #6e7781;
  --link: #0969da; --accent-bg: #ddf4ff;
  --green: #1a7f37; --btn-primary: #1f883d; --btn-primary-hover: #1a7f37; --btn-primary-fg: #ffffff;
  --btn: #f6f8fa; --btn-hover: #eff2f5; --btn-border: rgba(31,35,40,.15);
  --danger: #d1242f; --danger-bg: #ffebe9; --warn: #9a6700; --warn-bg: #fff8c5;
  --cover-bg: #eaeef2; --shadow: 0 8px 24px rgba(140,149,159,.2);
  --t-s: #cf222e; --t-a: #bc4c00; --t-b: #9a6700; --t-c: #1a7f37; --t-d: #0969da; --t-e: #8250df; --t-f: #6e7781;
  --t-fg: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --cover-w: 76px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117; --bg-inset: #010409; --card: #161b22; --header: #010409;
  --border: #30363d; --border-muted: #21262d;
  --fg: #e6edf3; --muted: #8b949e; --subtle: #6e7681;
  --link: #58a6ff; --accent-bg: rgba(56,139,253,.15);
  --green: #3fb950; --btn-primary: #238636; --btn-primary-hover: #2ea043; --btn-primary-fg: #ffffff;
  --btn: #21262d; --btn-hover: #30363d; --btn-border: rgba(240,246,252,.1);
  --danger: #f85149; --danger-bg: rgba(248,81,73,.1); --warn: #d29922; --warn-bg: rgba(187,128,9,.15);
  --cover-bg: #21262d; --shadow: 0 8px 24px rgba(1,4,9,.75);
  --t-s: #f85149; --t-a: #f0883e; --t-b: #d29922; --t-c: #3fb950; --t-d: #58a6ff; --t-e: #bc8cff; --t-f: #8b949e;
  --t-fg: #0d1117;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0d1117; --bg-inset: #010409; --card: #161b22; --header: #010409;
    --border: #30363d; --border-muted: #21262d;
    --fg: #e6edf3; --muted: #8b949e; --subtle: #6e7681;
    --link: #58a6ff; --accent-bg: rgba(56,139,253,.15);
    --green: #3fb950; --btn-primary: #238636; --btn-primary-hover: #2ea043;
    --btn: #21262d; --btn-hover: #30363d; --btn-border: rgba(240,246,252,.1);
    --danger: #f85149; --danger-bg: rgba(248,81,73,.1); --warn: #d29922; --warn-bg: rgba(187,128,9,.15);
    --cover-bg: #21262d; --shadow: 0 8px 24px rgba(1,4,9,.75);
    --t-s: #f85149; --t-a: #f0883e; --t-b: #d29922; --t-c: #3fb950; --t-d: #58a6ff; --t-e: #bc8cff; --t-f: #8b949e;
    --t-fg: #0d1117;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--sans); overflow-wrap: break-word;
  min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, dl, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }
.oct { width: 16px; height: 16px; fill: currentColor; flex: none; vertical-align: text-bottom; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- header (same as enderlit.com) */
.appbar { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--border); }
.appbar-inner { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 16px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.brand-owner { font-weight: 400; }
.brand-sep { color: var(--muted); font-weight: 400; }
.appbar-nav { display: flex; gap: 4px; flex: 1; }
.appbar-nav a { color: var(--fg); padding: 6px 10px; border-radius: 6px; font-weight: 500; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.appbar-nav a:hover { background: var(--btn-hover); text-decoration: none; }
.appbar-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -13px; height: 2px; border-radius: 2px; background: #fd8c73;
}
.appbar-nav .nav-out { margin-left: auto; color: var(--muted); }
.appbar-nav .nav-out .oct { width: 12px; height: 12px; }
.appbar-tools { display: flex; align-items: center; gap: 8px; }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--btn); }
.seg a, .seg button { font: 500 12px/1 var(--sans); color: var(--muted); padding: 7px 10px; border: 0; background: transparent; cursor: pointer; }
.seg a + a, .seg button + button { border-left: 1px solid var(--border); }
.seg a:hover, .seg button:hover { text-decoration: none; color: var(--fg); background: var(--btn-hover); }
.seg [aria-current="true"], .seg [aria-checked="true"] { color: var(--fg); background: var(--card); font-weight: 600; }
.seg-sm button { padding: 8px 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--muted);
  background: var(--btn); border: 1px solid var(--btn-border); border-radius: 6px; cursor: pointer; }
.icon-btn:hover { color: var(--fg); background: var(--btn-hover); }
:root[data-theme="dark"] .icon-btn .moon, :root:not([data-theme="dark"]) .icon-btn .sun { display: none; }

/* ---------- primitives (same as enderlit.com) */
.page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 24px 48px; flex: 1; }
.section { display: grid; gap: 16px; min-width: 0; }
.h1 { font-size: 24px; font-weight: 600; line-height: 1.25; }
.h2 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.page-head { display: grid; gap: 4px; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.Box { background: var(--card); border: 1px solid var(--border); border-radius: 6px; min-width: 0; }
.Box-header { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-inset); border-radius: 6px 6px 0 0; }
:root[data-theme="dark"] .Box-header { background: var(--card); }
.box-title { font-size: 14px; font-weight: 600; }
.Label { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; font-size: 12px; font-weight: 500; line-height: 18px;
  color: var(--muted); border: 1px solid var(--border); border-radius: 2em; white-space: nowrap; }
.Label .oct { width: 12px; height: 12px; }
.Label-done { color: var(--green); border-color: currentColor; }
.Label-warn { color: var(--warn); border-color: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 12px;
  font: 500 14px/1 var(--sans); color: var(--fg); background: var(--btn); border: 1px solid var(--btn-border);
  border-radius: 6px; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { color: var(--btn-primary-fg); background: var(--btn-primary); border-color: rgba(31,35,40,.15); }
.btn-primary:hover { background: var(--btn-primary-hover); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-invisible { background: transparent; border-color: transparent; color: var(--link); }
.btn-invisible:hover { background: var(--btn-hover); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-link { border: 0; background: none; color: var(--link); padding: 0; font: inherit; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.flash { padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--accent-bg); }
.flash-error { background: var(--danger-bg); border-color: var(--danger); }
.flash-warn { background: var(--warn-bg); border-color: var(--warn); }
.blank { padding: 32px 16px; text-align: center; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); justify-self: start; }
.back:hover { color: var(--link); }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 6px; background: var(--card); }
.counters div { padding: 16px; display: grid; gap: 2px; }
.counters div + div { border-left: 1px solid var(--border); }
.counters b { font-size: 24px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; }
.counters span { color: var(--muted); font-size: 12px; }

/* ---------- form controls */
.input { width: 100%; min-height: 32px; padding: 5px 12px; font: 14px/20px var(--sans); color: var(--fg);
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.input:focus { outline: 2px solid var(--link); outline-offset: -1px; border-color: var(--link); }
select.input { padding-right: 28px; }
textarea.input { resize: vertical; min-height: 120px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field-label { font-weight: 600; font-size: 14px; }
.field-narrow { max-width: 160px; }
.search { position: relative; display: block; }
.search .oct { position: absolute; left: 10px; top: 8px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 32px; }

/* ---------- filters */
.filters { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.filters .field { flex: 1 1 160px; }
.filters .field-grow { flex: 3 1 240px; }
.filters .field-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.filters-actions { display: flex; gap: 8px; }
.filters-more { display: contents; }
.filters-toggle { display: none; }
.Counter { display: inline-block; min-width: 20px; padding: 0 6px; font-size: 12px; font-weight: 500; line-height: 18px;
  text-align: center; border-radius: 2em; background: var(--btn-hover); color: var(--fg); }
.js .filters [data-nojs] { display: none; }
.filter-status { font-size: 12px; margin-top: -8px; }
.filter-status:empty { display: none; }

/* ---------- tier list */
.tierlist { display: grid; border: 1px solid var(--border); border-radius: 6px; background: var(--card); overflow: hidden; }
.tier { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: calc(var(--cover-w) * 4 / 3 + 16px); }
.tier + .tier { border-top: 1px solid var(--border); }
.tier-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--tier); color: var(--t-fg); font: 600 28px/1 var(--sans); }
.tier-label small { font-size: 11px; font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
.tier-s { --tier: var(--t-s); } .tier-a { --tier: var(--t-a); } .tier-b { --tier: var(--t-b); } .tier-c { --tier: var(--t-c); }
.tier-d { --tier: var(--t-d); } .tier-e { --tier: var(--t-e); } .tier-f { --tier: var(--t-f); }
.tier-items { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; align-content: flex-start; min-width: 0; }
.tier-items > li { width: var(--cover-w); flex: none; }
.tl-item { position: relative; display: block; border-radius: 4px; }
.tl-item:hover .cover { outline: 2px solid var(--link); outline-offset: 1px; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--cover-bg); }
.cover-none { display: grid; place-items: center; padding: 6px; text-align: center; font-size: 11px; line-height: 1.25;
  color: var(--muted); border: 1px dashed var(--border); overflow: hidden; }
.cover-none span { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tl-done { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; display: grid; place-items: center;
  border-radius: 50%; background: var(--btn-primary); color: #fff; box-shadow: 0 0 0 2px var(--card); }
.tl-done .oct { width: 12px; height: 12px; }
.tl-full { width: auto; min-width: 18px; padding: 0 4px; border-radius: 9px; font: 700 10px/18px var(--sans); background: var(--t-b); color: var(--t-fg); }
.Label-full { color: var(--t-b); border-color: currentColor; font-weight: 600; }
.tl-key { display: inline-block; padding: 0 4px; border-radius: 9px; font: 700 10px/16px var(--sans); background: var(--t-b); color: var(--t-fg); }
.card-labels { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-legend { display: inline-flex; align-items: center; gap: 4px; }
.tl-legend .oct { width: 14px; height: 14px; color: #fff; background: var(--btn-primary); border-radius: 50%; padding: 1px; }
.tier.is-empty .tier-items::after { content: "—"; color: var(--subtle); align-self: center; padding-left: 4px; }

/* ---------- game cards (All games) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; color: var(--fg); height: 100%; }
.card:hover { text-decoration: none; border-color: var(--subtle); }
.card:hover .card-title { color: var(--link); }
.card-cover { display: block; width: 96px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--cover-bg); }
.card-cover.cover-none { height: 128px; }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.card-top { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.card-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.card-plays { display: grid; gap: 2px; font-size: 12px; }
.tier-badge { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 6px;
  background: var(--tier); color: var(--t-fg); font: 700 13px/1 var(--sans); }
.tier-badge-lg { min-width: 56px; height: 56px; font-size: 30px; border-radius: 8px; flex: none; }

/* ---------- game page */
.game { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }
.game-cover { position: sticky; top: 89px; }
.game-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); background: var(--cover-bg); }
.game-img.cover-none { font-size: 14px; }
.game-img.cover-none, .card-cover.cover-none, .cover.cover-none { display: grid; }
.game-main { display: grid; gap: 16px; min-width: 0; }
.game-head { display: flex; gap: 16px; align-items: center; }
.game-title { font-size: 28px; }
.game-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12px; }
.plays li { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 10px 16px; }
.plays li + li { border-top: 1px solid var(--border-muted); }
.play-name { font-weight: 600; }
.play-hw { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.play-hw.is-emu { color: var(--fg); }
.review { padding: 16px; display: grid; gap: 12px; font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--muted); font-size: 12px; }
.facts dt { display: inline; }
.facts dt::after { content: ": "; }
.facts dd { display: inline; margin: 0; color: var(--fg); }
.more { margin-top: 24px; }
.more-items { padding: 0; }

/* ---------- 404 / 500 */
.nf { place-items: center; }
.nf-box { width: min(560px, 100%); }
.nf-body { padding: 32px; display: grid; gap: 8px; }
.nf-code { font: 600 48px/1 var(--mono); color: var(--muted); }
.nf-body .btn { margin-top: 12px; }

/* ---------- footer */
.footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 24px; display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.footer-row { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.footer a:hover { color: var(--link); }
.disclaimer { max-width: 90ch; }

/* ---------- admin */
.inline { display: inline; }
.login { display: grid; place-items: center; padding-top: 48px; }
.login-box { width: min(360px, 100%); }
.login-body { padding: 16px; display: grid; gap: 16px; }
.board-hint { max-width: 80ch; }
.save-status { font-size: 12px; color: var(--muted); min-height: 18px; }
.save-status.is-error { color: var(--danger); }
.board-item { position: relative; cursor: grab; touch-action: pan-y; border-radius: 4px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.board-item a { display: block; }
.board-item img { pointer-events: none; -webkit-user-drag: none; }
.board-item.is-ghost { opacity: .35; }
.board-item:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.drag-avatar { position: fixed; z-index: 50; width: var(--cover-w); pointer-events: none; box-shadow: var(--shadow); border-radius: 4px; transform: rotate(-2deg); }
.board .tier-items { min-height: calc(var(--cover-w) * 4 / 3 + 16px); }
.board .tier.is-over { background: var(--accent-bg); }
body.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }

.form-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.form-cover { display: grid; gap: 8px; position: sticky; top: 89px; }
.cover-preview { width: 100%; }
.cover-preview img, .cover-preview .cover-none { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--cover-bg); }
.cover-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-main { display: grid; gap: 20px; min-width: 0; max-width: 720px; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% - 18px); max-height: 420px; overflow-y: auto; box-shadow: var(--shadow); }
.ac-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 10px; cursor: pointer; }
.ac-list li + li { border-top: 1px solid var(--border-muted); }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--accent-bg); }
.ac-list img, .ac-list .ac-none { width: 36px; height: 48px; object-fit: cover; border-radius: 3px; background: var(--cover-bg); }
.ac-list .ac-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-list .ac-title { font-weight: 600; }
.tier-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.tier-pick { position: relative; }
.tier-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tier-pick span { display: grid; place-items: center; width: 44px; height: 40px; border-radius: 6px; font: 700 18px/1 var(--sans);
  border: 2px solid var(--tier); color: var(--tier); background: transparent; }
.tier-pick input:checked + span { background: var(--tier); color: var(--t-fg); }
.tier-pick input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--btn-primary); }
.plays-edit { display: grid; gap: 8px; }
[data-add-play] { justify-self: start; }
.play-row { display: grid; grid-template-columns: minmax(140px, 1fr) auto auto; gap: 12px; align-items: center; }
.check-inline { align-items: center; white-space: nowrap; }
.check-inline input { margin-top: 0; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.suggest button { font: 500 12px/18px var(--sans); padding: 0 8px; border-radius: 2em; border: 1px solid var(--border); background: var(--btn); color: var(--fg); cursor: pointer; }
.suggest button:hover { border-color: var(--link); color: var(--link); }
.igdb-link { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; margin-top: -12px; }
.form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border-muted); }
.form-actions .spacer { flex: 1; }
.dialog { padding: 0; color: var(--fg); max-width: min(440px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(1,4,9,.5); }
.dialog-body { padding: 20px; display: grid; gap: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------- responsive */
@media (max-width: 1011px) {
  .game { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .form-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  :root { --cover-w: 56px; }
  .appbar-inner { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px 0; }
  .appbar-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px; }
  .appbar-nav a { padding: 8px 10px 10px; white-space: nowrap; }
  .appbar-nav a[aria-current="page"]::after { bottom: 0; }
  .brand { flex: 1; }
  .appbar-tools { padding-bottom: 4px; }
  .admin .appbar-inner { padding-bottom: 10px; }
  .page { padding: 16px 16px 32px; }
  .h1 { font-size: 20px; }
  .tier { grid-template-columns: 40px minmax(0, 1fr); }
  .tier-label { font-size: 20px; }
  .tier-label small { font-size: 10px; }
  .tier-items { gap: 4px; padding: 6px; }
  .tl-done { width: 14px; height: 14px; right: 2px; bottom: 2px; }
  .tl-done .oct { width: 10px; height: 10px; }
  .tl-full { min-width: 14px; height: 14px; padding: 0 3px; font-size: 8px; line-height: 14px; }
  .cover-none { font-size: 9px; padding: 3px; }
  .filters { padding: 12px; gap: 10px; }
  .filters .field-grow { flex: 1 1 0; }
  .filters .field-grow .field-label { display: none; }
  .filters-toggle { display: inline-flex; height: 32px; }
  .filters-more { display: none; }
  :root:not(.js) .filters-more, :root:not(.js) .filters-toggle { display: none; }
  :root:not(.js) .filters-more { display: flex; flex-wrap: wrap; gap: 10px; flex-basis: 100%; }
  .filters.is-open .filters-more { display: flex; flex-wrap: wrap; gap: 10px; flex-basis: 100%; }
  .filters-actions:empty, .js .filters-actions:not(:has(:not([hidden]):not([data-nojs]))) { display: none; }
  .filters .field { flex: 1 1 calc(50% - 10px); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counters div:nth-child(3) { border-left: 0; }
  .counters div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .cards { grid-template-columns: 1fr; gap: 8px; }
  .card { grid-template-columns: 72px minmax(0, 1fr); }
  .card-cover { width: 72px; }
  .card-cover.cover-none { height: 96px; }
  .game { grid-template-columns: 1fr; }
  .game-cover { position: static; width: 160px; }
  .game-title { font-size: 22px; }
  .tier-badge-lg { min-width: 44px; height: 44px; font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-cover { position: static; grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
  .form-cover .field-label { grid-column: 1 / -1; }
  .cover-preview { grid-row: span 3; }
  .play-row { grid-template-columns: 1fr auto; gap: 8px; padding: 8px; border: 1px solid var(--border-muted); border-radius: 6px; }
  .play-row [data-k="platform"] { grid-column: 1 / -1; }
  .footer-inner { padding: 16px; }
}
@media (max-width: 380px) {
  :root { --cover-w: 50px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
