/* Disparatte — versão web do app. Mesmas cores e telas do app Android. */
[hidden] { display: none !important; }
:root { --ambar: #ffc857; --n1: #6fd3b6; --n2: #ffa45c; --n3: #ff4f79; --barra: 64px; }
html, body { height: 100%; }
body { overscroll-behavior-y: none; }
#app { max-width: 600px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.tela { flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.conteudo { flex: 1; padding: 8px max(16px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 14px; align-content: start; }
.com-abas .conteudo { padding-bottom: calc(var(--barra) + 24px + env(safe-area-inset-bottom)); }

/* barra superior */
.topo { position: sticky; top: 0; z-index: 5; background: var(--fundo); display: flex; align-items: center; gap: 6px; min-height: 58px;
  padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); }
.topo h1 { font: 600 20px/1.2 system-ui, sans-serif; margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icone { background: none; border: 0; color: var(--texto); width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icone:hover { background: var(--cartao); }
.icone svg { width: 24px; height: 24px; }

/* abas inferiores */
.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--cartao); border-top: 1px solid var(--linha);
  padding-bottom: env(safe-area-inset-bottom); }
.abas nav { max-width: 600px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--barra); }
.abas button { background: none; border: 0; color: var(--suave); font: 600 12px/1 system-ui, sans-serif; display: grid; place-items: center; gap: 4px;
  cursor: pointer; position: relative; padding-top: 8px; }
.abas button svg { width: 24px; height: 24px; }
.abas button[aria-current="page"] { color: var(--rosa); }
.contador { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--rosa); color: var(--fundo); font-size: 11px; font-weight: 700;
  border-radius: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }

/* componentes */
.cartao.clicavel { cursor: pointer; transition: border-color .15s; }
.cartao.clicavel:hover { border-color: var(--suave); }
.cartao { display: grid; gap: 8px; }
.etq { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .6px; padding: 3px 8px; border-radius: 8px; color: var(--fundo); }
.n1 { background: var(--n1); } .n2 { background: var(--n2); } .n3 { background: var(--n3); }
.b1 { border-color: color-mix(in srgb, var(--n1) 60%, transparent); }
.b2 { border-color: color-mix(in srgb, var(--n2) 60%, transparent); }
.b3 { border-color: color-mix(in srgb, var(--n3) 60%, transparent); }
.brosa { border-color: color-mix(in srgb, var(--rosa) 55%, transparent); }
.linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.linha > .cresce { flex: 1; min-width: 0; }
.titulo-nivel { font: 700 22px/1.2 Georgia, "Times New Roman", serif; }
.pergunta { font: 600 19px/1.35 system-ui, sans-serif; margin: 0; }
.rotulo { font-size: 12px; font-weight: 700; letter-spacing: .8px; color: var(--rosa); text-transform: uppercase; margin: 6px 0 0; }
.apelido { color: var(--rosa); font-weight: 700; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.apelido:disabled { cursor: default; }
.texto { font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.selo2 { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; color: var(--fundo); background: var(--ambar); }
.vazio { color: var(--suave); text-align: center; padding: 28px 12px; }
.carregando { display: grid; place-items: center; padding: 36px; }
.carregando::after { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--linha); border-top-color: var(--rosa); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.link { background: none; border: 0; color: var(--rosa); font: inherit; font-weight: 700; padding: 6px 0; cursor: pointer; justify-self: start; text-align: left; }
.erro { color: var(--vermelho); margin: 0; }
.bloqueio { border-color: var(--rosa); }
.bloqueio .linha svg { width: 22px; height: 22px; color: var(--rosa); flex: none; }

/* campos */
.campo { display: grid; gap: 4px; }
.campo label { font-size: 13px; color: var(--suave); }
.campo input, .campo textarea, .entrada { width: 100%; font: inherit; font-size: 16px; color: var(--texto); background: #0f0b14; border: 1px solid var(--linha);
  border-radius: 14px; padding: 12px 14px; }
.campo textarea, textarea.entrada { resize: vertical; min-height: 76px; }
.campo input:focus, .campo textarea:focus, .entrada:focus { outline: none; border-color: var(--rosa); }
.campo input[aria-invalid="true"] { border-color: var(--vermelho); }
.ajuda { font-size: 13px; color: var(--suave); }
.ajuda.ruim { color: var(--vermelho); }
.marcar { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.marcar input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rosa); flex: none; }

/* botões */
.botao, .botao2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 26px; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; padding: 0 20px; }
.botao { background: var(--rosa); color: var(--fundo); border: 0; }
.botao2 { background: transparent; color: var(--texto); border: 1px solid var(--linha); }
.botao:disabled, .botao2:disabled { opacity: .45; cursor: default; }
.largo { width: 100%; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dupla .botao, .dupla .botao2 { min-height: 44px; padding: 0 10px; white-space: nowrap; }
.perigo { background: var(--vermelho); color: #fff; }

/* estrelas */
.estrelas { display: inline-flex; }
.estrelas button { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--suave); line-height: 0; }
.estrelas button.cheia { color: var(--ambar); }
.estrelas svg { width: 26px; height: 26px; }
.estrelas.so-ver svg { width: 18px; height: 18px; }
.nota { color: var(--suave); font-size: 14px; }

/* menu de três pontos */
.menu { position: relative; }
.menu-lista { position: absolute; right: 0; top: 40px; z-index: 8; background: var(--cartao2); border: 1px solid var(--linha); border-radius: 12px; min-width: 230px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); overflow: hidden; }
.menu-lista button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--texto); font: inherit; padding: 12px 14px; cursor: pointer; }
.menu-lista button:hover { background: var(--cartao); }

/* chat */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.faixa { background: var(--cartao); color: var(--suave); font-size: 12px; padding: 8px max(16px, env(safe-area-inset-left)); }
.mensagens { flex: 1; overflow-y: auto; padding: 12px max(12px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 6px; }
.bolha { max-width: 80%; padding: 9px 14px; border-radius: 16px; background: var(--cartao2); white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start;
  font-size: 16px; line-height: 1.4; }
.bolha.minha { background: var(--rosa); color: var(--fundo); align-self: flex-end; }
.compor { background: var(--cartao); padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); display: grid; gap: 4px; }
.compor .linha { flex-wrap: nowrap; }
.compor textarea { min-height: 46px; max-height: 140px; border-radius: 22px; }
.tela-chat { height: 100vh; height: 100dvh; min-height: 0; }

/* conversas */
.avatar { width: 42px; height: 42px; border-radius: 21px; background: var(--cartao2); color: var(--rosa); font-weight: 700; display: grid; place-items: center; flex: none; }
.resumo { color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bolinha { background: var(--rosa); color: var(--fundo); border-radius: 10px; min-width: 20px; height: 20px; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }

/* boas-vindas */
.boas { padding: 40px max(24px, env(safe-area-inset-left)) 40px; display: grid; gap: 16px; align-content: center; min-height: 100vh; min-height: 100dvh; }
.boas .logo { font-size: 38px; }
.boas h2 { font: 600 22px/1.3 system-ui, sans-serif; margin: 0; }
.download { display: grid; gap: 6px; }

/* diálogo */
#dialogo { position: fixed; inset: 0; z-index: 20; background: rgba(8, 5, 12, .7); display: grid; place-items: center; padding: 16px; }
#dialogo .caixa { background: var(--cartao); border: 1px solid var(--linha); border-radius: 20px; padding: 20px; width: min(440px, 100%); display: grid; gap: 12px;
  max-height: 90vh; overflow-y: auto; }
#dialogo h3 { margin: 0; font: 600 20px/1.3 system-ui, sans-serif; }
.opcao { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 4px 0; }
.opcao input { accent-color: var(--rosa); width: 18px; height: 18px; }
.acoes-dialogo { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

#aviso { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--barra) + 18px + env(safe-area-inset-bottom)); z-index: 30; background: var(--cartao2);
  border: 1px solid var(--linha); color: var(--texto); padding: 12px 16px; border-radius: 12px; width: max-content; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }

.termos h3 { color: var(--rosa); margin: 8px 0 0; font-size: 17px; }
.termos p { margin: 0; color: var(--texto); }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .carregando::after { animation-duration: 3s; } }
@media (min-width: 700px) { .boas { min-height: auto; padding-top: 64px; } }
