/* RUINER? — liquid glass UI */
:root {
  --bg: #04050a;
  --text: #f3f5fb;
  --muted: rgba(228, 234, 255, .62);
  --faint: rgba(228, 234, 255, .38);
  --line: rgba(255, 255, 255, .09);
  --rad: #3ee08f;
  --rad-soft: rgba(62, 224, 143, .16);
  --dire: #ff5468;
  --dire-soft: rgba(255, 84, 104, .16);
  --gold: #ffc65c;
  --violet: #8f7dff;
  --cyan: #5ad8ff;
  --carried: #3ee08f;
  --ok: #6aa8ff;
  --questionable: #ffb547;
  --bad: #ff5468;
  --glass: rgba(255, 255, 255, .055);
  --glass-strong: rgba(255, 255, 255, .09);
  --glass-border: rgba(255, 255, 255, .12);
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .75), 0 10px 30px -18px rgba(0, 0, 0, .6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.r { color: var(--rad); } .d { color: var(--dire); } .g { color: var(--gold); }
.hidden { display: none !important; }

/* ---------- фон: живые пятна + зерно ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 800px at 50% -10%, rgba(143, 125, 255, .16), transparent 60%),
  radial-gradient(900px 700px at 100% 100%, rgba(255, 84, 104, .10), transparent 60%),
  radial-gradient(900px 700px at 0% 100%, rgba(62, 224, 143, .10), transparent 60%),
  var(--bg); }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .55;
  mix-blend-mode: screen; animation: drift 28s ease-in-out infinite alternate; }
.blob.b1 { background: radial-gradient(circle, #2fd38a 0%, transparent 65%); left: -14vmax; top: 18vh; }
.blob.b2 { background: radial-gradient(circle, #ff4d63 0%, transparent 65%); right: -16vmax; top: -10vmax; animation-duration: 34s; }
.blob.b3 { background: radial-gradient(circle, #7a5cff 0%, transparent 65%); left: 30vw; bottom: -24vmax; animation-duration: 40s; }
.blob.b4 { background: radial-gradient(circle, #ffb547 0%, transparent 70%); right: 10vw; bottom: 10vh; width: 26vmax; height: 26vmax; opacity: .28; animation-duration: 24s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, -4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 5vh, 0) scale(.94); }
}
.grain { position: absolute; inset: -50%; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>"); }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ---------- стекло ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .035) 42%, rgba(255, 255, 255, .055) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  border-radius: var(--r-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04), var(--shadow);
}
/* блик-ободок: градиентная рамка через маску */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .10) 28%, rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, .22) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* мягкое внутреннее свечение сверху слева */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 70% at 0% -20%, rgba(255, 255, 255, .13), transparent 55%);
}
.glass.soft { background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); }
.glass.tight { border-radius: var(--r-lg); }
/* преломление «жидкого стекла» (только Chromium умеет SVG-фильтр в backdrop-filter) */
html.lg .refract { -webkit-backdrop-filter: url(#lg-refract) blur(14px) saturate(190%); backdrop-filter: url(#lg-refract) blur(14px) saturate(190%); }

.pad { padding: 22px; }
@media (max-width: 640px) { .pad { padding: 16px; } }

/* ---------- каркас ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .wrap { padding: 0 12px; } }

.nav { position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; max-width: 1320px; padding: 0 20px; }
@media (max-width: 640px) { .nav { padding: 0 12px; } }
.nav-in { display: flex; align-items: center; gap: 14px; padding: 9px 10px 9px 18px; border-radius: 999px; }
.logo { font-family: var(--display); font-weight: 800; letter-spacing: .02em; font-size: 18px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo .dot { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from 200deg, var(--rad), var(--cyan), var(--violet), var(--dire), var(--gold), var(--rad)); box-shadow: 0 0 22px rgba(143, 125, 255, .55), inset 0 0 0 6px rgba(4, 5, 10, .75); }
.logo b { color: var(--dire); }
.nav-search { flex: 1; display: flex; max-width: 460px; margin-left: auto; }
.nav-search input { flex: 1; min-width: 0; background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-border); border-radius: 999px; padding: 9px 16px; outline: none; transition: border-color .2s, background .2s; }
.nav-search input:focus { border-color: rgba(143, 125, 255, .7); background: rgba(255, 255, 255, .09); }
@media (max-width: 640px) { .nav-search { display: none; } .nav-in { justify-content: space-between; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 10px 18px; font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 24px -12px rgba(0, 0, 0, .8); transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-1px); background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: linear-gradient(135deg, #9a86ff, #5ad8ff); color: #070812; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 32px -10px rgba(122, 140, 255, .8); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.icon { width: 38px; height: 38px; padding: 0; }
.btn:focus-visible, .seg button:focus-visible, .chip-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- главная ---------- */
.hero { text-align: center; padding: 90px 0 36px; }
@media (max-width: 640px) { .hero { padding: 54px 0 24px; } }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 8vw, 92px); line-height: .95; margin: 0; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { background: linear-gradient(135deg, var(--dire), var(--gold)); -webkit-background-clip: text; background-clip: text; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 660px; margin: 22px auto 0; }
.search-xl { max-width: 720px; margin: 38px auto 0; padding: 10px; border-radius: 999px; display: flex; gap: 8px; }
.search-xl input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 18px; padding: 10px 18px; }
.search-xl input::placeholder { color: var(--faint); }
.search-xl .btn { padding: 14px 26px; font-size: 16px; }
@media (max-width: 640px) { .search-xl { border-radius: 26px; flex-direction: column; } .search-xl input { text-align: center; } }
.hint { margin-top: 14px; color: var(--faint); font-size: 13px; }
.err-inline { margin-top: 14px; color: var(--bad); font-weight: 500; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 46px 0; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 20px; border-radius: var(--r-lg); }
.feature .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 12px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.section-title { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 34px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.section-title small { font-family: var(--font); font-weight: 400; font-size: 13px; color: var(--muted); }

.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.recent a { padding: 16px; border-radius: var(--r-lg); display: block; transition: transform .2s; }
.recent a:hover { transform: translateY(-3px); }
.recent .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.recent .heroes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.recent .heroes img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.recent .heroes img.rv { outline: 2px solid var(--bad); outline-offset: -2px; }
.recent .heroes img.mv { outline: 2px solid var(--carried); outline-offset: -2px; }

/* ---------- прогресс ---------- */
.progress-card { max-width: 680px; margin: 60px auto; padding: 30px; text-align: center; }
.progress-card h2 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; }
.pbar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 22px 0 12px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); }
.pbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--rad)); background-size: 200% 100%; animation: flow 2.4s linear infinite; transition: width .6s ease; box-shadow: 0 0 18px rgba(90, 216, 255, .6); }
@keyframes flow { to { background-position: -200% 0; } }
.steps { display: flex; justify-content: space-between; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.step { flex: 1; min-width: 100px; padding: 10px; border-radius: 14px; font-size: 13px; color: var(--faint); background: rgba(255, 255, 255, .03); }
.step.on { color: var(--text); background: rgba(143, 125, 255, .18); box-shadow: inset 0 0 0 1px rgba(143, 125, 255, .5); }
.step.done { color: var(--rad); }
.spinner { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--cyan), var(--violet), transparent 70%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- шапка матча ---------- */
.match-head { margin-top: 22px; padding: 24px; }
.mh-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mh-score { display: flex; align-items: center; gap: 18px; font-family: var(--display); }
.mh-score .tn { font-size: clamp(15px, 2vw, 20px); font-weight: 600; }
.mh-score .sc { font-size: clamp(30px, 5vw, 50px); font-weight: 800; }
.mh-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.mh-meta a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.winbadge { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.winbadge.r { background: var(--rad-soft); color: var(--rad); box-shadow: inset 0 0 0 1px rgba(62, 224, 143, .45); }
.winbadge.d { background: var(--dire-soft); color: var(--dire); box-shadow: inset 0 0 0 1px rgba(255, 84, 104, .45); }
.summary-line { margin-top: 18px; font-size: 16px; line-height: 1.6; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .04); border-left: 3px solid var(--gold); }
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 760px) { .spotlight { grid-template-columns: 1fr; } }
.spot { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); cursor: pointer; transition: transform .2s; }
.spot:hover { transform: translateY(-2px); }
.spot img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.spot .lbl { font-family: var(--display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.spot.mvp .lbl { color: var(--carried); }
.spot.ruin .lbl { color: var(--bad); }
.spot.mvp { box-shadow: inset 0 0 0 1px rgba(62, 224, 143, .3), var(--shadow); }
.spot.ruin { box-shadow: inset 0 0 0 1px rgba(255, 84, 104, .3), var(--shadow); }
.disclaimer { margin-top: 12px; font-size: 12.5px; color: var(--faint); }

/* ---------- вкладки ---------- */
.tabs-wrap { position: sticky; top: 76px; z-index: 40; margin: 18px 0 16px; }
.seg { display: flex; gap: 4px; padding: 6px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; background: transparent; cursor: pointer; padding: 9px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 7px; transition: color .2s, background .25s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--text); background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px -8px rgba(0, 0, 0, .8); }
.seg svg { width: 16px; height: 16px; opacity: .85; }

/* ---------- сетки ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .g2, .g3, .g-main { grid-template-columns: minmax(0, 1fr); } }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-weight: 700; font-size: 16px; }
.card-title small { font-weight: 400; color: var(--muted); font-size: 13px; }

/* ---------- таблица команд ---------- */
.team-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.team-h h3 { margin: 0; font-family: var(--display); font-size: 17px; }
.team-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.prow { display: grid; grid-template-columns: 84px minmax(0, 1fr) 76px 58px 176px; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); cursor: pointer; transition: background .2s; }
.prow:hover { background: rgba(255, 255, 255, .05); }
.prow.focus { background: rgba(255, 198, 92, .08); box-shadow: inset 0 0 0 1px rgba(255, 198, 92, .35); }
.prow img.phero { width: 84px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.prow .nm { min-width: 0; }
.prow .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .nm span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.prow .kda { font-weight: 600; text-align: right; }
.prow .nw { text-align: right; color: var(--gold); font-weight: 600; }
@media (max-width: 640px) { .prow { grid-template-columns: 64px minmax(0, 1fr) 70px; } .prow img.phero { width: 64px; } .prow .nw, .prow .kda, .prow .vcell .verdict { display: none; } }

.verdict { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.verdict.carried { color: var(--carried); background: rgba(62, 224, 143, .14); box-shadow: inset 0 0 0 1px rgba(62, 224, 143, .4), 0 0 18px -6px rgba(62, 224, 143, .6); }
.verdict.ok { color: var(--ok); background: rgba(106, 168, 255, .14); box-shadow: inset 0 0 0 1px rgba(106, 168, 255, .4); }
.verdict.questionable { color: var(--questionable); background: rgba(255, 181, 71, .14); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .4); }
.verdict.bad { color: var(--bad); background: rgba(255, 84, 104, .15); box-shadow: inset 0 0 0 1px rgba(255, 84, 104, .45), 0 0 18px -6px rgba(255, 84, 104, .6); }
.vcell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }

.ring { position: relative; width: 44px; height: 44px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.ring.lg { width: 110px; height: 110px; }
.ring.lg span { font-size: 30px; font-family: var(--display); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); white-space: nowrap; }
.chip.good { color: var(--carried); background: rgba(62, 224, 143, .1); }
.chip.bad { color: var(--bad); background: rgba(255, 84, 104, .12); }
.chip.warn { color: var(--questionable); background: rgba(255, 181, 71, .12); }
.chip.info { color: var(--muted); }
.chip-btn { cursor: pointer; border: 0; }
.chip-btn.on { background: rgba(143, 125, 255, .3); box-shadow: inset 0 0 0 1px rgba(143, 125, 255, .65); color: #fff; }

/* ---------- моменты / ленты ---------- */
.feed { display: flex; flex-direction: column; gap: 2px; max-height: 560px; overflow: auto; padding-right: 4px; }
.feed-item { display: grid; grid-template-columns: 54px 10px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.feed-item:hover { background: rgba(255, 255, 255, .06); }
.feed-item .tm { color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; padding-top: 1px; }
.feed-item .dt { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; box-shadow: 0 0 10px currentColor; }
.feed-item.l3 { font-weight: 600; }
.feed::-webkit-scrollbar, .scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.feed::-webkit-scrollbar-thumb, .scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 8px; }
.scroll { overflow: auto; }

/* ---------- таблицы ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: rgba(255, 255, 255, .04); }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
.hi-sm { width: 52px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; }
.hi-xs { width: 34px; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; display: inline-block; vertical-align: middle; }
.it { width: 34px; height: 25px; object-fit: cover; border-radius: 6px; display: inline-block; vertical-align: middle; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.it.lg { width: 46px; height: 34px; border-radius: 8px; }
.ab { width: 30px; height: 30px; border-radius: 7px; display: inline-block; vertical-align: middle; }

/* ---------- графики ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.tip { position: fixed; z-index: 100; pointer-events: none; padding: 10px 12px; border-radius: 14px; font-size: 13px; max-width: 320px; display: none;
  background: rgba(14, 16, 26, .82); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px -12px rgba(0, 0, 0, .8); }
.tip b { display: block; margin-bottom: 3px; }

/* ---------- карта ---------- */
.map-box { position: relative; aspect-ratio: 1; width: 100%; border-radius: 22px; overflow: hidden; background: #0b0f0b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.map-box img.mapimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(.82) contrast(1.05); }
.map-box canvas, .map-box svg.mapsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)); }
.map-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.map-ctrl .tl { font-variant-numeric: tabular-nums; font-weight: 700; width: 58px; }
.range { flex: 1; min-width: 180px; position: relative; height: 28px; }
.range input { width: 100%; height: 28px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; position: relative; z-index: 2; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.range input::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; margin-top: -6px; background: #fff; box-shadow: 0 0 0 4px rgba(143, 125, 255, .45), 0 4px 10px rgba(0, 0, 0, .6); }
.range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 4px rgba(143, 125, 255, .45); }
.range .marks { position: absolute; left: 9px; right: 9px; top: 0; bottom: 0; pointer-events: none; }
.range .marks i { position: absolute; top: 3px; width: 2px; height: 8px; border-radius: 2px; transform: translateX(-1px); }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hero-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hero-pick button { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; opacity: .55; transition: opacity .2s, transform .2s; }
.hero-pick button.on { opacity: 1; transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold); }
.hero-pick button:hover { opacity: 1; }

/* ---------- игрок ---------- */
.pp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px; }
@media (max-width: 760px) { .pp-head { grid-template-columns: 1fr; text-align: center; } .pp-head .ring.lg { margin: 0 auto; } }
.pp-portrait { width: 220px; aspect-ratio: 16/9; border-radius: 18px; object-fit: cover; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
@media (max-width: 760px) { .pp-portrait { width: 100%; max-width: 360px; margin: 0 auto; } }
.pp-name { font-family: var(--display); font-size: 26px; font-weight: 700; margin: 0; }
.pp-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 760px) { .pp-stats { justify-content: center; } }
.stat { padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); min-width: 76px; }
.stat b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.player-strip { display: flex; gap: 8px; overflow-x: auto; padding: 6px; border-radius: 22px; scrollbar-width: none; }
.player-strip::-webkit-scrollbar { display: none; }
.player-strip button { flex: none; border: 0; padding: 4px; border-radius: 14px; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; font-size: 11.5px; color: var(--muted); transition: background .2s; }
.player-strip button img { width: 84px; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; }
.player-strip button.on { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.player-strip .sep { flex: none; width: 1px; background: var(--line); margin: 8px 4px; }

.catbars { display: flex; flex-direction: column; gap: 10px; }
.catbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: 13.5px; }
.catbar .bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.catbar .bar i { position: absolute; top: 0; bottom: 0; border-radius: 10px; }
.catbar .bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(255, 255, 255, .25); }

.tips { display: flex; flex-direction: column; gap: 10px; }
.tipc { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); cursor: pointer; transition: background .2s; }
.tipc:hover { background: rgba(255, 255, 255, .07); }
.tipc .tm { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.tipc .tt { font-weight: 600; }
.tipc .tx { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.tipc .do { margin-top: 6px; font-size: 13.5px; color: #cfe8ff; }
.tipc .do::before { content: "→ "; color: var(--cyan); font-weight: 700; }

.fgroup { margin-bottom: 18px; }
.fgroup h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; display: flex; justify-content: space-between; }
.fitem { display: grid; grid-template-columns: 46px 52px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: 12px; }
.fitem:hover { background: rgba(255, 255, 255, .04); }
.fitem .pts { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.fitem .pts.p { color: var(--carried); } .fitem .pts.n { color: var(--bad); } .fitem .pts.z { color: var(--faint); }
.fitem .tm { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.fitem .tt { font-weight: 600; font-size: 14px; }
.fitem .tx { color: var(--muted); font-size: 13px; }
.fitem .do { font-size: 13px; color: #cfe8ff; margin-top: 2px; }
.fitem .do::before { content: "→ "; color: var(--cyan); }

.build { display: flex; flex-wrap: wrap; gap: 10px; }
.bitem { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); position: relative; }
.bitem .flag { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; display: grid; place-items: center; font-weight: 800; color: #000; }
.bitem .flag.late { background: var(--questionable); } .bitem .flag.fast { background: var(--carried); } .bitem .flag.rare { background: var(--violet); color: #fff; }
.prophase { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.prophase .its { display: flex; flex-wrap: wrap; gap: 6px; }
.prophase .its span { position: relative; }
.prophase .its span.have img { box-shadow: 0 0 0 2px var(--carried); }
.prophase .its span.miss img { opacity: .45; filter: grayscale(.6); }

.skills { display: flex; flex-wrap: wrap; gap: 4px; }
.skills div { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--faint); }

.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.empty { color: var(--faint); padding: 20px; text-align: center; }
.foot { margin: 50px 0 30px; color: var(--faint); font-size: 12.5px; text-align: center; }
.chat-line { padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 14px; }
.chat-line.toxic { color: #ff9aa6; }

/* ======================================================================= v4: тренер, карта по кнопке */
.noscroll { overflow: hidden; }
.link { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.verdict.good { color: #7ddc6a; background: rgba(125, 220, 106, .14); box-shadow: inset 0 0 0 1px rgba(125, 220, 106, .4); }
.pts { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pts.p { color: var(--carried); } .pts.n { color: var(--bad); } .pts.z { color: var(--faint); }

/* кнопка «на карте» */
.mapbtn { display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--gold); background: rgba(255, 198, 92, .1); box-shadow: inset 0 0 0 1px rgba(255, 198, 92, .3); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background .15s, transform .15s; }
.mapbtn:hover { background: rgba(255, 198, 92, .2); transform: translateY(-1px); }
.mapbtn svg { width: 13px; height: 13px; }

/* всплывающая карта */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(2, 3, 8, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fadein .15s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-card { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 16px 18px 18px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.modal-head b { font-size: 18px; font-family: var(--display); }
.modal-body .map-box { width: min(100%, calc(100vh - 260px)); margin: 0 auto; }

/* подсказка «что на этой вкладке» */
.tabhint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin: 0 4px 14px; }
.tabhint.main { margin-top: -4px; }
.tabhint svg { color: var(--cyan); flex: none; }
.explain { color: var(--muted); font-size: 13.5px; line-height: 1.55; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); border-left: 3px solid var(--violet); }

/* подвкладки игрока */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.subtabs button { border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: background .2s, color .2s; }
.subtabs button:hover { color: var(--text); }
.subtabs button.on { color: #fff; background: linear-gradient(135deg, rgba(143, 125, 255, .45), rgba(90, 216, 255, .3)); box-shadow: inset 0 0 0 1px rgba(143, 125, 255, .7); }
.pp-score { display: flex; flex-direction: column; align-items: center; }
.player-strip .ps-pos { color: var(--faint); font-size: 11px; }

/* заключение тренера */
.coach-main { border-left: 3px solid var(--gold); }
.coach-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.coach-headline { font-family: var(--display); font-size: clamp(18px, 2.4vw, 24px); margin: 8px 0 6px; line-height: 1.3; }
.coach-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.role-card { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.role-card .tx, .phase .tx, .duty .tx, .prio .tx, .need .tx { color: var(--muted); font-size: 13.5px; }
ul.reasons { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
ul.reasons li { margin: 3px 0; }
ul.reasons.big { font-size: 14.5px; color: var(--text); }
.phases { display: flex; flex-direction: column; gap: 10px; }
.phase { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.ph-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; margin-bottom: 6px; }
.phase.good .ph-top b { color: var(--carried); } .phase.ok .ph-top b { color: var(--ok); } .phase.bad .ph-top b { color: var(--bad); }
.sbar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 4px 0; min-width: 60px; }
.sbar i { display: block; height: 100%; border-radius: 8px; }
.duties { display: flex; flex-direction: column; gap: 8px; }
.duty { display: grid; grid-template-columns: 26px minmax(0, 1fr) 90px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); }
.duty .dmark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.duty.good .dmark { background: rgba(62, 224, 143, .18); color: var(--carried); }
.duty.ok .dmark { background: rgba(106, 168, 255, .18); color: var(--ok); }
.duty.bad .dmark { background: rgba(255, 84, 104, .18); color: var(--bad); }
.duty .dt { font-weight: 700; font-size: 14px; }
@media (max-width: 640px) { .duty { grid-template-columns: 26px minmax(0, 1fr); } .duty .sbar { grid-column: 2; } }
.prios { display: flex; flex-direction: column; gap: 10px; }
.prio { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.prio .pn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #070812; background: linear-gradient(135deg, var(--gold), #ff9a5c); }
.prio .tt { font-weight: 700; margin-bottom: 3px; }

/* предметы: что надо было купить */
.needs { display: flex; flex-direction: column; gap: 8px; }
.need { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); }
.need .nmark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.need.ok .nmark { background: rgba(62, 224, 143, .18); color: var(--carried); }
.need.late .nmark { background: rgba(255, 181, 71, .18); color: var(--questionable); }
.need.miss .nmark, .need.wrong .nmark { background: rgba(255, 84, 104, .18); color: var(--bad); }
.need .tt { font-weight: 700; font-size: 14px; }
.need .do { font-size: 13px; color: #cfe8ff; margin-top: 3px; }
.nopts { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.timing { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.tm-h { font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tchart { width: 100%; height: 96px; display: block; margin-top: 4px; overflow: visible; }

/* оценка: формула, метрики */
.formula { font-size: 17px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .045); }
.formula b { font-family: var(--display); font-size: 22px; }
.cdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.mrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 90px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.mrow:hover { background: rgba(255, 255, 255, .04); }
.mrow .tt { font-weight: 600; font-size: 14px; }
.mrow .tx { color: var(--muted); font-size: 13px; }
.mrow .pts { text-align: right; }
.sub-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 10px 10px 2px; }
details.facts { margin: 6px 0 0; }
details.facts summary { cursor: pointer; color: var(--faint); font-size: 12.5px; padding: 6px 10px; }
details.facts .fitem { opacity: .75; }
.fitem { grid-template-columns: 56px 74px minmax(0, 1fr); }
.fitem.good .tt { color: #c9ffe0; }
.fitem.bad .tt { color: #ffd0d6; }

/* обзор и драфт */
.prow .nm .hl { font-size: 12.5px; color: var(--faint); white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.feed-item.nohover { cursor: default; grid-template-columns: auto 10px minmax(0, 1fr); align-items: center; }
.feed-item.nohover:hover { background: transparent; }
.dheroes { display: flex; gap: 6px; flex-wrap: wrap; }
.traits { display: flex; flex-direction: column; gap: 6px; }
.trait { display: grid; grid-template-columns: 130px minmax(0, 1fr) 26px 26px; gap: 8px; align-items: center; font-size: 13px; }
.trait .tb { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.trait .tb i { display: block; height: 100%; border-radius: 8px; }
.trait .tb i.r { background: var(--rad); } .trait .tb i.d { background: var(--dire); }
.trait b, .trait span.num { text-align: right; }
.dneed { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.outdated { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-top: 18px; box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .45), var(--shadow); color: var(--questionable); }
.prow { grid-template-columns: 76px minmax(0, 1fr) auto; }
.prow img.phero { width: 76px; }
.prow .nm .pst { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .prow { grid-template-columns: 60px minmax(0, 1fr) auto; } .prow img.phero { width: 60px; } .prow .vcell .verdict { display: none; } }
.duties { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.duty { display: block; padding: 12px 14px; }
.duty .dhead { display: flex; align-items: center; gap: 10px; }
.duty .dhead .dt { font-weight: 700; font-size: 14.5px; flex: 1; }
.duty .dhead .dg { font-size: 12.5px; font-weight: 700; }
.duty.good .dg { color: var(--carried); } .duty.ok .dg { color: var(--ok); } .duty.bad .dg { color: var(--bad); }
.duty .sbar { margin: 8px 0 6px; }
ul.dfacts { margin: 0; padding-left: 16px; color: var(--muted); font-size: 13px; }
ul.dfacts li { margin: 2px 0; }
.threat { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 6px 4px; }
.threat .tt { font-weight: 700; font-size: 14px; }
.threat .tx { color: var(--muted); font-size: 13px; }
.threat .do { font-size: 13px; color: #cfe8ff; }

/* ---------- v5: хронология, дуэль, сценарий, справка ---------- */
.norms { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.norms b { color: var(--text); }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.story { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); font-size: 14px; }
.story b { display: block; margin-bottom: 4px; color: var(--gold); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.story span { color: var(--muted); line-height: 1.55; }
.duel-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 10px; }
.duel-head .vs { font-family: var(--display); font-weight: 800; color: var(--faint); }
table.t.duel td { padding: 6px 10px; }
.tl-phase { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.tl-row { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 10px; font-size: 14px; }
.tl-row:hover { background: rgba(255, 255, 255, .04); }
.tl-row.bad span:last-child { color: #ffb3bd; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tl-row .it { width: 28px; height: 21px; }
.mv-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 120px; gap: 10px; align-items: center; font-size: 13px; margin: 6px 0; }
.mv-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; gap: 2px; background: rgba(255, 255, 255, .05); }
.mv-bar i { display: block; height: 100%; }
@media (max-width: 640px) { .mv-row { grid-template-columns: 1fr; } }
.fcard { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); margin-bottom: 8px; font-size: 13.5px; }
.fcard b { font-family: var(--display); font-size: 16px; }
.fcard.good b { color: var(--carried); } .fcard.bad b { color: var(--bad); }
.fcard span { color: var(--muted); }
.help { max-width: 720px; }
.help h4 { margin: 14px 0 4px; color: var(--gold); font-size: 14px; }
.help p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.chip .ab { width: 18px; height: 18px; border-radius: 4px; }
.features { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
@media (max-width: 1250px) { .lanes3 { grid-template-columns: minmax(0, 1fr); } }
.tbl.tal td{font-size:12.5px;vertical-align:top}.tbl.tal td.tal-on{color:var(--text);font-weight:600}.tbl.tal small{font-weight:400;color:var(--muted)}
.acc-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); }
.acc-row:hover { background: rgba(255, 255, 255, .05); }
.acc-row .nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-row .vcell { display: flex; gap: 8px; align-items: center; }
@media (max-width: 640px) { .acc-row { grid-template-columns: 40px minmax(0, 1fr); } .acc-row .vcell { grid-column: 1 / -1; justify-content: flex-end; } }

.nav-link { font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; background: rgba(255,255,255,.07); }
.nav-link:hover { background: rgba(255,255,255,.14); }
.meta-search { width: 100%; max-width: 320px; margin: 0 0 10px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--text); font: inherit; }
.meta-tbl td { vertical-align: middle; } .meta-row { cursor: pointer; } .meta-row:hover td { background: rgba(255,255,255,.04); }
.sortable { cursor: pointer; user-select: none; } .sortable.on { color: var(--gold); }
.mi-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 120px 58px; align-items: center; gap: 10px; padding: 5px 0; }
.mi-row:has(.mi-share) { } .mi-row .it, .mi-row .ab, .mi-row img { width: 34px; height: 25px; border-radius: 5px; object-fit: cover; }
.mi-row .ab { height: 34px; }
.mi-txt { min-width: 0; font-size: 13.5px; } .mi-share { display: flex; align-items: center; gap: 6px; font-size: 12px; } .mi-share .mv-bar { flex: 1; }
.tal-row { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.tal-lvl { display: grid; place-items: center; font-weight: 800; color: var(--gold); background: rgba(255,198,92,.1); border-radius: 8px; }
.tal-opt { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 13px; } .tal-opt small { color: var(--muted); }
.tal-opt.on { background: rgba(90,216,166,.12); outline: 1px solid rgba(90,216,166,.35); }
@media (max-width: 640px) { .mi-row { grid-template-columns: 30px minmax(0,1fr) 54px; } .mi-row .mi-share { display: none; } .nav-link { padding: 7px 10px; font-size: 13px; } .tal-row { grid-template-columns: 28px 1fr; } .tal-row .tal-opt:last-child { grid-column: 2; } }

/* ===================== Мета 6000+ (d2pt-стиль) ===================== */
.msearch { position: relative; display: flex; align-items: center; gap: 10px; max-width: 820px; margin: 0 auto 16px; padding: 4px 16px; border-radius: 16px; }
.msearch input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.ms-ic { font-size: 20px; opacity: .6; }
.msearch kbd { font: inherit; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--muted); }
.msug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; border-radius: 14px; overflow: hidden; background: rgba(16,18,30,.97); box-shadow: 0 20px 50px -12px rgba(0,0,0,.7); }
.msug:empty { display: none; }
.msug-i { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-size: 14px; }
.msug-i .faint { margin-left: auto; font-size: 12.5px; }
.msug-i.on, .msug-i:hover { background: rgba(255,255,255,.08); }
.kicker { font-size: 11px; letter-spacing: .22em; color: var(--cyan, #5ad8ff); text-transform: uppercase; opacity: .85; }
.meta-welcome { padding: 18px 20px; margin-bottom: 16px; }
.meta-welcome h2 { margin: 6px 0 4px; font-size: 26px; }
.meta-welcome p { margin: 0 0 12px; max-width: 760px; font-size: 14px; }
.mw-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.meta-grid-wrap { padding: 16px; }
.mg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mg-head h3 { margin: 4px 0 2px; font-size: 20px; }
.mgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mcol { min-width: 0; border-radius: 14px; background: rgba(255,255,255,.03); padding: 8px; }
.mcol-h { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 4px 4px 8px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 6px; }
.mcol-h small { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
.mcol-h .chip { font-size: 11px; padding: 3px 8px; }
.pos-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11.5px; font-weight: 800; background: rgba(255,198,92,.16); color: var(--gold); margin-right: 4px; }
.mrow { position: relative; display: grid; grid-template-columns: 16px 46px minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding: 6px 4px 9px; border-radius: 10px; color: inherit; text-decoration: none; }
.mrow:hover { background: rgba(255,255,255,.05); }
.mrow.more { display: none; }
.mgrid.expanded .mrow.more { display: grid; }
.mrank { font-size: 11px; color: var(--muted); text-align: center; }
.mport { width: 46px; height: 26px; object-fit: cover; border-radius: 5px; }
.mrow-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mrow-t b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-t > span { font-size: 11.5px; }
.tier { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 5px; font-size: 11.5px; font-weight: 900; background: rgba(255,255,255,.1); color: var(--muted); }
.tier.tS { background: #ff6b7a; color: #1a0508; }
.tier.tA { background: #ffa25a; color: #1a0d03; }
.tier.tB { background: #ffd65a; color: #1a1503; }
.tier.tC { background: #8be0a4; color: #04140a; }
.tier.tD { background: #8e95a8; color: #0b0d12; }
.mrate { font-size: 13px; white-space: nowrap; }
.mrate small { font-size: 10px; color: var(--muted); }
.mbar { position: absolute; left: 70px; bottom: 3px; height: 2px; max-width: calc(100% - 76px); background: linear-gradient(90deg, #ffc65c, #ff8a5c); border-radius: 2px; opacity: .8; }
.mg-more { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.03); color: var(--text); font: inherit; cursor: pointer; }
.mg-more:hover { background: rgba(255,255,255,.07); }
@media (max-width: 1100px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .mgrid { grid-template-columns: minmax(0, 1fr); } .mg-head { flex-direction: column; align-items: flex-start; } }

.mh-head { position: sticky; top: 76px; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px 14px; margin-bottom: 16px; }
.mh-id { display: flex; align-items: center; gap: 12px; }
.mh-id h2 { margin: 0; font-size: 22px; }
.mh-port { width: 92px; height: 52px; object-fit: cover; border-radius: 10px; }
.mh-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.mh-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px 10px; border: 0; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text); font: inherit; cursor: pointer; overflow: hidden; }
.mh-tab.on { background: rgba(255,198,92,.16); outline: 1px solid rgba(255,198,92,.45); }
.mh-tab.nob { cursor: default; opacity: .55; }
.mh-tab:not(.nob):not(.on):hover { background: rgba(255,255,255,.08); }
.mh-tab .mh-top { position: absolute; top: 2px; font-size: 9.5px; color: var(--gold); letter-spacing: .03em; }
.mh-tn { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.mh-ts { font-size: 12px; white-space: nowrap; }
.mh-rt { color: #c9b8ff; }
.mh-rt small { font-size: 9px; }
.mh-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #ffc65c, #ff8a5c); }
.mh-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mh-main, .mh-side { display: grid; gap: 16px; min-width: 0; }
.msec { padding: 14px 16px; }
.msec-h { margin-bottom: 12px; }
.msec-h h3 { margin: 0; font-size: 16px; }
.msec-h small { color: var(--muted); font-size: 12.5px; }
.sk-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.sk-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.sk-h b { color: var(--cyan, #5ad8ff); text-transform: uppercase; font-size: 11.5px; letter-spacing: .08em; }
.sk-seq { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.sk-c { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); }
.sk-c .ab { width: 100%; max-width: 36px; height: auto; aspect-ratio: 1; border-radius: 6px; }
.sk-c.ult .ab { outline: 2px solid var(--gold); }
.sk-c.ult span { color: var(--gold); font-weight: 700; }
.tt-tree { display: grid; gap: 6px; }
.tt-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 6px; align-items: stretch; }
.tt-o { padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 13px; text-align: center; }
.tt-o.best { background: rgba(255,198,92,.13); outline: 1px solid rgba(255,198,92,.4); }
.tt-n { font-weight: 600; }
.tt-s { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tt-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.empty-o { color: var(--muted); }
.tt-lv { display: grid; place-items: center; align-self: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,198,92,.6); color: var(--gold); font-weight: 800; margin: 0 auto; }
.st-sets { display: flex; flex-wrap: wrap; gap: 18px; }
.st-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.irow { display: flex; flex-wrap: wrap; gap: 6px; }
.icell { position: relative; }
.icell .it { width: 48px; height: 35px; border-radius: 6px; object-fit: cover; }
.ib { position: absolute; right: -4px; bottom: -4px; font-size: 10.5px; font-weight: 800; padding: 0 4px; border-radius: 5px; background: rgba(10,12,20,.92); color: var(--gold); }
.tl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-c { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.04); }
.tl-c .it { width: 46px; height: 34px; border-radius: 6px; object-fit: cover; }
.tl-t { font-size: 11.5px; color: var(--muted); }
.tl-b { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 1px 5px; border-radius: 4px; color: #5ad8ff; border: 1px solid rgba(90,216,255,.5); }
.mchk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; cursor: pointer; }
.mi-tbl td { vertical-align: middle; }
.mi-tbl .it { width: 36px; height: 26px; border-radius: 5px; vertical-align: middle; margin-right: 6px; object-fit: cover; }
.osn { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; color: #5ad8ff; border: 1px solid rgba(90,216,255,.45); }
.late-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nt-tier { margin-bottom: 12px; }
.nt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.nt-c { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 12px; }
.nt-c .it { width: 44px; height: 32px; border-radius: 6px; object-fit: cover; }
.nt-c small { font-size: 11px; }
.mi-row.hl { color: inherit; text-decoration: none; border-radius: 8px; grid-template-columns: 34px minmax(0,1fr) 50px 54px; }
.mi-row.hl:hover { background: rgba(255,255,255,.05); }
@media (max-width: 980px) { .mh-head { position: static; grid-template-columns: minmax(0, 1fr); } .mh-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mh-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .sk-wrap { grid-template-columns: minmax(0, 1fr); } .late-g { grid-template-columns: minmax(0, 1fr); } .tt-row { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); } .tt-o { font-size: 12px; padding: 7px; } .mh-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vr-list { display: grid; gap: 12px; } .vr { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); }
#navSug { min-width: 300px; }

/* ===================== Вход через Steam и «Мой прогресс» ===================== */
#navMe { margin-left: 4px; }
.nav-steam { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; white-space: nowrap; color: #fff; background: linear-gradient(135deg, #1b2838, #2a475e); border: 1px solid rgba(102,192,244,.45); }
.nav-steam:hover { border-color: rgba(102,192,244,.9); }
.nav-me { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; font-weight: 700; font-size: 13.5px; white-space: nowrap; background: rgba(255,255,255,.07); }
.nav-me img { width: 28px; height: 28px; border-radius: 50%; } .nav-me:hover { background: rgba(255,255,255,.14); }
.me-login { max-width: 760px; margin: 0 auto; padding: 26px; } .me-login h2 { margin: 6px 0 8px; } .me-login p { margin: 0 0 16px; }
.me-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.me-id { display: flex; align-items: center; gap: 14px; } .me-id img { width: 64px; height: 64px; border-radius: 14px; } .me-id h2 { margin: 0 0 4px; }
.me-act { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-list { display: grid; gap: 8px; }
.ins { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border-left: 3px solid rgba(255,255,255,.2); }
.ins.bad { border-left-color: var(--bad, #ff5468); } .ins.warn { border-left-color: var(--gold, #ffc65c); } .ins.info { border-left-color: #6aa8ff; } .ins.good { border-left-color: #5ad8a6; }
.ins .tt { font-weight: 700; margin-bottom: 3px; } .ins .tx { font-size: 13.5px; color: var(--muted); }
.mrow2 { display: grid; grid-template-columns: 110px minmax(0,1fr) 34px; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0; }
@media (max-width: 640px) { .nav-me span { display: none; } .nav-steam { padding: 7px 10px; font-size: 12px; } }
.nav-ini { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #9a86ff, #5ad8ff); color: #070812; font-weight: 800; font-size: 13px; }
.nav-me { border: 1px solid rgba(255,255,255,.18); }
.me-warn { margin-bottom: 16px; border-left: 3px solid var(--gold, #ffc65c); } .me-warn .tt { font-weight: 800; margin-bottom: 4px; } .me-warn .tx { font-size: 14px; color: var(--muted); }
.logo span:last-child { text-transform: none; letter-spacing: 0; }

/* ---------- язык, Premium в шапке, лимит на главной ---------- */
.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-prem { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; font-weight: 800; font-size: 13.5px; white-space: nowrap; color: #1a1205;
  background: linear-gradient(135deg, #ffe08a, #ffb547 55%, #ff8a5c); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 26px -12px rgba(255,181,71,.9); transition: filter .2s, transform .2s; }
.nav-prem:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nav-lang { width: 38px; height: 34px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--muted); font-weight: 800; font-size: 12px; letter-spacing: .06em; cursor: pointer; }
.nav-lang:hover { color: var(--text); background: rgba(255,255,255,.13); }
.nav-me { position: relative; }
.nav-me.is-prem img, .nav-me.is-prem .nav-ini { box-shadow: 0 0 0 2px #ffc65c, 0 0 14px rgba(255,198,92,.55); }
.nav-crown { position: absolute; left: 22px; top: -3px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; color: #1a1205; background: linear-gradient(135deg, #ffe08a, #ffb547); font-style: normal; }
@media (max-width: 760px) { .nav-prem span, .nav-me span:last-child { display: none; } .nav-prem { padding: 8px 10px; } .nav-me { padding: 4px; } .nav-crown { left: 20px; } }
@media (max-width: 420px) { .nav-in { gap: 8px; padding-left: 12px; } .logo { font-size: 15px; gap: 7px; } .logo .dot { width: 20px; height: 20px; } .nav-link { padding: 7px 9px; font-size: 12.5px; } .nav-steam { padding: 7px 10px; font-size: 12px; } }
.quota-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin-top: 14px; min-height: 26px; font-size: 13.5px; }
.ql { color: var(--muted); } .ql b { color: var(--text); } .ql.out b { color: var(--bad); }
.ql.prem { color: #ffd27a; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ql-up { display: inline-flex; align-items: center; gap: 5px; color: #ffd27a; font-weight: 700; border-bottom: 1px dashed rgba(255,210,122,.5); }
.ql-up:hover { color: #ffe3a6; }

/* ---------- страница Premium ---------- */
.pr-hero { text-align: center; padding: 64px 0 22px; }
.pr-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5.4vw, 60px); line-height: 1.02; margin: 12px auto 0; max-width: 980px; letter-spacing: -.01em; }
.pr-hero h1 span { background: linear-gradient(135deg, #ffe08a, #ffb547 45%, #ff7a59); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-hero .lead { font-size: clamp(15px, 1.8vw, 18px); color: var(--muted); max-width: 680px; margin: 18px auto 0; }
.pr-cur { display: inline-flex; margin: 26px auto 0; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); max-width: 100%; }
.pr-methods { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 12px; color: var(--faint); font-size: 13px; }
.pr-active { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto 18px; padding: 14px 18px; color: #ffd27a; }
.pr-active > div { flex: 1; display: grid; gap: 2px; } .pr-active b { color: var(--text); } .pr-active .muted { font-size: 13px; }
.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 8px; }
@media (max-width: 980px) { .pr-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; } }
.pr-card { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: var(--r-xl); }
.pr-card.best { background: linear-gradient(165deg, rgba(255,198,92,.13), rgba(143,125,255,.08) 55%, rgba(255,255,255,.03)); box-shadow: var(--shadow), 0 0 0 1.5px rgba(255,198,92,.55), 0 30px 80px -40px rgba(255,181,71,.6); }
@media (min-width: 981px) { .pr-card.best { transform: translateY(-10px); } }
.pr-card.free { opacity: .92; }
.pr-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; color: #1a1205; background: linear-gradient(135deg, #ffe08a, #ffb547); box-shadow: 0 8px 22px -8px rgba(255,181,71,.9); z-index: 2; }
.pr-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--muted); }
.pr-card.best .pr-name, .pr-card:not(.free) .pr-name svg { color: #ffd27a; }
.pr-price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.pr-price b { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 44px); line-height: 1; letter-spacing: -.02em; }
.pr-price span { color: var(--muted); font-weight: 600; }
.pr-sub { color: var(--faint); font-size: 13px; margin-top: 6px; min-height: 19px; }
.pr-card.best .pr-sub { color: #ffd27a; }
.pr-note { font-size: 12px; color: var(--faint); margin-top: 6px; }
.pr-list { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 9px; flex: 1; align-content: start; }
.pr-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.pr-list li svg { flex: none; margin-top: 3px; color: var(--carried); }
.pr-list li.off { color: var(--faint); } .pr-list li.off svg { color: var(--faint); }
.pr-btn { width: 100%; padding: 12px 18px; }
.pr-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.pr-feats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 46px 0 18px; }
@media (max-width: 1100px) { .pr-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pr-feats { grid-template-columns: minmax(0, 1fr); } }
.pr-feats .ic { color: #ffd27a; }
.pr-compare { margin-top: 16px; }
.pr-tbl td, .pr-tbl th { padding: 11px 10px; }
.pr-tbl td:first-child { color: var(--text); }
.pr-th { color: #ffd27a; white-space: nowrap; } .pr-th svg { vertical-align: -2px; }
.pr-td { background: rgba(255,198,92,.05); }
.pr-yes { color: var(--carried); display: inline-flex; } .pr-no { color: var(--faint); }
.pr-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.pr-promo-f { display: flex; gap: 8px; flex-wrap: wrap; }
.pr-promo-f input { width: 190px; max-width: 100%; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); border-radius: 999px; padding: 9px 14px; outline: none; }
.pr-promo-f input:focus { border-color: rgba(255,198,92,.7); }
.pr-promo-msg { flex-basis: 100%; font-size: 13px; } .pr-promo-msg:empty { display: none; } .pr-promo-msg.ok { color: var(--carried); } .pr-promo-msg.err { color: var(--bad); }
.pr-faq details { padding: 14px 18px; margin-bottom: 10px; }
.pr-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; transition: transform .2s; }
.pr-faq details[open] summary::after { transform: rotate(45deg); }
.pr-faq details p { margin: 10px 0 2px; color: var(--muted); font-size: 14.5px; }
.foot a { text-decoration: underline; }

/* ---------- оформление, статус оплаты, тест, лимит ---------- */
.co-card { width: min(470px, 100%); padding: 18px 20px 20px; }
.co-plan { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255,198,92,.08); box-shadow: inset 0 0 0 1px rgba(255,198,92,.25); margin-bottom: 16px; }
.co-name { display: flex; align-items: center; gap: 7px; font-weight: 800; } .co-name svg { color: #ffd27a; }
.co-sum { text-align: right; display: grid; } .co-sum b { font-family: var(--display); font-size: 22px; } .co-sum span { font-size: 12px; color: var(--faint); }
.co-lab { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.co-in { width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); border-radius: 14px; padding: 12px 14px; outline: none; font-size: 15px; }
.co-in:focus { border-color: rgba(143,125,255,.75); background: rgba(255,255,255,.09); }
.co-methods { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 12.5px; margin: 10px 0 12px; }
.co-test { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--questionable); margin-bottom: 10px; cursor: pointer; }
.co-err { color: var(--bad); font-size: 13.5px; min-height: 18px; margin-bottom: 6px; }
.co-go { width: 100%; padding: 13px 18px; font-size: 15.5px; }
.co-fine { font-size: 12px; color: var(--faint); margin: 12px 0 0; text-align: center; } .co-fine a { text-decoration: underline; }
.ord { display: flex; align-items: center; gap: 18px; max-width: 820px; margin: 20px auto 0; }
.ord h2 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; }
.ord p { margin: 0; }
.ord .spinner { margin: 0; flex: none; }
.ord.good { box-shadow: var(--shadow), 0 0 0 1.5px rgba(62,224,143,.5); }
.ord.bad { box-shadow: var(--shadow), 0 0 0 1.5px rgba(255,84,104,.45); }
.ord-ic { flex: none; width: 66px; height: 66px; border-radius: 22px; display: grid; place-items: center; color: #1a1205; background: linear-gradient(135deg, #ffe08a, #ffb547); box-shadow: 0 14px 40px -12px rgba(255,181,71,.9); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ord-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 640px) { .ord { flex-direction: column; text-align: center; } .ord-act { justify-content: center; } }
.tc-card { max-width: 560px; margin: 60px auto; text-align: center; padding: 30px; }
.tc-card h2 { font-family: var(--display); margin: 10px 0 4px; }
.tc-sum { font-family: var(--display); font-size: 40px; font-weight: 800; margin: 6px 0 12px; }
.tc-card .ord-act { justify-content: center; }
.pw-card { position: relative; width: min(460px, 100%); text-align: center; padding: 28px 24px 22px; }
.pw-x { position: absolute; top: 12px; right: 12px; }
.pw-ic { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; color: #1a1205; background: linear-gradient(135deg, #ffe08a, #ffb547 60%, #ff8a5c); box-shadow: 0 16px 44px -14px rgba(255,181,71,.95); animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.pw-card h3 { font-family: var(--display); font-size: 20px; margin: 0 0 8px; line-height: 1.2; }
.pw-card p { margin: 0 0 6px; }
.pw-list { text-align: left; max-width: 300px; margin: 14px auto 18px; }
.pw-act { display: grid; gap: 8px; }
.pw-screen .ord-act { margin-top: 18px; }
.terms { max-width: 820px; margin: 30px auto; padding: 28px; }
.terms h2 { font-family: var(--display); margin: 8px 0 14px; }
.terms h4 { margin: 18px 0 6px; } .terms p { margin: 0; color: var(--muted); }

/* ---------- профиль: подписка и замок на сводке ---------- */
.me-bill { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-top: 16px; }
.me-bill.prem { box-shadow: var(--shadow), 0 0 0 1px rgba(255,198,92,.4); background: linear-gradient(160deg, rgba(255,198,92,.09), rgba(255,255,255,.03)); }
.mb-main { flex: 1 1 320px; display: grid; gap: 8px; }
.mb-tier { display: flex; align-items: center; gap: 8px; font-size: 16px; } .me-bill.prem .mb-tier svg { color: #ffd27a; }
.mb-q { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.mb-qbar { width: 120px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.mb-qbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.mb-renew { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.mb-hist summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.bh-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mb-side { display: grid; gap: 8px; justify-items: end; }
@media (max-width: 640px) { .mb-side { justify-items: stretch; width: 100%; } }
.me-promo input { width: 150px; padding: 7px 12px; font-size: 13px; }
.ins-lock { position: relative; display: block; border-radius: 14px; overflow: hidden; min-height: 96px; border: 1px dashed rgba(255,198,92,.4); }
.ins-fake { padding: 14px; display: grid; gap: 8px; filter: blur(3px); opacity: .5; }
.ins-fake i { display: block; height: 11px; border-radius: 6px; background: rgba(255,255,255,.16); } .ins-fake i:nth-child(2) { width: 82%; } .ins-fake i:nth-child(3) { width: 64%; }
.ins-lock-in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; text-align: center; font-size: 14px; color: #ffd27a; background: radial-gradient(closest-side, rgba(4,5,10,.6), transparent); }
.ins-lock:hover .ins-lock-in { color: #ffe3a6; }
.prem-tag { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; font-family: var(--font); color: #1a1205; background: linear-gradient(135deg, #ffe08a, #ffb547); }
.me-id img.prem { box-shadow: 0 0 0 2px #ffc65c, 0 0 22px rgba(255,198,92,.45); }

/* ---------- мобильная шапка: две строки, ничего не уезжает за край ---------- */
.ns-short { display: none; }
@media (max-width: 560px) {
  .nav-in { flex-wrap: wrap; row-gap: 8px; border-radius: 22px; padding: 9px 10px 9px 14px; }
  .logo { order: 1; }
  .nav-right { order: 2; margin-left: auto; }
  .nav-link { order: 3; flex: 1; text-align: center; }
  .ns-full { display: none; } .ns-short { display: inline; }
  .nav-steam { padding: 7px 12px; }
}

/* ---------- админка ---------- */
.nav-adm { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.nav-adm:hover { background: rgba(255,255,255,.1); }
@media (max-width: 760px) { .nav-adm span { display: none; } .nav-adm { padding: 8px 10px; } }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 14px; }
.adm-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--gold); }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; }
.adm-kpi b.s { font-size: 17px; }
.adm-kpi span { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.adm-kpi b { font-size: 24px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-kpi small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.adm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.adm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; }
.adm-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.adm-form label.wide, .adm-form .adm-btns { grid-column: 1 / -1; }
.adm-form input { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.25); color: var(--text); font: inherit; }
.adm-form input:focus { outline: none; border-color: rgba(255,198,92,.6); }
.adm-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-msg { margin-top: 10px; font-size: 14px; line-height: 1.5; }
.adm-msg.ok { color: var(--green, #7ee2a8); }
.adm-msg.err { color: var(--red, #ff7b7b); }
.adm-code { padding: 2px 7px; border-radius: 7px; background: rgba(255,198,92,.12); color: var(--gold); font-weight: 700; cursor: pointer; white-space: nowrap; }
.adm-code.copied { background: rgba(126,226,168,.25); color: #7ee2a8; }
.adm-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.adm-tabs .card-title { margin: 0; }
.adm-tbl td, .adm-tbl th { white-space: nowrap; }
.adm-tbl td.faint { white-space: normal; min-width: 140px; }
.adm-st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.08); color: var(--muted); }
.adm-st.paid { background: rgba(126,226,168,.15); color: #7ee2a8; }
.adm-st.pending { background: rgba(255,198,92,.15); color: var(--gold); }
.adm-st.failed, .adm-st.refunded { background: rgba(255,123,123,.15); color: #ff9b9b; }
.adm-user { margin-top: 12px; font-size: 14px; line-height: 1.6; }
@media (max-width: 560px) { .adm-form { grid-template-columns: 1fr; } }

/* пробный Premium из Telegram-бота */
.pr-trial { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 14px; padding: 10px 16px; border-radius: 14px; background: rgba(77,163,255,.12); border: 1px solid rgba(77,163,255,.35); color: var(--text); font-size: 14px; line-height: 1.45; }
.pr-trial:hover { background: rgba(77,163,255,.2); }
.pr-trial-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
.pr-trial-note:empty { display: none; }
.tg-trial { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 8px 14px; border-radius: 12px; background: rgba(77,163,255,.12); border: 1px solid rgba(77,163,255,.35); color: var(--text); font-size: 13.5px; line-height: 1.4; text-decoration: none; }
.tg-trial:hover { background: rgba(77,163,255,.2); }
.tg-trial b { color: #8cc4ff; }
.ql-tg { display: inline-flex; align-items: center; gap: 5px; color: #7cc0ff; font-weight: 700; border-bottom: 1px dashed rgba(124,192,255,.5); }
.ql-tg:hover { color: #a8d6ff; }
.pw-trial { margin-top: 14px; justify-content: center; }
.me-trial { margin-top: 10px; }
