:root {
  --bg: #07111b;
  --bg-2: #0b1825;
  --card: rgba(11, 24, 37, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef7ff;
  --muted: #b7cadb;
  --gold-1: #ffd64b;
  --gold-2: #ff9d00;
  --cyan-1: #61f0ff;
  --cyan-2: #0cc8ff;
  --green: #6aff7a;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --container: min(1200px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(18, 74, 123, 0.45), transparent 32%),
    linear-gradient(180deg, #08131e 0%, #050b12 100%);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
code {
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}

.container { width: var(--container); margin: 0 auto; position: relative; z-index: 2; }
.section { padding: 110px 0; position: relative; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #dff8ff;
  background: rgba(12, 200, 255, .12);
  border: 1px solid rgba(97, 240, 255, .24);
  box-shadow: inset 0 0 24px rgba(97, 240, 255, .06);
}

h1, h2, h3, p { margin: 0; }
h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: .95;
  margin-bottom: 18px;
  text-transform: uppercase;
  text-shadow: 0 6px 24px rgba(0,0,0,.45);
}
h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  margin-bottom: 20px;
}
h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
p { color: var(--muted); line-height: 1.7; }

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.glow-cyan { box-shadow: 0 0 0 1px rgba(97, 240, 255, .16), 0 30px 80px rgba(12, 200, 255, .18); }
.glow-gold { box-shadow: 0 0 0 1px rgba(255, 214, 75, .16), 0 30px 80px rgba(255, 157, 0, .18); }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}
.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: .65;
}
.orb-1 {
  width: 360px;
  height: 360px;
  top: 70px;
  left: -90px;
  background: rgba(12, 200, 255, .20);
  animation: floaty 9s ease-in-out infinite;
}
.orb-2 {
  width: 400px;
  height: 400px;
  right: -120px;
  top: 320px;
  background: rgba(255, 157, 0, .18);
  animation: floaty 11s ease-in-out infinite reverse;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 11, 18, .52);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
}
.brand img { height: 54px; width: auto; }
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav a {
  color: #dfeffc;
  font-weight: 700;
  transition: .25s ease;
}
.nav a:hover { color: white; transform: translateY(-1px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 44px; padding: 0 18px; }
.btn-solid {
  color: #191400;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 12px 30px rgba(255, 157, 0, .28);
}
.btn-glass {
  color: white;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 70px 0 90px;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,9,14,.86) 0%, rgba(4,9,14,.56) 45%, rgba(4,9,14,.76) 100%),
    linear-gradient(180deg, rgba(4,9,14,.30), rgba(4,9,14,.85));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 34px;
}
.hero-text {
  max-width: 700px;
  font-size: 19px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat-card {
  border-radius: 20px;
  padding: 18px;
}
.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #daf8ff;
}
.stat-card span {
  color: white;
  font-weight: 700;
}
.hero-side { display: flex; justify-content: center; }
.mascot-wrap {
  width: min(100%, 560px);
  border-radius: 34px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.mascot-wrap::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(97, 240, 255, .34), transparent 70%);
}
.mascot { position: relative; z-index: 2; animation: floaty 6s ease-in-out infinite; }

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  border-radius: 24px;
  padding: 26px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  font-size: 26px;
  background: linear-gradient(180deg, rgba(255,214,75,.22), rgba(12,200,255,.16));
  border: 1px solid rgba(255,255,255,.12);
}

.split-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: center;
}
.reverse-grid { grid-template-columns: 1.05fr .95fr; }
.image-card {
  border-radius: 30px;
  padding: 16px;
  overflow: hidden;
}
.image-card img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.hint { color: #d1e1ef; }
.steps {
  margin: 26px 0 0;
  padding: 26px 26px 26px 44px;
  border-radius: 26px;
}
.steps li { margin-bottom: 14px; color: #eaf4fd; line-height: 1.65; }
.steps li:last-child { margin-bottom: 0; }
.steps strong { color: white; }

.join-box {
  border-radius: 32px;
  padding: 36px;
  text-align: center;
}
.ip-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 26px 0 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
#server-ip {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: .03em;
}
.join-note { max-width: 720px; margin: 0 auto; }

.site-footer {
  padding: 28px 0 50px;
  color: #b1c5d8;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .hero-grid,
  .split-grid,
  .reverse-grid,
  .feature-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 48px;
  }
}

@media (max-width: 640px) {
  .section { padding: 84px 0; }
  .brand img { height: 40px; }
  .join-box,
  .feature-card,
  .mascot-wrap,
  .steps,
  .image-card { border-radius: 24px; }
  .join-box { padding: 26px; }
  .footer-wrap { flex-direction: column; }
  .btn,
  .btn-small { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1 1 100%; }
}

.steps a{
  display:inline-block;
  padding:4px 10px;
  margin:0 2px;
  color:#10151f;
  font-weight:800;
  text-decoration:none;
  border-radius:999px;
  background:linear-gradient(135deg,#ffd54a 0%,#ff9f1a 100%);
  box-shadow:0 8px 22px rgba(255,166,0,.28);
  border:1px solid rgba(255,255,255,.28);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.steps a:hover{
  transform:translateY(-1px) scale(1.03);
  box-shadow:0 12px 28px rgba(255,166,0,.38);
  filter:brightness(1.03);
}

.steps a:active{
  transform:translateY(0) scale(.99);
}


.map-showcase{
  padding-top: 30px;
}

.map-lead{
  max-width: 900px;
  margin: 14px auto 0;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.7;
}

.map-card{
  margin-top: 26px;
  padding: 18px;
  border-radius: 28px;
  overflow: hidden;
}

.map-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.map-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.08em;
  font-size:13px;
  color:#07111f;
  background:linear-gradient(135deg,#63e6ff 0%,#7cf7c9 100%);
  box-shadow:0 10px 26px rgba(73,227,255,.22);
}

.map-frame-wrap{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  min-height: 720px;
}

.map-frame{
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
  background: #0b1220;
}

@media (max-width: 900px){
  .map-frame-wrap,
  .map-frame{
    min-height: 560px;
    height: 560px;
  }

  .map-lead{
    font-size: 16px;
  }
}

@media (max-width: 640px){
  .map-frame-wrap,
  .map-frame{
    min-height: 460px;
    height: 460px;
  }
}

.brand img{
  height: 72px !important;
  width: auto !important;
  max-height: none !important;
  display: block !important;
  transform: scaleY(1.38);
  transform-origin: left center;
}

@media (max-width: 768px){
  .brand img{
    height: 56px !important;
    transform: scaleY(1.26);
    transform-origin: left center;
  }
}


.server-status-card{
  margin: 18px auto 20px;
  max-width: 760px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.server-status-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.server-status-title{
  font-size: 20px;
  font-weight: 900;
  color:#fff;
  letter-spacing:.02em;
}

.server-status-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  line-height:1;
  border:1px solid rgba(255,255,255,.12);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.server-status-badge:hover{
  transform:translateY(-1px);
}

.status-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  display:inline-block;
  box-shadow:0 0 0 6px rgba(255,255,255,.05);
}

.status-online{
  color:#dfffea;
  background:linear-gradient(135deg, rgba(31,184,94,.26), rgba(20,120,64,.22));
  box-shadow:0 12px 26px rgba(31,184,94,.16);
}

.status-online .status-dot{
  background:#39e27d;
  box-shadow:0 0 14px rgba(57,226,125,.9), 0 0 0 6px rgba(57,226,125,.12);
}

.status-offline{
  color:#ffe4e4;
  background:linear-gradient(135deg, rgba(220,68,68,.28), rgba(140,34,34,.22));
  box-shadow:0 12px 26px rgba(220,68,68,.14);
}

.status-offline .status-dot{
  background:#ff5d5d;
  box-shadow:0 0 14px rgba(255,93,93,.85), 0 0 0 6px rgba(255,93,93,.12);
}

.status-loading{
  color:#fff6dc;
  background:linear-gradient(135deg, rgba(255,184,0,.24), rgba(255,140,0,.20));
  box-shadow:0 12px 26px rgba(255,184,0,.14);
}

.status-loading .status-dot{
  background:#ffd54a;
  box-shadow:0 0 14px rgba(255,213,74,.8), 0 0 0 6px rgba(255,213,74,.12);
}

.server-status-meta{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.server-status-address{
  font-size:16px;
  font-weight:800;
  color:#9fe8ff;
}

.server-status-players{
  font-size:15px;
  font-weight:700;
  color:rgba(255,255,255,.88);
}

@media (max-width: 640px){
  .server-status-title{
    font-size:18px;
  }

  .server-status-address,
  .server-status-players{
    font-size:14px;
  }
}


.top-server-status{
  display:flex;
  align-items:center;
  gap:10px;
  margin-right: 16px;
}

.top-server-status-label{
  color: rgba(255,255,255,.92);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.top-server-status-indicator{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position: relative;
  flex: 0 0 16px;
}

.top-server-status-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display:block;
}

.top-status-online .top-server-status-dot{
  background:#39e27d;
  box-shadow:0 0 0 0 rgba(57,226,125,.75);
  animation: topStatusPulseGreen 1.8s infinite;
}

.top-status-offline .top-server-status-dot{
  background:#ff5d5d;
  box-shadow:0 0 0 0 rgba(255,93,93,.72);
  animation: topStatusPulseRed 1.8s infinite;
}

.top-status-loading .top-server-status-dot{
  background:#ffd54a;
  box-shadow:0 0 0 0 rgba(255,213,74,.72);
  animation: topStatusPulseYellow 1.8s infinite;
}

@keyframes topStatusPulseGreen{
  0%{ box-shadow:0 0 0 0 rgba(57,226,125,.78); }
  70%{ box-shadow:0 0 0 12px rgba(57,226,125,0); }
  100%{ box-shadow:0 0 0 0 rgba(57,226,125,0); }
}

@keyframes topStatusPulseRed{
  0%{ box-shadow:0 0 0 0 rgba(255,93,93,.78); }
  70%{ box-shadow:0 0 0 12px rgba(255,93,93,0); }
  100%{ box-shadow:0 0 0 0 rgba(255,93,93,0); }
}

@keyframes topStatusPulseYellow{
  0%{ box-shadow:0 0 0 0 rgba(255,213,74,.78); }
  70%{ box-shadow:0 0 0 12px rgba(255,213,74,0); }
  100%{ box-shadow:0 0 0 0 rgba(255,213,74,0); }
}

@media (max-width: 1100px){
  .top-server-status{
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 6px 0 0;
  }
}

@media (max-width: 768px){
  .top-server-status-label{
    font-size: 14px;
  }
}


.status-online .status-dot{
  animation: bottomStatusPulseGreen 1.8s infinite !important;
}

.status-offline .status-dot{
  animation: bottomStatusPulseRed 1.8s infinite !important;
}

.status-loading .status-dot{
  animation: bottomStatusPulseYellow 1.8s infinite !important;
}

@keyframes bottomStatusPulseGreen{
  0%{ box-shadow:0 0 0 0 rgba(57,226,125,.78), 0 0 0 6px rgba(57,226,125,.12); }
  70%{ box-shadow:0 0 0 12px rgba(57,226,125,0), 0 0 0 6px rgba(57,226,125,0); }
  100%{ box-shadow:0 0 0 0 rgba(57,226,125,0), 0 0 0 6px rgba(57,226,125,0); }
}

@keyframes bottomStatusPulseRed{
  0%{ box-shadow:0 0 0 0 rgba(255,93,93,.78), 0 0 0 6px rgba(255,93,93,.12); }
  70%{ box-shadow:0 0 0 12px rgba(255,93,93,0), 0 0 0 6px rgba(255,93,93,0); }
  100%{ box-shadow:0 0 0 0 rgba(255,93,93,0), 0 0 0 6px rgba(255,93,93,0); }
}

@keyframes bottomStatusPulseYellow{
  0%{ box-shadow:0 0 0 0 rgba(255,213,74,.78), 0 0 0 6px rgba(255,213,74,.12); }
  70%{ box-shadow:0 0 0 12px rgba(255,213,74,0), 0 0 0 6px rgba(255,213,74,0); }
  100%{ box-shadow:0 0 0 0 rgba(255,213,74,0), 0 0 0 6px rgba(255,213,74,0); }
}


.telegram-section{
  padding-top: 18px;
}

.telegram-widget{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  align-items:center;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(0, 212, 255, .14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 136, 255, .12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.telegram-widget-left{
  display:flex;
  justify-content:center;
  align-items:center;
}

.telegram-icon-wrap{
  width: 120px;
  height: 120px;
  border-radius: 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, #27a7e7 0%, #0a84ff 100%);
  box-shadow: 0 18px 40px rgba(39,167,231,.35);
  position: relative;
  overflow: hidden;
}

.telegram-icon-wrap::after{
  content:"";
  position:absolute;
  inset:auto -20px -30px auto;
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,.14);
  border-radius: 50%;
  filter: blur(2px);
}

.telegram-icon{
  position:relative;
  z-index:1;
  color:#fff;
  font-size: 52px;
  font-weight: 900;
  transform: rotate(-10deg);
}

.telegram-widget-right h2{
  margin: 6px 0 12px;
}

.telegram-text{
  max-width: 760px;
  color: rgba(255,255,255,.84);
  font-size: 18px;
  line-height: 1.7;
}

.telegram-meta{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.telegram-link-box{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.telegram-link-label{
  color: rgba(255,255,255,.7);
  font-weight: 700;
}

.telegram-link-box a{
  color: #7edbff;
  font-weight: 900;
  text-decoration: none;
}

.telegram-link-box a:hover{
  text-decoration: underline;
}

.telegram-btn{
  white-space: nowrap;
}

@media (max-width: 900px){
  .telegram-widget{
    grid-template-columns: 1fr;
    text-align:center;
    padding: 24px;
  }

  .telegram-widget-left{
    justify-content:center;
  }

  .telegram-meta{
    justify-content:center;
  }

  .telegram-link-box{
    justify-content:center;
  }

  .telegram-text{
    font-size: 16px;
  }
}


.tg-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.tg-float-toggle{
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #27a7e7 0%, #0a84ff 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(39,167,231,.40);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tg-float-toggle:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 52px rgba(39,167,231,.48);
  filter: brightness(1.03);
}

.tg-float-toggle-icon{
  font-size: 30px;
  font-weight: 900;
  transform: rotate(-10deg);
  line-height: 1;
}

.tg-float-panel{
  position: absolute;
  right: 0;
  bottom: 84px;
  width: 340px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(39,167,231,.18), transparent 32%),
    linear-gradient(180deg, rgba(22,28,44,.96), rgba(11,17,31,.96));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(14px);
}

.tg-float.is-open .tg-float-panel{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tg-float-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tg-float-head-left{
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-float-avatar{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #27a7e7 0%, #0a84ff 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  transform: rotate(-10deg);
  box-shadow: 0 12px 28px rgba(39,167,231,.28);
}

.tg-float-title{
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.tg-float-subtitle{
  margin-top: 3px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  font-weight: 700;
}

.tg-float-close{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.tg-float-close:hover{
  background: rgba(255,255,255,.12);
  transform: scale(1.05);
}

.tg-float-preview{
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.tg-float-preview-badge{
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(39,167,231,.14);
  color: #7edbff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.tg-float-preview-text{
  margin-top: 12px;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.6;
}

.tg-float-subscribe{
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}

@media (max-width: 640px){
  .tg-float{
    right: 14px;
    bottom: 14px;
  }

  .tg-float-toggle{
    width: 62px;
    height: 62px;
  }

  .tg-float-panel{
    width: min(320px, calc(100vw - 28px));
    right: 0;
    bottom: 78px;
  }
}


.tg-float-toggle{
  padding: 0;
  overflow: hidden;
}

.tg-float-toggle-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tg-float-avatar{
  padding: 0;
  overflow: hidden;
  transform: none;
}

.tg-float-avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tg-float-panel{
  width: 380px;
}

.tg-float-embed-wrap{
  padding: 10px;
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
}

.tg-float-embed-wrap iframe,
.tg-float-embed-wrap .telegram-post{
  max-width: 100% !important;
}

.tg-float-preview{
  background: rgba(255,255,255,.04);
}

@media (max-width: 640px){
  .tg-float-panel{
    width: min(360px, calc(100vw - 28px));
  }
}


.tg-float-panel{
  width: 390px;
}

.tg-float-embed-wrap{
  padding: 10px;
  min-height: 260px;
  max-height: 460px;
  overflow: auto;
}

.tg-float-posts{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-float-post{
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.tg-float-posts-loading{
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.6;
}

.tg-float-post iframe,
.tg-float-post .telegram-post{
  max-width: 100% !important;
  margin: 0 auto !important;
}

@media (max-width: 640px){
  .tg-float-panel{
    width: min(360px, calc(100vw - 28px));
  }
}


.tg-float-panel{
  width: 420px;
}

.tg-float-embed-wrap{
  padding: 0;
  min-height: 420px;
  max-height: 420px;
  overflow: hidden;
  border-radius: 18px;
}

.tg-channel-frame{
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  background: #0b1220;
}

@media (max-width: 640px){
  .tg-float-panel{
    width: min(390px, calc(100vw - 28px));
  }

  .tg-float-embed-wrap,
  .tg-channel-frame{
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }
}
