@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ground: #111212;
  --card: #1a1b1a;
  --line: #363835;
  --ink: #f2eee5;
  --muted: #b5b4ac;
  --accent: #f4b965;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); }
.shell { width: min(100% - 3rem, 64rem); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 73px; gap: 1rem; }
.wordmark { display: flex; align-items: center; font-size: 1.5rem; font-weight: 700; letter-spacing: -.07em; margin: 0; }
.mark { width: .85rem; height: .85rem; background: var(--accent); margin-inline: .2rem .8rem; transform: rotate(45deg); }
.accent { color: var(--accent); }
.game { color: var(--muted); font: 500 .72rem var(--mono); letter-spacing: .12em; text-align: right; }
main { padding-block: clamp(2.5rem, 8vw, 5.75rem) 2.5rem; }
.heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.25rem; margin-bottom: 1.65rem; }
h1, h2 { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; }
h1 { font-size: clamp(3.35rem, 8vw, 5.25rem); line-height: .95; font-weight: 700; }
#checked, .address, .roster-count { color: var(--muted); font: .75rem var(--mono); }
#checked { margin: 0; }
.servers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.card { min-width: 0; padding: clamp(1rem, 4vw, 1.55rem); border: 1px solid var(--line); border-top: 3px solid #a97944; background: var(--card); }
.region-line { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
h2 { font-size: 2.25rem; line-height: 1; }
.address { margin: .6rem 0 1.25rem; overflow-wrap: anywhere; }
.state { color: var(--muted); display: flex; align-items: center; gap: .45rem; font: 500 .75rem var(--mono); }
.state::before { content: ""; width: .46rem; height: .46rem; border-radius: 50%; background: currentColor; }
[data-state="online"] .state { color: #a1d6a3; }
[data-state="offline"] .state { color: #f5a99d; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-block: 1px solid var(--line); }
.stats > div { padding: .95rem .65rem .95rem 0; min-width: 0; }
.stats > div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.stats dt { margin-bottom: .5rem; color: var(--muted); font-size: .8rem; }
.stats dd { margin: 0; font: 500 clamp(.96rem, 2vw, 1.15rem) var(--mono); overflow-wrap: anywhere; }
.map { display: flex; align-items: baseline; gap: .75rem; margin: 1rem 0; font-size: .8rem; }
.map strong { color: var(--muted); font-weight: 500; }
.map span { font-family: var(--mono); overflow-wrap: anywhere; unicode-bidi: plaintext; }
details { border-block: 1px solid var(--line); }
summary { padding: .7rem 0; cursor: pointer; font-weight: 600; font-size: .9rem; }
summary::marker { color: var(--accent); }
.roster-count { display: inline-block; margin-left: .22rem; }
.empty { margin: .1rem 0 .8rem; color: var(--muted); font-size: .82rem; }
.roster { padding: 0; margin: .1rem 0 .8rem; list-style: none; max-height: 15rem; overflow-y: auto; }
.roster li { padding: .44rem 0; font-size: .85rem; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.roster li + li { border-top: 1px solid var(--line); }
.join { display: flex; justify-content: space-between; padding: .73rem .85rem; margin-top: 1rem; color: #1c160e; background: var(--accent); text-decoration: none; font-size: .9rem; font-weight: 700; }
.join:hover { background: #ffd096; }
summary:focus-visible, .join:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.footnote, noscript { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.footnote { margin-top: 1.3rem; }
@media (max-width: 640px) {
  .servers { grid-template-columns: 1fr; }
  .shell { width: calc(100% - 2rem); }
}
