/*
  Sia's Minecraft Server
  The page reads top to bottom like digging down: night sky, grass and dirt,
  stone, deepslate, then bedrock at the footer.
  Accent colors are the game's chat colors, and each one has a single job.
*/

@font-face {
  font-family: "Tiny5";
  src: url("fonts/tiny5.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* 1 "pixel" of UI. Borders, bevels and steps are multiples of this. */
  --px: 4px;

  /* Strata, from the surface down */
  --sky-1: #0e1126;
  --sky-2: #12162f;
  --sky-3: #171c3a;
  --sky-4: #1d2346;
  --grass-light: #8ccf55;
  --grass: #6fb33f;
  --grass-dark: #4f8f2c;
  --dirt: #3a291d;
  --stone: #313339;
  --andesite: #27292e;
  --deepslate: #1d1e25;
  --bedrock: #121214;

  /* Text */
  --ink: #f3efe4;
  --ink-soft: #cbc6b8;
  --ink-mute: #9e9a91;
  --mc-gray: #aaaaaa;
  --title-shadow: #3a3954;

  /* Chat colors, one job each */
  --green: #55ff55;   /* online */
  --red: #ff5555;     /* offline */
  --gold: #ffaa00;    /* version warnings */
  --yellow: #ffff55;  /* gameplay, focus ring */
  --pink: #ff55ff;    /* quality of life */
  --aqua: #55ffff;    /* voice, client mods */

  /* Panels and controls */
  --panel: #16171c;
  --panel-hi: #34363e;
  --panel-lo: #08080a;
  --frame: #000;
  --slot: #8b8b8b;
  --slot-hi: #fff;
  --slot-lo: #373737;
  --btn-face: #5e6169;
  --btn-face-hover: #737887;
  --btn-hi: #8e929b;
  --btn-lo: #35373c;
  --tip-bg: #150b1f;
  --tip-edge-top: #5a2ee6;
  --tip-edge-bottom: #2c1482;

  --font-pixel: "Tiny5", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Low-contrast pixel noise laid over every stratum */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' fill-opacity='.04' d='M6 10h1v1h-1zM11 2h1v1h-1zM11 10h1v1h-1zM2 5h1v1h-1zM2 0h1v1h-1zM0 2h1v1h-1zM15 14h1v1h-1zM9 10h1v1h-1zM7 3h1v1h-1zM15 3h1v1h-1zM5 3h1v1h-1zM1 11h1v1h-1zM15 8h1v1h-1zM1 9h1v1h-1zM13 10h1v1h-1zM7 10h1v1h-1zM5 11h1v1h-1zM13 8h1v1h-1z'/%3E%3Cpath fill='%23000' fill-opacity='.18' d='M7 11h1v1h-1zM6 9h1v1h-1zM11 8h1v1h-1zM10 13h1v1h-1zM4 0h1v1h-1zM12 8h1v1h-1zM15 15h1v1h-1zM4 2h1v1h-1zM1 12h1v1h-1zM13 11h1v1h-1zM2 12h1v1h-1zM3 11h1v1h-1zM3 1h1v1h-1zM15 7h1v1h-1zM6 3h1v1h-1zM15 0h1v1h-1zM5 5h1v1h-1zM6 0h1v1h-1zM14 3h1v1h-1zM2 9h1v1h-1zM5 14h1v1h-1zM15 11h1v1h-1zM11 14h1v1h-1zM3 12h1v1h-1zM6 4h1v1h-1zM5 1h1v1h-1z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bedrock);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-body);
}

[hidden] {
  display: none !important;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: var(--px) solid var(--yellow);
  outline-offset: var(--px);
}

/* The skip link target only takes focus so keyboard users land there; no ring needed */
[tabindex="-1"]:focus {
  outline: none;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 10;
  left: 16px;
  top: -80px;
  padding: 10px 14px;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Pixel text: one font pixel is 1/8 em, so the hard shadow sits one pixel down-right,
   the way the game draws its text. Sizes stay on multiples of 8 so glyphs render crisp. */
.pixel,
.server-name,
.motd,
.section-title,
.address__value,
.btn,
.pill,
.count,
.step__num,
.step__title,
.group__title,
.tip__name,
.map-soon__title {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.125;
}

/* Notched pixel frame: four offset shadows leave the corners empty. */
.frame {
  margin: var(--px);
  background: var(--panel);
  box-shadow:
    0 calc(var(--px) * -1) 0 var(--frame),
    0 var(--px) 0 var(--frame),
    calc(var(--px) * -1) 0 0 var(--frame),
    var(--px) 0 0 var(--frame),
    inset var(--px) var(--px) 0 var(--panel-hi),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 var(--panel-lo);
}

/* ---------- Hero: the surface at night ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 35%, var(--sky-3) 70%, var(--sky-4));
}

.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky__stars {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--px);
  height: var(--px);
  box-shadow:
    484px 300px #5e6597, 756px 308px #8f97d6, 1240px 4px #8f97d6, 528px 280px #e9e6ff,
    392px 364px #5e6597, 1104px 280px #8f97d6, 812px 324px #5e6597, 472px 324px #e9e6ff,
    1068px 196px #fff, 324px 388px #8f97d6, 616px 396px #5e6597, 548px 240px #8f97d6,
    808px 372px #5e6597, 272px 184px #fff, 72px 68px #8f97d6, 444px 132px #8f97d6,
    860px 256px #5e6597, 1172px 176px #8f97d6, 1196px 116px #bfc6ff, 1396px 12px #bfc6ff,
    1428px 164px #fff, 160px 24px #5e6597, 332px 44px #bfc6ff, 612px 20px #5e6597,
    700px 116px #bfc6ff, 944px 60px #fff, 36px 236px #5e6597, 212px 320px #8f97d6;
}

/* The moon is square here too. */
.sky__moon {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 40px;
  height: 40px;
  background:
    linear-gradient(#cfc9ac, #cfc9ac) 8px 8px / 10px 10px no-repeat,
    linear-gradient(#d9d4b8, #d9d4b8) 24px 22px / 8px 8px no-repeat,
    linear-gradient(#d9d4b8, #d9d4b8) 10px 28px / 6px 6px no-repeat,
    #ece8d2;
  box-shadow:
    0 0 0 8px rgb(236 232 210 / 0.06),
    0 0 0 16px rgb(236 232 210 / 0.03);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "status"
    "address";
}

.hero__title {
  grid-area: title;
}

.server-name {
  font-size: 48px;
  line-height: 1;
  color: var(--ink);
  text-shadow: 6px 6px 0 var(--title-shadow);
  overflow-wrap: anywhere;
}

/* The server's MOTD, shown exactly as the owner set it */
.motd {
  min-height: 1.25em;
  margin-top: 20px;
  font-size: 24px;
  line-height: 1.25;
  color: var(--mc-gray);
  text-shadow: 3px 3px 0 #262626;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* ---------- Status block (modeled on the in-game server list entry) ---------- */

.status {
  grid-area: status;
  --state: var(--mc-gray);
  padding: 16px;
}

.status[data-state="online"] {
  --state: var(--green);
}

.status[data-state="offline"] {
  --state: var(--red);
}

/* Icon on the left; state on the first line; version, count and bars on the second */
.status__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon pill pill"
    "icon version ping";
  column-gap: 16px;
  row-gap: 8px;
}

.status__main {
  display: contents;
}

.status__icon {
  grid-area: icon;
  width: 64px;
  height: 64px;
  outline: var(--px) solid var(--panel-lo);
}

.status[data-state="offline"] .status__icon {
  filter: grayscale(1) brightness(0.7);
}

.status__icon img {
  display: block;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}

/* 8x8 grass block drawn with box-shadows, 8px per pixel */
.pixel-block {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
}

.pixel-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #8ccf55;
  box-shadow:
    8px 0 #6fb33f, 16px 0 #6fb33f, 24px 0 #4f8f2c, 32px 0 #8ccf55,
    40px 0 #6fb33f, 48px 0 #6fb33f, 56px 0 #8ccf55, 0 8px #6fb33f,
    8px 8px #4f8f2c, 16px 8px #6fb33f, 24px 8px #6fb33f, 32px 8px #4f8f2c,
    40px 8px #6fb33f, 48px 8px #4f8f2c, 56px 8px #6fb33f, 0 16px #4f8f2c,
    8px 16px #8a5a3b, 16px 16px #4f8f2c, 24px 16px #6fb33f, 32px 16px #8a5a3b,
    40px 16px #4f8f2c, 48px 16px #6fb33f, 56px 16px #8a5a3b, 0 24px #8a5a3b,
    8px 24px #6b4329, 16px 24px #8a5a3b, 24px 24px #4f8f2c, 32px 24px #8a5a3b,
    40px 24px #8a5a3b, 48px 24px #6b4329, 56px 24px #8a5a3b, 0 32px #8a5a3b,
    8px 32px #8a5a3b, 16px 32px #a3714f, 24px 32px #8a5a3b, 32px 32px #8a5a3b,
    40px 32px #6b4329, 48px 32px #8a5a3b, 56px 32px #8a5a3b, 0 40px #6b4329,
    8px 40px #8a5a3b, 16px 40px #8a5a3b, 24px 40px #8a5a3b, 32px 40px #a3714f,
    40px 40px #8a5a3b, 48px 40px #8a5a3b, 56px 40px #6b4329, 0 48px #8a5a3b,
    8px 48px #8a5a3b, 16px 48px #6b4329, 24px 48px #8a5a3b, 32px 48px #8a5a3b,
    40px 48px #8a5a3b, 48px 48px #a3714f, 56px 48px #8a5a3b, 0 56px #8a5a3b,
    8px 56px #a3714f, 16px 56px #8a5a3b, 24px 56px #8a5a3b, 32px 56px #6b4329,
    40px 56px #8a5a3b, 48px 56px #8a5a3b, 56px 56px #8a5a3b;
}

.pill {
  grid-area: pill;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 12px 6px 8px;
  font-size: 24px;
  line-height: 1;
  color: var(--state);
  background: color-mix(in srgb, var(--state) 14%, var(--panel));
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--state) 25%, #000);
}

.pill__dot {
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--state);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--state) 25%, #000);
}

.status__version {
  grid-area: version;
  align-self: end;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.status__ping {
  grid-area: ping;
  align-self: end;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 2px;
}

.count {
  font-size: 24px;
  line-height: 1;
  color: var(--mc-gray);
  text-shadow: 3px 3px 0 #262626;
  white-space: nowrap;
}

.count:empty {
  display: none;
}

.count__sep {
  color: #555;
}

/* Signal bars, like the ping indicator next to each server in the game */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.bars i {
  width: 4px;
  background: #33353c;
}

.bars i:nth-child(1) { height: 4px; }
.bars i:nth-child(2) { height: 8px; }
.bars i:nth-child(3) { height: 12px; }
.bars i:nth-child(4) { height: 16px; }
.bars i:nth-child(5) { height: 20px; }

.status[data-state="online"] .bars i {
  background: var(--green);
  box-shadow: 1px 1px 0 #153f15;
}

.status[data-state="offline"] .bars i:first-child {
  background: var(--red);
}

.status[data-state="checking"] .bars i {
  animation: ping 1.2s steps(1, end) infinite;
}

.status[data-state="checking"] .bars i:nth-child(2) { animation-delay: 0.12s; }
.status[data-state="checking"] .bars i:nth-child(3) { animation-delay: 0.24s; }
.status[data-state="checking"] .bars i:nth-child(4) { animation-delay: 0.36s; }
.status[data-state="checking"] .bars i:nth-child(5) { animation-delay: 0.48s; }

@keyframes ping {
  0%, 100% { background: #33353c; }
  40% { background: var(--mc-gray); }
}

.status__players {
  margin-top: 20px;
  padding-top: 16px;
  border-top: var(--px) solid var(--panel-lo);
  box-shadow: inset 0 var(--px) 0 var(--panel-hi);
  padding-left: 0;
}

.status__msg {
  color: var(--ink-soft);
  max-width: 44ch;
}

.players__label {
  color: var(--ink-mute);
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  background: var(--panel-lo);
  font-weight: 600;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

/* A tiny generic face, colored from the player's name */
.head {
  --hair: #4a3122;
  --skin: #c99a6e;
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(var(--hair) 0 6px, var(--skin) 6px);
}

.head::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 4px;
  height: 2px;
  background: linear-gradient(90deg, #fff 0 2px, #2d3f8f 2px);
  box-shadow: 8px 0 #fff;
}

.c1 .head { --hair: #e0c068; --skin: #f0c8a0; }
.c2 .head { --hair: #1f1a17; --skin: #8d5a3a; }
.c3 .head { --hair: #a3462a; --skin: #f2c9a6; }
.c4 .head { --hair: #2b2b2b; --skin: #d9a47a; }
.c5 .head { --hair: #6b3f24; --skin: #6e4028; }
.c6 .head { --hair: #3a6ea8; --skin: #e8bb92; }
.c7 .head { --hair: #7c4a9c; --skin: #b98460; }

/* ---------- Address and copy ---------- */

.address {
  grid-area: address;
  align-self: center;
}

.address__label {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.address__value {
  margin: 10px 0 24px;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ink);
  text-shadow: 5px 5px 0 var(--title-shadow);
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

/* Game-style button: bevel light top-left, dark bottom-right, black notched outline */
.btn {
  display: inline-grid;
  margin: var(--px);
  padding: 14px 24px 16px;
  min-height: 56px;
  border: 0;
  border-radius: 0;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  text-shadow: 3px 3px 0 #3a3a3a;
  background: var(--btn-face);
  box-shadow:
    0 calc(var(--px) * -1) 0 var(--frame),
    0 var(--px) 0 var(--frame),
    calc(var(--px) * -1) 0 0 var(--frame),
    var(--px) 0 0 var(--frame),
    inset var(--px) var(--px) 0 var(--btn-hi),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 var(--btn-lo);
  cursor: pointer;
}

/* Both labels share one cell so the button never changes width */
.btn__label,
.btn__done {
  grid-area: 1 / 1;
}

.btn__done {
  visibility: hidden;
  color: var(--green);
  text-shadow: 3px 3px 0 #153f15;
}

.btn[data-copied] .btn__label {
  visibility: hidden;
}

.btn[data-copied] .btn__done {
  visibility: visible;
}

.btn:hover {
  background: var(--btn-face-hover);
  box-shadow:
    0 calc(var(--px) * -1) 0 #fff,
    0 var(--px) 0 #fff,
    calc(var(--px) * -1) 0 0 #fff,
    var(--px) 0 0 #fff,
    inset var(--px) var(--px) 0 var(--btn-hi),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 var(--btn-lo);
}

.btn:active {
  box-shadow:
    0 calc(var(--px) * -1) 0 var(--frame),
    0 var(--px) 0 var(--frame),
    calc(var(--px) * -1) 0 0 var(--frame),
    var(--px) 0 0 var(--frame),
    inset var(--px) var(--px) 0 var(--btn-lo),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 var(--btn-hi);
}

.btn:focus-visible {
  outline-offset: calc(var(--px) * 2);
}

.copy-hint {
  margin-top: 16px;
  color: var(--yellow);
  font-size: 0.9375rem;
}

.address__note {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.v-version {
  color: var(--gold);
}

/* ---------- Strata ---------- */

.stratum {
  --band: var(--stone);
  position: relative;
  padding: 72px 0 80px;
  background: var(--grain) 0 0 / 64px 64px, var(--band);
}

/* Jagged top edge: blocks of this layer poke up into the layer above */
.stratum::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 40px, var(--band) 40px 56px, transparent 56px 120px,
      var(--band) 120px 128px, transparent 128px 184px) 0 0 / 100% 4px no-repeat,
    repeating-linear-gradient(90deg,
      var(--band) 0 24px, transparent 24px 40px, var(--band) 40px 88px,
      transparent 88px 96px, var(--band) 96px 136px, transparent 136px 152px) 0 4px / 100% 4px no-repeat;
}

.stratum--dirt {
  --band: var(--dirt);
  padding-top: 88px;
}

/* Grass on top of the first dirt layer, with a few blades above and drips below */
.stratum--dirt::before {
  top: -4px;
  height: 24px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 20px, var(--grass-light) 20px 24px, transparent 24px 60px,
      var(--grass) 60px 64px, transparent 64px 92px, var(--grass-light) 92px 96px,
      transparent 96px 132px) 0 0 / 100% 4px no-repeat,
    linear-gradient(var(--grass-light), var(--grass-light)) 0 4px / 100% 4px no-repeat,
    linear-gradient(var(--grass), var(--grass)) 0 8px / 100% 8px no-repeat,
    repeating-linear-gradient(90deg,
      var(--grass) 0 12px, var(--grass-dark) 12px 20px, transparent 20px 36px,
      var(--grass) 36px 44px, transparent 44px 64px, var(--grass-dark) 64px 76px,
      transparent 76px 100px) 0 16px / 100% 4px no-repeat,
    repeating-linear-gradient(90deg,
      transparent 0 12px, var(--grass-dark) 12px 16px, transparent 16px 68px,
      var(--grass-dark) 68px 72px, transparent 72px 124px) 0 20px / 100% 4px no-repeat;
}

.stratum--stone { --band: var(--stone); }
.stratum--andesite { --band: var(--andesite); }
.stratum--deepslate { --band: var(--deepslate); }

.stratum--bedrock {
  --band: var(--bedrock);
  padding: 56px 0 48px;
}

.section-title {
  margin-bottom: 32px;
  font-size: 32px;
  color: var(--ink);
  text-shadow: 4px 4px 0 rgb(0 0 0 / 0.5);
}

/* ---------- How to join ---------- */

.steps {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* Inventory-slot number */
.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 2px 0 0 6px;
  font-size: 32px;
  color: #fff;
  text-shadow: 4px 4px 0 #3f3f3f;
  background: var(--slot);
  box-shadow:
    inset var(--px) var(--px) 0 var(--slot-lo),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 var(--slot-hi);
}

.step__title {
  margin: 4px 0 8px;
  font-size: 24px;
  color: var(--ink);
  text-shadow: 3px 3px 0 rgb(0 0 0 / 0.45);
}

.step__title .v-version {
  color: var(--gold);
  font-weight: 400;
}

.step__text {
  max-width: 60ch;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 8px 2px;
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1;
  vertical-align: 4px;
  color: var(--aqua);
  background: rgb(85 255 255 / 0.1);
  text-shadow: none;
}

/* The version warning: gold frame so it can't be missed */
.warn {
  --frame: var(--gold);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 20px var(--px) 0;
  padding: 14px 16px;
  color: var(--ink);
  background: #2e2105;
  box-shadow:
    0 calc(var(--px) * -1) 0 var(--frame),
    0 var(--px) 0 var(--frame),
    calc(var(--px) * -1) 0 0 var(--frame),
    var(--px) 0 0 var(--frame);
}

.warn__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-family: var(--font-pixel);
  font-size: 24px;
  line-height: 1;
  color: #000;
  background: var(--gold);
}

.step__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--aqua);
  font-weight: 600;
}

/* ---------- Features: plugin cards styled like item tooltips ---------- */

.feature-groups {
  display: grid;
  gap: 48px;
}

.group {
  --cat: var(--ink);
  --cat-shadow: #3c3b39;
}

.group--gameplay { --cat: var(--yellow); --cat-shadow: #3f3f15; }
.group--quality-of-life { --cat: var(--pink); --cat-shadow: #3f153f; }
.group--voice { --cat: var(--aqua); --cat-shadow: #153f3f; }

.group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--ink);
  text-shadow: 3px 3px 0 rgb(0 0 0 / 0.5);
}

.group__title::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--cat);
  box-shadow: 3px 3px 0 var(--cat-shadow);
}

.cards {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.tip {
  margin: var(--px);
  padding: 16px 18px 18px;
  background: var(--tip-bg);
  border: var(--px) solid transparent;
  border-image: linear-gradient(var(--tip-edge-top), var(--tip-edge-bottom)) 1;
  box-shadow:
    0 calc(var(--px) * -1) 0 var(--tip-bg),
    0 var(--px) 0 var(--tip-bg),
    calc(var(--px) * -1) 0 0 var(--tip-bg),
    var(--px) 0 0 var(--tip-bg);
}

.tip__name {
  font-size: 24px;
  color: var(--cat);
  text-shadow: 3px 3px 0 var(--cat-shadow);
  overflow-wrap: anywhere;
}

.tip__name a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.tip__tagline {
  margin-top: 10px;
  color: var(--ink);
}

.tip__how {
  margin-top: 8px;
  color: var(--mc-gray);
  font-size: 0.9375rem;
}

.tip__how-label {
  color: var(--ink-soft);
  font-weight: 700;
}

.tip__mod {
  margin-top: 14px;
  font-size: 0.9375rem;
}

.badge {
  display: inline-block;
  margin-right: 4px;
  padding: 4px 8px 3px;
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1;
  color: #000;
  background: var(--aqua);
}

.tip__mod-link {
  color: var(--aqua);
  font-weight: 600;
}

.hood {
  margin-top: 48px;
  max-width: 72ch;
  color: var(--ink-mute);
  font-size: 0.875rem;
}

.hood__label {
  font-weight: 700;
}

/* ---------- Rules and whitelist ---------- */

.house {
  display: grid;
  gap: 64px;
}

.rules__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules__list li {
  position: relative;
  max-width: 60ch;
  padding-left: 28px;
  font-size: 1.0625rem;
}

.rules__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--ink-soft);
  box-shadow: 2px 2px 0 #000;
}

.whitelist__text {
  margin: var(--px);
  padding: 22px 24px;
  font-size: 1.125rem;
  line-height: 1.5;
  background: var(--panel);
  box-shadow:
    0 calc(var(--px) * -1) 0 var(--frame),
    0 var(--px) 0 var(--frame),
    calc(var(--px) * -1) 0 0 var(--frame),
    var(--px) 0 0 var(--frame),
    inset var(--px) var(--px) 0 var(--panel-hi),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 var(--panel-lo);
}

/* ---------- Map ---------- */

.map-soon {
  --dash: #4a4c57;
  max-width: 720px;
  padding: 32px 28px;
  background:
    repeating-linear-gradient(90deg, var(--dash) 0 12px, transparent 12px 24px) 0 0 / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--dash) 0 12px, transparent 12px 24px) 0 100% / 100% 4px no-repeat,
    repeating-linear-gradient(180deg, var(--dash) 0 12px, transparent 12px 24px) 0 0 / 4px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--dash) 0 12px, transparent 12px 24px) 100% 0 / 4px 100% no-repeat,
    rgb(0 0 0 / 0.25);
}

.map-soon__title {
  font-size: 24px;
  color: var(--ink);
  text-shadow: 3px 3px 0 #000;
}

.map-soon__text {
  margin-top: 10px;
  color: var(--ink-soft);
}

.map-frame {
  padding: var(--px);
}

.map-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  background: var(--panel-lo);
}

.map-open {
  display: inline-block;
  margin-top: 20px;
  color: var(--aqua);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.footer {
  display: grid;
  gap: 8px;
  color: var(--ink-mute);
  font-size: 0.875rem;
}

.footer__fine {
  font-size: 0.8125rem;
  color: #85827a;
}

.noscript {
  padding: 16px;
  background: var(--yellow);
  color: #000;
  text-align: center;
}

/* ---------- Larger screens ---------- */

@media (min-width: 600px) {
  .wrap {
    padding: 0 32px;
  }

  .server-name {
    font-size: 64px;
    text-shadow: 8px 8px 0 var(--title-shadow);
  }

  .address__value {
    font-size: 48px;
    text-shadow: 6px 6px 0 var(--title-shadow);
  }

  .sky__moon {
    top: 40px;
    right: max(32px, calc(50% - 560px));
    width: 56px;
    height: 56px;
    background:
      linear-gradient(#cfc9ac, #cfc9ac) 12px 12px / 12px 12px no-repeat,
      linear-gradient(#d9d4b8, #d9d4b8) 32px 32px / 12px 8px no-repeat,
      linear-gradient(#d9d4b8, #d9d4b8) 16px 36px / 8px 8px no-repeat,
      #ece8d2;
  }

  .section-title {
    font-size: 40px;
    text-shadow: 5px 5px 0 rgb(0 0 0 / 0.5);
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 112px 0 104px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "status address";
    column-gap: 72px;
    row-gap: 48px;
    align-items: center;
  }

  .server-name {
    font-size: 96px;
    text-shadow: 12px 12px 0 var(--title-shadow);
  }

  .motd {
    margin-top: 28px;
    font-size: 32px;
    text-shadow: 4px 4px 0 #262626;
  }

  .address__value {
    font-size: 64px;
    text-shadow: 8px 8px 0 var(--title-shadow);
  }

  .stratum {
    padding: 104px 0 112px;
  }

  .stratum--dirt {
    padding-top: 120px;
  }

  .stratum--bedrock {
    padding: 64px 0 56px;
  }

  .section-title {
    margin-bottom: 48px;
    font-size: 48px;
    text-shadow: 6px 6px 0 rgb(0 0 0 / 0.5);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 64px;
  }

  .house {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}

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