/* Driftblock: a night sky over a floating island, the server list's cyan-to-green name. */
:root {
  --sky: #0d1322;
  --sky-2: #141d33;
  --card: #18223b;
  --line: #2a3756;
  --ink: #e8edf7;
  --ink-2: #9aa7c2;
  --cyan: #55ffff;
  --green: #55ff55;
  --gold: #ffaa00;
  --type: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
html { background: var(--sky); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 17px/1.55 var(--type);
  background: radial-gradient(1200px 500px at 50% -120px, #22335c 0%, transparent 70%), var(--sky);
}
a { color: var(--cyan); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .92em; }
main, .hero, footer { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

.hero { display: flex; gap: 24px; align-items: center; padding-top: 56px; padding-bottom: 32px; }
.icon { width: 96px; height: 96px; image-rendering: pixelated; border-radius: 14px; flex: none; box-shadow: 0 10px 40px #0008; }
h1 {
  margin: 0; font-size: clamp(36px, 7vw, 64px); line-height: 1; letter-spacing: .06em; font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 10px 0 8px; color: var(--ink-2); max-width: 46ch; }
.status { margin: 0; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #e05555; }
.status.up .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }

h2 { margin: 0 0 10px; font-size: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.join, .more { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }
.addr { font-size: 20px; }
.addr code { color: var(--cyan); background: #0b1020; padding: 4px 10px; border-radius: 6px; user-select: all; word-break: break-all; }
.port { color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.port code { color: var(--ink); }

.now { margin-bottom: 28px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0 0 14px; color: var(--ink-2); }
.facts b { color: var(--ink); }
.players { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.players li { display: flex; align-items: center; gap: 12px; background: var(--sky-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 0; }
.players li.empty { color: var(--ink-2); grid-column: 1 / -1; }
.who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tags { display: flex; gap: 4px; }
.face { position: relative; width: 32px; height: 32px; overflow: hidden; flex: none; border-radius: 4px; background: #0b1020; }
/* the skin is 64 x 96 (skin + cape); at 4x the face is at (32, 32) and the hat layer at (160, 32) */
.face img { position: absolute; width: 256px; height: 384px; max-width: none; image-rendering: pixelated; top: -32px; }
.face .skin { left: -32px; }
.face .hat { left: -160px; }
.small { color: var(--ink-2); font-size: 14px; margin: 10px 0 0; }

.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; line-height: 1.5; vertical-align: 1px; }
.tag.be { background: #00aaaa33; color: var(--cyan); border: 1px solid #00aaaa88; }
.tag.vr { background: #ff55ff22; color: #ff88ff; border: 1px solid #ff55ff77; }
.tag.mic { background: #55ff5522; color: var(--green); border: 1px solid #55ff5577; }
.rules { margin: 0; padding-left: 20px; }
.rules li { margin-bottom: 4px; }

/* Minecraft colour codes for role names */
.c0 { color: #000 } .c1 { color: #00a } .c2 { color: #0a0 } .c3 { color: #0aa } .c4 { color: #a00 } .c5 { color: #a0a }
.c6 { color: #fa0 } .c7 { color: #aaa } .c8 { color: #555 } .c9 { color: #55f } .ca { color: #5f5 } .cb { color: #5ff }
.cc { color: #f55 } .cd { color: #f5f } .ce { color: #ff5 } .cf { color: #fff }

footer { color: var(--ink-2); font-size: 14px; padding-top: 12px; padding-bottom: 40px; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .hero { flex-direction: column; align-items: flex-start; padding-top: 32px; }
}

.up { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 18px; }
.up button { background: linear-gradient(90deg, var(--cyan), var(--green)); color: #0b1020; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
