@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/press-start-2p.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #1b1038;
  --night: #1f1245;
  --night-2: #2f1a63;
  --cream: #fff4d6;
  --sun: #ffd447;
  --orange: #ff9a3c;
  --pink: #ff7ab8;
  --teal: #19c8b4;
  --sea: #2aa0e8;
  --grass: #55c85f;
  --lava: #ff5a36;
  --violet: #8a5cd6;

  --px: 4px;
  --font-title: "Press Start 2P", ui-monospace, monospace;
  --font-body: "Press Start 2P", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--cream);
  background:
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--night) 100%);
  background-color: var(--night);
  overflow-x: hidden;
  font-synthesis: none;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

img { max-width: 100%; display: block; }

a { color: var(--sun); text-underline-offset: 4px; }
a:hover { color: var(--cream); }

:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--sun);
  color: var(--ink);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Estrelas pixel ---------- */

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background: #fff;
  box-shadow:
    6vw 12vh #fff, 14vw 48vh #fff, 22vw 8vh #fff, 31vw 33vh #fff, 38vw 70vh #fff,
    47vw 18vh #fff, 55vw 55vh #fff, 63vw 6vh #fff, 71vw 40vh #fff, 79vw 82vh #fff,
    86vw 22vh #fff, 93vw 60vh #fff, 97vw 10vh #fff, 11vw 88vh #fff, 44vw 92vh #fff,
    68vw 74vh #fff, 27vw 58vh #fff;
  opacity: 0.55;
}
body::after {
  background: var(--sun);
  box-shadow:
    9vw 30vh var(--sun), 19vw 74vh var(--pink), 34vw 14vh var(--sun), 52vw 38vh var(--teal),
    60vw 90vh var(--sun), 74vw 16vh var(--pink), 83vw 50vh var(--sun), 91vw 86vh var(--teal),
    4vw 62vh var(--teal), 41vw 52vh var(--pink);
  animation: twinkle 2.4s steps(2) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.2; }
}

main, header, footer { position: relative; z-index: 1; }

.wrap {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

/* ---------- Bordas pixel ---------- */

.px {
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--ink),
    0 var(--px) 0 0 var(--ink),
    calc(var(--px) * -1) 0 0 0 var(--ink),
    var(--px) 0 0 0 var(--ink),
    calc(var(--px) * 3) calc(var(--px) * 3) 0 0 rgba(10, 4, 30, 0.55);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  background: var(--sun);
  border: 0;
  padding: 16px 22px;
  cursor: pointer;
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
    inset 0 -6px 0 0 var(--orange),
    8px 8px 0 0 rgba(10, 4, 30, 0.55);
  transition: transform 0.08s steps(2);
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); background: #ffe27a; }
.btn:active {
  transform: translate(4px, 4px);
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
    inset 0 -6px 0 0 var(--orange),
    4px 4px 0 0 rgba(10, 4, 30, 0.55);
}
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-small { font-family: var(--font-body); font-size: 0.65rem; padding: 10px 16px; }

/* ---------- Topo + herói ---------- */

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  padding: 18px 0;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  color: var(--sun);
  text-decoration: none;
  text-shadow:
    4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 4px 0 var(--ink), 0 -4px 0 var(--ink),
    4px 4px 0 var(--ink), -4px -4px 0 var(--ink), 4px -4px 0 var(--ink), -4px 4px 0 var(--ink);
}
.logo:hover { color: #fff; }

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  line-height: 1.4;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--pink);
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink);
}

.hero { position: relative; }

.hero-art {
  position: relative;
  height: clamp(250px, 38vw, 460px);
  overflow: hidden;
  background: #4a2a8a;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--night));
  pointer-events: none;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 840px);
  margin: -70px auto 0;
  padding: 34px 28px 36px;
  background: var(--cream);
  color: var(--ink);
  text-align: center;
}

h1 {
  margin: 0 0 22px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.05rem, 4.2vw, 1.85rem);
  text-wrap: balance;
  line-height: 1.6;
  color: var(--ink);
}
h1 .hl {
  color: #d8431f;
  display: inline-block;
}
.hero-card p {
  margin: 0 auto 26px;
  max-width: 44ch;
  font-size: 0.85rem;
}

/* ---------- Secções ---------- */

.section { padding: 136px 0 16px; }

h2 {
  margin: 0 0 26px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(0.95rem, 2.8vw, 1.35rem);
  line-height: 1.6;
  color: var(--cream);
  text-shadow: 4px 4px 0 rgba(10, 4, 30, 0.7);
}
h2::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 14px;
  background: var(--sun);
  box-shadow: 12px 0 0 var(--pink);
  margin-right: 34px;
}

.about p {
  margin: 0 0 16px;
  max-width: 60ch;
  font-size: 0.9rem;
}
.about p:last-child { color: var(--sun); }

/* ---------- Beta em números ---------- */

.lead { margin: -8px 0 34px; max-width: 56ch; font-size: 0.9rem; }

.stats {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 14px 24px;
  color: var(--ink);
  transition: transform 0.12s steps(2);
}
.stat:hover { transform: translateY(-6px); }
.tone-teal { background: var(--teal); }
.tone-sun { background: var(--sun); }
.tone-pink { background: var(--pink); }

.stat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  fill: var(--ink);
  animation: bob 1.2s steps(2) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.stat-num {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.85rem;
}
.stat-tag {
  margin-top: 16px;
  padding: 5px 10px;
  font-family: var(--font-body);
  font-size: 0.55rem;
  line-height: 1.5;
  color: var(--cream);
  background: var(--ink);
}

/* ---------- Lista de espera ---------- */

.waitlist .panel {
  padding: 34px 28px 32px;
  background: var(--cream);
  color: var(--ink);
}
.waitlist .panel > p { margin: 0 0 22px; font-size: 0.85rem; max-width: 52ch; }

.field-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  line-height: 1.5;
}
.field-row { display: flex; gap: 22px; flex-wrap: wrap; padding: 4px; }
.field-row input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
    inset 4px 4px 0 0 #e4dcc4;
}
.field-row input::placeholder { color: #7a6f99; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 0;
  font-size: 0.7rem;
  line-height: 1.5;
}
.consent input {
  appearance: none;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  background: #fff;
  cursor: pointer;
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink);
}
.consent input:checked {
  background:
    linear-gradient(var(--ink), var(--ink)) 4px 12px / 4px 4px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 8px 16px / 4px 4px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 12px 12px / 4px 4px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 16px 8px / 4px 4px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 20px 4px / 4px 4px no-repeat,
    var(--sun);
}
.consent a { color: #5b2db0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.6em; margin: 18px 0 0; font-size: 0.75rem; }
.form-status.ok { color: #0a7a3a; }
.form-status.error { color: #b3261e; }

.paused { margin: 20px 0 0; font-size: 0.7rem; color: #4d4170; }

/* ---------- Rodapé ---------- */

.footer { padding: 84px 0 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer h3 {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--sun);
}
.socials { list-style: none; margin: 0; padding: 4px; display: flex; flex-wrap: wrap; gap: 20px; }
.footer p { margin: 0; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 4px dashed rgba(255, 244, 214, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.7rem;
  color: rgba(255, 244, 214, 0.8);
}

/* ---------- Páginas de texto (privacidade, 404) ---------- */

.doc-top {
  padding: 22px 0;
  background: linear-gradient(180deg, #7a45c8, #4a2a8a);
  box-shadow: 0 4px 0 0 var(--ink);
}
.doc { padding: 56px 0 40px; }
.doc .panel {
  padding: 34px 28px 38px;
  background: var(--cream);
  color: var(--ink);
}
.doc h1 { font-size: clamp(1rem, 3.2vw, 1.5rem); }
.doc h2 {
  margin: 34px 0 12px;
  font-size: 0.85rem;
  color: var(--ink);
  text-shadow: none;
}
.doc h2::before { display: none; }
.doc p, .doc li { font-size: 0.85rem; max-width: 66ch; }
.doc ul { padding-left: 24px; }
.doc a { color: #5b2db0; }
.doc .updated { color: #4d4170; font-size: 0.7rem; }
.center { text-align: center; }

/* ---------- Responsivo ---------- */

@media (max-width: 760px) {
  body { font-size: 0.8rem; }
  .section { padding-top: 96px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
  .stat-icon { margin: 0; width: 40px; height: 40px; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { margin-top: 0; }
  .stat-tag { flex-basis: auto; margin-top: 10px; }
  .hero-card { margin-top: -56px; padding: 28px 18px 30px; }
  .waitlist .panel, .doc .panel { padding: 26px 18px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .socials .btn, .topbar .btn { width: auto; }
  .field-row { gap: 20px; }
}

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

/* ---------- Seletor de língua ---------- */

.topbar-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  line-height: 1.4;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--cream);
  text-decoration: none;
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink);
}
.lang-switch:hover { color: var(--ink); background: var(--sun); }

.doc-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 480px) {
  .topbar .badge { display: none; }
}

/* ---------- Logótipo ---------- */

.logo img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink);
}

/* ---------- Locais desbloqueados / bloqueados ---------- */

.world { margin-top: 44px; }
.places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.place { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.place img {
  width: 100%;
  max-width: 160px;
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
  filter: drop-shadow(4px 4px 0 rgba(10, 4, 30, 0.6));
}
.place.open img { animation: bob 1.6s steps(2) infinite; }
.place.open:nth-child(2) img { animation-delay: 0.3s; }
.place.open:nth-child(3) img { animation-delay: 0.6s; }
.place.locked img { opacity: 0.9; }
.place-tag {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--font-body);
  font-size: 0.55rem;
  line-height: 1.4;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--teal);
}
.place.locked .place-tag { background: #b9ad92; }
.world-note { margin: 28px 0 0; font-size: 0.8rem; color: var(--sun); }

/* ---------- Ferreiro ---------- */

.smith {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 26px;
}
.smith-sprite {
  flex: none;
  width: 192px;
  height: 192px;
  background: url("/assets/img/blacksmith.png") 0 0 / 6528px 192px no-repeat;
  image-rendering: pixelated;
  animation: smith 7s steps(34) infinite;
}
@keyframes smith {
  to { background-position: -6528px 0; }
}
.smith-note { max-width: 36ch; }
.waitlist .panel .smith-title { margin: 0 0 12px; font-family: var(--font-title); font-size: 1rem; line-height: 1.6; }
.waitlist .panel .smith-sub { margin: 0; font-size: 0.8rem; line-height: 1.8; color: #4d4170; }

@media (max-width: 760px) {
  .places { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
  .place-tag { font-size: 0.5rem; text-align: center; }
  .smith { flex-direction: column; align-items: flex-start; gap: 16px; }
  .smith-sprite { width: 144px; height: 144px; background-size: 4896px 144px; animation-name: smith-sm; }
}
@keyframes smith-sm {
  to { background-position: -4896px 0; }
}

/* ---------- Frase de abertura e mural da comunidade ---------- */

.quote {
  margin: 0 0 30px !important;
  font-size: clamp(0.95rem, 3.2vw, 1.4rem) !important;
  line-height: 1.7;
  color: var(--sun);
  text-shadow: 4px 4px 0 rgba(10, 4, 30, 0.7);
}

.wall {
  list-style: none;
  margin: 0;
  padding: 4px;
  columns: 2;
  column-gap: 36px;
}
.wall-item {
  break-inside: avoid;
  margin: 0 0 40px;
  line-height: 0;
  text-align: center;
}
/* Imagens autênticas: nunca ampliadas além do tamanho original */
.wall-item img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
}
.wall-item.big img { max-width: 340px; }
.wall-item.xl img { width: 440px; }
.wall-item img.bare { filter: drop-shadow(8px 8px 0 rgba(10, 4, 30, 0.55)); }

@media (max-width: 760px) {
  .wall { columns: 1; }
  .wall-item { margin-bottom: 28px; }
}

/* ---------- Acessibilidade ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Como funciona (4 passos animados) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 36px;
}
.step {
  position: relative;
  padding: 18px 16px 22px;
  background: var(--cream);
  color: var(--ink);
}
.step-n {
  position: absolute;
  top: -14px;
  left: -10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--sun);
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink);
}
.step h3 {
  margin: 20px 0 10px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}
.step p { margin: 0; font-size: 0.8rem; line-height: 1.8; color: #4d4170; }

.step-art {
  position: relative;
  height: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #3a2080 0%, #1f1245 100%);
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink);
}
.step-art img { image-rendering: pixelated; }

/* 3. Desbloquear: cadeado a abrir */
.art-unlock img { position: absolute; width: 176px; height: 176px; }
.unlock-open { animation: reveal 3.2s steps(1) infinite; }
@keyframes reveal { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--sun);
  opacity: 0;
  animation: pop 3.2s steps(1) infinite;
}
.sp1 { left: 22%; top: 24%; }
.sp2 { right: 20%; top: 30%; background: var(--pink); animation-delay: 0.15s; }
.sp3 { left: 30%; bottom: 22%; background: var(--teal); animation-delay: 0.3s; }
@keyframes pop { 0%, 49% { opacity: 0; transform: scale(1); } 52% { opacity: 1; transform: scale(2); } 70%, 100% { opacity: 0; transform: scale(3); } }

/* ---------- Forja com fogo (lista de espera) ---------- */

.smith-stage { display: flex; align-items: flex-end; gap: 4px; flex: none; }
/* ---------- Notícias ---------- */

.news-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  transition: transform 0.08s steps(2);
}
.news-card:hover { transform: translate(-3px, -3px); color: var(--ink); }
.news-img { width: 100%; height: 200px; object-fit: cover; object-position: 50% 4%; image-rendering: pixelated; display: block; }
.news-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px; }
.news-tag {
  font-family: var(--font-title);
  font-size: 0.55rem;
  line-height: 1.4;
  padding: 6px 8px;
  background: var(--pink);
}
.news-title { font-family: var(--font-title); font-size: clamp(0.85rem, 2.2vw, 1.1rem); line-height: 1.6; }
.news-text { font-size: 0.7rem; line-height: 1.8; color: #4d4170; }
.news-more { margin-top: auto; font-family: var(--font-title); font-size: 0.65rem; color: #5b2db0; }

/* ---------- Comunidade (Reddit) ---------- */

.join-card {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 620px);
  padding: 16px 20px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.08s steps(2);
}
.join-card:hover { transform: translate(-3px, -3px); color: var(--ink); }
.reddit-icon { flex: none; width: 64px; height: 64px; }
.join-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.join-name { font-family: var(--font-title); font-size: 1rem; line-height: 1.4; }
.join-line { font-size: 0.7rem; line-height: 1.7; color: #4d4170; }
.join-go {
  flex: none;
  margin-left: auto;
  padding: 12px 14px;
  font-family: var(--font-title);
  font-size: 0.7rem;
  color: var(--ink);
  background: #ff4500;
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
    inset 0 -4px 0 0 #c23700;
}
.join .socials { margin-top: 26px; }
.join .socials:empty { display: none; }
.join-card.is-off { opacity: 0.6; pointer-events: none; }
.btn.is-off { opacity: 0.55; pointer-events: none; }

/* ---------- Artigo de notícias ---------- */

.news-meta { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; font-size: 0.65rem; }
.doc .news-tag { display: inline-block; }
.doc .cta { margin-top: 30px; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; }
  .news-img { height: 150px; }
  .join-card { flex-wrap: wrap; gap: 14px 16px; }
  .join-text { flex: 1 1 150px; }
  .join-go { margin-left: 0; width: 100%; text-align: center; }
}

/* ---------- Passos: personagem, controlos e ataque ---------- */

.hero-idle, .hero-atk {
  display: block;
  flex: none;
  width: 344px;
  height: 196px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.hero-idle {
  background-image: url("/assets/img/hero-idle.png");
  background-size: 2408px 196px;
  animation: hero-idle 0.7s steps(7) infinite;
}
@keyframes hero-idle { to { background-position: -2408px 0; } }
.hero-atk {
  background-image: url("/assets/img/hero-attack.png");
  background-size: 8600px 196px;
  animation: hero-atk 2.8s steps(25) infinite;
}
@keyframes hero-atk { to { background-position: -8600px 0; } }


.art-sync { gap: 26px; }
.ctl { position: relative; flex: none; width: 96px; height: 96px; }
.ctl img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: ctl-show 3s steps(1) infinite; }
.ctl img.ctl-pause { animation-delay: 1s; }
.ctl img.ctl-stop { animation-delay: 2s; }
@keyframes ctl-show {
  0% { opacity: 1; transform: none; }
  24% { opacity: 1; transform: translateY(4px); }
  33.3%, 100% { opacity: 0; transform: none; }
}
.pills { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.pill { text-align: center; font-size: 0.6rem; padding: 8px 10px; animation: flash 3s steps(1) infinite; }
.p2 { animation-delay: 1s; }
.p3 { animation-delay: 2s; }
@keyframes flash {
  0% { background: var(--sun); color: var(--ink); }
  33.3%, 100% { background: #6c5f94; color: var(--cream); }
}

.art-battle { justify-content: flex-start; padding-left: 8px; }
.chest-anim {
  position: absolute;
  right: 6px;
  bottom: 20px;
  width: 104px;
  height: 104px;
  background: url("/assets/img/chest-gold.png") 0 0 / 416px 104px no-repeat;
  image-rendering: pixelated;
  animation: chest-seq 2.8s steps(1, end) infinite;
}
@keyframes chest-seq {
  0% { background-position: 0 0; }
  28% { background-position: -208px 0; }
  34% { background-position: -312px 0; }
  84% { background-position: -208px 0; }
  90% { background-position: 0 0; }
}

/* ---------- Forja: o fogo fica no mesmo sítio ---------- */

.fire {
  flex: none;
  width: 96px;
  height: 128px;
  background: url("/assets/img/fire-loop.png") 0 0 / 768px 128px no-repeat;
  image-rendering: pixelated;
  animation: fire 0.8s steps(8) infinite;
}
.fire + .smith-sprite + .fire { animation-delay: -0.4s; }
@keyframes fire { to { background-position: -768px 0; } }

@media (max-width: 920px) {
  .hero-idle, .hero-atk { width: 258px; height: 147px; }
  .hero-idle { background-size: 1806px 147px; animation-name: hero-idle-sm; }
  .hero-atk { background-size: 6450px 147px; animation-name: hero-atk-sm; }
  .chest-anim { right: 4px; bottom: 28px; width: 88px; height: 88px; background-size: 352px 88px; animation-name: chest-seq-sm; }
  .art-sync { flex-direction: column; gap: 14px; }
  .ctl { width: 72px; height: 72px; }
  .pills { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .pill { font-size: 0.5rem; padding: 6px 7px; }
}
@media (max-width: 760px) {
  .fire { width: 72px; height: 96px; background-size: 576px 96px; animation-name: fire-sm; }
}
@keyframes hero-idle-sm { to { background-position: -1806px 0; } }
@keyframes hero-atk-sm { to { background-position: -6450px 0; } }
@keyframes chest-seq-sm {
  0% { background-position: 0 0; }
  28% { background-position: -176px 0; }
  34% { background-position: -264px 0; }
  84% { background-position: -176px 0; }
  90% { background-position: 0 0; }
}
@keyframes fire-sm { to { background-position: -576px 0; } }
