:root{
  --bg1:#0b1020;
  --bg2:#0b2a24;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.10);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.65);
  --border:rgba(255,255,255,.12);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 26px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(60,255,190,.12), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(120,160,255,.12), transparent 55%),
              linear-gradient(160deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

.bg{
  position:fixed; inset:-40px;
  background:
    radial-gradient(600px 320px at 15% 70%, rgba(0,255,170,.10), transparent 60%),
    radial-gradient(500px 280px at 75% 75%, rgba(130,160,255,.10), transparent 60%);
  filter: blur(30px);
  z-index:-1;
}

.wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 18px 34px;
}

.hero{
  padding: 26px 18px 10px;
  text-align:center;
}

.badge{
  display:inline-flex;
  padding: 8px 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13px;
  letter-spacing:.2px;
}

h1{
  margin: 14px 0 8px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
}

.subtitle{
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.cta-row{
  margin-top: 16px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  cursor:pointer;
  text-decoration:none;
  font-weight: 600;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.btn:active{ transform: translateY(0px); }

.btn.primary{
  background: linear-gradient(135deg, rgba(0,255,170,.18), rgba(130,160,255,.14));
  border-color: rgba(255,255,255,.18);
}
.btn.ghost{
  background: rgba(255,255,255,.04);
}

.grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  grid-column: span 6;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius2);
  padding: 16px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card h2{
  margin: 0 0 10px;
  font-size: 16px;
  color: rgba(255,255,255,.86);
  font-weight: 700;
}

.big{
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .2px;
}

.muted{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.motd{
  margin:0;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 64px;
}

.steps{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.86);
}
.steps li{ margin: 8px 0; }

.footer{
  margin-top: 18px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-size: 13px;
  flex-wrap:wrap;
}
.sep{ opacity:.5; }

.linklike{
  border:none;
  background:transparent;
  color: rgba(255,255,255,.82);
  cursor:pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toast{
  margin: 12px auto 0;
  max-width: 520px;
  min-height: 22px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
}

@media (max-width: 760px){
  .card{ grid-column: span 12; }
}

/* Мягкое зелёное "дыхание" для ONLINE */
.mc-online {
  font-weight: 900;
  color: #55ff55;
  animation: mcGreenPulse 1.6s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(85, 255, 85, 0.15);
}

@keyframes mcGreenPulse {
  0% {
    color: #3dcc3d;
    text-shadow: 0 0 6px rgba(61, 204, 61, 0.15);
  }
  50% {
    color: #7dff7d;
    text-shadow: 0 0 14px rgba(125, 255, 125, 0.35);
  }
  100% {
    color: #3dcc3d;
    text-shadow: 0 0 6px rgba(61, 204, 61, 0.15);
  }
}

/* OFFLINE */
.offline {
  font-weight: 900;
  color: #ff5555;
  text-shadow: 0 0 10px rgba(255, 85, 85, 0.12);
}
