:root {
  --fundo: #121418;
  --cartao: #1c1f26;
  --borda: #2b303a;
  --texto: #eef0f3;
  --apagado: #9aa1ad;
  --verde: #6aae3a;
  --pixel: "Press Start 2P", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 16px/1.5 system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
[hidden], .escondido { display: none !important; }

/* Topo */
.topo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--pixel);
  font-size: 20px;
  color: var(--verde);
  text-shadow: 3px 3px 0 #2c4a17;
  white-space: nowrap;
}
.logo span { color: #f4c542; text-shadow: 3px 3px 0 #6b5212; font-size: 14px; }

#busca {
  flex: 0 1 300px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--borda);
  background: var(--cartao);
  color: var(--texto);
  font: inherit;
  font-size: 15px;
}
#busca:focus { outline: 2px solid var(--verde); outline-offset: 1px; }

/* Atalhos de categoria */
.atalhos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.atalhos a {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--borda);
  background: var(--cartao);
  font-size: 13px;
  color: var(--apagado);
}
.atalhos a:hover { color: var(--texto); border-color: #555c68; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

h2 {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--apagado);
  margin: 36px 0 14px;
  letter-spacing: 1px;
}

/* Banner do Minecraft */
.destaque {
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  padding: 28px;
  border-radius: 8px;
  border: 2px solid #3d5a27;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.destaque::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0) 100%);
}
.destaque:hover { border-color: var(--verde); }
.destaque-texto { position: relative; max-width: 460px; }
.destaque h1 {
  font-family: var(--pixel);
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 12px;
  text-shadow: 3px 3px 0 #000;
}
.destaque p { margin: 0 0 20px; color: #e3e8dc; text-shadow: 1px 1px 2px #000; }

.botao {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 13px;
  padding: 14px 26px;
  color: #fff;
  background: #6e6e6e;
  border: 2px solid #000;
  box-shadow: inset -3px -3px 0 #3f3f3f, inset 3px 3px 0 #a5a5a5;
  text-shadow: 2px 2px 0 #3f3f3f;
}
.destaque:hover .botao {
  background: #7d8db8;
  box-shadow: inset -3px -3px 0 #4b5a82, inset 3px 3px 0 #b3c0e4;
}

/* Grade de jogos */
.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.jogo {
  display: block;
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.jogo:hover { transform: translateY(-3px); border-color: #5b6270; }

.capa { aspect-ratio: 4 / 3; background: #0b0c0f; }
.capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.capa img[src$=".svg"] { image-rendering: pixelated; }
.capa.inteira { background: #fff; padding: 10px; }
.capa.inteira img { object-fit: contain; }

.jogo .nome {
  padding: 9px 11px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.jogo .fora { color: var(--apagado); font-weight: 400; }

.vazio { color: var(--apagado); margin-top: 32px; }

@media (max-width: 600px) {
  .logo { font-size: 15px; }
  #busca { flex-basis: 100%; }
  .destaque { min-height: 240px; padding: 20px; }
  .destaque h1 { font-size: 18px; }
  .grade { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
