/* ==========================================================
   Cão Inteligente — estilos
   Cores principais ficam em :root (mude aqui para trocar a identidade)
   ========================================================== */
:root {
  --bg: #FFF8EF;
  --bg-alt: #FFF0DE;
  --surface: #FFFFFF;
  --ink: #1E2640;
  --ink-2: #4D5671;
  --ink-3: #7A829A;
  --line: #F1E2CC;
  --brand: #FF6B35;
  --brand-600: #E2551F;
  --brand-50: #FFE7DB;
  --teal: #0E9C93;
  --teal-600: #0A7C75;
  --teal-50: #DDF5F2;
  --violet: #5B5BD6;
  --violet-50: #E8E8FB;
  --sun: #FFC23D;
  --sun-50: #FFF4D6;
  --good: #16A34A;
  --good-50: #E6F6EC;
  --bad: #E5484D;
  --bad-50: #FDECEC;
  --r-lg: 28px;
  --r: 18px;
  --shadow: 0 1px 2px rgba(30, 38, 64, .05), 0 8px 24px rgba(30, 38, 64, .07);
  --shadow-lg: 0 2px 4px rgba(30, 38, 64, .05), 0 22px 50px rgba(30, 38, 64, .13);
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
b, strong { font-weight: 800; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600);
  background: var(--brand-50); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 1rem/1.1 var(--font); padding: 15px 24px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .12s, box-shadow .12s, background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-600); }
.btn-primary:hover { background: #FF7A49; }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--brand-600); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.btn-ghost:hover { border-color: #E8D3B4; }
.btn-ghost:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.btn-done { background: var(--teal); color: #fff; box-shadow: 0 5px 0 var(--teal-600); }
.btn-done:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--teal-600); }
.btn-light { background: #fff; color: var(--brand-600); box-shadow: 0 5px 0 rgba(0, 0, 0, .15); }
.btn-light:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--ink-3); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 239, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(30, 38, 64, .06); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.28rem/1 var(--font-head); color: var(--ink); white-space: nowrap; }
.logo b { color: var(--brand); font-weight: 700; }
.logo svg { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .94rem; color: var(--ink-2); white-space: nowrap; }
.nav a:hover, .nav a.active { background: #fff; color: var(--ink); }
.progress-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: .84rem; text-decoration: none; white-space: nowrap;
}
.progress-pill svg { width: 16px; height: 16px; }
.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
}
@media (max-width: 1140px) {
  .nav {
    position: fixed; left: 0; right: 0; top: 68px; flex-direction: column; gap: 4px;
    background: var(--bg); padding: 12px 20px 22px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(30, 38, 64, .12); transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .22s, opacity .22s, visibility .22s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .progress-pill { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 420px) {
  .logo { font-size: 1.1rem; }
  .logo svg { width: 30px; height: 30px; }
  .progress-pill { padding: 7px 10px; }
  .progress-pill .pill-label { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -160px; width: 720px; height: 720px; z-index: -1;
  background: radial-gradient(circle, rgba(255, 194, 61, .35) 0%, rgba(255, 194, 61, 0) 62%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
h1 .hl { color: var(--brand); }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 34em; }
.profile {
  background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px;
  margin: 22px 0 26px; max-width: 540px; box-shadow: var(--shadow);
}
.profile label { font-weight: 800; display: block; margin-bottom: 8px; }
.profile-row { display: flex; gap: 10px; flex-wrap: wrap; }
.profile input {
  flex: 1 1 180px; min-width: 0; font: 700 1rem var(--font); padding: 12px 16px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink);
}
.profile input::placeholder { color: #B3AA9E; font-weight: 600; }
.profile input:focus { outline: none; border-color: var(--brand); background: #fff; }
.profile-hint { margin: 10px 0 0; font-size: .9rem; color: var(--ink-3); }
.seg { display: inline-flex; background: var(--bg-alt); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button {
  font: 800 .9rem var(--font); border: 0; background: transparent; padding: 9px 14px;
  border-radius: 9px; cursor: pointer; color: var(--ink-2); transition: background .15s, color .15s;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(30, 38, 64, .14); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 500px; width: 100%; justify-self: center; }
.blob {
  position: absolute; inset: 7%; background: linear-gradient(150deg, #FFD15C, #FF8A5B 70%);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob {
  50% { border-radius: 56% 44% 52% 48% / 44% 56% 44% 56%; }
  100% { border-radius: 40% 60% 56% 44% / 58% 42% 58% 42%; }
}
.hero-dog { position: absolute; left: 6%; right: 4%; bottom: 13%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-dog:focus-visible { outline-offset: -4px; }
.hero-dog .dog { width: 100%; filter: drop-shadow(0 10px 18px rgba(120, 50, 10, .18)); }
.speech {
  position: absolute; top: 9%; left: 0; background: #fff; padding: 12px 16px; border-radius: 18px 18px 18px 4px;
  font-weight: 800; box-shadow: var(--shadow-lg); max-width: 72%; font-size: .98rem; z-index: 2;
}
.speech.pop { animation: pop .38s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.deco { position: absolute; pointer-events: none; animation: float 5s ease-in-out infinite; }
.deco-ball { width: 13%; right: 3%; top: 22%; }
.deco-bone { width: 20%; right: 10%; bottom: 6%; animation-delay: -2.5s; transform: rotate(-18deg); }
@keyframes float { 50% { translate: 0 -10px; } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 2px solid var(--line);
  border-radius: var(--r-lg); margin-top: 44px; box-shadow: var(--shadow);
}
.stats div { padding: 20px 16px; text-align: center; border-left: 2px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 700 1.9rem/1.1 var(--font-head); color: var(--brand); }
.stats span { font-size: .9rem; color: var(--ink-2); font-weight: 700; }

@media (max-width: 880px) {
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { max-width: 320px; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 2px solid var(--line); }
}

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.12rem; color: var(--ink-2); }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 28px; } }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Como o cão aprende ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.principle { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 24px; }
.principle .p-ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px; background: var(--brand-50);
}
.principle:nth-child(2) .p-ico { background: var(--teal-50); }
.principle:nth-child(3) .p-ico { background: var(--violet-50); }
.principle:nth-child(4) .p-ico { background: var(--sun-50); }
.principle h3 { font-size: 1.2rem; }
.principle p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Jogo do timing ---------- */
.game-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.game-copy p { color: var(--ink-2); font-size: 1.08rem; }
.opt-group { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
.opt-group > span { font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.opt-group .seg { background: #fff; border: 2px solid var(--line); }
.opt-group .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.score-legend { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .9rem; }
.score-legend li { background: #fff; border-radius: 12px; padding: 8px 12px; border: 2px solid var(--line); font-weight: 700; color: var(--ink-2); }
.score-legend b { color: var(--ink); }
.best { margin-top: 16px; font-weight: 700; color: var(--ink-2); }

.game-card { background: #fff; border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg); border: 2px solid var(--line); }
.hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.hud div { background: var(--bg); border-radius: 12px; padding: 8px 6px; text-align: center; }
.hud small { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.hud b { font: 700 1.4rem/1.15 var(--font-head); font-variant-numeric: tabular-nums; }
.stage {
  position: relative; height: clamp(300px, 32vw, 350px); border-radius: 20px; overflow: hidden; user-select: none;
  background: linear-gradient(180deg, #FFF3DF 0%, #FFEBCB 66%, #E9C089 66%, #DDB078 100%);
}
.stage::before { /* janela */
  content: ""; position: absolute; left: 8%; top: 10%; width: 21%; aspect-ratio: 1; border-radius: 10px;
  border: 6px solid #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .05);
  background:
    linear-gradient(#fff, #fff) center / 5px 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 5px no-repeat,
    linear-gradient(#BFE6FF, #E8F6FF);
}
.stage::after { /* tapete */
  content: ""; position: absolute; left: 50%; bottom: 5%; width: 72%; height: 13%;
  transform: translateX(-50%); background: #FF9F7A; border-radius: 50%; opacity: .5;
}
.stage-dog { position: absolute; left: 50%; bottom: 6%; width: 60%; transform: translateX(-50%); z-index: 1; }
.feedback {
  position: absolute; top: 14px; left: 50%; z-index: 3; transform: translate(-50%, -10px); opacity: 0;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  max-width: 92%; text-align: center; transition: opacity .18s, transform .18s; pointer-events: none;
}
.feedback.show { opacity: 1; transform: translate(-50%, 0); }
.feedback.good { background: var(--good); }
.feedback.bad { background: var(--bad); }
.feedback.info { background: var(--violet); }
.stage-overlay {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center; padding: 20px;
  background: rgba(255, 248, 239, .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: opacity .25s;
}
.stage-overlay.hidden { opacity: 0; pointer-events: none; }
.stage-overlay > div { max-width: 420px; }
.stage-overlay h3 { font-size: 1.4rem; margin-bottom: 6px; }
.stage-overlay p { color: var(--ink-2); margin-bottom: 12px; font-size: .96rem; line-height: 1.45; }
.ov-score { font: 700 3rem/1 var(--font-head) !important; color: var(--brand) !important; margin: 4px 0 8px !important; }
.ov-score small { font-size: 1.1rem; color: var(--ink-3); }
.ov-stats { font-weight: 800; font-size: .92rem; }
.kicker { font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.isso-btn {
  width: 100%; margin-top: 14px; font: 700 1.7rem/1 var(--font-head); padding: 20px; border-radius: 18px; border: 0;
  background: var(--brand); color: #fff; box-shadow: 0 7px 0 var(--brand-600); cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .06s, box-shadow .06s, background .2s;
}
.isso-btn small { font: 700 .85rem var(--font); opacity: .85; margin-left: 6px; }
.isso-btn:active:not(:disabled), .isso-btn.press { transform: translateY(6px); box-shadow: 0 1px 0 var(--brand-600); }
.isso-btn:disabled { background: #DAD3CA; box-shadow: 0 7px 0 #C4BBB0; cursor: not-allowed; }
.sound-toggle { background: none; border: 0; font: 800 .82rem var(--font); color: var(--ink-3); cursor: pointer; padding: 6px 4px; white-space: nowrap; }
.game-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
@media (max-width: 920px) { .game-grid { grid-template-columns: 1fr; gap: 28px; } }
.game-grid > *, .quiz-grid > *, .clicker-grid > *, .hero-grid > * { min-width: 0; }
@media (max-width: 480px) {
  .stage-dog { width: 86%; }
  .hud b { font-size: 1.2rem; }
  .score-legend { grid-template-columns: 1fr; }
}

/* ---------- Lições ---------- */
.course-progress { display: flex; align-items: center; gap: 14px; max-width: 540px; margin-top: 20px; font-weight: 800; color: var(--ink-2); }
.bar { flex: 1; height: 14px; background: #fff; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--sun)); border-radius: 99px; transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.module { margin-bottom: 48px; }
.module:last-child { margin-bottom: 0; }
.module-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.module-tag {
  display: inline-block; font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mc); background: var(--ms); padding: 5px 10px; border-radius: 99px; margin-bottom: 8px;
}
.module-head h3 { font-size: 1.65rem; margin: 0; }
.module-head p { margin: 4px 0 0; color: var(--ink-2); }
.module-count { font: 700 1.05rem var(--font-head); color: var(--mc); background: #fff; border: 2px solid var(--ms); padding: 6px 14px; border-radius: 99px; white-space: nowrap; }
.lesson-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lesson-card {
  display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit;
  background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 20px; cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s; min-height: 216px;
}
.lesson-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--mc); }
.lesson-card > span { display: block; }
.lc-top { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lc-num { font: 700 2.3rem/1 var(--font-head); color: var(--mc); }
.lc-check {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center;
  color: transparent; transition: background .2s, border-color .2s;
}
.lc-check svg { width: 16px; height: 16px; }
.lc-title { font: 600 1.28rem/1.2 var(--font-head); margin-bottom: 6px; }
.lc-sub { color: var(--ink-2); font-size: .95rem; flex: 1; }
.lc-meta { display: flex !important; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.lc-meta span { font-size: .74rem; font-weight: 800; background: var(--ms); color: var(--ink); padding: 4px 9px; border-radius: 99px; }
.lesson-card.is-done { border-color: var(--mc); background: linear-gradient(180deg, var(--ms), #fff 65%); }
.lesson-card.is-done .lc-check { background: var(--mc); border-color: var(--mc); color: #fff; }
@media (max-width: 1000px) { .lesson-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .lesson-grid { grid-template-columns: 1fr; gap: 12px; }
  .lesson-card { min-height: 0; padding: 18px; }
  .module-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Janela da lição ---------- */
.lesson-dialog {
  border: 0; padding: 0; border-radius: 28px; width: min(780px, calc(100% - 24px)); max-width: none;
  max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px rgba(30, 38, 64, .35);
  background: #fff; color: var(--ink); overflow: hidden;
}
.lesson-dialog::backdrop { background: rgba(30, 38, 64, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lesson-dialog[open] { animation: dlgIn .3s cubic-bezier(.2, 1, .3, 1); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.ld-inner { max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; }
.ld-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: #fff; box-shadow: var(--shadow); cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--ink);
}
.ld-head { background: var(--ms); padding: 34px 70px 28px 34px; }
.ld-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 6px; }
.ld-head p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 14px; }
.ld-dog .dog { width: 100%; }
.ld-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-pills span { display: inline-flex; align-items: center; gap: 6px; background: #fff; padding: 6px 12px; border-radius: 99px; font-weight: 800; font-size: .84rem; }
.ld-body { padding: 30px 34px 10px; }
.ld-body section { margin-bottom: 26px; }
.ld-body h3 { font-size: 1.15rem; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ld-body h3 small { font: 700 .8rem var(--font); color: var(--ink-3); }
.ld-body p { color: var(--ink-2); }
.need, .errs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.need li, .errs li { position: relative; padding-left: 30px; color: var(--ink-2); }
.need li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--mc); }
.errs li::before {
  content: "✕"; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bad-50); color: var(--bad); font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps label {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; background: var(--bg);
  border: 2px solid transparent; border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: background .15s, border-color .15s;
}
.steps label:hover { border-color: var(--line); }
.st-n { font: 700 1rem/1 var(--font-head); background: var(--mc); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.st-t { color: var(--ink); padding-top: 2px; }
.steps input {
  appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 2px 0 0; border-radius: 8px;
  border: 2px solid #DCCDB6; background: #fff; display: grid; place-content: center; cursor: pointer; transition: .15s;
}
.steps input::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .15s; }
.steps input:checked { background: var(--mc); border-color: var(--mc); }
.steps input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.steps label:has(input:checked) { background: var(--ms); border-color: var(--mc); }
.tip, .warn { border-radius: 16px; padding: 16px 18px; margin-bottom: 26px; }
.tip { background: var(--sun-50); border-left: 5px solid var(--sun); }
.warn { background: var(--bad-50); border-left: 5px solid var(--bad); }
.tip p, .warn p { margin: 6px 0 0; color: var(--ink); }
.ld-foot {
  position: sticky; bottom: 0; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  padding: 14px 34px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between;
}
@media (max-width: 640px) {
  .lesson-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .ld-inner { max-height: 100dvh; height: 100%; }
  .ld-head { padding: 56px 20px 22px; }
  .ld-body { padding: 24px 20px 6px; }
  .ld-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .ld-foot .btn { flex: 1 1 100%; }
  .steps label { padding: 12px; gap: 10px; }
}

/* ---------- Diagnóstico ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font: 800 .96rem var(--font); padding: 11px 18px;
  border-radius: 99px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
  transition: border-color .15s, background .15s, color .15s, transform .12s;
}
.chip:hover { border-color: var(--brand); }
.chip:active { transform: scale(.97); }
.chip span { font-size: 1.15rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.prob-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; background: #fff; border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow); border: 2px solid var(--line); animation: fadeUp .35s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.prob-card h3 { font-size: 1.4rem; }
.prob-tips ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: t; }
.prob-tips li { counter-increment: t; display: grid; grid-template-columns: auto 1fr; gap: 12px; color: var(--ink-2); }
.prob-tips li::before {
  content: counter(t); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600);
  font: 700 .95rem/1 var(--font-head); display: grid; place-items: center;
}
.warn-inline { margin: 18px 0 0; background: var(--bad-50); color: var(--ink); padding: 12px 14px; border-radius: 12px; font-size: .95rem; }
.prob-lessons h4 { font: 800 .78rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.mini-lesson {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: 700 1rem var(--font);
  background: var(--bg); border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.mini-lesson:hover { border-color: var(--brand); transform: translateX(3px); }
.mini-lesson .lc-num { font-size: 1.25rem; color: var(--brand); }
.mini-lesson .arrow { margin-left: auto; color: var(--brand); font-weight: 800; }
.prob-empty {
  border: 2px dashed #E6D3B8; border-radius: var(--r-lg); padding: 36px; text-align: center; color: var(--ink-3); font-weight: 700;
}
@media (max-width: 760px) { .prob-card { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- Mito ou verdade ---------- */
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.quiz-copy p { color: var(--ink-2); font-size: 1.08rem; }
.quiz { background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg); border: 2px solid var(--line); }
.quiz-top { display: flex; justify-content: space-between; font-weight: 800; color: var(--ink-2); margin-bottom: 10px; }
.qbar { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.qbar i { display: block; height: 100%; width: 0; background: var(--violet); border-radius: 99px; transition: width .4s; }
.qcard {
  position: relative; min-height: 260px; border-radius: 20px; padding: 30px 26px; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: grab; transition: transform .28s cubic-bezier(.2, 1, .3, 1), background .25s;
}
.qcard.dragging { transition: none; cursor: grabbing; }
.qcard::before, .qcard::after {
  position: absolute; top: 16px; font: 700 .95rem var(--font-head); padding: 3px 10px; border-radius: 8px;
  border: 3px solid; opacity: 0; transition: opacity .12s; pointer-events: none;
}
.qcard::before { content: "MITO"; left: 16px; color: var(--bad); transform: rotate(-10deg); }
.qcard::after { content: "VERDADE"; right: 16px; color: var(--good); transform: rotate(10deg); }
.qcard[data-lean="mito"]::before, .qcard[data-lean="verdade"]::after { opacity: 1; }
.qcard.enter { animation: cardIn .35s cubic-bezier(.2, 1, .3, 1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.qtext { font: 600 1.5rem/1.3 var(--font-head); margin: 10px 0 6px; }
.qtext.small { font-size: 1.05rem; color: var(--ink-2); font-weight: 500; }
.q-hint { font-size: .85rem; color: var(--ink-3); margin: 6px 0 0; font-weight: 700; }
.qexp { margin: 0; color: var(--ink); }
.qcard.is-good { background: var(--good-50); cursor: default; }
.qcard.is-bad { background: var(--bad-50); cursor: default; }
.verdict { font: 700 1.35rem var(--font-head); }
.is-good .verdict { color: var(--good); }
.is-bad .verdict { color: var(--bad); }
.qcard.is-final { text-align: center; align-items: center; cursor: default; }
.q-big { font: 700 4.2rem/1 var(--font-head); color: var(--violet); margin: 8px 0 10px; }
.q-big small { font-size: 1.6rem; color: var(--ink-3); }
.qbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.btn-myth { background: #fff; color: var(--bad); border-color: #F5C6C7; box-shadow: 0 5px 0 #F5C6C7; }
.btn-true { background: #fff; color: var(--good); border-color: #BFE6CD; box-shadow: 0 5px 0 #BFE6CD; }
.btn-myth:hover { background: var(--bad-50); }
.btn-true:hover { background: var(--good-50); }
.btn-myth:active, .btn-true:active { transform: translateY(4px); box-shadow: none; }
.q-next { width: 100%; margin-top: 16px; }
@media (max-width: 920px) { .quiz-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .qtext { font-size: 1.3rem; } .qcard { min-height: 240px; padding: 26px 20px; } }

/* ---------- Desafio 14 dias ---------- */
.challenge-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 32px; flex-wrap: wrap; }
.challenge-head .section-head { margin-bottom: 0; }
.ring { width: 128px; height: 128px; position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #fff; stroke-width: 12; }
.ring-fg { fill: none; stroke: var(--teal); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.2, .9, .3, 1); }
.ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 700 2rem/1 var(--font-head); }
.ring-txt small { font: 800 .72rem var(--font); color: var(--ink-3); margin-top: 4px; letter-spacing: .04em; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; }
.day {
  background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px;
  display: flex; flex-direction: column; transition: background .2s, border-color .2s, box-shadow .2s;
}
.day-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.day-n { font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600); background: var(--teal-50); padding: 4px 10px; border-radius: 99px; }
.day-check {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: #fff;
  display: grid; place-items: center; color: #E3D5C0; cursor: pointer; transition: .15s;
}
.day-check svg { width: 18px; height: 18px; }
.day-check:hover { border-color: var(--teal); color: var(--teal); }
.day h4 { font-size: 1.12rem; margin: 0 0 4px; }
.day p { font-size: .92rem; color: var(--ink-2); flex: 1; margin-bottom: 10px; }
.day-link { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: 800 .85rem var(--font); color: var(--brand-600); }
.day-link:hover { text-decoration: underline; }
.day.is-next { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.day.is-next .day-n::after { content: " · hoje"; }
.day.is-done { background: var(--teal-50); border-color: var(--teal); }
.day.is-done .day-check { background: var(--teal); border-color: var(--teal); color: #fff; }
.day.is-done .day-check.popd { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }

/* ---------- Treino de bolso (clicker) ---------- */
.clicker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.clicker-copy p { color: var(--ink-2); font-size: 1.08rem; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 36px; color: var(--ink-2); }
.check-list li::before {
  content: "🐾"; position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-50); display: grid; place-items: center; font-size: .8rem;
}
.clicker-card { background: var(--ink); color: #fff; border-radius: 32px; padding: 24px; box-shadow: var(--shadow-lg); max-width: 460px; width: 100%; justify-self: center; }
.clk-row { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.clk-row select {
  flex: 1; min-width: 0; font: 700 1rem var(--font); color: #fff; background: rgba(255, 255, 255, .1);
  border: 2px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 10px 12px;
}
.clk-row select option { color: var(--ink); }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255, 255, 255, .07); border-radius: 18px; padding: 12px 14px 12px 18px; margin: 14px 0 6px; }
.timer-time { font: 700 2.3rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.timer-btns { display: flex; gap: 8px; }
.pill-btn {
  font: 800 .9rem var(--font); border: 0; border-radius: 99px; padding: 10px 16px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background .15s;
}
.pill-btn:hover { background: rgba(255, 255, 255, .2); }
.pill-btn.primary { background: var(--teal); }
.pill-btn.primary:hover { background: #12B0A6; }
.tbar { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 99px; overflow: hidden; }
.tbar i { display: block; height: 100%; width: 0; background: var(--sun); transition: width 1s linear; }
.clicker-btn {
  display: grid; place-content: center; gap: 6px; width: 212px; height: 212px; margin: 26px auto 26px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; font: 700 1.9rem/1 var(--font-head); letter-spacing: .04em;
  background: radial-gradient(circle at 35% 28%, #FFA77F, var(--brand) 55%, var(--brand-600));
  box-shadow: 0 10px 0 #B8431A, 0 22px 40px rgba(0, 0, 0, .35), inset 0 -8px 14px rgba(0, 0, 0, .14);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.clicker-btn small { font: 800 .95rem var(--font); opacity: .92; letter-spacing: 0; }
.clicker-btn.hit { animation: press .16s ease-out; }
@keyframes press {
  40% { transform: translateY(8px) scale(.98); box-shadow: 0 2px 0 #B8431A, 0 10px 20px rgba(0, 0, 0, .35), inset 0 -8px 14px rgba(0, 0, 0, .14); }
}
.clk-actions { display: flex; gap: 10px; }
.clk-actions .pill-btn { flex: 1; padding: 13px 16px; }
.history { margin-top: 18px; background: rgba(255, 255, 255, .06); border-radius: 18px; padding: 14px 16px; }
.history h4 { font: 800 .78rem var(--font); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; display: flex; justify-content: space-between; color: rgba(255, 255, 255, .65); }
.history h4 b { color: var(--sun); }
.history ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.history li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; color: rgba(255, 255, 255, .7); }
.history li b { color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history li.empty { display: block; color: rgba(255, 255, 255, .55); }
@media (max-width: 920px) { .clicker-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 400px) { .clicker-btn { width: 180px; height: 180px; } .timer-time { font-size: 1.9rem; } .pill-btn { padding: 9px 12px; } }

/* ---------- Conquistas ---------- */
.badges-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.badges-head .section-head { margin-bottom: 0; }
.badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.badge { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 18px 12px; text-align: center; transition: transform .2s; }
.badge .b-ico {
  width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.8rem; background: var(--sun-50); border: 3px solid var(--sun);
}
.badge b { display: block; font: 600 1.02rem/1.2 var(--font-head); margin-bottom: 4px; }
.badge span { font-size: .8rem; color: var(--ink-3); font-weight: 700; line-height: 1.35; display: block; }
.badge.locked .b-ico { filter: grayscale(1); opacity: .4; background: #F4EFE8; border-color: #E5DDD2; }
.badge.locked b { color: var(--ink-3); }
.badge:not(.locked):hover { transform: translateY(-3px) rotate(-1deg); }
@media (max-width: 900px) { .badges { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .badges { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Chamada final ---------- */
.cta-box {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand), #FF8F4F 60%, var(--sun)); color: #fff; border-radius: 36px; padding: 52px 56px;
}
.cta-box h2 { margin: 0 0 10px; }
.cta-box p { margin: 0; font-size: 1.12rem; opacity: .95; max-width: 32em; }
.cta-box .paws { position: absolute; right: -20px; bottom: -30px; width: 220px; opacity: .14; pointer-events: none; }
.cta-box > div, .cta-box > button { position: relative; }
@media (max-width: 640px) { .cta-box { padding: 36px 26px; border-radius: 28px; } .cta-box .btn { width: 100%; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: #E8D3B4; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font: 600 1.12rem/1.3 var(--font-head);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.7rem; line-height: 1; color: var(--brand); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 56px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.footer nav a { text-decoration: none; font-weight: 700; color: rgba(255, 255, 255, .85); }
.footer nav a:hover { color: #fff; text-decoration: underline; }
.footer small { display: block; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Toast e confete ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, calc(100% + 60px));
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 16px; font-weight: 700; visibility: hidden;
  box-shadow: var(--shadow-lg); transition: transform .38s cubic-bezier(.2, 1.3, .4, 1), visibility .38s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 99; }

/* ---------- Mascote (SVG) ---------- */
.dog { overflow: visible; }
.dog .pose { opacity: 0; transition: opacity .08s linear; transform-box: fill-box; transform-origin: 50% 100%; }
.dog[data-pose="stand"] .pose-stand,
.dog[data-pose="sit"] .pose-sit,
.dog[data-pose="down"] .pose-down,
.dog[data-pose="jump"] .pose-jump,
.dog[data-pose="sniff"] .pose-sniff { opacity: 1; animation: settle .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes settle { from { transform: scale(1.05, .93); } }
.dog .tail { transform-box: fill-box; transform-origin: 100% 100%; animation: wag .55s ease-in-out infinite alternate; }
.dog.happy .tail { animation-duration: .13s; }
@keyframes wag { from { transform: rotate(-14deg); } to { transform: rotate(12deg); } }
.dog .eye { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.dog .tongue { opacity: 0; transition: opacity .15s; }
.dog.happy .tongue, .dog.tongue .tongue { opacity: 1; }
.dog .hop { animation: hop .45s ease-in-out infinite alternate; }
@keyframes hop { from { transform: translateY(4px); } to { transform: translateY(-6px); } }
.dog .shadow { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .2s, opacity .2s; }
.dog[data-pose="jump"] .shadow { transform: scaleX(.62); opacity: .6; }
.dog .fx-hearts, .dog .fx-huh { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.dog.happy .fx-hearts { animation: floatUp .95s ease-out; }
.dog.huh .fx-huh { animation: huh .85s ease-out; }
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(10px) scale(.5); }
  25% { opacity: 1; transform: translateY(0) scale(1.08); }
  100% { opacity: 0; transform: translateY(-20px) scale(1); }
}
@keyframes huh {
  0% { opacity: 0; transform: scale(.3); }
  30% { opacity: 1; transform: scale(1.15); }
  75% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}

/* ---------- Veja na prática (animação dentro da lição) ---------- */
.lp-wrap { margin-bottom: 30px; }
.lp-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; container-type: inline-size;
  background: linear-gradient(180deg, #FFF3DF 0%, #FFEBCB 62%, #EBC28C 62%, #DFB27A 100%);
  user-select: none; -webkit-user-select: none; border: 2px solid var(--line);
}
.lp-stage::before { /* quadro na parede */
  content: ""; position: absolute; left: 5%; top: 9%; width: 13%; aspect-ratio: 1; border-radius: 8px;
  border: 5px solid #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .05);
  background:
    linear-gradient(#fff, #fff) center / 4px 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 4px no-repeat,
    linear-gradient(#BFE6FF, #E8F6FF);
}
.lp-floor { position: absolute; left: 0; right: 0; top: 62%; bottom: 0; background: repeating-linear-gradient(90deg, rgba(120, 70, 20, .08) 0 2px, transparent 2px 12.5cqw); }
.lp-stage.moving .lp-floor { animation: floorMove .5s linear infinite; }
@keyframes floorMove { to { background-position: -12.5cqw 0; } }
.lp-under, .lp-over { position: absolute; inset: 0; pointer-events: none; }
.lp-prop { position: absolute; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s, left .6s ease-in-out, top .6s ease-in-out; }
.lp-prop.show { opacity: 1; }
.lp-prop svg { width: 100%; height: auto; display: block; }
.lp-puddle.show { animation: grow .6s ease-out; }
@keyframes grow { from { transform: translate(-50%, -50%) scale(.2); } }
.lp-dog { position: absolute; width: 34%; left: 14%; bottom: 6%; transition: left .9s ease-in-out, bottom .45s ease; }
.lp-dog-in { transition: transform .25s; }
.lp-dog .dog { width: 100%; }
.lp-dog.walk .dog { animation: trot .24s ease-in-out infinite alternate; }
@keyframes trot { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-4%) rotate(1.5deg); } }
.lp-legs { position: absolute; width: 24%; left: 64%; bottom: 3%; display: none; transition: left .8s ease-in-out; }
.lp-legs-in { transition: transform .3s; }
.lp-legs svg { width: 100%; height: auto; display: block; }
.lp-legs .lg { transform-box: view-box; transform-origin: 68px 150px; }
.lp-legs.walk .lg-front { animation: legSwing .5s ease-in-out infinite alternate; }
.lp-legs.walk .lg-back { animation: legSwing .5s ease-in-out infinite alternate-reverse; }
@keyframes legSwing { from { transform: rotate(-15deg); } to { transform: rotate(15deg); } }
.lp-leash { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lp-leash path { fill: none; stroke: #E5484D; stroke-width: 3.5; stroke-linecap: round; transition: stroke .2s; }
.lp-leash.tight path { stroke: #C22F35; }
.lp-hand { position: absolute; width: 62%; left: 112%; top: 62%; transition: left .7s ease-in-out, top .7s ease-in-out; pointer-events: none; }
.lp-hand-in { transform: translate(-4.667%, -50%); }
.lp-hand svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 4px 6px rgba(30, 38, 64, .12)); }
.lp-hand .hv { display: none; }
.lp-hand[data-v="treat"] .hv-treat, .lp-hand[data-v="empty"] .hv-empty,
.lp-hand[data-v="fist"] .hv-fist, .lp-hand[data-v="palm"] .hv-palm { display: inline; }
.lp-hand.shake .lp-hand-in { animation: handShake .16s ease-in-out 4; }
@keyframes handShake { 50% { transform: translate(-3.6%, -46%) rotate(-5deg); } }
.lp-treat { position: absolute; width: 3.2%; transform: translate(-50%, -50%); display: none; pointer-events: none; }
.lp-treat svg { width: 100%; height: auto; display: block; }
.lp-say {
  position: absolute; left: 74%; top: 8%; z-index: 3; transform: translateX(-50%) scale(.5); opacity: 0;
  background: #fff; color: var(--ink); font: 700 clamp(13px, 4.4cqw, 26px)/1.1 var(--font-head);
  padding: .45em .8em; border-radius: 14px; box-shadow: 0 6px 16px rgba(30, 38, 64, .14); white-space: nowrap;
  transition: opacity .15s, transform .3s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none;
}
.lp-say::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  border: 8px solid transparent; border-bottom: 0; border-top-color: #fff;
}
.lp-say.show { opacity: 1; transform: translateX(-50%) scale(1); }
.lp-say.isso { background: var(--brand); color: #fff; }
.lp-say.isso::after { border-top-color: var(--brand); }
.lp-end {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(255, 248, 239, .5);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lp-end.show { opacity: 1; pointer-events: auto; }
.lp-replay {
  display: inline-flex; align-items: center; gap: 8px; font: 800 1rem var(--font); color: #fff; background: var(--ink);
  border: 0; border-radius: 99px; padding: 12px 22px; cursor: pointer; box-shadow: var(--shadow-lg);
}
.lp-replay:hover { background: #2A3459; }
.lp-stage.paused *, .lp-stage.paused *::before, .lp-stage.paused *::after { animation-play-state: paused !important; }
.lp-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.lp-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mc, var(--ink)); color: #fff;
  cursor: pointer; display: grid; place-items: center; transition: transform .12s;
}
.lp-btn:active { transform: scale(.94); }
.lp-cap { flex: 1; margin: 0; min-height: 2.8em; font-weight: 700; color: var(--ink) !important; line-height: 1.4; display: flex; align-items: center; gap: 8px; }
.lp-n { flex: none; font: 800 .74rem var(--font); color: #fff; background: var(--mc, var(--ink)); border-radius: 99px; padding: 3px 8px; }
.lp-n:empty { display: none; }
@media (max-width: 640px) { .lp-cap { min-height: 4.2em; font-size: .95rem; } }
.lp-dots { display: flex; gap: 6px; margin-top: 10px; }
.lp-dots i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background .3s; }
.lp-dots i.on { background: var(--mc, var(--brand)); }

/* ---------- Botão de som no topo ---------- */
.sound-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
}
.sound-btn[aria-pressed="false"] { color: var(--ink-3); }
@media (max-width: 420px) { .sound-btn, .menu-btn { width: 40px; height: 40px; } .topbar-inner { gap: 10px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .deco, .dog .tail, .dog .eye, .dog .hop { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
