/* You In The Game · plataforma. Escuro primeiro: a noite da marca é o palco; creme é o texto; coral é ação. */
@font-face { font-family: Gabarito; src: url(/assets/fontes/gabarito.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }

:root {
  --noite: #24102b;
  --noite-2: #2e1638;
  --noite-3: #3a1d46;
  --fundo: #170a1c;
  --linha: rgba(255, 246, 230, 0.12);
  --creme: #fff6e6;
  --creme-2: rgba(255, 246, 230, 0.72);
  --creme-3: rgba(255, 246, 230, 0.5);
  --coral: #ff5a4e;
  --coral-fundo: #d63a31;
  --ambar: #f2a33a;
  --grena: #7a1e2c;
  --verde: #6fd39a;
  --raio: 14px;
  --raio-p: 9px;
  --titulo: Gabarito, ui-sans-serif, system-ui, sans-serif;
  --texto: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, #3d0c16 0%, transparent 60%), var(--fundo);
  background-attachment: fixed;
  color: var(--creme);
  font: 16px/1.5 var(--texto);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--titulo); line-height: 1.05; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: 1.6rem; font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 800; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--ambar); text-underline-offset: 3px; }
small, .sutil { color: var(--creme-3); font-size: .875rem; }
.forte { color: var(--creme); font-weight: 700; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- botões e campos ---------- */
.botao {
  appearance: none; border: 0; cursor: pointer; font: 700 1rem/1 var(--texto);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.3em; border-radius: 999px; text-decoration: none;
  background: var(--coral-fundo); color: #fff; min-height: 48px;
  transition: transform .12s, background .2s;
}
.botao:hover { background: var(--coral); }
.botao:active { transform: scale(.97); }
.botao[disabled] { opacity: .5; cursor: default; }
.botao.claro { background: var(--creme); color: var(--grena); }
.botao.vazio { background: transparent; color: var(--creme); box-shadow: inset 0 0 0 1.5px var(--linha); }
.botao.vazio:hover { box-shadow: inset 0 0 0 1.5px var(--creme-3); }
.botao.pequeno { min-height: 36px; padding: .55em .95em; font-size: .875rem; }
.botao.perigo { background: transparent; color: var(--coral); box-shadow: inset 0 0 0 1.5px rgba(255, 90, 78, .45); }
.botao.largo { width: 100%; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .35em; color: var(--creme-2); }
.campo { margin-bottom: 1.1rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], input:not([type]), textarea, select {
  width: 100%; font: 1rem/1.4 var(--texto); color: var(--creme);
  background: rgba(255, 246, 230, .06); border: 1.5px solid var(--linha); border-radius: var(--raio-p);
  padding: .75em .9em; min-height: 48px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ambar); background: rgba(255, 246, 230, .09); }
select option { background: var(--noite); }
.ajuda { color: var(--creme-3); font-size: .82rem; margin-top: .35em; }

/* escolhas visuais (pele, cabelo, cenário...) */
.escolhas { display: flex; flex-wrap: wrap; gap: .45rem; }
.escolha {
  appearance: none; cursor: pointer; border: 1.5px solid var(--linha); background: rgba(255, 246, 230, .05);
  color: var(--creme); border-radius: var(--raio-p); min-height: 44px; min-width: 44px; padding: .45em .75em;
  font: 600 .88rem var(--texto); display: inline-flex; align-items: center; gap: .4em;
}
.escolha[aria-pressed=true] { border-color: var(--ambar); background: rgba(242, 163, 58, .16); }
.escolha.cor { padding: 0; width: 40px; min-width: 40px; height: 40px; min-height: 40px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 246, 230, .45); } /* contorno claro: cores escuras aparecem no fundo noite */
.escolha.cor[aria-pressed=true] { border-color: var(--creme); }
.escolha .em { font-size: 1.3em; }

/* ---------- estrutura ---------- */
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--linha);
  position: sticky; top: 0; z-index: 20; background: rgba(23, 10, 28, .82); backdrop-filter: blur(12px);
}
.marca { display: flex; align-items: center; gap: .55rem; color: var(--creme); text-decoration: none; font: 900 1.05rem var(--titulo); letter-spacing: .02em; }
.marca img { width: 30px; height: 30px; }
.topo nav { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.envelope { width: min(1180px, 100%); margin: 0 auto; padding: clamp(1.2rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem); }
.estreito { width: min(560px, 100%); }
.grade { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.linha { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.placa { background: linear-gradient(180deg, rgba(255, 246, 230, .055), rgba(255, 246, 230, .025)); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.2rem; }
.vazio-msg { text-align: center; padding: 3rem 1rem; color: var(--creme-2); }

/* faixa do Super ADM vendo como outra pessoa */
.faixa-adm {
  background: var(--ambar); color: #2b1300; font-weight: 700; font-size: .9rem;
  display: flex; gap: .8rem; align-items: center; justify-content: center; padding: .5rem 1rem; flex-wrap: wrap;
}
.faixa-adm button { background: #2b1300; color: var(--ambar); border: 0; border-radius: 999px; padding: .35em .9em; font-weight: 700; cursor: pointer; }

/* ---------- entrar / criar ---------- */
.porta { display: grid; grid-template-columns: 1.15fr 1fr; min-height: calc(100dvh - 60px); }
.porta .vitrine { position: relative; overflow: hidden; border-right: 1px solid var(--linha); }
.porta .vitrine canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.porta .vitrine::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(23, 10, 28, .85)); pointer-events: none; }
.porta .vitrine .legenda { position: absolute; z-index: 1; left: 1.5rem; bottom: 1.2rem; right: 1.5rem; max-width: 40ch; color: var(--creme); font-size: 1rem; margin: 0; }
.porta .formulario { display: flex; align-items: center; justify-content: center; padding: 2rem clamp(1rem, 4vw, 3rem); }
.porta form { width: min(420px, 100%); }
.abas { display: flex; gap: .3rem; background: rgba(255, 246, 230, .06); padding: .3rem; border-radius: 999px; margin-bottom: 1.6rem; }
.abas button { flex: 1; border: 0; background: transparent; color: var(--creme-2); font: 700 .92rem var(--texto); padding: .65em; border-radius: 999px; cursor: pointer; min-height: 42px; }
.abas button[aria-selected=true] { background: var(--creme); color: var(--grena); }
@media (max-width: 860px) {
  .porta { grid-template-columns: 1fr; }
  .porta .vitrine { height: 38vh; border-right: 0; border-bottom: 1px solid var(--linha); }
}

/* ---------- editor ---------- */
.editor { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(300px, 420px); gap: 0; min-height: calc(100dvh - 60px); }
.editor .passos { border-right: 1px solid var(--linha); padding: 1.2rem .8rem; position: sticky; top: 60px; align-self: start; height: calc(100dvh - 60px); overflow: auto; }
.passos ol { list-style: none; margin: 0; padding: 0; counter-reset: passo; }
.passos li button {
  width: 100%; text-align: left; border: 0; background: transparent; color: var(--creme-2); cursor: pointer;
  font: 600 .95rem var(--texto); padding: .7rem .8rem; border-radius: var(--raio-p); display: flex; gap: .7rem; align-items: center; min-height: 44px;
}
.passos li button::before { counter-increment: passo; content: counter(passo); font: 800 .78rem var(--titulo); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 246, 230, .08); flex: none; }
.passos li button[aria-current=true] { background: rgba(255, 246, 230, .08); color: var(--creme); }
.passos li button[aria-current=true]::before { background: var(--coral); color: #fff; }
.editor .conteudo { padding: clamp(1.2rem, 3vw, 2.4rem); max-width: 760px; }
.editor .tela { border-left: 1px solid var(--linha); padding: 1.2rem; position: sticky; top: 60px; align-self: start; height: calc(100dvh - 60px); display: flex; flex-direction: column; gap: .8rem; }
.console {
  position: relative; border-radius: 28px; padding: 14px; background: linear-gradient(160deg, #3a1d46, #1d0d23);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 246, 230, .12);
}
.console .vidro { position: relative; border-radius: 16px; overflow: hidden; background: #0d0b24; aspect-ratio: 9 / 16; max-height: calc(100dvh - 230px); margin: 0 auto; }
.console canvas { width: 100%; height: 100%; display: block; touch-action: manipulation; }
.console .rodape-console { display: flex; justify-content: space-between; align-items: center; padding: .7rem .3rem 0; color: var(--creme-3); font-size: .8rem; }
.selo { display: inline-flex; align-items: center; gap: .35em; font-size: .78rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; background: rgba(255, 246, 230, .1); color: var(--creme-2); }
.selo.ok { background: rgba(111, 211, 154, .16); color: var(--verde); }
.selo.alerta { background: rgba(242, 163, 58, .18); color: var(--ambar); }
.selo.coral { background: rgba(255, 90, 78, .16); color: var(--coral); }
.pessoas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bloco { border-top: 1px solid var(--linha); padding-top: 1.4rem; margin-top: 1.4rem; }
.bloco:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.fotos-mini { display: flex; gap: .5rem; flex-wrap: wrap; }
.fotos-mini button { width: 72px; height: 72px; border-radius: var(--raio-p); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--noite-2); }
.fotos-mini button[aria-pressed=true] { border-color: var(--ambar); }
.fotos-mini img { width: 100%; height: 100%; object-fit: cover; }
.mobile-previa { display: none; }
@media (max-width: 1100px) {
  .editor { grid-template-columns: 200px minmax(0, 1fr); }
  .editor .tela { display: none; }
  .mobile-previa { display: inline-flex; }
  .editor .tela.aberta { display: flex; position: fixed; inset: 0; z-index: 50; background: rgba(13, 6, 16, .94); height: 100dvh; padding: 1rem; justify-content: center; }
}
@media (max-width: 720px) {
  .editor { grid-template-columns: 1fr; }
  .editor .passos { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--linha); padding: .5rem; overflow-x: auto; }
  .passos ol { display: flex; gap: .2rem; }
  .passos li button { white-space: nowrap; padding: .55rem .7rem; }
  .pessoas { grid-template-columns: 1fr; }
  .botao-previa-flutuante { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
  .editor .conteudo { padding-bottom: 6rem; } /* o fim da página rola para longe do botão flutuante */
}
@media (max-width: 520px) {
  .marca span { display: none; } /* só o ícone: os botões do topo cabem numa linha */
  .topo nav { flex-wrap: nowrap; }
}

.pergunta-quiz { display: grid; gap: .5rem; padding: 1rem; border: 1px solid var(--linha); border-radius: var(--raio); margin-bottom: .8rem; }
.pergunta-quiz .opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pergunta-quiz .opcao { display: flex; gap: .4rem; align-items: center; }
.pergunta-quiz .opcao input[type=radio] { width: 22px; height: 22px; accent-color: var(--verde); flex: none; }

.linha-tempo { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--linha); }
.linha-tempo li { position: relative; padding: 0 0 1.3rem 1.3rem; }
.linha-tempo li::before { content: ''; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--ambar); }
.linha-tempo .quando { font: 800 .9rem var(--titulo); color: var(--ambar); }
.mensagem-pronta { background: rgba(255, 246, 230, .05); border-radius: var(--raio-p); padding: .8rem 1rem; margin: .5rem 0; white-space: pre-wrap; font-size: .92rem; }

.codigo-mestre { font: 900 2.4rem/1 var(--titulo); letter-spacing: .18em; color: var(--ambar); }

.planos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.plano { border: 1.5px solid var(--linha); border-radius: var(--raio); padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.plano.destaque { border-color: var(--ambar); background: linear-gradient(180deg, rgba(242, 163, 58, .1), transparent); }
.plano .preco { font: 900 2.2rem var(--titulo); }
.plano ul { margin: 0; padding-left: 1.1rem; color: var(--creme-2); font-size: .94rem; }
.plano ul li { margin-bottom: .3rem; }
@media (max-width: 720px) { .planos { grid-template-columns: 1fr; } }

/* ---------- tabelas (ADM, parceiro, convidados) ---------- */
.tabela { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabela th { text-align: left; color: var(--creme-3); font-weight: 600; font-size: .8rem; padding: .5rem .6rem; border-bottom: 1px solid var(--linha); }
.tabela td { padding: .65rem .6rem; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.rolagem { overflow-x: auto; }
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 2rem; }
.numeros div { padding: 1rem; border-radius: var(--raio); background: rgba(255, 246, 230, .05); }
.numeros strong { display: block; font: 900 1.9rem var(--titulo); }
.numeros span { color: var(--creme-3); font-size: .85rem; }

/* ---------- convidado (tela cheia) ---------- */
body.jogando { background: var(--noite); overflow: hidden; }
.palco { position: fixed; inset: 0; display: flex; flex-direction: column; }
.palco .quadro-jogo { position: relative; flex: 1; min-height: 0; }
.palco canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; }
.barra { display: flex; justify-content: space-around; background: rgba(23, 10, 28, .96); border-top: 1px solid var(--linha); padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); }
.barra button { flex: 1; border: 0; background: transparent; color: var(--creme-3); font: 700 .74rem var(--texto); display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem 0; cursor: pointer; min-height: 52px; border-radius: 10px; }
.barra button .em { font-size: 1.3rem; filter: grayscale(.7); }
.barra button[aria-current=true] { color: var(--creme); }
.barra button[aria-current=true] .em { filter: none; }
.barra button.vivo { color: var(--coral); }
.camada { position: absolute; inset: 0; overflow: auto; background: rgba(23, 10, 28, .94); backdrop-filter: blur(10px); padding: 1.2rem 1.1rem 2rem; animation: subir .25s ease-out; }
.camada .envelope { padding: 0; width: min(560px, 100%); }
@keyframes subir { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .camada { animation: none; } }
.selo-offline { position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%); z-index: 5; pointer-events: none; white-space: nowrap; }
.parceiro-assina { display: flex; align-items: center; gap: .5rem; justify-content: center; color: var(--creme-3); font-size: .8rem; margin-top: 1.4rem; }
.parceiro-assina img { height: 26px; width: auto; border-radius: 4px; background: #fff; padding: 2px 4px; }
.ranking { list-style: none; margin: 0; padding: 0; }
.ranking li { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .6rem; align-items: center; padding: .65rem .2rem; border-bottom: 1px solid var(--linha); }
.ranking .pos { font: 900 1.1rem var(--titulo); color: var(--creme-3); text-align: center; }
.ranking li:nth-child(1) .pos { color: var(--ambar); }
.ranking .pts { font: 800 1rem var(--titulo); }
.ranking .lado { color: var(--creme-3); font-size: .8rem; display: block; }
.ranking li.eu { background: rgba(242, 163, 58, .1); border-radius: 10px; }
.mural { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.mural figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--noite-2); position: relative; aspect-ratio: 1; }
.mural img { width: 100%; height: 100%; object-fit: cover; }
.mural figcaption { position: absolute; inset: auto 0 0 0; padding: .4rem .5rem; font-size: .75rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.mural .acoes { position: absolute; top: .3rem; right: .3rem; display: flex; gap: .3rem; }
.album { display: flex; gap: .7rem; overflow-x: auto; padding: .5rem 0 1rem; scroll-snap-type: x mandatory; }
.album figure { margin: 0; flex: 0 0 66%; max-width: 260px; background: #fffaf2; color: #3d0c16; padding: .55rem .55rem 1rem; border-radius: 4px; transform: rotate(-1.5deg); scroll-snap-align: center; }
.album figure:nth-child(even) { transform: rotate(1.8deg); }
.album img, .album .sem-foto { width: 100%; aspect-ratio: 1; object-fit: cover; background: linear-gradient(#f2a33a, #ff5a4e); display: grid; place-items: center; font-size: 3rem; }
.album figcaption { font: 800 .9rem var(--titulo); margin-top: .5rem; text-align: center; }
.pontuacao { font: 900 clamp(3rem, 14vw, 5rem)/1 var(--titulo); color: var(--ambar); }

/* quiz no celular: 4 botões grandes com cor + letra + forma (não depende só de cor) */
.respostas { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.resposta { border: 0; border-radius: 16px; min-height: 92px; color: #fff; font: 800 1.05rem var(--titulo); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .7rem; text-align: center; }
.resposta .forma { font-size: 1.5rem; line-height: 1; }
.resposta[data-i='0'] { background: #d63a31; } .resposta[data-i='1'] { background: #2f6db5; } .resposta[data-i='2'] { background: #b07a12; } .resposta[data-i='3'] { background: #2e8a57; }
.resposta[disabled] { opacity: .35; }
.resposta.escolhida { opacity: 1; box-shadow: 0 0 0 4px var(--creme); }
.cronometro { height: 6px; background: rgba(255, 246, 230, .12); border-radius: 3px; overflow: hidden; margin: 1rem 0; }
.cronometro i { display: block; height: 100%; background: var(--ambar); transform-origin: left; }

.pausa-sagrada { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 40%, #3d0c16, #0d0610 70%); display: grid; place-items: center; text-align: center; padding: 2rem; }
.pausa-sagrada .coracao { font-size: 4rem; animation: bater 1.4s infinite; }
@keyframes bater { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .pausa-sagrada .coracao { animation: none; } }

/* ---------- telão (16:9, lido de longe) ---------- */
body.telao { overflow: hidden; background: var(--noite); }
.telao-grade { position: fixed; inset: 0; display: grid; grid-template-columns: 30vw 1fr; }
.telao-lado { background: #170a1c; padding: 4vh 3vw; display: flex; flex-direction: column; gap: 3vh; border-right: 1px solid var(--linha); }
.telao-lado .qr { background: #fff; padding: 1.2vw; border-radius: 1vw; width: 100%; aspect-ratio: 1; }
.telao-lado .qr svg { width: 100%; height: 100%; display: block; }
.telao-lado h1 { font-size: 3.2vw; }
.telao-lado p { font-size: 1.4vw; color: var(--creme-2); }
.telao-palco { padding: 5vh 4vw; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.telao-palco h2 { font-size: 3.6vw; }
.telao-palco .ranking li { font-size: 2vw; grid-template-columns: 4vw 1fr auto; padding: 1.2vh 0; }
.telao-palco .ranking .pos, .telao-palco .ranking .pts { font-size: 2.2vw; }
.telao-palco .ranking .lado { font-size: 1.1vw; }
.telao-pergunta { font: 900 4.2vw/1.1 var(--titulo); margin-bottom: 4vh; }
.telao-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vw; }
.telao-opcoes .resposta { min-height: 14vh; font-size: 2.4vw; border-radius: 1.4vw; cursor: default; position: relative; overflow: hidden; }
.telao-opcoes .resposta .forma { font-size: 2.6vw; }
.telao-opcoes .resposta .votos { position: relative; z-index: 1; font-size: 3vw; line-height: 1; }
.telao-opcoes .resposta .barra-dist { position: absolute; inset: auto 0 0 0; height: 0; background: rgba(255, 255, 255, .25); transition: height .6s; }
.telao-opcoes .resposta.errada { opacity: .3; }
.telao-cronometro { font: 900 6vw var(--titulo); color: var(--ambar); position: absolute; top: 4vh; right: 4vw; }
.telao-foto { position: absolute; inset: 0; display: grid; place-items: center; }
.telao-foto figure { margin: 0; background: #fffaf2; padding: 1.2vw 1.2vw 4vw; transform: rotate(-2deg); box-shadow: 0 3vw 6vw rgba(0, 0, 0, .6); max-width: 60%; }
.telao-foto img { max-height: 62vh; width: auto; }
.telao-foto figcaption { color: #3d0c16; font: 800 1.8vw var(--titulo); text-align: center; margin-top: 1.2vw; }

/* ---------- mestre ---------- */
.mestre-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.mestre-botoes .botao { min-height: 64px; font-size: 1.05rem; border-radius: 16px; }
.roteiro { background: rgba(242, 163, 58, .1); border-left: 3px solid var(--ambar); padding: .8rem 1rem; border-radius: 0 10px 10px 0; font-size: 1.05rem; margin: 1rem 0; }

#avisos { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 4.4rem); /* abaixo das barras de topo */ transform: translateX(-50%); z-index: 200; display: grid; pointer-events: none; gap: .5rem; width: min(420px, calc(100% - 2rem)); }
.aviso { background: var(--creme); color: var(--grena); border-radius: 12px; padding: .8rem 1rem; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: opacity .4s, transform .4s; }
.aviso-erro { background: var(--coral-fundo); color: #fff; }
.aviso.saindo { opacity: 0; transform: translateY(-8px); }

.carregando { display: grid; place-items: center; min-height: 60vh; color: var(--creme-3); }

/* ---------- lista de presentes ---------- */
.presentes { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.presente { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; padding: .8rem; border: 1px solid var(--linha); border-radius: var(--raio); background: rgba(255, 246, 230, .035); }
.presente.indisponivel { opacity: .55; }
.presente-foto { width: 96px; height: 96px; border-radius: var(--raio-p); overflow: hidden; background: var(--noite-2); display: grid; place-items: center; font-size: 1.8rem; cursor: pointer; }
.presente-foto img { width: 100%; height: 100%; object-fit: cover; }
.presente-corpo { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.presente-corpo input, .presente-corpo select { min-height: 40px; padding: .45em .7em; font-size: .92rem; }

/* ---------- rostos dos convidados ---------- */
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--noite-3); }
.avatar.iniciais { display: inline-grid; place-items: center; font: 800 .8rem var(--titulo); color: var(--creme); background: linear-gradient(135deg, var(--grena), var(--coral-fundo)); }
.avatar.grande { width: 72px; height: 72px; font-size: 1.4rem; }
.pessoa { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.telao-palco .avatar { width: 3.4vw; height: 3.4vw; font-size: 1.2vw; }
.telao-palco .avatar.grande { width: 7vw; height: 7vw; font-size: 2.4vw; }
.selfie [data-rosto-previa] img { margin-top: .5rem; }

/* ---------- gravata ---------- */
.gravata-topo { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: center; }
.gravata-desenho .gravata-svg { width: 100%; height: auto; max-height: 260px; display: block; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .4)); }
.pix { display: grid; gap: .6rem; margin-top: 1rem; }
.pix-qr { background: #fff; border-radius: 12px; padding: 10px; width: min(260px, 100%); margin: 0 auto; }
.pix-qr svg { width: 100%; height: auto; display: block; }
.pix .escolha input[type=radio] { accent-color: var(--ambar); }
.gravata-recados { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.gravata-recados li { display: flex; gap: .6rem; align-items: center; font-size: .92rem; }
.telao-gravata { display: grid; grid-template-columns: 22vw 1fr; gap: 4vw; align-items: center; }
.telao-gravata-desenho .gravata-svg { width: 100%; height: auto; max-height: 80vh; }
.telao-gravata h2 { font-size: 4vw; }
.telao-gravata-conta { font: 900 3.4vw var(--titulo); color: var(--ambar); margin: 1vh 0; }
.telao-gravata-ultimo { display: flex; gap: 1.5vw; align-items: center; background: rgba(255, 246, 230, .08); border-radius: 1.4vw; padding: 1.5vw; margin: 3vh 0; font-size: 2vw; animation: subir .4s ease-out; }
.telao-gravata .gravata-recados li { font-size: 1.5vw; }
@media (max-width: 520px) { .gravata-topo { grid-template-columns: 90px 1fr; } }

/* ---------- seletor de país e idioma: o mesmo do site (estilo Hostinger) ---------- */
.bandeira { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 246, 230, .18); }
.locais { position: relative; }
.locais summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 246, 230, .08); font-weight: 700; font-size: 14px; min-height: 36px; }
.locais summary::-webkit-details-marker { display: none; }
.locais summary:hover, .locais[open] summary { background: rgba(255, 246, 230, .14); }
.painel-locais { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: min(380px, calc(100vw - 32px)); padding: 18px; border-radius: 20px; background: var(--creme); color: #1b1b22; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.painel-locais .painel-titulo { font: 750 16px/1.3 var(--titulo); margin-bottom: 12px; }
.painel-locais .busca { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid #d9cfc0; background: #fff; font: inherit; font-size: 15px; color: inherit; margin-bottom: 8px; min-height: 0; }
.painel-locais ul { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
.painel-locais li a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; font-size: 15px; color: inherit; }
.painel-locais li a:hover, .painel-locais li a:focus-visible { background: #f1e6d4; }
.painel-locais li a[aria-current="true"] { background: #f7d9d3; }
.painel-locais .pais { font-weight: 650; }
.painel-locais .idioma { color: #7a7070; }
.painel-locais .bandeira { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }

/* ---------- aba Jogos ---------- */
.jogos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-top: 1rem; }
.jogo-cartao { appearance: none; border: 1px solid var(--linha); background: linear-gradient(180deg, rgba(255, 246, 230, .07), rgba(255, 246, 230, .025)); color: var(--creme); border-radius: var(--raio); padding: 1rem .9rem; text-align: left; display: flex; flex-direction: column; gap: .35rem; cursor: pointer; font: inherit; min-height: 150px; transition: transform .12s, border-color .2s; }
.jogo-cartao:hover { border-color: var(--creme-3); }
.jogo-cartao:active { transform: scale(.98); }
.jogo-cartao strong { font: 800 1.05rem/1.15 var(--titulo); }
.jogo-cartao .sutil { font-size: .82rem; line-height: 1.35; }
.jogo-cartao.destaque { grid-column: 1 / -1; min-height: 0; background: linear-gradient(135deg, rgba(122, 30, 44, .55), rgba(214, 58, 49, .35)); border-color: rgba(255, 90, 78, .45); }
.jogo-emoji { font-size: 2rem; line-height: 1; }
.barra button { font-size: .68rem; min-width: 0; }

/* minijogo em tela cheia, por cima da história */
.mini { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: var(--noite); }
.mini-topo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: .5rem .8rem; border-bottom: 1px solid var(--linha); }
.mini-topo strong { font: 800 1rem var(--titulo); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-palco { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.mini-fim { position: absolute; inset: 0; z-index: 5; overflow-y: auto; display: grid; place-items: center; padding: 1rem; background: rgba(23, 10, 28, .94); backdrop-filter: blur(6px); }
/* só o cartão do resultado é centralizado; o formulário do nome dentro dele segue o fluxo normal */
.mini-fim > .placa { width: min(420px, 100%); text-align: center; display: grid; gap: .6rem; justify-items: center; animation: subir .25s ease-out; }
.mini-fim > .placa > form { width: 100%; text-align: left; margin-top: .4rem; border: 0; background: none; padding: 0; border-top: 1px solid var(--linha); padding-top: 1rem; border-radius: 0; }

/* ---------- convite ---------- */
.convite-faixa { width: 100%; display: flex; gap: .8rem; align-items: center; text-align: left; cursor: pointer; color: var(--creme); font: inherit; margin-bottom: 1.2rem; }
.convite-faixa .em { font-size: 1.8rem; }
.convite-faixa span:last-child { display: grid; gap: .1rem; }
.convite-cartao { text-align: center; padding: 2rem 1.2rem; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, rgba(242, 163, 58, .18), transparent 60%), linear-gradient(180deg, #3a1d46, #24102b); border: 1px solid rgba(242, 163, 58, .35); display: grid; gap: .5rem; justify-items: center; }
.convite-cartao h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); margin: 0; }
.convite-data { font: 800 1.15rem var(--titulo); color: var(--ambar); margin: 0; }
.convite-mensagem { font-size: 1.05rem; white-space: pre-wrap; margin: .6rem auto 0; }
.presenca-escolha .escolha { flex: 1; justify-content: center; min-height: 52px; font-size: 1rem; }
.presenca-escolha input { accent-color: var(--ambar); }

/* ---------- início do casamento: escolher o que configurar ---------- */
.grupo-titulo { font-size: 1rem; color: var(--creme-3); font-weight: 700; margin: 1.6rem 0 .6rem; letter-spacing: 0; }
.secoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.secao-cartao { appearance: none; border: 1px solid var(--linha); background: linear-gradient(180deg, rgba(255, 246, 230, .06), rgba(255, 246, 230, .02)); color: var(--creme); border-radius: var(--raio); padding: 1rem; text-align: left; display: grid; gap: .35rem; cursor: pointer; font: inherit; justify-items: start; align-content: start; }
.secao-cartao:hover { border-color: var(--creme-3); }
.secao-cartao strong { font: 800 1.05rem var(--titulo); }
.secao-cartao .sutil { font-size: .85rem; }
.jogo-config { margin-top: .8rem; padding: 0; }
.jogo-config > h3, .jogo-config > .linha, .jogo-config > p { padding: 0 1.2rem; }
.jogo-config > .linha:first-child { padding-top: 1rem; }
.jogo-config summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: 1rem 1.2rem; cursor: pointer; }
.jogo-config summary::-webkit-details-marker { display: none; }
.jogo-config summary > span:nth-child(2) { display: grid; gap: .1rem; }
.jogo-config-corpo { padding: 0 1.2rem 1.2rem; display: grid; gap: .6rem; border-top: 1px solid var(--linha); padding-top: 1rem; }
.lista-item { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.lista-item > input { flex: 1; }
.mini-teste { position: fixed; z-index: 120; }

/* ---------- Super ADM: abas, painéis de dados e servidor ---------- */
.abas-adm { display: inline-flex; margin: 0; }
.abas-adm a { text-decoration: none; color: var(--creme-2); font: 700 .9rem var(--texto); padding: .55em 1em; border-radius: 999px; }
.abas-adm a.ativa { background: var(--creme); color: var(--grena); }
.abas-pequenas { margin: 0; width: auto; }
.abas-pequenas button { min-height: 34px; padding: .4em .9em; font-size: .85rem; white-space: nowrap; }
.graficos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.grafico { margin: 0; padding: .9rem 1rem .6rem; border: 1px solid var(--linha); border-radius: var(--raio); background: rgba(255, 246, 230, .03); }
.grafico figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; color: var(--creme-2); font-size: .85rem; }
.grafico figcaption strong { font: 900 1.3rem var(--titulo); color: var(--creme); }
.grafico svg { width: 100%; height: 110px; display: block; overflow: visible; }
.grafico-eixo { display: flex; justify-content: space-between; color: var(--creme-3); font-size: .72rem; margin-top: .3rem; }
.grade-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.grade-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.bloco-largo { margin-bottom: .8rem; }
.funil { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.funil li { display: grid; grid-template-columns: 9.5rem 1fr 3rem; gap: .6rem; align-items: center; font-size: .88rem; }
.funil small { color: var(--creme-3); text-align: right; }
.barra-h { position: relative; display: block; min-width: 90px; height: 24px; border-radius: 6px; background: rgba(255, 246, 230, .05); overflow: hidden; }
.barra-h i { position: absolute; inset: 0 auto 0 0; background: rgba(242, 163, 58, .55); border-radius: 0 4px 4px 0; }
.barra-h span { position: relative; padding: 0 .5rem; line-height: 24px; font-size: .82rem; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: .35em; font-size: .85rem; font-weight: 700; margin-right: .6rem; }
.status-ok { color: var(--verde); } .status-amarelo { color: var(--ambar); } .status-vermelho { color: var(--coral); } .status-sem { color: var(--creme-3); }
.sinais { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; margin: 1rem 0 1.2rem; }
.sinal { padding: .8rem 1rem; border-radius: var(--raio-p); background: rgba(255, 246, 230, .04); border: 1px solid var(--linha); display: grid; gap: .3rem; }
.sinal strong { font: 900 1.5rem var(--titulo); }
.sinal-amarelo { border-color: rgba(242, 163, 58, .6); } .sinal-vermelho { border-color: rgba(255, 90, 78, .75); background: rgba(255, 90, 78, .08); }
@media (max-width: 720px) { .funil li { grid-template-columns: 7rem 1fr 2.5rem; } .abas-adm { margin-top: .5rem; } }

/* banner de consentimento do GA4 (só em /login, /signup e /checkout, quando ligado) */
.consentimento { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 560px; margin: 0 auto; background: var(--creme); color: #1b1b22; border-radius: 18px; padding: 16px 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); display: grid; gap: 12px; font-size: .95rem; }
.consentimento p { margin: 0; max-width: none; }
.consentimento div { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consentimento button { font: 700 .95rem var(--texto); border-radius: 999px; padding: 10px 18px; border: 0; cursor: pointer; min-height: 44px; }
.consentimento [data-c="nao"] { background: transparent; color: #1b1b22; box-shadow: inset 0 0 0 1.5px #d9cfc0; }
.consentimento [data-c="sim"] { background: var(--grena); color: #fff; }

/* campo de arquivo no padrão da marca: o input fica só para leitor de tela e validação */
.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.arquivo { display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .8rem 1rem; border: 2px dashed rgba(255, 246, 230, .35); border-radius: 14px; cursor: pointer; font-weight: 700; overflow-wrap: anywhere; }
.arquivo span[aria-hidden] { font-size: 1.6rem; }
.arquivo img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.so-leitor:focus-visible + .arquivo { outline: 3px solid var(--ambar); outline-offset: 2px; }
.arquivo:hover { border-color: var(--ambar); }
.pix:has(input[name='valor'][value='outro']:not(:checked)) [data-outro] { display: none; }
[aria-invalid='true'] { border-color: var(--coral) !important; box-shadow: 0 0 0 2px var(--coral); }
input[type='checkbox'], input[type='radio'] { width: 1.25rem; height: 1.25rem; accent-color: var(--ambar); vertical-align: middle; flex: none; }
@media (pointer: coarse) {
  .botao.pequeno, .abas button, .abas a { min-height: 44px; } /* alvo de toque confortável no celular */
}
.link-curto { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } /* endereço inteiro numa linha; o botão Copiar leva o completo */
.tabela .bandeira { width: 18px; height: 18px; vertical-align: -4px; margin-right: .2rem; }
.pais-cel { white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- editor do site do casamento ---------- */
.site-previa-caixa { border: 1px solid var(--linha, #e2ded5); border-radius: 14px; overflow: hidden; background: #fff; margin: 1rem 0 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.site-previa-caixa iframe { display: block; width: 100%; height: 540px; border: 0; }
.temas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.tema-chip { display: flex; flex-direction: column; gap: .4rem; padding: .5rem; border: 1px solid var(--linha, #e2ded5); border-radius: 12px; background: var(--fundo-placa, #fff); cursor: pointer; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tema-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.tema-chip[aria-pressed="true"] { border-color: currentColor; box-shadow: 0 0 0 2px currentColor; }
.tema-amostra { position: relative; height: 56px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font: 600 20px/1 Georgia, serif; border: 1px solid rgba(0,0,0,.08); }
.tema-ponto { position: absolute; right: 8px; bottom: 8px; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.tema-nome { font-size: .82rem; font-weight: 600; }
.lista-bloco { margin-top: .8rem; }
