:root{
  --bg:#07070d;
  --bg2:#0d0d17;
  --card:#12121e;
  --card2:#171728;
  --border:rgba(255,255,255,.08);
  --text:#f2f2f7;
  --muted:#9a9ab0;
  --accent:#8b5cf6;
  --accent2:#22d3ee;
  --green:#34d399;
  --yellow:#fbbf24;
  --radius:18px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,sans-serif;
  overflow-x:hidden;
  line-height:1.6;
}
.container{max-width:1120px;margin:0 auto;padding:0 20px}

/* фон */
.bg-orbs{position:fixed;inset:0;z-index:-1;overflow:hidden}
.orb{position:absolute;border-radius:50%;filter:blur(110px);opacity:.35}
.orb-1{width:520px;height:520px;background:#6d28d9;top:-160px;left:-120px}
.orb-2{width:460px;height:460px;background:#0ea5e9;top:20%;right:-160px;opacity:.25}
.orb-3{width:600px;height:400px;background:#db2777;bottom:-200px;left:30%;opacity:.18}

/* шапка */
.header{
  position:sticky;top:0;z-index:50;
  backdrop-filter:blur(16px);
  background:rgba(7,7,13,.72);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;gap:28px;height:68px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
.logo-mark{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  font-family:'Unbounded';font-weight:900;font-size:20px;color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 0 24px rgba(139,92,246,.5);
}
.logo-text{font-family:'Unbounded';font-weight:700;font-size:18px;line-height:1}
.logo-text small{display:block;font-family:'Inter';font-weight:500;font-size:11px;color:var(--muted);letter-spacing:3px;text-transform:uppercase}
.nav{display:flex;gap:22px;margin-left:12px}
.nav a{color:var(--muted);text-decoration:none;font-weight:500;font-size:15px;transition:.2s}
.nav a:hover{color:#fff}
.header-actions{margin-left:auto;display:flex;gap:10px}

/* кнопки */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 20px;border-radius:12px;font-weight:600;font-size:14px;
  text-decoration:none;border:1px solid transparent;cursor:pointer;transition:.2s;white-space:nowrap;
}
.btn-primary{background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff;box-shadow:0 8px 28px rgba(124,58,237,.4)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 34px rgba(124,58,237,.55)}
.btn-ghost{color:var(--muted);border-color:var(--border);background:rgba(255,255,255,.03)}
.btn-ghost:hover{color:#fff;border-color:rgba(255,255,255,.2)}
.btn-outline{border-color:rgba(255,255,255,.16);color:#fff;background:rgba(255,255,255,.04)}
.btn-outline:hover{background:rgba(255,255,255,.1)}
.btn-lg{padding:14px 28px;font-size:15px;border-radius:14px}
.burger{display:none;background:none;border:none;flex-direction:column;gap:5px;cursor:pointer;margin-left:auto}
.burger span{width:24px;height:2px;background:#fff;border-radius:2px;display:block}

/* hero */
.hero{text-align:center;padding:72px 20px 30px}
.hero-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(139,92,246,.12);border:1px solid rgba(139,92,246,.35);
  padding:8px 18px;border-radius:100px;font-size:13px;color:#c4b5fd;margin-bottom:26px;
}
.dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green);animation:pulse 1.6s infinite}
@keyframes pulse{50%{opacity:.4}}
.hero-title{font-family:'Unbounded';font-size:clamp(52px,9vw,108px);line-height:.95;font-weight:900;letter-spacing:-2px}
.grad{background:linear-gradient(90deg,#a78bfa,#22d3ee,#f472b6);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-sub{color:var(--muted);font-size:18px;margin:22px 0 30px}
.hero-buttons{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.hero-stats{display:flex;gap:36px;justify-content:center;margin:38px 0;flex-wrap:wrap}
.hero-stats div{display:flex;flex-direction:column}
.hero-stats b{font-size:26px;font-family:'Unbounded'}
.hero-stats span{color:var(--muted);font-size:13px}

/* превью "игры" */
.hero-preview{
  text-align:left;background:rgba(15,15,26,.85);
  border:1px solid var(--border);border-radius:20px;overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.5);max-width:860px;margin:0 auto;
}
.preview-bar{display:flex;align-items:center;gap:7px;padding:12px 16px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.02)}
.preview-bar i{width:11px;height:11px;border-radius:50%;background:#333}
.preview-bar i:nth-child(1){background:#f87171}.preview-bar i:nth-child(2){background:#fbbf24}.preview-bar i:nth-child(3){background:#34d399}
.preview-bar span{margin-left:10px;color:var(--muted);font-size:12px}
.preview-body{
  padding:26px;min-height:300px;
  background:
    radial-gradient(circle at 20% 30%,rgba(139,92,246,.18),transparent 50%),
    radial-gradient(circle at 80% 70%,rgba(34,211,238,.12),transparent 50%),
    linear-gradient(180deg,#0b0f1e,#07070d);
}
.mc-hud{display:flex;flex-direction:column;gap:90px}
.mc-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mc-row.center{justify-content:center}
.cross{font-size:26px;color:rgba(255,255,255,.7)}
.mc-card{
  background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.12);
  border-radius:10px;padding:10px 14px;font-size:13px;backdrop-filter:blur(6px);
}
.mc-card em{color:var(--accent2);font-style:normal}
.mc-card.target b{display:block;font-size:14px}
.hp{display:block;width:140px;height:6px;background:#222;border-radius:4px;margin:6px 0;overflow:hidden}
.hp i{display:block;height:100%;background:linear-gradient(90deg,#f43f5e,#fbbf24)}
.dist-t{color:var(--muted);font-size:11px}

/* секции */
.section{padding:70px 20px}
.eyebrow{color:var(--accent2);font-weight:700;text-transform:uppercase;letter-spacing:2px;font-size:13px;margin-bottom:8px}
.section h2{font-family:'Unbounded';font-size:clamp(26px,4vw,42px);line-height:1.15;margin-bottom:28px}

/* табы */
.tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:26px}
.tab{
  padding:10px 22px;border-radius:100px;border:1px solid var(--border);
  background:rgba(255,255,255,.03);color:var(--muted);cursor:pointer;font-weight:600;font-size:14px;transition:.2s;
}
.tab:hover{color:#fff;border-color:rgba(255,255,255,.25)}
.tab.active{background:#fff;color:#000;border-color:#fff}

/* сетка модулей */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.card{
  background:linear-gradient(180deg,var(--card2),var(--card));
  border:1px solid var(--border);border-radius:var(--radius);
  padding:20px;transition:.2s;position:relative;overflow:hidden;
}
.card:hover{transform:translateY(-4px);border-color:rgba(139,92,246,.5);box-shadow:0 16px 40px rgba(0,0,0,.4)}
.card h3{font-size:16px;margin-bottom:6px}
.card p{color:var(--muted);font-size:13px;margin-bottom:14px;min-height:40px}
.card.pop{animation:pop .3s ease}
@keyframes pop{from{transform:scale(.96);opacity:.4}}
.tag{font-size:11px;font-weight:700;padding:4px 12px;border-radius:100px;letter-spacing:1px;text-transform:uppercase}
.tag-hud{background:rgba(34,211,238,.14);color:#67e8f9;border:1px solid rgba(34,211,238,.3)}
.tag-vis{background:rgba(139,92,246,.16);color:#c4b5fd;border:1px solid rgba(139,92,246,.35)}
.tag-util{background:rgba(52,211,153,.14);color:#6ee7b7;border:1px solid rgba(52,211,153,.3)}
.tag-ui{background:rgba(139,92,246,.16);color:#c4b5fd;border:1px solid rgba(139,92,246,.35)}
.tag-combat{background:rgba(244,63,94,.14);color:#fda4af;border:1px solid rgba(244,63,94,.35)}
.tag-world{background:rgba(52,211,153,.14);color:#6ee7b7;border:1px solid rgba(52,211,153,.3)}
.tag-cam{background:rgba(251,191,36,.13);color:#fcd34d;border:1px solid rgba(251,191,36,.35)}
.tag-cos{background:rgba(244,114,182,.14);color:#f9a8d4;border:1px solid rgba(244,114,182,.35)}
.tag-soc{background:rgba(96,165,250,.14);color:#93c5fd;border:1px solid rgba(96,165,250,.35)}

/* шаги */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.step{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:26px}
.step-num{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-weight:800;
  background:linear-gradient(135deg,var(--accent),var(--accent2));margin-bottom:16px;
}
.step h3{margin-bottom:8px}
.step p{color:var(--muted);font-size:14px;margin-bottom:14px}
.step code{display:block;background:#000;border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-size:12px;color:var(--green)}

/* старт */
.start-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-bottom:22px}
.start-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:26px}
.start-card .ico{font-size:30px}
.start-card h3{margin:12px 0 6px}
.start-card p{color:var(--muted);font-size:14px}

/* CTA */
.cta{
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  background:linear-gradient(135deg,rgba(124,58,237,.25),rgba(34,211,238,.15));
  border:1px solid rgba(139,92,246,.35);border-radius:22px;padding:32px;
}
.cta h3{font-family:'Unbounded';font-size:24px;margin-bottom:6px}
.cta p{color:var(--muted);font-size:14px}
.cta-btns{display:flex;gap:12px;flex-wrap:wrap}

/* футер */
.footer{border-top:1px solid var(--border);padding:26px 0;color:var(--muted);font-size:13px}
.footer-inner{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.footer a{color:#c4b5fd;text-decoration:none}

/* ===== Модалки входа / регистрации (как на скрине) ===== */
.modal-overlay{
  position:fixed;inset:0;z-index:100;display:none;
  align-items:center;justify-content:center;padding:18px;
  background:rgba(0,0,0,.7);backdrop-filter:blur(8px);
}
.modal-overlay.show{display:flex}
.auth-modal{
  display:flex;width:min(920px,100%);min-height:560px;overflow:hidden;
  background:#101016;border:1px solid rgba(255,255,255,.08);
  border-radius:28px;box-shadow:0 40px 120px rgba(0,0,0,.6);
  animation:modalIn .25s ease;
}
@keyframes modalIn{from{transform:translateY(16px) scale(.98);opacity:0}}
.auth-left{position:relative;width:44%;min-height:560px;overflow:hidden}
.auth-left-bg{
  position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(10,10,20,.15),rgba(10,10,20,.88)),
    radial-gradient(circle at 30% 20%,#3b4a6b 0%,transparent 55%),
    radial-gradient(circle at 70% 35%,#5a4a6b 0%,transparent 50%),
    linear-gradient(180deg,#2a2a3f 0%,#1a1626 45%,#0d0c14 100%);
}
.auth-left-bg::before{ /* пиксельные "дома" */
  content:'';position:absolute;inset:auto 0 0 0;height:62%;
  background:
    linear-gradient(#3a2e22 0 0) 8% 55%/14% 40% no-repeat,
    linear-gradient(#2e2620 0 0) 26% 50%/18% 48% no-repeat,
    linear-gradient(#3a2e22 0 0) 70% 52%/16% 46% no-repeat,
    linear-gradient(#2e2620 0 0) 88% 58%/12% 38% no-repeat,
    radial-gradient(circle at 20% 20%,rgba(255,255,255,.25) 0 2px,transparent 3px),
    radial-gradient(circle at 60% 12%,rgba(255,255,255,.2) 0 2px,transparent 3px);
  opacity:.9;filter:blur(.3px);
}
.auth-left-bg.reg{filter:hue-rotate(25deg)}
.auth-left-content{position:absolute;left:0;right:0;bottom:0;padding:36px 34px}
.auth-left-title{font-size:26px;line-height:1.25;font-weight:800}
.auth-dots{display:flex;gap:8px;margin-top:22px}
.auth-dots span{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.22)}
.auth-dots span.active{background:#fff}
.auth-right{position:relative;flex:1;padding:56px 52px;display:flex;flex-direction:column;justify-content:center}
.auth-close{
  position:absolute;top:18px;right:22px;background:none;border:none;
  color:#6b6b85;font-size:22px;cursor:pointer;transition:.2s;
}
.auth-close:hover{color:#fff}
.auth-right h2{font-size:30px;font-weight:800;margin-bottom:6px}
.auth-sub{font-weight:700;font-size:15px;margin-bottom:34px;color:#e8e8ef}
.auth-input{
  width:100%;padding:16px 20px;margin-bottom:16px;border-radius:16px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);
  color:var(--text);font-size:14px;outline:none;transition:.2s;font-family:inherit;
}
.auth-input::placeholder{color:#55556e}
.auth-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(139,92,246,.2)}
.pass-wrap{position:relative}
.pass-wrap .auth-input{padding-right:52px}
.eye{
  position:absolute;right:8px;top:8px;width:38px;height:38px;border-radius:12px;
  background:none;border:none;cursor:pointer;font-size:18px;opacity:.6;transition:.2s;
}
.eye:hover{opacity:1}
.auth-btn{width:100%;padding:16px;border-radius:16px;font-size:16px;margin-top:8px}
.auth-links{display:flex;justify-content:space-between;align-items:center;margin-top:26px;font-size:14px;color:#6b6b85;flex-wrap:wrap;gap:8px}
.auth-links a{color:#fff;text-decoration:none;font-weight:600}
.auth-links a.muted{color:#6b6b85;font-weight:400}
.auth-links a:hover{text-decoration:underline}
.auth-links.single{justify-content:flex-start}
.auth-links.single.center{justify-content:center}
/* Восстановление пароля — узкая модалка по центру как на скрине */
.forgot-modal{
  position:relative;width:min(480px,100%);
  background:#101016;border:1px solid rgba(255,255,255,.08);
  border-radius:28px;box-shadow:0 40px 120px rgba(0,0,0,.6);
  padding:48px 42px 36px;text-align:center;
  animation:modalIn .25s ease;max-height:92vh;overflow-y:auto;
}
.forgot-modal h2{font-size:30px;font-weight:800;line-height:1.2;margin-bottom:12px}
.forgot-sub{color:#d6d6e2;font-size:15px;font-weight:500;margin-bottom:30px}
.forgot-modal .auth-btn{margin-top:14px}
.forgot-modal .btn-outline{border-color:rgba(139,92,246,.4)}
.tg-hint{color:var(--muted);font-size:13px;margin-bottom:16px;line-height:1.7}
.tg-hint a{color:#c4b5fd;font-weight:600}
/* Сообщения форм + состояние шапки */
.form-msg{min-height:20px;font-size:13px;margin:2px 0 8px;color:transparent}
.form-msg.err{color:#f87171}
.form-msg.ok{color:#34d399}
.auth-btn:disabled{opacity:.6;cursor:wait;transform:none}
.user-chip{max-width:220px;overflow:hidden;text-overflow:ellipsis}
/* ===== Профиль ===== */
.profile-wrap{max-width:760px;padding-top:56px;padding-bottom:80px}
.profile-hello{font-size:clamp(28px,5vw,44px);font-weight:800;margin-bottom:34px}
.profile-name{color:#4ade80}
.profile-title{font-size:clamp(20px,3.4vw,30px);font-weight:800;margin-bottom:18px}
.profile-card{background:rgba(255,255,255,.02);border:1px solid var(--border);border-radius:20px;padding:8px 28px}
.profile-card.center{text-align:center;padding:48px 28px}
.profile-card.center h2{margin-bottom:10px}
.p-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid rgba(255,255,255,.07);font-size:15px}
.p-row:last-child{border-bottom:none}
.p-row span{color:#6b6b85}
.p-row b{font-weight:600;text-align:right;word-break:break-all}
.p-row .role{color:#8b5cf6}
.p-edit{background:none;border:none;color:#6b6b85;cursor:pointer;font-size:16px;margin-left:6px}
.p-edit:hover{color:#fff}
.ok-text{color:#4ade80}
.muted-text{color:#6b6b85}
.profile-card a{color:#c4b5fd;font-weight:600;text-decoration:none}
.profile-card a:hover{text-decoration:underline}
.pass-form{margin-top:16px;display:flex;flex-direction:column;gap:4px;max-width:420px}
/* ===== Админ / модер-панели ===== */
.admin-wrap{max-width:1080px;padding-top:48px;padding-bottom:80px}
.admin-title{font-family:'Unbounded';font-size:clamp(24px,4vw,36px);margin-bottom:8px}
.admin-sub{margin-bottom:20px}
.admin-bar{display:flex;gap:14px;align-items:center;margin:20px 0 10px;flex-wrap:wrap}
.admin-search{max-width:340px;margin-bottom:0}
.table-scroll{overflow-x:auto;border:1px solid var(--border);border-radius:16px}
.admin-table{width:100%;border-collapse:collapse;font-size:13px;min-width:760px}
.admin-table th,.admin-table td{padding:12px 14px;text-align:left;border-bottom:1px solid rgba(255,255,255,.06)}
.admin-table th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:1px;background:rgba(255,255,255,.02)}
.admin-table tr:hover td{background:rgba(139,92,246,.05)}
.email-cell{word-break:break-all}
.actions{white-space:nowrap}
.mini-btn{padding:7px 12px;border-radius:9px;font-size:12px;font-weight:700;cursor:pointer;border:1px solid transparent;margin:2px;transition:.15s}
.mini-btn.danger{background:rgba(244,63,94,.14);color:#fda4af;border-color:rgba(244,63,94,.4)}
.mini-btn.danger:hover{background:rgba(244,63,94,.3)}
.mini-btn.warn{background:rgba(251,191,36,.12);color:#fcd34d;border-color:rgba(251,191,36,.4)}
.mini-btn.warn:hover{background:rgba(251,191,36,.28)}
.mini-btn.ok{background:rgba(52,211,153,.12);color:#6ee7b7;border-color:rgba(52,211,153,.4)}
.mini-btn.ok:hover{background:rgba(52,211,153,.28)}
.badge{font-size:10px;font-weight:800;padding:4px 10px;border-radius:100px;letter-spacing:1px}
.b-red{background:rgba(244,63,94,.16);color:#fda4af;border:1px solid rgba(244,63,94,.4)}
.b-yellow{background:rgba(251,191,36,.14);color:#fcd34d;border:1px solid rgba(251,191,36,.4)}
.role-sel{background:#1a1a26;color:#fff;border:1px solid var(--border);border-radius:9px;padding:7px 10px;font-size:12px;cursor:pointer}
/* баннер заморозки */
.freeze-banner{display:none;background:rgba(251,191,36,.1);border:1px solid rgba(251,191,36,.4);color:#fcd34d;border-radius:14px;padding:12px 18px;margin:18px auto 0;max-width:1120px;font-size:14px;text-align:center}
.panel-links{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
@media(max-width:760px){
  .auth-modal{flex-direction:column;min-height:auto;max-height:92vh;overflow-y:auto}
  .auth-left{width:100%;min-height:200px}
  .auth-left-title{font-size:20px}
  .auth-right{padding:32px 24px}
}
@media(max-width:760px){
  .nav{
    position:fixed;top:68px;right:0;left:0;background:#0d0d17;
    flex-direction:column;padding:20px;gap:16px;text-align:center;
    border-bottom:1px solid var(--border);display:none;
  }
  .nav.open{display:flex}
  .header-actions .btn-ghost{display:none}
  .header-actions{margin-left:0}
  .burger{display:flex}
  .mc-hud{gap:40px}
}
