@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fontes/inter-latin.woff2) format('woff2'); }
/* Roleta VIP no tema de Halloween (31/10/2026): noite roxa, laranja do FoxPanel e abobora em pixel.
   Tema escuro sempre, com o claro ou o escuro do aparelho. */
:root {
  --noite: #0d0718; --ceu-1: #170b2e; --ceu-2: #24104a;
  --superficie: rgba(20, 11, 38, .82); --superficie-2: #1d1236;
  --borda: rgba(176, 140, 255, .18); --texto: #f3eefc; --muted: #b6a8d6;
  --laranja: #ff7b30; --laranja-forte: #ff9a5a; --laranja-suave: rgba(255, 123, 48, .14); --laranja-borda: rgba(255, 123, 48, .5); --sobre-laranja: #1a0d05;
  --roxo: #8b5cf6;
  --vermelho-texto: #fda29b; --vermelho-suave: rgba(249, 112, 102, .14);
  --sombra-3: 0 20px 50px -10px rgba(0, 0, 0, .7);
  --raio: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  position: relative; margin: 0; min-height: 100vh; color: var(--texto); font: 15px/1.5 Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 170, 90, .22), transparent 28%),
    radial-gradient(ellipse at 50% 115%, rgba(255, 110, 40, .25), transparent 50%),
    linear-gradient(180deg, var(--ceu-1) 0%, var(--ceu-2) 40%, #1a0b30 75%, var(--noite) 100%) fixed;
  background-color: var(--noite);
  overflow-x: hidden;
}
[hidden] { display: none !important; }

/* cenario */
.ceu { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff8, transparent), radial-gradient(1.5px 1.5px at 33% 8%, #fff9, transparent),
    radial-gradient(2px 2px at 58% 22%, #fffa, transparent), radial-gradient(1.5px 1.5px at 71% 40%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 22% 46%, #fff6, transparent), radial-gradient(2px 2px at 46% 34%, #fff8, transparent),
    radial-gradient(1.5px 1.5px at 92% 52%, #fff7, transparent), radial-gradient(1.5px 1.5px at 6% 62%, #fff6, transparent),
    radial-gradient(2px 2px at 64% 6%, #fff9, transparent), radial-gradient(1.5px 1.5px at 86% 30%, #fff8, transparent); }
.lua { position: absolute; top: 70px; right: max(24px, 8vw); width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff6dc, #ffd9a0 70%, #f3a860);
  box-shadow: 0 0 80px 20px rgba(255, 190, 110, .25); }
.lua::before, .lua::after { content: ''; position: absolute; border-radius: 50%; background: #e9b97d; opacity: .5; }
.lua::before { width: 26px; height: 26px; left: 34px; top: 42px; }
.lua::after { width: 38px; height: 38px; left: 82px; top: 84px; }
.morcegos { position: absolute; top: 30px; right: max(0px, 4vw); width: 400px; height: 200px; fill: #0b0614; }
.morcegos use { animation: voo 3.2s ease-in-out infinite alternate; }
.morcegos .m2 { animation-duration: 2.6s; animation-delay: -1s; }
.morcegos .m3 { animation-duration: 3.8s; animation-delay: -2s; }
@keyframes voo { to { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .morcegos use { animation: none; } }
.chao { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; pointer-events: none; z-index: 0; }

.topo, main { position: relative; z-index: 1; }
.topo { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--borda); background: rgba(13, 7, 24, .55); backdrop-filter: blur(6px); }
.marca { font-weight: 700; color: var(--texto); text-decoration: none; font-size: 18px; letter-spacing: -.02em; }
.marca b { color: var(--laranja); font-weight: 800; }
.voltar { color: var(--muted); text-decoration: none; font-size: 14px; }
.voltar:hover { color: var(--texto); }

main { max-width: 1080px; margin: 0 auto; padding: 32px 16px 190px; }
.selo { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--laranja-suave); border: 1px solid var(--laranja-borda);
  color: var(--laranja-forte); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cabeca h1 { margin: 12px 0 6px; font-size: clamp(32px, 6vw, 52px); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; }
.cabeca h1 em { font-style: normal; background: linear-gradient(180deg, #ffd27a, #ff8a3d 60%, #e2560f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 0 0 26px; color: var(--muted); max-width: 640px; }
.sub b { color: var(--texto); }

.aviso { padding: 14px 16px; border-radius: var(--raio); background: var(--laranja-suave); border: 1px solid var(--laranja-borda); margin-bottom: 20px; }
.aviso.erro { background: var(--vermelho-suave); border-color: transparent; color: var(--vermelho-texto); }
.aviso a { color: var(--laranja-forte); font-weight: 600; }

.palco { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: center; }
.roda-caixa { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1; }
.roda-caixa::before { content: ''; position: absolute; inset: -4%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 123, 48, .28), transparent 65%); }
#roda { position: relative; width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: var(--sombra-3); }
.ponteiro { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; z-index: 2;
  border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--laranja); filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.miolo { position: absolute; inset: 0; margin: auto; width: 24%; height: 24%; border-radius: 50%; background: var(--noite); border: 4px solid var(--laranja);
  display: grid; place-items: center; box-shadow: 0 0 24px rgba(255, 123, 48, .45); }
.miolo svg { width: 64%; height: 64%; }

.lado { display: flex; flex-direction: column; gap: 16px; }
.resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.num { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 12px; text-align: center; }
.num span { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.num small { color: var(--muted); font-size: 12px; }
.num.eu span { color: var(--laranja); }

.admin { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px; }
.botao { appearance: none; border: 0; border-radius: 10px; background: var(--laranja); color: var(--sobre-laranja); font: inherit; font-weight: 800; padding: 12px 18px; cursor: pointer; width: 100%; box-shadow: 0 6px 20px -6px rgba(255, 123, 48, .7); }
.botao:hover { background: var(--laranja-forte); }
.botao:disabled { opacity: .5; cursor: default; box-shadow: none; }
.codigo { margin-top: 12px; }
.codigo label { font-size: 13px; color: var(--muted); }
.codigo .linha { display: flex; gap: 8px; margin-top: 4px; }
.codigo input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--borda); background: var(--superficie-2); color: var(--texto); }
.codigo .botao { width: auto; }
.nota { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.resultado { background: linear-gradient(180deg, rgba(255, 123, 48, .22), rgba(139, 92, 246, .14)); border: 1px solid var(--laranja-borda); border-radius: var(--raio); padding: 18px; text-align: center; animation: surge .4s ease-out; }
.resultado small { display: block; color: var(--laranja-forte); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.resultado strong { display: block; font-size: 22px; margin: 4px 0; word-break: break-all; }
.resultado span { color: var(--muted); font-size: 13px; }
@keyframes surge { from { transform: scale(.92); opacity: 0 } to { transform: none; opacity: 1 } }

.listas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; backdrop-filter: blur(4px); }
.cartao h2 { margin: 0 0 10px; font-size: 16px; }
.cartao h3 { margin: 18px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.lista { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.lista li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--borda); font-size: 14px; }
.lista li:first-child { border-top: 0; }
.lista .cor { width: 12px; height: 12px; border-radius: 3px; }
.lista .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista .val { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; }
.lista li.eu .nome { font-weight: 700; color: var(--laranja-forte); }
.lista.ganh li { grid-template-columns: minmax(0, 1fr) auto; }
.lista.antigos { max-height: 200px; }
.lista.antigos li { font-size: 13px; color: var(--muted); }

@media (max-width: 820px) {
  .palco { grid-template-columns: 1fr; }
  .listas { grid-template-columns: 1fr; }
  .topo { padding: 12px 16px; }
  .lua { width: 72px; height: 72px; top: 58px; right: 14px; }
  .lua::before { width: 13px; height: 13px; left: 16px; top: 20px; }
  .lua::after { width: 18px; height: 18px; left: 40px; top: 40px; }
  .morcegos { width: 200px; height: 100px; top: 44px; right: 0; }
}
