/* Lady's Rewards — visual. Roxo ametista + ouro, a roleta é o centro. */
:root {
  --noite: #0f0618;
  --noite-2: #1a0b29;
  --ametista: #8a30d1;
  --ametista-viva: #b565f5;
  --lilas: #d9c2f2;
  --ouro: #ffda88;
  --ouro-fundo: #bd7622;
  --texto: #f7efff;
  --texto-2: #c8b3dc;
  --texto-3: #a08bb6;
  --vivo: #ff4d7d;
  --ok: #6fe3a5;
  --twitch: #9146ff;
  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --corpo: 'Nunito Sans', 'Segoe UI', sans-serif;
  --largura: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--noite);
  color: var(--texto);
  font: 400 17px/1.55 var(--corpo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Ambiente: luz da ametista no alto, ouro bem fraco embaixo. Fixo, sem caixa. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 46vw at 72% 18%, #6a1fb055, transparent 62%),
    radial-gradient(48vw 38vw at 8% 4%, #3d0f6a66, transparent 65%),
    radial-gradient(70vw 40vw at 50% 110%, #bd762214, transparent 60%),
    linear-gradient(180deg, #140822, var(--noite) 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; border-radius: 6px; }

.moldura { width: min(var(--largura), 100% - 40px); margin-inline: auto; }

/* ---------- Topo ---------- */
.topo {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 0;
}
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marca img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px #0f0618, 0 0 0 3.5px var(--ouro-fundo); }
.marca span { font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
.marca span b { color: var(--ouro); font-weight: 700; }
.abas { display: flex; gap: 4px; }
.abas a {
  text-decoration: none; padding: 9px 16px; border-radius: 99px;
  color: var(--texto-2); font-weight: 700; font-size: 16px;
  transition: color .15s, background .15s;
}
.abas a:hover { color: var(--texto); }
.abas a[aria-current='page'] { color: var(--noite); background: var(--ouro); }
.conta { display: flex; align-items: center; gap: 10px; }
.conta img { width: 34px; height: 34px; border-radius: 50%; }
.conta .saldo-topo { font: 700 16px var(--display); color: var(--ouro); display: flex; align-items: center; gap: 6px; text-decoration: none; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 14px; padding: 14px 24px;
  font: 800 17px/1 var(--corpo); text-decoration: none;
  transition: transform .12s, filter .15s;
}
.botao:active { transform: translateY(1px); }
.botao[disabled] { opacity: .55; cursor: not-allowed; }
.botao-ouro { background: linear-gradient(180deg, #ffe7ab, #e9ae4a 60%, #c98423); color: #2a1202; box-shadow: 0 10px 30px -10px #e9ae4a99, inset 0 1px 0 #fff8; }
.botao-ouro:hover:not([disabled]) { filter: brightness(1.07); }
.botao-twitch { background: var(--twitch); color: #fff; box-shadow: 0 10px 30px -12px #9146ffcc; }
.botao-twitch:hover { filter: brightness(1.1); }
.botao-quieto { background: #ffffff12; color: var(--texto); padding: 11px 18px; font-size: 15px; }
.botao-quieto:hover { background: #ffffff1f; }
.botao-pequeno { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.link { background: none; border: 0; padding: 0; color: var(--ouro); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #ffda8866; }
.link:hover { text-decoration-color: var(--ouro); }

/* ---------- Início ---------- */
.palco {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: 24px;
  padding: 28px 0 56px;
}
.fala h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; }
.fala h1 span { display: block; }
.fala .apoio { margin-top: 18px; max-width: 34ch; color: var(--texto-2); font-size: 19px; }
.situacao { margin-top: 30px; display: grid; gap: 14px; justify-items: start; }
.giros-linha { display: flex; align-items: baseline; gap: 12px; }
.giros-linha strong { font: 800 64px/0.9 var(--display); color: var(--ouro); font-variant-numeric: tabular-nums; }
.giros-linha span { font-size: 19px; color: var(--texto); font-weight: 700; }
.proximo { color: var(--texto-2); font-size: 16px; }
.proximo b { color: var(--texto); font-variant-numeric: tabular-nums; }
.ao-vivo { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 99px; background: #ffffff0f; box-shadow: inset 0 0 0 1px #ffffff14; font-weight: 800; font-size: 15px; color: var(--texto-2); text-decoration: none; transition: background .15s; }
.ao-vivo:hover { background: #ffffff1a; }
.ao-vivo i { width: 9px; height: 9px; border-radius: 50%; background: var(--texto-3); }
.ao-vivo b { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; background: #9146ff33; color: #e3d1ff; font-weight: 800; font-size: 14px; }
.ao-vivo.sim b { background: var(--twitch); color: #fff; }
.ao-vivo.sim { color: #ffd0dc; }
.ao-vivo.sim i { background: var(--vivo); box-shadow: 0 0 0 0 #ff4d7d99; animation: pulso 1.8s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 9px #ff4d7d00; } 100% { box-shadow: 0 0 0 0 #ff4d7d00; } }
.aviso-chat { color: var(--texto-3); font-size: 14.5px; max-width: 40ch; }

.cena { position: relative; display: grid; place-items: center; min-height: 560px; }
.roleta-area { position: relative; width: min(410px, 82vw); aspect-ratio: 1; margin-right: 30%; }
.roleta-area::before { /* luz atrás da roleta, redonda, sem corte */
  content: ''; position: absolute; inset: -22%; border-radius: 50%;
  background: radial-gradient(closest-side, #a44df04d, #a44df01a 55%, transparent 72%);
  pointer-events: none;
}
.roleta-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#disco { transform-origin: 0 0; transition: transform 5.4s cubic-bezier(.12, .72, .08, 1); will-change: transform; }
.anel-fundo { fill: none; stroke: #ffffff14; stroke-width: 7; }
.anel-tempo { fill: none; stroke: url(#ouroLinha); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.anel-cheio .anel-tempo { filter: drop-shadow(0 0 6px #ffda88cc); }
.valor-fatia { font: 800 30px var(--display); text-anchor: middle; dominant-baseline: middle; }
.valor-fatia.pequeno { font-size: 25px; }
.miolo {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 30%; aspect-ratio: 1; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 35% 28%, #7b2bc0, #3a0f5e 62%, #24083c);
  box-shadow: 0 0 0 5px #e9ae4a, 0 0 0 8px #7a4a10, 0 14px 30px #000a, inset 0 2px 0 #ffffff33;
  color: var(--ouro); font: 800 clamp(17px, 2.4vw, 24px)/1.05 var(--display);
  display: grid; place-items: center; text-align: center; padding: 6px;
  transition: transform .15s, filter .15s;
}
.miolo:hover:not([disabled]) { transform: scale(1.05); filter: brightness(1.15); }
.miolo[disabled] { cursor: default; color: #d9c2f2aa; }
.miolo.pronto { animation: chama 1.6s ease-in-out infinite; }
@keyframes chama { 50% { box-shadow: 0 0 0 5px #ffe7ab, 0 0 0 8px #7a4a10, 0 0 34px 6px #ffda88aa, inset 0 2px 0 #ffffff33; } }
.personagem {
  position: absolute; right: -54%; bottom: -7%; height: 106%; width: auto; max-width: none;
  pointer-events: none; filter: drop-shadow(0 22px 26px #000b);
}

/* resultado do giro */
.resultado {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(closest-side, #0f0618f2 58%, #0f0618cc 78%, transparent);
  animation: surgir .45s cubic-bezier(.2, .9, .3, 1.2);
  text-align: center;
}
@keyframes surgir { from { opacity: 0; scale: .8; } }
.resultado p { color: var(--texto-2); font-weight: 700; }
.resultado strong { display: block; font: 800 clamp(64px, 11vw, 104px)/1 var(--display); color: var(--ouro); text-shadow: 0 0 40px #ffda8877; }
.resultado.raro strong { background: linear-gradient(100deg, #fff3cf, #ffda88, #ff9de1, #b565f5, #ffda88); -webkit-background-clip: text; background-clip: text; color: transparent; }
.resultado small { display: block; font: 700 18px var(--corpo); color: var(--ouro); margin-bottom: 18px; }

/* ---------- Prêmios ---------- */
.secao { padding: 44px 0; }
.secao > .moldura > h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.secao-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.premios { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.premios li { text-align: center; padding: 6px 4px; display: grid; grid-template-rows: 72px auto auto; align-items: end; justify-items: center; }
.premios b { display: block; font: 800 30px/1 var(--display); color: var(--ouro); margin-top: 12px; }
.premios span { display: block; margin-top: 6px; color: var(--texto-3); font-size: 14.5px; font-weight: 700; }
.premios span i { font-style: normal; }
.premios li.topo-premio b { font-size: 44px; }
.rc { display: inline-block; width: 20px; height: 20px; image-rendering: pixelated; object-fit: contain; flex: none; user-select: none; vertical-align: -4px; }
.premios .rc { width: 48px; height: 48px; align-self: center; filter: drop-shadow(0 6px 10px #0009) drop-shadow(0 0 14px #58b7ff44); }
.premios li.topo-premio .rc { width: 64px; height: 64px; filter: drop-shadow(0 8px 12px #0009) drop-shadow(0 0 22px #ffda8877); }
.ganho .rc { width: 16px; height: 16px; margin-left: 5px; vertical-align: -2px; }
.saldo-grande .rc { width: 48px; height: 48px; margin-right: 12px; vertical-align: -3px; }
.resultado small .rc { margin-right: 7px; }
.tw { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Ranking ---------- */
.titulo-pagina { padding: 34px 0 8px; }
.titulo-pagina h1 { font-size: clamp(36px, 4.6vw, 54px); font-weight: 800; }
.titulo-pagina p { color: var(--texto-2); margin-top: 10px; max-width: 52ch; }
.podio { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 18px; max-width: 760px; margin: 44px auto 34px; text-align: center; }
.podio > div { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.podio .foto { position: relative; width: 92px; height: 92px; border-radius: 50%; padding: 4px; background: linear-gradient(160deg, #cfd6e6, #7b8296); }
.podio .foto img, .podio .foto .sem-foto { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--noite-2); }
.podio .foto em { position: absolute; left: 50%; bottom: -10px; translate: -50%; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; background: #cfd6e6; color: #1a1026; font: 800 15px/28px var(--display); font-style: normal; }
.podio .p1 .foto { width: 128px; height: 128px; background: linear-gradient(160deg, #fff0c2, #e9ae4a 50%, #a4660f); box-shadow: 0 0 44px -6px #ffda8888; }
.podio .p1 .foto em { background: var(--ouro); }
.podio .p3 .foto { background: linear-gradient(160deg, #f0b98a, #9a5a2a); }
.podio .p3 .foto em { background: #e0a070; }
.podio .nome { margin-top: 14px; font: 800 19px/1.2 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podio .p1 .nome { font-size: 24px; }
.podio .tempo { color: var(--texto-2); font-weight: 700; font-size: 15px; }
.podio .ganho { color: var(--ouro); font-weight: 800; font-size: 15px; }
.lista-rank { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.lista-rank li { display: grid; grid-template-columns: 44px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; }
.lista-rank li:nth-child(odd) { background: #ffffff08; }
.lista-rank li.eu { background: #ffda881f; box-shadow: inset 3px 0 0 var(--ouro); }
.lista-rank .pos { font: 800 17px var(--display); color: var(--texto-3); text-align: center; }
.lista-rank img, .lista-rank .sem-foto { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--noite-2); }
.lista-rank .nome { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-rank .tempo { color: var(--texto-2); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.lista-rank .ganho { color: var(--ouro); font-weight: 800; font-size: 15px; min-width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.sem-foto { display: grid; place-items: center; font: 800 16px var(--display); color: var(--lilas); }
.vazio { text-align: center; color: var(--texto-2); padding: 56px 0; max-width: 40ch; margin-inline: auto; }
.vazio .botao { margin-top: 20px; }

/* ---------- Perfil ---------- */
.perfil-topo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 40px 0 34px; }
.perfil-topo .foto { width: 112px; height: 112px; border-radius: 50%; padding: 4px; background: linear-gradient(160deg, #fff0c2, #e9ae4a 50%, #8a30d1); }
.perfil-topo .foto img, .perfil-topo .foto .sem-foto { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--noite-2); font-size: 34px; }
.perfil-topo h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; overflow-wrap: anywhere; }
.perfil-topo .sub { color: var(--texto-2); margin-top: 6px; }
.saldo-grande { text-align: right; }
.saldo-grande small { display: block; color: var(--texto-2); font-weight: 700; font-size: 15px; }
.saldo-grande strong { font: 800 clamp(44px, 6vw, 68px)/1 var(--display); color: var(--ouro); font-variant-numeric: tabular-nums; }
.numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px 0; border-block: 1px solid #ffffff14; }
.numeros div b { display: block; font: 800 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.numeros div span { color: var(--texto-3); font-weight: 700; font-size: 14.5px; }
.duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 40px 0; }
.duas h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.duas .explica { color: var(--texto-2); font-size: 15.5px; margin-bottom: 20px; }
.campo { display: grid; gap: 7px; margin-bottom: 16px; }
.campo label { font-weight: 800; font-size: 15px; }
.campo input, .campo select {
  font: 600 17px var(--corpo); color: var(--texto); background: #ffffff0f;
  border: 1.5px solid #ffffff24; border-radius: 12px; padding: 13px 14px; width: 100%;
}
.campo input:focus, .campo select:focus { outline: none; border-color: var(--ouro); background: #ffffff17; }
.campo select option { background: var(--noite-2); }
.recado { margin-top: 14px; font-weight: 700; font-size: 15.5px; min-height: 1.5em; }
.recado.erro { color: #ffb0c0; }
.recado.certo { color: var(--ok); }
.linhas { list-style: none; margin: 0; padding: 0; }
.linhas li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #ffffff10; font-size: 16px; }
.linhas li span { color: var(--texto-2); }
.linhas li b { font-variant-numeric: tabular-nums; }
.linhas .ouro { color: var(--ouro); }
.etiqueta { font-weight: 800; font-size: 13.5px; padding: 3px 10px; border-radius: 99px; background: #ffffff14; color: var(--texto-2); }
.etiqueta.pago { background: #6fe3a526; color: var(--ok); }
.etiqueta.recusado { background: #ff4d7d26; color: #ffb0c0; }
.etiqueta.pendente { background: #ffda8826; color: var(--ouro); }
.admin { padding: 34px 0 10px; border-top: 1px solid #ffffff14; }
.admin h2 { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.admin .linhas li { flex-wrap: wrap; }
.admin .acoes { display: flex; gap: 8px; }

/* ---------- Diálogo ---------- */
dialog {
  border: 0; border-radius: 22px; padding: 34px; width: min(520px, calc(100% - 32px));
  background: linear-gradient(170deg, #2a1040, #170a24); color: var(--texto);
  box-shadow: 0 40px 100px #000c, inset 0 0 0 1px #ffda8833;
}
dialog::backdrop { background: #08030ecc; backdrop-filter: blur(4px); }
dialog h2 { font-size: 28px; font-weight: 800; margin-bottom: 18px; }
dialog ol { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 16px; }
dialog ol li { counter-increment: passo; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; color: var(--texto-2); }
dialog ol li::before { content: counter(passo); width: 38px; height: 38px; border-radius: 50%; background: var(--ouro); color: #2a1202; font: 800 18px/38px var(--display); text-align: center; }
dialog ol li b { color: var(--texto); display: block; }
dialog .acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
dialog p { color: var(--texto-2); margin-bottom: 22px; }

.rodape { margin-top: 30px; padding: 30px 0 44px; display: flex; gap: 18px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; }
.rodape::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #ffda8855 30%, #b565f555 70%, transparent); }
.rodape-marca { display: flex; align-items: center; gap: 13px; }
.rodape-marca img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px #0f0618, 0 0 0 3px var(--ouro-fundo); }
.rodape-marca p { margin: 0; color: var(--texto-3); font-size: 14.5px; line-height: 1.35; }
.rodape-marca b { display: block; color: var(--texto); font: 700 17px/1.2 var(--display); }
.canal { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: 99px; background: var(--twitch); color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; line-height: 1.15; box-shadow: 0 10px 30px -12px #9146ffcc; transition: filter .15s; }
.canal:hover { filter: brightness(1.1); }
.canal .tw { width: 24px; height: 24px; }
.canal small { display: block; font-weight: 600; font-size: 13px; opacity: .8; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .topo { gap: 12px; padding: 14px 0; }
  .abas {
    position: fixed; left: 50%; bottom: 14px; translate: -50%; z-index: 20;
    background: #1d0d2df2; backdrop-filter: blur(12px); padding: 6px; border-radius: 99px;
    box-shadow: 0 16px 40px #000a, inset 0 0 0 1px #ffffff1c;
  }
  .abas a { padding: 11px 18px; }
  .palco { grid-template-columns: 1fr; padding-top: 6px; gap: 6px; }
  .cena { order: -1; min-height: 0; padding: 8px 0 18px; }
  .roleta-area { margin-right: 0; width: min(380px, 84vw); }
  .personagem { height: 60%; right: -17%; bottom: -7%; }
  .fala { text-align: center; }
  .fala h1, .fala .apoio { margin-inline: auto; }
  .situacao { justify-items: center; }
  .aviso-chat { text-align: center; }
  .rodape { justify-content: center; }
  .premios { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .premios b { font-size: 21px; }
  .premios li.topo-premio b { font-size: 27px; }
  .premios .rc { width: 48px; height: 48px; }
  .premios li.topo-premio .rc { width: 64px; height: 64px; }
  .premios span { font-size: 13px; }
  .premios span i { display: none; }
  .premios li { grid-template-rows: 70px auto auto; }
  .palco { padding-bottom: 20px; }
  .secao { padding: 26px 0; }
  .podio { gap: 8px; }
  .podio .foto { width: 68px; height: 68px; }
  .podio .p1 .foto { width: 96px; height: 96px; }
  .podio .nome { font-size: 15px; }
  .podio .p1 .nome { font-size: 18px; }
  .lista-rank li { grid-template-columns: 30px 34px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .lista-rank img, .lista-rank .sem-foto { width: 34px; height: 34px; }
  .lista-rank .tempo { display: none; }
  .perfil-topo { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-top: 22px; }
  .perfil-topo .foto { width: 76px; height: 76px; }
  .saldo-grande { grid-column: 1 / -1; text-align: left; }
  .numeros { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .duas { grid-template-columns: 1fr; gap: 40px; }
  dialog { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #disco { transition-duration: .6s; }
  .miolo.pronto, .ao-vivo.sim i, .resultado { animation: none; }
  html { scroll-behavior: auto; }
}
