:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: #0d1016;
  --panel-2: #141923;
  --border: #233142;
  --text: #f4f8fb;
  --muted: #8f9cab;
  --green: #00d6c7;
  --red: #ff7a7a;
  --amber: #f6c85f;
  --accent: #00eaff;
  --accent-2: #7a3eb1;
  --shadow: 0 20px 50px rgba(0,0,0,.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
   radial-gradient(circle at 12% -10%, rgba(122, 62, 177, .22), transparent 34rem),
   radial-gradient(circle at 95% 15%, rgba(0, 234, 255, .12), transparent 30rem),
   linear-gradient(180deg, #06080d 0%, #05070a 100%);
}

button {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-mark {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border: 1px solid rgba(0, 234, 255, 0.16);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(122, 62, 177, 0.18), rgba(0, 234, 255, 0.08)),
    #0d1016;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-mark img {
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -.045em;
}

.subtitle {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.summary {
  margin: 34px 0 18px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(20, 22, 29, .78);
  color: var(--muted);
  font-size: 14px;
}

.overall-dot,
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(246, 200, 95, .55);
}

.overall-dot.online,
.server-card.online .status-dot {
  background: var(--green);
  box-shadow: 0 0 14px rgba(103, 232, 165, .55);
}

.overall-dot.offline,
.server-card.offline .status-dot {
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 122, 122, .5);
}

.summary-separator {
  color: #4b5160;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.server-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.server-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  opacity: .7;
  background: var(--accent);
}

.server-card[data-server="cobblemon"]::after {
  background: linear-gradient(90deg, #00bfc8, #00eaff);
}

.server-card[data-server="valheim"]::after {
  background: linear-gradient(90deg, #7a3eb1, #0c1eff);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.game-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.server-name {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.025em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.server-card.online .status-pill {
  color: var(--green);
}

.server-card.offline .status-pill {
  color: var(--red);
}

.metrics {
  margin: 26px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-2);
}

.metric-label,
.address-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-card.offline .metric-value {
  color: #676d7b;
}

.address-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #101218;
}

.address {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #d8dbe4;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  border: 1px solid #373c4a;
  border-radius: 10px;
  padding: 9px 13px;
  color: var(--text);
  background: #242834;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.copy-button:hover {
  background: #303543;
}

.copy-button:active {
  transform: translateY(1px);
}

.copy-button:disabled {
  opacity: .4;
  cursor: default;
}

footer {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
  color: #626876;
  font-size: 12px;
}

.skeleton {
  height: 287px;
  background:
    linear-gradient(100deg, #14161d 20%, #1b1e27 40%, #14161d 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

@media (max-width: 760px) {
  .page-shell {
    padding-top: 42px;
  }

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

  .summary {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (max-width: 470px) {
  .hero {
    align-items: flex-start;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .server-card {
    padding: 18px;
  }

  .card-top {
    flex-direction: column;
  }

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

  .metric:last-child {
    grid-column: 1 / -1;
  }
}
/* -------------------------
   Site Navigation
------------------------- */

.site-header {
  margin-bottom: 34px;
}

.site-nav {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}

.site-nav a {
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;

  color: var(--muted);
  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a.active {
  color: var(--accent);
  border-color: rgba(0, 234, 255, 0.2);
  background: rgba(0, 234, 255, 0.07);
}


/* -------------------------
   About Page
------------------------- */

.about-intro {
  max-width: 760px;
  margin: 20px 0 32px;
}

.about-intro h2 {
  margin: 0 0 14px;

  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
}

.about-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}


.server-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}


.info-card {
  position: relative;
  overflow: hidden;

  min-height: 390px;
  padding: 26px;

  border: 1px solid var(--border);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      transparent 45%
    ),
    var(--panel);

  box-shadow: var(--shadow);
}


.info-card::after {
  content: "";

  position: absolute;
  inset: auto 0 0;

  height: 3px;

  background:
    linear-gradient(
      90deg,
      var(--accent-2),
      var(--accent)
    );
}


.info-card.featured {
  border-color: rgba(0, 234, 255, 0.22);

  background:
    radial-gradient(
      circle at top right,
      rgba(0, 234, 255, 0.08),
      transparent 18rem
    ),
    var(--panel);
}


.info-number {
  margin-bottom: 30px;

  color: rgba(0, 234, 255, 0.22);

  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}


.info-card h2 {
  margin: 0 0 18px;

  font-size: 23px;
  letter-spacing: -0.025em;
}


.info-card p:not(.game-label) {
  color: var(--muted);

  font-size: 15px;
  line-height: 1.65;
}


.info-tag {
  display: inline-flex;

  margin-top: 10px;
  padding: 7px 10px;

  border: 1px solid rgba(0, 234, 255, 0.16);
  border-radius: 999px;

  color: var(--accent);

  background: rgba(0, 234, 255, 0.06);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* -------------------------
   World Archive
------------------------- */

.archive-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;

  margin-top: 24px;
  padding: 30px;

  border: 1px solid rgba(122, 62, 177, 0.3);
  border-radius: 20px;

  background:
    radial-gradient(
      circle at top left,
      rgba(122, 62, 177, 0.16),
      transparent 28rem
    ),
    var(--panel);
}


.archive-icon {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 16px;

  color: var(--accent);

  background: rgba(0, 234, 255, 0.06);

  font-size: 28px;
  font-weight: 900;
}


.archive-section h2 {
  margin: 0 0 12px;

  font-size: 27px;
  letter-spacing: -0.025em;
}


.archive-section p:not(.eyebrow) {
  max-width: 800px;

  color: var(--muted);

  line-height: 1.7;
}


.about-note {
  display: flex;
  gap: 8px;

  margin-top: 18px;
  padding: 17px 20px;

  border: 1px solid var(--border);
  border-radius: 14px;

  color: var(--muted);
  background: rgba(20, 22, 29, 0.75);

  font-size: 14px;
}

.about-note strong {
  color: var(--text);
}


/* -------------------------
   About Responsive
------------------------- */

@media (max-width: 900px) {
  .server-info-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: unset;
  }
}


@media (max-width: 560px) {
  .archive-section {
    grid-template-columns: 1fr;
  }

  .about-note {
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }
}

/* -------------------------
   Navigation Bar
------------------------- */

.nav-bar {
  margin: 28px 0 34px;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);

  background:
    linear-gradient(
      90deg,
      rgba(122, 62, 177, 0.08),
      rgba(0, 234, 255, 0.05)
    ),
    rgba(13, 16, 22, 0.92);
}

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

  min-height: 54px;
  padding: 6px 10px;
}

.nav-link {
  position: relative;

  padding: 11px 16px;

  border-radius: 9px;

  color: var(--muted);

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(0, 234, 255, 0.07);
}

.nav-link.active::after {
  content: "";

  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;

  height: 2px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--accent-2),
      var(--accent)
    );
}

@media (max-width: 560px) {

  .address-row {
    display: block;
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
  }

  .address-row > div {
    display: none;
  }

  .copy-button {
    width: 100%;
    padding: 13px 16px;

    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 12px;

    color: var(--accent);
    background: rgba(0, 234, 255, 0.07);

    font-weight: 700;
  }
}