/* ==========================================================
   PJMC — O PvP raiz da 1.8
   ========================================================== */

:root {
  color-scheme: dark;

  /* superfícies (grafite azulado, tirado do fundo-pvp) */
  --bg: #0d1016;
  --bg-2: #131720;
  --bg-3: #1a1f2b;
  --line: #252c3a;
  --line-2: #323b4d;

  /* texto */
  --text: #e9eef3;
  --muted: #8f9aab;
  --faint: #5f6a7c;

  /* diamante (da logo) */
  --cyan: #45dde6;
  --cyan-2: #1fb3bf;
  --cyan-3: #0d6b74;

  /* códigos de cor do chat do Minecraft */
  --mc-yellow: #ffff55;
  --mc-green: #55ff55;
  --mc-aqua: #55ffff;
  --mc-gold: #ffaa00;
  --mc-red: #ff5555;
  --mc-gray: #aaaaaa;
  --mc-dgray: #555555;

  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --sans: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-float: cubic-bezier(.45, 0, .55, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
b, strong { font-weight: 600; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.hl { color: var(--cyan); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--cyan);
  color: #04262a;
  font-weight: 700;
  border-radius: 6px;
}
.skip:focus { top: 12px; }

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

/* ---------- sprites pixelados ---------- */
[data-sprite] {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
}
[data-sprite] svg { width: 100%; height: 100%; display: block; }

/* ==========================================================
   BOTÃO DA GUI DA 1.8
   Pedra com bisel, borda preta, texto com sombra.
   Hover: tom azulado + texto amarelo, instantâneo como no jogo.
   ========================================================== */
.mc-btn {
  --btn: #9a9a9a;
  --btn-hover: #a9b4ff;
  --btn-text: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  border: 2px solid #000;
  border-radius: 0;
  background-color: var(--btn);
  background-image: url("../img/tex-stone.png");
  background-size: 64px;
  background-blend-mode: multiply;
  image-rendering: pixelated;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, .38),
    inset -2px -3px 0 rgba(0, 0, 0, .38);
  color: var(--btn-text);
  font: 500 17px/1 var(--pixel);
  letter-spacing: .02em;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .55);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.mc-btn:hover {
  background-color: var(--btn-hover);
  color: #ffffa0;
}
.mc-btn:active {
  box-shadow:
    inset -2px -2px 0 rgba(255, 255, 255, .25),
    inset 2px 3px 0 rgba(0, 0, 0, .45);
  transform: translateY(1px);
}
.mc-btn:focus-visible { outline-offset: 2px; }

.mc-btn--diamond { --btn: #5fe7ee; --btn-hover: #a8f6ff; }
.mc-btn--discord { --btn: #8e95ff; --btn-hover: #b8bdff; }
.mc-btn--sm { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.mc-btn--block { width: 100%; }
.mc-btn [data-sprite] { width: 20px; height: 20px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.4)); }

/* ==========================================================
   TOPO
   ========================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(340px, 33vw, 480px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/hero.webp") center / cover no-repeat;
}
/* vinheta: escurece o centro pra logo e funde com o menu */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 60% at 50% 48%, rgba(8, 11, 16, .55), transparent 70%),
    linear-gradient(to bottom, rgba(8, 11, 16, .45) 0%, transparent 22%, transparent 62%, var(--bg) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 28px 40px;
}

.hero__brand {
  position: relative;
  width: clamp(220px, 23vw, 330px);
  animation: brand-in 700ms var(--ease-out) both;
}
.hero__logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .55)) drop-shadow(0 0 28px rgba(69, 221, 230, .18));
  animation: float 5s var(--ease-float) infinite alternate;
}

@keyframes brand-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes float {
  from { transform: translateY(-6px); }
  to   { transform: translateY(8px); }
}

/* splash amarelo do menu principal */
.splash {
  position: absolute;
  right: -14%;
  bottom: 16%;
  padding: 0;
  border: 0;
  background: none;
  transform: rotate(-17deg);
  transform-origin: center;
  cursor: pointer;
}
.splash span {
  display: block;
  color: #ffff00;
  font: 600 clamp(14px, 1.45vw, 21px)/1 var(--pixel);
  text-shadow: 2px 2px 0 #3f3f00;
  white-space: nowrap;
  /* mesmo ritmo do jogo: pulsa duas vezes por segundo */
  animation: splash 500ms cubic-bezier(.37, 0, .63, 1) infinite;
}
@keyframes splash {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(.94); }
}

/* pílulas IP / Discord */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(10, 13, 18, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.pill--ip { justify-self: start; }
.pill--discord { justify-self: end; padding: 8px 8px 8px 16px; }
.pill:hover { border-color: rgba(69, 221, 230, .35); }

.pill__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 9px;
  background: #0a0d12;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform 200ms var(--ease-out);
}
.pill__icon img { width: 30px; height: 30px; }
.pill__icon--discord { color: #fff; background: #5865f2; border-color: rgba(255,255,255,.18); }

.pill__text { display: grid; gap: 1px; }
.pill__text--right { text-align: right; }
.pill__text strong { font: 600 17px/1.2 var(--pixel); letter-spacing: .01em; }
.pill__text small { font-size: 13px; color: #d5dbe3; }
.pill__text b { color: var(--mc-green); font-weight: 700; }

.pill:hover .pill__icon { transform: translateY(-2px); }
.pill:hover strong { color: var(--cyan); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  vertical-align: 1px;
  background: var(--faint);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .35);
}
.dot.is-online { background: var(--mc-green); }
.dot.is-offline { background: var(--mc-red); }

/* ==========================================================
   MENU
   ========================================================== */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(13, 16, 22, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* faixa de blocos separando o topo do menu */
.nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 6px;
  background: url("../img/tex-stone.png") 0 0 / 24px;
  image-rendering: pixelated;
  filter: brightness(.45);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.nav__links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #cfd6df;
  font: 500 17px/1 var(--pixel);
  text-decoration: none;
  white-space: nowrap;
}
.nav__links a:hover { color: #fff; background: var(--bg-3); }
.nav__links a.is-active { color: var(--cyan); }
.nav__links [data-sprite] { width: 22px; height: 22px; }
.nav__shop { flex: none; padding-inline: 22px; }

/* ==========================================================
   JOGUE AGORA
   ========================================================== */
#jogar { margin-top: 36px; }

.play {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.play__content {
  position: relative;
  z-index: 1;
  padding: 40px 0 40px 44px;
  display: grid;
  align-content: center;
  gap: 18px;
}
.play__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 clamp(30px, 3.4vw, 40px)/1 var(--pixel);
}
.play__title [data-sprite] { width: 32px; height: 32px; }
.play__lead { max-width: 46ch; color: var(--muted); font-size: 17px; }
.play__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.play__notice {
  max-width: 46ch;
  padding: 9px 12px;
  border: 1px dashed rgba(255, 255, 85, .4);
  border-radius: 8px;
  background: rgba(255, 255, 85, .07);
  color: #fdfd9c;
  font-size: 14px;
}
.play__notice a { color: var(--cyan); }

.play__art {
  position: absolute;
  inset: 0 0 0 38%;
  background: url("../img/jogar.webp") 55% 40% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
          mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}

/* entrada da lista de servidores (Multijogador da 1.8) */
.slist {
  display: flex;
  gap: 12px;
  max-width: 480px;
  padding: 8px 10px;
  border: 2px solid #8b8b8b;
  background: #000 url("../img/tex-dirt.png") 0 0 / 48px;
  background-blend-mode: normal;
  image-rendering: pixelated;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .74);
  font-family: var(--pixel);
}
.slist__icon { width: 48px; height: 48px; flex: none; image-rendering: auto; }
.slist__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.slist__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slist__name { color: #fff; font-size: 17px; line-height: 1; text-shadow: 2px 2px 0 #3f3f3f; }
.slist__right { display: flex; align-items: center; gap: 8px; }
.slist__count { color: var(--mc-gray); font-size: 15px; line-height: 1; text-shadow: 2px 2px 0 #2a2a2a; }
.slist__motd { font-size: 15px; line-height: 1.3; color: var(--mc-gray); text-shadow: 2px 2px 0 #222; }

/* barrinhas de ping */
.ping { display: inline-flex; align-items: flex-end; gap: 1px; height: 14px; }
.ping i {
  width: 3px;
  background: var(--mc-dgray);
  box-shadow: 1px 1px 0 #111;
}
.ping i:nth-child(1) { height: 4px; }
.ping i:nth-child(2) { height: 6px; }
.ping i:nth-child(3) { height: 8px; }
.ping i:nth-child(4) { height: 11px; }
.ping i:nth-child(5) { height: 14px; }
.ping.is-online i { background: var(--mc-green); }
.ping.is-offline i { background: #2f2f2f; }
.ping.is-offline i:nth-child(5) { background: var(--mc-red); }
/* "pingando...": as barras acendem em sequência, como no jogo */
.ping.is-loading i { animation: ping-scan 1s steps(1, end) infinite; }
.ping.is-loading i:nth-child(2) { animation-delay: .1s; }
.ping.is-loading i:nth-child(3) { animation-delay: .2s; }
.ping.is-loading i:nth-child(4) { animation-delay: .3s; }
.ping.is-loading i:nth-child(5) { animation-delay: .4s; }
@keyframes ping-scan {
  0%   { background: var(--mc-dgray); }
  10%  { background: var(--mc-green); }
  50%  { background: var(--mc-dgray); }
}

/* cores do chat */
.mc-b { color: var(--mc-aqua); }
.mc-e { color: var(--mc-yellow); }
.mc-a { color: var(--mc-green); }
.mc-6 { color: var(--mc-gold); }
.mc-c { color: var(--mc-red); }
.mc-7 { color: var(--mc-gray); }
.mc-8 { color: var(--mc-dgray); }
.mc-f { color: #fff; }
.mc-l { font-weight: 700; }

/* ==========================================================
   CONTEÚDO + LATERAL
   ========================================================== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  margin-top: 44px;
  align-items: start;
}
.main { display: grid; gap: 52px; }
.side { display: grid; gap: 18px; position: sticky; top: 92px; }

.h2 {
  font: 700 clamp(24px, 2.4vw, 30px)/1.1 var(--pixel);
  margin-bottom: 14px;
}
.prose { color: var(--muted); max-width: 65ch; }

/* recursos */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: 20px 18px 18px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border: 2px solid #000;
  background: #8b8b8b;
  box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff;
}
.feature__icon svg { width: 36px; height: 36px; }
/* dois slots de inventário? não — duas espadas cruzadas */
.feature__icon--duo { position: relative; }
.feature__icon--duo [data-sprite] { position: absolute; width: 34px; height: 34px; }
.feature__icon--duo [data-sprite]:last-child { transform: scaleX(-1); }
.feature h3 { font: 600 19px/1.1 var(--pixel); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* equipe */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.team__member {
  --cargo: var(--cyan);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.team__head {
  width: 64px;
  height: 64px;
  flex: none;
  image-rendering: pixelated;
  border: 2px solid #000;
  background: #8b8b8b;
}
.team__text { display: grid; gap: 2px; min-width: 0; }
.team__role { color: var(--cargo); font: 700 14px/1 var(--pixel); text-shadow: 1px 1px 0 #000; }
.team__nick { font: 600 19px/1.2 var(--pixel); overflow-wrap: anywhere; }
.team__text small { color: var(--muted); font-size: 13.5px; }

/* novidades */
.post {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.post__cover {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(13, 16, 22, .35), rgba(13, 16, 22, .35)),
    url("../img/hero.webp") 50% 40% / cover;
}
.post__cover img { width: 70%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.post__body { padding: 22px 24px; display: grid; gap: 10px; justify-items: start; align-content: center; }
.post__meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.tag {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(69, 221, 230, .12);
  color: var(--cyan);
  font: 600 12px/1.2 var(--pixel);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.post__title { font: 700 22px/1.15 var(--pixel); }
.post__excerpt { color: var(--muted); font-size: 15px; }

.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.strip a:not(.mc-btn), .note a { color: var(--cyan); text-decoration: none; }
.strip a:not(.mc-btn):hover, .note a:hover { text-decoration: underline; }

/* dúvidas */
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font: 600 17px/1.25 var(--pixel);
  color: var(--cyan);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 22px;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 18px; color: #c9d1db; }
.note { margin-top: 16px; color: var(--muted); }

/* lateral */
.card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.card__title { font: 700 19px/1.15 var(--pixel); }
.card__sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.card__foot { margin-top: 12px; color: var(--faint); font-size: 13px; }
.card--discord .mc-btn { margin-top: 14px; }

.shopcard {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 22px 20px;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(31, 179, 191, .92), rgba(13, 107, 116, .95)),
    url("../img/tex-stone.png") 0 0 / 48px;
  image-rendering: pixelated;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 30px -12px rgba(31, 179, 191, .55);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.shopcard:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(31, 179, 191, .75); }
.shopcard__icon {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 64px;
  height: 64px;
  translate: 0 -50%;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .3));
}
.shopcard__title { font: 700 20px/1.1 var(--pixel); color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .3); padding-right: 72px; }
.shopcard__sub { font-size: 13.5px; color: rgba(255, 255, 255, .85); padding-right: 72px; }

/* barra de XP */
.xp { position: relative; margin-top: 26px; }
.xp__level {
  position: absolute;
  left: 50%;
  top: -20px;
  translate: -50% 0;
  color: #80ff20;
  font: 700 18px/1 var(--pixel);
  text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000;
}
.xp__bar {
  position: relative;
  display: block;
  height: 14px;
  overflow: hidden;
  border: 2px solid #000;
  background:
    repeating-linear-gradient(to right, transparent 0 calc(10% - 2px), #000 calc(10% - 2px) 10%),
    #2a2a2a;
}
.xp__fill {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #b8ff5c 0 30%, #80ff20 30% 70%, #4fb81a 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out);
}
.xp__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to right, transparent 0 calc(10% - 2px), #000 calc(10% - 2px) 10%);
}

/* como entrar */
.steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: #c9d1db;
  font-size: 14.5px;
  line-height: 1.45;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  height: 28px;
  background: #8b8b8b;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff;
  color: #fff;
  font: 700 15px/1 var(--pixel);
  text-shadow: 1px 1px 0 #3f3f3f;
}
.ipchip {
  margin-top: 2px;
  padding: 2px 8px;
  border: 1px dashed rgba(69, 221, 230, .5);
  border-radius: 4px;
  background: rgba(69, 221, 230, .08);
  color: var(--cyan);
  font: 600 14px/1.5 var(--pixel);
  cursor: pointer;
}
.ipchip:hover { background: rgba(69, 221, 230, .18); }

/* ==========================================================
   RANKING
   ========================================================== */
#ranking { margin-top: 60px; }
.top {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 30px 32px;
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, var(--bg-2) 0%, rgba(19, 23, 32, .9) 30%, rgba(13, 107, 116, .75) 100%),
    url("../img/hero.webp") 50% 70% / cover;
  border: 1px solid var(--line);
}
.top__text { display: grid; gap: 10px; justify-items: start; }
.top__text p { color: var(--muted); }
.top__title { font: 700 clamp(24px, 2.4vw, 30px)/1.1 var(--pixel); }
.top__text .mc-btn { margin-top: 6px; }

.top__list {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top__list li {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 92px;
}
.top__nick {
  padding: 3px 8px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 500 14px/1.2 var(--pixel);
  white-space: nowrap;
}
.top__nick b { color: var(--mc-gold); font-weight: 600; }
.top__list li:nth-child(1) .top__nick b { color: var(--mc-yellow); }
.top__head {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
}
.top__list li.is-empty .top__head { filter: grayscale(.4) brightness(.8); }
.top__list li.is-empty .top__nick { color: var(--mc-gray); }

/* ==========================================================
   RODAPÉ (terra do menu antigo)
   ========================================================== */
.footer {
  margin-top: 72px;
  padding: 48px 0 28px;
  background:
    linear-gradient(rgba(10, 8, 6, .82), rgba(10, 8, 6, .9)),
    url("../img/tex-dirt.png") 0 0 / 64px;
  image-rendering: pixelated;
  border-top: 2px solid #000;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
}
.footer__brand { max-width: 420px; display: grid; gap: 12px; }
.footer__brand p { color: #b9b2a8; font-size: 14.5px; }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font: 700 24px/1 var(--pixel) !important;
}
.footer__cols { display: flex; gap: 56px; }
.footer__cols h3 { font: 600 16px/1 var(--pixel); color: #fff; margin-bottom: 14px; }
.footer__cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer__cols a { color: #b9b2a8; text-decoration: none; font-size: 14.5px; }
.footer__cols a:hover { color: var(--mc-yellow); }
.footer__legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: grid;
  gap: 4px;
  text-align: center;
  color: #8a8279;
  font-size: 13px;
}

/* ==========================================================
   AVISO "CONQUISTA OBTIDA!"
   ========================================================== */
.toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: calc(100vw - 32px);
  padding: 10px 16px 10px 10px;
  background: #212121;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 2px #555, 0 10px 24px rgba(0, 0, 0, .45);
  font-family: var(--pixel);
  transform: translateY(calc(-100% - 24px));
  opacity: 0;
  transition: transform 220ms ease-in, opacity 220ms ease-in;
}
.toast.is-visible {
  transform: none;
  opacity: 1;
  transition: transform 420ms var(--ease-out), opacity 200ms var(--ease-out);
}
.toast__icon { width: 32px; height: 32px; }
.toast__text { display: grid; gap: 2px; }
.toast__text b { color: var(--mc-yellow); font-weight: 600; font-size: 16px; text-shadow: 2px 2px 0 #3f3f15; }
.toast__text span { color: #fff; font-size: 15px; text-shadow: 2px 2px 0 #3f3f3f; word-break: break-word; }

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top { grid-template-columns: minmax(0, 1fr); }
  .top__list { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .container { padding-inline: 16px; }

  .hero { min-height: 0; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 18px;
    padding-block: 26px 34px;
  }
  .hero__brand { order: -1; width: min(230px, 62vw); }
  .splash { right: -8%; }
  .pill { justify-self: stretch; }
  .pill--discord { flex-direction: row-reverse; justify-content: flex-end; padding: 8px 16px 8px 8px; }
  .pill__text--right { text-align: left; }
  .hero__bg::after {
    background:
      linear-gradient(to bottom, rgba(8, 11, 16, .35), rgba(8, 11, 16, .55) 55%, var(--bg));
  }

  .nav__inner { min-height: 60px; gap: 10px; }
  .nav__links {
    -webkit-mask-image: linear-gradient(to right, #000 80%, transparent);
            mask-image: linear-gradient(to right, #000 80%, transparent);
    padding-right: 24px;
  }
  .nav__links a { padding: 10px 9px; font-size: 16px; }
  .nav__shop { padding-inline: 14px; }

  #jogar { margin-top: 24px; }
  .play { grid-template-columns: minmax(0, 1fr); }
  .play__content { padding: 26px 18px; }
  .play__art {
    inset: 0;
    opacity: .22;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
            mask-image: linear-gradient(to bottom, #000, transparent 85%);
  }
  .play__actions .mc-btn { flex: 1 1 140px; }
  .slist__motd { font-size: 14px; }

  .layout { margin-top: 36px; gap: 40px; }
  .main { gap: 44px; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; }
  .feature__icon { grid-row: span 2; margin: 0; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post__cover { height: 150px; }
  .post__cover img { width: 120px; }
  .post__body { padding: 18px; }
  .strip { flex-direction: column; align-items: stretch; text-align: center; }

  .top { padding: 24px 18px; }
  .top__list { gap: 10px; justify-content: center; }
  .top__list li { min-width: 0; }
  .top__nick { font-size: 12px; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__cols { gap: 40px; }
}

/* ==========================================================
   MOVIMENTO REDUZIDO
   Logo parada, splash sem pulsar, barras de ping estáticas.
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__logo { transform: none; }
}
