:root {
  color-scheme: dark;
  --mouse-x: 50vw;
  --mouse-y: 10vh;
  --ocean-x: 0px;
  --ocean-y: 0px;
  --bg: #070c12;
  --panel: #0c141e;
  --cyan: #17d2ff;
  --text: #f5fbff;
  --muted: #8ca0aa;
  --line: rgba(23, 210, 255, 0.28);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(23, 210, 255, 0.08), transparent 24rem),
    var(--bg);
  font-family: var(--font);
  line-height: 1.5;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -4rem;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle 19rem at var(--mouse-x) var(--mouse-y), rgba(23, 210, 255, 0.14), rgba(23, 210, 255, 0.035) 38%, transparent 72%),
    linear-gradient(112deg, transparent 35%, rgba(89, 222, 255, 0.025) 49%, transparent 63%);
}

body::after {
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='180' viewBox='0 0 360 180'%3E%3Cg fill='none' stroke='%2317d2ff' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M-30 36C20 4 58 4 108 36s88 32 138 0 88-32 138 0'/%3E%3Cpath d='M-30 82c50-28 88-28 138 0s88 28 138 0 88-28 138 0'/%3E%3Cpath d='M-30 130c50-24 88-24 138 0s88 24 138 0 88-24 138 0'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center top;
  background-size: 360px 180px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  transform: translate3d(var(--ocean-x), var(--ocean-y), 0) scale(1.08);
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

main {
  width: min(calc(100% - 2rem), 570px);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 2rem;
  text-align: center;
}

.logo picture img {
  width: 7rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  color: var(--cyan);
  filter: drop-shadow(0px 0px 21px blue);
  font-size: 3.8rem;
  font-weight: 950;
  line-height: 1;
}

h1 {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(2.6rem, 10vw, 4rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.025em;
}

.claim {
  margin: 0.8rem 0 0;
  font-size: 1rem;
  font-weight: 750;
}

.editions {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

section {
  width: 100%;
  margin-top: 2.8rem;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.server {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--panel);
  overflow: hidden;
}

.server-row {
  min-height: 3.8rem;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.2rem;
  text-align: left;
}

.server-row + .server-row {
  border-top: 1px solid rgba(23, 210, 255, 0.14);
}

.edition-label {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  text-align: right;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.server-fields--bedrock {
  grid-template-columns: minmax(0, 1fr) auto;
}

.server-field {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.server-field small {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-field strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.92rem, 4vw, 1.15rem);
  letter-spacing: 0.04em;
}

nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

nav a {
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

nav a:hover {
  color: #00151c;
  border-color: var(--cyan);
  background: var(--cyan);
}

nav svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

footer {
  margin-top: 2.5rem;
  color: #60717a;
  font-size: 0.72rem;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 450px) {
  main {
    justify-content: flex-start;
    padding-top: 3.5rem;
  }

  .logo picture img {
    width: 6rem;
    font-size: 3.25rem;
  }

  nav {
    grid-template-columns: 1fr;
  }

  .server-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    text-align: center;
  }

  .edition-label {
    text-align: center;
  }

  .server-fields--bedrock {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .server-field {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  body::before {
    background: radial-gradient(circle at 50% 0%, rgba(23, 210, 255, 0.08), transparent 24rem);
  }

  body::after {
    transform: none;
  }
}
