/* Bela Explorer - expedição de massinha (claymation) */
@font-face { font-family: 'Lilita One'; src: url(../fonts/lilita-one-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Andika'; src: url(../fonts/andika-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Andika'; src: url(../fonts/andika-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --sky: #8FD3F4; --sky-2: #CDEFFC; --sand: #FFF4DE; --leaf: #2E9A47; --sun: #FFC93C; --coral: #F2664B; --teal: #0E9C8C; --berry: #D9338C; --violet: #7A4BD6;
  --ink: #23304F; --ink-2: #56607E; --card: #FFFDF8; --line: #EADFC8;
  --ok: #2E9A47; --no: #E8432E;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Andika', 'Segoe UI', system-ui, sans-serif;
  /* massinha: brilho em cima, sombra embaixo, sombra no chão */
  --clay: inset 0 4px 0 rgba(255, 255, 255, .55), inset 0 -6px 0 rgba(60, 30, 10, .14), 0 10px 18px -8px rgba(40, 30, 60, .45);
  --clay-hi: inset 0 5px 0 rgba(255, 255, 255, .6), inset 0 -8px 0 rgba(60, 30, 10, .16), 0 20px 30px -12px rgba(40, 30, 60, .5);
  --c: var(--coral);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: linear-gradient(var(--sky), var(--sky-2)); background-attachment: fixed; color: var(--ink); font-family: var(--body); font-size: 20px; line-height: 1.4;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none; overflow-x: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; border: 0; }
button:disabled { cursor: default; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
i { font-style: normal; color: var(--teal); font-weight: 700; }
img.spr, .be-img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

/* ---------- peças de massinha ---------- */
.plaque { display: inline-block; color: #fff; background: var(--c); padding: .2em .6em .28em; border-radius: 26px; box-shadow: var(--clay); text-shadow: 0 3px 0 rgba(0, 0, 0, .18); font-size: clamp(36px, 5vw, 64px); }
.plaque.small { font-size: clamp(24px, 3vw, 36px); border-radius: 20px; --c: var(--coral); }
.paper-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-size: 24px; line-height: 1; padding: 16px 28px 18px; min-height: 62px;
  border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: var(--clay); transition: transform .15s; }
.paper-btn svg { width: 28px; height: 28px; }
.paper-btn span:has(svg) { display: grid; }
.paper-btn.big { background: var(--c); color: #fff; font-size: 26px; min-height: 68px; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.paper-btn:active:not(:disabled) { transform: translateY(3px) scale(.97); }
.paper-btn:disabled { opacity: .5; }
.paper-btn.danger { color: var(--no); }
.row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.row.left { justify-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 17px; padding: 8px 16px; min-height: 48px; box-shadow: var(--clay); }
.chip svg { width: 22px; height: 22px; color: var(--teal); }
.chip.on { background: var(--sun); }
.count { font-family: var(--body); font-weight: 700; font-size: .55em; background: rgba(255, 255, 255, .85); color: var(--ink-2); padding: 4px 12px; border-radius: 99px; vertical-align: middle; white-space: nowrap; }
.toggles { display: flex; gap: 8px; }
.tog { width: 54px; height: 54px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: var(--clay); color: var(--ink-2); position: relative; flex: none; }
.tog svg { width: 25px; height: 25px; }
.tog.on, .tog.plain { color: var(--ink); }
.tog:not(.on):not(.plain)::after { content: ''; position: absolute; width: 30px; height: 3px; background: var(--no); border-radius: 3px; transform: rotate(-40deg); }

/* ---------- capa ---------- */
.screen.welcome { position: relative; height: 100dvh; min-height: 520px; overflow: hidden; display: grid; place-items: center; padding: 16px; }
.welcome-bg { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; filter: blur(4px) brightness(.9); animation: slowpan 30s ease-in-out infinite alternate; }
.cover { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; animation: rise .8s cubic-bezier(.2, .9, .3, 1.2) both; }
.cover-tuca { width: 230px; height: 230px; margin-bottom: -20px; animation: bob 2.8s ease-in-out infinite; filter: drop-shadow(0 16px 14px rgba(10, 20, 60, .35)); }
.cover-title { display: flex; gap: .25em; font-size: clamp(56px, 9vw, 110px); color: #fff; }
.cover-title span { background: var(--coral); padding: .08em .35em .16em; border-radius: 30px; box-shadow: var(--clay-hi); text-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.cover-title span + span { background: var(--leaf); transform: rotate(2deg); }
.cover-title span:first-child { transform: rotate(-3deg); }
.cover-sub { margin: 8px 0 16px; font-weight: 700; font-size: 21px; color: #fff; text-shadow: 0 2px 8px rgba(10, 20, 60, .7); max-width: 720px; }
.paper-btn.start { --c: var(--leaf); font-size: 34px; padding: 18px 56px 22px; animation: pulse 1.9s ease-in-out infinite; }

/* ---------- mapa ---------- */
.screen.map { position: relative; height: 100dvh; min-height: 560px; overflow: hidden; }
.map-art { position: absolute; inset: 0; }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topbar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 18px 0; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.top-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.starcount { display: flex; align-items: center; gap: 4px; background: var(--card); border-radius: 999px; padding: 6px 16px 6px 8px; box-shadow: var(--clay); font-family: var(--display); font-size: 24px; height: 54px; }
.starcount svg { width: 34px; height: 34px; }
.pin { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--card); box-shadow: var(--clay-hi);
  text-align: left; max-width: 250px; animation: pinIn .6s cubic-bezier(.2, .9, .3, 1.4) both; transition: transform .15s; }
.pin:nth-child(2) { animation-delay: .05s } .pin:nth-child(3) { animation-delay: .1s } .pin:nth-child(4) { animation-delay: .15s } .pin:nth-child(5) { animation-delay: .2s }
.pin:nth-child(6) { animation-delay: .25s } .pin:nth-child(7) { animation-delay: .3s } .pin:nth-child(8) { animation-delay: .35s } .pin:nth-child(9) { animation-delay: .4s }
.pin:active { transform: translate(-50%, -50%) scale(.95); }
.pin-n { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 28px; box-shadow: var(--clay); }
.pin-n svg { width: 28px; height: 28px; }
.pin-body { display: grid; line-height: 1.1; }
.pin-title { font-family: var(--display); font-size: 21px; }
.pin-pt { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.pin-stars { display: flex; gap: 1px; margin-top: 2px; }
.pin-stars svg { width: 18px; height: 18px; }
.pin.done { background: #F2FFF2; }
.map-actions { position: absolute; z-index: 5; right: 18px; bottom: calc(132px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }

/* ---------- parada ---------- */
.screen.mission { min-height: 100dvh; padding-bottom: 150px; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 22%, #fff), var(--sand) 70%); }
.mbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--c) 92%, #fff); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5); }
.mtitle { color: #fff; font-size: clamp(22px, 3vw, 34px); display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.mnum { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--c); display: grid; place-items: center; flex: none; box-shadow: var(--clay); text-shadow: none; }
.dots { display: flex; gap: 5px; flex-wrap: wrap; max-width: 34%; justify-content: flex-end; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.dot.done { background: #fff; }
.dot.now { background: var(--sun); transform: scale(1.35); box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
.stage { max-width: 1180px; margin: 0 auto; padding: 18px 18px 0; }
.enter { animation: rise .45s cubic-bezier(.2, .9, .3, 1.15) both; }
.step-title { font-size: clamp(26px, 3.2vw, 38px); text-align: center; margin: 4px 0 16px; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.step-title i { color: var(--ink); font-weight: 400; }

/* abertura */
.intro { display: flex; gap: 30px; align-items: center; justify-content: center; min-height: 52vh; flex-wrap: wrap; }
.intro-tuca { width: min(300px, 40vw); aspect-ratio: 1; animation: bob 2.8s ease-in-out infinite; filter: drop-shadow(0 18px 14px rgba(40, 30, 60, .3)); }
.intro-text { display: grid; gap: 12px; justify-items: start; }
.intro-unit { font-weight: 700; background: var(--card); padding: 6px 16px; border-radius: 99px; box-shadow: var(--clay); }
.intro-pt { font-size: 26px; font-weight: 700; margin: 0; }

/* aprender */
.lgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.lgrid.words { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.lcard { background: var(--card); border-radius: 26px; box-shadow: var(--clay); padding: 10px 10px 12px; display: grid; justify-items: center; gap: 2px; transition: transform .15s; position: relative; }
.lcard:active { transform: scale(.96); }
.lcard-art { width: 100%; aspect-ratio: 1.1; display: block; }
.lcard-en { font-family: var(--display); font-size: 26px; color: var(--ink); }
.lcard-pt { font-size: 15px; color: var(--ink-2); font-weight: 700; }
.lcard.word { padding: 18px 10px; }
.lcard.word .lcard-en { font-size: 30px; }
.lcard.seen { background: #F0FFF1; box-shadow: var(--clay), 0 0 0 4px var(--ok) inset; }

/* ouvir e escolher */
.listen-step { display: grid; gap: 18px; }
.big-ear { width: 110px; height: 110px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: var(--clay-hi); }
.big-ear svg { width: 60px; height: 60px; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 980px; width: 100%; margin: 0 auto; }
.pcard { background: var(--card); border-radius: 28px; box-shadow: var(--clay); aspect-ratio: 1; padding: 14px; position: relative; display: grid; place-items: center; transition: transform .15s; }
.pcard img { width: 100%; height: 100%; }
.pcard.ok { background: #E6FBE8; box-shadow: var(--clay), 0 0 0 5px var(--ok) inset; }
.pcard.no { opacity: .4; }
.pcard-label { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: var(--ok); color: #fff; font-family: var(--display); font-size: 24px; padding: 2px 16px 4px; border-radius: 99px; white-space: nowrap; }

/* leitura */
.reader { max-width: 820px; margin: 0 auto; }
.page { background: var(--card); border-radius: 28px; box-shadow: var(--clay-hi); padding: 22px 28px; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.page-art { width: 86px; height: 86px; flex: none; }
.page-title { font-size: 34px; }
.para { font-size: 24px; line-height: 1.55; margin: 0 0 12px; padding: 4px 10px; border-radius: 12px; cursor: pointer; }
.para.reading { background: color-mix(in srgb, var(--sun) 55%, #fff); }
.page.compact { padding: 16px 18px; }
.page.compact .para { font-size: 18px; margin-bottom: 6px; }
.page.compact .page-art { width: 56px; height: 56px; }
.page.compact .page-title { font-size: 26px; }

/* questão */
.qsolo { max-width: 860px; margin: 0 auto; }
.qlayout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.qcard { background: var(--card); border-radius: 28px; box-shadow: var(--clay-hi); padding: 18px 22px 22px; display: grid; gap: 12px; }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qnum { font-weight: 700; color: #fff; background: var(--c); padding: 4px 14px; border-radius: 99px; font-size: 16px; }
.qpic { width: 170px; height: 150px; justify-self: center; }
.qtext { font-family: var(--body); font-weight: 700; font-size: 28px; line-height: 1.3; color: var(--ink); }
.gap { color: var(--c); letter-spacing: 2px; }
.qpt { margin: -6px 0 0; color: var(--ink-2); font-size: 18px; font-weight: 700; }
.opts { display: grid; gap: 10px; }
.opts.grid2 { grid-template-columns: 1fr 1fr; }
.opts.pics { grid-template-columns: repeat(4, 1fr); }
.opts.pics.n2 { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border-radius: 20px; padding: 12px 16px; min-height: 64px; font-size: 24px; font-weight: 700;
  box-shadow: inset 0 0 0 3px var(--line), 0 6px 0 -1px var(--line); transition: transform .12s; }
.opt:active:not(:disabled) { transform: translateY(2px); }
.letter { flex: none; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--c); display: grid; place-items: center; font-family: var(--display); font-size: 20px; }
.opt.pic { flex-direction: column; padding: 10px; gap: 4px; justify-content: center; }
.opt-art { width: 100%; aspect-ratio: 1.05; display: block; }
.opt.pic .otext { font-family: var(--display); font-weight: 400; font-size: 22px; }
.opt.ok { background: #E6FBE8; box-shadow: inset 0 0 0 4px var(--ok), 0 6px 0 -1px var(--ok); }
.opt.ok .letter { background: var(--ok); color: #fff; }
.opt.no { opacity: .45; box-shadow: inset 0 0 0 3px var(--no); }
.opt:disabled:not(.ok):not(.no) { opacity: .7; }

/* separar */
.tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 40px; margin-bottom: 16px; }
.scard { width: 118px; background: var(--card); border-radius: 22px; box-shadow: var(--clay); padding: 6px 6px 8px; display: grid; justify-items: center; touch-action: none; cursor: grab; transition: transform .12s; }
.scard-art { width: 100%; aspect-ratio: 1; display: block; }
.scard-label { font-family: var(--display); font-size: 18px; }
.scard.selected { transform: translateY(-6px) scale(1.06); box-shadow: var(--clay-hi), 0 0 0 4px var(--sun); }
.scard.dragging { opacity: .3; }
.scard.placed { width: 84px; cursor: default; padding: 4px; }
.scard.placed .scard-label { font-size: 14px; }
.ghost { position: fixed; z-index: 100; pointer-events: none; }
.bins { display: grid; gap: 14px; }
.bins.n2 { grid-template-columns: 1fr 1fr; }
.bins.n3 { grid-template-columns: repeat(3, 1fr); }
.bin { background: rgba(255, 255, 255, .55); border: 4px dashed color-mix(in srgb, var(--c) 50%, #fff); border-radius: 28px; padding: 12px; min-height: 180px; transition: background .15s, transform .15s; }
.bin.can-drop { background: rgba(255, 255, 255, .85); border-style: solid; }
.bin.over { background: color-mix(in srgb, var(--sun) 40%, #fff); transform: scale(1.02); }
.bin-head { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 8px; }
.bin-pic { width: 54px; height: 54px; }
.bin-label { font-family: var(--display); font-size: 24px; text-align: center; }
.bin-items { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* escolher várias */
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.tgrid.text { grid-template-columns: repeat(3, 1fr); }
.tog-card { background: var(--card); border-radius: 26px; box-shadow: var(--clay); padding: 12px; display: grid; justify-items: center; gap: 6px; position: relative; transition: transform .12s; }
.tog-card.text { padding: 22px 14px; min-height: 100px; place-items: center; }
.tog-art { width: 100%; aspect-ratio: 1.2; display: block; }
.tog-label { font-family: var(--display); font-size: 24px; text-align: center; }
.tick { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--line); display: grid; place-items: center; color: transparent; }
.tick svg { width: 24px; height: 24px; }
.tog-card.on { background: #FFF6D6; box-shadow: var(--clay), 0 0 0 4px var(--sun) inset; }
.tog-card.on .tick { background: var(--ok); color: #fff; box-shadow: none; }

/* meses */
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.month { background: var(--card); border-radius: 20px; box-shadow: var(--clay); padding: 10px 12px; display: grid; justify-items: start; text-align: left; position: relative; overflow: hidden;
  border-top: 14px solid hsl(calc(var(--i) * 30) 70% 60%); }
.m-n { position: absolute; top: 6px; right: 12px; font-family: var(--display); color: var(--ink-2); opacity: .5; font-size: 22px; }
.m-en { font-family: var(--display); font-size: 28px; }
.m-pt { font-size: 16px; color: var(--ink-2); font-weight: 700; }
.month.seen { background: #F0FFF1; }
.month.reading { background: color-mix(in srgb, var(--sun) 55%, #fff); transform: scale(1.04); }
.mline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.mslot { min-height: 54px; border-radius: 16px; border: 3px dashed color-mix(in srgb, var(--c) 45%, #fff); display: grid; place-items: center; font-family: var(--display); font-size: 20px; color: var(--ink-2); background: rgba(255, 255, 255, .5); }
.mslot.filled { border-style: solid; border-color: var(--ok); background: #E6FBE8; color: var(--ink); }
.tokens { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mtok { font-family: var(--display); font-size: 26px; padding: 12px 22px; border-radius: 999px; background: var(--card); box-shadow: var(--clay); }
.mtok.used { visibility: hidden; }

/* fim da parada / resultado */
.screen.done-screen { min-height: 100dvh; display: grid; place-items: center; padding: 20px 20px 160px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 30%, #fff), var(--sand) 70%); }
.medal { display: grid; justify-items: center; gap: 12px; text-align: center; animation: rise .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.medal-tuca { width: 240px; height: 240px; animation: bob 2.4s ease-in-out infinite; }
.medal-sub { font-size: 28px; font-weight: 700; margin: 0; }
.medal-stars { display: flex; gap: 8px; }
.medal-stars svg { width: 76px; height: 76px; animation: starPop .5s cubic-bezier(.2, .9, .3, 1.6) both; }
.medal-stars svg:nth-child(2) { animation-delay: .15s } .medal-stars svg:nth-child(3) { animation-delay: .3s }

/* treino oral */
.oral-card { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 28px; align-items: center; background: var(--card); border-radius: 32px; box-shadow: var(--clay-hi); padding: 24px 28px; max-width: 1000px; margin: 10px auto 0; }
.oral-pic { aspect-ratio: 1; }
.oral-side { display: grid; gap: 16px; justify-items: start; }
.oral-q { font-size: clamp(32px, 4vw, 48px); color: var(--violet); }
.heard { margin: 0; color: var(--ink-2); font-weight: 700; min-height: 1.4em; }
.oral-ans { background: #F0FFF1; border-radius: 20px; padding: 12px 18px; box-shadow: inset 0 0 0 3px var(--ok); width: 100%; }
.oral-ans p { margin: 0 0 8px; font-family: var(--display); font-size: 32px; color: var(--leaf); }
.mic.rec { animation: pulse 1s ease-in-out infinite; --c: var(--no); }

/* pais */
.sheet { background: var(--card); border-radius: 26px; box-shadow: var(--clay); padding: 20px 26px; max-width: 900px; margin: 0 auto; display: grid; gap: 10px; }
.sheet h2 { font-size: 26px; margin-top: 8px; }
.plist { margin: 0; padding-left: 22px; font-size: 18px; }
.note { background: #FFF6D6; border-radius: 14px; padding: 10px 14px; font-size: 17px; }

/* ---------- Tuca (doca de baixo) ---------- */
.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 0 14px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.dock-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: flex-end; gap: 12px; }
.dock-in > * { pointer-events: auto; }
.dock-buddy { flex: none; width: 116px; height: 116px; background: none; padding: 0; filter: drop-shadow(0 10px 8px rgba(40, 30, 60, .3)); }
.dock-buddy.hop { animation: hop .5s cubic-bezier(.2, .9, .3, 1.4); }
.bubble-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 26px; box-shadow: var(--clay-hi); padding: 10px 10px 10px 20px; margin-bottom: 12px; position: relative; }
.bubble-wrap::before { content: ''; position: absolute; left: -12px; bottom: 26px; border: 12px solid transparent; border-right-color: var(--card); border-left: 0; }
.bubble { flex: 1; font-size: 20px; line-height: 1.35; max-height: 5.4em; overflow: auto; }
.bubble.happy { color: #1F6B32; }
.bubble.oops { color: #A3321F; }
.replay { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--sky-2); color: var(--ink); display: grid; place-items: center; }
.replay svg { width: 24px; height: 24px; }
.next { flex: none; align-self: center; margin-bottom: 12px; font-family: var(--display); font-size: 26px; color: #fff; background: var(--leaf); border-radius: 999px; padding: 16px 30px 18px; min-height: 66px; box-shadow: var(--clay-hi); text-shadow: 0 2px 0 rgba(0, 0, 0, .18); animation: nudge 1.6s ease-in-out infinite 1s; }

/* ---------- confete e animações ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes hop { 40% { transform: translateY(-16px) scale(1.05); } }
@keyframes pulse { 50% { transform: scale(1.05); } }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(6px); } 90% { transform: translateX(-3px); } }
@keyframes pinIn { from { opacity: 0; transform: translate(-50%, -20%) scale(.6); } }
@keyframes starPop { from { opacity: 0; transform: scale(.2) rotate(-40deg); } }
@keyframes slowpan { to { transform: scale(1.06) translate(-1%, -1%); } }
.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
.pop { animation: popk .35s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes popk { 40% { transform: scale(1.08); } }
.star { display: block; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ---------- telas menores (celular / tablet em pé) ---------- */
@media (max-width: 900px) {
  .qlayout { grid-template-columns: 1fr; }
  .pgrid, .opts.pics, .tgrid { grid-template-columns: repeat(2, 1fr); }
  .tgrid.text { grid-template-columns: 1fr 1fr; }
  .bins.n3 { grid-template-columns: 1fr; }
  .mgrid { grid-template-columns: repeat(3, 1fr); }
  .mline { grid-template-columns: repeat(4, 1fr); }
  .oral-card { grid-template-columns: 1fr; justify-items: center; }
  .oral-pic { width: 220px; }
  .dots, .mbar .toggles { display: none; }
  .pin { padding: 4px; } .pin-body { display: none; }
  .map-actions { left: 14px; right: 14px; flex-direction: row; justify-content: center; }
  .map-actions .paper-btn { font-size: 20px; padding: 12px 18px; }
  .dock-buddy { width: 80px; height: 80px; }
  .bubble { font-size: 17px; }
  .next { font-size: 20px; padding: 12px 18px; }
  .top-tools .toggles { display: none; }
}

/* muitas figuras: cabe tudo na tela do tablet sem rolar */
@media (min-width: 901px) {
  .lgrid.n12, .lgrid.n16 { grid-template-columns: repeat(6, 1fr); }
  .lgrid.n18 { grid-template-columns: repeat(9, 1fr); gap: 10px; }
  .lgrid.n18 .lcard-en { font-size: 19px; }
  .lgrid.n18 .lcard-pt { font-size: 13px; }
  .lgrid.n12 .lcard-art, .lgrid.n18 .lcard-art { aspect-ratio: 1.25; }
}
