/* Gameakk — стиль Apple, жидкое стекло на всём, что «плавает» над контентом.
   Контент (обложки игр) — снизу, его цвета просвечивают сквозь стекло. */
:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --label: #1d1d1f;
  --label2: #5f5f66;          /* на #f2f2f7 ≈ 5.6:1 */
  --label3: #86868b;
  --sep: rgba(60, 60, 67, .16);
  --accent: #0066d6;          /* на белом 5.3:1 */
  --accent-press: #0055b3;
  --green: #1f9d48;
  --red: #d70015;
  --orange: #b25000;
  --glass-fill: rgba(255, 255, 255, .55);
  --glass-fill-strong: rgba(255, 255, 255, .72);
  --glass-stroke: rgba(255, 255, 255, .75);
  --glass-edge: rgba(0, 0, 0, .06);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .05);
  --glass-hi: rgba(255, 255, 255, .9);
  --blur: blur(26px) saturate(185%);
  --r-xl: 32px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI Variable Display", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #1c1c1e;
    --label: #f5f5f7;
    --label2: #aeaeb2;
    --label3: #8e8e93;
    --sep: rgba(84, 84, 88, .55);
    --accent: #0a84ff;
    --accent-press: #409cff;
    --green: #30d158;
    --red: #ff453a;
    --orange: #ff9f0a;
    --glass-fill: rgba(44, 44, 48, .48);
    --glass-fill-strong: rgba(36, 36, 40, .7);
    --glass-stroke: rgba(255, 255, 255, .14);
    --glass-edge: rgba(0, 0, 0, .4);
    --glass-shadow: 0 12px 44px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35);
    --glass-hi: rgba(255, 255, 255, .22);
  }
}
:root[data-theme="dark"] {
    --bg: #000000;
    --surface: #1c1c1e;
    --label: #f5f5f7;
    --label2: #aeaeb2;
    --label3: #8e8e93;
    --sep: rgba(84, 84, 88, .55);
    --accent: #0a84ff;
    --accent-press: #409cff;
    --green: #30d158;
    --red: #ff453a;
    --orange: #ff9f0a;
    --glass-fill: rgba(44, 44, 48, .48);
    --glass-fill-strong: rgba(36, 36, 40, .7);
    --glass-stroke: rgba(255, 255, 255, .14);
    --glass-edge: rgba(0, 0, 0, .4);
    --glass-shadow: 0 12px 44px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35);
    --glass-hi: rgba(255, 255, 255, .22);
  }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font: 17px/1.47 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(30px, 4.2vw, 44px); }
h2 { font-size: 22px; }
.muted { color: var(--label2); } .small { font-size: 14px; } .pre { white-space: pre-wrap; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

/* ── подсветка страницы: обложка игры, сильно размытая, под всем ── */
.ambient { position: fixed; inset: -12%; z-index: -1; pointer-events: none; background: var(--bg); }
.ambient::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--amb, none); background-size: cover; background-position: center;
  filter: blur(80px) saturate(1.7); opacity: .55; transform: scale(1.1);
}
.ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, var(--bg) 85%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ambient::before { opacity: .42; }
}
:root[data-theme="dark"] .ambient::before { opacity: .42; }

/* ── жидкое стекло ── */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-edge);
}
/* блик сверху и «линза» по краю */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 70% at 20% -10%, rgba(255, 255, 255, .55), transparent 55%),
    radial-gradient(80% 60% at 100% 110%, rgba(255, 255, 255, .18), transparent 60%);
  mix-blend-mode: soft-light;
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 8px 16px -10px rgba(255, 255, 255, .5), inset 0 -10px 18px -14px rgba(0, 0, 0, .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .glass::before { background: radial-gradient(120% 70% at 20% -10%, rgba(255, 255, 255, .22), transparent 55%); mix-blend-mode: normal; }
  :root:not([data-theme="light"]) .glass::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 8px 16px -10px rgba(255, 255, 255, .18); }
}
:root[data-theme="dark"] .glass::before { background: radial-gradient(120% 70% at 20% -10%, rgba(255, 255, 255, .22), transparent 55%); mix-blend-mode: normal; }
:root[data-theme="dark"] .glass::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 8px 16px -10px rgba(255, 255, 255, .18); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); border-color: var(--sep); }
  .glass::before, .glass::after { display: none; }
  .ambient::before { display: none; }
}

/* ── верхняя панель ── */
.topbar { position: sticky; top: 0; z-index: 50; padding: 12px 20px 0; }
.bar { max-width: 1200px; margin: 0 auto; height: 58px; border-radius: 999px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--label); font: 700 19px/1 var(--font-round); letter-spacing: -.02em; padding-right: 14px; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #2f8bff, #0058d1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 6px rgba(0, 88, 209, .35); }
.brand-icon .ic { width: 22px; height: 22px; }
.bar-links { display: flex; gap: 2px; flex: 1; }
.bar-links a { color: var(--label); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; display: flex; align-items: center; gap: 6px; transition: background .2s; }
.bar-links a:hover { text-decoration: none; background: rgba(127, 127, 127, .14); }
.bar-links a[aria-current] { background: rgba(127, 127, 127, .2); font-weight: 600; }
.badge { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }
.bar-end { display: flex; align-items: center; gap: 6px; }
.bar-end form { margin: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(180deg, #8e8e93, #636366); }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 44px;
  font: 600 16px/1 var(--font); letter-spacing: -.01em; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 14px rgba(0, 102, 214, .3);
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; background: var(--accent-press); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 8px 16px; min-height: 36px; font-size: 15px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-lg .ic { width: 18px; height: 18px; }
.btn-gray, .btn-ghost { background: rgba(127, 127, 127, .16); color: var(--label); box-shadow: none; }
.btn-gray:hover, .btn-ghost:hover { background: rgba(127, 127, 127, .26); }
.btn-ok { background: var(--green); box-shadow: 0 4px 14px rgba(31, 157, 72, .3); }
.btn-bad { background: rgba(215, 0, 21, .12); color: var(--red); box-shadow: none; }
.btn-bad:hover { background: rgba(215, 0, 21, .2); }
/* стеклянная кнопка */
.gbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--glass-stroke); background: rgba(255, 255, 255, .18); color: var(--label);
  font: 600 15px var(--font); transition: background .2s, transform .15s;
}
.gbtn:hover { background: rgba(255, 255, 255, .34); }
.gbtn:active { transform: scale(.96); }
.gbtn-icon { width: 44px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gbtn { background: rgba(255, 255, 255, .06); }
  :root:not([data-theme="light"]) .gbtn:hover { background: rgba(255, 255, 255, .14); }
}
:root[data-theme="dark"] .gbtn { background: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .gbtn:hover { background: rgba(255, 255, 255, .14); }

/* ── главная ── */
.hero { position: relative; margin: 20px 0 22px; border-radius: var(--r-xl); overflow: hidden; min-height: 440px; display: flex; align-items: flex-end;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45); }
.hero-media { position: absolute; inset: 0; }
.hero-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 55%); }
.hero-panel { margin: 24px; padding: 26px 28px; border-radius: var(--r-lg); max-width: 520px; color: #fff;
  --glass-fill: rgba(30, 30, 34, .28); --glass-stroke: rgba(255, 255, 255, .3); --glass-hi: rgba(255, 255, 255, .45); }
.hero-panel h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 4px 0 10px; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero-panel p { margin: 0 0 20px; color: rgba(255, 255, 255, .9); font-size: 17px; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.hero-act { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-tags { font-size: 15px; color: rgba(255, 255, 255, .85); }
.intro { padding: 36px 4px 24px; } .intro p { color: var(--label2); margin: 10px 0 0; font-size: 19px; }

.filters { position: sticky; top: 82px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 999px; margin-bottom: 26px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border-radius: 999px; background: rgba(127, 127, 127, .14); color: var(--label2); flex: 0 1 280px; }
.search input { border: 0; background: transparent; outline: 0; font: 16px var(--font); color: var(--label); width: 100%; min-width: 0; padding: 0; }
.search .ic { width: 18px; height: 18px; }
.seg { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.seg::-webkit-scrollbar { display: none; }
.seg-i { white-space: nowrap; color: var(--label); font-size: 15px; font-weight: 500; padding: 9px 15px; border-radius: 999px; display: flex; align-items: center; gap: 6px; transition: background .2s; }
.seg-i:hover { text-decoration: none; background: rgba(127, 127, 127, .14); }
.seg-i.on { background: var(--surface); font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px rgba(48, 209, 88, .22); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 16px; }
.upload-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 15px; }
.upload-link .ic { width: 17px; height: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-bottom: 40px; }
.grid-ad { grid-column: 1 / -1; }
.card { display: block; color: var(--label); border-radius: var(--r-lg); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.card:hover { text-decoration: none; transform: translateY(-4px) scale(1.01); }
.card-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); }
.card .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .cover { transform: scale(1.05); }
.card-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; border-radius: var(--r-md); padding: 11px 14px; color: #fff;
  --glass-fill: rgba(25, 25, 30, .26); --glass-stroke: rgba(255, 255, 255, .28); --glass-hi: rgba(255, 255, 255, .4); }
.card-title { font-weight: 650; font-size: 17px; line-height: 1.2; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.card-meta { font-size: 13px; opacity: .9; margin-top: 2px; }
.chip-float { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
  --glass-fill: rgba(25, 25, 30, .3); --glass-stroke: rgba(255, 255, 255, .3); }
.cover-empty { display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }
.cover-empty span { font: 800 72px var(--font-round); color: rgba(255, 255, 255, .92); }
.empty { border-radius: var(--r-lg); padding: 40px; text-align: center; font-size: 17px; margin: 16px 0 40px; }

/* ── страница игры ── */
.game-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; margin: 22px 0 40px; align-items: start; }
.game-head { margin: 4px 4px 16px; }
.game-sub { color: var(--label2); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.frame-box { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .55); }
.frame-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.frame-box:fullscreen { border-radius: 0; }
.game-bar { display: flex; gap: 8px; padding: 6px; border-radius: 999px; width: fit-content; margin: -28px auto 18px; z-index: 2; }
.panel { border-radius: var(--r-lg); padding: 20px 22px; margin: 0 0 16px; }
.panel h2 { font-size: 19px; margin-bottom: 8px; }
.side-panel { position: sticky; top: 90px; padding: 18px 12px 10px; }
.side-panel h2 { padding: 0 8px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: var(--label); }
.mini:hover { text-decoration: none; background: rgba(127, 127, 127, .14); }
.mini-cover { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
.mini-cover.cover-empty span { font-size: 24px; }
.mini b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.mini small { color: var(--label2); font-size: 13px; }
.report { display: grid; gap: 12px; }
.report[hidden] { display: none; }
.ad { margin: 16px 0; min-height: 90px; }

/* ── формы и списки ── */
textarea, input:not([type=checkbox]):not([type=file]):not([type=search]), select {
  width: 100%; font: 17px var(--font); color: var(--label); padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--sep); background: var(--surface); outline: 0; transition: border-color .2s, box-shadow .2s;
}
textarea:focus, input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 132, 255, .2); }
textarea { resize: vertical; min-height: 90px; }
input[type=file] { font: 15px var(--font); color: var(--label2); }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 1px 0 0; }
.narrow { max-width: 720px; margin: 24px auto 40px; }
.narrow > h1, .page-title { margin: 8px 4px 18px; }
.box { border-radius: var(--r-lg); padding: 24px 26px; margin: 0 0 16px; background: var(--glass-fill-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-stroke); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi); }
.box > h1 { margin-bottom: 14px; }
.box p { margin: 0 0 14px; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.form .check, .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.45; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { color: var(--label2); font-weight: 400; font-size: 13px; }
.toast { border-radius: 999px; padding: 12px 22px; margin: 18px auto 0; width: fit-content; max-width: 100%; font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.toast::first-letter { text-transform: uppercase; }
.toast-ok { color: var(--green); } .toast-err { color: var(--red); } .toast-warn { color: var(--orange); }
.list { display: grid; gap: 12px; margin-bottom: 40px; }
.list-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 0; }
.thumb { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; flex: none; }
.thumb.cover-empty span { font-size: 40px; }
.list-main { flex: 1; min-width: 220px; }
.list-title { font-weight: 650; font-size: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.list-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.list-act form { margin: 0; display: flex; gap: 6px; align-items: center; }
.inline-reason input { width: 190px; padding: 8px 12px; font-size: 15px; min-height: 36px; }
.status, .tag { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: rgba(127, 127, 127, .16); color: var(--label); }
.status-ok, .tag-online { background: rgba(31, 157, 72, .15); color: var(--green); }
.status-warn { background: rgba(255, 149, 0, .16); color: var(--orange); }
.status-err { background: rgba(215, 0, 21, .12); color: var(--red); }
.tag-age { background: var(--label); color: var(--bg); }
.reason { margin-top: 8px; font-size: 15px; color: var(--label2); padding-left: 12px; border-left: 3px solid var(--red); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tabs { margin: 0 0 18px; padding: 6px; border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
.chip { white-space: nowrap; color: var(--label); font-weight: 500; font-size: 15px; padding: 8px 15px; border-radius: 999px; }
.chip:hover { text-decoration: none; background: rgba(127, 127, 127, .14); }
.chip.on { background: var(--surface); font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.chip b { color: var(--label2); font-weight: 600; margin-left: 4px; }
details summary { cursor: pointer; color: var(--accent); font-size: 15px; }
.tbl { width: 100%; border-collapse: collapse; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 40px; }
.tbl th, .tbl td { padding: 12px 16px; border-bottom: 1px solid var(--sep); text-align: left; font-size: 15px; }
.tbl th { color: var(--label2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.banned td { opacity: .45; }
.tbl form { margin: 0; }
.doc h2 { margin: 26px 0 8px; font-size: 20px; } .doc li { margin: 6px 0; } .doc ul, .doc ol { padding-left: 22px; }
pre { background: #1c1c1e; color: #f5f5f7; padding: 18px; border-radius: var(--r-md); overflow-x: auto; font-size: 14px; line-height: 1.55; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:not(pre) > code { background: rgba(127, 127, 127, .16); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.tg-login { margin: 20px 0 10px; min-height: 48px; }
.tg-login.locked { opacity: .35; pointer-events: none; filter: grayscale(1); }
.dev-login { display: grid; gap: 10px; margin-top: 20px; padding: 16px; border: 1px dashed var(--sep); border-radius: var(--r-md); }

/* ── подвал ── */
.foot { color: var(--label2); font-size: 14px; padding: 30px 0 10px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; border-top: 1px solid var(--sep); padding-top: 20px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--label2); } .foot a:hover { color: var(--label); }

/* ── нижняя панель вкладок (телефон) ── */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 14px; }
  .topbar { padding: 10px 12px 0; }
  .bar { height: 54px; }
  .bar-links { display: none; }
  .bar-end { margin-left: auto; }
  .tabbar {
    display: flex; position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
    bottom: calc(14px + env(safe-area-inset-bottom)); width: min(420px, calc(100% - 28px));
    height: 64px; border-radius: 999px; padding: 6px; justify-content: space-around;
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 999px; color: var(--label); font-size: 11px; font-weight: 600; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a[aria-current] { color: var(--accent); background: rgba(127, 127, 127, .16); }
  .tabbar .ic { width: 22px; height: 22px; }
  .hero { min-height: 480px; border-radius: var(--r-lg); margin-top: 14px; }
  .hero-panel { margin: 12px; padding: 20px; }
  .filters { top: 74px; border-radius: var(--r-lg); flex-direction: column; align-items: stretch; gap: 6px; }
  .search { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-cap { left: 6px; right: 6px; bottom: 6px; padding: 8px 10px; border-radius: 13px; }
  .card-title { font-size: 15px; }
  .card-meta { font-size: 12px; }
  .chip-float { top: 6px; left: 6px; font-size: 12px; }
  .game-page { grid-template-columns: minmax(0, 1fr); }
  .side-panel { position: static; }
  .row { grid-template-columns: 1fr; }
  .thumb { width: 100%; }
  .box { padding: 20px; }
  .game-bar { margin-top: 12px; }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .card:hover, .card:hover .cover { transform: none; } }

/* ── полки, теги, хлебные крошки ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-title { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 4px 0 10px; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.crumbs { font-size: 14px; color: var(--label2); margin: 18px 4px 0; }
.crumbs a { color: var(--label2); } .crumbs span { color: var(--label); }
.shelf { margin: 0 0 30px; }
.shelf .sec-head { margin-bottom: 12px; }
.more { font-weight: 500; font-size: 15px; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 18px; overflow-x: auto; padding: 4px 4px 26px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row > .card { scroll-snap-align: start; }
@media (min-width: 1100px) { .shelf-row { grid-auto-columns: calc((100% - 54px) / 4); } }
.rate { display: inline-flex; align-items: center; gap: 3px; }
.rate .ic { width: 13px; height: 13px; }
.hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hashtag { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: rgba(127, 127, 127, .14); color: var(--label); white-space: nowrap; }
.hashtag:hover { text-decoration: none; background: rgba(127, 127, 127, .26); }
.hashtag b { color: var(--label2); font-weight: 600; margin-left: 2px; }
.hashtag.empty { color: var(--label3); }
.tags-cloud { margin-top: 10px; }
.tags-cloud h2 { margin-bottom: 14px; }
.tc-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.tc-name { font-size: 13px; font-weight: 700; color: var(--label2); text-transform: uppercase; letter-spacing: .04em; width: 100px; }
.seo-text { max-width: 820px; margin: 30px 4px 10px; color: var(--label2); font-size: 15px; }
.seo-text h2 { color: var(--label); font-size: 19px; margin-bottom: 8px; }
.tag-picker { display: grid; gap: 12px; margin-top: 8px; }
.tp-name { font-size: 13px; font-weight: 700; color: var(--label2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tp-chip span { display: inline-block; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: rgba(127, 127, 127, .14); cursor: pointer; transition: background .15s, color .15s; user-select: none; }
.tp-chip input:checked + span { background: var(--accent); color: #fff; }
.tp-chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.tp-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-field { display: grid; gap: 4px; font-size: 15px; }
.gbtn.on { background: var(--accent); color: #fff; border-color: transparent; }
#favBtn.on .ic { fill: currentColor; }
.gbtn-icon-text { padding: 0 14px; }
.check-list { list-style: none; padding: 0; margin: 8px 0; font-size: 14px; display: grid; gap: 4px; }
.check-list code { font-size: 12px; }
.cl-bad { color: var(--red); } .cl-warn { color: var(--orange); } .cl-info { color: var(--label2); }
.bot-line { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.tag-edit { display: grid; gap: 12px; margin-top: 10px; }
.bot-details summary { color: var(--orange); }
@media (max-width: 760px) {
  .shelf-row { grid-auto-columns: 62%; gap: 12px; }
  .tc-name { width: 100%; }
  .game-bar { flex-wrap: wrap; justify-content: center; border-radius: var(--r-lg); }
}

.hashtag { display: inline-flex; align-items: center; line-height: 1.3; }

/* ── загрузка: зоны перетаскивания ── */
.dz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dropzone { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px !important;
  min-height: 150px; padding: 18px; border-radius: var(--r-md); border: 2px dashed var(--sep); background: rgba(127, 127, 127, .06); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.dropzone:hover { border-color: var(--accent); background: rgba(10, 132, 255, .06); }
.dropzone.over { border-color: var(--accent); background: rgba(10, 132, 255, .12); transform: scale(1.02); }
.dropzone.has { border-style: solid; border-color: var(--green); background: rgba(31, 157, 72, .07); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dz-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #2f8bff, #0058d1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px rgba(0, 88, 209, .3); }
.dz-icon svg { width: 30px; height: 30px; }
.dropzone:nth-child(2) .dz-icon { background: linear-gradient(180deg, #ff9f40, #f26a00); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px rgba(242, 106, 0, .3); }
.dropzone:nth-child(3) .dz-icon { background: linear-gradient(180deg, #40c76b, #1f9d48); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px rgba(31, 157, 72, .3); }
.dropzone:nth-child(4) .dz-icon { background: linear-gradient(180deg, #c66bff, #8e3bd6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px rgba(142, 59, 214, .3); }
.dz-title { font-weight: 650; font-size: 16px; }
.dz-hint { font-weight: 400; font-size: 13px; color: var(--label2); }
.dz-files { font-weight: 600; font-size: 13px; color: var(--green); word-break: break-all; }
@media (max-width: 760px) { .dz-grid { grid-template-columns: 1fr; } .dropzone { min-height: 120px; } }

/* ── трейлер и скриншоты ── */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 46%); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.g-item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; scroll-snap-align: start; }
.g-item img, .g-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.adm-media { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; align-items: center; }
.adm-media img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.adm-trailer { font-size: 14px; font-weight: 600; }

/* ── SDK ── */
.sdk-doc { max-width: 860px; }
.sdk-doc .panel { margin-bottom: 14px; }
.sdk-download { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
.toc a { padding: 7px 14px; border-radius: 999px; color: var(--label); font-size: 15px; font-weight: 500; }
.toc a:hover { text-decoration: none; background: rgba(127, 127, 127, .14); }
.req li { margin: 10px 0; }
.sdk-doc h2 { scroll-margin-top: 90px; }
.sdk-doc section { scroll-margin-top: 90px; }
/* ── инструкция для ИИ ── */
.ai-plaque { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 14px 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--label); }
.ai-plaque:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.ai-plaque b { display: block; font-size: 17px; }
.ai-plaque .small { display: block; color: var(--label2); margin-top: 2px; }
.ai-plaque-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.ai-plaque-go { margin-left: auto; font-size: 28px; color: var(--accent); line-height: 1; }
.ai-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.ai-steps li { margin: 8px 0; }
.ai-prompt { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: rgba(127, 127, 127, .1); }
.ai-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ai-prompt p { margin: 0; white-space: pre-wrap; }
/* ── вход и регистрация ── */
.auth-box { max-width: 480px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 15px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--label2); margin: 22px 0 14px; font-size: 14px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--sep); }
.code-input { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.narrow.box { margin: 24px auto 40px; }

/* ── cookies и реклама ── */
.cookie { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(640px, calc(100% - 28px));
  display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 12px 12px 12px 20px; border-radius: 999px; font-size: 14px; }
.cookie[hidden] { display: none; }
.ad { margin: 18px 0; min-height: 0; }
.ad-game_side { position: sticky; top: 90px; margin-top: 0; }
.ad > div:empty { display: none; }
@media (max-width: 760px) {
  .cookie { bottom: calc(90px + env(safe-area-inset-bottom)); border-radius: var(--r-lg); flex-direction: column; align-items: stretch; text-align: center; padding: 14px; }
  .ad-game_side { display: none; }
}

/* ── игра + рекламная полоса под ней (видна всегда, в т.ч. на весь экран) ── */
.play-wrap { position: relative; }
.ad-game_play { margin: 14px 0 0; min-height: 90px; display: flex; justify-content: center; }
.play-wrap:fullscreen { display: flex; flex-direction: column; background: #000; padding: 0; }
.play-wrap:fullscreen .frame-box { flex: 1; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.play-wrap:fullscreen .ad-game_play { margin: 0; padding: 8px 0; height: 106px; flex: none; background: #000; }

.play-wrap:has(.ad-game_play) + .game-bar { margin-top: 14px; }

.ad-game_play > div, .ad-catalog > div, .ad-game_bottom > div { width: 100%; max-width: 970px; margin: 0 auto; }

.age-mark { display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 4px; margin-right: 6px; }

.cookie { width: min(760px, calc(100% - 28px)); }
.cookie-btns { display: flex; gap: 8px; flex: none; }
@media (max-width: 760px) { .cookie-btns { justify-content: center; } }

/* ── синяя галочка ── */
.badge-v { display: inline-flex; align-items: center; gap: 4px; color: #0a84ff; font-size: 13px; font-weight: 650; vertical-align: middle; }
.badge-v .ic { width: 18px; height: 18px; }
.badge-v span { background: rgba(10, 132, 255, .14); padding: 2px 8px 2px 6px; border-radius: 999px; }
.card-title .badge-v { margin-left: 5px; color: #4da3ff; }
.card-title .badge-v .ic { width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

/* ── поддержка ── */
.thread { display: grid; gap: 12px; margin-bottom: 16px; }
.msg { border-radius: var(--r-md); padding: 14px 16px; max-width: 88%; background: var(--glass-fill-strong); border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--glass-shadow); }
.msg-user { justify-self: end; background: rgba(10, 132, 255, .14); }
.msg-admin { border-color: rgba(10, 132, 255, .5); }
.msg-ai { background: rgba(175, 82, 222, .10); }
.msg-system { justify-self: center; max-width: 100%; background: rgba(255, 159, 10, .12); font-size: 15px; }
.msg-who { font-weight: 650; font-size: 14px; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.msg-text { font-size: 16px; }
.ticket-row { color: var(--label); }
.ticket-row:hover { text-decoration: none; }
.verify-note { margin: 0; }
.verify-admin { margin: -6px 0 16px; }

/* ── отзывы и рекорды ── */
.review-form { display: grid; gap: 10px; margin: 6px 0 18px; }
.star-pick { display: flex; gap: 4px; }
.star-pick button { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--label3); cursor: pointer; padding: 2px; transition: transform .1s, color .1s; }
.star-pick button.on { color: #ffb800; }
.star-pick button:hover { transform: scale(1.15); }
.review-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-msg.err { color: var(--red); }
.review { padding: 14px 0; border-top: 1px solid var(--sep); }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.review p { margin: 0; }
.review-pending { opacity: .7; }
.stars { color: #ffb800; letter-spacing: 1px; }
.stars-off { color: var(--label3); }
.stars-avg { color: #ffb800; }
.lb { list-style: none; padding: 0 6px; margin: 6px 0 8px; }
.lb li { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; font-size: 15px; }
.lb li.me { background: rgba(10, 132, 255, .14); }
.lb-n { width: 22px; text-align: center; color: var(--label2); font-weight: 700; }
.lb li:nth-child(1) .lb-n { color: #ffb800; } .lb li:nth-child(2) .lb-n { color: #9aa0a6; } .lb li:nth-child(3) .lb-n { color: #c77b30; }
.lb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-panel { margin-bottom: 16px; position: static; }
.lb-panel + .ad-game_side, .lb-panel ~ .side-panel { top: 90px; }

/* ── статистика ── */
.stats { max-width: 960px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { border-radius: var(--r-md); padding: 16px; display: grid; gap: 4px; }
.kpi b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.kpi span { color: var(--label2); font-size: 13px; }
.chart { width: 100%; height: auto; display: block; }
.chart-lbl { font-size: 11px; fill: var(--label2); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.nick-form label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.nick-row { display: flex; gap: 8px; align-items: center; }
.nick-row input { flex: 1; }

.toc-inline { font-size: 15px; margin: 6px 0 4px; line-height: 1.8; }
.rules h2 { scroll-margin-top: 90px; }

/* ── переключатель темы ── */
.theme-btn .ic { width: 20px; height: 20px; }
.foot-theme a.on { color: var(--label); font-weight: 600; }

.brand-logo { height: 34px; width: auto; display: block; }
@media (max-width: 760px) { .brand-logo { height: 30px; } }

/* логотип: глянцевый значок + надпись; в тёмной теме надпись белая */
.brand { gap: 9px; }
.brand-mark { width: 38px; height: 38px; display: block; filter: drop-shadow(0 2px 6px rgba(0, 88, 209, .35)); }
.brand-text { height: 24px; width: auto; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-text { filter: brightness(0) invert(1); } }
:root[data-theme="dark"] .brand-text { filter: brightness(0) invert(1); }
@media (max-width: 760px) { .brand-mark { width: 34px; height: 34px; } .brand-text { height: 21px; } }

/* ══ 24.11: больше жидкого стекла ══ */
/* подсветка от обложки держится по всей странице — стеклу есть что преломлять */
.ambient::before { opacity: .72; filter: blur(70px) saturate(1.9); }
.ambient::after { background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--bg) 45%, transparent) 55%, color-mix(in srgb, var(--bg) 72%, transparent) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ambient::before { opacity: .5; } }
:root[data-theme="dark"] .ambient::before { opacity: .5; }
/* панели-карточки (.box) — тоже стекло с бликом */
.box { position: relative; isolation: isolate; background: var(--glass-fill); }
.box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 60% at 15% -10%, rgba(255, 255, 255, .5), transparent 55%), radial-gradient(70% 50% at 100% 110%, rgba(255, 255, 255, .16), transparent 60%);
  mix-blend-mode: soft-light; }
.panel.glass, .box { box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* подвал — стеклянная плашка */
.foot-in { border-top: 0; padding: 18px 22px; border-radius: var(--r-lg); background: var(--glass-fill); border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi); }
/* заголовки полок — стеклянные «капсулы» */
.shelf .sec-head h2 { display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 19px; background: var(--glass-fill); border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 6px 20px rgba(0, 0, 0, .08), inset 0 1px 0 var(--glass-hi); }
/* обложки: стеклянная кромка и блик */
.card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .55);
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 38%); }
/* выбранный пункт меню и чипы — капля стекла */
.seg-i.on, .chip.on { background: var(--glass-fill-strong); border: 1px solid var(--glass-stroke); box-shadow: 0 4px 14px rgba(0, 0, 0, .12), inset 0 1px 0 var(--glass-hi); }
.hashtag { background: var(--glass-fill); border: 1px solid var(--glass-stroke); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-hi); }
/* основные кнопки — с бликом, как стеклянная капля */
.btn { background-image: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 55%); }
.btn:not(.btn-gray):not(.btn-ghost):not(.btn-bad) { box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .14); }
.btn-gray, .btn-ghost { background-color: var(--glass-fill); border: 1px solid var(--glass-stroke); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* поля ввода — матовое стекло */
.box input:not([type=checkbox]):not([type=radio]):not([type=file]), .box textarea, .box select,
.panel input:not([type=checkbox]):not([type=radio]):not([type=file]), .panel textarea, .panel select {
  background: color-mix(in srgb, var(--surface) 62%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .box, .foot-in, .shelf .sec-head h2, .hashtag, .btn-gray, .btn-ghost { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .box::before, .card-media::after { display: none; }
}

/* ══ страница игры ══ */
.game-bar { margin: 14px auto 18px; }
.game-page.no-side { grid-template-columns: minmax(0, 1fr); }
.pc-note { display: none; border-radius: var(--r-md); padding: 10px 16px; margin: 0 0 14px; font-size: 15px; color: var(--orange); }
@media (hover: none) and (pointer: coarse) { .pc-note { display: block; } }
.fs-close, .rotate-hint { display: none; }
.play-wrap.fake-fs { position: fixed; inset: 0; z-index: 300; background: #000; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.play-wrap.fake-fs .frame-box { flex: 1; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.play-wrap.fake-fs .ad-game_play { margin: 0; padding: 6px 0; flex: none; background: #000; min-height: 0; }
.play-wrap.fake-fs .fs-close { display: flex; position: absolute; top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(30, 30, 34, .5); color: #fff; font-size: 18px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); cursor: pointer; }
@media (orientation: portrait) {
  .play-wrap.fake-fs .rotate-hint { display: block; position: absolute; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 2;
    padding: 8px 14px; border-radius: 999px; font-size: 14px; color: #fff; background: rgba(30, 30, 34, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    animation: hint-out 4s forwards; pointer-events: none; }
}
@keyframes hint-out { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
html.no-scroll, html.no-scroll body { overflow: hidden; }
.toast-mini { position: fixed; z-index: 400; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 11px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--label); transition: opacity .5s, transform .5s; max-width: calc(100% - 32px); text-align: center; }
.toast-mini.out { opacity: 0; transform: translate(-50%, 10px); }
.tag-picker.need { outline: 2px solid var(--red); outline-offset: 6px; border-radius: var(--r-md); }
.sup-edit { margin-top: 8px; font-size: 14px; } .sup-edit summary { cursor: pointer; color: var(--label2); } .sup-edit form { margin-top: 8px; }
/* SDK-страница на телефоне: длинный код не распирает страницу */
code { overflow-wrap: anywhere; word-break: break-word; }
pre { max-width: 100%; overflow-x: auto; }
/* плашка cookies на телефоне — компактнее */
@media (max-width: 760px) { .cookie { padding: 10px 12px; gap: 8px; font-size: 13px; line-height: 1.35; } .cookie .btn-sm { min-height: 34px; padding: 6px 14px; } }

/* ══ админка: статистика и конкурс ══ */
.kpis-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-hi b { color: var(--green); }
.live-note { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 200px; align-items: end; padding-top: 8px; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 4px; }
.bar-col .bar { align-self: end; width: 70%; justify-self: center; border-radius: 6px 6px 2px 2px; background: var(--accent); min-height: 2px; }
.bar-n { font-size: 12px; font-weight: 600; color: var(--label2); }
.bar-d { font-size: 11px; color: var(--label3); line-height: 1.2; }
.stats-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-line { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--sep); }
.stat-line:last-child { border-bottom: 0; } .stat-line a { flex: 1; } .stat-line b { font-variant-numeric: tabular-nums; }
.tbl-live td { font-size: 14px; padding: 9px 12px; } .tbl-act { display: flex; gap: 6px; flex-wrap: wrap; }
.contest-run { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-top: 14px; }
.contest-run label { display: grid; gap: 4px; font-size: 14px; } .contest-run .grow { flex: 1; min-width: 220px; }
.contest-run input[type=number] { width: 80px; }
.contest-res { padding: 12px 0; border-bottom: 1px solid var(--sep); }
@media (max-width: 760px) { .kpis-6 { grid-template-columns: 1fr 1fr; } .stats-two { grid-template-columns: 1fr; } .bars { height: 150px; gap: 3px; } .bar-d { font-size: 10px; } }

.foot { padding-left: 20px; padding-right: 20px; } .foot .foot-in { max-width: 1200px; margin: 0 auto; }

.win-note { font-weight: 600; } .contest-now { margin: 10px 0 18px; }

/* ══ 25.11: телефон — легко и плавно; разделы-сортировки; каталог с фильтрами ══ */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --card-fill: rgba(255, 255, 255, .84); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --card-fill: rgba(30, 30, 32, .84); } }
:root[data-theme="dark"] { --card-fill: rgba(30, 30, 32, .84); }
html { -webkit-tap-highlight-color: transparent; }
a, button, label, summary { touch-action: manipulation; }

/* фон — крошечная, заранее размытая копия обложки: браузер просто растягивает её */
.ambient::before { filter: blur(24px) saturate(1.6); transform: scale(1.15); }

/* переходы между страницами (Chrome, Safari 18.2+): шапка и меню стоят на месте, контент мягко въезжает */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.tabbar { view-transition-name: tabbar; }
::view-transition-old(topbar), ::view-transition-old(tabbar) { display: none; }
::view-transition-new(topbar), ::view-transition-new(tabbar), ::view-transition-group(topbar), ::view-transition-group(tabbar) { animation: none; }
::view-transition-old(root) { animation: .16s ease both vt-out; }
::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
::view-transition-group(game-hero) { animation-duration: .4s; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* обложки проявляются, когда загрузились (без JS — видны сразу; страховка — через 3 с всё равно видны) */
.js img.cover, .js img.crow-cover, .js img.hero-cover, .js img.mini-cover { opacity: 0; transition: opacity .45s ease; animation: show-late 0s 3s forwards; }
.js img.ld { opacity: 1; }
@keyframes show-late { to { opacity: 1; } }
.card-media, .crow-media { background: rgba(127, 127, 127, .14); }

/* появление карточек */
@media (prefers-reduced-motion: no-preference) {
  .grid > .card, .shelf-row > .card, .crow { animation: rise .5s var(--ease) both; }
  .grid > .card:nth-child(2), .shelf-row > .card:nth-child(2), .crow:nth-child(2) { animation-delay: 40ms; }
  .grid > .card:nth-child(3), .shelf-row > .card:nth-child(3), .crow:nth-child(3) { animation-delay: 80ms; }
  .grid > .card:nth-child(4), .shelf-row > .card:nth-child(4), .crow:nth-child(4) { animation-delay: 120ms; }
  .grid > .card:nth-child(5), .crow:nth-child(5) { animation-delay: 160ms; }
  .grid > .card:nth-child(6), .crow:nth-child(6) { animation-delay: 200ms; }
  .grid > .card:nth-child(n+7), .crow:nth-child(n+7) { animation-delay: 240ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* отклик на нажатие */
.card-media { transition: transform .25s var(--ease); }
.card:active .card-media { transform: scale(.965); }
.tabbar a { transition: color .2s, background .25s, transform .15s; }
.tabbar a:active { transform: scale(.92); }
.seg-i { transition: background .2s, color .2s, transform .15s; cursor: pointer; }
.seg-i:active { transform: scale(.95); }
.shelf-row { scroll-snap-type: x proximity; overscroll-behavior-x: contain; }

/* заголовок раздела — ссылка «Все ›» */
.sec-link { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--label); }
.sec-link:hover { text-decoration: none; }
.sec-link:hover .more { text-decoration: underline; }
.more { color: var(--accent); white-space: nowrap; }

/* разделы (они же сортировки) и чипы жанров */
.home-bar, .cat-top { margin-bottom: 12px; }
.seg-i input, .fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg-i:has(input:focus-visible), .fchip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 -4px 22px; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.chip-row::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 15px; border-radius: 999px; font-size: 15px; font-weight: 550; color: var(--label);
  background: var(--card-fill); border: 1px solid var(--sep); cursor: pointer; white-space: nowrap; user-select: none; scroll-snap-align: start; transition: background .2s, color .2s, transform .15s; }
.fchip:hover { text-decoration: none; background: rgba(127, 127, 127, .18); }
.fchip:active { transform: scale(.95); }
.fchip b { color: var(--label2); font-weight: 600; font-size: 13px; }
.fchip.on, .fchip:has(input:checked) { background: var(--label); color: var(--bg); border-color: transparent; }
.fchip.on b, .fchip:has(input:checked) b { color: inherit; opacity: .65; }
.fchip-filter .ic { width: 18px; height: 18px; }
.fcount { min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; font-size: 12px; background: var(--accent); color: #fff !important; opacity: 1 !important; }

/* «Популярное» списком */
.chart { margin: 4px 0 30px; }
.chart .sec-head { margin-bottom: 6px; }
.chart-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); column-gap: 28px; }
.crow { display: grid; grid-template-columns: 24px 116px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 6px; color: var(--label);
  border-bottom: 1px solid var(--sep); transition: background .2s, transform .15s; }
.crow:hover { text-decoration: none; background: rgba(127, 127, 127, .1); border-radius: 14px; }
.crow:active { transform: scale(.98); }
.crow-n { font: 700 17px/1 var(--font-round); color: var(--label2); text-align: center; font-variant-numeric: tabular-nums; }
.crow-media { position: relative; width: 116px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35); }
.crow-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crow-cover.cover-empty span { font-size: 28px; }
.crow-text { min-width: 0; display: grid; gap: 2px; }
.crow-text b { display: block; font-weight: 650; font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow-text b .badge-v { margin-left: 4px; } .crow-text b .badge-v .ic { width: 15px; height: 15px; }
.crow-text small { color: var(--label2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow-play { font-weight: 700; font-size: 14px; color: var(--accent); background: rgba(127, 127, 127, .14); padding: 7px 16px; border-radius: 999px; }

/* каталог */
.intro-cat { padding: 22px 4px 16px; } .intro-cat p { font-size: 16px; }
.found { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -8px 4px 16px; color: var(--label2); font-size: 15px; }
.fpill { font-size: 14px; font-weight: 550; padding: 5px 12px; border-radius: 999px; background: rgba(10, 132, 255, .14); color: var(--accent); }
.fpill:hover { text-decoration: none; background: rgba(10, 132, 255, .22); }
.more-wrap { display: flex; justify-content: center; margin: -16px 0 40px; }
.btn-wide { width: 100%; }
.tp-chip b { font-weight: 600; font-size: 12px; opacity: .6; margin-left: 2px; }
.kind-chips .kind { font-weight: 600; }
.kind-chips .dot { margin-right: 6px; }

/* фильтры — шторка (без JS тоже работает: <details>) */
.filt { flex: none; }
.filt > summary { list-style: none; }
.filt > summary::-webkit-details-marker { display: none; }
.filt[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .4); cursor: default; animation: fade-in .2s both; }
.sheet { display: none; }
.filt[open] .sheet { display: flex; flex-direction: column; position: fixed; z-index: 91; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(580px, calc(100% - 32px));
  max-height: min(80vh, 760px); border-radius: var(--r-xl); background: var(--surface); color: var(--label); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: sheet-pop .28s var(--ease) both; }
.sheet-grip { display: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 8px; font-size: 19px; }
.sheet-head .linkbtn { font-size: 15px; }
.sheet-body { overflow-y: auto; padding: 6px 22px 14px; overscroll-behavior: contain; display: grid; gap: 16px; }
.sheet-foot { padding: 12px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sep); }
html:has(.filt[open]) { overflow: hidden; }
@keyframes sheet-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }

/* выбор платформы и режима при загрузке */
.seg-pick, .mode-pick { margin-top: 6px; }
.tp-chip input[type=radio] + span { min-width: 0; }

/* ── везде (с 25.11 и на ПК): стекло только у шапки, меню и панели разделов, остальное рисуется без живого размытия ── */
@media all {
  .ambient::before { filter: none; transform: none; opacity: .62; }
  .glass, .box, .foot-in, .hashtag, .shelf .sec-head h2, .btn-gray, .btn-ghost, .msg,
  .box input, .box textarea, .box select, .panel input, .panel textarea, .panel select { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass::before, .glass::after, .box::before, .card-media::after { display: none; }
  .glass, .box, .foot-in { background: var(--card-fill); border: 1px solid var(--sep); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 20px -14px rgba(0, 0, 0, .22); }
  .bar.glass, .tabbar.glass { background: var(--glass-fill-strong); border-color: var(--glass-stroke); box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
  .card-cap.glass { background: rgba(16, 16, 20, .62); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
  .chip-float.glass { background: rgba(16, 16, 20, .6); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
  .hero-panel.glass { background: rgba(16, 16, 20, .5); border-color: rgba(255, 255, 255, .2); }
  .hashtag { background: rgba(127, 127, 127, .14); border-color: transparent; box-shadow: none; }
  .shelf .sec-head h2 { background: none; border: 0; box-shadow: none; padding: 0; font-size: 22px; }
  .card-media { box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .45); }
  .card:hover, .card:hover .cover, .btn:hover { transform: none; }
  .seg-i.on, .chip.on { background: var(--label); color: var(--bg); border: 0; box-shadow: none; }
  .btn:not(.btn-gray):not(.btn-ghost):not(.btn-bad) { box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
}
@media (max-width: 760px) {
  .hero { display: none; }
  .filters { position: static; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; margin: 14px 0 10px; gap: 10px; border-radius: 0; }
  .filters .search { background: var(--card-fill); border: 1px solid var(--sep); height: 44px; }
  .filters .seg { margin: 0 -14px; padding: 0 14px; }
  .seg-i { background: rgba(127, 127, 127, .12); padding: 9px 15px; }
  .chip-row { margin: 0 -14px 20px; padding: 4px 14px; scroll-padding: 0 14px; }
  .chart-list { grid-template-columns: 1fr; }
  .crow { grid-template-columns: 20px 100px minmax(0, 1fr) auto; gap: 10px; padding: 9px 2px; }
  .crow-media { width: 100px; }
  .crow-play { padding: 7px 14px; }
  .shelf .sec-head { margin-bottom: 10px; }
  .filt[open] .sheet { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 84vh; border-radius: 26px 26px 0 0; animation: sheet-up .34s var(--ease) both; }
  .sheet-grip { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--sep); margin: 8px auto 0; flex: none; }
  .found { margin-top: 0; }
  .intro-cat { padding-top: 14px; }
  .intro-cat h1 { font-size: 28px; }
}

.frame-box { view-transition-name: game-hero; }

.seg-i, .fchip, .tp-chip { position: relative; }  /* скрытые radio внутри не должны раздвигать страницу вбок */
/* правки после проверки на экране телефона */
.crow-text b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chart-list { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
@media (max-width: 760px) {
  .chart-list { grid-template-columns: 1fr; }
  .crow { grid-template-columns: 18px 84px minmax(0, 1fr) auto; }
  .crow-media { width: 84px; }
  .cookie.glass, .toast-mini.glass, .toast.glass { background: var(--surface); }
}
[hidden] { display: none !important; }

/* ══ 25.11 вечер: ПК как телефон, карточки «обложка + строка», экран запуска, капля меню ══ */
@media (min-width: 761px) and (hover: hover) {
  .ambient::before { filter: blur(24px) saturate(1.6); transform: scale(1.15); opacity: .72; }
  .filters.glass { background: var(--glass-fill-strong); border-color: var(--glass-stroke); box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
  .home-bar { margin-top: 22px; }
}
.hero { display: none; }

/* карточка: обложка, под ней одна строка — название, галочка, возраст */
.card { border-radius: 0; }
.card-media { aspect-ratio: 4 / 3; }
.card-line { display: flex; align-items: center; gap: 6px; padding: 9px 4px 0; min-width: 0; }
.card .card-title { flex: 0 1 auto; min-width: 0; font-weight: 650; font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--label); text-shadow: none; }
.card-line .badge-v { flex: none; color: #0a84ff; margin: 0; }
.card-line .badge-v .ic { width: 16px; height: 16px; filter: none; }
.card-age { flex: none; margin-left: auto; font-size: 11px; font-weight: 800; color: var(--label2); border: 1.5px solid currentColor; border-radius: 6px; padding: 0 4px; line-height: 16px; }
.grid-home { margin-bottom: 30px; }
.grid-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin: 8px 0 4px; padding: 0 6px; }
.grid-side .card .card-title { font-size: 14px; }
@media (max-width: 760px) { .card .card-title { font-size: 15px; } .card-line { padding-top: 7px; } }

/* экран запуска: игра грузится только после «Играть» */
.launch { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 12px; cursor: pointer; background: #000; transition: opacity .4s ease; overflow: hidden; }
.launch.gone { opacity: 0; pointer-events: none; }
.launch-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.launch::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)); }
.launch-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .5); color: #fff; font: 700 20px var(--font); letter-spacing: -.01em; background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .25s var(--ease), background .2s; }
.launch-btn:hover { background: rgba(255, 255, 255, .3); transform: scale(1.04); }
.launch-btn:active { transform: scale(.95); }
.launch-btn .ic { width: 22px; height: 22px; }
.launch-sub { position: relative; z-index: 1; color: rgba(255, 255, 255, .88); font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
@media (max-width: 760px) { .launch-btn { padding: 13px 28px; font-size: 18px; } }

/* капля стекла в меню: тянется пальцем/мышью */
.bar-links { position: relative; }  /* у .tabbar своё position: fixed */
[data-drag-tabs] { touch-action: none; user-select: none; -webkit-user-select: none; }
[data-drag-tabs] a { position: relative; z-index: 1; -webkit-touch-callout: none; -webkit-user-drag: none; }
.tabbar a[aria-current], .bar-links a[aria-current] { background: none; }
.tab-blob { position: absolute; left: 0; top: 6px; bottom: 6px; width: 0; border-radius: 999px; z-index: 0; opacity: 0; pointer-events: none; scale: 1;
  background: rgba(127, 127, 127, .18); transition: transform .5s cubic-bezier(.3, 1.35, .5, 1), width .3s var(--ease), opacity .2s, scale .3s var(--ease), background .2s, box-shadow .2s; }
.bar-links .tab-blob { top: 0; bottom: 0; }
.tab-blob.on { opacity: 1; }
.dragging .tab-blob { transition: width .2s, scale .25s var(--ease), background .2s, box-shadow .2s; scale: 1.14; background: rgba(255, 255, 255, .42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(4px) saturate(200%) brightness(1.08); backdrop-filter: blur(4px) saturate(200%) brightness(1.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dragging .tab-blob { background: rgba(255, 255, 255, .16); } }
:root[data-theme="dark"] .dragging .tab-blob { background: rgba(255, 255, 255, .16); }
.dragging a.hover { color: var(--accent); }
.dragging a { transition: color .15s; }
@media (hover: hover) { .card:hover { text-decoration: none; } .card:hover .card-media { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); } }

/* вход через Яндекс ID / VK ID */
.oauth-btns { display: grid; gap: 10px; margin: 18px 0 4px; }
.btn-oauth { width: 100%; min-height: 48px; font-size: 16px; }
.btn.btn-oauth-yandex { background: #000; color: #fff; background-image: none; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.btn.btn-oauth-vk { background: #0077ff; color: #fff; background-image: none; box-shadow: 0 6px 16px -8px rgba(0, 119, 255, .6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.btn-oauth-yandex { background: #fff; color: #000; } }
:root[data-theme="dark"] .btn.btn-oauth-yandex { background: #fff; color: #000; }

/* плашка cookies: «Принять» — кнопка, «Только нужные» — текстовая ссылка под ней (25.11, просьба Данилы) */
.cookie-btns { flex-direction: column; align-items: center; gap: 4px; }
.cookie-min { background: none; border: 0; padding: 4px 8px; font: 500 13px var(--font); color: var(--label2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cookie-min:hover { color: var(--label); }
.cookie.glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.cookie-min { font-size: 11px; padding: 2px 6px; }
.cookie-btns .btn { min-height: 44px; padding: 11px 34px; font-size: 16px; }
@media (max-width: 760px) { .cookie .cookie-btns .btn-sm { min-height: 44px; padding: 11px 38px; font-size: 16px; } }

/* ══ 24.11: игра на телефоне, ✕ в полном экране, поиск в шапке ══ */
/* лента скриншотов не раздувает страницу игры (раньше на телефоне вся страница становилась шириной ~2000px) */
.game-main, .side-panel { min-width: 0; }
.gallery { max-width: 100%; }
/* ✕ и в настоящем полноэкранном режиме (Android, ПК), не только в запасном */
.play-wrap:fullscreen .fs-close { display: flex; position: absolute; top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(30, 30, 34, .5); color: #fff; font-size: 18px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); cursor: pointer; }
/* во время игры пальцы не выделяют текст и не вызывают «Копировать» вокруг игры */
.play-wrap, .play-wrap * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
@media (hover: none) and (pointer: coarse) {
  html.playing .game-head, html.playing .game-bar, html.playing .crumbs, html.playing .kind-chips { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}
/* поиск в шапке (на страницах, где нет своей строки поиска) */
.hsearch { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; background: rgba(127, 127, 127, .14); color: var(--label2); width: 220px; margin-right: 4px; }
.hsearch input { border: 0; background: transparent; outline: 0; font: 15px var(--font); color: var(--label); width: 100%; min-width: 0; padding: 0; }
.hsearch .ic { width: 17px; height: 17px; flex: none; }
.hsearch-btn { display: none; }
@media (max-width: 1000px) { .hsearch { width: 170px; } }
@media (max-width: 760px) {
  .hsearch { display: none; }
  .hsearch-btn { display: inline-flex; }
}
/* шапка на телефоне с поиском и входом не вылезает за экран: буква-аватар (просто украшение) прячется, на узких — и надпись логотипа */
@media (max-width: 760px) { .bar-end .avatar { display: none; } }
@media (max-width: 340px) { .bar .brand-text { display: none; } }
@media (max-width: 400px) { .bar-end .gbtn-icon { width: 40px; } }

/* ══ поиск: подсказки при наборе ══ */
.search, .hsearch { position: relative; }
.suggest { position: absolute; z-index: 120; top: calc(100% + 8px); left: 0; width: max(100%, 340px); max-width: calc(100vw - 28px); padding: 6px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--sep); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .35); color: var(--label); }
.hsearch .suggest { left: auto; right: 0; }
.sg-item, .sg-all { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; color: var(--label); }
.sg-item:hover, .sg-item.on, .sg-all:hover, .sg-all.on { background: rgba(127, 127, 127, .14); text-decoration: none; }
.sg-cover { width: 56px; height: 42px; flex: none; border-radius: 9px; background: rgba(127, 127, 127, .2) center / cover no-repeat; }
.sg-text { display: flex; flex-direction: column; min-width: 0; }
.sg-text b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-text small { font-size: 13px; color: var(--label2); }
.sg-all { justify-content: center; font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.sg-note { padding: 10px 10px; font-size: 14px; color: var(--label2); }
.search-fix { border-radius: var(--r-md); padding: 10px 16px; margin: 0 0 14px; font-size: 15px; }
@media (max-width: 760px) { .suggest { width: 100%; max-width: none; } }

/* ── Новогодний снег (сезон, 25.11.2026): сугробы на блоках; падающий снег рисует assets/snow.js ── */
.snowcap { display: none; }
html[data-snow] .snowcap { display: block; position: absolute; z-index: 3; pointer-events: none; top: -10px; left: 22px; right: 22px; height: 16px;
  filter: drop-shadow(0 1.5px 1.2px rgba(60, 90, 130, .3)); }
html[data-snow] .snowcap svg { display: block; width: 100%; height: 100%; overflow: visible; }
html[data-snow] .card { position: relative; }
html[data-snow] .card > .snowcap { top: -8px; left: 16px; right: 16px; height: 14px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
html[data-snow] .topbar > .bar > .snowcap { top: -9px; left: 30px; right: 30px; height: 15px; }
html[data-snow] .tabbar > .snowcap { left: 28px; right: 28px; }
html[data-snow] .shelf-row { padding-top: 12px; margin-top: -8px; }  /* сугробы на карточках не обрезаются прокруткой полки */
html[data-snow] .foot-in > .snowcap { top: -11px; }
#snowfall { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 58; pointer-events: none; transition: opacity .5s; }
#snowfall.off, html.playing #snowfall { opacity: 0; }
@media print { #snowfall, .snowcap { display: none !important; } }
