@font-face {
  font-family: Outfit;
  src: url("fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tact Symbols";
  src: url("fonts/TactSymbols.woff2?v=3") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2600, U+263D;
}
@font-face {
  font-family: "Tact Symbols";
  src: url("fonts/TactSymbolsExtra.woff2?v=3") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+23F3;
}

:root {
  --bg: #0b1016;
  --bg-2: #121922;
  --card: rgba(22, 30, 40, 0.86);
  --border: rgba(226, 184, 74, 0.14);
  --border-strong: rgba(226, 184, 74, 0.28);
  --text: #f3efe6;
  --muted: #9aa6b4;
  --faint: #6d7886;
  --gold: #e2b84a;
  --gold-2: #c89a2e;
  --copper: #d06a3a;
  --redstone: #d4453c;
  --green: #6fdc7a;
  --aqua: #6ec8e0;
  --sleep: #8aa4e8;
  --warn: #f3d35c;
  --bad: #f06a6a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --font: Outfit, ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.55 var(--font);
  background:
    radial-gradient(900px 480px at 90% -10%, rgba(212, 69, 60, 0.16), transparent 55%),
    radial-gradient(800px 500px at -15% 0%, rgba(226, 184, 74, 0.10), transparent 55%),
    linear-gradient(180deg, #101820 0%, var(--bg) 28%, #0a0e14 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='none'/%3E%3Crect width='1' height='1' fill='%23fff'/%3E%3C/svg%3E");
  z-index: 0;
}
a { color: var(--gold); }
button, input, select { font: inherit; }

.top, main, footer { position: relative; z-index: 1; }
.top, main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(226, 184, 74, 0.25), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand-sub {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-panel {
  color: #1a1408 !important;
  background: var(--gold) !important;
}
.nav-panel:hover { filter: brightness(1.08); }

.hero { padding: 36px 0 8px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2 { font-weight: 750; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(22px, 3vw, 28px); }
.lede { max-width: 640px; color: var(--muted); margin: 14px 0 8px; font-size: 17px; }
.updated { margin: 0; color: var(--faint); font-size: 13px; }
.updated.warn { color: var(--warn); }

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 8px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(226, 184, 74, 0.07);
  border: 1px solid var(--border-strong);
}
.callout p { margin: 0; color: var(--muted); }
.callout-icon { color: var(--gold); font-size: 20px; line-height: 1.2; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 36px 0 16px;
}
.section-sub { margin: 0; color: var(--faint); font-size: 13px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card.online { border-color: rgba(111, 220, 122, 0.35); }
.card.sleeping { border-color: rgba(138, 164, 232, 0.28); }
.card.starting, .card.stopping { border-color: rgba(243, 211, 92, 0.35); }
.card.offline { border-color: rgba(240, 106, 106, 0.4); }
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  image-rendering: pixelated;
  background: #0a0e14;
  flex: none;
}
.card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.blurb { margin: 0; color: var(--muted); font-size: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pill.online { color: var(--green); background: rgba(111, 220, 122, 0.1); }
.pill.sleeping { color: var(--sleep); background: rgba(138, 164, 232, 0.12); }
.pill.starting, .pill.stopping { color: var(--warn); background: rgba(243, 211, 92, 0.1); }
.pill.offline { color: var(--bad); background: rgba(240, 106, 106, 0.1); }
.pill.online .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .pill.online .dot, .card { animation: none; transition: none; }
}

.motd {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font: 13px/1.45 "IBM Plex Mono", "Tact Symbols", ui-monospace, "Segoe UI Symbol", "Apple Symbols", monospace;
  color: #d8dde4;
}
.motd-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.motd-line + .motd-line { margin-top: 2px; }
.motd-symbol {
  font-family: "Tact Symbols", "IBM Plex Mono", sans-serif;
  font-size: 1.35em;
  line-height: 1;
  vertical-align: -0.05em;
}

.address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.address code {
  font: 13.5px/1.4 var(--mono);
  color: var(--text);
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}
.address.lan code { color: var(--muted); }
.copy {
  flex: none;
  border: 0;
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  background: var(--gold);
  color: #1a1408;
  font-weight: 700;
  font-size: 12px;
}
.copy:hover { filter: brightness(1.08); }
.copy:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.copy.done { background: var(--green); color: #07210c; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}
.meta b { color: var(--text); font-weight: 650; }
.players { margin: 0; font-size: 13px; color: var(--muted); }
.players b { color: var(--green); }

.health-machines {
  display: grid;
  gap: 10px;
}
.health-machine {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.health-machine.online { border-color: rgba(111, 220, 122, 0.28); }
.health-machine.pending { border-color: rgba(243, 211, 92, 0.28); }
.health-machine.offline { border-color: rgba(240, 106, 106, 0.35); }
.health-summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.health-summary:hover { background: rgba(255, 255, 255, 0.03); }
.health-summary:focus-visible { outline: 2px solid var(--aqua); outline-offset: -2px; }
.health-summary .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--faint);
}
.health-summary .dot.online { background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
.health-summary .dot.pending { background: var(--warn); }
.health-summary .dot.offline { background: var(--bad); }
@media (prefers-reduced-motion: reduce) {
  .health-summary .dot.online { animation: none; }
}
.health-identity { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.health-name { font-weight: 700; line-height: 1.2; }
.health-role { color: var(--faint); font-size: 12px; font-weight: 600; }
.health-pills {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.health-chevron {
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin: 0 4px 4px 4px;
}
.health-machine.open .health-chevron { transform: rotate(225deg); margin-bottom: 0; margin-top: 4px; }
.health-details { padding: 0 16px 16px; }
.health-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.meter, .stat {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.meter { grid-column: span 1; }
.meter .label, .stat .label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.meter .value, .stat .value { color: var(--text); font-variant-numeric: tabular-nums; }
.bar {
  height: 8px;
  margin-top: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}
.bar.warn > span { background: linear-gradient(90deg, var(--copper), var(--warn)); }
.bar.hot > span { background: linear-gradient(90deg, var(--redstone), var(--bad)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 5px 10px;
}
.chip b { color: var(--text); font-weight: 700; }
.chip-load { cursor: help; }
.chip-hint { color: var(--faint); font-weight: 600; }
.stat.wide { grid-column: 1 / -1; }

.links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 14px;
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.link-card.primary {
  background: linear-gradient(160deg, rgba(226, 184, 74, 0.16), rgba(22, 30, 40, 0.9));
  border-color: var(--border-strong);
}
.link-card h3 { font-size: 18px; }
.link-card p { margin: 0; color: var(--muted); font-size: 14px; }
.link-card .go { font-weight: 700; font-size: 13px; color: var(--gold); }
.link-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.link-list a { font-weight: 700; font-size: 14px; color: var(--gold); text-decoration: none; }
.link-list a:hover { filter: brightness(1.08); }


.help {
  margin: 36px 0 48px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px dashed rgba(226, 184, 74, 0.22);
}
.help ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }

footer {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  padding: 8px 20px 40px;
}

@media (max-width: 800px) {
  .health-grid { grid-template-columns: 1fr; }
  .meter, .stat, .stat.wide { grid-column: auto; }
  .health-pills { white-space: normal; text-align: right; }
  .health-summary { flex-wrap: wrap; }
  .health-pills { flex: 1 1 100%; margin: 0 22px 0 22px; }
}
@media (max-width: 560px) {
  .top { flex-wrap: wrap; }
  .brand-mark { width: 40px; height: 40px; }
  .hero { padding-top: 24px; }
}
