/* ==========================================================================
   Joga Junto — hotsite
   Paleta e formas extraídas das peças do @jogajunto.manaus
   ========================================================================== */

:root {
  --roxo:        #5b1d8f;
  --roxo-claro:  #7b2cbf;
  --roxo-escuro: #2d0a45;
  --amarelo:     #ffc72c;
  --amarelo-esc: #e8a900;
  --vermelho:    #e53935;
  --creme:       #faefdc;
  --branco:      #ffffff;

  --borda: 3px solid var(--roxo-escuro);
  --sombra: 6px 6px 0 var(--roxo-escuro);
  --sombra-sm: 4px 4px 0 var(--roxo-escuro);
  --raio: 18px;

  --fonte-titulo: 'Baloo 2', system-ui, sans-serif;
  --fonte-texto: 'Nunito', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--roxo-escuro);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
a { color: inherit; }

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

/* --- fundos pontilhados, as duas variantes das peças --------------------- */
.bg-roxo {
  background-color: var(--roxo);
  background-image:
    radial-gradient(circle, rgba(255,255,255,.14) 1.4px, transparent 1.5px),
    radial-gradient(ellipse 70% 60% at 50% 40%, var(--roxo-claro) 0%, var(--roxo) 60%, #46146f 100%);
  background-size: 22px 22px, 100% 100%;
  color: var(--branco);
}
.bg-creme {
  background-color: var(--creme);
  background-image: radial-gradient(circle, rgba(91,29,143,.16) 1.4px, transparent 1.5px);
  background-size: 22px 22px;
}
.bg-amarelo {
  background-color: var(--amarelo);
  background-image: radial-gradient(circle, rgba(45,10,69,.13) 1.4px, transparent 1.5px);
  background-size: 22px 22px;
}

/* --- faixa listrada divisória -------------------------------------------- */
.faixa {
  height: 18px;
  background: repeating-linear-gradient(90deg,
    var(--roxo)     0   36px,
    var(--branco)   36px 72px,
    var(--vermelho) 72px 108px,
    var(--amarelo)  108px 144px);
  border-top: var(--borda);
  border-bottom: var(--borda);
}

/* --- layout --------------------------------------------------------------- */
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
section { padding: 4.5rem 0; }
@media (max-width: 640px) { section { padding: 3rem 0; } }

.sec-topo { text-align: center; margin-bottom: 2.5rem; }
.sec-topo h2 { font-size: clamp(2rem, 6vw, 3.25rem); }
.sec-topo p { max-width: 46ch; margin-inline: auto; opacity: .9; }

/* marca-texto amarelo das peças */
.marca {
  background: var(--amarelo);
  color: var(--roxo-escuro);
  padding: 0 .22em .06em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* pílula (o "Para quem já joga..." da arte) */
.pilula {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  background: var(--roxo);
  color: var(--branco);
  border: var(--borda);
  border-radius: 999px;
  padding: .5rem 1.5rem;
  box-shadow: var(--sombra-sm);
}
.bg-roxo .pilula { background: var(--amarelo); color: var(--roxo-escuro); }

/* --- botões --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  cursor: pointer;
  background: var(--amarelo);
  color: var(--roxo-escuro);
  border: var(--borda);
  border-radius: 999px;
  padding: .85rem 2.1rem;
  box-shadow: var(--sombra);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: var(--sombra-sm); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--roxo-escuro); }
.btn:focus-visible { outline: 3px solid var(--vermelho); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--sombra); }

.btn-sm { font-size: 1rem; padding: .55rem 1.3rem; box-shadow: var(--sombra-sm); }
.btn-branco { background: var(--branco); }

/* --- card adesivo (a forma que se repete em toda peça) -------------------- */
.card {
  background: var(--branco);
  color: var(--roxo-escuro);          /* não herdar o branco do fundo roxo */
  border: var(--borda);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 1.4rem 1.5rem;
}
.card-roxo { background: var(--roxo); color: var(--branco); }

/* --- hero ----------------------------------------------------------------- */
.hero { padding: 3rem 0 4rem; position: relative; overflow: hidden; text-align: center; }
.hero__logo { width: min(420px, 78vw); margin: 0 auto 1.5rem; filter: drop-shadow(0 6px 0 rgba(0,0,0,.18)); }
.hero h1 {
  font-size: clamp(1.75rem, 5.2vw, 3.1rem);
  text-transform: uppercase;
  max-width: 18ch;
  margin-inline: auto;
}
.hero h1 .amarelo { color: var(--amarelo); }
.hero__quando {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 1.75rem);
  margin: 1.2rem 0 .2rem;
}
.hero__onde { font-size: clamp(1rem, 2.6vw, 1.2rem); opacity: .92; margin-bottom: 2rem; }
.hero__slogan {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  background: var(--amarelo);
  color: var(--roxo-escuro);
  border: var(--borda);
  border-radius: 999px;
  padding: .6rem 1.8rem;
  box-shadow: var(--sombra);
  margin-top: 2.5rem;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* raios amarelos decorativos das peças */
.raios { position: absolute; width: 90px; opacity: .95; pointer-events: none; }
.raios--esq { left: 4%; top: 18%; transform: rotate(-12deg); }
.raios--dir { right: 5%; top: 30%; transform: scaleX(-1) rotate(-18deg); }
@media (max-width: 860px) { .raios { display: none; } }

/* --- grids ---------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
/* o min() evita que o card fique maior que a tela no celular */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

/* --- atrações ------------------------------------------------------------- */
.atracao { display: flex; align-items: center; gap: 1rem; }
.atracao h3 { font-size: 1.3rem; margin: 0 0 .15rem; }
.atracao p { margin: 0; font-size: .97rem; line-height: 1.35; opacity: .9; }
.atracao__icone {
  flex: 0 0 auto;
  width: 60px; height: 60px;
  background: var(--amarelo);
  border: var(--borda);
  border-radius: 50%;
  display: grid; place-items: center;
}
.atracao__icone svg { width: 32px; height: 32px; }

/* --- torneios ------------------------------------------------------------- */
.torneio { display: flex; flex-direction: column; }
.torneio__jogo {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
}
.torneio h3 { font-size: 1.6rem; margin: .1rem 0 .8rem; }
.torneio__dados { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .97rem; }
.torneio__dados li { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; border-bottom: 1px dashed rgba(45,10,69,.22); }
.card-roxo .torneio__dados li { border-bottom-color: rgba(255,255,255,.25); }
.torneio__dados b { font-weight: 700; }
.torneio__acao { margin-top: auto; }

.selo {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--vermelho);
  color: var(--branco);
  border: 2px solid var(--roxo-escuro);
  border-radius: 999px;
  padding: .15rem .8rem;
  margin-bottom: .6rem;
}
.selo--vagas { background: var(--amarelo); color: var(--roxo-escuro); }
.selo--esgotado { background: var(--roxo-escuro); color: var(--branco); }

/* --- lojas / comidas ------------------------------------------------------ */
.logo-slot {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background: var(--branco);
  color: var(--roxo-escuro);
  border: 3px dashed var(--roxo-escuro);
  border-radius: var(--raio);
  text-align: center;
  padding: 1rem;
}
.logo-slot span { font-family: var(--fonte-titulo); font-weight: 700; opacity: .55; }
.logo-slot img { max-height: 100%; width: auto; }

/* --- formulário ----------------------------------------------------------- */
.form { max-width: 720px; margin-inline: auto; }
.campo { margin-bottom: 1.15rem; }
.campo > label, .grupo > legend {
  display: block;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: .35rem;
}
.campo input[type=text], .campo input[type=email], .campo input[type=tel], .campo input[type=date] {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--roxo-escuro);
  background: var(--branco);
  border: var(--borda);
  border-radius: 12px;
  padding: .7rem .9rem;
}
.campo input:focus-visible, .opcao input:focus-visible {
  outline: 3px solid var(--amarelo);
  outline-offset: 2px;
}
.dica { font-size: .88rem; opacity: .75; margin: .3rem 0 0; }

.grupo { border: none; padding: 0; margin: 0 0 1.15rem; }
.grupo legend { padding: 0; }
.opcoes { display: grid; gap: .6rem; }
.opcao {
  display: flex; align-items: flex-start; gap: .7rem;
  background: var(--branco);
  border: var(--borda);
  border-radius: 12px;
  padding: .7rem .9rem;
  cursor: pointer;
}
.opcao:has(input:checked) { background: var(--amarelo); }
.opcao input { margin-top: .25rem; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--roxo); }
.opcao span { font-size: .98rem; line-height: 1.35; }
.opcao b { font-family: var(--fonte-titulo); font-size: 1.05rem; display: block; }
.opcao[data-esgotado] { opacity: .5; cursor: not-allowed; }

/* honeypot — fora da tela, não `display:none` (bots ignoram) */
.mel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aviso {
  border: var(--borda);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.aviso--erro { background: #ffe0df; color: #8a1512; }
.aviso--ok   { background: #d8f5dd; color: #14532d; }
.aviso[hidden] { display: none; }

.erro-campo { color: var(--vermelho); font-weight: 700; font-size: .9rem; margin-top: .3rem; }
.bg-roxo .erro-campo { color: var(--amarelo); }

/* --- rodapé --------------------------------------------------------------- */
footer { text-align: center; padding: 3rem 0 2.5rem; }
footer img { width: 200px; margin: 0 auto 1rem; }
footer a { font-family: var(--fonte-titulo); font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }

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

/* pular para o conteúdo (teclado) */
.pular {
  position: absolute; left: -9999px;
  background: var(--amarelo); color: var(--roxo-escuro);
  padding: .7rem 1.2rem; border: var(--borda); border-radius: 0 0 12px 0;
  font-weight: 700; z-index: 10;
}
.pular:focus { left: 0; top: 0; }
