body.site-home {
  min-height: 100vh;
}

body.auth-open {
  overflow: hidden;
}

body.auth-open .navbar,
body.auth-open .hero,
body.auth-open footer {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 42px) var(--page-pad) 96px;
  perspective: 1100px;
}

.hero-glass {
  --glass-shift-x: 0px;
  --glass-shift-y: 0px;
  width: min(100%, 860px);
  min-height: 500px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(143, 240, 170, 0.17), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(104, 199, 238, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035) 58%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(30px, 5vw, 58px);
  transform:
    translate3d(var(--glass-shift-x), var(--glass-shift-y), 0);
  transform-style: preserve-3d;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}

.hero-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.34), transparent 42%),
    radial-gradient(ellipse at 0% 50%, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(ellipse at 100% 50%, rgba(255, 255, 255, 0.10), transparent 34%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.hero-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 10%, transparent 90%, rgba(255, 255, 255, 0.20)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -22px 46px rgba(0, 0, 0, 0.22),
    inset 18px 0 42px rgba(255, 255, 255, 0.08),
    inset -18px 0 42px rgba(255, 255, 255, 0.08);
  opacity: 0.76;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  transform: translateZ(32px);
}

.server-status-fixed {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.server-status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 20, 0.54);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  padding: 0 13px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--warning);
}

.server-status-line.is-online .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(98, 217, 137, 0.16);
}

.server-status-line.is-offline .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 113, 113, 0.15);
}

.server-name {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.big-server-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, 640px);
  margin: 28px 0 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 46px rgba(0, 0, 0, 0.22);
  padding: 14px;
  color: var(--accent-strong);
  font-size: clamp(1.2rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0;
}

.big-server-ip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(143, 240, 170, 0.10), transparent 48%, rgba(104, 199, 238, 0.09));
  pointer-events: none;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.copy-btn:hover {
  border-color: var(--line-strong);
  background: rgba(98, 217, 137, 0.10);
}

.copy-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.copy-btn.copied {
  border-color: rgba(98, 217, 137, 0.7);
  color: var(--accent-strong);
}

.server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 690px;
}

.server-meta span,
.server-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.server-meta strong,
.server-meta a {
  color: var(--text-strong);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 22%, rgba(98, 217, 137, 0.12), transparent 28%),
    rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  animation: authOverlayIn 0.18s ease-out;
}

.auth-panel {
  width: min(100%, 460px);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025)),
    var(--surface-solid);
  box-shadow: var(--shadow);
  padding: 30px;
  animation: authPanelIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(143, 240, 170, 0.14), transparent 28%),
    linear-gradient(280deg, rgba(104, 199, 238, 0.12), transparent 32%);
  pointer-events: none;
}

.auth-panel > :not(.auth-close) {
  position: relative;
  z-index: 1;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 1.35rem;
}

.auth-close:hover {
  background: rgba(255, 113, 113, 0.16);
  color: var(--text-strong);
}

.auth-view h2 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 1.68rem;
  letter-spacing: 0;
}

.auth-view p {
  color: var(--muted);
}

.auth-view form,
.auth-actions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-view input[type="text"],
.auth-view input[type="password"] {
  min-height: 46px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.07);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.edition-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.16);
  padding: 5px;
}

.edition-toggle label {
  min-width: 0;
}

.edition-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.edition-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 800;
  transition: background 0.16s ease, color 0.16s ease;
}

.edition-toggle input:checked + span {
  background: rgba(98, 217, 137, 0.18);
  color: var(--text-strong);
  box-shadow: inset 0 0 0 1px rgba(143, 240, 170, 0.22);
}

.discord-consent {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
}

.discord-consent.requires-attention {
  border-color: rgba(255, 113, 113, 0.55);
}

.discord-btn {
  width: 100%;
  background:
    linear-gradient(135deg, rgba(104, 199, 238, 0.18), rgba(98, 217, 137, 0.10)),
    rgba(255, 255, 255, 0.06);
}

.discord-btn[aria-disabled="true"] {
  opacity: 0.58;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.password-toggle .eye-slash {
  opacity: 0;
}

.password-toggle.is-visible .eye-slash {
  opacity: 1;
}

.password-warning {
  display: block;
  color: var(--warning);
  font-size: 0.82rem;
}

.verify-box {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(143, 240, 170, 0.10), transparent),
    rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.verify-box span {
  color: var(--muted);
  font-size: 0.9rem;
}

.verify-box code {
  color: var(--accent-strong);
  font-size: 1.12rem;
  font-weight: 900;
  word-break: break-all;
}

@keyframes messageShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes authOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes authPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-message.shake {
  animation: messageShake 0.22s ease;
}

@media (max-width: 760px) {
  .hero {
    align-items: start;
    padding-top: 150px;
  }

  .hero-glass {
    min-height: 430px;
    padding: 28px 18px;
  }

  .server-status-fixed {
    position: static;
    margin-bottom: 24px;
  }

  .big-server-ip {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
  }

  .server-meta {
    flex-direction: column;
  }

  .auth-panel {
    padding: 28px 18px;
  }
}

@media (max-width: 420px) {
  .edition-toggle {
    grid-template-columns: 1fr;
  }
}

/* Backup reference polish, without the rotating glass sweep */
.hero {
  padding: calc(var(--nav-height) + 38px) var(--page-pad) 92px;
}

.hero-glass {
  width: min(100%, 1180px);
  min-height: 610px;
  place-items: center;
  padding: 104px clamp(28px, 5vw, 52px) 76px;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.070) 42%, rgba(255, 255, 255, 0.040)),
    radial-gradient(ellipse at 50% -8%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(circle at 22% 16%, rgba(104, 199, 238, 0.22), transparent 38%),
    radial-gradient(circle at 78% 18%, rgba(98, 217, 137, 0.18), transparent 34%),
    radial-gradient(circle at 54% 96%, rgba(98, 217, 137, 0.12), transparent 42%),
    rgba(8, 14, 24, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -34px 90px rgba(0, 0, 0, 0.20),
    inset 24px 0 70px rgba(255, 255, 255, 0.07),
    inset -24px 0 70px rgba(255, 255, 255, 0.07),
    var(--shadow);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  transition: transform 0.20s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-glass::before {
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.34), transparent 22%, transparent 74%, rgba(255, 255, 255, 0.14)),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.30), transparent 36%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.24), transparent 42%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-glass::after {
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% -4%, rgba(255, 255, 255, 0.36), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 11%, transparent 89%, rgba(255, 255, 255, 0.24)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.26));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -30px 68px rgba(0, 0, 0, 0.26),
    inset 26px 0 70px rgba(255, 255, 255, 0.09),
    inset -26px 0 70px rgba(255, 255, 255, 0.09);
  opacity: 0.86;
}

.hero-content {
  display: flex;
  width: 100%;
  max-width: 980px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.server-status-fixed {
  top: 30px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.server-status-line {
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 8px 22px rgba(0, 0, 0, 0.18);
  font-weight: 700;
}

.server-name {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(2.4rem, 5.2vw, 3rem);
  font-weight: 780;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.big-server-ip {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 0 30px;
  overflow: visible;
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  color: #ffffff;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.2rem, 8.4vw, 6rem);
  font-weight: 760;
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(104, 199, 238, 0.22),
    0 28px 90px rgba(0, 0, 0, 0.34);
}

.big-server-ip::before {
  content: none;
}

.copy-btn {
  width: auto;
  min-width: 158px;
  min-height: 56px;
  gap: 10px;
  padding: 0 26px;
  border-color: rgba(143, 240, 170, 0.46);
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.075)),
    linear-gradient(135deg, rgba(98, 217, 137, 0.38), rgba(104, 199, 238, 0.26));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(98, 217, 137, 0.16);
  font-size: 1rem;
  font-weight: 800;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.copy-btn:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.09)),
    linear-gradient(135deg, rgba(116, 227, 151, 0.46), rgba(104, 199, 238, 0.32));
}

.copy-btn.copied {
  border-color: rgba(98, 217, 137, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(104, 199, 238, 0.26), rgba(98, 217, 137, 0.30));
}

.server-meta {
  justify-content: center;
  margin-top: 32px;
  font-size: 0.94rem;
  font-weight: 650;
}

.server-meta span,
.server-meta a {
  justify-content: center;
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.server-meta strong {
  color: rgba(255, 245, 194, 0.96);
}

.server-meta a {
  color: rgba(104, 199, 238, 0.96);
}

.auth-overlay {
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 50% 8%, rgba(104, 199, 238, 0.18), transparent 34%),
    rgba(1, 4, 9, 0.58);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  animation-duration: 0.12s;
}

.auth-panel {
  width: min(462px, 100%);
  max-height: calc(100vh - 48px);
  overscroll-behavior: contain;
  padding: 32px;
  border-color: rgba(255, 255, 255, 0.20);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    rgba(12, 18, 29, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  animation-duration: 0.16s;
}

.auth-panel::before {
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.20), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(104, 199, 238, 0.13), transparent 34%);
}

.auth-close {
  top: 15px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.auth-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-view form,
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 0;
}

.auth-view h2 {
  max-width: calc(100% - 44px);
  color: #ffffff;
  font-size: 1.82rem;
  font-weight: 830;
  line-height: 1.14;
}

.auth-view p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.field-label {
  width: fit-content;
  pointer-events: none;
  user-select: none;
}

.auth-view input[type="text"],
.auth-view input[type="password"] {
  height: 52px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.12);
  color: #ffffff;
}

.auth-view input::placeholder {
  color: rgba(235, 244, 255, 0.42);
}

.auth-view input:focus {
  border-color: rgba(104, 199, 238, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(0, 0, 0, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 0 0 4px rgba(104, 199, 238, 0.13),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.check-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.check-row input {
  width: 16px;
  height: 16px;
}

.edition-toggle {
  --toggle-offset: 0px;
  position: relative;
  overflow: hidden;
  gap: 4px;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.16);
}

.edition-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 0;
  width: calc((100% - 12px) / 2);
  height: calc(100% - 8px);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07)),
    rgba(104, 199, 238, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 7px 16px rgba(64, 145, 235, 0.14);
  transform: translateX(var(--toggle-offset));
  transition: transform 0.16s ease-out;
}

.edition-toggle[data-selected="bedrock"],
.edition-toggle:has(input[value="bedrock"]:checked) {
  --toggle-offset: calc(100% + 4px);
}

.edition-toggle label,
.edition-toggle span {
  position: relative;
  z-index: 1;
}

.edition-toggle span {
  min-height: 38px;
  border-radius: 999px;
  color: rgba(235, 244, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 820;
}

.edition-toggle input:checked + span {
  background: transparent;
  box-shadow: none;
  color: #ffffff;
}

.discord-consent {
  gap: 10px;
  padding: 14px 15px;
  border-color: rgba(241, 186, 99, 0.30);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(241, 186, 99, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 10px 24px rgba(0, 0, 0, 0.14);
}

.discord-consent p {
  color: rgba(255, 245, 194, 0.92);
  font-size: 0.82rem;
  font-weight: 650;
}

.password-warning {
  width: 100%;
  margin-top: 4px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 113, 113, 0.68);
  border-radius: var(--radius);
  color: rgba(255, 247, 242, 0.98);
  background:
    linear-gradient(180deg, rgba(255, 113, 113, 0.24), rgba(255, 113, 113, 0.12)),
    rgba(0, 0, 0, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 4px rgba(255, 113, 113, 0.07);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.45;
}

.discord-btn,
.auth-main-btn,
.auth-sub-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 790;
  white-space: normal;
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.discord-btn {
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.21), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(88, 101, 242, 0.88), rgba(104, 199, 238, 0.54));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 30px rgba(88, 101, 242, 0.20);
}

.auth-main-btn {
  border-color: rgba(143, 240, 170, 0.54);
  color: #06110c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(98, 217, 137, 0.94), rgba(104, 199, 238, 0.72));
}

.auth-sub-btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
}

.verify-box {
  padding: 17px;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(0, 0, 0, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-glass,
  .auth-overlay,
  .auth-panel,
  .edition-toggle::before {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .hero-glass {
    min-height: 570px;
    padding-top: 98px;
    padding-bottom: 68px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 150px;
  }

  .hero-glass {
    min-height: 480px;
    padding: 82px 22px 42px;
  }

  .server-status-fixed {
    position: absolute;
    top: 18px;
    left: 50%;
    margin-bottom: 0;
  }

  .server-name {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .big-server-ip {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .copy-btn {
    width: 100%;
    max-width: 280px;
  }

  .server-meta {
    margin-top: 24px;
  }

  .server-meta span,
  .server-meta a {
    width: 100%;
  }

  .auth-panel {
    padding: 28px 18px;
  }
}

/* Performance pass: keep the glass look, but reduce expensive live blur layers. */
body.auth-open .navbar,
body.auth-open .hero,
body.auth-open footer {
  filter: blur(1.2px);
}

.hero-glass {
  backdrop-filter: blur(12px) saturate(128%);
  -webkit-backdrop-filter: blur(12px) saturate(128%);
  transition: transform 0.14s ease-out;
}

.server-status-line,
.server-meta span,
.server-meta a,
.copy-btn,
.discord-btn,
.auth-main-btn,
.auth-sub-btn,
.verify-box {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-overlay {
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.auth-panel {
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}

.auth-overlay,
.auth-panel {
  animation-duration: 0.08s;
}

.hero-glass,
.copy-btn,
.auth-close,
.discord-btn,
.auth-main-btn,
.auth-sub-btn,
.edition-toggle::before {
  transition-duration: 0.12s;
}

.hero-glass::before {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.26), transparent 34%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.26), transparent 46%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.34), transparent 22%, transparent 74%, rgba(255, 255, 255, 0.14)),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.24) 100%);
}

.hero-glass::after {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(100, 210, 255, 0.20), transparent 28%),
    radial-gradient(circle at 12% 10%, rgba(10, 132, 255, 0.18), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(48, 209, 88, 0.13), transparent 36%),
    linear-gradient(115deg, rgba(100, 210, 255, 0.18), transparent 24%, transparent 74%, rgba(48, 209, 88, 0.12)),
    linear-gradient(180deg, rgba(10, 132, 255, 0.08), transparent 26%, transparent 76%, rgba(0, 0, 0, 0.28));
}

/* Current home tuning */
.hero-glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.055) 42%, rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 22% 16%, rgba(100, 210, 255, 0.20), transparent 38%),
    radial-gradient(circle at 78% 18%, rgba(10, 132, 255, 0.18), transparent 34%),
    radial-gradient(circle at 54% 96%, rgba(48, 209, 88, 0.10), transparent 42%),
    rgba(8, 14, 24, 0.54);
  transition: border-color 0.16s ease;
  will-change: transform;
}

.hero-glass::before {
  background:
    linear-gradient(115deg, rgba(100, 210, 255, 0.20), transparent 24%, transparent 76%, rgba(48, 209, 88, 0.10)),
    radial-gradient(ellipse at 50% 0%, rgba(100, 210, 255, 0.18), transparent 36%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.24), transparent 42%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 100%);
}

.server-meta span > a {
  display: inline;
  width: auto;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: rgba(100, 210, 255, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.server-meta span > a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
