:root {
  --bg: #eef2ff;
  --bg2: #f5f0ff;
  --card: #ffffff;
  --ink: #2b2f5a;
  --ink-soft: #6b6f99;
  --lilac: #8b7cf6;
  --lilac-dark: #6d5ce0;
  --blue: #5aa9f5;
  --blue-dark: #3b86d6;
  --denim: #2f4f9e;
  --pink: #f472b6;
  --green: #34c38f;
  --green-dark: #23a273;
  --red: #f26b6b;
  --yellow: #ffc83d;
  --shadow: 0 6px 0 rgba(43, 47, 90, .12), 0 10px 24px rgba(43, 47, 90, .08);
  --radius: 22px;
  --font: "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 10% 10%, #dfe7ff 0 120px, transparent 121px),
    radial-gradient(circle at 95% 30%, #ece3ff 0 90px, transparent 91px),
    radial-gradient(circle at 20% 90%, #e3f1ff 0 140px, transparent 141px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}
button { font-family: inherit; color: inherit; cursor: pointer; border: 0; touch-action: manipulation; }
img { -webkit-user-drag: none; }
.hidden { display: none !important; }

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100%;
  padding: max(12px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}

.screen { display: none; animation: pop-in .28s ease; }
.screen.active { display: block; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- topbar ---------- */
.topbar { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-bottom: 8px; }
.topbar h2 { flex: 1; text-align: center; margin: 0; font-size: 1.6rem; }
.topbar .spacer { width: 48px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 16px; background: var(--card);
  box-shadow: var(--shadow); font-size: 1.4rem; font-weight: 800; flex: none;
}
.icon-btn:active, .mode-card:active, .level-btn:active, .soft-btn:active, .big-btn:active, .wide-card:active, .keypad button:active, .choices button:active {
  transform: translateY(3px); box-shadow: 0 2px 0 rgba(43,47,90,.14);
}
#s-home .topbar { justify-content: space-between; }
.star { color: var(--yellow); text-shadow: 0 1px 0 #d99e00; }

/* ---------- bubble ---------- */
.bubble {
  position: relative; background: var(--card); border-radius: 20px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 1.15rem; line-height: 1.25;
}
.bubble p { margin: 0; }
.bubble-left::before {
  content: ""; position: absolute; left: -12px; top: 50%; margin-top: -10px;
  border: 10px solid transparent; border-right: 14px solid var(--card); border-left: 0;
}

/* ---------- home ---------- */
.hero { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.hero-lolo { height: 180px; width: auto; filter: drop-shadow(0 10px 12px rgba(43,47,90,.18)); animation: float 3.5s ease-in-out infinite; }
.hero .bubble { flex: 1; }
.hello { font-size: 1.6rem; font-weight: 800; color: var(--lilac-dark); }
@keyframes float { 50% { transform: translateY(-8px); } }

.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode-card {
  border-radius: var(--radius); padding: 12px 6px 10px; color: #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 1.02rem; font-weight: 700;
  min-height: 118px; justify-content: center;
}
.mode-ico {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: grid; place-items: center; font-size: 2.1rem; font-weight: 800; line-height: 1;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.mode-stars { font-size: .85rem; letter-spacing: 1px; min-height: 1.1em; color: #fff7d1; }
.c-add { background: linear-gradient(160deg, #5ec8a8, #34b38a); }
.c-sub { background: linear-gradient(160deg, #6fb6ff, #3b86d6); }
.c-mul { background: linear-gradient(160deg, #a796ff, #7b67f0); }
.c-div { background: linear-gradient(160deg, #ff9ccf, #ec5fa6); }
.c-mix { background: linear-gradient(160deg, #ffc65c, #f59e2b); }
.c-prob { background: linear-gradient(160deg, #4f6fc4, #2f4f9e); }

.wide-card {
  width: 100%; margin-top: 14px; border-radius: var(--radius); box-shadow: var(--shadow);
  background: linear-gradient(120deg, #ffe08a, #ffb86b); display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; text-align: left; overflow: hidden; min-height: 96px;
}
.wide-card img { height: 92px; margin: -4px 0 -12px; transform: scaleX(-1); }
.wide-card b { display: block; font-size: 1.35rem; }
.wide-card small { font-size: 1rem; color: #7a4b00; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.soft-btn {
  background: var(--card); border-radius: 18px; padding: 14px 10px; font-size: 1.1rem; font-weight: 700;
  box-shadow: var(--shadow);
}
.soft-btn.full { width: 100%; margin-top: 10px; }
.soft-btn.danger { color: var(--red); }

/* ---------- level ---------- */
.level-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.level-head img { height: 150px; }
.level-head .bubble { flex: 1; }
.levels { display: grid; gap: 12px; }
.level-btn {
  border-radius: var(--radius); padding: 14px 18px; color: #fff; box-shadow: var(--shadow); text-align: left;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px;
}
.level-btn b { font-size: 1.5rem; }
.level-btn small { font-size: 1rem; opacity: .95; grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; }
.lv-pts { display: inline-block; margin-top: 4px; background: rgba(255,255,255,.25); border-radius: 999px; padding: 1px 10px; font-weight: 800; font-size: 1rem; }
.lv-stars { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.5rem; color: #fff7d1; letter-spacing: 2px; }
.l1 { background: linear-gradient(120deg, #5ec8a8, #34b38a); }
.l2 { background: linear-gradient(120deg, #6fb6ff, #3b86d6); }
.l3 { background: linear-gradient(120deg, #a796ff, #7b67f0); }

.label { font-weight: 700; color: var(--ink-soft); margin: 14px 0 6px; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  min-width: 52px; height: 52px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow);
  font-size: 1.3rem; font-weight: 800; padding: 0 12px;
}
.chips button.on { background: var(--lilac); color: #fff; }
.table-pick { margin-bottom: 16px; }

/* ---------- game ---------- */
.progress { flex: 1; height: 18px; background: #dfe3fb; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #6ee0b5); border-radius: 999px; transition: width .35s ease; }
.count { font-weight: 800; font-size: 1.2rem; min-width: 52px; text-align: right; }

.coach { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; min-height: 120px; }
.coach img { height: 120px; width: auto; transition: transform .2s; filter: drop-shadow(0 6px 8px rgba(43,47,90,.15)); }
.coach img.bounce { animation: bounce .5s ease; }
.coach img.shake { animation: shake .45s ease; }
.coach .bubble { flex: 1; font-size: 1.2rem; }
@keyframes bounce { 30% { transform: translateY(-14px) scale(1.04); } 60% { transform: translateY(0); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.question-card {
  background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 14px 16px 10px; text-align: center;
}
.question-card.right { box-shadow: 0 0 0 4px var(--green), var(--shadow); }
.question-card.wrong { box-shadow: 0 0 0 4px var(--red), var(--shadow); animation: shake .4s; }
.q-story { font-size: 1.2rem; line-height: 1.35; margin: 2px 0 8px; text-align: left; }
.q-line { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 3rem; font-weight: 800; line-height: 1.1; flex-wrap: wrap; }
.q-line.small { font-size: 2.2rem; }
.q-eq { color: var(--ink-soft); }
.q-answer {
  min-width: 96px; padding: 0 12px; border-radius: 16px; background: #f1efff; color: var(--lilac-dark);
  border: 3px dashed #c9c0ff;
}
.q-answer.filled { border-style: solid; }
.q-tools { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.tool-btn { background: #f1f3ff; border-radius: 999px; padding: 6px 14px; font-size: 1rem; font-weight: 700; color: var(--ink-soft); }

.hint {
  margin-top: 10px; background: #fffbea; border: 2px solid #ffe08a; border-radius: 20px; padding: 10px 14px;
  font-size: 1.1rem; line-height: 1.35; animation: pop-in .25s ease;
}
.hint p { margin: 2px 0; }
.hint::after { content: ""; display: block; clear: both; }
.hint-lolo { float: left; height: 96px; margin: 0 10px 4px -4px; }
.hint-title { font-weight: 800; color: #a35a00; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 6px 0; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--lilac); display: inline-block; }
.dot.b { background: var(--pink); }
.dot.x { background: #d8d8e8; position: relative; }
.dot.x::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--red); font-weight: 800; }
.dots .plus { font-weight: 800; font-size: 1.3rem; margin: 0 4px; }
.array { display: grid; gap: 5px; justify-content: center; margin: 6px 0; }
.groups { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0; }
.group { border: 2px dashed #c9c0ff; border-radius: 14px; padding: 6px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 90px; justify-content: center; }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.keypad button {
  height: 62px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow);
  font-size: 1.9rem; font-weight: 800;
}
.keypad .k-del { background: #ffe6e6; color: var(--red); }
.keypad .k-ok { background: var(--green); color: #fff; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.choices button {
  height: 92px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow);
  font-size: 2.1rem; font-weight: 800; color: var(--denim);
}
.choices button.right { background: var(--green); color: #fff; }
.choices button.wrong { background: var(--red); color: #fff; }
.choices button:disabled { opacity: .55; }

.big-btn {
  width: 100%; margin-top: 14px; background: linear-gradient(180deg, var(--lilac), var(--lilac-dark)); color: #fff;
  border-radius: 20px; padding: 16px; font-size: 1.4rem; font-weight: 800; box-shadow: 0 6px 0 #4e3fc0, 0 12px 20px rgba(109,92,224,.25);
}

/* race */
.race-track { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 8px 14px 10px; margin-bottom: 8px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.race-timer { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; }
.race-timer.low { background: var(--red); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.track { position: relative; height: 70px; border-bottom: 6px dotted #c9c0ff; }
.track img { position: absolute; bottom: -4px; left: 0; height: 74px; transform: scaleX(-1); transition: left .4s ease; }
.track .flag { position: absolute; right: -4px; bottom: 2px; font-size: 1.8rem; }
.race-score { font-size: 1.1rem; color: var(--ink-soft); }
#s-game.race .coach { display: none; }
#s-game.race .q-tools { display: none; }

/* ---------- result ---------- */
.result { text-align: center; padding-top: 10px; }
.result img { height: 260px; filter: drop-shadow(0 10px 12px rgba(43,47,90,.18)); animation: float 3.5s ease-in-out infinite; }
.result h2 { font-size: 2.2rem; margin: 6px 0 0; }
.result-stars { font-size: 3rem; letter-spacing: 6px; }
.result-stars .off { color: #d6d8ec; text-shadow: none; }
.result-stars .star { display: inline-block; animation: star-pop .5s ease backwards; }
.result-stars .star:nth-child(2) { animation-delay: .2s; }
.result-stars .star:nth-child(3) { animation-delay: .4s; }
@keyframes star-pop { from { transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.3); } }
.result-sub { font-size: 1.25rem; margin: 0 0 6px; color: var(--ink-soft); }
.review { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 4px 16px 10px; text-align: left; }
.review ul { margin: 0; padding-left: 20px; font-size: 1.2rem; }
.review li b { color: var(--green-dark); }

/* ---------- pontos do dia ---------- */
.daily-card {
  display: block; width: 100%; text-align: left; margin-bottom: 14px; padding: 12px 16px 10px;
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border: 3px solid #e6e1ff;
}
.daily-card.hit { border-color: var(--green); background: linear-gradient(160deg, #ffffff, #e6fbf2); }
.daily-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 1.1rem; }
.daily-top small { color: var(--ink-soft); font-size: .95rem; }
.daily-pts { display: flex; align-items: baseline; gap: 8px; }
.daily-pts b { font-size: 2.6rem; line-height: 1.1; color: var(--lilac-dark); }
.daily-pts span { font-size: 1.15rem; color: var(--ink-soft); font-weight: 700; }
.daily-card p { margin: 6px 0 0; font-size: 1.05rem; line-height: 1.25; }
.bar { height: 16px; background: #e6e9fb; border-radius: 999px; overflow: hidden; }
.bar.big { height: 22px; margin: 8px 0 4px; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--yellow), #ff9f43); transition: width .5s ease; }
.hit .bar-fill, .bar-fill.full { background: linear-gradient(90deg, var(--green), #6ee0b5); }

.daily-card .daily-money { margin-top: 6px; padding: 6px 10px; border-radius: 12px; background: #fff7dd; font-weight: 700; }
/* Topo da tela inicial: 💎 pontos totais | balão "faltam X para 🐣" | ⚙️ */
.gem-pill {
  flex: none; padding: 6px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
  font-size: 1.3rem; white-space: nowrap;
}
.gem-pill b { color: var(--lilac-dark); }
.next-meta {
  flex: none; margin: 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow);
  font-size: 1.7rem; line-height: 1; display: grid; place-items: center; animation: float 3s ease-in-out infinite;
}
.metas-msg { margin: 0 0 8px; font-size: 1.05rem; }
.medal small { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: 2px; }
.medal.next { opacity: 1; filter: none; border: 3px dashed var(--lilac); }
#vo-stats { grid-template-columns: repeat(2, 1fr); }
.pts-pill { background: var(--card); border-radius: 999px; padding: 4px 12px; box-shadow: var(--shadow); font-size: 1.1rem; white-space: nowrap; }
.question-card { position: relative; }
.float-pts {
  position: absolute; right: 18px; top: 10px; font-size: 1.8rem; font-weight: 800; color: var(--green-dark);
  animation: float-up 1s ease forwards; pointer-events: none;
}
@keyframes float-up { from { opacity: 0; transform: translateY(10px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-40px); } }

.goal-banner {
  margin: 8px 0 4px; padding: 12px; border-radius: 20px; color: #fff; font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(120deg, var(--green), #2bb5c9); box-shadow: var(--shadow); animation: pulse 1.4s infinite;
}
.goal-banner small { display: block; font-size: 1.1rem; font-weight: 700; }
.result-pts {
  display: block; width: 100%; margin: 8px 0 12px; padding: 10px; border-radius: 18px; background: #fff7dd;
  border: 2px solid #ffe08a; font-size: 1.15rem; font-weight: 700; line-height: 1.3;
}

.vo-card { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 14px 18px 16px; text-align: center; }
.vo-name { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--lilac-dark); }
.vo-date { margin: 0; font-size: 1.15rem; color: var(--ink-soft); }
.vo-card img { height: 170px; margin: 6px 0 0; }
.vo-pts b { display: block; font-size: 4.2rem; line-height: 1; color: var(--lilac-dark); }
.vo-pts span { font-size: 1.2rem; font-weight: 700; color: var(--ink-soft); }
.vo-goal { margin: 2px 0 8px; font-size: 1.1rem; }
.vo-status { border-radius: 18px; padding: 10px 12px; font-size: 1.25rem; font-weight: 700; background: #fff3e0; color: #a35a00; line-height: 1.3; }
.vo-status.hit { background: #e3f9ef; color: var(--green-dark); font-size: 1.35rem; }
#s-vo .stats { margin-top: 14px; }
.vo-history { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 6px 14px; }
.vo-history .h-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef0fb; font-size: 1.1rem; }
.vo-history .h-row:last-child { border-bottom: 0; }
.vo-history .h-row b { color: var(--lilac-dark); }
.vo-history .empty { color: var(--ink-soft); padding: 8px 0; margin: 0; }

.adult { display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: #f6f4ff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 6px; padding: 10px; border-radius: 14px; border: 2px solid #dcd7ff; font-weight: 700; background: #fff; }
.seg input { accent-color: var(--lilac); width: 20px; height: 20px; }

/* ---------- fases feitas ---------- */
.phases-msg { margin: -4px 0 12px; text-align: center; font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); }
.phases-msg b { color: var(--lilac-dark); }
.mode-card.done, .level-btn.done, .wide-card.done { filter: grayscale(.75); opacity: .55; }
.mode-card.done .mode-stars, .wide-card.done .mode-stars { color: #fff; font-weight: 800; }
.wide-card .mode-stars { display: block; color: #7a4b00; font-weight: 800; }
.chips button.done { background: #d9f5e9; color: var(--green-dark); opacity: .7; }
.result-phase { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; color: var(--ink-soft); }
.cycle-banner {
  margin: 8px 0; padding: 12px; border-radius: 20px; color: #fff; font-size: 1.3rem; font-weight: 800; line-height: 1.3;
  background: linear-gradient(120deg, var(--lilac), var(--pink)); box-shadow: var(--shadow);
}

/* ---------- tabuada ---------- */
#s-table .chips { justify-content: center; margin-bottom: 10px; }
.switch-row { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 8px 0; }
.switch-row input { width: 24px; height: 24px; accent-color: var(--lilac); }
.table-view { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.tv-row { background: var(--card); border-radius: 14px; padding: 8px 12px; font-size: 1.35rem; font-weight: 700; box-shadow: var(--shadow); display: flex; justify-content: space-between; }
.tv-row .r { color: var(--lilac-dark); }
.tv-row .r.cover { background: #e7e3ff; color: transparent; border-radius: 8px; min-width: 44px; }

/* ---------- progresso ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 6px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; color: var(--lilac-dark); line-height: 1.1; }
.stat span { font-size: .95rem; color: var(--ink-soft); }
.prog-table { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); margin-top: 14px; padding: 8px 12px; }
.prog-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: center; padding: 6px 0; border-bottom: 1px solid #eef0fb; font-size: 1.05rem; text-align: center; }
.prog-row:last-child { border-bottom: 0; }
.prog-row > :first-child { text-align: left; font-weight: 700; }
.prog-row.head { color: var(--ink-soft); font-size: .95rem; }
.prog-row .s { color: var(--yellow); letter-spacing: 1px; }
.prog-row .s .off { color: #dcdeee; }
.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.medal { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 6px; text-align: center; font-size: .95rem; line-height: 1.15; }
.medal .m { font-size: 2rem; display: block; }
.medal.locked { opacity: .4; filter: grayscale(1); }

/* ---------- settings ---------- */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(92vw, 420px); box-shadow: 0 20px 60px rgba(43,47,90,.3); color: var(--ink); }
dialog::backdrop { background: rgba(43,47,90,.4); }
.settings { padding: 18px 20px 20px; display: grid; gap: 8px; }
.settings h2 { margin: 0 0 4px; }
.field { display: grid; gap: 4px; font-size: 1.05rem; font-weight: 700; }
.settings { grid-template-columns: minmax(0, 1fr); }
.voice-info { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.3; overflow-wrap: anywhere; }
.field select { width: 100%; min-width: 0; font-family: inherit; font-size: 1.05rem; padding: 10px 12px; border-radius: 14px; border: 2px solid #dcd7ff; color: var(--ink); background: #fff; }
.field input { font-family: inherit; font-size: 1.2rem; padding: 10px 12px; border-radius: 14px; border: 2px solid #dcd7ff; color: var(--ink); }

.ask { text-align: center; }
.ask img { height: 90px; margin: 0 auto; }
.ask-msg { margin: 0; font-size: 1.3rem; font-weight: 700; white-space: pre-line; line-height: 1.3; }
.ask input { font-family: inherit; font-size: 1.6rem; text-align: center; padding: 8px; border-radius: 14px; border: 2px solid #dcd7ff; color: var(--ink); }
.ask .row-2 { margin-top: 6px; }
.ask .big-btn { margin: 0; padding: 14px 10px; font-size: 1.15rem; }

/* ---------- instalar o app ---------- */
.install-bar {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px;
  padding: 10px 14px; border-radius: 16px; color: #fff; font-weight: 800; font-size: 1.05rem; text-align: left;
  background: linear-gradient(120deg, #ff7eb6, var(--lilac)); box-shadow: var(--shadow); animation: pulse 1.6s infinite;
}
.install-bar b { background: #fff; color: var(--lilac-dark); border-radius: 999px; padding: 4px 14px; flex: none; }
.install-box { padding: 18px 20px 20px; text-align: center; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.install-box img { height: 150px; margin: 0 auto; animation: float 3s ease-in-out infinite; }
.install-box h2 { margin: 0; font-size: 1.7rem; color: var(--lilac-dark); }
.install-box p { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.install-box .big-btn { margin-top: 4px; animation: pulse 1.4s infinite; }
.install-steps { text-align: left; background: #f6f4ff; border-radius: 16px; padding: 10px 14px; font-size: 1.1rem; line-height: 1.4; }
.install-steps ol { margin: 4px 0 0; padding-left: 22px; }
.install-steps b { color: var(--lilac-dark); }
#install-later:disabled { opacity: .45; }

/* ---------- confetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- telas pequenas ---------- */
@media (max-width: 380px) {
  .hero-lolo { height: 190px; }
  .mode-card { min-height: 104px; font-size: .92rem; }
  .mode-ico { width: 44px; height: 44px; font-size: 1.8rem; }
  .q-line { font-size: 2.5rem; }
  .keypad button { height: 56px; }
  .coach img { height: 100px; }
  .coach { min-height: 100px; }
}
@media (max-height: 700px) {
  .coach { min-height: 90px; margin-bottom: 6px; }
  .coach img { height: 90px; }
  .keypad button { height: 52px; }
}
