:root {
  color-scheme: dark;
  --bg: #121212;
  --panel: #1b1b1b;
  --text: #ececec;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --accent: #ff6a2b;
  --green: #4cc86a;
  --red: #e5534b;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
code, dt { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; }
code { font-size: .92em; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2 { margin: 0; line-height: 1.1; }
p { margin: 0; }

.top, main > section, footer {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { width: 28px; height: 28px; }
nav { display: flex; gap: clamp(14px, 3vw, 24px); font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start;
  padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 64px);
}
h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 700; letter-spacing: -.02em; }
.lead { margin-top: 16px; color: var(--muted); max-width: 32em; }

.ip {
  margin-top: 28px; display: inline-flex; align-items: stretch; max-width: 100%;
  padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--panel); color: var(--text); font: inherit; cursor: pointer;
}
.ip code { padding: 12px 16px; font-size: 19px; color: var(--text); overflow-wrap: anywhere; }
.ip span { display: grid; place-items: center; padding: 0 16px; background: var(--accent); color: #111; font-weight: 600; font-size: 15px; white-space: nowrap; }
.ip:hover { border-color: var(--accent); }

/* live players */
.live { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 16px; }
.live-head { display: flex; align-items: center; gap: 8px; }
.count { margin-left: auto; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 15px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--green); }
.dot.off { background: var(--red); }
.players { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.players:empty { display: none; }
.players li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.players img { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 3px; }
.players .more { color: var(--muted); }
.empty { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* sections */
.block { padding-bottom: 56px; }
.block h2 { font-size: 24px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.features { margin: 0; }
.features div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.features dt { color: var(--text); font-weight: 600; font-family: inherit; }
.features dd { margin: 0; color: var(--muted); }

.steps { margin: 16px 0 0; padding-left: 1.4em; display: grid; gap: 10px; color: var(--muted); }
.steps li::marker { color: var(--accent); font-weight: 600; }

.table { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: 32px; }
.table div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.table dt { color: var(--accent); font-size: 15px; white-space: nowrap; }
.table dd { margin: 0; color: var(--muted); font-size: 15px; text-align: right; }

.map-note { margin-top: 16px; color: var(--muted); }
.map {
  display: block; width: 100%; height: clamp(360px, 65vh, 620px); margin-top: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #000;
}

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  nav a:not(:last-child) { display: none; }
}
@media (max-width: 520px) {
  .features div { grid-template-columns: 1fr; gap: 2px; }
  .table div { flex-direction: column; gap: 2px; }
  .table dd { text-align: left; }
  .ip code { font-size: 17px; padding: 10px 12px; }
}
