:root {
  --background: #070a11;
  --panel: rgba(23, 30, 46, .96);
  --panel-hover: rgba(31, 41, 61, .99);
  --border: #35415a;
  --text: #f7f9fd;
  --muted: #aab5c8;
  --dim: #758299;
  --green: #65f1ae;
  --green-dark: #153f32;
  --red: #ff7979;
  --red-dark: #4b2028;
  --yellow: #ffd36a;
  --yellow-dark: #4c3c18;
  --discord: #5865f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(70, 101, 160, .4), transparent 38%),
    radial-gradient(circle at 90% 25%, rgba(88, 101, 242, .2), transparent 34%),
    linear-gradient(180deg, #11192a, var(--background) 60%);
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 45px 45px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero {
  width: min(1180px, 92%);
  margin: auto;
  padding: 75px 0 45px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(101,241,174,.36);
  border-radius: 999px;
  color: var(--green);
  background: rgba(21,63,50,.55);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow-dot,
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 11px currentColor;
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: .88;
  letter-spacing: .03em;
}

.subtitle {
  max-width: 720px;
  margin: 27px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.secondary {
  background: rgba(22,29,44,.85);
}

.button.discord {
  border-color: transparent;
  background: var(--discord);
}

.summary {
  width: min(980px, 92%);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17,23,36,.85);
  box-shadow: 0 22px 65px rgba(0,0,0,.34);
}

.summary-item {
  padding: 23px 18px;
  text-align: center;
}

.summary-item + .summary-item {
  border-left: 1px solid var(--border);
}

.summary strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.summary span {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

main {
  width: min(1180px, 92%);
  margin: 0 auto 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 19px;
}

.section-header h2 {
  margin: 0;
}

#last-updated {
  color: var(--dim);
  font-size: .84rem;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 21px;
}

.server-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(36,46,67,.98), var(--panel));
  box-shadow: 0 22px 65px rgba(0,0,0,.34);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.server-card:hover {
  transform: translateY(-5px);
  border-color: #596987;
  background: linear-gradient(145deg, rgba(44,56,81,.99), var(--panel-hover));
}

.server-card.online-pulse {
  animation: onlinePulse .65s ease;
}

@keyframes onlinePulse {
  50% {
    box-shadow: 0 0 42px rgba(101,241,174,.26);
  }
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-icon {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(8,11,18,.4);
  font-size: 1.9rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.status.online {
  color: var(--green);
  background: var(--green-dark);
}

.status.offline {
  color: var(--red);
  background: var(--red-dark);
}

.status.unknown {
  color: var(--yellow);
  background: var(--yellow-dark);
}

.server-card h3 {
  margin: 27px 0 7px;
  font-size: 1.9rem;
}

.edition {
  margin: 0 0 16px;
  color: var(--green);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.description {
  min-height: 52px;
  color: var(--muted);
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.stats div {
  min-width: 0;
  padding: 10px 7px;
  border: 1px solid #2c374c;
  border-radius: 10px;
  text-align: center;
  background: rgba(7,10,17,.46);
}

.stats strong,
.stats span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats strong {
  font-size: .91rem;
}

.stats span {
  margin-top: 4px;
  color: var(--dim);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.address-label {
  margin: 21px 0 8px;
  color: #8d9bb1;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.address {
  padding: 14px 15px;
  overflow-wrap: anywhere;
  border: 1px solid #313c52;
  border-radius: 11px;
  background: #090c13;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: .93rem;
}

.copy-button {
  width: 100%;
  margin-top: 13px;
  padding: 14px 16px;
  border: 0;
  border-radius: 11px;
  background: #f2f5fa;
  color: #111621;
  font-weight: 900;
  cursor: pointer;
}

.community {
  margin-top: 28px;
  padding: 38px 28px;
  border: 1px solid rgba(88,101,242,.48);
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(88,101,242,.22), transparent 55%),
    rgba(20,25,39,.96);
}

.community p {
  max-width: 690px;
  margin: 15px auto 24px;
  color: var(--muted);
  line-height: 1.65;
}

footer {
  padding: 0 20px 38px;
  text-align: center;
  color: #667286;
  font-size: .87rem;
}

.atlas-trigger,
.secret-dot {
  border: 0;
  background: transparent;
  color: #758299;
  cursor: pointer;
}

.atlas-trigger:hover,
.secret-dot:hover {
  color: #ff5757;
  text-shadow: 0 0 13px rgba(255,87,87,.75);
}

.secret-dot {
  margin-left: 6px;
  user-select: none;
}

.atlas-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(10px);
}

.atlas-overlay.active {
  display: grid;
}

.terminal {
  width: min(850px, 96%);
  overflow: hidden;
  border: 1px solid #6d1b1b;
  border-radius: 15px;
  background: #040404;
  box-shadow: 0 0 90px rgba(255,28,28,.28);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #401313;
  color: #ff7777;
  background: #170606;
  font-family: Consolas, monospace;
}

.terminal-header button {
  border: 1px solid #7d2929;
  border-radius: 7px;
  color: #ff8e8e;
  background: #240909;
  cursor: pointer;
}

.terminal-output {
  min-height: 350px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 22px;
  color: #ff5353;
  font-family: Consolas, monospace;
  line-height: 1.55;
  white-space: pre-wrap;
}

.terminal-form {
  display: flex;
  gap: 8px;
  padding: 13px 20px 19px;
  color: #ff5353;
  font-family: Consolas, monospace;
}

.terminal-form input {
  flex: 1;
  border: 0;
  outline: 0;
  color: #ff5353;
  background: transparent;
  font: inherit;
}

@media (max-width: 700px) {
  .summary {
    grid-template-columns: 1fr;
  }

  .summary-item + .summary-item {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .server-grid {
    grid-template-columns: 1fr;
  }
}
