@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --fundo: #1b0b2b;
  --superficie: #28123d;
  --creme: #fff2cf;
  --texto: #e8d7ee;
  --ouro: #ffd354;
  --menta: #64f1bb;
  --borda: #6c4388;
  font-family: "DM Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--creme);
  background: radial-gradient(ellipse at 80% 25%, #3b1959, transparent 47%), var(--fundo);
}
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 5px; }
a { color: inherit; }

.landing {
  background:
    radial-gradient(ellipse at 82% 12%, #50216e 0%, transparent 47%),
    radial-gradient(ellipse at 3% 76%, #311149 0%, transparent 40%),
    var(--fundo);
}
.topo, main { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 112px;
  border-bottom: 1px solid var(--borda);
}
.marca { display: inline-flex; }
.marca img { display: block; width: clamp(118px, 16vw, 169px); height: auto; }
.atalho { font-weight: 700; text-underline-offset: 5px; }
.landing .topo { min-height: 96px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding-block: clamp(36px, 5vw, 76px);
}
h1, h2, h3, p { margin: 0; }
h1 {
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.064em;
  text-wrap: balance;
}
h1 span { color: var(--ouro); }
.convite p { margin-top: 20px; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--texto); max-width: 36ch; }
.lojas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 336px;
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
}
.loja {
  display: block;
  text-align: center;
  text-decoration: none;
}
.selo {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 646 / 192;
  min-height: 43px;
  border-radius: 9px;
  background: #080808;
  overflow: hidden;
}
.selo-google img { position: absolute; width: 100%; height: auto; }
.selo-apple { border: 1px solid #a6a6a6; color: #f8f8f8; }
.selo-apple img { width: 20px; height: 20px; filter: invert(1); }
.selo-apple strong { font-size: clamp(1rem, 3.8vw, 1.32rem); font-weight: 750; white-space: nowrap; }
.loja small { display: block; margin-top: 7px; color: var(--texto); font-size: 0.8rem; font-weight: 650; line-height: 1.25; }
.loja-google:hover small { text-decoration: underline; text-underline-offset: 3px; }
.como-jogar {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  margin-top: 22px;
  padding: 9px 15px;
  border: 1px solid #ffdf81;
  border-radius: 10px;
  color: #261329;
  background: var(--ouro);
  box-shadow: 0 3px 0 #b47b28;
  font-weight: 850;
  text-decoration: none;
}
.como-jogar:hover { background: #ffdf77; }
.palco {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 300px;
  aspect-ratio: 1.09;
  background: #473053 url("assets/campo.webp") center / cover;
  border: 3px solid #c57de4;
  border-radius: 24px;
  box-shadow: 0 5px 0 #783bab, 7px 12px 0 #13081f;
}
.palco::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, #2d104942 5%, transparent 52%, #36164c73);
}
.personagem {
  position: absolute;
  bottom: 8%;
  width: auto;
  height: 72%;
  max-width: 55%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 5px #210c3160);
}
.tito { left: 2%; }
.luma { right: 2%; bottom: 6%; height: 68%; }
.jogo { padding-block: 28px 68px; border-top: 1px solid var(--borda); scroll-margin-top: 24px; }
.jogo h2 { margin-bottom: 22px; font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.65rem); letter-spacing: -0.04em; }
.passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.passos article {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-content: start;
  gap: 13px;
  padding: 20px;
  border: 1px solid #8955a9;
  border-radius: 16px;
  background: linear-gradient(155deg, #381850, var(--superficie));
  box-shadow: 0 4px 0 #150922;
}
.passos img { width: 44px; height: 44px; object-fit: contain; }
.passos h3 { margin-bottom: 7px; color: var(--ouro); font-size: 1.18rem; }
.passos p { color: var(--texto); line-height: 1.5; }

@media (max-width: 760px) {
  .topo, main { width: calc(100% - 36px); }
  .topo, .landing .topo { min-height: 78px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  h1 { max-width: 14ch; }
  .convite p { margin-top: 14px; }
  .lojas { margin-top: 20px; }
  .palco { min-height: auto; box-shadow: 0 4px 0 #783bab, 5px 8px 0 #13081f; }
  .passos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Páginas de texto (política e exclusão de dados) */
.doc { max-width: 78ch; padding-block: 34px 60px; line-height: 1.6; color: var(--texto); }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--creme); margin-bottom: 8px; }
.doc h2 { margin: 30px 0 10px; color: var(--ouro); font-size: 1.3rem; }
.doc p, .doc ul, .doc ol { margin: 0 0 12px; }
.doc .mut { opacity: 0.75; font-size: 0.95rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border: 1px solid var(--borda); }
.doc th { background: var(--superficie); color: var(--creme); }
.doc .tabela { overflow-x: auto; }
.rodape { width: min(1140px, calc(100% - 64px)); margin: 0 auto; padding: 22px 0 34px; border-top: 1px solid var(--borda); color: var(--texto); font-size: 0.95rem; }
.rodape a { margin-right: 14px; }
.landing .rodape, .landing .rodape nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.landing .rodape { justify-content: space-between; }
.landing .rodape a { margin-right: 0; text-underline-offset: 3px; }
@media (max-width: 760px) { .rodape { width: calc(100% - 36px); } }
