/* Sorteio das Baddies — visual do site do clube: fundo creme granulado, traço escuro,
   sombras duras rosa, Instrument Serif nos títulos e DM Sans no resto. */
:root {
  --ink: #2a0b22;
  --ink-2: #5b3150;
  --rosa: #ff65c2;
  --rosa-claro: #ff9fd6;
  --rosa-fundo: #fff3fa;
  --amarelo: #ffe27a;
  --lilas: #cdbbff;
  --menta: #bfe9d6;
  --creme: #fffaf6;
  --serifa: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Shrikhand", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100dvh; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased;
  background: var(--creme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .04 0 0 0 0 .13 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }

/* enfeites: brilhos e bilhetes nas beiradas */
.enfeites { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.en { position: absolute; display: block; filter: drop-shadow(3px 3px 0 var(--ink)); animation: flutuar 4.6s ease-in-out infinite; }
.en svg { display: block; width: 100%; height: auto; overflow: visible; }
.en--b { filter: none; animation: piscar 3.2s ease-in-out infinite; }
@keyframes flutuar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes piscar { 0%, 100% { opacity: .35; scale: .7; } 50% { opacity: 1; scale: 1.1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.pagina { position: relative; z-index: 1; width: min(520px, 100%); margin: 0 auto; padding: 22px 16px 48px; }
.cabeca { text-align: center; }
.logo { display: block; width: min(220px, 56vw); height: auto; margin: 0 auto; filter: drop-shadow(3px 3px 0 var(--rosa)); }
.titulo { margin: 8px 0 0; font: 400 clamp(40px, 12vw, 58px)/1 var(--serifa); }
.titulo em { color: #e0379b; }
.pilula {
  display: inline-block; margin-top: 10px; padding: 7px 16px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; box-shadow: 3px 3px 0 var(--ink); font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.cartao {
  margin-top: 22px; padding: 22px 18px 20px; border: 2px solid var(--ink); border-radius: 24px; background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}
.cartao h2 { margin: 0 0 14px; font: 400 clamp(28px, 8vw, 36px)/1.05 var(--serifa); text-align: center; }
.rotulo { display: block; margin: 0 0 8px; font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.campo {
  width: 100%; min-height: 54px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--creme);
  color: var(--ink); font: 700 19px/1 var(--sans);
}
.campo::placeholder { color: #b59aab; font-weight: 600; }
.campo:focus { outline: none; box-shadow: 0 0 0 4px var(--rosa-claro); }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; width: 100%; min-height: 56px; padding: 0 24px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff;
  font: 800 16px/1 var(--sans); letter-spacing: .06em; box-shadow: 4px 4px 0 var(--rosa);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s;
}
.botao:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--rosa); }
.botao:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--rosa); }
.botao:disabled { opacity: .5; cursor: default; }
.link { display: block; margin: 16px auto 0; padding: 6px; border: 0; background: none; color: var(--ink-2); font: 700 13px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.erro { margin: 10px 0 0; color: #b3123f; font: 700 14px/1.35 var(--sans); text-align: center; }
.dica { margin: 12px 0 0; color: var(--ink-2); font: 500 14px/1.45 var(--sans); text-align: center; }

/* subgrupos (bolinhas com o logo) */
.grupos { margin: 18px 0 16px; padding: 0; border: 0; min-width: 0; }
.grupos legend { padding: 0; }
.grupos-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.grupo {
  display: grid; justify-items: center; align-content: start; gap: 6px; padding: 8px 2px; border: 0; border-radius: 14px; background: transparent;
  transition: background .15s;
}
.grupo-logo { display: grid; place-items: center; width: min(62px, 17vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); background: #fff; }
.grupo-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grupo-nome { font: 700 11px/1.2 var(--sans); text-align: center; text-wrap: balance; }
.grupo[aria-checked="true"] { background: var(--rosa-fundo); }
.grupo[aria-checked="true"] .grupo-logo { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--rosa); transform: scale(1.06); }
.grupo-logo { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .15s; }

/* o número da pessoa: um ingresso grande */
.ingresso {
  position: relative; display: grid; justify-items: center; gap: 4px; margin: 6px auto 0; padding: 26px 20px 24px; width: min(320px, 100%);
  border: 2.5px solid var(--ink); border-radius: 18px; background: var(--amarelo); box-shadow: 5px 5px 0 var(--ink);
  -webkit-mask: radial-gradient(circle 14px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 14px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  animation: surgir .6s cubic-bezier(.3, 1.5, .5, 1) both;
}
.ingresso small { font: 800 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.ingresso b { font: 400 clamp(84px, 30vw, 132px)/1 var(--display); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.quem { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font: 700 18px/1.2 var(--sans); }
.quem .grupo-logo { width: 40px; }
@keyframes surgir { from { transform: scale(.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ganhou { margin-top: 18px; padding: 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--rosa-claro); text-align: center; font: 800 18px/1.3 var(--sans); box-shadow: 3px 3px 0 var(--ink); }

/* ---------- organizadora ---------- */
.pg-org .pagina { width: min(980px, 100%); }
.org-topo { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: left; }
.org-topo .logo { margin: 0; width: 150px; }
.contagem { margin: 22px 0 0; text-align: center; font: 700 18px/1.3 var(--sans); color: var(--ink-2); }
.contagem b { font: 400 34px/1 var(--display); color: var(--ink); }
.sortear-area { display: grid; justify-items: center; gap: 22px; margin-top: 22px; }
.botao--grande { width: min(420px, 100%); min-height: 78px; font-size: 22px; box-shadow: 6px 6px 0 var(--rosa); }
.resultado { display: grid; justify-items: center; gap: 12px; text-align: center; }
.resultado .ingresso { width: min(380px, 100%); }
.resultado .nome-sorteada { margin: 6px 0 0; font: 400 clamp(40px, 7vw, 68px)/1 var(--serifa); }
.resultado .quem { margin-top: 0; font-size: 20px; }
.resultado .quem .grupo-logo { width: 52px; }
.rolando b { animation: rolar .09s steps(1) infinite; }
@keyframes rolar { 50% { opacity: .85; } }
.anteriores { margin-top: 34px; }
.anteriores h3 { margin: 0 0 10px; font: 400 26px/1 var(--serifa); }
.anteriores ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.anteriores li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; font: 700 15px/1.2 var(--sans); }
.anteriores li .num { min-width: 52px; padding: 6px 8px; border-radius: 10px; background: var(--amarelo); border: 2px solid var(--ink); text-align: center; font: 400 20px/1 var(--display); }
.anteriores li .grupo-logo { width: 30px; border-width: 1.5px; }
.anteriores li small { margin-left: auto; color: var(--ink-2); font-weight: 600; }
.rodape-org { margin-top: 30px; text-align: center; }
.link--zerar { color: #b3123f; }
.confete { position: fixed; inset: 0; z-index: 30; pointer-events: none; width: 100%; height: 100%; }
