:root {
  color-scheme: light;
  --papel: #FFFDF8; --tinta: #303331; --apoio: #565D56; --linha: #E6E3DA; --campo: #F3F0E8;
  --coral: #CB3E2D; --coral-t: #A93424; --coral-c: #FDEEE8; --coral-b: #E2A193;
  --ocre-t: #805B1D; --ocre-c: #FCF3DC; --ocre-b: #E0BD6E;
  --salvia-t: #4D674F; --salvia-c: #EAF0E7; --salvia-b: #A7B9A5;
  --titulo: Georgia, 'Times New Roman', serif;
  --texto: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mao: 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--texto); font-size: 19px; line-height: 1.42; }
[hidden] { display: none !important; }
button, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.pagina { min-height: 100vh; min-height: 100dvh; background: linear-gradient(180deg, var(--coral-c), var(--papel) 46%); }
main { max-width: 560px; margin: 0 auto; padding: 20px max(22px, env(safe-area-inset-right)) 40px max(22px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 16px; }
main:focus, h1:focus, h2:focus { outline: none; }
.logo { width: 92px; height: auto; align-self: center; display: block; }
h1, h2 { font-family: var(--titulo); font-weight: 600; margin: 0; line-height: 1.2; text-align: center; text-wrap: balance; font-size: 28px; }
h1.grande { font-size: 34px; }
p { margin: 0; overflow-wrap: anywhere; }
.centro { text-align: center; }
.leve { font-size: 16px; color: var(--apoio); }
.dica { text-align: center; font-size: 16px; color: var(--apoio); margin-top: -8px; }

.quemPede { display: flex; gap: 16px; align-items: center; }
.pol { background: #fff; padding: 7px 7px 6px; box-shadow: 0 6px 16px rgba(80, 55, 25, .22); transform: rotate(-3deg); flex: none; margin: 0; }
.pol .j { width: 108px; height: 108px; overflow: hidden; background: var(--campo); }
.pol img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pol figcaption { font-family: var(--titulo); font-weight: 700; color: var(--coral); text-align: center; font-size: 20px; line-height: 1.15; margin-top: 3px; }
.pol.centrada { margin: 4px auto; transform: rotate(2deg); }
.oi { font-family: var(--mao); font-weight: 700; font-size: 28px; line-height: 1.05; color: var(--coral-t); overflow-wrap: anywhere; }
.quemPede p { font-size: 19px; line-height: 1.35; margin-top: 4px; }

.pergunta { background: #fff; border: 2px dashed var(--coral-b); border-radius: 22px; padding: 14px 18px 16px; }
.pergunta .rotulo { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-t); }
.pergunta p { font-family: var(--titulo); font-weight: 600; font-size: 24px; line-height: 1.28; margin-top: 4px; }
.pergunta.peq p { font-size: 19px; }

.bt { font-weight: 700; font-size: 18.5px; min-height: 58px; border-radius: 16px; border: 2px solid var(--coral); background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 14px; cursor: pointer; width: 100%; text-align: center; line-height: 1.2; -webkit-tap-highlight-color: transparent; }
a.bt { text-decoration: none; }
.sem-js { padding: 24px; font-size: 19px; text-align: center; }
.mao { font-family: var(--mao); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--coral-t); }
.bt.g { min-height: 64px; font-size: 21px; border-radius: 18px; }
.bt.contorno { background: #fff; color: var(--coral-t); }
.bt.quieto { background: transparent; border-color: transparent; color: var(--tinta); }
.bt:disabled { opacity: .45; cursor: default; }
.bt:focus-visible, .play:focus-visible, .lixo:focus-visible, textarea:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duas .bt { font-size: 17.5px; padding: 10px 6px; }
.ic { flex: none; display: block; }

.aviso { background: var(--campo); border-left: 4px solid var(--salvia-t); border-radius: 4px 14px 14px 4px; padding: 12px 14px; font-size: 17px; line-height: 1.38; display: flex; gap: 10px; align-items: flex-start; }
.aviso.erro { border-left-color: var(--coral); background: var(--coral-c); }
.aviso b { display: inline; }
.icone { width: 104px; height: 104px; border-radius: 50%; display: flex; align-items: center; justify-content: center; align-self: center; flex: none; margin-top: 10px; }
.icone.sal { background: var(--salvia-c); border: 2px solid var(--salvia-b); }
.icone.oc { background: var(--ocre-c); border: 2px solid var(--ocre-b); }
.icone.co { background: var(--coral-c); border: 2px solid var(--coral-b); }
.simulado { border-radius: 18px; background: rgba(245, 243, 238, .97); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); overflow: hidden; text-align: center; font-size: 16px; line-height: 1.3; max-width: 300px; width: 100%; margin: 0 auto; }
.simulado p { padding: 16px 16px 14px; font-weight: 700; }
.simulado .bts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #D5D0C6; }
.simulado .bts span { padding: 12px 4px; color: #2A6F97; }
.simulado .bts span + span { border-left: 1px solid #D5D0C6; font-weight: 700; }
.simulado .bts span.alvo { outline: 3px solid var(--coral); outline-offset: -5px; border-radius: 10px; }

.gravando { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--coral-t); }
.gravando i { width: 14px; height: 14px; border-radius: 50%; background: var(--coral); animation: pulsa 1s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .25; } }
.anel { position: relative; width: 232px; height: 232px; align-self: center; max-width: 100%; }
.anel svg { position: absolute; inset: 0; transform: rotate(-90deg); width: 100%; height: 100%; }
.anel .meio { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anel .meio b { font-family: var(--titulo); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.anel .meio span { font-size: 17px; color: var(--apoio); }
.onda { display: flex; align-items: center; justify-content: center; gap: 5px; height: 46px; }
.onda i { width: 6px; height: 42px; border-radius: 3px; background: var(--coral); animation: onda .8s ease-in-out infinite alternate; transform: scaleY(.25); }
.onda i:nth-child(2n) { animation-delay: -.35s; } .onda i:nth-child(3n) { animation-delay: -.6s; } .onda i:nth-child(5n) { animation-delay: -.15s; }
@keyframes onda { to { transform: scaleY(1); } }
.barra { height: 14px; border-radius: 8px; background: #EFE6D6; overflow: hidden; }
.barra i { display: block; height: 100%; width: 40%; background: var(--coral); border-radius: 8px; animation: vai 1.4s ease-in-out infinite alternate; }
@keyframes vai { from { margin-left: 0; } to { margin-left: 60%; } }

.player { display: flex; align-items: center; gap: 12px; background: var(--salvia-c); border: 1.5px solid var(--salvia-b); border-radius: 18px; padding: 10px 12px; }
.play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--salvia-t); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.player .trilha { flex: 1; height: 10px; border-radius: 6px; background: #C9D6C7; overflow: hidden; min-width: 0; }
.player .trilha i { display: block; height: 100%; width: 0; background: var(--salvia-t); }
.player small { font-size: 16px; color: var(--salvia-t); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.area { font: inherit; font-size: 19px; line-height: 1.45; min-height: 230px; border-radius: 16px; border: 2px solid var(--linha); background: #fff; padding: 14px; width: 100%; resize: vertical; }
.area:focus { outline: none; border-color: var(--coral-b); }
.conta { text-align: right; font-size: 16px; color: var(--apoio); margin-top: -8px; font-variant-numeric: tabular-nums; }
.vagas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vaga { position: relative; aspect-ratio: 1; border-radius: 14px; border: 2px dashed var(--ocre-b); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vaga img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lixo { position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.coracao { animation: bate 1.6s ease-in-out infinite; }
@keyframes bate { 15% { transform: scale(1.12); } 30% { transform: scale(1); } }
.arquivo { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 380px) {
  body { font-size: 18px; }
  main { padding-left: 16px; padding-right: 16px; }
  .quemPede { flex-direction: column; text-align: center; }
  .pergunta p { font-size: 22px; }
  .anel { width: 200px; height: 200px; }
  .anel .meio b { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) { .onda i, .gravando i, .coracao, .barra i { animation-duration: .01s; animation-iteration-count: 1; } }
