:root {
  --bg: #08080c;
  --surface: #121218;
  --surface-2: #191921;
  --line: #24242e;
  --text: #f4f4f6;
  --muted: #a5a5b0;
  --accent: #62c54a;
  --accent-dark: #3c8a2c;
  --gold: #ffcc33;
  --danger: #ff5c5c;
  --radius: 8px;
  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, p, ul { margin: 0; }

a { color: var(--accent); }

img { image-rendering: pixelated; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--surface); color: var(--text); border-radius: var(--radius); }

.skip:focus-visible { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(1200px, 100% - 32px); margin: 0 auto; }

.muted { color: var(--muted); }

.small { font-size: .875rem; }

/* Nav */

.nav { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color .2s ease-out, border-color .2s ease-out; border-bottom: 1px solid transparent; }

.nav--solid { background: rgba(8, 8, 12, .86); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

.nav__inner { display: flex; align-items: center; gap: 32px; width: min(1200px, 100% - 32px); height: 68px; margin: 0 auto; }

.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.2rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }

.nav__links { display: flex; gap: 26px; flex: 1; }

.nav__links a { color: #cfcfd6; font-weight: 500; text-decoration: none; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); transition: color .15s ease-out; }

.nav__links a:hover { color: var(--gold); }

@media (max-width: 639px) { .nav__links { display: none; } .nav__inner { justify-content: space-between; } }

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 2px solid #000;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .55);
  white-space: nowrap;
  transition: transform .1s ease-out, filter .15s ease-out;
}

.btn img { width: 20px; height: 20px; }

.btn--block { background: linear-gradient(180deg, #7bd65f 0%, #4fae38 55%, #3c8a2c 100%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .35), 0 6px 0 #1d4a14; }

.btn--stone { background: linear-gradient(180deg, #8d8d8d 0%, #6b6b6b 55%, #555 100%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .3), 0 6px 0 #2a2a2a; }

.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn:active { transform: translateY(4px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 0 #1d4a14; }

.btn--small { height: 38px; padding: 0 16px; font-size: .9375rem; }

/* Hero */

.hero {
  position: relative;
  min-height: max(720px, 100vh);
  display: flex;
  align-items: center;
  padding: 110px 16px 150px;
  overflow: hidden;
  background: linear-gradient(180deg, #05060f 0%, #0d1130 45%, #1f2550 100%);
}

.hero__sky, .hero__stars, .hero__fireflies { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__land {
  position: absolute;
  inset: auto 0 0;
  height: 100%;
  background: url("/assets/hero-night.png") center bottom / cover no-repeat;
  image-rendering: pixelated;
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
}

.moon {
  position: absolute;
  top: 12%;
  right: 14%;
  width: 72px;
  height: 72px;
  background:
    linear-gradient(#cfd3e3, #cfd3e3) 18px 22px / 12px 12px no-repeat,
    linear-gradient(#cfd3e3, #cfd3e3) 42px 40px / 12px 12px no-repeat,
    linear-gradient(#d9dcea, #d9dcea) 24px 48px / 8px 8px no-repeat,
    #eef0f7;
  box-shadow: 0 0 0 6px rgba(238, 240, 247, .08), 0 0 60px rgba(200, 210, 255, .25);
}

@media (max-width: 899px) { .moon { width: 48px; height: 48px; right: 8%; } }

.cloud {
  position: absolute;
  height: 26px;
  background: rgba(205, 210, 235, .12);
  box-shadow: 48px -16px 0 rgba(205, 210, 235, .1), 96px 0 0 rgba(205, 210, 235, .12), 24px 16px 0 rgba(205, 210, 235, .08);
  animation: drift linear infinite;
}

.cloud--1 { top: 14%; width: 140px; animation-duration: 140s; animation-delay: -20s; }
.cloud--2 { top: 26%; width: 200px; animation-duration: 190s; animation-delay: -90s; }
.cloud--3 { top: 8%; width: 110px; animation-duration: 120s; animation-delay: -60s; }

@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: 32px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__model { order: -1; }
}

.alert { display: inline-block; margin-bottom: 18px; padding: 10px 14px; background: rgba(255, 92, 92, .14); border: 1px solid rgba(255, 92, 92, .45); border-radius: var(--radius); color: #ffbdbd; }

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.live-tag__dot { width: 9px; height: 9px; border-radius: 50%; background: #777; }

.live-tag--online .live-tag__dot { background: #ff3b3b; animation: pulse 1.6s ease-out infinite; }

.live-tag--offline { color: var(--muted); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .7); } 100% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); } }

.logo-title {
  position: relative;
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #d9d9d9;
  background: url("/assets/tex/stone.png") 0 0 / 48px 48px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #4d4d4d) drop-shadow(0 2px 0 #3a3a3a) drop-shadow(0 2px 0 #2a2a2a) drop-shadow(0 6px 10px rgba(0, 0, 0, .6));
}

.logo-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 45%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}

.hero__lead { max-width: 560px; margin: 22px 0 30px; color: #dcdce6; font-size: 1.1875rem; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }

@media (max-width: 899px) { .hero__lead { margin-left: auto; margin-right: auto; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__model { position: relative; display: flex; flex-direction: column; align-items: center; }

.skin { width: min(360px, 80vw); height: auto; aspect-ratio: 360 / 460; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); cursor: grab; }

.skin:active { cursor: grabbing; }

.nametag { margin-bottom: -6px; padding: 3px 10px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.05rem; font-weight: 500; text-shadow: 2px 2px 0 #3f3f3f; }

.hero__hearts { display: flex; gap: 2px; margin-top: 6px; }

.hero__hearts .hud-icon { width: 20px; height: 20px; background-size: 20px 20px; }

.hero__fireflies { z-index: 1; pointer-events: none; }

.grass-edge {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 48px;
  background: url("/assets/tex/grass_block_side.png") 0 0 / 48px 48px repeat-x;
  image-rendering: pixelated;
  box-shadow: 0 12px 0 #2b1d12;
}

/* Tiles */

.band { position: relative; z-index: 4; background: linear-gradient(180deg, #2b1d12 0%, #1a120b 30px, var(--bg) 140px); padding: 40px 0 24px; }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1099px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 699px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles .tile:last-child { grid-column: 1 / -1; } }

.tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease-out, border-color .2s ease-out;
}

.tile:hover { transform: translateY(-3px); border-color: #3a3a48; }

.tile__icon { width: 40px; height: 40px; flex-shrink: 0; }

.tile div { display: flex; flex-direction: column; min-width: 0; }

.tile__value { font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }

.tile__value--small { font-size: 1.25rem; overflow-wrap: anywhere; }

.tile__value--reward { color: #3ee07a; text-shadow: 2px 2px 0 #0b3a1c; }

.tile__value--xp { color: #80ff20; text-shadow: 2px 2px 0 #1d3a07; }

.tile__label { color: var(--muted); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* Notice */

.notice {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(98, 197, 74, .08);
  border: 1px solid rgba(98, 197, 74, .3);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  color: #d8dccf;
}

.notice__icon { width: 28px; height: 28px; flex-shrink: 0; }

.notice strong { color: var(--text); }

/* Panels */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 24px; }

@media (max-width: 899px) { .split { grid-template-columns: minmax(0, 1fr); } }

.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.panel__title, .section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.panel__title::before, .section-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 12px;
  vertical-align: -1px;
  background: url("/assets/tex/grass_block_top.png") 0 0 / 14px 14px;
  filter: hue-rotate(-10deg) saturate(1.6) brightness(1.1);
  box-shadow: 0 0 0 2px #000;
}

.state { padding: 4px 10px; background: #26262f; border-radius: 999px; color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.state--online { background: rgba(98, 197, 74, .16); color: var(--accent); }

.player-hero { display: flex; align-items: center; gap: 18px; }

.player-hero__head { width: 96px; height: 96px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }

.player-hero__name { font-size: 1.75rem; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }

#player-stats { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }

.stat { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; }

@media (max-width: 479px) {
  .stat { grid-template-columns: minmax(0, 1fr) auto; }
  .stat .hud, .stat .xp { grid-column: 1 / -1; grid-row: 2; }
}

.stat__label { color: var(--muted); font-size: .875rem; font-weight: 500; }

.stat__value { font-weight: 700; font-variant-numeric: tabular-nums; }

.stat__value--xp { color: #80ff20; text-shadow: 1px 1px 0 #000; }

.hud { display: flex; flex-wrap: wrap; gap: 1px; }

.hud-icon { width: 18px; height: 18px; background-size: 18px 18px; image-rendering: pixelated; }

.hud-icon--heart { background-image: url("/assets/hud/heart_container.png"); }
.hud-icon--heart[data-fill="full"] { background-image: url("/assets/hud/heart_full.png"), url("/assets/hud/heart_container.png"); }
.hud-icon--heart[data-fill="half"] { background-image: url("/assets/hud/heart_half.png"), url("/assets/hud/heart_container.png"); }
.hud-icon--food { background-image: url("/assets/hud/food_empty.png"); }
.hud-icon--food[data-fill="full"] { background-image: url("/assets/hud/food_full.png"), url("/assets/hud/food_empty.png"); }
.hud-icon--food[data-fill="half"] { background-image: url("/assets/hud/food_half.png"), url("/assets/hud/food_empty.png"); }
.hud-icon--armor { background-image: url("/assets/hud/armor_empty.png"); }
.hud-icon--armor[data-fill="full"] { background-image: url("/assets/hud/armor_full.png"); }
.hud-icon--armor[data-fill="half"] { background-image: url("/assets/hud/armor_half.png"); }

.xp { height: 8px; background: #000; border: 1px solid #2c2c2c; }

.xp__fill { width: 0; height: 100%; background: linear-gradient(180deg, #b4ff6a, #6fd61c); transition: width .6s ease-out; }

/* Map */

.parchment {
  padding: 16px;
  background: url("/assets/tex/map_background.png") 0 0 / 100% 100%;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5));
}

.map { position: relative; aspect-ratio: 1; width: 100%; overflow: hidden; background: #c9b48a; }

.map__image { display: block; width: 100%; height: 100%; image-rendering: pixelated; mix-blend-mode: multiply; filter: sepia(.15) saturate(1.1); }

.map__marker { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; transition: transform .4s ease-out; filter: drop-shadow(0 0 1px #000); }

.map__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #5b4a2c; font-weight: 700; }

/* Inventory */

.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.mc-inv { --focus-ring: 0 0 0 2px #000, 0 0 0 4px var(--gold); align-self: flex-start; }

@font-face {
  font-family: "Monocraft";
  src: url("/assets/fonts/monocraft.otf") format("opentype");
  font-display: swap;
}

.mc-inv {
  --mc-panel: #c6c6c6;
  --mc-slot: #8b8b8b;
  --mc-dark: #373737;
  --mc-light: #ffffff;
  --mc-edge: #555555;
  align-self: flex-start;
  max-width: 100%;
  padding: 10px;
  background: var(--mc-panel);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 var(--mc-light), inset -2px -2px 0 var(--mc-edge);
  font-family: "Monocraft", var(--font);
  image-rendering: pixelated;
}

.mc-inv__body { display: flex; gap: 16px; align-items: flex-start; }

.mc-inv__side { display: flex; flex-direction: column; gap: 10px; }

.mc-inv__grids { display: flex; flex-direction: column; gap: 4px; }

.mc-inv__title { margin: 0 0 2px; color: #404040; font-size: .875rem; line-height: 1.2; }

.mc-slots { display: grid; grid-template-columns: 44px; gap: 0; }

.mc-slots--grid { grid-template-columns: repeat(9, 44px); }

.mc-slots--hotbar { margin-top: 10px; }

.mc-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--mc-slot);
  box-shadow: inset 2px 2px 0 var(--mc-dark), inset -2px -2px 0 var(--mc-light);
}

.mc-slot:hover { background: #a8a8a8; }

.mc-slot--selected::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 3px solid #ffffff;
  outline: 1px solid #000;
  pointer-events: none;
}

.mc-slot__icon { width: 32px; height: 32px; image-rendering: pixelated; }

.mc-slot__fallback { color: #3f3f3f; font-size: .75rem; text-transform: uppercase; }

.mc-slot__count {
  position: absolute;
  right: 2px;
  bottom: 0;
  color: #ffffff;
  font-size: .875rem;
  line-height: 1;
  text-shadow: 2px 2px 0 #3f3f3f;
}

.mc-slot__durability { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; background: #000; }

.mc-slot__durability-fill { display: block; height: 2px; }

.mc-slot__tip {
  position: absolute;
  left: calc(100% + 6px);
  top: -6px;
  z-index: 10;
  display: none;
  min-width: max-content;
  padding: 4px 6px;
  background: #100010f0;
  border: 2px solid #28007f;
  box-shadow: inset 0 0 0 1px #5000ff;
  color: #ffffff;
  font-size: .8125rem;
  line-height: 1.4;
  white-space: pre;
  text-shadow: 1px 1px 0 #3f3f3f;
  pointer-events: none;
}

.mc-slot__tip-meta { color: #aaaaaa; }

.mc-slot:hover .mc-slot__tip, .mc-slot:focus-visible .mc-slot__tip { display: block; }

.mc-slot:focus-visible { outline: none; box-shadow: inset 2px 2px 0 var(--mc-dark), inset -2px -2px 0 var(--mc-light), var(--focus-ring); }

@media (max-width: 639px) {
  .mc-slots { grid-template-columns: 34px; }
  .mc-slots--grid { grid-template-columns: repeat(9, 34px); }
  .mc-slot { width: 34px; height: 34px; }
  .mc-slot__icon { width: 24px; height: 24px; }
  .mc-slot__count { font-size: .75rem; }
}

.hero__alert { margin-bottom: 24px; padding: 12px 16px; background: var(--danger-soft); border: 1px solid var(--border); }

.player-card { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 24px; text-align: left; }

.player-card__head { display: flex; align-items: center; gap: 16px; }

.player-card__avatar { width: 64px; height: 64px; flex-shrink: 0; image-rendering: pixelated; background: var(--control-fill); }

.player-card__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.player-card__name { font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }

.player-card__where { color: var(--body-subtle); font-size: .875rem; line-height: 1.4; }

.player-card__stats { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); }

.hud-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; }

@media (max-width: 479px) {
  .hud-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hud-row .hud-icons, .hud-row .xp-bar { grid-column: 1 / -1; grid-row: 2; }
}

.hud-icons { display: flex; flex-wrap: wrap; gap: 2px; }

.hud-icon { width: 18px; height: 18px; background-size: 18px 18px; image-rendering: pixelated; }

.hud-icon--heart { background-image: url("/assets/hud/heart_container.png"); }
.hud-icon--heart[data-fill="full"] { background-image: url("/assets/hud/heart_full.png"), url("/assets/hud/heart_container.png"); }
.hud-icon--heart[data-fill="half"] { background-image: url("/assets/hud/heart_half.png"), url("/assets/hud/heart_container.png"); }
.hud-icon--food { background-image: url("/assets/hud/food_empty.png"); }
.hud-icon--food[data-fill="full"] { background-image: url("/assets/hud/food_full.png"), url("/assets/hud/food_empty.png"); }
.hud-icon--food[data-fill="half"] { background-image: url("/assets/hud/food_half.png"), url("/assets/hud/food_empty.png"); }
.hud-icon--armor { background-image: url("/assets/hud/armor_empty.png"); }
.hud-icon--armor[data-fill="full"] { background-image: url("/assets/hud/armor_full.png"); }
.hud-icon--armor[data-fill="half"] { background-image: url("/assets/hud/armor_half.png"); }

.xp-bar { height: 8px; background: #000; border: 1px solid #2a2a2a; }

.xp-bar__fill { height: 100%; width: 0; background: #80ff20; }

.xp-level { color: #80ff20; text-shadow: 1px 1px 0 #000; }


/* Players */

.players-section { margin: 56px auto 72px; }

.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }

.count { padding: 2px 12px; background: rgba(98, 197, 74, .16); border-radius: 999px; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 0; list-style: none; }

.player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease-out, border-color .2s ease-out;
  transform-style: preserve-3d;
}

.player:hover { border-color: var(--accent-dark); transform: translateY(-4px) rotateX(6deg) rotateY(-6deg); }

.player img { width: 64px; height: 64px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }

.player__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }

.ping { display: flex; align-items: flex-end; gap: 2px; height: 14px; }

.ping span { width: 3px; background: #3a3a44; }
.ping span:nth-child(1) { height: 4px; }
.ping span:nth-child(2) { height: 6px; }
.ping span:nth-child(3) { height: 9px; }
.ping span:nth-child(4) { height: 11px; }
.ping span:nth-child(5) { height: 14px; }
.ping[data-level="5"] span, .ping[data-level="4"] span:nth-child(-n+4), .ping[data-level="3"] span:nth-child(-n+3) { background: var(--accent); }
.ping[data-level="2"] span:nth-child(-n+2) { background: #e0a030; }
.ping[data-level="1"] span:nth-child(1) { background: var(--danger); }

/* Footer */

.footer { position: relative; background: #120c07; }

.dirt-edge { height: 32px; background: url("/assets/tex/dirt.png") 0 0 / 32px 32px repeat-x; image-rendering: pixelated; filter: brightness(.55); }

.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 26px 0; font-size: .875rem; }

.footer__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Reveal */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.stack { position: relative; z-index: 2; }

.mc-slots--grid .mc-slot:nth-child(9n+6) .mc-slot__tip,
.mc-slots--grid .mc-slot:nth-child(9n+7) .mc-slot__tip,
.mc-slots--grid .mc-slot:nth-child(9n+8) .mc-slot__tip,
.mc-slots--grid .mc-slot:nth-child(9n) .mc-slot__tip { left: auto; right: calc(100% + 6px); }
