/* bGeek.ru. Три колонки как в макете (навигация / лента / правая колонка), страница игры во всю ширину с тёмным героем. */
:root{
  --bg:#f2f2f3; --surface:#ffffff; --surface-2:#f4f4f5; --line:#e7e7ea;
  --fg:#141416; --muted:#6f7078; --faint:#a3a4ab;
  --red:#e0211b; --red-soft:#fde8e7; --red-ink:#c81912;
  --ink:#141416; --ink-fg:#ffffff;
  --hero:#1c1415; --hero-fg:#ffffff; --hero-muted:#c9bcbc; --hero-cell:#262022;
  --ok:#1c8a4a; --ok-soft:#e3f4ea;
  --t-news:#fde8e7; --t-news-fg:#c81912;
  --t-crowd:#fff1db; --t-crowd-fg:#b86b00;
  --t-review:#e4edff; --t-review-fg:#2f5bd1;
  --t-report:#e1f4e7; --t-report-fg:#1c8a4a;
  --t-rules:#efe6ff; --t-rules-fg:#6d3bd6;
  --t-video:#ececee; --t-video-fg:#3c3c43; --t-articles:#e0f2f4; --t-articles-fg:#137a86;
  --t-market:#fff6cc; --t-market-fg:#8a6a00;
  --display:"Oswald","Arial Narrow",Impact,sans-serif;
  --body:"Onest",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --r:12px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#111113; --surface:#1b1b1e; --surface-2:#242428; --line:#2d2d32;
  --fg:#efeff1; --muted:#9d9ea6; --faint:#6b6c73;
  --red:#f0372f; --red-soft:#3a1a19; --red-ink:#ff6b63;
  --ink:#efeff1; --ink-fg:#141416;
  --hero:#1a1112; --hero-fg:#ffffff; --hero-muted:#c9bcbc; --hero-cell:#2a2224;
  --ok:#4cc27d; --ok-soft:#173222;
  --t-news:#3a1a19; --t-news-fg:#ff8a83; --t-crowd:#3a2a12; --t-crowd-fg:#f0a640;
  --t-review:#1c2742; --t-review-fg:#8fb0ff; --t-report:#16301f; --t-report-fg:#6ed597;
  --t-rules:#2a1f42; --t-rules-fg:#b797ff; --t-video:#2a2a2e; --t-video-fg:#c6c6cc; --t-articles:#153438; --t-articles-fg:#6fd0dc;
  --t-market:#332b0e; --t-market-fg:#e6c64a;
  color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#111113; --surface:#1b1b1e; --surface-2:#242428; --line:#2d2d32;
  --fg:#efeff1; --muted:#9d9ea6; --faint:#6b6c73;
  --red:#f0372f; --red-soft:#3a1a19; --red-ink:#ff6b63;
  --ink:#efeff1; --ink-fg:#141416;
  --hero:#1a1112; --hero-fg:#ffffff; --hero-muted:#c9bcbc; --hero-cell:#2a2224;
  --ok:#4cc27d; --ok-soft:#173222;
  --t-news:#3a1a19; --t-news-fg:#ff8a83; --t-crowd:#3a2a12; --t-crowd-fg:#f0a640;
  --t-review:#1c2742; --t-review-fg:#8fb0ff; --t-report:#16301f; --t-report-fg:#6ed597;
  --t-rules:#2a1f42; --t-rules-fg:#b797ff; --t-video:#2a2a2e; --t-video-fg:#c6c6cc; --t-articles:#153438; --t-articles-fg:#6fd0dc;
  --t-market:#332b0e; --t-market-fg:#e6c64a;
  color-scheme:dark}

*{box-sizing:border-box}
body{background:var(--bg);color:var(--fg);font-family:var(--body);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:6px}
h1,h2,h3{text-wrap:balance;margin:0}
.num{font-variant-numeric:tabular-nums}

/* top bar */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--surface);border-bottom:1px solid var(--line)}
.top-in{max-width:1180px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:16px}
.logo{display:flex;align-items:center;flex:none}
.logo img{display:block;height:44px;width:auto}
.search{flex:1;max-width:460px;margin:0 auto;position:relative}
.search input{width:100%;height:38px;border-radius:10px;border:1px solid transparent;background:var(--surface-2);padding:0 12px 0 36px}
.search input:focus{outline:none;border-color:var(--red);background:var(--surface)}
.search svg{position:absolute;left:12px;top:11px;width:16px;height:16px;color:var(--muted)}
.sr{position:absolute;top:44px;left:0;right:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.14);padding:6px;max-height:380px;overflow:auto}
.sr-h{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--faint);padding:8px 10px 4px}
.sr a{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:8px}
.sr a:hover,.sr a.hl{background:var(--surface-2)}
.top-actions{display:flex;align-items:center;gap:10px;flex:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 16px;border-radius:9px;font-weight:600;font-size:13px;white-space:nowrap}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{filter:brightness(1.08)}
.btn-ink{background:var(--ink);color:var(--ink-fg);width:100%}
.btn-ghost{background:var(--surface-2)}
.icon-btn{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);position:relative}
.icon-btn svg{width:17px;height:17px}
.dot{position:absolute;top:7px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--red);border:2px solid var(--surface)}
.ava{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--red-soft);color:var(--red-ink);font-weight:700;font-size:12px;flex:none}
.ava.sm{width:28px;height:28px;font-size:11px}

/* shell */
.shell{max-width:1180px;margin:0 auto;padding:16px;display:grid;grid-template-columns:200px minmax(0,1fr) 240px;gap:20px;align-items:start}
.side{position:sticky;top:calc(env(safe-area-inset-top,0px) + 74px);display:flex;flex-direction:column;gap:2px}
.side a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;font-weight:600;font-size:13.5px}
.side a:hover{background:var(--surface)}
.side a.on{background:var(--surface);box-shadow:0 1px 0 var(--line)}
.side a.on .ic{color:var(--red)}
.side .ic{width:17px;height:17px;color:var(--muted);flex:none}
.side .cap{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--faint);padding:18px 10px 6px;font-weight:600}
.side a.t{font-weight:500}
.tl{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;font-size:11px;font-weight:700;flex:none}
.side .cnt{margin-left:auto;font-size:11px;color:var(--faint);font-weight:500}

.col{display:flex;flex-direction:column;gap:12px;min-width:0}
.card{background:var(--surface);border-radius:var(--r);padding:16px}
.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:var(--surface);padding:4px;border-radius:var(--r)}
.tabs a{text-align:center;padding:8px;border-radius:9px;font-weight:600;font-size:13px}
.tabs a.on{background:var(--ink);color:var(--ink-fg)}
.composer{display:flex;gap:12px;align-items:center}
.composer button{flex:1;text-align:left;height:40px;border-radius:10px;background:var(--surface-2);padding:0 14px;color:var(--muted)}

/* post */
.post{display:flex;flex-direction:column;gap:12px}
.meta{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);flex-wrap:wrap}
.meta b{color:var(--fg);font-weight:600}
.meta .more{margin-left:auto;letter-spacing:2px;color:var(--faint);padding:0 4px}
.post h2{font-size:20px;line-height:1.25;font-weight:700;letter-spacing:-.01em}
.post h2 a:hover{color:var(--red)}
.lead{margin:0;color:var(--fg);max-width:65ch}
.art{position:relative;border-radius:10px;overflow:hidden;aspect-ratio:16/8;max-width:100%;display:grid;place-items:center}
.art .big{font-family:var(--display);font-weight:700;font-size:min(22vw,150px);line-height:1;color:rgba(255,255,255,.9);text-shadow:0 6px 30px rgba(0,0,0,.25)}
.art .cap{position:absolute;left:14px;bottom:12px;font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:rgba(255,255,255,.8);font-weight:600}
.gchip{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;padding:9px 12px}
.gchip:hover{border-color:var(--faint)}
.gchip .n{font-weight:600;font-size:13.5px}
.gchip .s{font-size:12px;color:var(--muted)}
.gchip .chev{margin-left:auto;color:var(--faint)}
.gl{width:32px;height:32px;border-radius:7px;display:grid;place-items:center;color:#fff;font-weight:700;font-family:var(--display);font-size:16px;flex:none}
.gl.sm{width:28px;height:28px;font-size:14px;border-radius:6px}
.gl.lg{width:40px;height:40px;font-size:20px}
.badge{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;border-radius:5px;background:var(--red-soft);color:var(--red-ink);white-space:nowrap}
.badge.gray{background:var(--surface-2);color:var(--muted)}
.badge.ok{background:var(--ok-soft);color:var(--ok)}
.showall{color:var(--red);font-weight:600;font-size:13px;align-self:flex-start}
.acts{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:12px}
.pill{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:99px;background:var(--surface-2);font-size:12.5px;font-weight:600}
.pill svg{width:15px;height:15px}
.pill.on{background:var(--red-soft);color:var(--red-ink)}
.pill.on svg{fill:currentColor}
.acts .sp{margin-left:auto}
.body p{margin:0 0 12px;max-width:68ch;font-size:15px;line-height:1.65}
.body a{color:var(--red-ink);text-decoration:underline;text-underline-offset:2px}
.body .btn-ink{color:var(--ink-fg);text-decoration:none}
.bq{margin:6px 0 14px;padding:4px 0 4px 16px;border-left:3px solid var(--red);font-size:15px;line-height:1.6;max-width:68ch}
.ul{margin:0 0 12px;padding-left:22px;font-size:15px;line-height:1.6}
.fig{margin:4px 0 16px}
.fig figcaption{font-size:12px;color:var(--muted);margin-top:6px}
.gal{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.gal .art{aspect-ratio:1}
.gal .art svg{width:28px;height:28px}
.more-btn{align-self:center}

/* rail */
.rail{display:flex;flex-direction:column;gap:12px;position:sticky;top:calc(env(safe-area-inset-top,0px) + 74px)}
.rh{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.rh h3,.h-disp{font-family:var(--display);font-weight:600;font-size:17px;text-transform:uppercase;letter-spacing:.01em}
.rh a{color:var(--red);font-weight:600;font-size:12px}
.hot{display:flex;flex-direction:column;gap:4px}
.hot a{display:flex;align-items:center;gap:10px;padding:5px 0;font-weight:600;font-size:13px;line-height:1.25}
.hot a:hover .n{color:var(--red)}
.hot .i{width:12px;color:var(--faint);font-weight:500;text-align:right;flex:none}
.soon a{display:flex;gap:10px;align-items:center;padding:6px 0}
.dt{width:38px;height:40px;border:1px solid var(--line);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;line-height:1}
.dt b{color:var(--red);font-family:var(--display);font-size:17px}
.dt small{font-size:8.5px;text-transform:uppercase;color:var(--muted);margin-top:2px;letter-spacing:.04em}
.soon .n{font-weight:600;font-size:13px;line-height:1.25}
.soon .s{font-size:11.5px;color:var(--muted)}
.promo{border-radius:var(--r);overflow:hidden;background:#141416;color:#fff}
.promo .pic{height:110px;display:grid;place-items:center;background:
  radial-gradient(circle at 20% 30%,rgba(255,255,255,.18) 0 6px,transparent 7px) 0 0/34px 34px,
  linear-gradient(135deg,#b3120d,#e0211b 55%,#5c0906)}
.promo .pic img{width:auto;height:72px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.35))}
.promo .tx{padding:14px}
.promo p{margin:0 0 12px;font-size:13px}

/* game page */
.hero{background:
  radial-gradient(900px 300px at 70% 20%,rgba(224,33,27,.35),transparent 70%),
  repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 2px,transparent 2px 22px),var(--hero);color:var(--hero-fg)}
.hero-in{max-width:1180px;margin:0 auto;padding:18px 16px 28px}
.crumbs{font-size:12px;color:var(--hero-muted);margin-bottom:16px}
.crumbs a:hover{color:#fff}
.hero-grid{display:grid;grid-template-columns:170px minmax(0,1fr) 250px;gap:24px;align-items:start}
.box{aspect-ratio:3/4;border-radius:10px;display:grid;place-items:center;box-shadow:0 18px 40px rgba(0,0,0,.45);position:relative;overflow:hidden}
.box .big{font-family:var(--display);font-size:84px;font-weight:700;color:rgba(255,255,255,.92)}
.box .ttl{position:absolute;left:10px;right:10px;bottom:10px;font-family:var(--display);font-size:13px;text-transform:uppercase;line-height:1.1;color:#fff}
.hero h1{font-family:var(--display);font-weight:600;font-size:clamp(28px,4.4vw,44px);line-height:1.08;margin:10px 0 8px}
.hero .sub{color:var(--hero-muted);max-width:60ch;margin:0 0 16px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;border-radius:10px;overflow:hidden;max-width:470px}
.stats div{background:var(--hero-cell);padding:10px 12px}
.stats b{display:block;font-family:var(--display);font-size:22px;font-weight:600;line-height:1.1}
.stats span{font-size:11px;color:var(--hero-muted)}
.rate{background:var(--surface);color:var(--fg);border-radius:12px;padding:14px}
.rate-top{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.hex{width:48px;height:52px;display:grid;place-items:center;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:var(--surface-2);font-family:var(--display);font-size:20px;font-weight:600;color:var(--muted);flex:none}
.hex.good{background:var(--ok);color:#fff}
.hex.mid{background:#2f6fd6;color:#fff}
.rate-top b{display:block;font-size:13.5px}
.rate-top small{display:block;color:var(--muted);font-size:11.5px;line-height:1.3}
.coll{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.coll button{height:34px;border:1px solid var(--line);border-radius:8px;font-weight:600;font-size:12.5px}
.coll button:hover{border-color:var(--faint)}
.coll button.on{background:var(--ink);color:var(--ink-fg);border-color:var(--ink)}
.myrate{margin-top:10px;display:flex;gap:3px;flex-wrap:wrap}
.myrate button{width:20px;height:24px;border-radius:4px;background:var(--surface-2);font-size:11px;font-weight:600}
.myrate button.on{background:var(--red);color:#fff}
.myrate-l{font-size:11.5px;color:var(--muted);margin-top:10px}
.gtabs{background:var(--surface);border-bottom:1px solid var(--line)}
.gtabs-in{max-width:1180px;margin:0 auto;padding:0 16px;display:flex;gap:22px;overflow-x:auto}
.gtabs a{padding:13px 0 11px;font-weight:600;font-size:13px;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.gtabs a.on{color:var(--fg);border-color:var(--red)}
.gpage{max-width:1180px;margin:0 auto;padding:18px 16px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start}
.card h2.h-disp{margin-bottom:12px;font-size:20px}
.info{display:grid;grid-template-columns:130px minmax(0,1fr);gap:9px 16px;font-size:13.5px}
.info dt{color:var(--muted)}
.info dd{margin:0}
.info a{color:var(--red);font-weight:500}
.tags{display:flex;flex-wrap:wrap;gap:5px}
.tag{font-size:12px;background:var(--surface-2);padding:3px 9px;border-radius:6px}
a.tag:hover{background:var(--red-soft);color:var(--red-ink)}
.kv{display:flex;justify-content:space-between;font-size:13px;padding:5px 0}
.kv span{color:var(--muted)}
.kv b{font-weight:600}
.sim a{display:flex;gap:10px;align-items:center;padding:6px 0}
.sim .n{font-weight:600;font-size:13px}
.sim .s{font-size:11.5px;color:var(--muted)}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.photos .art{aspect-ratio:4/3}
.files a{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.files a:last-child{border:0}
.ft{width:36px;height:40px;border-radius:6px;background:var(--surface-2);display:grid;place-items:center;font-size:10px;font-weight:700;color:var(--muted)}

/* catalog */
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.filters select,.filters input{height:34px;border-radius:8px;border:1px solid var(--line);background:var(--surface);padding:0 10px;font-size:13px}
.filters input{flex:1;min-width:160px}
.seg{display:inline-flex;background:var(--surface-2);border-radius:8px;padding:3px;gap:2px}
.seg button{height:28px;padding:0 10px;border-radius:6px;font-size:12.5px;font-weight:600;color:var(--muted)}
.seg button.on{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.mech{display:flex;gap:6px;flex-wrap:wrap}
.mech button{font-size:12px;padding:4px 10px;border-radius:99px;border:1px solid var(--line);font-weight:500}
.mech button.on{background:var(--red);border-color:var(--red);color:#fff}
.tbl-wrap{overflow-x:auto}
table.cat{width:100%;border-collapse:collapse;font-size:13px}
.cat th{text-align:left;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.cat th button{font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit}
.cat th button.on{color:var(--red)}
.cat td{padding:10px;border-bottom:1px solid var(--line);vertical-align:middle}
.cat tr:last-child td{border:0}
.cat tr:hover td{background:var(--surface-2)}
.cat .rk{color:var(--faint);font-family:var(--display);font-size:16px;width:32px}
.cat .g{display:flex;gap:10px;align-items:center;min-width:220px}
.cat .g b{font-weight:600;display:block}
.cat .g small{color:var(--muted);font-size:11.5px}
.rt{display:inline-grid;place-items:center;width:38px;height:26px;border-radius:6px;font-weight:700;font-size:12.5px;background:var(--surface-2);color:var(--muted)}
.rt.good{background:var(--ok);color:#fff}
.rt.mid{background:#2f6fd6;color:#fff}
.wbar{display:inline-block;width:44px;height:5px;border-radius:3px;background:var(--surface-2);vertical-align:middle;margin-right:6px;overflow:hidden}
.wbar i{display:block;height:100%;background:var(--red)}
.empty{padding:40px 16px;text-align:center;color:var(--muted)}

/* calendar */
.cal-m{font-family:var(--display);font-size:15px;text-transform:uppercase;color:var(--muted);margin:6px 0 4px;letter-spacing:.04em}
.cal-row{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.cal-row:last-child{border:0}
.cal-row .dt{width:48px;height:52px}
.cal-row .dt b{font-size:22px}
.cal-row .n{font-weight:600;font-size:14.5px}
.cal-row .s{font-size:12.5px;color:var(--muted)}
.cal-row .grow{flex:1;min-width:0}

/* comments */
.cm{display:flex;gap:10px;padding:10px 0}
.cm .c-body{flex:1;min-width:0}
.cm .c-h{font-size:12.5px;color:var(--muted)}
.cm .c-h b{color:var(--fg);font-weight:600;margin-right:6px}
.cm p{margin:2px 0 6px;font-size:14px}
.cm .c-a{display:flex;gap:14px;font-size:12px;color:var(--muted);font-weight:600}
.cm .c-a button:hover{color:var(--red)}
.cm .kids{border-left:2px solid var(--line);padding-left:12px;margin-top:4px}
.cform{display:flex;gap:10px;align-items:flex-start}
.cform textarea{flex:1;min-height:42px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);padding:10px 12px;resize:vertical}

/* modal */
.modal{position:fixed;inset:0;z-index:50;background:rgba(10,10,12,.5);display:grid;place-items:center;padding:16px}
.dlg{background:var(--surface);border-radius:16px;width:min(620px,100%);max-height:calc(100% - 32px);overflow:auto;padding:20px;display:flex;flex-direction:column;gap:12px}
.dlg-h{display:flex;justify-content:space-between;align-items:center}
.dlg input[type=text],.dlg textarea,.dlg select{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);padding:10px 12px}
.dlg #f-title{font-size:18px;font-weight:700;background:transparent;border:0;padding:4px 0}
.dlg #f-title:focus{outline:none}
.dlg textarea{min-height:140px;resize:vertical}
.dlg .row{display:flex;gap:10px;flex-wrap:wrap}
.dlg .row>*{flex:1;min-width:180px}
.dlg label{font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:4px}
.dlg .foot{display:flex;justify-content:flex-end;gap:8px}
.err{color:var(--red-ink);font-size:12.5px}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--ink-fg);padding:10px 16px;border-radius:10px;font-weight:600;font-size:13px;z-index:60}
.proto{max-width:1180px;margin:0 auto;padding:4px 16px 32px;color:var(--faint);font-size:12px}

/* mobile nav */
.mnav{display:none}
@media (max-width:1040px){
  .shell{grid-template-columns:180px minmax(0,1fr)}
  .rail{grid-column:2;position:static;display:grid;grid-template-columns:1fr 1fr;align-items:start}
  .promo{grid-column:span 2}
}
@media (max-width:760px){
  .shell{grid-template-columns:minmax(0,1fr);padding-top:10px}
  .side{display:none}
  .rail{grid-column:1;grid-template-columns:1fr}
  .promo{grid-column:auto}
  .search{display:none}
  .top-actions .bell{display:none}
  .top-in{justify-content:space-between}
  .logo img{height:36px}
  .mnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));justify-content:space-around}
  .mnav a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10.5px;font-weight:600;color:var(--muted);padding:2px 6px}
  .mnav a.on{color:var(--red)}
  .mnav svg{width:20px;height:20px}
  body{padding-bottom:64px}
  .hero-grid{grid-template-columns:96px minmax(0,1fr)}
  .hero-grid .rate{grid-column:1 / -1}
  .box .big{font-size:48px}.box .ttl{display:none}
  .stats{grid-template-columns:repeat(2,1fr)}
  .gpage{grid-template-columns:minmax(0,1fr)}
  .info{grid-template-columns:100px minmax(0,1fr)}
  .post h2{font-size:18px}
  .tabs a{font-size:12px;padding:8px 4px}
}
@media (prefers-reduced-motion:no-preference){.pill,.coll button,.tabs a{transition:background .15s,color .15s}}

/* ---- сайт (дополнения к прототипу) ---- */
body{margin:0;padding-top:env(safe-area-inset-top,0px)}
img{max-width:100%}
.ic14{width:14px;height:14px}
.muted{color:var(--muted)}
.m-search{display:none}
.shell.no-rail{grid-template-columns:200px minmax(0,1fr)}
.tabs-2{grid-template-columns:1fr 1fr}
.tl-news{background:var(--t-news);color:var(--t-news-fg)}
.tl-articles{background:var(--t-articles);color:var(--t-articles-fg)}
.tl-video{background:var(--t-video);color:var(--t-video-fg)}
.tl-crowd{background:var(--t-crowd);color:var(--t-crowd-fg)}
.tl-review{background:var(--t-review);color:var(--t-review-fg)}
.tl-report{background:var(--t-report);color:var(--t-report-fg)}
.tl.xs{width:18px;height:18px;font-size:10px}
.meta-t{display:flex;gap:6px;align-items:center}
.meta .views{margin-left:auto}
.views{display:inline-flex;align-items:center;gap:5px;color:var(--faint);font-size:12.5px}
.views svg{width:15px;height:15px}
.acts .views{margin-left:auto}
.acts .showall{align-self:center}
.post-full h1{font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.01em}
.page-h{display:flex;align-items:center}
.page-h h1,.page-t{font-size:24px;margin-bottom:4px}
.page-sub{margin:0 0 14px;color:var(--muted)}
.h-sm{font-size:17px!important}
/* картинки: подложка видна, пока картинка грузится или если её нет */
.ph{position:relative;display:block;border-radius:10px;overflow:hidden;background:
  radial-gradient(circle at 18% 22%,rgba(255,255,255,.14) 0 3px,transparent 4px) 0 0/28px 28px,
  linear-gradient(135deg,#7a1512,#2a1010)}
.ph::before{content:"";position:absolute;inset:0;background:url(shield-dark.png) center/auto 44% no-repeat;opacity:.22}
.ph img{position:relative;display:block;width:100%;height:100%;object-fit:cover}
.ph img.broken{visibility:hidden}
.cover{aspect-ratio:16/9;max-height:420px}
.fig{margin:4px 0 16px}
.fig .ph{max-height:560px}
.fig .ph img{object-fit:contain;background:var(--surface-2)}
.fig figcaption{font-size:12px;color:var(--muted);margin-top:6px}
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px}
.gal .ph{aspect-ratio:1}
.gal .ph img{object-fit:cover}
.play{position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;background:rgba(0,0,0,.55);display:grid;place-items:center;color:#fff}
.play svg{width:28px;height:28px}
.cover:not(:has(img)){display:grid}
.video{position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#000;margin:4px 0 16px}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.body{max-width:100%}
.body a{color:var(--red-ink);text-decoration:underline;text-underline-offset:2px}
.body-h{font-size:21px;margin:18px 0 8px}
.bq{margin:6px 0 14px;padding:4px 0 4px 16px;border-left:3px solid var(--red);font-size:15px;line-height:1.6;max-width:68ch}
.bq cite{display:block;font-size:12.5px;color:var(--muted);font-style:normal;margin-top:4px}
.ul{margin:0 0 12px;padding-left:22px;font-size:15px;line-height:1.6}
.gchip-t{display:flex;flex-direction:column;min-width:0}
.gchip .badge{margin-left:auto}
.gchip .badge+.chev{margin-left:6px}
.gchip .n{line-height:1.3}
.rel{display:flex;flex-direction:column}
.rel a{padding:10px 0;border-bottom:1px solid var(--line);font-weight:600;font-size:14px;line-height:1.35}
.rel a:last-child{border:0}
.rel a:hover{color:var(--red)}
.rel-d{display:block;font-size:12px;color:var(--faint);font-weight:500}
.rel-h{font-size:18px;margin-bottom:6px}
.pager{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pager-n{color:var(--muted);font-size:13px}
.badge-red{background:var(--red);color:#fff}
.badge-dark{background:rgba(255,255,255,.1);color:#fff}
.badges{display:flex;gap:6px;flex-wrap:wrap}
.hero-main{min-width:0}
.rate .kv{margin-top:4px}
.rate .btn-ink{margin-top:10px}
.filters{margin-bottom:10px}
.filters .btn{height:34px}
.flabel{font-size:12px;color:var(--muted)}
.seg a{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:6px;font-size:12.5px;font-weight:600;color:var(--muted)}
.seg a.on{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.mech a{font-size:12px;padding:4px 10px;border-radius:99px;border:1px solid var(--line);font-weight:500}
.mech a.on{background:var(--red);border-color:var(--red);color:#fff}
.tbl-card{padding:8px}
.tbl-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 10px 10px;font-size:13px}
.sorts{display:flex;gap:12px;flex-wrap:wrap}
.sorts a{color:var(--muted);font-weight:600}
.sorts a.on{color:var(--red)}
.cat td a:not(.g){color:var(--red-ink);font-weight:600}
.foot{max-width:1180px;margin:0 auto;padding:8px 16px 32px;color:var(--faint);font-size:12px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.foot a:hover{color:var(--red)}
.zoom{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:16px;cursor:zoom-out}
.zoom img{max-width:100%;max-height:100%;object-fit:contain}
@media (max-width:1040px){.shell.no-rail{grid-template-columns:180px minmax(0,1fr)}}
@media (max-width:760px){
  .shell.no-rail{grid-template-columns:minmax(0,1fr)}
  .m-search{display:grid}
  .top-actions .btn-ghost{display:none}
  .post-full h1{font-size:22px}
  .foot{padding-bottom:84px}
}

/* ---- вторая фаза: аккаунты, редактор, комментарии, коллекции, админка ---- */
.small{font-size:12.5px}
.ava{color:#fff;font-family:var(--display);font-size:15px}
.ava.sm{font-size:13px}
.ava.lg{width:72px;height:72px;font-size:32px}
.menu{position:relative}
.menu summary{list-style:none;cursor:pointer;border-radius:50%}
.menu summary::-webkit-details-marker{display:none}
.menu-pop{position:absolute;right:0;top:44px;min-width:220px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.16);padding:6px;display:flex;flex-direction:column;z-index:40}
.menu-pop a,.menu-pop button{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:8px;font-size:13.5px;font-weight:500}
.menu-pop a:hover,.menu-pop button:hover{background:var(--surface-2)}
.menu-h{padding:8px 10px 10px;border-bottom:1px solid var(--line);margin-bottom:4px}
.menu-h b{display:block}
.menu-h small{color:var(--muted)}
.flash{max-width:1180px;margin:12px auto 0;padding:0 16px}
.flash div{background:var(--ok-soft);color:var(--ok);border-radius:10px;padding:10px 14px;font-weight:600;font-size:13.5px}
.note{background:var(--red-soft);color:var(--red-ink);font-weight:500}
.alert{background:var(--red-soft);color:var(--red-ink);border-radius:9px;padding:10px 12px;margin-bottom:12px;font-size:13.5px}
.meta-a{color:var(--fg);font-weight:500}
.meta-a:hover{color:var(--red)}

/* формы */
.auth{max-width:520px;width:100%}
.form{display:flex;flex-direction:column;gap:12px}
.form label,.write label.inline{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600}
.form label small{font-weight:400;color:var(--muted)}
.form input:not([type=checkbox]):not([type=radio]),.form select,.form textarea,.write select,.write input:not([type=checkbox]):not([type=file]),.urow select{
  height:40px;border-radius:9px;border:1px solid var(--line);background:var(--surface);padding:0 12px;font-size:14px;font-weight:400;width:100%}
.form textarea{height:auto;padding:10px 12px;resize:vertical;line-height:1.5}
.form input:focus,.form select:focus,.form textarea:focus,.write textarea:focus,.write input:focus{outline:none;border-color:var(--red)}
.form fieldset,.write fieldset{border:1px solid var(--line);border-radius:10px;padding:10px 14px 14px;margin:0;display:flex;flex-direction:column;gap:10px}
.form legend,.write legend{font-weight:600;font-size:13px;padding:0 4px}
.write legend small{font-weight:400;color:var(--muted)}
.f-err{color:var(--red-ink);font-size:12.5px;font-weight:500}
.btn-lg{height:42px;padding:0 20px;font-size:14px}
.form .btn-lg{align-self:flex-start}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.check{flex-direction:row!important;align-items:center;font-weight:400!important}
.grid2,.grid4,.grid5{display:grid;gap:12px}
.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid5{grid-template-columns:2fr 1fr 1.4fr 1fr 1.4fr}
.danger{color:var(--red-ink)}

/* редактор */
.write{display:flex;flex-direction:column;gap:12px}
.write-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.write label.inline{flex-direction:row;align-items:center;gap:8px}
.write label.inline select{width:auto}
.write input.write-title[name=title]{font-size:22px;font-weight:700;border:0;padding:4px 0;height:auto;background:transparent}
.tb{display:flex;align-items:center;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:8px}
.tb button,.tb-img{height:32px;min-width:32px;padding:0 9px;border-radius:7px;background:var(--surface-2);font-weight:600;font-size:13px;display:inline-grid;place-items:center;cursor:pointer}
.tb button svg{width:15px;height:15px}
.tb button:hover,.tb-img:hover{background:var(--line)}
.tb-img.busy{opacity:.55;pointer-events:none}
.tb-img.busy::after{content:" …"}
.tb-sp{flex:1}
.tb .tb-tab{background:none;color:var(--muted)}
.tb .tb-tab.on{background:var(--ink);color:var(--ink-fg)}
.write textarea[data-body]{min-height:360px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:12px 14px;font-size:15px;line-height:1.6;resize:vertical;width:100%}
.preview{min-height:360px;border:1px dashed var(--line);border-radius:10px;padding:12px 14px}
.pv-title{font-size:26px;line-height:1.2;margin:0 0 12px}
.help{font-size:13px;color:var(--muted)}
.help summary{cursor:pointer;font-weight:600}
.help ul{margin:8px 0 0;padding-left:20px;line-height:1.7}
.help code{background:var(--surface-2);padding:1px 5px;border-radius:4px;color:var(--fg)}
.gpick input[type=search]{max-width:320px}
.gpick-list{display:flex;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto}
.gpick-list label{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--line);border-radius:99px;font-size:13px;cursor:pointer}
.gpick-list label:has(input:checked){background:var(--red-soft);border-color:var(--red);color:var(--red-ink)}
.gpick-list label[hidden]{display:none}
.write-acts{display:flex;gap:8px;flex-wrap:wrap}
.del-post{display:flex;justify-content:flex-end;padding:10px 16px}
.pill.sp{margin-left:auto}
a.pill:hover{background:var(--line)}

/* комментарии */
.comments h2.h-disp{margin-bottom:6px}
.cm-thread{border-top:1px solid var(--line);padding:4px 0}
.cm-thread:first-of-type{border-top:0}
.cm{display:block;padding:10px 0}
.cm-reply{margin-left:22px;padding-left:14px;border-left:2px solid var(--line)}
.cm-h{display:flex;align-items:center;gap:8px;font-size:13px}
.cm-h a:first-child{display:flex;align-items:center;gap:8px}
.cm-h b{font-weight:600}
.cm-t{color:var(--faint);font-size:12px}
.cm-b{margin:4px 0 0 36px;font-size:14.5px;line-height:1.55;overflow-wrap:anywhere}
.cm-b p{margin:0 0 6px}
.cm-b a{color:var(--red-ink);text-decoration:underline}
.cm-a{display:flex;gap:14px;margin-left:36px;font-size:12px;color:var(--muted);font-weight:600}
.cm-a button:hover{color:var(--red)}
.cm-gone{color:var(--faint);font-size:13px;font-style:italic}
.cm-form{border-top:1px solid var(--line);padding-top:12px;margin-top:6px;display:flex;flex-direction:column;gap:8px}
.cm-row{display:flex;gap:8px;align-items:flex-start}
.cm-row textarea{flex:1;min-height:70px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);padding:10px 12px;resize:vertical;font-size:14px}
.cm-row textarea:focus{outline:none;border-color:var(--red);background:var(--surface)}
.cm-send{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-left:36px}
.cm-to{font-size:12.5px;color:var(--muted);margin-left:36px}
.cm-to button{color:var(--red);font-weight:600}
.cm-login{margin:10px 0 0;color:var(--muted)}
.cm-login .btn,.rate-login .btn{margin-right:6px}

/* рейтинг и коллекция */
.rate form{margin-bottom:10px}
.coll{grid-template-columns:repeat(3,1fr)}
.coll button{background:var(--surface)}
.coll button .num{opacity:.6;font-weight:500}
.myrate{gap:3px;flex-wrap:nowrap}
.myrate button{flex:1;width:auto;height:28px}
.myrate button:hover{background:var(--red-soft);color:var(--red-ink)}
.myrate button.on:hover{background:var(--red);color:#fff}
.hex.low{background:#8a8b93;color:#fff}
.rate-login{font-size:12.5px;color:var(--muted);margin:0 0 10px;line-height:1.5}
.rbadge{display:inline-grid;place-items:center;min-width:34px;height:24px;padding:0 6px;border-radius:6px;font-weight:700;font-size:12.5px;background:var(--surface-2);color:var(--muted)}
.rbadge.good{background:var(--ok);color:#fff}
.rbadge.mid{background:#2f6fd6;color:#fff}
.rbadge.low{background:#8a8b93;color:#fff}
.coll-list a .rbadge{margin-left:auto}

/* профиль */
.prof-h{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.prof-n{font-family:var(--display);font-size:28px;font-weight:600;line-height:1.1}
.prof-edit{margin-left:auto}
.prof-bio{margin:12px 0 0;max-width:68ch}
.prof-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;border-radius:10px;overflow:hidden;margin-top:14px}
.prof-stats div{background:var(--surface-2);padding:10px 12px}
.prof-stats b{display:block;font-family:var(--display);font-size:22px;font-weight:600;line-height:1.1}
.prof-stats span{font-size:11.5px;color:var(--muted)}
.ptabs{display:flex;gap:4px;background:var(--surface);padding:4px;border-radius:var(--r);overflow-x:auto}
.ptabs a{padding:8px 12px;border-radius:9px;font-weight:600;font-size:13px;white-space:nowrap}
.ptabs a .num{color:var(--faint);font-weight:500}
.ptabs a.on{background:var(--ink);color:var(--ink-fg)}
.ptabs a.on .num{color:inherit;opacity:.7}
.draft-row{display:flex;align-items:center;gap:10px}
.draft-row>div{flex:1;min-width:0}

/* админка */
.adm-h{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.adm-form{max-width:none}
.urow{display:flex;gap:6px;align-items:center}
.urow select{height:32px;width:auto;font-size:12.5px;padding:0 8px}
.urow .btn{height:32px;padding:0 10px}

@media (max-width:760px){
  .hide-m{display:none}
  .top-actions .btn-red{padding:0 12px}
  .grid2,.grid4{grid-template-columns:minmax(0,1fr)}
  .grid5{grid-template-columns:1fr 1fr}
  .prof-stats{grid-template-columns:repeat(2,1fr)}
  .cm-b,.cm-a,.cm-send,.cm-to{margin-left:0}
  .cm-send .muted{display:none}
  .write textarea[data-body]{min-height:300px}
  .menu-pop{position:fixed;left:12px;right:12px;top:60px}
}
.tl-blogs{background:var(--t-rules);color:var(--t-rules-fg)}

/* ---- каталог: фильтры свёрнуты по умолчанию ---- */
.fbox{display:flex;flex-direction:column;gap:10px}
.fbox>summary{list-style:none;cursor:pointer;align-self:flex-start;height:32px;font-size:12.5px}
.fbox>summary::-webkit-details-marker{display:none}
.fbox>summary::after{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin:-3px 0 0 4px}
.fbox[open]>summary::after{transform:rotate(-135deg);margin-top:3px}
.fbox[open]>summary{margin-bottom:10px}
.fcount{background:var(--red);color:#fff;border-radius:99px;padding:0 6px;font-size:11px;line-height:17px}
.fbox .showall{margin-top:10px}

/* Обложки и фото игр */
.gl.has-cover{background:var(--line);overflow:hidden;padding:0}
.gl.has-cover img{width:100%;height:100%;object-fit:cover;display:block}
.box.has-cover{background:#111;display:block}
.box.has-cover img{width:100%;height:100%;object-fit:cover;display:block}
.game-gal{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.adm-cover{display:flex;gap:16px;align-items:flex-start;margin-bottom:12px}
.adm-cover>img,.adm-cover .adm-tile{width:96px;height:128px;border-radius:8px;object-fit:cover;flex:none;font-size:40px}
.adm-cover>div{flex:1;min-width:0}
.adm-imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-top:10px}
.adm-imgs label{display:flex;flex-direction:column;gap:4px;font-size:13px}
.adm-imgs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}
.gpick-q{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
.gpick-q input[type=search]{flex:1 1 220px;max-width:320px}
.gpick-q .btn[hidden]{display:none}
.gpick-q .btn{white-space:normal;max-width:100%;text-align:left;height:auto;min-height:36px}
.gpick-q input[type=search]{min-width:0}
.adm-form fieldset{min-width:0}
.adm-form input[type=file]{max-width:100%;min-width:0;width:100%}
.gpick-found:empty,.gpick-sel:empty{display:none}
.gpick-found{margin-bottom:8px}
.gpick-found label{border-style:dashed}
.pager-nums{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;padding:16px 0 4px}
.pager-nums a,.pager-nums span{min-width:36px;height:36px;padding:0 8px;display:inline-grid;place-items:center;border-radius:8px;font-weight:600;font-size:14px}
.pager-nums a{background:var(--surface-2);color:inherit;text-decoration:none}
.pager-nums a:hover{background:var(--line)}
.pager-nums .on{background:var(--red);color:#fff}
.pager-nums .off{opacity:.35}
.pager-nums .pg-gap{min-width:auto;padding:0 2px}

.post-btn{margin:18px 0}
.post-btn .btn{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.body .post-btn a.btn,.body .post-btn a.btn:hover{color:#fff;text-decoration:none}

/* Картинки игры в админке: вставка, перетаскивание, выбор обложки */
.gm-drop{border:2px dashed var(--line);border-radius:12px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;color:var(--muted);font-size:13px}
.gm-drop b{color:var(--fg);font-size:15px}
.gm-drop.over,.gm-drop:focus{border-color:var(--red);background:var(--red-soft);outline:none}
.form .gm-drop label.btn{display:inline-flex;flex-direction:row;margin-top:4px;cursor:pointer}
.gm-status,.gm-hint{margin:0;font-size:13px}
.gm-pool{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.gm-pool:empty{display:none}
.gm-item{position:relative;border-radius:10px;overflow:hidden;background:var(--surface-2);outline:2px solid transparent;outline-offset:1px}
.form .gm-item .gm-pick{display:block;cursor:pointer}
.gm-pick input{position:absolute;opacity:0;pointer-events:none}
.gm-pick img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}
.gm-badge{position:absolute;left:6px;bottom:6px;background:var(--red);color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;display:none}
.gm-item.is-cover{outline-color:var(--red)}
.gm-item.is-cover .gm-badge{display:block}
.gm-pick:focus-within{outline:2px solid var(--red)}
.gm-del{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:99px;background:rgba(0,0,0,.65);color:#fff;font-size:17px;line-height:1}
.form .gm-nocover{font-weight:400;flex-direction:row;align-items:center}

/* Фильтр каталога по издателю или автору */
.fchips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.fchip{display:inline-flex;align-items:center;gap:4px;padding:5px 12px;border-radius:99px;background:var(--red-soft);color:var(--red-ink);font-size:13px}
.fchip:hover{background:var(--red);color:#fff}
