/* ==========================================================
   Cão Inteligente — funil (quiz + experiência do app)
   Mobile-first. Cores e fontes vêm de base.css (:root).
   ========================================================== */
html { scroll-padding-top: 76px; scroll-behavior: auto; } /* troca de tela sempre volta ao topo na hora */
body { font-size: 16.5px; overscroll-behavior-y: none; }
@media (min-width: 640px) {
  body {
    background:
      radial-gradient(circle at 12% 18%, rgba(255, 107, 53, .10) 0 140px, transparent 141px),
      radial-gradient(circle at 88% 70%, rgba(14, 156, 147, .10) 0 180px, transparent 181px),
      var(--bg-alt);
  }
}
.app {
  max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; background: var(--bg); position: relative;
}
@media (min-width: 640px) { .app { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); } }

/* ---------- Barra do topo ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 248, 239, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(241, 226, 204, .7);
}
.logo { display: flex; align-items: center; gap: 8px; font: 600 1.08rem/1 var(--font-head); color: var(--ink); white-space: nowrap; }
.logo svg { width: 30px; height: 30px; }
.logo b { color: var(--brand); font-weight: 700; }
.spacer { flex: 1; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.qprog { flex: 1; height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.qprog i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--sun)); transition: width .45s cubic-bezier(.3, 1.3, .5, 1); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 99px; font-weight: 800; font-size: .88rem; white-space: nowrap; }
.pill-xp { background: var(--sun-50); color: #8A5A00; border: 2px solid #FFE3A3; }
.pill-bone { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.pill b { font-variant-numeric: tabular-nums; }
.pill.bump { animation: bump .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bump { 40% { transform: scale(1.25); } }
.sound-btn { width: 40px; height: 40px; }
.narrating .sound-btn { border-color: var(--brand); color: var(--brand); }
.narrating .sound-btn .wv { animation: wave 1s ease-in-out infinite; }
.narrating .sound-btn .wv2 { animation-delay: .2s; }
@keyframes wave { 50% { opacity: .2; } }

/* ---------- Telas ---------- */
main { flex: 1; display: flex; flex-direction: column; }
.screen { display: none; flex: 1; flex-direction: column; }
.screen.active { display: flex; }
.screen-in { flex: 1; display: flex; flex-direction: column; padding: 18px 16px 32px; animation: screenIn .45s cubic-bezier(.2, .9, .3, 1); }
.screen-bleed .screen-in { padding: 0; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } }
h1 { font-size: clamp(1.9rem, 7.4vw, 2.5rem); }
h2 { font-size: clamp(1.55rem, 6vw, 2rem); }
.hl { color: var(--brand); }
.btn-big { width: 100%; padding: 18px 22px; font-size: 1.08rem; }
.btn-glow { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 5px 0 var(--brand-600), 0 0 0 0 rgba(255, 107, 53, .45); } 50% { box-shadow: 0 5px 0 var(--brand-600), 0 0 0 10px rgba(255, 107, 53, 0); } }
.btn-glow:active { animation: none; }
.hint { text-align: center; color: var(--ink-3); font-size: .9rem; font-weight: 700; margin: 12px 0 0; }
.card { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card-h { font-size: 1.15rem; margin-bottom: 12px; }
.eyebrow { margin-bottom: 12px; }

/* ---------- Início ---------- */
.start { display: flex; flex-direction: column; align-items: center; text-align: center; }
.start h1 { margin-bottom: 12px; }
.start .lead { color: var(--ink-2); font-size: 1.05rem; max-width: 30em; margin-bottom: 4px; }
.start-art { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1.25; margin: 4px auto 14px; }
.blob {
  position: absolute; inset: 10% 8% 6%; background: linear-gradient(135deg, #FFD9C4, #FFE9B8);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob { to { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; } }
.deco { position: absolute; pointer-events: none; animation: float 5s ease-in-out infinite; }
.deco svg { width: 100%; }
.deco-ball { width: 13%; right: 4%; top: 14%; }
.deco-bone { width: 20%; left: 6%; bottom: 8%; animation-delay: -2.5s; transform: rotate(-18deg); }
@keyframes float { 50% { translate: 0 -10px; } }
.start-dog { position: absolute; left: 6%; right: 4%; bottom: 8%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.start-dog .dog { width: 100%; filter: drop-shadow(0 10px 18px rgba(120, 50, 10, .18)); }
.speech-b {
  position: absolute; top: 2%; left: 50%; transform: translateX(-50%); z-index: 2; background: #fff; color: var(--ink);
  font: 600 1rem/1.2 var(--font-head); padding: 9px 14px; border-radius: 16px; box-shadow: var(--shadow); white-space: nowrap;
}
.speech-b::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 8px solid transparent; border-bottom: 0; border-top-color: #fff; }
.speech-b.pop { animation: pop .38s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: translateX(-50%) scale(.7); opacity: 0; } }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 0; margin: 16px 0 0; color: var(--ink-2); font-weight: 800; font-size: .9rem; }
.resume { margin: 14px 0 0; }

/* ---------- Quiz ---------- */
.q-head { margin-bottom: 14px; }
.q-count { display: block; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 8px; }
.q-title { font-size: clamp(1.45rem, 5.8vw, 1.85rem); margin: 0; }
.q-sub { color: var(--ink-2); margin: -4px 0 14px; font-weight: 700; }
.mini-stage {
  position: relative; height: 150px; border-radius: 20px; overflow: hidden; margin-bottom: 14px;
  background: linear-gradient(180deg, #FFF3DF 0%, #FFEBCB 64%, #E9C089 64%, #DDB078 100%);
}
.mini-stage-sm { height: 170px; }
.ms-dog { position: absolute; left: 50%; bottom: 4%; width: 46%; max-width: 210px; transform: translateX(-50%); }
.mini-stage-sm .ms-dog { width: 44%; }
.ms-dog .dog { width: 100%; }
.ms-prop { position: absolute; }
.ms-puddle { width: 20%; left: 64%; bottom: 7%; }
.ms-slipper { width: 13%; left: 64%; bottom: 7%; animation: chew .22s ease-in-out infinite alternate; }
.mini-stage .speech-b { top: 10px; font-size: .95rem; }

.profile { display: flex; flex-direction: column; gap: 12px; }
.profile input {
  width: 100%; font: 700 1.15rem var(--font); padding: 16px 18px; border-radius: 16px; border: 2px solid var(--line);
  background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.profile input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.seg-wide { display: flex; width: 100%; background: #fff; border: 2px solid var(--line); }
.seg-wide button { flex: 1; padding: 12px; font-size: 1rem; }
.seg-wide button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices-3 { grid-template-columns: 1fr; }
.choice {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border-radius: 20px;
  border: 2px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink);
  box-shadow: 0 4px 0 var(--line); transition: transform .1s, box-shadow .1s, border-color .15s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.choices-3 .choice { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 16px 18px; text-align: left; }
.choices-3 .choice small { margin-left: auto; }
.choice:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.ch-emo { font-size: 2.1rem; line-height: 1; }
.choices-3 .ch-emo { font-size: 1.7rem; }
.choice b { font: 600 1.12rem/1.2 var(--font-head); }
.choice small { color: var(--ink-3); font-weight: 700; font-size: .85rem; }
.choice.sel { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 4px 0 var(--brand); animation: bump .45s; }
.choice.dim { opacity: .45; }
.q-fb { margin-top: 14px; min-height: 52px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.q-fb.show { opacity: 1; transform: none; }
.q-fb span { display: block; background: var(--good-50); color: #0F6B33; border-radius: 16px; padding: 12px 16px; font-weight: 800; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 99px; border: 2px solid var(--line);
  background: #fff; font: 800 .95rem var(--font); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.chip span { font-size: 1.15rem; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.q-actions { margin-top: auto; padding-top: 20px; position: sticky; bottom: 0; padding-bottom: max(6px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 26%); }

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 18px;
  border: 2px solid var(--line); background: #fff; font: 700 1rem/1.35 var(--font); color: var(--ink); cursor: pointer;
  box-shadow: 0 4px 0 var(--line); transition: transform .1s, box-shadow .1s, background .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.opt:disabled { cursor: default; }
.opt-l { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--bg-alt); font: 700 1rem var(--font-head); color: var(--ink-2); }
.opt.right { border-color: var(--good); background: var(--good-50); box-shadow: 0 4px 0 #9ED9B4; }
.opt.right .opt-l { background: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-50); box-shadow: 0 4px 0 #F4B4B6; }
.opt.wrong .opt-l { background: var(--bad); color: #fff; }
.opt.dim { opacity: .5; }
.shake { animation: shake .42s ease-in-out; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.fbk { margin-top: 16px; border-radius: 20px; padding: 16px; animation: fbIn .35s cubic-bezier(.2, 1.3, .4, 1); scroll-margin-bottom: 20px; }
.fbk.ok { background: var(--good-50); border: 2px solid #9ED9B4; }
.fbk.no { background: var(--sun-50); border: 2px solid #FFE3A3; }
@keyframes fbIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.fbk-top { display: flex; align-items: center; gap: 10px; font: 600 1.15rem var(--font-head); margin-bottom: 6px; }
.fbk-ico { font-size: 1.4rem; }
.fbk p { color: var(--ink-2); margin-bottom: 14px; }
.fbk-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.fbk-row .btn { padding: 15px 12px; }

.tap-card { padding: 12px; }
.stage-sm { height: 230px; }
.stage-sm .stage-dog { width: 62%; }

/* ---------- Analisando ---------- */
.loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 20px 0; }
.ring-load { position: relative; width: 210px; aspect-ratio: 1; }
.ring-load svg { width: 100%; transform: rotate(-90deg); }
.rl-bg { fill: none; stroke: var(--line); stroke-width: 9; }
.rl-fg { fill: none; stroke: var(--brand); stroke-width: 9; stroke-linecap: round; }
.rl-dog { position: absolute; inset: 22% 14% 26%; }
.rl-dog .dog { width: 100%; }
.rl-pct { font: 700 2rem var(--font-head); margin: 0; }
.rl-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; text-align: left; }
.rl-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-3); transition: color .3s; }
.rl-ck { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: transparent; transition: background .3s, color .3s; flex: none; }
.rl-list li.on { color: var(--ink); }
.rl-list li.on .rl-ck { background: var(--good); color: #fff; animation: bump .4s; }

/* ---------- Diagnóstico ---------- */
.res-hero { text-align: center; margin-bottom: 10px; }
.res-dog { width: 170px; margin: 0 auto 6px; }
.res-dog .dog { width: 100%; }
.res-title { font-size: clamp(1.6rem, 6.4vw, 2.1rem); }
.score-card { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #FFF, var(--brand-50)); }
.score-card h3 { margin: 2px 0 4px; }
.score-card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.sc-num { flex: none; width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 24px; background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-600); }
.sc-num b { font: 700 2.6rem/1 var(--font-head); }
.sc-num span { font: 700 1.1rem var(--font-head); opacity: .85; }
.meter + .meter { margin-top: 14px; }
.meter-top { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 6px; }
.meter-bar { height: 12px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.1s cubic-bezier(.3, 1, .4, 1); }
.meter-bar i.go { width: var(--v); }
.meter-bar i.low { background: var(--bad); }
.meter-bar i.mid { background: var(--sun); }
.meter-bar i.high { background: var(--good); }
.meter small { display: block; color: var(--ink-3); font-weight: 700; margin-top: 4px; font-size: .86rem; }
.res-probs, .plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.res-probs li, .plan li { display: flex; gap: 12px; align-items: center; }
.rp-ico, .plan li > span { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bg-alt); font-size: 1.3rem; }
.res-probs small, .plan small { display: block; color: var(--ink-3); font-weight: 700; font-size: .86rem; }
.res-cta { position: sticky; bottom: 0; padding: 14px 0 max(8px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 22%); }

/* ---------- Abertura (splash do app) ---------- */
.splash {
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff;
  padding: 18px 20px max(28px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 70% at 50% 18%, #FF8A5B 0%, var(--brand) 45%, #E2551F 100%);
}
.splash h1 { color: #fff; margin-bottom: 10px; }
.splash p { color: rgba(255, 255, 255, .92); font-size: 1.05rem; max-width: 26em; }
.eyebrow-light { background: rgba(255, 255, 255, .2); color: #fff; }
.splash-art { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1.15; margin: 4px auto 10px; }
.rays {
  position: absolute; inset: 0; border-radius: 50%; opacity: .35;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .55) 0 10deg, transparent 10deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.splash-dog { position: absolute; left: 8%; right: 6%; bottom: 6%; }
.splash-dog .dog { width: 100%; filter: drop-shadow(0 14px 18px rgba(90, 30, 0, .3)); }
.splash-dog .shadow { fill: rgba(90, 30, 0, .18); }
.fl { position: absolute; animation: float 4s ease-in-out infinite; }
.fl svg { width: 100%; }
.fl-bone { width: 18%; left: 4%; top: 18%; transform: rotate(-20deg); }
.fl-ball { width: 12%; right: 6%; top: 10%; animation-delay: -2s; }
.splash-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; padding: 0; margin: 4px 0 20px; }
.splash-stats li { background: rgba(255, 255, 255, .16); border-radius: 16px; padding: 10px 4px; font-weight: 700; font-size: .85rem; }
.splash-stats b { display: block; font: 700 1.4rem/1.15 var(--font-head); }
.splash .btn-light { margin-top: auto; }

/* ---------- Apresentação ---------- */
.tour-head { margin-bottom: 8px; }
.tour { display: grid; gap: 12px; }
.tcard {
  display: flex; gap: 14px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 16px;
  box-shadow: var(--shadow); opacity: 0; animation: cardIn .5s cubic-bezier(.2, 1.3, .4, 1) forwards; animation-delay: var(--d);
}
@keyframes cardIn { from { opacity: 0; transform: translateX(-18px) scale(.97); } to { opacity: 1; transform: none; } }
.t-ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--c); font-size: 1.7rem; }
.tcard b { font: 600 1.1rem var(--font-head); }
.tcard p { margin: 2px 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.tour-cta { margin-top: auto; padding-top: 20px; }

/* ---------- Capítulo ---------- */
.ch-head { display: flex; gap: 12px; align-items: center; background: var(--brand-50); border-radius: 22px; padding: 12px 16px 12px 8px; margin-bottom: 12px; }
.ch-thumb { flex: none; width: 92px; }
.ch-thumb .dog { width: 100%; }
.ch-head h2 { margin: 2px 0; font-size: 1.6rem; }
.ch-head p { margin: 0; color: var(--ink-2); font-size: .95rem; font-weight: 700; }
.mtrack { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin: 0 0 16px; counter-reset: m; }
.mtrack li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: .76rem; color: var(--ink-3); text-align: center; line-height: 1.2; position: relative; }
.mtrack li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--line); color: var(--ink-3); font: 700 .95rem var(--font-head); }
.mtrack li.on { color: var(--ink); }
.mtrack li.on > span { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-50); animation: bump .5s; }
.mtrack li.done > span { background: var(--teal); color: #fff; }
.m-head { margin-bottom: 12px; }
.m-tag { display: inline-block; font-weight: 800; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--violet); background: var(--violet-50); padding: 4px 10px; border-radius: 99px; margin-bottom: 6px; }
.m-head h3 { font-size: 1.35rem; margin-bottom: 2px; }
.m-head p { color: var(--ink-2); margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.stp {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border-radius: 18px;
  border: 2px solid var(--line); background: #fff; font: 600 1rem/1.45 var(--font); color: var(--ink); cursor: pointer;
  box-shadow: 0 4px 0 var(--line); transition: transform .1s, box-shadow .1s, border-color .2s, background .2s; -webkit-tap-highlight-color: transparent;
}
.stp:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.stp-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); font: 700 1rem var(--font-head); }
.stp.done { border-color: var(--teal); background: var(--teal-50); box-shadow: 0 4px 0 #A6E3DC; }
.stp.done .stp-n { background: var(--teal); color: #fff; animation: bump .4s; }
.tipbox { margin-top: 14px; background: var(--sun-50); border-radius: 18px; padding: 14px 16px; }
.tipbox p { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.m-done {
  margin-top: 16px; background: linear-gradient(135deg, var(--teal), #13B5A9); color: #fff; border-radius: 22px; padding: 16px;
  animation: fbIn .45s cubic-bezier(.2, 1.4, .4, 1); box-shadow: var(--shadow-lg);
}
.m-done.quiet { animation: none; }
.m-done-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.m-medal { font-size: 2.2rem; animation: medal 1s ease-in-out; }
@keyframes medal { 30% { transform: scale(1.4) rotate(-12deg); } 60% { transform: scale(1) rotate(8deg); } }
.m-done b { display: block; font: 600 1.3rem var(--font-head); }
.m-done small { font-weight: 800; opacity: .9; }
.m-done .btn-done { background: #fff; color: var(--teal-600); box-shadow: 0 5px 0 rgba(0, 0, 0, .15); }
.lp { margin-bottom: 4px; }
.lp-skipped { aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 20px; background: var(--bg-alt); font-weight: 800; color: var(--ink-3); }
.skip-row { text-align: center; margin: 6px 0 0; min-height: 30px; }
.hud-3 { grid-template-columns: repeat(3, 1fr); }
.ov-btns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
.ov-btns .btn { padding: 13px 10px; font-size: .92rem; }
.mission .stage { height: 330px; }
.mission .stage-overlay { padding: 14px; }
.mission .ov-score { font-size: 2.5rem !important; margin: 2px 0 4px !important; }
.mission .stage-overlay p { margin-bottom: 8px; }
.stage-overlay .btn-ghost { box-shadow: 0 4px 0 var(--line); }
@media (hover: none) { .kbd-hint { display: none; } }
.game-card { padding: 14px; }

.xp-float {
  position: absolute; z-index: 60; transform: translate(-50%, -50%); pointer-events: none; font: 700 1.1rem var(--font-head);
  color: #8A5A00; background: var(--sun); padding: 4px 10px; border-radius: 99px; box-shadow: var(--shadow);
  animation: xpUp 1s ease-out forwards;
}
@keyframes xpUp { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -80%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -220%) scale(1); } }

/* ---------- Vitória ---------- */
.win { display: flex; flex-direction: column; align-items: center; text-align: center; }
.win-art { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1.1; margin-bottom: 4px; }
.win-rays {
  position: absolute; inset: -6%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 194, 61, .55) 0 12deg, transparent 12deg 26deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%); mask: radial-gradient(circle, #000 18%, transparent 66%);
  animation: spin 16s linear infinite;
}
.win-dog { position: absolute; left: 8%; right: 6%; bottom: 4%; }
.win-dog .dog { width: 100%; }
.medal { position: absolute; width: 20%; right: 4%; top: 9%; animation: medalIn .9s cubic-bezier(.2, 1.6, .4, 1) .3s both; filter: drop-shadow(0 6px 8px rgba(120, 70, 0, .25)); }
@keyframes medalIn { from { opacity: 0; transform: translateY(-40px) rotate(-30deg) scale(.4); } }
.win h1 { font-size: clamp(1.6rem, 6.4vw, 2.1rem); }
.win-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin: 6px 0 14px; }
.win-stats div { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px 4px; }
.win-stats b { display: block; font: 700 1.45rem/1.1 var(--font-head); color: var(--brand); }
.win-stats small { font-weight: 800; color: var(--ink-3); font-size: .78rem; }
.ach {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; background: var(--ink); color: #fff;
  border-radius: 18px; padding: 12px 16px; margin-bottom: 18px; animation: fbIn .5s cubic-bezier(.2, 1.4, .4, 1) .9s both;
}
.ach > span { font-size: 1.9rem; }
.ach small { display: block; font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.ach b { font: 600 1.15rem var(--font-head); }

/* ---------- Trilha (capítulos bloqueados) ---------- */
.map-head { margin-bottom: 10px; }
.course-progress { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink-2); font-size: .9rem; }
.cp-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.mod { margin-top: 18px; }
.mod-h { display: flex; flex-direction: column; margin-bottom: 8px; }
.mod-tag { font-weight: 800; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--mc); }
.mod-h b { font: 600 1.2rem var(--font-head); }
.les-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.les {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 12px 8px 6px; border-radius: 18px;
  border: 2px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer;
  animation: lesIn .4s ease-out both; animation-delay: calc(var(--i, 0) * 45ms + .15s); -webkit-tap-highlight-color: transparent;
}
@keyframes lesIn { from { opacity: 0; transform: translateY(10px); } }
.les-dog { flex: none; width: 64px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--ms); overflow: hidden; }
.les-dog .dog { width: 110%; }
.les-dog .tail, .les-dog .eye { animation: none; }
.les-t { flex: 1; min-width: 0; }
.les-t b { display: block; font: 600 1.05rem/1.2 var(--font-head); }
.les-t small { display: block; color: var(--ink-3); font-weight: 700; font-size: .84rem; line-height: 1.3; }
.les-s { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.les.locked .les-s { background: var(--bg-alt); color: var(--ink-3); }
.les.locked .les-dog { filter: grayscale(.55) opacity(.75); }
.les.done { border-color: var(--teal); background: var(--teal-50); }
.les.done .les-s { background: var(--teal); color: #fff; }
.tools-h { margin-top: 26px; }
.tools-h h3 { font-size: 1.3rem; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px; border-radius: 18px;
  border: 2px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tool-ico { font-size: 1.7rem; }
.tool b { font: 600 1.02rem/1.2 var(--font-head); padding-right: 22px; }
.tool small { color: var(--ink-3); font-weight: 700; font-size: .82rem; line-height: 1.3; }
.tool-lock { position: absolute; top: 12px; right: 12px; color: var(--ink-3); }

.sticky-cta {
  position: sticky; bottom: 0; z-index: 20; margin: 18px -16px -32px; padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(rgba(255, 248, 239, 0), var(--bg) 26%); text-align: center;
}
.sticky-cta small { display: block; margin-top: 8px; font-weight: 800; color: var(--ink-3); font-size: .84rem; }
.has-sticky .toast { bottom: 110px; }

/* ---------- Paywall ---------- */
.pay-head { text-align: center; }
.pay-dog { width: 150px; margin: 0 auto; }
.pay-dog .dog { width: 100%; }
.pay-head p { color: var(--ink-2); font-weight: 700; }
.price-card {
  position: relative; background: #fff; border: 3px solid var(--brand); border-radius: 26px; padding: 26px 18px 18px;
  box-shadow: 0 10px 30px rgba(255, 107, 53, .18); margin: 14px 0 18px;
}
.pc-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; white-space: nowrap;
  font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px;
}
.pc-price { text-align: center; margin-bottom: 14px; }
.pc-price small { display: block; font-weight: 800; color: var(--ink-3); }
.pc-price b { display: block; font: 700 3.6rem/1 var(--font-head); color: var(--ink); letter-spacing: -.02em; margin: 4px 0; }
.pc-price span { font-weight: 800; color: var(--good); font-size: .95rem; }
.pc-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.pc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; line-height: 1.4; }
.pc-list li svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--good); color: #fff; }
.pc-safe { text-align: center; margin: 12px 0 0; font-weight: 700; color: var(--ink-3); font-size: .86rem; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.perks div { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px; }
.perks span { font-size: 1.5rem; }
.perks b { display: block; font: 600 1rem/1.2 var(--font-head); margin: 4px 0; }
.perks small { display: block; color: var(--ink-2); font-size: .84rem; line-height: 1.35; font-weight: 600; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 800; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 700 1.4rem var(--font-head); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 16px 14px; margin: 0; color: var(--ink-2); }
.pay-login { text-align: center; font-weight: 800; margin: 18px 0 8px; }
.pay-login a { color: var(--brand-600); }
.pay-foot { text-align: center; color: var(--ink-3); font-size: .8rem; margin: 10px 0 0; }
.sticky-pay { opacity: 0; transform: translateY(100%); pointer-events: none; transition: opacity .25s, transform .25s; position: fixed; left: 0; right: 0; margin: 0 auto; max-width: 560px; bottom: 0; }
.sticky-pay.show { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 360px) {
  .bar { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .logo span { display: none; }
  .perks, .tools { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-in, .tcard, .les, .fbk, .m-done, .ach, .medal, .rays, .win-rays, .btn-glow, .fl { animation: none !important; opacity: 1 !important; }
}
