/* gtalive.tv — site público (tokens de referencias_visuais/design_system.md) */
:root {
  --noite: #1D002E; --contorno: #360057; --violeta: #3B146B;
  --azul-violeta: #4E53C7; --orquidea: #BD41C2; --magenta: #F54EA8; --rosa: #FF698D;
  --coral: #FF7D6B; --laranja: #FF8F4F; --amarelo: #FDA33B; --sol: #FFB458;
  --ciano: #67D9E9; --ao-vivo: #EA5559; --branco: #FFFFFF;
  --g-emblema-h: linear-gradient(90deg, #4E53C7 0%, #BD41C2 30%, #F54EA8 50%, #FF698D 65%, #FF8F4F 85%, #FDA33B 100%);
  --titulo: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --neon: 'Yellowtail', cursive;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; font-family: var(--ui); color: var(--branco); line-height: 1.45;
  background: var(--noite) url('/img/bg-mobile.webp') center top / cover no-repeat fixed;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29,0,46,.15) 0%, rgba(29,0,46,.55) 40%, rgba(29,0,46,.85) 100%); }
@media (min-width: 900px) { body { background-image: url('/img/bg-desktop.webp'); } }
a { color: var(--sol); }
.oculto { display: none !important; }

.pagina { width: 100%; max-width: 560px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 40px; }
.topo { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 4px; }
.topo img { width: min(78vw, 340px); height: auto; filter: drop-shadow(0 8px 18px rgba(29,0,46,.6)); }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--titulo); letter-spacing: 1px; font-size: 16px;
  padding: 4px 14px; border-radius: 999px; background: rgba(29,0,46,.75); border: 1px solid rgba(255,255,255,.2); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9a8fb0; }
.status.vivo::before { background: var(--ao-vivo); box-shadow: 0 0 10px var(--ao-vivo); animation: pulsa 1.2s infinite; }
@keyframes pulsa { 50% { opacity: .4; } }

/* botões das lives (animados) */
.lives { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.live { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 10px 12px;
  border-radius: 16px; color: #fff; text-decoration: none; font: 800 18px/1.05 var(--ui); overflow: hidden; isolation: isolate;
  background: rgba(29,0,46,.85); animation: flutua 3s ease-in-out infinite; }
.live::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px; padding: 2px;
  background: linear-gradient(110deg, #4E53C7, #BD41C2, #F54EA8, #FF8F4F, #FDA33B, #F54EA8, #4E53C7); background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: corre 3s linear infinite; }
.live::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); animation: reflexo 2.8s ease-in-out infinite; }
.live svg { width: 30px; height: 30px; flex: none; }
.live.yt svg rect { fill: #FF3B4E; } .live.yt svg .corte { fill: #fff; }
.live.tt svg path { fill: #fff; filter: drop-shadow(-1.5px -1px 0 #67D9E9) drop-shadow(1.5px 1px 0 #F54EA8); }
.live .txt { display: flex; flex-direction: column; align-items: flex-start; }
.live .sub { font-family: var(--titulo); font-weight: 400; font-size: 12px; letter-spacing: 1px; color: #e3d4ef; }
.live.vivo .sub { color: #fff; }
.live.vivo .sub::before { content: "● "; color: var(--ao-vivo); animation: pulsa 1s infinite; }
.live.vivo { animation: flutua 3s ease-in-out infinite, pulso 1.6s ease-in-out infinite; }
.live:active { transform: scale(.97); }
.live.tt { animation-delay: .4s; }
.btn-msg { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; min-height: 54px; padding: 10px 16px;
  border-radius: 16px; text-decoration: none; color: var(--noite); font: 800 18px var(--ui);
  background: linear-gradient(110deg, #FDA33B, #FF8F4F, #FF698D, #F54EA8, #FF8F4F, #FDA33B); background-size: 300% 100%;
  animation: corre 4s linear infinite, pulso-sol 2s ease-in-out infinite; }
.btn-msg svg { width: 24px; height: 24px; fill: var(--noite); }
@keyframes corre { to { background-position: 300% 0; } }
@keyframes reflexo { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes flutua { 50% { transform: translateY(-2px); } }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,78,168,.55); } 50% { box-shadow: 0 0 0 8px rgba(245,78,168,0); } }
@keyframes pulso-sol { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,180,88,.6); } 50% { box-shadow: 0 0 0 8px rgba(255,180,88,0); } }
@media (prefers-reduced-motion: reduce) { .live, .live::before, .live::after, .btn-msg { animation: none !important; } }

.card { position: relative; margin: 16px 0; padding: 20px 18px; border-radius: 22px; background: rgba(29,0,46,.86);
  box-shadow: 0 12px 30px rgba(29,0,46,.5); backdrop-filter: blur(4px); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 2px; background: var(--g-emblema-h);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card h2, .titulo { font-family: var(--titulo); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; line-height: 1.05; }
.card h2 { font-size: 26px; margin-bottom: 8px; }
.card p { color: #eadff2; }
.selo { display: inline-block; font-family: var(--titulo); font-size: 15px; letter-spacing: 1px; padding: 3px 12px; border-radius: 999px; background: var(--g-emblema-h); color: var(--noite); }
.cabeca { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.timer { font-family: var(--titulo); font-size: 40px; line-height: 1; color: var(--sol); text-shadow: 2px 2px 0 var(--noite); }
.timer.urgente { color: var(--ao-vivo); animation: pulsa 1s infinite; }
.pergunta { font-weight: 800; font-size: 22px; line-height: 1.25; margin: 4px 0 14px; }
.dica { font-size: 14px; color: #cbbedb; margin-top: 10px; }

.opcoes { display: grid; gap: 10px; }
.opcao { position: relative; width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-radius: 16px; border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07);
  color: var(--branco); font: 800 19px/1.2 var(--ui); text-align: left; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button.opcao:hover, button.opcao:focus-visible { border-color: var(--magenta); background: rgba(245,78,168,.14); outline: none; }
button.opcao:active { transform: scale(.98); }
button.opcao[disabled] { cursor: progress; opacity: .7; }
.opcao .barra { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--g-emblema-h); opacity: .75; transition: width .8s ease; }
.opcao .rotulo, .opcao .pct { position: relative; text-shadow: 1px 1px 2px var(--noite); }
.opcao .pct { font-family: var(--titulo); font-weight: 400; font-size: 24px; }
.opcao.minha { border-color: var(--sol); box-shadow: 0 0 0 2px var(--sol) inset; }
.opcao.vencedora { border-color: var(--sol); box-shadow: 0 0 18px rgba(255,180,88,.7); }
.opcao .marca { font-size: 13px; font-weight: 700; color: var(--sol); display: block; }
.resultado-titulo { font-family: var(--titulo); font-size: 30px; text-transform: uppercase; color: var(--sol); text-shadow: 2px 2px 0 var(--noite); margin-bottom: 6px; }
.neon { font-family: var(--neon); font-size: 34px; color: #fff; text-shadow: 0 0 6px var(--magenta), 0 0 16px var(--magenta); }

textarea { width: 100%; resize: vertical; min-height: 88px; padding: 12px 14px; border-radius: 14px; border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: var(--branco); font: 600 17px/1.4 var(--ui); }
textarea:focus { outline: none; border-color: var(--magenta); }
.linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.contador { font-size: 14px; color: #cbbedb; }
.btn { border: 0; border-radius: 14px; padding: 13px 20px; font: 800 17px var(--ui); color: var(--noite); background: var(--g-emblema-h); cursor: pointer; }
.btn:disabled { opacity: .6; cursor: progress; }

.como ol { padding-left: 20px; display: grid; gap: 8px; margin: 8px 0 12px; }
.lista { list-style: none; display: grid; gap: 8px; }
.lista li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.lista small { display: block; color: #cbbedb; }

.toast { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px; background: var(--noite); border: 2px solid var(--magenta); font-weight: 700; z-index: 30;
  transition: transform .3s ease; text-align: center; }
.toast.ver { transform: translate(-50%, 0); }
.humano { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(29,0,46,.7); padding: 16px; }
.humano-caixa { background: var(--noite); border-radius: 18px; padding: 18px; text-align: center; border: 2px solid var(--magenta); max-width: 360px; }
.humano-caixa p { margin-bottom: 12px; font-weight: 700; }

footer { text-align: center; font-size: 13px; color: #cbbedb; padding: 10px 16px 30px; }
footer a { margin: 0 6px; }

/* páginas de texto */
.texto h1 { font-family: var(--titulo); font-weight: 400; font-size: 34px; text-transform: uppercase; margin-bottom: 10px; }
.texto h2 { margin-top: 18px; }
.texto p, .texto li { margin: 8px 0; color: #eadff2; }
.texto ul { padding-left: 20px; }
