:root {
  color-scheme: dark;
  --bg: #090a0c;
  --text: #f1f6ff;
  --muted: #aab6c7;
  --line: rgba(74, 83, 100, 0.46);
  --cyan: #66d4ff;
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

@font-face {
  font-family: "Lemon Jelly";
  src: url("/Assets/CursiveTexts.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px circle at -10% 8%, rgba(28, 46, 76, 0.75) 0%, transparent 82%),
    radial-gradient(900px circle at 115% 90%, rgba(40, 26, 63, 0.6) 0%, transparent 58%),
    linear-gradient(180deg, #090a0c 0%, #0b0d11 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 88%);
  opacity: 0.32;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
}

.servers-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.servers-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px clamp(18px, 5vw, 64px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.05);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(43, 49, 59, 0.82), rgba(35, 40, 49, 0.82));
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.tab:hover {
  border-color: rgba(102, 212, 255, 0.34);
  color: var(--text);
}

.servers-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.auth-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 700;
}

.auth-mini img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.servers-shell {
  width: 100%;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 92px) clamp(18px, 3vw, 42px) 70px;
}

.servers-heading {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 11px;
  border: 1px solid rgba(102, 212, 255, 0.28);
  border-radius: 999px;
  color: #b8eaff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
  color: #b8eaff;
  font-family: "Lemon Jelly", cursive;
  font-weight: 400;
  text-shadow:
    0 0 18px rgba(102, 212, 255, 0.34),
    0 0 42px rgba(102, 212, 255, 0.16);
}

.lead {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.server-card {
  min-height: 246px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(159, 222, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(18, 23, 31, 0.56), rgba(13, 18, 26, 0.46));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  text-align: center;
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.server-card:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 212, 255, 0.34);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.server-card-icon {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(102, 212, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #b8eaff;
  font-size: 24px;
  font-weight: 800;
}

.server-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-card-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.server-card-role {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.server-card-open {
  width: 100%;
}

@media (max-width: 760px) {
  .servers-nav {
    align-items: center;
    flex-wrap: wrap;
    padding: 16px;
  }

  .servers-auth {
    margin-left: 0;
  }

}
