:root {
  --bg-base: #071326;
  --bg-card: rgba(11, 25, 48, 0.88);
  --bg-card-hover: rgba(18, 40, 76, 0.94);
  --text-main: #f1f6fc;
  --text-muted: #c2d2e6;
  --fox-blue: #1e88e5;
  --fox-cyan: #00b7ff;
  --fox-cyan-soft: rgba(0, 183, 255, 0.18);
  --discord: #5865f2;
  --online: #22c55e;
  --border: rgba(186, 214, 245, 0.24);
  --shadow: 0 16px 38px rgba(2, 8, 18, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Rubik", system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--fox-cyan);
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(0, 183, 255, 0.15);
  border: 1px solid rgba(0, 183, 255, 0.4);
  border-radius: 8px;
  padding: 5px 10px;
  color: #ffffff;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Фон скриншота из Minecraft + затемнение */
.mc-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #2c4a34;
  background-image:
    url("/img/bg-minecraft.jpg"),
    linear-gradient(180deg, #5b8fc9 0%, #87b7e3 42%, #4a7c44 42%, #3b6937 64%, #6e5239 64%, #4f3a27 100%);
  background-size: cover, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.03);
}

.mc-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 40%, rgba(6, 15, 29, 0.35), rgba(6, 15, 29, 0.68));
  pointer-events: none;
}

/* Шапка (квадрат 1) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 19, 38, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-main);
}

.brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fox-cyan);
  box-shadow: 0 0 14px rgba(0, 183, 255, 0.35);
}

.brand__name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  padding: 8px 15px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.nav__link.is-active {
  background: var(--fox-cyan-soft);
  color: var(--fox-cyan);
  border: 1px solid rgba(0, 183, 255, 0.35);
}

.nav__link--discord {
  color: #a5aeff;
}

.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ip-pill:hover {
  border-color: var(--fox-cyan);
  background: var(--bg-card-hover);
}

.ip-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  display: block;
}

/* Центральный блок главной (квадрат 2 по центру) */
.main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-center {
  width: 100%;
  padding: 48px 0;
}

.hero-center__inner {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(7, 19, 38, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 183, 255, 0.4);
  color: var(--fox-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  margin-bottom: 14px;
}

.hero__desc {
  color: #e6effa;
  font-size: 1.06rem;
  max-width: 580px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
  margin-bottom: 24px;
}

.connect-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  text-align: left;
}

.connect-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.connect-card__ip-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.connect-card__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.connect-card__ip {
  font-size: 1.02rem;
  user-select: all;
}

.connect-card__bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-muted);
}

.server-status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
}

.server-status.is-online {
  color: #4ade80;
}

.server-status.is-online .server-status__dot {
  background: var(--online);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.server-status.is-offline {
  color: #f87171;
}

.server-status.is-offline .server-status__dot {
  background: #ef4444;
}

.connect-card__ver {
  color: var(--text-muted);
  font-weight: 500;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__cta--centered {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--accent {
  background: linear-gradient(135deg, var(--fox-cyan) 0%, var(--fox-blue) 100%);
  color: #051122;
  box-shadow: 0 8px 22px rgba(0, 183, 255, 0.32);
}

.btn--ghost {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--fox-cyan);
  background: var(--bg-card-hover);
}

.btn--discord {
  background: var(--discord);
  color: #ffffff;
}

.btn--discord:hover {
  background: #4752c4;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--bg-card-hover);
  color: #ffffff;
  border: 1px solid var(--fox-cyan);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 740px) {
  .topbar__actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column