/* Roleta Tradestar: pele V12 do Valley (Gi e Loane, 26/10/2026) no escuro.
   Outfit, champanhe e vidro fosco; a estrela da Tradestar com os containers por dentro. */

@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("/s/fontes/outfit-200-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("/s/fontes/outfit-200-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0b0c; --glow: #1c1b1a; --ink-rgb: 240, 238, 234; --ink: rgb(var(--ink-rgb)); --muted: #a29f97;
  --f1: rgba(52, 51, 49, .58); --f2: rgba(22, 22, 23, .55); --fbd: rgba(255, 255, 255, .12);
  --tag: rgba(255, 255, 255, .08); --tag-2: rgba(255, 255, 255, .14);
  --champ: #e7dcc2; --champ-2: #d6c49e; --champfg: #1b1b1a; --champ-soft: rgba(231, 220, 194, .22);
  --vivo: #2f9e5b; --erro: #e0796c; --alerta: #c9822b;
  --linha: rgba(var(--ink-rgb), .08); --linha-2: rgba(var(--ink-rgb), .18);
  --fonte: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mola: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--fonte); color: var(--ink); background: var(--bg);
  background-image: radial-gradient(520px 420px at 50% 38%, var(--glow), rgba(0, 0, 0, 0) 72%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 3px; }

/* ---------- textos ---------- */
.sobre {
  margin: 0; text-align: center; color: var(--muted);
  font-size: 11px; line-height: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.titulo { margin: 0; text-align: center; font-weight: 200; font-size: clamp(38px, 9vw, 56px); line-height: 1.02; letter-spacing: -.025em; }
.titulo em { font-style: normal; color: var(--champ); }
.traco { display: block; margin: 12px auto 0; width: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--ink-rgb), .15), var(--champ), rgba(var(--ink-rgb), .15)); }
.lema { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.4; font-weight: 300; }
.rodape {
  margin: auto 0 0; padding-top: 22px; text-align: center; color: var(--muted);
  font-size: 10px; line-height: 14px; letter-spacing: .2em; text-transform: uppercase;
}
.leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- marcas ---------- */
.marcas { display: flex; align-items: center; justify-content: center; gap: 14px; }
.marcas i { width: 1px; height: 22px; background: rgba(var(--ink-rgb), .25); }
.marcas .ts { height: 24px; width: auto; }
.marcas .g4 { height: 20px; width: auto; }
.marcas.p { gap: 10px; }
.marcas.p i { height: 14px; }
.marcas.p .ts { height: 16px; }
.marcas.p .g4 { height: 13px; }

/* ---------- estrela (o monólito) com halo e órbitas ---------- */
.palco {
  position: relative; flex: none; aspect-ratio: 177.15 / 225.22; width: 200px; max-width: 100%;
  --traco: #e7dcc2; --halo: rgba(231, 220, 194, .18); --orbita: rgba(231, 220, 194, .3);
}
.halo { position: absolute; inset: -40%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--halo), transparent); animation: respira 2.8s ease-in-out infinite; }
@keyframes respira { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.orbita { position: absolute; left: 50%; top: 50%; width: 165%; height: auto; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
.orbita circle { fill: none; stroke: var(--orbita); stroke-width: .6; stroke-linecap: round; stroke-dasharray: 16 84;
  transform-box: view-box; transform-origin: 100px 100px; animation: gira 6s linear infinite, aparece 900ms ease 450ms both; }
.orbita .o2 { stroke-dasharray: 7 93; opacity: .7; animation-duration: 9s, 900ms; animation-direction: reverse, normal; }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.estrela { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 34px 44px rgba(0, 0, 0, .55)); }
.estrela .contorno { fill: none; stroke: var(--traco); stroke-width: 1.3; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: traca 1100ms cubic-bezier(.65, 0, .35, 1) 150ms forwards, apaga 900ms ease 1500ms forwards; }
@keyframes traca { to { stroke-dashoffset: 0; } }
@keyframes apaga { to { stroke-opacity: .22; } }
.estrela .foto { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; animation: foto 1200ms var(--mola) 800ms forwards; }
@keyframes foto { from { opacity: 0; transform: scale(1.14); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
.estrela .luz { animation: luz 1000ms cubic-bezier(.4, 0, .2, 1) 1450ms forwards; }
@keyframes luz { to { transform: translateX(340px); } }
.palco.quieto .contorno { animation: none; stroke-dashoffset: 0; stroke-opacity: .22; }
.palco.quieto .foto { animation: none; opacity: 1; }
.palco.quieto .luz { animation: luz 1000ms cubic-bezier(.4, 0, .2, 1) 300ms forwards; }

/* entrada em sequência */
.sobe { opacity: 0; transform: translateY(12px); animation: sobe 700ms var(--mola) forwards; animation-delay: var(--d, 0ms); }
@keyframes sobe { to { opacity: 1; transform: none; } }

/* ---------- vidro ---------- */
.vidro {
  background: linear-gradient(180deg, var(--f1), var(--f2)); border: 1px solid var(--fbd); border-radius: 24px;
  -webkit-backdrop-filter: blur(18px) saturate(110%); backdrop-filter: blur(18px) saturate(110%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .35);
}
.vidro.destaque { border: 1.5px solid var(--champ); background: linear-gradient(180deg, rgba(66, 64, 61, .66), rgba(26, 25, 24, .62));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4), 0 0 0 6px rgba(231, 220, 194, .05); }

/* ---------- campos em pílula ---------- */
.campo { position: relative; display: block; }
.campo .ico { position: absolute; left: 18px; top: 0; height: 54px; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.campo .ico svg { width: 18px; height: 18px; }
.campo .prefixo { position: absolute; left: 46px; top: 0; height: 54px; display: grid; place-items: center; color: var(--muted); font-size: 16px; pointer-events: none; }
.entrada {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 54px; margin: 0;
  padding: 0 20px 0 48px; border-radius: 999px; border: 1px solid var(--fbd); background: var(--tag);
  color: var(--ink); font: 400 16px/1.2 var(--fonte); letter-spacing: 0; transition: border-color .18s, box-shadow .18s, background .18s;
}
.campo .prefixo + .entrada, .entrada.com-prefixo { padding-left: 62px; }
.entrada::placeholder { color: var(--muted); opacity: 1; }
.entrada:focus { outline: none; border-color: var(--champ); box-shadow: 0 0 0 3px var(--champ-soft); background: rgba(255, 255, 255, .11); }
.entrada:-webkit-autofill, .entrada:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 600000s 0s, color 600000s 0s; }
.campo.erro .entrada { border-color: var(--erro); box-shadow: 0 0 0 3px rgba(224, 121, 108, .18); }
.campo.erro .ico { color: var(--erro); }
.msg-erro { display: block; margin: 6px 0 0 20px; color: var(--erro); font-size: 12.5px; line-height: 1.3; font-weight: 500; }
.campo:not(.erro) .msg-erro { display: none; }
.campo.erro { animation: treme 380ms ease; }
@keyframes treme { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* aceite */
.aceite { display: flex; align-items: flex-start; gap: 12px; padding: 8px 6px 2px; cursor: pointer; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.aceite input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aceite .caixa { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--linha-2);
  background: var(--tag); display: grid; place-items: center; transition: background .18s, border-color .18s; }
.aceite .caixa svg { width: 14px; height: 14px; color: var(--champfg); opacity: 0; transform: scale(.6); transition: opacity .18s, transform .25s var(--mola); }
.aceite input:checked + .caixa { background: var(--champ); border-color: var(--champ); }
.aceite input:checked + .caixa svg { opacity: 1; transform: none; }
.aceite input:focus-visible + .caixa { outline: 2px solid var(--champ); outline-offset: 3px; }
.aceite.erro .caixa { border-color: var(--erro); }
.aceite.erro { color: var(--erro); }

/* ---------- botões ---------- */
.botao {
  -webkit-appearance: none; appearance: none; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--champ); color: var(--champfg); font: 600 17px/1 var(--fonte); letter-spacing: 0;
  box-shadow: 0 12px 30px rgba(231, 220, 194, .12);
  transition: transform .12s, opacity .18s, box-shadow .25s;
}
.botao.cheio { width: 100%; }
.botao:hover { box-shadow: 0 14px 38px rgba(231, 220, 194, .22); }
.botao:active:not(:disabled) { transform: scale(.98); }
.botao:disabled { cursor: progress; opacity: .85; }
.botao svg { width: 18px; height: 18px; flex: none; }
.botao.sec { background: linear-gradient(180deg, var(--f1), var(--f2)); color: var(--ink); border: 1px solid var(--fbd); box-shadow: none;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.botao.p { height: 42px; padding: 0 18px; font-size: 14px; }
.botao.fantasma { background: transparent; color: var(--muted); box-shadow: none; }
.botao.fantasma:hover { color: var(--ink); }
.botao.perigo { background: transparent; color: var(--erro); border: 1px solid rgba(224, 121, 108, .4); box-shadow: none; }
/* brilho que atravessa o botão principal */
.botao.brilha::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg);
  animation: varre 3.4s ease-in-out 1.2s infinite; }
@keyframes varre { 0% { left: -60%; } 38%, 100% { left: 130%; } }
.giro { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gira .7s linear infinite; }
.botao[aria-busy="true"] .giro { display: block; }
.botao[aria-busy="true"] .seta { display: none; }

/* ---------- aviso solto ---------- */
.avisos { position: fixed; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.aviso { pointer-events: auto; max-width: 460px; width: 100%; padding: 14px 18px; border-radius: 16px;
  background: rgba(24, 24, 26, .86); border: 1px solid var(--fbd); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); font-size: 14px; font-weight: 500; animation: sobe 380ms var(--mola) forwards; opacity: 0; transform: translateY(12px); }
.aviso.erro { border-color: rgba(224, 121, 108, .5); }
.aviso.ok { border-color: rgba(231, 220, 194, .5); }

canvas.confete { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

@media (prefers-reduced-motion: reduce) {
  .halo, .orbita circle, .estrela .contorno, .estrela .foto, .estrela .luz, .sobe, .botao.brilha::after, .campo.erro { animation: none !important; }
  .sobe, .estrela .foto { opacity: 1; transform: none; }
  .estrela .contorno { stroke-dashoffset: 0; stroke-opacity: .22; }
  .estrela .luz { display: none; }
}
