/* Lahma Boost — сайт в стиле приложения «Варп»: чёрный, янтарь и бирюза,
   шестигранный тоннель. Шрифты те же, что в программе. */
:root {
  --ink: #050403;
  --ink-2: #0b0907;
  --surface: rgba(22, 17, 13, 0.78);
  --surface-2: rgba(32, 25, 20, 0.86);
  --line: rgba(255, 214, 180, 0.11);
  --line-2: rgba(255, 214, 180, 0.22);
  --text: #fff3e8;
  --text-2: #cdb8a6;
  --text-3: #8a7666;
  --ember: #ff6a1f;
  --ember-2: #ffb23d;
  --hot: #ff3d2e;
  --cyan: #3ce7ff;
  --mint: #53ffb8;
  --good: #53ffb8;
  --glow: rgba(255, 106, 31, 0.45);
  --grad: linear-gradient(135deg, #ffc24a 0%, #ff6a1f 60%, #ff3d2e 100%);
  --f-x: "Dela Gothic One", "Arial Black", sans-serif;
  --f-t: "Tektur", "Segoe UI", sans-serif;
  --f-b: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --f-m: "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --noise: 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='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .85  0 0 0 0 .7  0 0 0 .5 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--text); font-family: var(--f-b); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--ember-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
.wrap { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }
.todo { color: var(--ember-2); }
.good, .mint { color: var(--mint); }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: rgba(255, 106, 31, 0.4); }

/* Фон: шестигранная сетка и зерно (на главной под первым экраном) */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(255, 106, 31, 0.16), transparent 70%),
    radial-gradient(700px 500px at -10% 40%, rgba(60, 231, 255, 0.06), transparent 70%),
    var(--ink); }
.bg::before { content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'><path d='M28 0 56 16v32L28 64 0 48V16Z M28 64v33' fill='none' stroke='%23ffd6b4' stroke-opacity='.05' stroke-width='1'/></svg>");
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%); }
.bg::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: 0.06; mix-blend-mode: overlay; }

/* Кнопки */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer; font-family: var(--f-t); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #1d0b02; background: var(--grad); box-shadow: 0 16px 36px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45); filter: brightness(1.06); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-lg { height: 58px; padding: 0 34px; font-size: 15px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 12.5px; }
.btn-ghost { color: var(--text); background: rgba(255, 240, 228, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 150, 80, 0.6), 0 12px 30px -16px var(--glow); }
.btn-shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); animation: shine 4s var(--ease) infinite; }
@keyframes shine { 0%, 55% { left: -70%; } 100% { left: 130%; } }

/* Шапка: логотип, меню-островок как в приложении */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.top.solid, body:not(.page-home) .top { background: rgba(5, 4, 3, 0.72); backdrop-filter: blur(18px) saturate(1.3); border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 14px; height: 72px; max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo svg { width: 30px; height: 30px; filter: drop-shadow(0 4px 14px var(--glow)); }
.logo-name { font-family: var(--f-t); font-weight: 700; letter-spacing: 0.3em; font-size: 16px; }
.logo-sub { font-family: var(--f-m); font-size: 12px; color: var(--text-3); }
.island { display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(14, 11, 9, 0.7); backdrop-filter: blur(14px); }
.top-nav { margin: 0 auto; }
.island a, .island button { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-family: var(--f-t); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); text-decoration: none !important;
  transition: color 0.2s, background 0.25s var(--ease), box-shadow 0.25s; white-space: nowrap; }
.island a:hover, .island button:hover { color: var(--text); }
.island a.on, .island button.on { color: #1d0b02; background: var(--grad); box-shadow: 0 8px 22px -10px var(--glow); }
.top-login { font-family: var(--f-t); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); padding: 0 6px; }
.top-login:hover, .top-login.on { color: var(--text); text-decoration: none; }

/* ---------- Первый экран ---------- */
.stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; background: var(--ink); }
.stage-art { position: absolute; inset: 0; z-index: -3; }
.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 7s linear; filter: saturate(0.95) contrast(1.06) brightness(0.72); }
.art.on { opacity: 1; transform: scale(1); }
.art[data-art="cs2"] { object-position: 82% 30%; }
.art[data-art="pubg"] { object-position: 60% 40%; }
.art[data-art="dota2"] { object-position: 55% 30%; filter: saturate(0.8) contrast(1.08) brightness(0.55) hue-rotate(-8deg); }
.warp { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; mix-blend-mode: screen; opacity: 0.9; }
.stage-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.96) 0%, rgba(5, 4, 3, 0.88) 28%, rgba(5, 4, 3, 0.35) 58%, rgba(5, 4, 3, 0.15) 75%, rgba(5, 4, 3, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 4, 3, 0.7) 0%, transparent 18%, transparent 62%, var(--ink) 100%); }
.stage-shade::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: 0.09; mix-blend-mode: overlay;
  background-color: transparent; }
.stage-in { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: end; padding-top: 120px; padding-bottom: 54px; max-width: 1400px; }
.stage-copy { max-width: 660px; }
.label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-t); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); }
.label i { width: 28px; height: 2px; background: var(--grad); box-shadow: 0 0 10px var(--glow); }
.chips { display: flex; gap: 8px; margin: 22px 0 18px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 6px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(10, 8, 6, 0.62); backdrop-filter: blur(10px); color: var(--text-2);
  font-family: var(--f-t); font-weight: 600; font-size: 14px; transition: all 0.3s var(--ease); }
.chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 1px solid var(--line-2); filter: saturate(0.8); }
.chip:hover { color: var(--text); border-color: rgba(255, 178, 61, 0.5); }
.chip.on { color: var(--text); border-color: rgba(60, 231, 255, 0.65); box-shadow: 0 0 0 3px rgba(60, 231, 255, 0.12), 0 10px 30px -12px rgba(60, 231, 255, 0.5); }
.chip.on img { filter: none; border-color: var(--cyan); }
.stage-title { position: relative; display: grid; margin: 0; font-family: var(--f-x); font-weight: 400; text-transform: uppercase;
  font-size: clamp(54px, 7.4vw, 118px); line-height: 0.9; letter-spacing: -0.01em; }
.stage-title .t { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); pointer-events: none;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.6); }
.stage-title .t.on { opacity: 1; transform: none; }
.stage-title em { font-style: normal; color: var(--cyan); text-shadow: 0 0 40px rgba(60, 231, 255, 0.45); }
.stage-title small { display: block; margin-top: 10px; font-family: var(--f-t); font-weight: 600; font-size: 0.24em; letter-spacing: 0.4em; color: var(--ember-2); }
.stage-ping { display: flex; align-items: flex-end; gap: 18px; margin-top: 26px; }
.stage-ping > b { white-space: nowrap; font-family: var(--f-x); font-weight: 400; font-size: clamp(56px, 6.4vw, 96px); line-height: 0.82; color: var(--mint);
  text-shadow: 0 0 46px rgba(83, 255, 184, 0.4); letter-spacing: -0.02em; }
.stage-ping span { display: block; font-family: var(--f-x); font-size: 24px; line-height: 1; }
.stage-ping p { margin: 8px 0 0; max-width: 330px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.stage-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.stage-note { margin: 16px 0 0; font-family: var(--f-m); font-size: 12px; color: var(--text-3); }

/* Кнопка «Погнали» — как в приложении */
.go { position: relative; display: inline-flex; align-items: center; gap: 16px; height: 76px; padding: 0 10px 0 28px; border-radius: 999px; color: var(--text); text-decoration: none !important;
  background: linear-gradient(180deg, rgba(20, 16, 13, 0.92), rgba(9, 7, 5, 0.92)); border: 1px solid rgba(255, 140, 70, 0.5);
  box-shadow: 0 0 0 6px rgba(255, 106, 31, 0.08), 0 20px 60px -18px var(--glow); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.go:hover { transform: translateY(-2px); box-shadow: 0 0 0 8px rgba(255, 106, 31, 0.12), 0 26px 70px -16px var(--glow); }
.go-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px var(--ember); animation: pulse 1.6s ease-in-out infinite; }
.go-text b { display: block; font-family: var(--f-x); font-weight: 400; font-size: 27px; line-height: 1; text-transform: uppercase; }
.go-text small { display: block; margin-top: 5px; font-family: var(--f-m); font-size: 12px; color: var(--text-3); }
.go-ring { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #1d0b02; background: var(--grad); box-shadow: 0 0 24px var(--glow); margin-left: 6px; }
.go-ring svg { width: 24px; height: 24px; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

/* Карточки справа — как плашки над тоннелем в программе */
.hud { display: grid; gap: 12px; align-self: center; margin-top: 80px; }
.hud-card { padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(10, 8, 6, 0.72); backdrop-filter: blur(14px); }
.hud-card small { display: block; font-family: var(--f-t); font-weight: 600; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.hud-card b { display: block; margin: 4px 0 2px; font-family: var(--f-x); font-weight: 400; font-size: 22px; text-transform: uppercase; }
.hud-card > span { font-size: 13px; color: var(--text-2); }
.hud-route { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(10, 8, 6, 0.72); backdrop-filter: blur(14px); }
.hud-node { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hud-node i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--mint); box-shadow: 0 0 12px rgba(83, 255, 184, 0.6); margin-bottom: 6px; }
.hud-node.end { align-items: flex-end; }
.hud-node.end i { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.hud-node b { font-size: 13.5px; }
.hud-node small { font-family: var(--f-m); font-size: 11px; color: var(--text-3); }
.hud-line { position: relative; flex: 1; height: 3px; border-radius: 3px; margin-top: -26px; background: linear-gradient(90deg, var(--mint), var(--cyan)); box-shadow: 0 0 12px rgba(60, 231, 255, 0.5); overflow: hidden; }
.hud-line span { position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, #fff, transparent); animation: flow 1.6s linear infinite; }
@keyframes flow { from { left: -30%; } to { left: 100%; } }

/* Табло маршрутов внизу первого экрана */
.board { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(5, 4, 3, 0.8); backdrop-filter: blur(8px); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.board-track { display: flex; width: max-content; animation: board 48s linear infinite; }
.board-set { display: flex; }
.board span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; font-family: var(--f-m); font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
  border-right: 1px solid var(--line); }
.board b { color: var(--text); font-weight: 500; }
.board i { font-style: normal; font-size: 11px; color: var(--mint); }
.board i::before { content: "● "; }
@keyframes board { to { transform: translateX(-50%); } }

/* ---------- Разделы ---------- */
.sec { position: relative; padding: 120px 0 20px; }
h1, h2 { font-family: var(--f-x); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1; margin: 0; text-transform: uppercase; }
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 26px; row-gap: 18px; align-items: start; max-width: 980px; margin-bottom: 54px; }
.sec-head > p { grid-column: 2; margin: 0; max-width: 640px; font-size: 17px; color: var(--text-2); }
.sec-head.center { grid-template-columns: 1fr; justify-items: center; text-align: center; margin: 0 auto 50px; }
.sec-head.center > p { grid-column: 1; }
.num { font-family: var(--f-m); font-size: 13px; color: var(--ember-2); padding: 7px 10px; border: 1px solid rgba(255, 178, 61, 0.35); border-radius: 8px; line-height: 1; margin-top: 8px; }
.sub { color: var(--text-2); text-align: center; max-width: 640px; margin: 14px auto 34px; font-size: 16.5px; }

/* Маршрут */
.map { position: relative; margin: 0 auto; max-width: 1100px; aspect-ratio: 1000 / 340; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.p-old { fill: none; stroke: rgba(255, 90, 70, 0.55); stroke-width: 2.5; stroke-dasharray: 3 9; stroke-linecap: round; stroke-linejoin: round; }
.p-new { fill: none; stroke: url(#gLahma); stroke-width: 4.5; stroke-linecap: round; }
.hops circle { fill: var(--ink); stroke: rgba(255, 90, 70, 0.55); stroke-width: 2; }
.pk-old { fill: #ff6a5a; }
.pk-new { fill: #fff; filter: drop-shadow(0 0 6px var(--cyan)); }
.node circle { fill: var(--ink); stroke: var(--mint); stroke-width: 3; }
.node .core { fill: var(--mint); stroke: none; }
.node.lahma polygon { fill: var(--ink); stroke: var(--ember); stroke-width: 3; filter: drop-shadow(0 0 10px var(--glow)); }
.node.lahma .core { fill: var(--ember-2); }
.node.end circle { stroke: var(--cyan); }
.node.end .core { fill: var(--cyan); }
.map-tag { position: absolute; display: flex; flex-direction: column; gap: 2px; transform: translate(-50%, 0); text-align: center; white-space: nowrap; }
.map-tag b { font-family: var(--f-t); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.map-tag span { font-family: var(--f-m); font-size: 11.5px; color: var(--text-3); }
.t-you { left: 7%; top: 61%; }
.t-end { left: 93%; top: 61%; }
.t-old { left: 50%; top: -9%; }
.t-old b { font-family: var(--f-x); font-weight: 400; font-size: 26px; color: #ff7a6a; }
.t-lahma { left: 60%; top: 85%; }
.t-lahma b { color: var(--ember-2); }
.t-new { left: 33%; top: 92%; }
.t-new b { font-family: var(--f-x); font-weight: 400; font-size: 30px; color: var(--mint); text-shadow: 0 0 30px rgba(83, 255, 184, 0.4); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 110px; border-top: 1px solid var(--line); }
.trio > div { padding: 30px 30px 10px 0; }
.trio > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.trio b { display: block; font-family: var(--f-t); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.trio b::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.trio p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.nodes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 46px; padding: 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.nodes-label { font-family: var(--f-t); font-weight: 600; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); padding: 0 10px; }
.node-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; background: rgba(255, 240, 228, 0.03); border: 1px solid var(--line); flex: 1 1 280px; min-width: 0; }
.node-row b { font-size: 14.5px; white-space: nowrap; }
.node-sub { font-size: 12.5px; color: var(--text-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.srv-flag { display: grid; place-items: center; width: 40px; height: 32px; flex: none; }
.flag { width: 28px; height: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4)); }
.flag-text { font-family: var(--f-m); font-size: 12px; color: var(--ember-2); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: pulse 2s ease-in-out infinite; flex: none; }

/* Приложение */
.app::before { content: ""; position: absolute; left: 50%; top: 260px; width: min(1100px, 90vw); height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(60, 231, 255, 0.14), transparent); pointer-events: none; z-index: -1; }
.showcase { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.screen { position: relative; margin: 0; width: 100%; max-width: 1120px; display: grid; border-radius: 18px; overflow: hidden; background: #050403;
  border: 1px solid var(--line-2); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 30px 90px -50px rgba(60, 231, 255, 0.5);
  transform: perspective(1800px) rotateX(9deg) scale(0.96); transform-origin: 50% 0; transition: transform 1.2s var(--ease); }
.showcase.in .screen { transform: none; }
.shot { grid-area: 1 / 1; width: 100%; opacity: 0; transition: opacity 0.55s var(--ease); align-self: start; }
.shot.on { opacity: 1; }
.captions { display: grid; max-width: 640px; text-align: center; }
.cap { grid-area: 1 / 1; margin: 0; color: var(--text-2); opacity: 0; transition: opacity 0.4s; }
.cap.on { opacity: 1; }

/* Игры — колода раскрывающихся панелей */
.deck { display: flex; gap: 12px; height: 520px; }
.card-game { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; border-radius: 24px; overflow: hidden;
  color: var(--text); text-decoration: none !important; border: 1px solid var(--line-2); isolation: isolate;
  transition: flex-grow 0.7s var(--ease), border-color 0.4s, box-shadow 0.5s; background: #0c0a08; }
.card-game::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--art) center 20% / cover no-repeat; filter: saturate(0.85) brightness(0.75); transform: scale(1.04); transition: transform 1s var(--ease), filter 0.6s; }
.card-game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 4, 3, 0.35) 0%, rgba(5, 4, 3, 0) 22%, rgba(5, 4, 3, 0.15) 45%, rgba(5, 4, 3, 0.96) 78%); }
.card-game.open, .card-game:hover, .card-game:focus-visible { flex-grow: 2.6; border-color: rgba(255, 140, 70, 0.6); box-shadow: 0 30px 70px -36px var(--glow); }
.deck:hover .card-game.open:not(:hover) { flex-grow: 1; border-color: var(--line-2); box-shadow: none; }
.card-game:hover::before, .card-game.open::before { transform: scale(1); filter: saturate(1) brightness(0.9); }
.cg-tag { align-self: flex-start; padding: 5px 11px; border-radius: 999px; font-family: var(--f-t); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(5, 4, 3, 0.65); border: 1px solid var(--line-2); color: var(--text-2); margin-bottom: auto; }
.card-game b { font-family: var(--f-x); font-weight: 400; font-size: 18px; line-height: 1.08; text-transform: uppercase; transition: font-size 0.4s var(--ease); }
.card-game.open b, .card-game:hover b { font-size: 26px; }
.deck:hover .card-game.open:not(:hover) b { font-size: 18px; }
.card-game b small { display: block; margin-top: 6px; font-family: var(--f-t); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; color: var(--ember-2); }
.cg-text { max-height: 0; opacity: 0; overflow: hidden; color: var(--text-2); font-size: 15px; transition: max-height 0.6s var(--ease), opacity 0.4s, margin 0.4s; max-width: 340px; }
.card-game.open .cg-text, .card-game:hover .cg-text { max-height: 120px; opacity: 1; margin-top: 10px; }
.deck:hover .card-game.open:not(:hover) .cg-text { max-height: 0; opacity: 0; margin-top: 0; }
.card-game.discord { background: radial-gradient(120% 80% at 50% 0%, rgba(88, 101, 242, 0.55), rgba(12, 10, 8, 1) 70%); }
.card-game.discord::before { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' fill-opacity='.9' d='M19.3 5.3A17 17 0 0 0 15 4l-.5 1a15.5 15.5 0 0 0-5 0L9 4a17 17 0 0 0-4.3 1.3C2 9.3 1.3 13.2 1.6 17a17 17 0 0 0 5.2 2.6l1.1-1.8a11 11 0 0 1-1.7-.8l.4-.3a12.2 12.2 0 0 0 10.8 0l.4.3-1.7.8 1.1 1.8a17 17 0 0 0 5.2-2.6c.4-4.4-.7-8.3-3.1-11.7ZM8.7 14.8c-1 0-1.9-1-1.9-2.1s.8-2.1 1.9-2.1 1.9 1 1.9 2.1-.8 2.1-1.9 2.1Zm6.6 0c-1 0-1.9-1-1.9-2.1s.8-2.1 1.9-2.1 1.9 1 1.9 2.1-.8 2.1-1.9 2.1Z'/></svg>") 50% 34% / 38% no-repeat;
  filter: drop-shadow(0 10px 30px rgba(88, 101, 242, 0.8)); }

/* Старт — линия маршрута */
.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; position: relative; counter-reset: s; }
.track::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 13px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--mint), var(--cyan)); box-shadow: 0 0 16px rgba(60, 231, 255, 0.45); }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; counter-increment: s; }
.track i { position: relative; z-index: 1; width: 29px; height: 29px; border-radius: 50%; background: var(--ink); border: 3px solid var(--mint); box-shadow: 0 0 16px rgba(83, 255, 184, 0.5); margin-bottom: 14px; }
.track li.end i { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 24px var(--cyan); }
.track b { font-family: var(--f-x); font-weight: 400; font-size: 22px; text-transform: uppercase; }
.track b::before { content: "0" counter(s) " "; font-family: var(--f-m); font-size: 12px; color: var(--ember-2); vertical-align: middle; margin-right: 4px; }
.track span { font-size: 14.5px; color: var(--text-2); max-width: 250px; }

/* Тариф — посадочный талон */
.passes { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 270px; width: 100%; max-width: 900px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(40, 30, 23, 0.95), rgba(14, 11, 9, 0.98)); border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.95); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pass.hot { border-color: rgba(255, 140, 70, 0.55); box-shadow: 0 40px 100px -40px var(--glow); }
.pass:hover { transform: translateY(-4px) rotate(-0.3deg); }
.pass-main { padding: 30px 34px; }
.pass-top { display: flex; justify-content: space-between; font-family: var(--f-t); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.pass-top span:first-child { color: var(--ember-2); }
.pass-route { display: flex; align-items: center; gap: 22px; margin: 22px 0 24px; }
.pass-route > div { display: flex; flex-direction: column; }
.pass-route .to { text-align: right; }
.pass-route small, .pass-grid small, .pass-stub small { font-family: var(--f-t); font-weight: 600; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.pass-route b { font-family: var(--f-x); font-weight: 400; font-size: 64px; line-height: 0.95; }
.pass-route .to b { color: var(--cyan); text-shadow: 0 0 30px rgba(60, 231, 255, 0.4); }
.pass-route span { font-size: 14px; color: var(--text-2); }
.pass-route svg { flex: 1; height: 24px; color: var(--ember-2); min-width: 60px; }
.pass-grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 14px 20px; padding: 18px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.pass-grid b { display: block; margin-top: 3px; font-weight: 600; font-size: 15px; }
.pass-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 18px 0 0; padding: 0; }
.pass-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-2); }
.pass-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pass-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px 26px; text-align: center;
  border-left: 2px dashed rgba(255, 214, 180, 0.22); background: radial-gradient(120% 70% at 50% 0%, rgba(255, 106, 31, 0.16), transparent 70%); border-radius: 0 26px 26px 0; }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-2); }
.pass-stub::before { top: -15px; clip-path: inset(50% 0 0 0); }
.pass-stub::after { bottom: -15px; clip-path: inset(0 0 50% 0); }
.pass-price { font-family: var(--f-x); font-weight: 400; font-size: 54px; line-height: 1; margin-top: 4px; }
.pass-sub { margin-bottom: 16px; }
.pass-stub .btn { width: 100%; }
.pass-tag { position: absolute; top: 18px; padding: 5px 11px; border-radius: 999px; font-family: var(--f-t); font-weight: 600; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #1d0b02; background: var(--grad); }
.pass-code { display: block; width: 100%; height: 34px; margin-top: 18px; opacity: 0.55;
  background: repeating-linear-gradient(90deg, var(--text-2) 0 2px, transparent 2px 5px, var(--text-2) 5px 6px, transparent 6px 9px, var(--text-2) 9px 12px, transparent 12px 14px); }

/* Вопросы */
.faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 60px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .num { display: inline-block; margin-bottom: 18px; }
.faq-side p { color: var(--text-2); margin: 18px 0 0; }
details { border-bottom: 1px solid var(--line); transition: background 0.3s; }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 22px 44px 22px 4px; font-weight: 600; font-size: 18px; list-style: none; position: relative; transition: color 0.2s; }
summary:hover { color: var(--ember-2); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ember-2), var(--ember-2)) center / 14px 2px no-repeat, linear-gradient(var(--ember-2), var(--ember-2)) center / 2px 14px no-repeat; transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 44px 24px 4px; color: var(--text-2); }

/* Финал */
.finale { position: relative; margin-top: 130px; padding: 150px 0 120px; overflow: hidden; isolation: isolate; text-align: center; }
.finale-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(0.8) brightness(0.45); }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(5, 4, 3, 0.25) 30%, rgba(5, 4, 3, 0.35) 70%, var(--ink) 100%), radial-gradient(60% 70% at 50% 50%, rgba(255, 106, 31, 0.22), transparent 70%); }
.finale h2 { font-size: clamp(36px, 5.6vw, 80px); }
.finale p { color: var(--text-2); font-size: 17px; margin: 18px 0 32px; }

/* Документы */
.doc { padding: 130px 28px 80px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 12px; text-transform: uppercase; }
.doc-meta { color: var(--text-3); font-family: var(--f-m); font-size: 12px; margin: 0 0 34px; }
.doc h2 { font-family: var(--f-b); font-weight: 700; text-transform: none; font-size: 21px; letter-spacing: 0; line-height: 1.3; margin: 38px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.card { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px); }
.card b { font-weight: 700; font-size: 16.5px; }
.card p { margin: 10px 0 0; }
.muted { color: var(--text-3); }

/* Личный кабинет */
.acc { padding: 120px 28px 80px; max-width: 1000px; }
.acc-loading { display: grid; place-items: center; min-height: 40vh; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 228, 205, 0.15); border-top-color: var(--ember); animation: rot 0.8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.auth { position: relative; max-width: 450px; margin: 20px auto; padding: 38px; border-radius: 28px; border: 1px solid var(--line-2); background: var(--surface-2); backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 30px 80px -60px var(--glow); }
.auth h1 { font-size: 32px; margin: 0 0 10px; text-transform: uppercase; line-height: 1; }
.auth .lead, .lead { font-size: 15.5px; color: var(--text-2); margin: 0 0 24px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--f-t); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.input { height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(5, 4, 3, 0.7); color: var(--text);
  font: inherit; font-size: 15.5px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.input:focus { border-color: rgba(60, 231, 255, 0.6); box-shadow: 0 0 0 4px rgba(60, 231, 255, 0.12); }
.input.code { font-family: var(--f-m); font-size: 24px; letter-spacing: 0.35em; text-align: center; }
.err { min-height: 20px; color: #ff8a7a; font-size: 14px; margin: 4px 0 12px; }
.auth .btn { width: 100%; }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--text-3); }
.links button { background: none; border: 0; padding: 0; color: var(--ember-2); font: inherit; cursor: pointer; }
.links button:hover { text-decoration: underline; }
.links button:disabled { color: var(--text-3); text-decoration: none; cursor: default; }
.cab-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.avatar { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-x); font-size: 24px; color: #1d0b02; background: var(--grad); box-shadow: 0 14px 30px -12px var(--glow); }
.cab-head h1 { font-size: 28px; margin: 0; text-transform: uppercase; line-height: 1.05; word-break: break-word; }
.cab-head p { margin: 4px 0 0; color: var(--text-3); font-size: 14px; }
.cab-head .btn { margin-left: auto; }
.cab-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.panel { padding: 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(12px); }
.panel h3 { margin: 0 0 14px; font-family: var(--f-t); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.subbox .state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-m); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.subbox .state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.subbox.on .state { color: var(--mint); }
.subbox.off .state { color: #ff8a7a; }
.days { margin-top: 12px; font-family: var(--f-x); font-size: 60px; line-height: 1; }
.days small { font-family: var(--f-b); font-weight: 500; font-size: 17px; color: var(--text-2); margin-left: 6px; }
.until { color: var(--text-3); font-size: 14px; margin-top: 6px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); margin-top: 16px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--mint), var(--cyan)); box-shadow: 0 0 14px rgba(60, 231, 255, 0.5); }
.buy { display: flex; flex-direction: column; gap: 10px; }
.buy-opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(5, 4, 3, 0.5);
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); text-align: left; color: var(--text); font: inherit; width: 100%; }
.buy-opt:hover { transform: translateY(-2px); border-color: rgba(255, 150, 80, 0.55); }
.buy-opt.sel { border-color: rgba(255, 140, 70, 0.85); background: rgba(255, 106, 31, 0.1); box-shadow: 0 16px 34px -20px var(--glow); }
.buy-opt .r { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.buy-opt.sel .r { border-color: var(--ember); }
.buy-opt.sel .r::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.buy-opt .n { flex: 1; font-weight: 600; }
.buy-opt .n small { display: block; font-weight: 400; color: var(--text-3); font-size: 13px; }
.buy-opt .p { font-family: var(--f-x); font-size: 20px; }
.buy .btn { margin-top: 8px; }
.note { margin-top: 12px; font-size: 13.5px; color: var(--text-3); }
.note.warn { color: var(--ember-2); }
.ok-box { margin-bottom: 18px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(83, 255, 184, 0.35); background: rgba(83, 255, 184, 0.07); color: var(--text); }
.wait-box { margin-bottom: 18px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); display: flex; gap: 12px; align-items: center; }
.wait-box .spin { width: 20px; height: 20px; border-width: 2px; }
.dl { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dl p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.club-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0 0; font-size: 14.5px; }
.club-kv dt { color: var(--text-3); }
.club-kv dd { margin: 0; color: var(--text); font-weight: 600; }
.pc-count { font-size: 14.5px; color: var(--text-2); margin-bottom: 12px; }
.pc-count b { font-family: var(--f-x); font-weight: 400; font-size: 28px; color: var(--mint); margin-right: 4px; }
.pcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pc { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 4, 3, 0.45); min-width: 0; }
.pc i { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: #4a3d33; }
.pc.on i { background: var(--mint); box-shadow: 0 0 10px rgba(83, 255, 184, 0.7); }
.pc.idle i { background: var(--cyan); box-shadow: 0 0 10px rgba(60, 231, 255, 0.6); }
.pc.free { border-style: dashed; opacity: 0.6; }
.pc .grow { min-width: 0; }
.pc b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc span { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* Поддержка */
.support { padding: 130px 28px 80px; }
.support-head { text-align: center; margin-bottom: 34px; }
.support-head h1 { font-size: clamp(36px, 5vw, 64px); margin: 0 0 12px; text-transform: uppercase; line-height: 1; }
.support-head .lead { margin: 0 auto; max-width: 560px; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; align-items: start; }
.support-form { max-width: none; margin: 0; }
.support-form textarea.input { height: auto; min-height: 170px; padding: 14px 18px; line-height: 1.55; resize: vertical; font: inherit; }
.support-form select.input { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #cdb8a6 50%), linear-gradient(135deg, #cdb8a6 50%, transparent 50%);
  background-position: calc(100% - 24px) 23px, calc(100% - 18px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.support-form select.input option { background: #14100d; color: var(--text); }
.support-count { align-self: flex-end; font-size: 12px; color: var(--text-3); font-family: var(--f-m); }
.support-me { margin: -4px 0 16px; font-size: 14px; color: var(--text-2); }
.support-note { margin: 12px 0 0; font-size: 12.5px; color: var(--text-3); text-align: center; }
.support-note a { color: inherit; text-decoration: underline; }
.support-side { display: grid; gap: 16px; }
.support-side a { color: var(--ember-2); }
.support-done { text-align: center; padding: 18px 4px; }
.support-done h2 { font-size: 28px; margin: 14px 0 8px; }
.support-done p { color: var(--text-2); margin: 0 0 22px; }
.support-done .btn { width: auto; }
.support-check { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 30px; color: #1d0b02; background: var(--grad); box-shadow: 0 18px 40px -16px var(--glow); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Подвал */
.foot { position: relative; border-top: 1px solid var(--line); padding: 54px 0 40px; margin-top: 80px; background: rgba(5, 4, 3, 0.85); }
.page-home .foot { margin-top: 0; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand p { color: var(--text-3); font-size: 13.5px; margin: 14px 0 0; }
.foot-brand .logo svg { width: 26px; height: 26px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.foot-cols b { font-family: var(--f-t); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.foot-cols a { color: var(--text-2); }
.foot-legal { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--text-3); max-width: 900px; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Узкие экраны ---------- */
@media (max-width: 1180px) {
  .top-nav a { padding: 0 11px; font-size: 11.5px; }
  .stage-in { grid-template-columns: 1fr; }
  .hud { display: none; }
}
@media (max-width: 980px) {
  .top-nav, .top-login { display: none; }
  .top-in .btn { margin-left: auto; }
  .cab-grid, .faq-in { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .trio { grid-template-columns: 1fr; margin-top: 80px; }
  .trio > div, .trio > div + div { padding: 26px 0 0; border-left: 0; }
  .deck { flex-direction: column; height: auto; }
  .card-game { min-height: 230px; flex: none; padding: 24px; }
  .card-game b, .deck:hover .card-game.open:not(:hover) b { font-size: 24px; }
  .card-game .cg-text, .deck:hover .card-game.open:not(:hover) .cg-text { max-height: 120px; opacity: 1; margin-top: 10px; }
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass-stub { border-left: 0; border-top: 2px dashed rgba(255, 214, 180, 0.22); border-radius: 0 0 26px 26px; }
  .pass-stub::before, .pass-stub::after { top: -15px; bottom: auto; clip-path: none; width: 28px; height: 28px; }
  .pass-stub::before { left: -15px; }
  .pass-stub::after { left: auto; right: -15px; }
  .screen { transform: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top-in { padding: 0 16px; height: 64px; }
  .stage-in { padding-top: 96px; padding-bottom: 34px; }
  .stage-shade { background: linear-gradient(180deg, rgba(5, 4, 3, 0.6) 0%, rgba(5, 4, 3, 0.55) 30%, rgba(5, 4, 3, 0.86) 62%, var(--ink) 100%); }
  .art[data-art="cs2"] { object-position: 88% 30%; }
  .chip { height: 42px; font-size: 13px; padding-right: 14px; }
  .chip img { width: 30px; height: 30px; }
  .stage-ping { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stage-ping span { display: inline; font-size: 20px; }
  .stage-ping p { margin-top: 6px; }
  .go { height: 68px; padding-left: 22px; }
  .go-text b { font-size: 23px; }
  .go-ring { width: 50px; height: 50px; }
  .stage-cta .btn-ghost { display: none; }
  .sec { padding: 90px 0 10px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head > p { grid-column: 1; }
  .num { justify-self: start; }
  .sec-head.center .num { justify-self: center; }
  .map { aspect-ratio: auto; height: 300px; margin: 0 -16px; }
  .map-svg { width: 100%; height: 100%; }
  .map-tag span { display: none; }
  .t-old { top: -4%; }
  .t-old b { font-size: 19px; }
  .t-new { top: 90%; left: 30%; }
  .t-new b { font-size: 21px; }
  .t-lahma { display: none; }
  .t-you { left: 16px; transform: none; text-align: left; }
  .t-end { left: auto; right: 16px; transform: none; text-align: right; }
  .card-game.discord::before { background-position: 88% 50%; background-size: 30%; }
  .island { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .island button { padding: 0 12px; font-size: 11.5px; }
  .track { grid-template-columns: 1fr; gap: 26px; justify-items: start; }
  .track::before { left: 13px; right: auto; top: 14px; bottom: 30px; width: 3px; height: auto; }
  .track li { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; gap: 4px 16px; }
  .track i { margin-bottom: 0; }
  .track span { flex-basis: 100%; padding-left: 45px; }
  .stage-title { font-size: min(54px, calc((100vw - 32px) / 7)); }
  .stage-copy .label { letter-spacing: 0.12em; }
  /* Длинные слова заголовков («конфиденциальности», «в программу») влезают и в 320 px. */
  .doc h1 { font-size: min(32px, 8vw); overflow-wrap: anywhere; }
  .auth h1 { font-size: min(32px, 8.5vw); }
  .pass-main { padding: 24px 22px; }
  .pass-route b { font-size: 46px; }
  .pass-grid { grid-template-columns: 1fr 1fr; }
  .pass-list { grid-template-columns: 1fr; }
  .cards2 { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .auth { padding: 28px 20px; }
  .cab-head { flex-wrap: wrap; }
  .doc, .support, .acc { padding-left: 16px; padding-right: 16px; padding-top: 100px; }
  .foot-cols { gap: 34px; }
  .finale { padding: 100px 0; margin-top: 90px; }
}

/* Возврат с оплаты, оформленной из программы */
.paid { text-align: center; }
.paid h1 { margin-top: 18px; }
.paid-list { list-style: none; text-align: left; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.paid-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-2); }
.paid-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.paid .btn { width: auto; }

/* --- Запуск: «Скоро запуск», пробный день, предпросмотр --- */
.preview-bar { position: fixed; left: 50%; bottom: 16px; z-index: 90; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px;
  background: rgba(20, 14, 10, 0.92); border: 1px solid rgba(255, 178, 61, 0.45); color: var(--ember-2); font-size: 13px; text-align: center; backdrop-filter: blur(8px); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.8); }
/* Проект закрывается: полоска внизу экрана на всех страницах (слева от кнопки чата). */
.closing-bar { position: fixed; left: 50%; bottom: 18px; z-index: 55; transform: translateX(-50%); display: flex; gap: 12px; align-items: flex-start;
  width: min(760px, calc(100% - 200px)); padding: 13px 18px; border-radius: 16px; background: rgba(24, 16, 8, 0.94); border: 1px solid rgba(255, 178, 61, 0.5);
  color: #ffd9a0; font-size: 14px; line-height: 1.5; backdrop-filter: blur(10px); box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.85); }
.closing-bar svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #ffb23d; }
@media (max-width: 760px) {
  .closing-bar { left: 12px; right: 84px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); width: auto; transform: none; padding: 10px 12px; font-size: 12.5px; gap: 8px; }
  .closing-bar svg { width: 17px; height: 17px; }
}

.gift { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 16px; text-align: left;
  border: 1px solid rgba(83, 255, 184, 0.4); background: linear-gradient(120deg, rgba(83, 255, 184, 0.12), rgba(60, 231, 255, 0.05)); color: var(--text-2); font-size: 15px; line-height: 1.4;
  box-shadow: 0 0 0 4px rgba(83, 255, 184, 0.05), 0 20px 50px -24px rgba(83, 255, 184, 0.6); }
.gift svg { flex: none; width: 30px; height: 30px; color: var(--mint); filter: drop-shadow(0 0 10px rgba(83, 255, 184, 0.6)); animation: gift 2.4s var(--ease) infinite; }
.gift b { color: var(--text); font-weight: 700; }
.gift::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -70%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent); animation: shine 4.5s ease-in-out infinite; }
.gift-sm { display: inline-flex; margin-top: 18px; padding: 10px 16px; font-size: 14px; border-radius: 999px; }
.gift-sm svg { width: 22px; height: 22px; }
@keyframes gift { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-12deg) scale(1.08); } 86% { transform: rotate(10deg) scale(1.08); } 93% { transform: rotate(-4deg); } }
.pass-trial { margin-top: 10px; color: var(--mint); font-family: var(--f-t); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

.page-soon { overflow-x: hidden; }
.soon { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 55% at 50% 42%, rgba(60, 231, 255, 0.09), transparent 70%), radial-gradient(60% 50% at 50% 110%, rgba(255, 106, 31, 0.22), transparent 70%), var(--ink); }
.soon .warp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.soon-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 45% at 50% 45%, rgba(5, 4, 3, 0.25), rgba(5, 4, 3, 0.8) 75%), linear-gradient(180deg, rgba(5, 4, 3, 0.4), transparent 30%, transparent 70%, rgba(5, 4, 3, 0.9)); }
.soon::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: 0.05; mix-blend-mode: overlay; pointer-events: none; }
.soon-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 20px 40px; max-width: 980px; margin: 0 auto; width: 100%; }
.soon-logo { margin-bottom: 44px; }
.soon-logo svg { width: 40px; height: 40px; }
.soon-logo .logo-name { font-size: 20px; }
.soon-logo .logo-sub { font-size: 14px; }
.soon .label { animation: rise 0.9s var(--ease) both; }
.soon-title { margin: 22px 0 18px; font-family: var(--f-x); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 11vw, 150px); line-height: 0.88; letter-spacing: -0.01em;
  text-shadow: 0 20px 80px rgba(0, 0, 0, 0.7); animation: rise 1s 0.08s var(--ease) both; }
.soon-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(255, 106, 31, 0.35)); }
.soon-lead { max-width: 560px; color: var(--text-2); font-size: clamp(16px, 2vw, 19px); line-height: 1.5; animation: rise 1s 0.16s var(--ease) both; }
.soon-lead b { color: var(--mint); font-weight: 700; white-space: nowrap; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.count { display: flex; align-items: flex-start; justify-content: center; gap: clamp(6px, 1.4vw, 16px); margin-top: 44px; animation: rise 1s 0.24s var(--ease) both; }
.cell { position: relative; min-width: clamp(70px, 14vw, 150px); padding: clamp(14px, 2vw, 22px) clamp(8px, 1.4vw, 16px) clamp(10px, 1.4vw, 16px); border-radius: clamp(14px, 2vw, 22px);
  background: linear-gradient(180deg, rgba(32, 25, 20, 0.86), rgba(12, 9, 7, 0.9)); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.9); overflow: hidden; }
.cell::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.55); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04); }
.cell b { display: block; font-family: var(--f-x); font-weight: 400; font-size: clamp(38px, 8vw, 96px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.cell small { display: block; margin-top: 10px; font-family: var(--f-t); font-weight: 600; font-size: clamp(9px, 1.2vw, 12px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); }
.cell[data-unit="s"] b { color: var(--mint); text-shadow: 0 0 30px rgba(83, 255, 184, 0.45); }
.cell.tick b { animation: tick 0.5s var(--ease); }
@keyframes tick { 0% { transform: translateY(-30%); opacity: 0; filter: blur(4px); } 100% { transform: none; opacity: 1; filter: none; } }
.colon { font-style: normal; font-family: var(--f-x); font-size: clamp(30px, 6vw, 70px); line-height: 1; padding-top: clamp(16px, 2.6vw, 28px); color: var(--ember); animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.count.final .cell { border-color: rgba(255, 106, 31, 0.6); box-shadow: 0 0 0 4px rgba(255, 106, 31, 0.1), 0 0 60px -10px var(--glow); }
.count-at { margin-top: 18px; font-family: var(--f-m); font-size: 14px; color: var(--text-3); animation: rise 1s 0.3s var(--ease) both; }
.soon-wait { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(16, 12, 9, 0.8); color: var(--text-2); font-size: 15px; animation: rise 1s 0.24s var(--ease) both; }
.soon-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 12px var(--ember); animation: pulse 1.6s ease-in-out infinite; }
.soon .gift { margin-top: 30px; max-width: 560px; animation: rise 1s 0.36s var(--ease) both; }
.soon-games { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; animation: rise 1s 0.44s var(--ease) both; }
.soon-games span { display: inline-flex; align-items: center; gap: 9px; padding: 6px 15px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(16, 12, 9, 0.75);
  font-family: var(--f-t); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.soon-games img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.soon-board { flex: none; }
.soon-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 18px 20px 22px; font-size: 13px; color: var(--text-3); }
.soon-foot a { color: var(--text-3); }
.soon-foot a:hover { color: var(--text); }

.top-soon { margin-left: auto; gap: 10px; }

/* Момент запуска: вспышка «Мы в эфире», затем переход на сайт. */
.liftoff { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #ffc24a, #ff6a1f 32%, #3a1406 62%, #050403 82%); }
.liftoff-in { text-align: center; transform: scale(0.6); }
.liftoff small { display: block; font-family: var(--f-t); font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: #1d0b02; font-size: 14px; }
.liftoff b { display: block; margin-top: 12px; font-family: var(--f-x); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 10vw, 130px); line-height: 0.9; color: #fff8ec; text-shadow: 0 10px 60px rgba(120, 30, 0, 0.6); }
.soon.go .liftoff { animation: liftoff 2.4s var(--ease) forwards; }
.soon.go .liftoff-in { animation: liftoff-in 2.4s var(--ease) forwards; }
@keyframes liftoff { 0% { opacity: 0; } 20%, 100% { opacity: 1; } }
@keyframes liftoff-in { 0% { transform: scale(0.6); } 35%, 100% { transform: scale(1); } }
@media (max-width: 760px) {
  .soon-in { padding-top: 36px; }
  .soon-logo { margin-bottom: 30px; }
  .count { margin-top: 32px; gap: 8px; width: 100%; }
  .colon { display: none; }
  .cell { min-width: 0; flex: 1; }
  .soon .gift { padding: 12px 14px; font-size: 14px; }
  .preview-bar { width: auto; }
}

/* --- «Как установить»: Windows и антивирусы ругаются, пока нет подписи --- */
.inst-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 14px 9px 11px; border-radius: 999px; text-decoration: none !important;
  border: 1px solid rgba(255, 178, 61, 0.35); background: rgba(255, 106, 31, 0.08); color: var(--text-2); font-size: 14px; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.inst-link svg { flex: none; width: 20px; height: 20px; color: var(--ember-2); }
.inst-link b { color: var(--ember-2); font-weight: 600; }
.inst-link i { font-style: normal; color: var(--ember-2); transition: transform 0.2s; }
.inst-link:hover { border-color: rgba(255, 178, 61, 0.7); background: rgba(255, 106, 31, 0.14); color: var(--text); }
.inst-link:hover i { transform: translateX(3px); }
.finale .inst-link { margin-top: 18px; }

.inst { padding-top: 130px; padding-bottom: 60px; }
.inst-head { max-width: 760px; }
.inst-head h1 { margin: 18px 0 16px; font-family: var(--f-x); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 64px); line-height: 0.95; }
.inst-head .lead { color: var(--text-2); font-size: 18px; line-height: 1.55; max-width: 640px; }
.inst-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.inst-cta .btn svg { width: 20px; height: 20px; }
.inst-ver { font-family: var(--f-m); font-size: 13px; color: var(--text-3); }
.inst-steps { list-style: none; margin: 70px 0 0; padding: 0; display: grid; gap: 22px; }
.inst-step { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 34px; align-items: center; padding: 30px; border-radius: 26px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(32, 25, 20, 0.7), rgba(12, 9, 7, 0.75)); }
.inst-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #1d0b02; font-family: var(--f-x); font-size: 20px; box-shadow: 0 10px 30px -10px var(--glow); }
.inst-text h2 { margin: 16px 0 10px; font-family: var(--f-b); font-weight: 700; font-size: 23px; line-height: 1.25; }
.inst-text p { color: var(--text-2); margin: 0 0 12px; line-height: 1.55; }
.inst-text ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); line-height: 1.5; }
.inst-text b { color: var(--text); font-weight: 600; }
.inst-text code, .inst-code { font-family: var(--f-m); font-size: 13px; color: var(--ember-2); background: rgba(255, 106, 31, 0.08); border: 1px solid rgba(255, 178, 61, 0.2); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

/* Нарисованные окна: что увидит человек и куда нажать (рамка «hit» пульсирует). */
.mock { position: relative; border-radius: 14px; padding: 18px; font-family: "Segoe UI", var(--f-b); font-size: 14px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
.mock-bar { display: flex; align-items: center; gap: 6px; margin: -4px 0 14px; color: var(--text-3); font-size: 12px; }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.mock-bar b { margin-left: 8px; font-weight: 600; }
.mock-dl, .mock-def { background: #1f1f1f; border: 1px solid rgba(255, 255, 255, 0.08); color: #e8e8e8; }
.mock-dl-row, .mock-def-row { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.mock-dl-row small, .mock-def-row small { display: block; color: #f3b44a; font-size: 12.5px; margin-top: 2px; }
.mock-def-row small { color: #a9a9a9; }
.mock-warn { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f3b44a; color: #1f1f1f; font-style: normal; font-weight: 800; }
.mock-shield { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #d13438; }
.mock-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mock-btn { padding: 7px 14px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }
.mock-ss { background: #0f5fb7; color: #fff; border-radius: 4px; padding: 26px 24px 22px; }
.mock-ss-title { display: block; font-size: 21px; font-weight: 600; line-height: 1.2; margin-bottom: 12px; font-family: "Segoe UI Light", "Segoe UI", sans-serif; }
.mock-ss p { margin: 0 0 12px; color: rgba(255, 255, 255, 0.88); font-size: 13.5px; line-height: 1.45; }
.mock-link { display: inline-block; text-decoration: underline; font-size: 13.5px; }
.mock-ss-more { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.mock-ss-more small { display: block; color: rgba(255, 255, 255, 0.85); line-height: 1.5; }
.mock-btn.light { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.hit { position: relative; outline: 2px solid var(--ember-2); outline-offset: 3px; border-radius: 6px; animation: hit 1.8s ease-in-out infinite; }
.mock-btn.hit { background: rgba(255, 178, 61, 0.2); }
@keyframes hit { 0%, 100% { outline-color: rgba(255, 178, 61, 1); box-shadow: 0 0 0 0 rgba(255, 178, 61, 0.5); } 50% { outline-color: rgba(255, 178, 61, 0.55); box-shadow: 0 0 0 8px rgba(255, 178, 61, 0); } }

.inst-why { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.inst-card { padding: 28px 30px; border-radius: 26px; border: 1px solid var(--line); background: rgba(16, 12, 9, 0.7); }
.inst-card h2 { margin: 0 0 14px; font-family: var(--f-b); font-weight: 700; font-size: 21px; }
.inst-card p { color: var(--text-2); line-height: 1.55; margin: 0 0 12px; }
.inst-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inst-checks li { position: relative; padding-left: 30px; color: var(--text-2); line-height: 1.45; }
.inst-checks li::before { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.inst-checks .ok::before { content: "✓"; background: rgba(83, 255, 184, 0.15); color: var(--mint); }
.inst-checks .no::before { content: "✕"; background: rgba(255, 61, 46, 0.14); color: #ff7a6b; }
.inst-code { display: block; padding: 10px 12px; margin: 0 0 12px; white-space: pre-wrap; }
.inst-sha { color: var(--mint); border-color: rgba(83, 255, 184, 0.25); background: rgba(83, 255, 184, 0.06); letter-spacing: 0.02em; }
.inst-help { margin-top: 40px; text-align: center; color: var(--text-2); }
.inst-help p { margin-bottom: 14px; }
@media (max-width: 860px) {
  .inst-step { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .inst-why { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .inst { padding-top: 100px; }
  .inst-head .lead { font-size: 16px; }
  .inst-link { font-size: 13px; }
}

/* Кнопка «Установка» в шапке: точка пульсирует, пока нет подписи кода. */
.top-in { position: relative; }
.top-help { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; text-decoration: none !important;
  border: 1px solid rgba(255, 178, 61, 0.4); background: rgba(255, 106, 31, 0.1); color: var(--text); font-family: var(--f-t); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.08em; text-transform: uppercase; transition: border-color 0.2s, background 0.2s; }
.top-help svg { width: 18px; height: 18px; color: var(--ember-2); }
.top-help:hover, .top-help.on { border-color: rgba(255, 178, 61, 0.8); background: rgba(255, 106, 31, 0.18); }
.top-help-dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--hot); border: 2px solid var(--ink);
  box-shadow: 0 0 0 0 rgba(255, 61, 46, 0.6); animation: helpdot 1.8s ease-out infinite; }
.top-help.on .top-help-dot { display: none; }
@keyframes helpdot { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 46, 0.65); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 61, 46, 0); } }

.help-tip { position: absolute; top: 66px; right: 28px; z-index: 40; width: 320px; padding: 16px 18px 15px; border-radius: 16px; text-align: left;
  background: rgba(22, 16, 12, 0.97); border: 1px solid rgba(255, 178, 61, 0.45); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.85), 0 0 0 4px rgba(255, 106, 31, 0.06);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.help-tip::before { content: ""; position: absolute; top: -7px; right: var(--tip-arrow, 210px); width: 12px; height: 12px; transform: rotate(45deg);
  background: rgba(22, 16, 12, 0.97); border-left: 1px solid rgba(255, 178, 61, 0.45); border-top: 1px solid rgba(255, 178, 61, 0.45); }
.help-tip.on { opacity: 1; transform: none; pointer-events: auto; }
.help-tip b { display: block; padding-right: 22px; font-size: 15px; }
.help-tip p { margin: 6px 0 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.help-tip a { color: var(--ember-2); font-weight: 600; font-size: 14px; }
.help-tip-x { position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; }
.help-tip-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* Уведомление после нажатия «Скачать». */
.dl-toast { position: fixed; left: 50%; bottom: 20px; z-index: 95; width: min(560px, calc(100% - 32px)); display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  border-radius: 18px; background: rgba(22, 16, 12, 0.97); border: 1px solid rgba(83, 255, 184, 0.4); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, 30px); opacity: 0; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.dl-toast.on { transform: translate(-50%, 0); opacity: 1; }
.dl-toast svg { flex: none; width: 28px; height: 28px; color: var(--mint); margin-top: 1px; }
.dl-toast b { display: block; font-size: 15px; }
.dl-toast p { margin: 4px 0 8px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.dl-toast a { color: var(--ember-2); font-weight: 600; font-size: 14px; }
.dl-toast .help-tip-x { top: 10px; right: 10px; }

@media (max-width: 980px) {
  .top-in .top-help { margin-left: auto; }
  .top-in .top-help ~ .btn { margin-left: 0; }
}
@media (max-width: 760px) {
  .top-help { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .top-help span { display: none; }
  .top-help svg { width: 20px; height: 20px; }
  .help-tip { right: 16px; width: calc(100vw - 32px); max-width: 340px; }
}

/* --- Кабинет: вкладки, промокод, подарки, партнёрство --- */
.cab-tabs { display: flex; gap: 6px; margin: 4px 0 18px; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: rgba(16, 12, 9, 0.7); width: max-content; max-width: 100%; overflow-x: auto; }
.cab-tabs button { position: relative; border: 0; background: none; color: var(--text-2); padding: 9px 16px; border-radius: 10px; cursor: pointer; font-family: var(--f-t); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.cab-tabs button:hover { color: var(--text); }
.cab-tabs button.on { background: linear-gradient(135deg, rgba(255, 194, 74, 0.2), rgba(255, 106, 31, 0.18)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 178, 61, 0.35); }
.cab-tabs .dotnew { display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 2px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.stackcol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.promo { margin: 4px 0 2px; }
.promo-open, .linkbtn { border: 0; background: none; padding: 0; color: var(--ember-2); cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.promo-form { display: flex; gap: 8px; }
.promo-form .input { flex: 1; min-width: 0; text-transform: uppercase; font-family: var(--f-m); }
.promo-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(83, 255, 184, 0.35); background: rgba(83, 255, 184, 0.07); color: var(--mint); font-size: 14px; }
.promo-on b { color: var(--text); font-family: var(--f-m); }
.promo-on button { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 13px; }
.buy-opt .p s { color: var(--text-3); font-weight: 400; margin-right: 4px; }
.gcode { font-family: var(--f-m); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; font-size: 16px; }
.gift-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.gift-row:last-child { border-bottom: 0; }
.gift-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gift-sub { margin-top: 4px; font-size: 13px; color: var(--text-3); }
.copyline { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; border: 1px dashed rgba(255, 178, 61, 0.4); background: rgba(255, 106, 31, 0.06); min-width: 0; }
.copyline code { flex: 1; min-width: 0; font-family: var(--f-m); font-size: 13px; color: var(--ember-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copyline.big code { font-size: 15px; color: var(--text); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.tag.good { color: var(--mint); border-color: rgba(83, 255, 184, 0.35); }
.tag.warn { color: #ffc65c; border-color: rgba(255, 198, 92, 0.35); }
.tag.bad { color: #ff7a6b; border-color: rgba(255, 84, 104, 0.4); }
.tag.info { color: var(--cyan); border-color: rgba(60, 231, 255, 0.35); }
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ptile { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.ptile small { display: block; font-family: var(--f-t); font-weight: 600; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.ptile b { display: block; margin-top: 8px; font-family: var(--f-x); font-weight: 400; font-size: 24px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.ptile.hot b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ptile.mint b { color: var(--mint); }
.hotpanel { border-color: rgba(255, 178, 61, 0.35); margin-bottom: 18px; }
.share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.share label { display: block; font-size: 13px; color: var(--text-2); }
.codeform { display: flex; gap: 8px; max-width: 420px; margin-top: 12px; }
.codeform .input { flex: 1; min-width: 0; font-family: var(--f-m); text-transform: uppercase; }
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.funnel div { padding: 12px; border-radius: 12px; background: rgba(5, 4, 3, 0.6); border: 1px solid var(--line); min-width: 0; }
.funnel small { display: block; font-size: 12px; color: var(--text-3); }
.funnel b { display: block; margin-top: 4px; font-family: var(--f-x); font-weight: 400; font-size: 22px; }
.pchart { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.pchart div { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.pchart span { width: 100%; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--ember-2), var(--ember)); opacity: 0.85; }
.pchart div:last-child span { opacity: 1; box-shadow: 0 0 12px var(--glow); }
.pchart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--f-m); font-size: 11px; color: var(--text-3); }
.ptable { overflow-x: auto; }
.ptable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; font-family: var(--f-t); font-weight: 600; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding: 6px 6px 8px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable td small { display: block; color: var(--text-3); font-size: 12px; }
.ptable .mono { font-family: var(--f-m); font-size: 13px; }
.payrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.payrow:last-child { border-bottom: 0; }
.payrow b { margin-left: auto; }
.pass-gift { margin-top: 10px; color: var(--text-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.giftpage { max-width: 520px; text-align: center; }
.giftpage .gift-ico { width: 64px; height: 64px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 18px; color: var(--mint); background: rgba(83, 255, 184, 0.1); border: 1px solid rgba(83, 255, 184, 0.35); }
.giftpage .gift-ico svg { width: 34px; height: 34px; }
.gift-open { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px; border-radius: 20px; border: 1px solid rgba(255, 178, 61, 0.45);
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 106, 31, 0.3), transparent 60%), rgba(18, 12, 8, 0.9); }
.gift-open small { font-family: var(--f-t); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; color: var(--ember-2); }
.gift-open b { font-family: var(--f-x); font-weight: 400; font-size: 26px; line-height: 1.05; }
.gift-open p { margin: 0; color: var(--text-2); }
@media (max-width: 760px) {
  .ptiles, .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share { grid-template-columns: 1fr; }
}

/* Атрибут hidden всегда прячет, даже у блоков с display: flex. */
[hidden] { display: none !important; }

.share > div, .cab-grid > * { min-width: 0; }
@media (max-width: 760px) {
  .copyline { flex-wrap: wrap; }
  .copyline code { flex-basis: 100%; padding: 4px 0; }
}
@media (max-width: 760px) { .cab-tabs button { padding: 9px 11px; letter-spacing: 0.04em; } }

/* --- Шапка: «Войти» / «Профиль» и кнопка «Скачать» --- */
.top-me { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 15px 0 5px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 240, 228, 0.04); color: var(--text-2); font-family: var(--f-t); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none !important; white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.top-me:hover, .top-me.on { color: var(--text); border-color: rgba(255, 178, 61, 0.6); background: rgba(255, 106, 31, 0.08); }
.top-me-ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255, 240, 228, 0.07); color: var(--ember-2); flex: none; }
.top-ava { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-x); font-size: 14px; letter-spacing: 0;
  color: #1d0b02; background: var(--grad); box-shadow: 0 6px 16px -6px var(--glow); }
.btn-dl { gap: 9px; padding: 0 5px 0 16px; }
.btn-dl .dl-win { width: 15px; height: 15px; flex: none; }
.dl-ar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #1d0b02; color: var(--ember-2);
  box-shadow: inset 0 0 0 1px rgba(255, 178, 61, 0.25); }
.dl-ar svg { width: 15px; height: 15px; }
.btn-dl:hover .dl-ar svg { animation: dlbob 0.7s var(--ease) infinite alternate; }
@keyframes dlbob { from { transform: translateY(-2px); } to { transform: translateY(2px); } }

/* --- Вход и регистрация --- */
.auth { overflow: hidden; isolation: isolate; }
.auth::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 178, 61, 0.85), transparent); }
.auth-glow { position: absolute; z-index: -1; top: -140px; right: -110px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 106, 31, 0.26), transparent 66%); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin: 0 0 26px; border-radius: 16px; border: 1px solid var(--line); background: rgba(5, 4, 3, 0.65); }
.seg::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 12px; background: var(--grad);
  box-shadow: 0 10px 24px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform 0.45s var(--ease); }
.seg.r::before { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; height: 42px; border: 0; background: none; cursor: pointer; font-family: var(--f-t); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); transition: color 0.3s; }
.seg button:hover { color: var(--text); }
.seg button.on { color: #1d0b02; }
.auth-badge { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 18px; color: var(--ember-2);
  background: rgba(255, 106, 31, 0.1); border: 1px solid rgba(255, 178, 61, 0.35); box-shadow: 0 16px 34px -18px var(--glow); }
.auth-badge svg { width: 28px; height: 28px; }
.auth-plan { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 24px; border-radius: 16px; border: 1px dashed rgba(255, 178, 61, 0.45);
  background: linear-gradient(135deg, rgba(255, 194, 74, 0.08), rgba(255, 61, 46, 0.06)); }
.ap-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #1d0b02; box-shadow: 0 10px 22px -10px var(--glow); }
.ap-ico svg { width: 19px; height: 19px; }
.auth-plan div { flex: 1; min-width: 0; }
.auth-plan small { display: block; font-size: 12px; line-height: 1.35; color: var(--text-3); }
.auth-plan b { display: block; margin-top: 2px; font-size: 15.5px; }
.ap-price { font-family: var(--f-x); font-size: 21px; white-space: nowrap; }
.auth h1 { font-size: 30px; }
.inp { position: relative; }
.inp > svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; transition: color 0.2s; }
.inp .input { width: 100%; padding-left: 47px; }
.inp:focus-within > svg { color: var(--cyan); }
.inp.has-eye .input { padding-right: 52px; }
.inp .eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: none; color: var(--text-3); cursor: pointer; transition: color 0.2s, background 0.2s; }
.inp .eye:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.inp .eye svg { width: 19px; height: 19px; }
.auth-go svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.auth-go:hover svg { transform: translateX(4px); }
.links.one { justify-content: center; }
.perks { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.perks svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--mint); }
.auth .legal { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.auth .legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* Шапка не переполняется: сначала прячем подписи, потом меню. */
@media (max-width: 1240px) {
  .top-me { width: 40px; padding: 0; justify-content: center; }
  .top-me-t { display: none; }
}
@media (max-width: 1180px) {
  .logo-sub { display: none; }
}
@media (max-width: 1100px) {
  .top-nav { display: none; }
  .top-in .top-help { margin-left: auto; }
}
@media (max-width: 760px) {
  .auth h1 { font-size: min(30px, 6.4vw); overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .top-in { gap: 8px; }
  .logo-sub { display: none; }
  .btn-dl .dl-win { display: none; }
  .btn-dl { padding-left: 14px; }
  .ap-ico { display: none; }
}
@media (max-width: 359px) {
  .logo-name { display: none; }
}

/* Кабинет партнёра: статус продлений. */
.renew-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--text-2); }

/* --- Кабинет партнёра: уровни --- */
.lvl-panel { margin-bottom: 18px; }
.lvl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lvl-head h3 { margin: 0; }
.lvl-head > span { font-size: 13.5px; color: var(--text-3); }
.lvl-head > span b { color: var(--text); }
.lvl-track { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; }
.lvl { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px 16px; border-radius: 20px; min-width: 0;
  border: 1px solid var(--line); background: rgba(5, 4, 3, 0.55); transition: transform 0.3s var(--ease), border-color 0.3s; }
.lvl .medal { width: 58px; height: 66px; margin-bottom: 8px; filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--c) 45%, transparent)); }
.lvl small { font-family: var(--f-t); font-weight: 600; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.lvl b { margin-top: 2px; font-size: 17px; }
.lvl strong { margin-top: 6px; font-family: var(--f-x); font-weight: 400; font-size: 30px; line-height: 1; color: var(--c); }
.lvl span { margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.lvl em { margin-top: 10px; font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--text-3); border: 1px solid var(--line-2); white-space: nowrap; }
.lvl.done em { color: var(--mint); border-color: rgba(83, 255, 184, 0.35); }
.lvl.cur { border-color: var(--c); background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), rgba(18, 12, 8, 0.9);
  box-shadow: 0 18px 40px -22px var(--c), inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); transform: translateY(-3px); }
.lvl.cur em { color: #1d0b02; background: var(--c); border-color: transparent; }
.lvl.cur .medal { animation: medal 2.6s ease-in-out infinite; }
@keyframes medal { 50% { transform: translateY(-3px) scale(1.04); } }
.lvl.lock { opacity: 0.55; }
.lvl.lock .medal { filter: grayscale(0.85) brightness(0.8); }
.lvl.lock strong { color: var(--text-2); }
.lvl-prog { margin-top: 16px; }
.lvl-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.lvl-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--ember-2), var(--c)); box-shadow: 0 0 14px var(--c); }
.lvl-prog p { margin: 9px 0 0; font-size: 14px; color: var(--text-2); }
.lvl-prog b { color: var(--text); }
.lvl-max { color: var(--ember-2) !important; font-weight: 600; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 4, 3, 0.6); }
.seg-mini button { border: 0; background: none; padding: 5px 10px; border-radius: 7px; cursor: pointer; font-family: var(--f-t); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.seg-mini button.on { color: #1d0b02; background: var(--grad); }
@media (max-width: 760px) {
  .lvl-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lvl strong { font-size: 26px; }
}

/* Ряды панелей в кабинете не слипаются. */
.cab-grid + .cab-grid { margin-top: 18px; }
.funnel div { display: flex; flex-direction: column; justify-content: space-between; }

/* --- Вход через Twitch --- */
.btn-twitch { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; padding: 0 22px; border-radius: 999px;
  background: #9146ff; color: #fff !important; text-decoration: none !important; font-family: var(--f-t); font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  box-shadow: 0 14px 30px -14px rgba(145, 70, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: background 0.2s, transform 0.2s var(--ease); }
.btn-twitch:hover { background: #772ce8; transform: translateY(-1px); }
.btn-twitch .tw-ico { width: 20px; height: 20px; flex: none; }
.btn-twitch.sm { width: auto; height: 36px; padding: 0 14px; font-size: 12.5px; gap: 8px; }
.btn-twitch.sm .tw-ico { width: 16px; height: 16px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0 16px; color: var(--text-3); font-size: 12.5px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-note { margin: -8px 0 18px; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.auth-note.good { color: var(--mint); background: rgba(83, 255, 184, 0.07); border: 1px solid rgba(83, 255, 184, 0.3); }
.auth-note.warn { color: #ffc65c; background: rgba(255, 198, 92, 0.07); border: 1px solid rgba(255, 198, 92, 0.3); }
.app-auth { text-align: center; }
.app-auth .lead { margin-bottom: 20px; }
.app-auth .btn, .app-auth .btn-ghost { width: 100%; }
.app-logo { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 20px; color: var(--ember-2);
  background: rgba(255, 106, 31, 0.1); border: 1px solid rgba(255, 178, 61, 0.35); box-shadow: 0 16px 34px -18px var(--glow); }
.app-logo svg { width: 34px; height: 34px; }
.logins .lrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.logins h3 + .lrow { border-top: 0; padding-top: 4px; }
.logins .lico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.logins .lico svg { width: 20px; height: 20px; }
.logins .lico.mail { color: var(--ember-2); background: rgba(255, 106, 31, 0.1); border: 1px solid rgba(255, 178, 61, 0.3); }
.logins .lico.twitch { color: #fff; background: #9146ff; }
.logins .lmain { flex: 1; min-width: 0; }
.logins .lmain b { display: block; font-size: 15px; }
.logins .lmain small { display: block; margin-top: 2px; color: var(--text-3); font-size: 13px; overflow-wrap: anywhere; }
.logins .lmain small a { color: #bf94ff; }
.pwform { display: flex; gap: 8px; margin: 4px 0 12px; }
.pwform .inp { flex: 1; min-width: 0; }
@media (max-width: 520px) {
  .logins .lrow { flex-wrap: wrap; }
  .pwform { flex-direction: column; }
}

/* --- Чат поддержки (chat.js): кнопка в углу и окно переписки --- */
.lc { position: fixed; z-index: 60; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); font-family: var(--f-b); }
.lc-launch { position: relative; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: 600 13px var(--f-t); letter-spacing: .06em; text-transform: uppercase; color: #1d0b02; background: var(--grad);
  box-shadow: 0 18px 40px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.4); transition: transform .2s var(--ease); }
.lc-launch:hover { transform: translateY(-2px); }
.lc-launch svg { width: 20px; height: 20px; }
.lc-badge { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center;
  font: 700 11px var(--f-b); background: var(--text); color: var(--ink); box-shadow: 0 0 0 3px var(--ink); letter-spacing: 0; }
.lc.open .lc-launch { display: none; }
.lc-panel { position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; background: #0d0a08; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
  animation: lcpop .22s var(--ease); }
.lc-panel[hidden] { display: none; }
@keyframes lcpop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.lc-head { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 106, 31, 0.10), transparent); }
.lc-head > svg { width: 36px; height: 36px; flex: none; }
.lc-title { font: 600 14px var(--f-t); letter-spacing: .04em; }
.lc-sub { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.lc-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: none; }
.lc-sub.typing { color: var(--ember-2); }
.lc-x { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.lc-x svg { width: 14px; height: 14px; }
.lc-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }
.lc-hello { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: rgba(32, 25, 20, 0.9); border: 1px solid var(--line); }
.lc-hello p { margin: 0; }
.lc-hello p + p { margin-top: 6px; color: var(--text-2); font-size: 13px; }
.lc-label { font: 500 11px var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.lc-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-topics button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--text-2); font: 13px var(--f-b); cursor: pointer; }
.lc-topics button[aria-pressed="true"] { border-color: rgba(255, 140, 60, 0.6); background: rgba(255, 106, 31, 0.14); color: var(--ember-2); }
.lc-area, .lc-input { width: 100%; resize: none; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink); color: var(--text); padding: 10px 12px; outline: none; font: 14px/1.45 var(--f-b); }
.lc-area { min-height: 100px; }
.lc-area:focus, .lc-input:focus { border-color: rgba(255, 140, 60, 0.6); box-shadow: 0 0 0 3px rgba(255, 106, 31, 0.14); }
.lc-btn { height: 46px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; cursor: pointer;
  font: 600 13px var(--f-t); letter-spacing: .06em; text-transform: uppercase; color: #1d0b02; background: var(--grad); text-decoration: none !important; }
.lc-btn:disabled { opacity: .6; cursor: default; }
.lc-btn.sm { height: 34px; padding: 0 14px; font-size: 11.5px; }
.lc-btn.ghost { background: none; color: var(--text); border: 1px solid var(--line-2); }
.lc-note { font-size: 12.5px; color: var(--text-3); margin: 0; }
.lc-err { font-size: 12.5px; color: #ff8a7a; }
.lc-err:empty { display: none; }
.lc-sys { align-self: center; text-align: center; max-width: 92%; font-size: 11.5px; color: var(--text-3); }
.lc-msg { max-width: 84%; padding: 9px 12px 7px; border-radius: 14px 14px 14px 4px; background: rgba(32, 25, 20, 0.9); border: 1px solid var(--line); align-self: flex-start;
  white-space: pre-wrap; word-break: break-word; }
.lc-msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(255, 106, 31, 0.16); border-color: rgba(255, 140, 60, 0.34); }
.lc-name { display: block; font-size: 11.5px; color: var(--ember-2); margin-bottom: 2px; white-space: normal; }
.lc-msg time { display: block; text-align: right; font: 10.5px var(--f-m); color: var(--text-3); margin-top: 3px; white-space: normal; }
.lc-shot { display: block; margin: 2px 0 4px; }
.lc-shot img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; border: 1px solid var(--line-2); }
.lc-doc { display: block; font-size: 13px; margin-bottom: 4px; }
.lc-dots { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: rgba(32, 25, 20, 0.9); border: 1px solid var(--line); align-self: flex-start; }
.lc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: lcblink 1.2s infinite; }
.lc-dots i:nth-child(2) { animation-delay: .2s; } .lc-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes lcblink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.lc-rate { align-self: stretch; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); text-align: center; display: grid; gap: 8px; font-size: 13px; }
.lc-rate div { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lc-compose { border-top: 1px solid var(--line); padding: 10px; display: grid; gap: 8px; background: #0a0806; }
.lc-compose[hidden] { display: none; }
.lc-row { display: flex; align-items: flex-end; gap: 8px; }
.lc-input { flex: 1; min-width: 0; height: 42px; max-height: 120px; }
.lc-ibtn { position: relative; width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.lc-ibtn svg { width: 18px; height: 18px; }
.lc-ibtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lc-send { border: 0; background: var(--grad); color: #1d0b02; }
.lc-staged { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 12px; color: var(--text-2); }
.lc-staged[hidden] { display: none; }
.lc-staged button { margin-left: auto; border: 0; background: none; color: var(--text-3); font-size: 12px; cursor: pointer; }
/* Ответ на сообщение: кнопка у сообщения, цитата в сообщении и над полем ввода */
.lc-msg { position: relative; }
.lc-act { position: absolute; top: 50%; right: -32px; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgba(32, 25, 20, 0.95); color: var(--text-2); cursor: pointer; opacity: 0; transition: opacity .12s; }
.lc-msg.me .lc-act { right: auto; left: -32px; }
.lc-msg:hover .lc-act, .lc-act:focus-visible { opacity: 1; }
.lc-act:hover { color: var(--ember-2); border-color: rgba(255, 140, 60, 0.6); }
.lc-act svg { width: 14px; height: 14px; }
@media (hover: none) { .lc-act { opacity: .75; } }
.lc-quote { display: grid; gap: 1px; min-width: 0; max-width: 100%; margin: 2px 0 5px; padding: 4px 9px; border: 0; border-left: 2px solid var(--ember-2); border-radius: 4px 8px 8px 4px;
  background: rgba(255, 255, 255, 0.05); color: inherit; text-align: left; cursor: pointer; font: inherit; white-space: normal; }
.lc-quote:hover { background: rgba(255, 255, 255, 0.09); }
.lc-quote b { font-size: 11.5px; color: var(--ember-2); font-weight: 600; }
.lc-quote span { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-quote.del span { font-style: italic; }
.lc-replybar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lc-replybar[hidden] { display: none; }
.lc-replybar > svg { width: 18px; height: 18px; flex: none; color: var(--ember-2); }
.lc-replybar .lc-quote { flex: 1; margin: 0; }
.lc-replybar .lc-x { flex: none; }
.lc-msg.flash { animation: lcflash 1.4s ease-out; }
@keyframes lcflash { 0%, 30% { box-shadow: 0 0 0 3px rgba(255, 140, 60, 0.55); } 100% { box-shadow: 0 0 0 3px rgba(255, 140, 60, 0); } }
.lc :focus-visible { outline: 2px solid var(--ember-2); outline-offset: 2px; }
@media (max-width: 520px) {
  .lc-launch span { display: none; }
  .lc-launch { width: 54px; padding: 0; justify-content: center; }
  .lc-panel { position: fixed; inset: auto 0 0 0; width: 100%; height: min(100dvh, 100%); border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .lc-panel, .lc-dots i { animation: none; } }
.lc-back { margin-left: 0; margin-right: -4px; }
.lc-back[hidden] { display: none; }
.lc-back svg { width: 16px; height: 16px; }
.lc-ok { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(83, 255, 184, 0.3); background: rgba(83, 255, 184, 0.06); color: var(--mint); font-size: 13px; }
.lc-list { display: grid; gap: 6px; }
.lc-it { width: 100%; text-align: left; display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(32, 25, 20, 0.6);
  color: var(--text); cursor: pointer; font: 13px/1.4 var(--f-b); }
.lc-it:hover { border-color: var(--line-2); }
.lc-it.done { opacity: .72; }
.lc-it.unread { border-color: rgba(255, 140, 60, 0.45); }
.lc-it-r1, .lc-it-r2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lc-it-r1 b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-it-r1 time { font: 10.5px var(--f-m); color: var(--text-3); flex: none; }
.lc-it-prev { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-it-n { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font: 700 11px var(--f-b); font-style: normal; color: #1d0b02; background: var(--grad); }
.lc-it-st { font-size: 11.5px; color: var(--text-3); }
.lc-it-st.st-answered { color: var(--ember-2); }
.lc-it-st.st-new { color: var(--cyan); }

/* /club/install — инструкция для клубов: те же карточки, что на /install. */
.club-sec { margin-top: 64px; scroll-margin-top: 90px; }
.club-h { margin: 0 0 18px; font-family: var(--f-x); font-weight: 400; font-size: clamp(22px, 3vw, 32px); line-height: 1.15; text-transform: uppercase; }
.club-sub { margin: 14px 0; max-width: 72ch; color: var(--text-2); line-height: 1.55; }
.club-why { margin-top: 0; }
.club-note { margin: 14px 0 0; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(16, 12, 9, 0.7); color: var(--text-2); line-height: 1.55; }
.club-note b { color: var(--text); font-weight: 600; }
.club-note.warn { border-color: rgba(255, 178, 61, 0.45); }
.club-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.club-pick a { display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(32, 25, 20, 0.7); color: var(--text-2); text-decoration: none; transition: border-color 0.2s; }
.club-pick a:hover { border-color: var(--ember-2); text-decoration: none; }
.club-pick b { font-family: var(--f-t); font-weight: 700; font-size: 18px; color: var(--ember-2); }
.club .inst-steps { margin-top: 0; }
.club-tight { gap: 14px; }
.club .inst-step.club-one { grid-template-columns: 1fr; }
.club-tight .inst-step.club-one { padding: 20px 24px; }
.club-tight .club-one .inst-text { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
.club-tight .club-one .inst-num { grid-row: 1 / span 2; }
.club-tight .club-one h2 { margin: 0 0 6px; font-size: 19px; }
.club-tight .club-one p { margin: 0; }
.club .club-first { margin-top: 0; }
.club-shot { justify-self: center; width: auto; max-width: 100%; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
.club-shot.narrow-shot { max-width: 300px; }
.club-shot.wide { width: 100%; }
.club-gap { margin-top: 18px; }
.club-inline { display: inline; padding: 1px 6px; margin: 0; }
.club-play { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.club-play div { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(32, 25, 20, 0.7); font-family: var(--f-t); font-weight: 600; font-size: 17px; line-height: 1.3; }
.club-play small { display: block; margin-bottom: 6px; font-family: var(--f-m); font-weight: 400; font-size: 12px; color: var(--text-3); }
.club-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.club-faq article { padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); background: rgba(16, 12, 9, 0.7); }
.club-faq h3 { margin: 0 0 8px; font-family: var(--f-b); font-weight: 700; font-size: 17px; line-height: 1.3; }
.club-faq p { margin: 0; color: var(--text-2); line-height: 1.55; }
.club-fine { margin: 18px 0 0; font-size: 13px; color: var(--text-3); }
@media (max-width: 760px) {
  .club-sec { margin-top: 44px; }
  .club-pick, .club-play, .club-faq { grid-template-columns: 1fr; }
}
