@font-face {
  font-family: "Silkscreen";
  src: url("/font/silkscreen-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("/font/silkscreen-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bedrock: #15161b;
  --deepslate: #23252c;
  --deepslate-2: #2b2e37;
  --edge-hi: #3f434f;
  --edge-lo: #0c0d10;
  --parchment: #e8e2d3;
  --stone: #8d919c;
  --grass: #7fa653;
  --grass-lo: #4a6333;
  --redstone: #b8483f;
  --gold: #d9a441;

  --display: "Silkscreen", ui-monospace, monospace;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bedrock);
  background-image:
    linear-gradient(rgba(255, 255, 255, .016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .016) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--parchment);
  font: 400 16px/1.65 var(--body);
  min-height: 100vh;
}

.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px 44px;
}

/* Every raised surface uses the same stepped bevel: light top-left, dark
   bottom-right, zero radius. Sunken surfaces reverse it. */
.bevel-up {
  border-style: solid;
  border-width: 2px;
  border-color: var(--edge-hi) var(--edge-lo) var(--edge-lo) var(--edge-hi);
  background: var(--deepslate);
}

.bevel-in {
  border-style: solid;
  border-width: 2px;
  border-color: var(--edge-lo) var(--edge-hi) var(--edge-hi) var(--edge-lo);
  background: #101116;
}

/* ---------- masthead ---------- */

.masthead { margin-bottom: 40px; }

.eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 8vw, 52px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.wordmark span:last-child { color: var(--grass); }

.lede {
  margin: 18px 0 0;
  color: var(--stone);
  font-size: 16px;
  max-width: 46ch;
}

/* ---------- shared labels ---------- */

.label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 10px;
}

.label-dim { color: #5d626c; }

.row-between {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- address field ---------- */

.field-block { margin-bottom: 40px; }

.field {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.field code {
  flex: 1 1 260px;
  font-family: var(--mono);
  font-size: clamp(16px, 3.4vw, 21px);
  letter-spacing: .01em;
  padding: 15px 18px;
  color: var(--parchment);
  user-select: all;
  word-break: break-all;
  border-style: solid;
  border-width: 2px;
  border-color: var(--edge-lo) var(--edge-hi) var(--edge-hi) var(--edge-lo);
  background: #101116;
}

.btn {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--parchment);
  padding: 0 22px;
  cursor: pointer;
  border-style: solid;
  border-width: 2px;
  border-color: #6f8a4d #2c3a1d #2c3a1d #6f8a4d;
  background: var(--grass-lo);
  transition: background .12s steps(2);
}

.btn:hover { background: #5b7a3d; }

.btn:active {
  border-color: #2c3a1d #6f8a4d #6f8a4d #2c3a1d;
  background: #3e552b;
}

.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn.done { background: var(--grass); color: #16210d; }

.hint { margin: 12px 0 0; font-size: 13px; color: var(--stone); }

/* ---------- server list (the signature) ---------- */

.serverlist { display: flex; flex-direction: column; gap: 8px; }

.server {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 15px;
  border-style: solid;
  border-width: 2px;
  border-color: var(--edge-hi) var(--edge-lo) var(--edge-lo) var(--edge-hi);
  background: var(--deepslate);
}

.server.is-off { background: var(--deepslate-2); }

/* Blocky server icon, drawn in CSS: grass cap over dirt. */
.blockicon {
  width: 42px;
  height: 42px;
  flex: none;
  background:
    linear-gradient(var(--grass) 0 26%, #6b4a2f 26% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, .35),
    inset 6px 14px 0 0 rgba(0, 0, 0, .10),
    inset -10px 24px 0 0 rgba(0, 0, 0, .10);
  filter: saturate(.85);
}

.server.is-off .blockicon { filter: grayscale(.85) brightness(.6); }

.server-main { flex: 1 1 170px; min-width: 0; }

.server-name {
  font-family: var(--display);
  font-size: 15px;
  color: var(--parchment);
  margin-bottom: 4px;
}

.server-motd {
  font-size: 13px;
  color: var(--stone);
  overflow-wrap: anywhere;
}

.server-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.server.is-off .count { color: #5d626c; }

/* Ping bars, as in the multiplayer list. */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 17px;
}

.bars i {
  display: block;
  width: 4px;
  background: #34383f;
}

.bars i:nth-child(1) { height: 20%; }
.bars i:nth-child(2) { height: 40%; }
.bars i:nth-child(3) { height: 60%; }
.bars i:nth-child(4) { height: 80%; }
.bars i:nth-child(5) { height: 100%; }

.bars.lit i {
  background: var(--grass);
  animation: rise .32s steps(3) backwards;
}

.bars.lit i:nth-child(1) { animation-delay: .00s; }
.bars.lit i:nth-child(2) { animation-delay: .06s; }
.bars.lit i:nth-child(3) { animation-delay: .12s; }
.bars.lit i:nth-child(4) { animation-delay: .18s; }
.bars.lit i:nth-child(5) { animation-delay: .24s; }

.bars.dead i:first-child { background: var(--redstone); }

@keyframes rise { from { height: 0; } }

.placeholder {
  padding: 26px 15px;
  text-align: center;
  color: var(--stone);
  font-size: 14px;
  border: 2px dashed #2f333c;
}

/* ---------- notes ---------- */

.notes { margin-top: 44px; }

.notelist {
  margin: 0;
  display: grid;
  gap: 2px;
  border-style: solid;
  border-width: 2px;
  border-color: var(--edge-hi) var(--edge-lo) var(--edge-lo) var(--edge-hi);
  background: var(--edge-lo);
}

.note {
  background: var(--deepslate);
  padding: 15px 17px;
}

.note dt {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gold);
  margin-bottom: 5px;
}

.note dd { margin: 0; font-size: 14px; color: var(--stone); }

/* ---------- footer ---------- */

.foot { margin-top: 44px; text-align: center; }

.foot p {
  margin: 0;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .12em;
  color: #4c515b;
}

@media (max-width: 460px) {
  .server { flex-wrap: wrap; }
  .server-meta { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
