@import url('/fonts/fonts.css');
:root {
  --bg: #070912; --bg2: #0c1020; --card: rgba(18, 22, 44, 0.72); --card2: rgba(26, 31, 60, 0.85); --line: rgba(255, 255, 255, 0.09); --line2: rgba(255, 255, 255, 0.16);
  --text: #eef2ff; --dim: #a5adcb; --mute: #6b7394; --cyan: #22d3ee; --violet: #a78bfa; --pink: #f472b6; --lime: #a3e635; --amber: #fbbf24; --red: #fb7185; --green: #4ade80;
  --grad: linear-gradient(120deg, #22d3ee 0%, #a78bfa 50%, #f472b6 100%); --r: 20px; --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --fd: 'Unbounded', 'Inter', system-ui, sans-serif; --fu: 'Inter', system-ui, sans-serif; --fm: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.55 var(--fu); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 35% at 15% 10%, rgba(34, 211, 238, 0.16), transparent 70%), radial-gradient(35% 30% at 90% 20%, rgba(167, 139, 250, 0.18), transparent 70%), radial-gradient(40% 35% at 50% 100%, rgba(244, 114, 182, 0.12), transparent 70%); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3%, -2%, 0) scale(1.05); } }
a { color: inherit; text-decoration: none; }
img, svg, canvas, iframe { max-width: 100%; }
h1, h2, h3 { font-family: var(--fd); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 68px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0 0 1em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--dim); } .mute { color: var(--mute); } .mono { font-family: var(--fm); }
.small { font-size: 14px; } .tiny { font-size: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.hide { display: none !important; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(7, 9, 18, 0.72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font: 900 20px var(--fd); }
.logo i { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; font-style: normal; box-shadow: 0 6px 24px -6px #a78bfa; }
.logo i::after { content: ''; width: 0; height: 0; border-left: 11px solid #0b1020; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--dim); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.top .sp { flex: 1; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--dim); padding: 6px 9px; font: 700 12px var(--fu); cursor: pointer; }
.lang button.on { background: rgba(255, 255, 255, 0.1); color: var(--text); }
#gsso-slot { min-width: 40px; }
@media (max-width: 860px) { .nav { display: none; } }

/* Кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.06); color: var(--text); font: 700 15px var(--fu); cursor: pointer; transition: .18s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-1px); }
.btn.pri { background: var(--grad); border: 0; color: #0b1020; box-shadow: 0 10px 30px -10px rgba(167, 139, 250, 0.8); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.big { padding: 16px 28px; font-size: 17px; border-radius: 16px; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.red { border-color: rgba(251, 113, 133, 0.5); color: #fecdd3; } .btn.green { border-color: rgba(74, 222, 128, 0.5); color: #bbf7d0; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
input, select, textarea { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(5, 7, 16, 0.6); color: var(--text); font: 500 15px var(--fu); outline: none; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); }
textarea { min-height: 90px; resize: vertical; }
label.f { display: block; margin-bottom: 14px; } label.f > span { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; font-weight: 600; }
.chk { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 6px 0; }
.chk input { width: 20px; height: 20px; accent-color: var(--violet); }
.hint { font-size: 12px; color: var(--mute); margin-top: 4px; }

/* Карточки */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.card.glow { position: relative; } .card.glow::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--dim); }
.pill.live { color: #fecdd3; border-color: rgba(251, 113, 133, 0.5); background: rgba(251, 113, 133, 0.12); }
.pill.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--mute); }
.dot.live { background: var(--green); box-shadow: 0 0 10px var(--green); } .dot.connecting { background: var(--amber); animation: pulse 1s infinite; } .dot.error, .dot.offline { background: var(--red); }
.badge { display: inline-block; padding: 2px 7px; border-radius: 6px; font: 800 11px var(--fu); color: #fff; }
.b-tiktok { background: #ff2d55; } .b-twitch { background: #9146ff; } .b-youtube { background: #ff0033; } .b-kick { background: #53fc18; color: #04120a; } .b-site { background: #22d3ee; color: #04121c; } .b-sim { background: #64748b; }

/* Герой */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--dim); max-width: 560px; }
.hero .stage { position: relative; height: 640px; }
.phone { position: absolute; width: 300px; height: 620px; left: 0; top: 0; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2a2f4a, #11142a); box-shadow: 0 40px 80px -30px #000, inset 0 0 0 2px rgba(255, 255, 255, 0.08); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #04060e; }
.phone::after { content: ''; position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #05060c; }
.monitor { position: absolute; right: 0; top: 110px; width: min(420px, 60%); aspect-ratio: 16/9; border-radius: 18px; padding: 9px; background: linear-gradient(160deg, #2a2f4a, #11142a); box-shadow: 0 40px 80px -30px #000; }
.monitor iframe { width: 100%; height: 100%; border: 0; border-radius: 11px; background: #04060e; }
.monitor .stand { position: absolute; left: 50%; bottom: -46px; width: 120px; height: 46px; transform: translateX(-50%); background: linear-gradient(#1a1e36, #0e1124); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.float-tag { position: absolute; padding: 10px 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line2); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } .hero .stage { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; } .phone { width: 260px; height: 540px; } }
@media (max-width: 520px) { .monitor { display: none; } .phone { left: 50%; transform: translateX(-50%); } .float-tag { display: none; } }
.stats-strip { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.stats-strip b { display: block; font: 900 28px var(--fd); }
.stats-strip span { color: var(--dim); font-size: 14px; }

/* Секции */
section { padding: 64px 0; }
.sec-head { max-width: 720px; margin-bottom: 30px; }
.kicker { font: 800 13px var(--fu); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.step { position: relative; padding-top: 52px; }
.step .n { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #0b1020; display: grid; place-items: center; font: 900 18px var(--fd); }
.plat { display: flex; align-items: center; gap: 14px; }
.plat .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 900 16px var(--fd); color: #fff; flex: none; }

/* Каталог */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters button { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--dim); font: 700 14px var(--fu); cursor: pointer; }
.filters button.on { background: rgba(255, 255, 255, 0.1); color: var(--text); border-color: var(--line2); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gcard { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--card); transition: .2s; display: flex; flex-direction: column; min-height: 230px; }
.gcard:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: 0 30px 60px -30px var(--c, #a78bfa); }
.gcard .art { height: 120px; display: grid; place-items: center; font-size: 62px; position: relative; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.gcard .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: .3s; }
.gcard:hover .art img { transform: scale(1.05); }
.gcard .art .em { position: relative; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .5)); }
.gcard .art img ~ .em { position: absolute; left: 12px; bottom: 8px; font-size: 30px; }
.gcard .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.gcard h3 { font-size: 17px; margin-bottom: 6px; }
.gcard p { color: var(--dim); font-size: 14px; margin: 0; flex: 1; }
.gcard .tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--dim); }
.tag.ai { background: rgba(192, 132, 252, .18); color: #e9d5ff; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; background: var(--card); margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: '+'; color: var(--violet); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { margin: 12px 0 0; color: var(--dim); }

footer { border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Кабинет */
.app { display: grid; grid-template-columns: 250px 1fr; gap: 22px; padding: 26px 0 60px; align-items: start; }
.side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 6px; }
.side a, .side button.lnk { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--dim); font-weight: 700; font-size: 15px; background: none; border: 0; text-align: left; cursor: pointer; width: 100%; font-family: var(--fu); }
.side a:hover, .side a.on { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.side .sep { height: 1px; background: var(--line); margin: 8px 0; }
.side .cap { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 6px 12px 2px; }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } .side { position: static; flex-direction: row; overflow-x: auto; } .side a { white-space: nowrap; } .side .sep, .side .cap { display: none; } }
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h2 { margin: 0; font-size: 28px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--mute); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.025); }
.scroll-x { overflow-x: auto; }
.kpi { padding: 18px; } .kpi b { display: block; font: 900 30px var(--fd); } .kpi span { color: var(--dim); font-size: 13px; font-weight: 600; }
.copy { display: flex; gap: 8px; } .copy input { font-family: var(--fm); font-size: 13px; }
.feed { max-height: 420px; overflow: auto; font-size: 14px; }
.feed div { padding: 6px 4px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.feed .t { color: var(--mute); font-family: var(--fm); font-size: 12px; width: 58px; flex: none; }
.preview-wrap { position: relative; background: #000; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.preview-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.preview-wrap.v { aspect-ratio: 9/16; max-height: 78vh; margin: 0 auto; }
.preview-wrap.h { aspect-ratio: 16/9; }
.gamepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gamepick button { padding: 14px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font: 700 14px var(--fu); display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; transition: .15s; }
.gamepick button .e { font-size: 32px; }
.gamepick button.on { border-color: var(--violet); background: rgba(167, 139, 250, 0.14); box-shadow: 0 0 0 1px var(--violet); }
.gamepick button:hover { border-color: var(--line2); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(30px); opacity: 0; background: var(--card2); border: 1px solid var(--line2); padding: 12px 18px; border-radius: 14px; font-weight: 700; z-index: 100; transition: .25s; pointer-events: none; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(251, 113, 133, 0.6); }
.chart { width: 100%; height: 220px; display: block; }
.empty { text-align: center; padding: 40px 20px; color: var(--dim); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--dim); padding: 10px 14px; font: 700 14px var(--fu); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--violet); }
.banner-ann { background: linear-gradient(90deg, rgba(34, 211, 238, .15), rgba(167, 139, 250, .15)); border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14px; text-align: center; font-weight: 600; }

/* Страница канала */
.canvas-box { position: relative; background: #05070f; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; touch-action: none; height: min(78vh, 900px); cursor: crosshair; }
.canvas-box canvas { position: absolute; left: 0; top: 0; image-rendering: pixelated; }
.canvas-hud { position: absolute; left: 12px; top: 12px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.canvas-hud .pill { pointer-events: auto; background: rgba(7, 9, 18, 0.85); }
.palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.palette button { aspect-ratio: 1; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .15); cursor: pointer; font: 800 13px var(--fm); color: #0b1020; }
.palette button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); transform: scale(1.05); }
.lb li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lb { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.lb li::before { counter-increment: n; content: counter(n); color: var(--mute); font-family: var(--fm); width: 24px; flex: none; }
.lb li span:first-of-type { flex: 1; }
