/* =========================================================
   MatchMate — landing page + auth (standalone stylesheet)
   Единственный стиль для index.html. Ничего не наследует
   от app-стилей, поэтому ничего не «плывёт».
   ========================================================= */

:root{
  --bg:#05070f;
  --bg-soft:#080d19;
  --panel:rgba(255,255,255,.035);
  --panel-strong:rgba(12,18,32,.86);
  --line:rgba(255,255,255,.09);
  --line-soft:rgba(255,255,255,.06);
  --text:#eaf1ff;
  --text-dim:#9fb0c9;
  --muted:#7d8da3;
  --accent:#3fd7f5;
  --accent-2:#7b6bff;
  --accent-soft:rgba(63,215,245,.14);
  --grad:linear-gradient(135deg,#48dcf7 0%,#6f7bff 60%,#9a63ff 100%);
  --radius-lg:24px;
  --radius:16px;
  --radius-sm:12px;
  --shadow:0 24px 60px rgba(0,0,0,.55);
  --container:1180px;
  --header-h:72px;
  --font:'Inter','Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body.home{
  margin:0;
  min-height:100%;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  background-image:
    radial-gradient(1100px 620px at 10% 0,rgba(63,215,245,.10),transparent 62%),
    radial-gradient(900px 560px at 95% 3%,rgba(123,107,255,.12),transparent 64%);
  background-repeat:no-repeat;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

body.home.nav-open{overflow:hidden}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit}

h1,h2,h3,h4{margin:0;line-height:1.15;letter-spacing:-.02em;font-weight:800}
p{margin:0}

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:20px;
}

/* ---------- Buttons ---------- */
.mm-btn{
  --btn-h:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:var(--btn-h);
  padding:0 26px;
  border-radius:14px;
  border:1px solid transparent;
  font-size:15px;
  font-weight:700;
  letter-spacing:.01em;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,opacity .18s ease;
}
.mm-btn:active{transform:translateY(1px)}
.mm-btn-primary{
  background:var(--grad);
  color:#04070f;
  font-weight:800;
  box-shadow:0 14px 34px rgba(72,190,247,.28);
}
.mm-btn-primary:hover{box-shadow:0 18px 44px rgba(72,190,247,.42);transform:translateY(-1px)}
.mm-btn-ghost{
  background:rgba(255,255,255,.05);
  border-color:var(--line);
  color:var(--text);
}
.mm-btn-ghost:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.18)}
.mm-btn-lg{--btn-h:56px;font-size:16px;padding:0 32px}
.mm-btn-block{width:100%}

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:120;
  height:var(--header-h);
  display:flex;
  align-items:center;
  border-bottom:1px solid transparent;
  transition:background .25s ease,border-color .25s ease,backdrop-filter .25s ease;
}
.site-header.scrolled{
  background:rgba(6,9,18,.82);
  border-bottom-color:var(--line-soft);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  height:100%;
}
.home-brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  font-weight:900;
  font-size:19px;
  letter-spacing:.16em;
}
.home-brand img{width:34px;height:34px;filter:drop-shadow(0 0 14px rgba(63,215,245,.5))}
.home-brand span{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}

.nav{display:flex;align-items:center;gap:26px;margin-left:auto}
.header-links{display:flex;align-items:center;gap:26px}
.header-links a{
  font-size:14.5px;
  font-weight:600;
  color:var(--text-dim);
  transition:color .18s ease;
}
.header-links a:hover{color:var(--text)}
.home-nav-actions{display:flex;align-items:center;gap:10px}
.home-login-link{
  display:inline-flex;
  align-items:center;
  height:44px;
  padding:0 26px;
  border-radius:12px;
  font-size:15px;
  font-weight:800;
  color:#04070f;
  border:1px solid transparent;
  background:var(--grad);
  box-shadow:0 10px 26px rgba(72,190,247,.24);
  transition:transform .18s ease,box-shadow .18s ease;
}
.home-login-link:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(72,190,247,.36)}
.home-profile-link{
  display:inline-flex;
  align-items:center;
  height:42px;
  padding:0 20px;
  border-radius:12px;
  font-size:14.5px;
  font-weight:800;
  color:#04070f;
  background:var(--grad);
  box-shadow:0 10px 26px rgba(72,190,247,.24);
  transition:transform .18s ease,box-shadow .18s ease;
}
.home-profile-link:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(72,190,247,.36)}

.menu-toggle{
  display:none;
  width:44px;height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  padding:0;
  position:relative;
}
.menu-toggle span{
  position:absolute;left:12px;right:12px;height:2px;border-radius:2px;background:var(--text);
  transition:transform .22s ease,opacity .18s ease;
}
.menu-toggle span:nth-child(1){top:15px}
.menu-toggle span:nth-child(2){top:21px}
.menu-toggle span:nth-child(3){top:27px}
.menu-toggle.active span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.menu-toggle.active span:nth-child(2){opacity:0}
.menu-toggle.active span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

.backdrop{
  position:fixed;inset:0;z-index:110;
  background:rgba(3,6,12,.66);
  opacity:0;visibility:hidden;
  transition:opacity .25s ease,visibility .25s ease;
}
.backdrop.show{opacity:1;visibility:visible}

/* ---------- Layout ---------- */
.home-main{position:relative;z-index:1}
.mm-section{padding:84px 0}
.mm-section-head{max-width:640px;margin:0 auto 44px;text-align:center}
.mm-kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 14px;border-radius:999px;
  background:var(--accent-soft);
  border:1px solid rgba(63,215,245,.22);
  color:#9ce8fb;
  font-size:12.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  margin-bottom:16px;
}
.mm-section-head h2{font-size:clamp(28px,4vw,40px)}
.mm-section-head p{margin-top:14px;color:var(--text-dim);font-size:16.5px}

/* =========================================================
   HERO
   ========================================================= */
.mm-hero{
  position:relative;
  display:flex;
  align-items:center;
  min-height:calc(100svh - var(--header-h));
  padding:40px 0 56px;
  overflow:hidden;
}
.mm-hero-inner{width:100%}
.mm-hero-media{
  position:absolute;
  left:0;right:0;
  top:calc(var(--header-h) * -1);
  height:calc(100% + var(--header-h));
  background:url(/1343590.jpg) center 22%/cover no-repeat;
  opacity:.4;
}
.mm-hero-aurora{
  position:absolute;inset:0;
  background:
    radial-gradient(720px 420px at 78% 32%,rgba(123,107,255,.28),transparent 65%),
    radial-gradient(560px 360px at 8% 20%,rgba(63,215,245,.2),transparent 65%),
    linear-gradient(180deg,rgba(5,7,15,.35) 0%,rgba(5,7,15,.8) 68%,var(--bg) 100%);
}
.mm-hero-inner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:center;
  gap:56px;
}
.mm-hero-copy{max-width:600px}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  padding:8px 16px;border-radius:999px;
  background:rgba(10,16,28,.6);
  border:1px solid rgba(63,215,245,.24);
  color:#bfe9f7;
  font-size:13.5px;font-weight:700;
  margin-bottom:24px;
}
.hero-eyebrow span{
  width:8px;height:8px;border-radius:50%;
  background:#41e0a3;
  box-shadow:0 0 0 4px rgba(65,224,163,.16);
  animation:mm-pulse 2.2s ease-in-out infinite;
}
@keyframes mm-pulse{0%,100%{opacity:1}50%{opacity:.35}}

.hero-title{
  font-size:clamp(38px,5.6vw,64px);
  line-height:1.06;
  letter-spacing:-.035em;
}
.hero-title em{
  font-style:normal;
  background:var(--grad);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero-subtitle{
  margin-top:20px;
  font-size:clamp(16px,1.8vw,18.5px);
  color:var(--text-dim);
  max-width:520px;
}
.hero-actions{
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  margin-top:34px;
}
.home-how-link{
  display:inline-flex;align-items:center;gap:8px;
  font-size:15px;font-weight:700;color:var(--text-dim);
  transition:color .18s ease,gap .18s ease;
}
.home-how-link:hover{color:var(--accent);gap:12px}

.home-benefits{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:38px;
  max-width:540px;
}
.home-benefit{
  display:flex;flex-direction:column;align-items:flex-start;gap:10px;
  padding:16px 14px;
  border-radius:var(--radius);
  background:rgba(9,14,26,.62);
  border:1px solid var(--line-soft);
  font-size:13.5px;font-weight:700;
  transition:border-color .2s ease,transform .2s ease;
}
.home-benefit:hover{border-color:rgba(63,215,245,.28);transform:translateY(-2px)}
.home-benefit-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:11px;
  background:var(--accent-soft);
  border:1px solid rgba(63,215,245,.2);
}

/* ---------- Demo card ---------- */
.mm-demo-stage{position:relative;display:flex;justify-content:center}
.mm-live-badge{
  position:absolute;top:-22px;right:6px;z-index:4;
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 15px;border-radius:999px;
  background:rgba(8,13,24,.9);
  border:1px solid var(--line);
  font-size:12.5px;font-weight:700;color:#cfe0f4;
  box-shadow:0 10px 26px rgba(0,0,0,.4);
}
.mm-live-badge span{
  width:7px;height:7px;border-radius:50%;background:#41e0a3;
  box-shadow:0 0 0 4px rgba(65,224,163,.16);
  animation:mm-pulse 2.2s ease-in-out infinite;
}
.mm-preview-shadow{
  display:none;
  position:absolute;
  inset:24px -14px -18px 14px;
  border-radius:26px;
  background:rgba(10,16,28,.5);
  border:1px solid var(--line-soft);
  transform:rotate(3deg);
  z-index:0;
}
.mm-preview-shadow strong{display:none}

.mm-preview{
  position:relative;
  z-index:2;
  width:100%;
  max-width:430px;
  min-height:432px;
  padding:22px;
  border-radius:26px;
  background:linear-gradient(180deg,rgba(16,23,40,.96),rgba(9,13,24,.98));
  border:1px solid rgba(255,255,255,.1);
  box-shadow:var(--shadow);
}
.mm-preview-top{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line-soft);
}
.mm-preview-top strong{
  font-size:34px;font-weight:900;letter-spacing:-.03em;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.mm-preview-top > span{
  display:flex;flex-direction:column;align-items:flex-end;gap:2px;
  font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim);
}
.mm-preview-top > span b{font-size:14px;font-weight:800;color:var(--text);letter-spacing:0;text-transform:none}

.mm-profile-card{display:flex;align-items:center;gap:14px;padding:18px 0 14px}
.mm-avatar{
  width:56px;height:56px;flex:none;
  border-radius:16px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  overflow:hidden;
}
.mm-avatar img{width:34px;height:34px;object-fit:contain}
.mm-profile-copy{min-width:0}
.mm-profile-name{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.mm-profile-name strong{font-size:17px;font-weight:800}
.mm-player-status{
  font-size:11px;font-weight:700;
  padding:3px 9px;border-radius:999px;
  color:#5ee6ab;background:rgba(65,224,163,.12);border:1px solid rgba(65,224,163,.22);
}
.mm-game-line{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:13.5px;color:var(--text-dim);font-weight:600}
.mm-game-line i{width:4px;height:4px;border-radius:50%;background:var(--text-dim);display:inline-block}

.mm-profile-note{
  margin:0 0 14px;
  padding:13px 15px;
  border-radius:14px;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line-soft);
  font-size:13.5px;color:#c3d2e6;
}
.mm-profile-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.mm-profile-tags span{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 12px;border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line-soft);
  font-size:12.5px;font-weight:600;color:#c3d2e6;
}
.mm-profile-tags svg{width:14px;height:14px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.mm-preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mm-action-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  height:48px;border-radius:14px;cursor:pointer;
  font-size:14px;font-weight:800;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.mm-action-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.mm-btn-skip:hover{background:rgba(255,255,255,.08);transform:translateY(-1px)}
.mm-btn-like{
  border-color:transparent;
  background:var(--grad);
  color:#04070f;
  box-shadow:0 12px 28px rgba(72,190,247,.26);
}
.mm-btn-like svg{fill:currentColor;stroke:none}
.mm-btn-like:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(72,190,247,.4)}

/* match teaser inside demo card */
.mm-match-result{text-align:center;padding:6px 0 2px}
.mm-match-kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 14px;border-radius:999px;
  background:rgba(65,224,163,.12);border:1px solid rgba(65,224,163,.24);
  color:#5ee6ab;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;
}
.mm-match-kicker span{width:7px;height:7px;border-radius:50%;background:#41e0a3}
.mm-match-avatars{display:flex;align-items:center;justify-content:center;gap:14px;margin:20px 0 14px}
.mm-match-avatar{
  width:64px;height:64px;border-radius:20px;display:grid;place-items:center;
  background:rgba(255,255,255,.05);border:1px solid var(--line);overflow:hidden;
}
.mm-match-avatar img{width:38px;height:38px;object-fit:contain}
.mm-match-link{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:var(--grad);
}
.mm-match-link svg{width:20px;height:20px;fill:#04070f}
.mm-match-score{display:flex;flex-direction:column;align-items:center;gap:2px;margin-bottom:12px}
.mm-match-score span{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim);font-weight:700}
.mm-match-score strong{font-size:32px;font-weight:900;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.mm-match-score small{font-size:12.5px;color:#5ee6ab;font-weight:700}
.mm-match-result h4{font-size:20px;margin-bottom:8px}
.mm-match-result p{font-size:13.5px;color:var(--text-dim);margin-bottom:18px}
.mm-match-actions{display:grid;gap:10px}
.mm-match-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  height:48px;border-radius:14px;
  background:var(--grad);color:#04070f;font-weight:800;font-size:14px;
}
.mm-match-cta svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mm-match-reset{
  height:44px;border-radius:14px;cursor:pointer;
  background:transparent;border:1px solid var(--line);color:var(--text-dim);
  font-size:13.5px;font-weight:700;
  transition:color .18s ease,border-color .18s ease;
}
.mm-match-reset:hover{color:var(--text);border-color:rgba(255,255,255,.2)}

/* =========================================================
   STATS STRIP
   ========================================================= */
.mm-stats{padding:0 0 10px}
.mm-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding:26px;
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg,rgba(14,20,36,.8),rgba(8,12,22,.86));
  border:1px solid var(--line-soft);
}
.mm-stat{text-align:center}
.mm-stat strong span{font:inherit;color:inherit;background:none}
.mm-stat strong{
  display:block;font-size:clamp(26px,3.2vw,34px);font-weight:900;letter-spacing:-.03em;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.mm-stat > span{display:block;margin-top:4px;font-size:13.5px;color:var(--text-dim);font-weight:600}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.mm-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.mm-step{
  position:relative;
  padding:28px 24px;
  border-radius:var(--radius-lg);
  background:var(--panel);
  border:1px solid var(--line-soft);
  transition:border-color .2s ease,transform .2s ease,background .2s ease;
}
.mm-step:hover{border-color:rgba(63,215,245,.26);transform:translateY(-3px);background:rgba(255,255,255,.05)}
.mm-step-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:46px;height:46px;border-radius:14px;
  font-size:17px;font-weight:900;
  color:#04070f;background:var(--grad);
  margin-bottom:18px;
}
.mm-step h3{font-size:19px;margin-bottom:9px}
.mm-step p{font-size:14.5px;color:var(--text-dim)}

/* =========================================================
   GAMES
   ========================================================= */
.mm-games-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.mm-game-card{
  display:flex;flex-direction:column;align-items:center;gap:12px;
  padding:24px 14px;
  border-radius:var(--radius);
  background:var(--panel);
  border:1px solid var(--line-soft);
  text-align:center;
  transition:transform .2s ease,border-color .2s ease,background .2s ease;
}
.mm-game-card:hover{transform:translateY(-4px);border-color:rgba(63,215,245,.3);background:rgba(255,255,255,.055)}
.mm-game-card img{width:44px;height:44px;object-fit:contain}
.mm-game-card strong{font-size:14.5px;font-weight:700}
.mm-game-card small{font-size:12px;color:var(--text-dim);font-weight:600}

/* =========================================================
   FEATURES
   ========================================================= */
.mm-features{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.mm-feature{
  padding:26px 24px;
  border-radius:var(--radius-lg);
  background:var(--panel);
  border:1px solid var(--line-soft);
  transition:border-color .2s ease,transform .2s ease;
}
.mm-feature:hover{border-color:rgba(123,107,255,.3);transform:translateY(-3px)}
.mm-feature-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:48px;height:48px;border-radius:14px;
  background:var(--accent-soft);
  border:1px solid rgba(63,215,245,.2);
  margin-bottom:16px;
}
.mm-feature-icon svg{width:22px;height:22px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mm-feature h3{font-size:17.5px;margin-bottom:8px}
.mm-feature p{font-size:14.5px;color:var(--text-dim)}

/* =========================================================
   FAQ
   ========================================================= */
.mm-faq{max-width:820px;margin-inline:auto;display:grid;gap:12px}
.mm-faq details{
  border-radius:var(--radius);
  background:var(--panel);
  border:1px solid var(--line-soft);
  overflow:hidden;
  transition:border-color .2s ease;
}
.mm-faq details[open]{border-color:rgba(63,215,245,.26);background:rgba(255,255,255,.05)}
.mm-faq summary{
  list-style:none;
  cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:19px 22px;
  font-size:16px;font-weight:700;
}
.mm-faq summary::-webkit-details-marker{display:none}
.mm-faq summary::after{
  content:"+";
  flex:none;
  width:28px;height:28px;border-radius:9px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line-soft);
  font-size:17px;font-weight:700;color:var(--accent);
  transition:transform .2s ease;
}
.mm-faq details[open] summary::after{content:"−";transform:rotate(180deg)}
.mm-faq p{padding:0 22px 20px;font-size:14.5px;color:var(--text-dim)}

/* =========================================================
   CTA BAND
   ========================================================= */
.mm-cta-band{
  position:relative;
  overflow:hidden;
  padding:52px 40px;
  border-radius:var(--radius-lg);
  text-align:center;
  background:linear-gradient(135deg,rgba(63,215,245,.14),rgba(123,107,255,.16));
  border:1px solid rgba(123,107,255,.24);
}
.mm-cta-band h2{font-size:clamp(26px,3.6vw,36px)}
.mm-cta-band p{margin:14px auto 26px;max-width:520px;color:#cfdcee;font-size:16px}

/* =========================================================
   SEO CLOUD
   ========================================================= */
.seo-link-cloud{
  width:100%;max-width:var(--container);
  margin:0 auto;
  padding:26px 20px 0;
}
.seo-link-cloud-inner{
  padding:24px;
  border-radius:var(--radius-lg);
  background:rgba(8,12,22,.6);
  border:1px solid var(--line-soft);
}
.seo-link-cloud h2{font-size:18px;margin-bottom:14px;color:var(--text-dim);font-weight:700}
.seo-link-cloud-links{display:flex;flex-wrap:wrap;gap:8px}
.seo-link-cloud a{
  display:inline-flex;align-items:center;
  min-height:34px;padding:0 13px;border-radius:999px;
  background:rgba(63,215,245,.06);
  border:1px solid rgba(63,215,245,.12);
  color:rgba(224,240,255,.72);
  font-size:12.5px;font-weight:700;
  transition:color .18s ease,border-color .18s ease,background .18s ease;
}
.seo-link-cloud a:hover{color:#f7fcff;border-color:rgba(63,215,245,.34);background:rgba(63,215,245,.12)}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  position:relative;z-index:1;
  margin-top:80px;
  padding:56px 0 32px;
  border-top:1px solid var(--line-soft);
  background:rgba(4,6,13,.7);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr repeat(3,minmax(0,1fr));
  gap:36px;
}
.footer-about p{margin-top:14px;font-size:14px;color:var(--text-dim);max-width:300px}
.footer-socials{display:flex;gap:10px;margin-top:18px}
.footer-socials a{
  display:grid;place-items:center;
  width:40px;height:40px;border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line-soft);
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.footer-socials a:hover{border-color:rgba(63,215,245,.34);background:rgba(63,215,245,.1);transform:translateY(-2px)}
.footer-socials svg{width:19px;height:19px;fill:var(--text-dim)}
.footer-socials a:hover svg{fill:var(--accent)}
.footer-col h4{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim);margin-bottom:16px}
.footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:11px}
.footer-col a{font-size:14.5px;color:#c2cfe2;transition:color .18s ease}
.footer-col a:hover{color:var(--accent)}
.footer-bottom{
  margin-top:44px;padding-top:22px;
  border-top:1px solid var(--line-soft);
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  font-size:13.5px;color:var(--text-dim);
}

/* =========================================================
   AUTH MODAL (вход / регистрация)
   ========================================================= */
[hidden]{display:none !important}

.modal{
  position:fixed;inset:0;z-index:1000;
  display:none;
  align-items:center;justify-content:center;
  padding:20px;
}
.modal.show{display:flex}
.modal-backdrop{
  position:absolute;inset:0;
  background:rgba(2,4,10,.78);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  animation:mm-fade .22s ease;
}
@keyframes mm-fade{from{opacity:0}to{opacity:1}}
@keyframes mm-rise{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}

.modal-dialog{
  position:relative;
  z-index:2;
  width:100%;
  max-width:440px;
  max-height:min(92vh,860px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:30px 30px 26px;
  border-radius:26px;
  background:linear-gradient(180deg,rgba(16,22,38,.98),rgba(8,11,20,.99));
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 40px 90px rgba(0,0,0,.6);
  animation:mm-rise .26s cubic-bezier(.2,.8,.3,1);
  scrollbar-width:thin;
}
.modal-dialog::-webkit-scrollbar{width:8px}
.modal-dialog::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:8px}

.modal-close{
  position:absolute;top:16px;right:16px;
  width:36px;height:36px;
  display:grid;place-items:center;
  border-radius:11px;cursor:pointer;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line-soft);
  color:var(--text-dim);
  font-size:15px;line-height:1;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.modal-close:hover{background:rgba(255,255,255,.1);color:var(--text);border-color:rgba(255,255,255,.2)}

.modal-tag{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:900;letter-spacing:.18em;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;
  margin-bottom:14px;
}
.modal-header h3{font-size:26px;letter-spacing:-.02em}
.modal-subtitle{margin-top:8px;font-size:14px;color:var(--text-dim);line-height:1.5}

/* сегментированный переключатель */
.auth-mode-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  margin:20px 0 4px;
  padding:4px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line-soft);
}
.auth-mode-btn{
  height:40px;
  border:0;border-radius:10px;
  background:transparent;
  color:var(--text-dim);
  font-size:14px;font-weight:700;
  cursor:pointer;
  transition:background .2s ease,color .2s ease,box-shadow .2s ease;
}
.auth-mode-btn:hover{color:var(--text)}
.auth-mode-btn.active{
  background:var(--grad);
  color:#04070f;
  font-weight:800;
  box-shadow:0 6px 18px rgba(72,190,247,.24);
}

.modal-form{display:flex;flex-direction:column;gap:16px;margin-top:20px}

/* прогресс регистрации */
.auth-wizard-head{display:grid;gap:8px}
.modal-auth-login .auth-wizard-head{display:none}
.wizard-step-label{
  font-size:11.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--text-dim);
}
.wizard-progress{
  height:5px;border-radius:999px;
  background:rgba(255,255,255,.07);
  overflow:hidden;
}
.wizard-progress-fill{
  display:block;height:100%;width:16%;
  border-radius:999px;
  background:var(--grad);
  transition:width .32s cubic-bezier(.4,0,.2,1);
}

/* соцкнопки */
.auth-social-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.auth-social-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  height:48px;border-radius:13px;
  font-size:14px;font-weight:700;
  border:1px solid var(--line);
  background:rgba(255,255,255,.045);
  color:var(--text);
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.auth-social-btn:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.2);transform:translateY(-1px)}
.auth-social-btn img,.auth-social-btn svg{width:18px;height:18px;flex:none}

.auth-separator{
  display:flex;align-items:center;gap:14px;
  color:var(--text-dim);
  font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
}
.auth-separator::before,.auth-separator::after{
  content:"";flex:1;height:1px;background:var(--line-soft);
}

/* поля */
.field{display:flex;flex-direction:column;gap:8px}
.field > span{font-size:13.5px;font-weight:700;color:#d5e2f3}
.field-input{position:relative;display:flex;align-items:center}
.field-input input{
  width:100%;
  height:52px;
  padding:0 16px;
  border-radius:13px;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line);
  color:var(--text);
  font-size:15px;font-family:inherit;
  outline:none;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.field-input input::placeholder{color:rgba(159,176,201,.55)}
.field-input input:hover{border-color:rgba(255,255,255,.16)}
.field-input input:focus{
  border-color:rgba(63,215,245,.55);
  background:rgba(63,215,245,.05);
  box-shadow:0 0 0 4px rgba(63,215,245,.1);
}
.field-password .field-input input{padding-right:96px}
.field-toggle{
  position:absolute;right:7px;top:50%;transform:translateY(-50%);
  height:36px;padding:0 13px;
  border-radius:9px;cursor:pointer;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line-soft);
  color:var(--text-dim);
  font-size:12.5px;font-weight:700;
  transition:color .18s ease,background .18s ease;
}
.field-toggle:hover{color:var(--text);background:rgba(255,255,255,.11)}
.field-hint{font-size:12px;color:var(--text-dim);line-height:1.4}
.field-hint.is-error{color:#ff8095}
.modal-auth-login .field-hint{display:none}

/* кнопки формы */
.auth-submit-row{display:flex;flex-wrap:wrap;gap:10px}
.auth-submit-row .btn{flex:1 1 140px}
.auth-submit-row .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:52px;
  border-radius:13px;
  border:1px solid transparent;
  font-size:15px;font-weight:800;font-family:inherit;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
.auth-submit-row .btn.neon{
  background:var(--grad);
  color:#04070f;
  box-shadow:0 14px 32px rgba(72,190,247,.26);
}
.auth-submit-row .btn.neon:hover{transform:translateY(-1px);box-shadow:0 18px 40px rgba(72,190,247,.4)}
.auth-submit-row .btn.ghost{
  background:rgba(255,255,255,.05);
  border-color:var(--line);
  color:var(--text);
}
.auth-submit-row .btn.ghost:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2)}
#wizard-next{
  background:var(--grad);
  color:#04070f;
  border-color:transparent;
  box-shadow:0 14px 32px rgba(72,190,247,.26);
}
#wizard-next:hover{transform:translateY(-1px);box-shadow:0 18px 40px rgba(72,190,247,.4)}
#wizard-back{flex:0 0 auto;padding:0 26px}
.btn-glow{display:none}
.btn:disabled{opacity:.6;cursor:default;transform:none !important}

.auth-actions-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding-top:2px;
}
.auth-inline-switch,.auth-inline-link{
  background:none;border:0;padding:0;cursor:pointer;
  font-size:13.5px;font-weight:700;font-family:inherit;
  color:var(--accent);
  transition:color .18s ease;
}
.auth-inline-link{color:var(--text-dim)}
.auth-inline-switch:hover{color:#8ceaff}
.auth-inline-link:hover{color:var(--text)}

.modal-note{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line-soft);
  font-size:12.5px;color:var(--text-dim);
  text-align:center;
  line-height:1.5;
}
.modal-note:empty{display:none}
.modal-auth-login .modal-note{display:none}

.auth-feedback{font-size:13px;color:#ff8095;text-align:center}
.auth-feedback.is-success{color:#5ee6ab}
.auth-feedback:empty{display:none}

/* ---------- шаг: аватарка ---------- */
.auth-avatar-step{gap:12px}
.auth-avatar-picker{
  display:flex;align-items:center;gap:15px;
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.035);
  border:1px dashed rgba(255,255,255,.16);
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease;
}
.auth-avatar-picker:hover{border-color:rgba(63,215,245,.45);background:rgba(63,215,245,.05)}
.auth-avatar-picker input[type=file]{display:none}
.auth-avatar-preview{
  width:64px;height:64px;flex:none;
  border-radius:18px;
  display:grid;place-items:center;
  overflow:hidden;
  background:var(--grad);
  color:#04070f;
  font-size:24px;font-weight:900;
}
.auth-avatar-preview img{width:100%;height:100%;object-fit:cover}
.auth-avatar-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.auth-avatar-copy strong{font-size:14.5px;font-weight:700}
.auth-avatar-copy small{font-size:12px;color:var(--text-dim);line-height:1.4}
.auth-avatar-copy small.is-error{color:#ff8095}
.auth-avatar-clear{
  align-self:flex-start;
  background:none;border:0;padding:0;cursor:pointer;
  font-size:13px;font-weight:700;color:var(--text-dim);font-family:inherit;
}
.auth-avatar-clear:hover{color:#ff8095}

/* ---------- шаг: выбор игры ---------- */
.auth-games-step{gap:12px}
.game-select-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.game-pick-card{
  position:relative;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  min-height:112px;
  padding:16px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line);
  cursor:pointer;
  text-align:center;
  transition:border-color .2s ease,background .2s ease,transform .18s ease;
}
.game-pick-card:hover{border-color:rgba(255,255,255,.22);transform:translateY(-2px)}
.game-pick-card input{position:absolute;opacity:0;pointer-events:none}
.game-pick-card strong{font-size:13.5px;font-weight:700;line-height:1.3}
.game-pick-icon{
  display:grid;place-items:center;
  width:44px;height:44px;border-radius:13px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line-soft);
  font-size:20px;color:var(--accent);
}
.game-pick-icon-img{width:26px;height:26px;object-fit:contain}
.game-pick-card-later{grid-column:1 / -1;flex-direction:row;min-height:64px;justify-content:flex-start;gap:14px;text-align:left}
.game-pick-card-later .game-pick-icon{width:38px;height:38px;border-radius:11px}
.game-pick-card:has(input:checked){
  border-color:rgba(63,215,245,.6);
  background:rgba(63,215,245,.09);
  box-shadow:0 0 0 3px rgba(63,215,245,.1);
}
.game-pick-card:has(input:checked)::after{
  content:"✓";
  position:absolute;top:8px;right:10px;
  font-size:13px;font-weight:900;color:var(--accent);
}

/* ---------- шаг: ранги ---------- */
.auth-ranks-step{gap:12px}
.rank-grid{display:grid;gap:16px}
.rank-head{
  font-size:11.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--text-dim);margin-bottom:10px;
}
.rank-palette{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
  gap:8px;
  max-height:186px;
  overflow-y:auto;
  padding-right:4px;
  scrollbar-width:thin;
}
.rank-palette::-webkit-scrollbar{width:6px}
.rank-palette::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:6px}
.rank-option{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  min-height:74px;
  padding:9px 6px;
  border-radius:12px;cursor:pointer;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line-soft);
  color:var(--text-dim);
  font-size:10.5px;font-weight:700;font-family:inherit;line-height:1.25;text-align:center;
  transition:border-color .18s ease,background .18s ease,color .18s ease;
}
.rank-option img{width:28px;height:28px;object-fit:contain}
.rank-option:hover{border-color:rgba(255,255,255,.2);color:var(--text)}
.rank-option.active{
  border-color:rgba(63,215,245,.6);
  background:rgba(63,215,245,.1);
  color:var(--text);
  box-shadow:0 0 0 3px rgba(63,215,245,.09);
}
.rank-option .game-pick-icon{width:28px;height:28px;border-radius:9px;font-size:13px;border:0;background:rgba(255,255,255,.06)}

/* ---------- модалка восстановления ---------- */
.recovery-dialog{max-width:400px}
.auth-recovery-actions{display:grid;gap:10px}
.auth-recovery-actions .btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:52px;border-radius:13px;border:1px solid transparent;
  font-size:15px;font-weight:800;font-family:inherit;cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.auth-recovery-actions .btn.neon{background:var(--grad);color:#04070f;box-shadow:0 14px 32px rgba(72,190,247,.26)}
.auth-recovery-actions .btn.neon:hover{transform:translateY(-1px)}
.auth-recovery-actions .btn.ghost{background:rgba(255,255,255,.05);border-color:var(--line);color:var(--text)}
.auth-recovery-actions .btn.ghost:hover{background:rgba(255,255,255,.1)}

/* fallback для браузеров без :has() */
.game-pick-card input:checked ~ .game-pick-icon{
  background:rgba(63,215,245,.16);
  border-color:rgba(63,215,245,.45);
}
.game-pick-card input:checked ~ strong{color:var(--accent)}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width:1080px){
  .mm-hero-inner{grid-template-columns:1fr;gap:34px;justify-items:center;text-align:center}
  .mm-hero-copy{max-width:640px}
  .hero-subtitle{margin-inline:auto}
  .hero-actions{justify-content:center}
  .home-benefits{margin-inline:auto}
  .home-benefit{align-items:center;text-align:center}
  .mm-demo-stage{width:100%;max-width:430px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px}
  .footer-about{grid-column:1 / -1}
  .footer-about p{max-width:none}
}

@media (max-width:900px){
  .mm-features,.mm-steps{grid-template-columns:1fr 1fr}
  .mm-stats-grid{grid-template-columns:1fr 1fr;gap:22px}
}

@media (max-width:820px){
  .menu-toggle{display:none}
  .home-login-link{height:42px;padding:0 20px;font-size:14.5px}
}

@media (max-width:760px){
  .mm-section{padding:64px 0}
  .mm-section-head{margin-bottom:34px}
  .mm-hero{min-height:calc(100svh - var(--header-h));padding:28px 0 40px}
  .hero-actions .mm-btn{width:100%}
  .hero-actions{gap:12px;margin-top:26px}
  .home-how-link{width:100%;justify-content:center}
  .home-benefits{display:none}
  .mm-features,.mm-steps{grid-template-columns:1fr}
  .mm-games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mm-game-card{padding:18px 10px}
  .mm-cta-band{padding:40px 22px}
  .mm-live-badge{top:-16px;right:0;font-size:11.5px;padding:7px 12px}
  .footer-grid{grid-template-columns:1fr;gap:28px}
  .footer-bottom{flex-direction:column;text-align:center;gap:10px}
  .seo-link-cloud-inner{padding:20px}
}

@media (max-width:560px){
  .container{padding-inline:16px}
  .mm-preview{padding:18px;border-radius:22px;min-height:0}
  .mm-preview-shadow{display:none}
  .mm-stats-grid{grid-template-columns:1fr 1fr;padding:20px 14px;gap:18px}
  .modal{padding:0;align-items:flex-end}
  .modal-dialog{
    max-width:none;
    max-height:94vh;
    padding:26px 20px calc(22px + env(safe-area-inset-bottom));
    border-radius:24px 24px 0 0;
    border-bottom:0;
    animation:mm-sheet .28s cubic-bezier(.2,.8,.3,1);
  }
  @keyframes mm-sheet{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
  .modal-header h3{font-size:23px}
  .field-input input{height:50px;font-size:16px}
  .auth-submit-row .btn,#wizard-next,#wizard-back{height:50px}
  .game-select-grid{gap:8px}
  .rank-palette{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
}


/* =========================================================
   Модалка розыгрыша и тост подписки (перенесено из styles.css,
   т.к. главная больше не подключает общий app-стиль)
   ========================================================= */
/* Telegram Valorant giveaway modal v95. */
.mm-giveaway-modal {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mm-giveaway-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mm-giveaway-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mm-giveaway-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 40px));
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(390px, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(255, 91, 103, 0.28);
  border-radius: 20px;
  color: #eef7ff;
  background: #080d18;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68), 0 0 46px rgba(255, 64, 82, 0.11);
}
.mm-giveaway-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  color: #eff8ff;
  background: rgba(4, 9, 18, 0.72);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.mm-giveaway-close:focus-visible {
  outline: 2px solid #ff6d7a;
  outline-offset: 2px;
}
.mm-giveaway-media {
  position: relative;
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  background: #13080d;
  border-right: 1px solid rgba(255, 91, 103, 0.14);
}
.mm-giveaway-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 14, 0.76) 100%);
}
.mm-giveaway-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
  object-position: center;
}
.mm-giveaway-prize {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: #fff;
  background: rgba(8, 10, 18, 0.82);
  font-size: 14px;
  font-weight: 900;
}
.mm-giveaway-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 54px 46px 34px;
}
.mm-giveaway-kicker {
  margin-bottom: 12px;
  color: #ff6d7a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.mm-giveaway-copy h2 {
  margin: 0;
  max-width: 390px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}
.mm-giveaway-copy p {
  margin: 14px 0 20px;
  color: rgba(226, 239, 252, 0.72);
  font-size: 16px;
  line-height: 1.55;
}
.mm-giveaway-bonus {
  width: 100%;
  margin: 0 0 18px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(105, 211, 255, 0.2);
  border-radius: 12px;
  color: rgba(220, 242, 255, 0.7);
  background: rgba(74, 188, 235, 0.07);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}
.mm-giveaway-bonus strong { color: #91e4ff; font-size: 14px; text-align: left; }
.mm-giveaway-bonus.is-claimed {
  color: #d9ffe9;
  border-color: rgba(83, 224, 148, 0.28);
  background: rgba(52, 190, 116, 0.10);
}
.mm-giveaway-bonus.is-claimed strong { color: #80f0b4; }
.mm-giveaway-cta {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  color: #06111c !important;
  background: #63d4ff;
  box-shadow: 0 14px 34px rgba(69, 191, 240, 0.24);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}
.mm-giveaway-telegram {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #168dcc;
  font-size: 14px;
}
.mm-giveaway-later {
  align-self: center;
  margin-top: 14px;
  padding: 5px 10px;
  border: 0;
  color: rgba(226, 239, 252, 0.58);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
body.mm-giveaway-open { overflow: hidden !important; }
@media (max-width: 680px){
.mm-giveaway-modal { padding: 12px; }
.mm-giveaway-dialog {
    width: min(420px, calc(100vw - 24px));
    min-height: 0;
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border-radius: 18px;
  }
.mm-giveaway-media {
    min-height: 190px;
    height: 190px;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 91, 103, 0.14);
  }
.mm-giveaway-media img { width: 100%; height: 190px; min-height: 190px; object-fit: cover; object-position: center 44%; }
.mm-giveaway-prize { left: 14px; bottom: 12px; min-height: 32px; padding: 0 11px; font-size: 13px; }
.mm-giveaway-copy { align-items: stretch; padding: 25px 20px 18px; text-align: left; }
.mm-giveaway-kicker { margin-bottom: 9px; font-size: 10px; }
.mm-giveaway-copy h2 { max-width: none; font-size: 28px; }
.mm-giveaway-copy p { margin: 12px 0 18px; font-size: 14px; line-height: 1.45; }
.mm-giveaway-bonus { margin: 0 0 15px; }
.mm-giveaway-cta { min-height: 50px; }
}
/* Telegram subscription success toast v95. */
.mm-tg-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: min(380px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(16, 216, 118, 0.35);
  border-radius: 16px;
  background: rgba(8, 14, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(16, 216, 118, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.4s ease;
}
.mm-tg-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.mm-tg-toast-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 216, 118, 0.18);
  color: #10d876;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(16, 216, 118, 0.2);
}
.mm-tg-toast-content {
  flex: 1 1 auto;
  min-width: 0;
}
.mm-tg-toast-content h3 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.mm-tg-toast-content p {
  margin: 0;
  color: rgba(215, 226, 244, 0.85);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 550;
}
.mm-tg-toast-close {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.mm-tg-toast-close:hover {
  color: #ffffff;
}
@media (max-width: 820px){
.mm-tg-toast {
    bottom: auto;
    top: 84px;
    right: 16px;
    left: 16px;
    width: auto;
    transform: translateY(-40px) scale(0.95);
  }
.mm-tg-toast.show {
    transform: translateY(0) scale(1);
  }
}
/* 1. Fix Promo Giveaway Telegram Modal z-index & backdrop so it covers 100% screen cleanly */
html body .mm-giveaway-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}
html body .mm-giveaway-modal:not(.show) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
html body .mm-giveaway-modal.show {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
html body .mm-giveaway-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(2, 6, 14, 0.82) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  z-index: 1 !important;
}
html body .mm-giveaway-dialog {
  position: relative !important;
  z-index: 2 !important;
  width: min(860px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 40px) !important;
  max-height: calc(100dvh - 40px) !important;
  overflow-y: auto !important;
  margin: auto !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9) !important;
}

/* компактный первый экран на телефоне */
@media (max-width:760px){
  .hero-eyebrow{margin-bottom:16px;padding:7px 14px;font-size:13px}
  .hero-title{font-size:clamp(32px,8.6vw,42px)}
  .hero-subtitle{margin-top:14px;font-size:15.5px}
  .mm-hero-inner{gap:24px}
  .mm-preview{padding:16px}
  .mm-preview-top{padding-bottom:12px}
  .mm-preview-top strong{font-size:30px}
  .mm-profile-card{padding:12px 0 10px}
  .mm-profile-note{margin-bottom:10px;padding:11px 13px}
  .mm-profile-tags{margin-bottom:12px}
  .mm-action-btn{height:46px}
}
