body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.main-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1rem 3rem;
  width: 100%;
  max-width: 680px;
}

/* ── Логотип ──────────────────────────────────────────────────────── */
.main-logo {
  max-width: min(560px, 88vw);
  height: auto;
  filter: drop-shadow(0 0 36px rgba(56,189,248,.45));
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Карточки меню ────────────────────────────────────────────────── */
.menu-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.75rem 1rem;
  background: rgba(10, 25, 60, 0.72);
  border: 1px solid rgba(56,189,248,.22);
  border-radius: 18px;
  text-decoration: none;
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  transition: transform .22s, border-color .22s, background .22s, box-shadow .22s;
  cursor: pointer;
  user-select: none;
}
.menu-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(56,189,248,.6);
  background: rgba(15, 40, 90, 0.85);
  box-shadow: 0 8px 30px rgba(30,100,220,.25);
}
.menu-card:active { transform: scale(.97); }

/* третья карточка — на всю ширину */
.menu-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  padding: 1.25rem 2rem;
  gap: 1.25rem;
}

.menu-card-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 8px rgba(56,189,248,.3));
}
.menu-card-img--small {
  width: 48px;
  height: 48px;
}

.menu-card-label {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  color: #bfdbfe;
}
.menu-card--wide .menu-card-label {
  font-size: 1.05rem;
}

/* ── Соцсети ──────────────────────────────────────────────────────── */
.social-row {
  display: flex;
  gap: .9rem;
}

.social-ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(10,25,60,.7);
  border: 1px solid rgba(56,189,248,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, border-color .2s, background .2s;
  overflow: hidden;
}
.social-ico img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.social-ico:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,.5);
  background: rgba(20,50,100,.8);
}

/* ── Адаптив ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .menu-cards { grid-template-columns: 1fr; }
  .menu-card--wide { grid-column: auto; flex-direction: column; }
}

/* ── Онлайн бар ───────────────────────────────────────────────────── */
.online-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(10, 25, 60, 0.7);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 99px;
  padding: .4rem 1.1rem;
  backdrop-filter: blur(8px);
}

.online-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.online-text {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
}

#online-count {
  color: #7dd3fc;
  font-weight: 700;
}

.menu-card-img--basket {
  filter: invert(1) drop-shadow(0 2px 8px rgba(56,189,248,.4));
}

.menu-card-img--basket {
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 8px rgba(56,189,248,.4));
}

/* ── Анимация счётчика онлайна ────────────────────────────────────── */
#online-count {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}

.online-digit {
  display: inline-block;
  animation: digitFlip .4s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes digitFlip {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.online-sep {
  color: rgba(255,255,255,0.25);
  margin: 0 8px;
  font-size: 0.9em;
}

.online-ip {
  color: rgba(255,255,255,0.75);
  font-size: 0.85em;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.online-ip:hover {
  color: #fff;
}

.online-ip.copied {
  color: #4caf50;
}
/* ── Онлайн: адрес сервера — кнопка, а не span ───────────────────── */
button.online-ip {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.85em;
}

/* Сервер не отвечает — индикатор краснеет. */
.online-dot--offline {
  background: #f44336;
  box-shadow: 0 0 6px #f44336;
}
