/* =========================================================
   FONED — Questionário
   Usa as variáveis, fontes e botões de css/style.css
   ========================================================= */

:root {
  --st-otima: #12A37F;
  --st-boa:   #2B7BD6;
  --st-ruim:  #E8962E;
  --st-mruim: #E5484D;
}

[hidden] { display: none !important; }
html:has(.quiz-page) { background: var(--navy-900); }
.quiz-page {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(1000px 600px at 90% 0%, rgba(46,196,214,.18), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(255,122,89,.14), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.quiz-bg__waves { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
.quiz-bg__glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(46,196,214,.2), transparent 65%);
  top: var(--my, 20%); left: var(--mx, 80%); transform: translate(-50%, -50%);
  transition: top .8s var(--ease), left .8s var(--ease);
}

/* ---------- Cabeçalho ---------- */
.quiz-header { position: relative; z-index: 2; padding: 1.1rem 0; }
.quiz-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.btn__arrow--back { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow--back { transform: translateX(-4px); }

.btn--outline { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-800); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ---------- Cartão principal ---------- */
.quiz-main { position: relative; z-index: 1; flex: 1; display: grid; place-items: start center; padding: 1.5rem 1.25rem 3rem; }
.quiz-card {
  width: min(780px, 100%);
  background: #fff; border-radius: 28px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255,255,255,.06);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  position: relative; overflow: hidden;
}
.quiz-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
}

.screen { display: none; }
.screen.is-active { display: block; animation: screenIn .6s var(--ease); }
.screen--center.is-active { text-align: center; }
@keyframes screenIn { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Boas-vindas ---------- */
#welcomeScreen { text-align: center; }
.welcome__icon { width: 120px; margin: .5rem auto 1rem; animation: float 6s ease-in-out infinite; }
.welcome__title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--navy-800); }
.welcome__lead { color: var(--muted); max-width: 600px; margin: 0 auto 1.8rem; }
.welcome__lead strong { color: var(--ink); }

.info-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.6rem; }
.info-tile {
  padding: 1rem .5rem; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .15rem;
  transition: transform .35s var(--ease);
}
.info-tile:hover { transform: translateY(-3px); }
.info-tile__num { font: 800 1.6rem/1.1 var(--font-display); color: var(--navy-800); }
.info-tile__label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.info-tile--voice { background: #EAFAFC; border-color: #C7EFF4; }
.info-tile--voice .info-tile__num { color: #0E8C9B; }
.info-tile--body { background: #FFF1EC; border-color: #FFD9CD; }
.info-tile--body .info-tile__num { color: var(--coral-dk); }

.note {
  display: flex; gap: .8rem; text-align: left; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.4rem;
  background: #F0F5FC; border-left: 4px solid var(--navy-800);
}
.note svg { flex: none; width: 22px; height: 22px; color: var(--navy-800); margin-top: 2px; }
.note p { margin: 0; font-size: .97rem; color: var(--navy-700); }

.consent {
  display: flex; gap: .85rem; align-items: flex-start; text-align: left; cursor: pointer;
  padding: 1rem 1.2rem; border-radius: 14px; border: 2px solid var(--line);
  font-size: .95rem; color: var(--ink); margin-bottom: 1.6rem;
  transition: border-color .3s, background .3s;
}
.consent:hover { border-color: var(--navy-500); }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box {
  flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--navy-500);
  display: grid; place-items: center; margin-top: 1px; transition: all .25s var(--ease);
}
.consent__box::after {
  content: ""; width: 12px; height: 7px; border: 3px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .25s var(--ease);
}
.consent input:checked + .consent__box { background: var(--navy-800); border-color: var(--navy-800); }
.consent input:checked + .consent__box::after { transform: rotate(-45deg) scale(1); }
.consent input:focus-visible + .consent__box { outline: 3px solid var(--cyan); outline-offset: 2px; }
.consent:has(input:checked) { border-color: var(--navy-800); background: #F7FAFE; }

.welcome__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Perguntas ---------- */
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.cat-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem .35rem .35rem; border-radius: 999px;
  font: 600 .82rem var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  transition: background .4s, color .4s;
}
.cat-chip__icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .4s; }
.cat-chip__icon svg { width: 16px; height: 16px; }
.cat-chip--voice { background: #EAFAFC; color: #0E8C9B; }
.cat-chip--voice .cat-chip__icon { background: var(--cyan); }
.cat-chip--body { background: #FFF1EC; color: var(--coral-dk); }
.cat-chip--body .cat-chip__icon { background: var(--coral); }
.quiz-counter { font-weight: 700; color: var(--muted); font-size: .95rem; white-space: nowrap; }

.progress { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.progress__half { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: inherit; transition: width .5s var(--ease); }
.progress__fill--voice { background: var(--cyan); }
.progress__fill--body { background: var(--coral); }
.progress__labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .4rem; font-weight: 600; }

.question { position: relative; padding-top: 1.8rem; min-height: 360px; }
.question.is-leaving { animation: qOut .25s var(--ease) forwards; }
.question.is-entering { animation: qIn .45s var(--ease); }
.question.is-entering.from-left { animation-name: qInLeft; }
@keyframes qOut { to { opacity: 0; transform: translateX(-24px); } }
@keyframes qIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes qInLeft { from { opacity: 0; transform: translateX(-28px); } }

.question__num {
  position: absolute; top: .4rem; right: 0;
  font: 800 4.5rem/1 var(--font-display); color: var(--bg-soft); letter-spacing: -.04em;
  user-select: none; z-index: 0;
}
.question__text { position: relative; z-index: 1; font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 600; color: var(--navy-800); line-height: 1.4; margin-bottom: 1.5rem; padding-right: 3.5rem; min-height: 3em; }

.answers { display: grid; gap: .75rem; position: relative; z-index: 1; }
.answer {
  display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left;
  padding: .95rem 1.1rem; border-radius: 16px; border: 2px solid var(--line); background: #fff;
  font: 600 1.05rem var(--font-body); color: var(--ink); cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s;
  animation: ansIn .45s var(--ease) both;
}
.answer:nth-child(2) { animation-delay: .05s; } .answer:nth-child(3) { animation-delay: .1s; } .answer:nth-child(4) { animation-delay: .15s; }
@keyframes ansIn { from { opacity: 0; transform: translateY(10px); } }
.answer:hover { border-color: var(--navy-500); transform: translateX(4px); }
.answer:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.answer__letter {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--navy-800); font: 700 1.05rem var(--font-display);
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.answer__text { flex: 1; }
.answer__check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; transition: all .25s var(--ease);
}
.answer__check svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3.5; opacity: 0; transform: scale(.4); transition: all .25s var(--ease); }
.answer[aria-checked="true"] { border-color: var(--navy-800); background: #F0F5FC; box-shadow: 0 8px 20px -12px rgba(11,42,85,.5); }
.answer[aria-checked="true"] .answer__letter { background: var(--navy-800); color: #fff; transform: scale(1.05); }
.answer[aria-checked="true"] .answer__check { background: var(--navy-800); border-color: var(--navy-800); }
.answer[aria-checked="true"] .answer__check svg { opacity: 1; transform: none; }

.hint { min-height: 1.5em; margin: .9rem 0 0; color: var(--coral-dk); font-weight: 700; font-size: .95rem; }
.hint.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.4rem; margin-top: .6rem; border-top: 1px solid var(--line); }
.kbd-tip { font-size: .82rem; color: var(--muted); }
kbd { font: 700 .75rem var(--font-display); padding: .1rem .4rem; border-radius: 5px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--navy-800); }

/* ---------- Tela intermediária ---------- */
#breakScreen { padding: 1.5rem 0 1rem; }
.break__badge {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.3rem; display: grid; place-items: center;
  background: var(--cyan); color: #fff; box-shadow: 0 0 0 10px #EAFAFC;
  animation: pop .6s var(--ease);
}
.break__badge svg { width: 40px; height: 40px; stroke-width: 3; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.break__title { font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--navy-800); max-width: 560px; margin-inline: auto; }
.txt-voice { color: #0E8C9B; }
.break__lead { color: var(--muted); max-width: 520px; margin: 0 auto 1.5rem; }
.break__eq { display: flex; gap: 5px; justify-content: center; align-items: flex-end; height: 34px; margin-bottom: 1.8rem; }
.break__eq span { width: 6px; border-radius: 3px; background: linear-gradient(var(--cyan), var(--coral)); animation: eq 1s ease-in-out infinite; }
.break__eq span:nth-child(2n) { animation-duration: .8s; animation-delay: -.3s; }
.break__eq span:nth-child(3n) { animation-duration: 1.2s; animation-delay: -.6s; }

/* ---------- Resultado ---------- */
.result-head { text-align: center; margin-bottom: 1.6rem; }
.result-head__title { font-size: clamp(1.7rem, 3.6vw, 2.3rem); color: var(--navy-800); }

.general {
  display: flex; gap: 1.2rem; align-items: center; text-align: left;
  padding: 1.4rem 1.5rem; border-radius: 20px; margin-bottom: 1.4rem;
  background: var(--bg-soft); border: 2px solid var(--line);
  --st: var(--navy-800);
}
.general__icon {
  flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--st); color: #fff; animation: pop .6s var(--ease) .2s both;
}
.general__icon svg { width: 34px; height: 34px; stroke-width: 2.5; }
.general__label { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.general__status { margin: 0 0 .3rem; font: 800 1.8rem/1.2 var(--font-display); color: var(--st); }
.general__feedback { margin: 0; color: var(--ink); font-size: .98rem; }
.general[data-status] { border-color: color-mix(in srgb, var(--st) 35%, transparent); background: color-mix(in srgb, var(--st) 7%, #fff); }

.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.score { padding: 1.3rem 1.3rem 1.1rem; border-radius: 20px; border: 1px solid var(--line); }
.score--voice { background: linear-gradient(180deg, #fff 40%, #F2FBFD); }
.score--body { background: linear-gradient(180deg, #fff 40%, #FFF6F2); }
.score__head { display: flex; align-items: center; gap: .6rem; }
.score__head h3 { margin: 0; font-size: 1.08rem; flex: 1; color: var(--navy-800); }
.score__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.score__icon svg { width: 19px; height: 19px; }
.score--voice .score__icon { background: var(--cyan); }
.score--body .score__icon { background: var(--coral); }
.score__value { margin: 1rem 0 .7rem; font: 800 2.6rem/1 var(--font-display); color: var(--navy-800); }
.score__value small { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: .3rem; }

.status-pill {
  --st: var(--muted);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .7rem .25rem .5rem; border-radius: 999px;
  font: 700 .82rem var(--font-display); color: var(--st);
  background: color-mix(in srgb, var(--st) 12%, #fff);
}
.status-pill svg { width: 14px; height: 14px; stroke-width: 3; }

.meter-scale__bar { position: relative; height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter-scale__bar::after {
  /* marcadores das faixas: 12, 23 e 34 de 45 */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(#fff, #fff) calc(12/45*100%) 0 / 2px 100% no-repeat,
    linear-gradient(#fff, #fff) calc(23/45*100%) 0 / 2px 100% no-repeat,
    linear-gradient(#fff, #fff) calc(34/45*100%) 0 / 2px 100% no-repeat;
}
.meter-scale__fill { height: 100%; width: 0; border-radius: 999px; transition: width 1.4s var(--ease) .3s; }
.score--voice .meter-scale__fill { background: var(--cyan); }
.score--body .meter-scale__fill { background: var(--coral); }
.meter-scale__ticks { display: grid; grid-template-columns: 12fr 11fr 11fr 11fr; margin-top: .4rem; font-size: .72rem; color: var(--muted); font-weight: 600; }
.meter-scale__ticks span { text-align: center; }
.meter-scale__ticks span:first-child { text-align: left; }
.meter-scale__ticks span:last-child { text-align: right; }

.attention { border: 1px solid var(--line); border-radius: 18px; margin-bottom: 1.2rem; overflow: hidden; }
.attention summary {
  list-style: none; cursor: pointer; padding: 1rem 1.3rem; display: flex; align-items: center; gap: .7rem;
  font: 600 1.05rem var(--font-display); color: var(--navy-800);
}
.attention summary::-webkit-details-marker { display: none; }
.attention summary::after { content: "+"; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); transition: transform .3s var(--ease); }
.attention[open] summary::after { transform: rotate(45deg); }
.attention__count { min-width: 28px; height: 28px; padding: 0 .5rem; border-radius: 999px; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: .85rem; }
.attention__intro { padding: 0 1.3rem; margin: 0 0 .6rem; color: var(--muted); font-size: .92rem; }
.attention__group { padding: 0 1.3rem 1rem; }
.attention__group h4 { margin: .4rem 0 .5rem; font: 700 .8rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.attention__group--voice h4 { color: #0E8C9B; }
.attention__group--body h4 { color: var(--coral-dk); }
.attention__group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.attention__group li { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 12px; background: var(--bg-soft); font-size: .93rem; }
.attention__group li b { flex: none; font-family: var(--font-display); color: var(--navy-500); }
.attention__ans { display: block; margin-top: .15rem; font-size: .82rem; font-weight: 700; color: var(--coral-dk); }
.attention__empty { padding: 0 1.3rem 1.1rem; margin: 0; color: var(--st-otima); font-weight: 700; }

.send-status { text-align: center; font-size: .9rem; font-weight: 700; margin: 0 0 1rem; }
.send-status.ok { color: var(--st-otima); }
.send-status.err { color: var(--coral-dk); }

.disclaimer--box { text-align: center; padding: 1rem 1.2rem; border-radius: 14px; background: var(--bg-soft); margin: 0 0 1.4rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Rodapé ---------- */
.quiz-footer { position: relative; z-index: 1; text-align: center; color: rgba(255,255,255,.55); font-size: .85rem; padding: 0 1rem 1.8rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 680px) {
  .info-tiles { grid-template-columns: 1fr 1fr; }
  .scores { grid-template-columns: 1fr; }
  .kbd-tip { display: none; }
  .question { min-height: 0; }
  .question__num { font-size: 3.2rem; }
  .general { flex-direction: column; text-align: center; }
  .quiz-header .btn--sm { padding: .5rem .9rem; font-size: .85rem; }
  .welcome__actions .btn, .result-actions .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Etapa de dados do participante
   ========================================================= */
.data__title { font-size: clamp(1.6rem, 3.6vw, 2.1rem); color: var(--navy-800); margin-bottom: 1.1rem; }
.privacy {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: 16px; margin-bottom: 1.6rem;
  background: #EAFAFC; border: 1px solid #C7EFF4;
}
.privacy__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan); color: #fff; }
.privacy__icon svg { width: 22px; height: 22px; }
.privacy p { margin: 0; font-size: .93rem; color: #0B4F58; line-height: 1.55; }

.pform { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .levels legend { font: 600 .95rem var(--font-display); color: var(--navy-800); }
.field input[type="text"], .field input[type="date"] {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  font: 600 1rem var(--font-body); color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: #A2AEC0; font-weight: 400; }
.field input:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(43,85,150,.12); }
.field input.is-invalid { border-color: var(--coral); }
.field__err { color: var(--coral-dk); font-weight: 700; font-size: .85rem; min-height: 0; }
.field__err:empty { display: none; }
.muted-sm { font: 400 .85rem var(--font-body); color: var(--muted); }

.levels { border: 0; padding: 0; margin: 0; }
.levels legend { padding: 0; margin-bottom: .6rem; }
.levels__grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.level { position: relative; cursor: pointer; }
.level input { position: absolute; opacity: 0; pointer-events: none; }
.level span {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem .6rem .75rem; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  font-weight: 700; font-size: .93rem; color: var(--ink); transition: all .25s var(--ease);
}
.level span::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--navy-500);
  transition: all .25s var(--ease);
}
.level:hover span { border-color: var(--navy-500); }
.level input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.level input:checked + span::before {
  border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A55' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat;
}
.level input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pform .consent { margin-bottom: 0; }
.consent a { color: var(--coral-dk); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.data__actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .6rem; }

/* =========================================================
   Emoji animado da condição geral
   ========================================================= */
.emoji { position: relative; flex: none; width: 96px; height: 96px; display: grid; place-items: center; animation: pop .7s var(--ease) .2s both; }
.emoji img { width: 96px; height: 96px; position: relative; z-index: 1; }
.emoji__fallback { display: none; font-size: 76px; line-height: 1; position: relative; z-index: 1; }
.emoji.is-fallback img { display: none; }
.emoji.is-fallback .emoji__fallback { display: block; }
.emoji::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: color-mix(in srgb, var(--st) 16%, transparent); animation: halo 2.4s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.12); opacity: .6; } }

.emoji--otima img, .emoji--otima .emoji__fallback { animation: hop 1.3s var(--ease) infinite; }
.emoji--boa img, .emoji--boa .emoji__fallback { animation: nod 2.2s ease-in-out infinite; }
.emoji--ruim img, .emoji--ruim .emoji__fallback { animation: sway 2.6s ease-in-out infinite; }
.emoji--muito-ruim img, .emoji--muito-ruim .emoji__fallback { animation: tremble .5s linear infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-14px) scale(1.05, .95); } 55% { transform: translateY(0) scale(1.08, .92); } 70% { transform: scale(.97, 1.03); } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes sway { 0%, 100% { transform: translateX(0) rotate(0); } 30% { transform: translateX(-5px) rotate(-6deg); } 70% { transform: translateX(5px) rotate(6deg); } }
@keyframes tremble { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, -1px); } 75% { transform: translate(-1px, -1px); } }

.emoji__spark { display: none; position: absolute; width: 14px; height: 14px; z-index: 2;
  background: #FFC83D; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.emoji--otima .emoji__spark { display: block; animation: twinkle 1.6s ease-in-out infinite; }
.emoji__spark--1 { top: 2px; right: 4px; }
.emoji__spark--2 { bottom: 10px; left: -2px; width: 10px; height: 10px; animation-delay: -.5s !important; }
.emoji__spark--3 { top: 22px; left: 2px; width: 8px; height: 8px; animation-delay: -1s !important; }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }

.send-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; }

@media (max-width: 680px) {
  .pform { grid-template-columns: 1fr; }
  .data__actions { flex-direction: column-reverse; }
  .data__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .emoji img, .emoji .emoji__fallback, .emoji::before, .emoji__spark { animation: none !important; }
}

/* =========================================================
   Player do trecho musical
   ========================================================= */
.music {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; margin: -0.4rem 0 1.4rem; border-radius: 18px;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: #fff;
  box-shadow: 0 14px 30px -16px rgba(11,42,85,.7);
  animation: screenIn .6s var(--ease);
}
.music__play {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--coral); color: #fff;
  box-shadow: 0 0 0 0 rgba(255,122,89,.6); transition: transform .2s;
}
.music__play:hover { transform: scale(1.06); }
.music__play svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.music__play .i-pause { display: none; }
.music.is-playing .music__play { animation: pulse 2s infinite; }
.music.is-playing .i-play { display: none; }
.music.is-playing .i-pause { display: block; }
.music__info { flex: 1; min-width: 0; }
.music__label { display: block; font: 700 .7rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.music__info b { display: block; font: 600 1rem var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music__info small { display: block; font-size: .82rem; color: rgba(255,255,255,.7); min-height: 0; }
.music__info small:empty { display: none; }
.music__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin-top: .5rem; overflow: hidden; }
.music__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--coral)); transition: width .25s linear; }
.music__eq { display: flex; gap: 3px; align-items: flex-end; height: 26px; flex: none; }
.music__eq span { width: 4px; height: 25%; border-radius: 2px; background: var(--cyan); }
.music.is-playing .music__eq span { animation: eq 1s ease-in-out infinite; }
.music.is-playing .music__eq span:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.music.is-playing .music__eq span:nth-child(3) { animation-delay: -.6s; animation-duration: 1.2s; }
.music.is-playing .music__eq span:nth-child(4) { animation-delay: -.2s; animation-duration: .9s; }
.music.is-playing .music__eq span:nth-child(5) { animation-delay: -.5s; }
