/* Lumi: UI v2 (limpa). Tudo em CSS: nenhuma arte esticada, nenhum ícone pintado. Um tamanho base (rem = 16px × --k,
   que o ui.js calcula pela tela) e poucas peças: botão, botão de ícone, ficha, painel. Nada depende de posição fina. */
:root { --k: 1; --ab: 64px;
  --ink: #1b1147; --panel: #3b2a9c; --panel2: #2a1c74; --cream: #fff6dc; --mute: #b9aef0;
  --gold: #ffd75e; --gold2: #ffa52e; --goldink: #5a2a08; --vio: #8468f7; --vio2: #5f43dc; }
/* fonte no pacote (sem CDN). Cirílico, japonês, coreano e chinês usam a fonte do sistema. */
@font-face { font-family: 'Baloo 2'; font-weight: 600 700; font-display: swap; src: url(../assets/fonts/baloo-2-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url(../assets/fonts/baloo-2-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Baloo 2'; font-weight: 600 700; font-display: swap; src: url(../assets/fonts/baloo-2-latin-ext-700.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url(../assets/fonts/baloo-2-latin-ext-800.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
html { font-size: calc(16px * var(--k)); }
html, body { margin: 0; height: 100%; overflow: hidden; background: #150d3a; }
body { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; color: var(--cream); user-select: none; -webkit-user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; }
svg { fill: currentColor; stroke: currentColor; }
.hidden { display: none !important; }
#cv { position: fixed; inset: 0; width: 100%; height: 100%; }

/* ---------- peças ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: .4em; box-sizing: border-box; height: 3.2rem; padding: 0 1.3rem; white-space: nowrap; overflow: hidden;
  font-size: 1.35rem; line-height: 1; text-transform: uppercase; letter-spacing: .03em;
  border: .19rem solid var(--ink); border-radius: 1rem; box-shadow: 0 .3rem 0 var(--ink), inset 0 .14rem 0 rgba(255, 255, 255, .38);
  transition: transform .08s, box-shadow .08s, filter .15s; }
.btn.gold { background: linear-gradient(var(--gold), var(--gold2)); color: var(--goldink); }
.btn.green, .btn.line { background: linear-gradient(var(--vio), var(--vio2)); color: var(--cream); height: 2.8rem; font-size: 1.1rem; }
.btn.big { height: 3.6rem; font-size: 1.6rem; }
.btn:hover, .ib:hover { filter: brightness(1.08); }
.btn:active, .ib:active { transform: translateY(.22rem); box-shadow: 0 .08rem 0 var(--ink), inset 0 .14rem 0 rgba(255, 255, 255, .38); }
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.ib { display: flex; align-items: center; justify-content: center; box-sizing: border-box; flex: none; width: 3rem; height: 3rem; color: var(--cream);
  background: linear-gradient(var(--vio), var(--vio2)); border: .19rem solid var(--ink); border-radius: .95rem;
  box-shadow: 0 .26rem 0 var(--ink), inset 0 .14rem 0 rgba(255, 255, 255, .38); transition: transform .08s, box-shadow .08s, filter .15s; pointer-events: auto; }
.ib svg { width: 56%; height: 56%; }
.pill, .hud-info { display: flex; align-items: center; gap: .5rem; box-sizing: border-box; height: 2.6rem; padding: 0 .9rem; white-space: nowrap;
  background: rgba(34, 22, 96, .92); border: .16rem solid var(--ink); border-radius: .9rem; box-shadow: 0 .2rem 0 rgba(27, 17, 71, .8); font-size: 1rem; }
.pill svg { width: 1.2rem; height: 1.2rem; color: var(--gold); flex: none; }

/* ---------- HUD ---------- */
#hud { position: fixed; z-index: 10; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; pointer-events: none;
  padding: max(.6rem, env(safe-area-inset-top)) max(.8rem, env(safe-area-inset-right)) 0 max(.8rem, env(safe-area-inset-left)); transition: opacity .25s; }
.hud-l, .hud-r { display: flex; align-items: center; gap: .5rem; }
.hud-info { height: 3rem; gap: .7rem; }
.lvtag { background: linear-gradient(var(--gold), var(--gold2)); color: var(--goldink); border-radius: .5rem; padding: 0 .5rem; font-size: 1rem; line-height: 1.6rem; }
.mv { display: flex; align-items: baseline; gap: .3rem; }
.mv small { font-size: .7rem; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.mv > svg { display: none; }
.mv b { font-size: 1.5rem; line-height: 1; min-width: 1.1em; text-align: right; display: inline-block; }
.mv i { font-style: normal; color: var(--mute); }
.mv.over b { color: #ffb4a2; }
.mv b.tick { animation: tick .25s; }
.mini3 { display: flex; gap: .05rem; align-self: center; margin-left: .2rem; }
.mini3 svg { width: .95rem; height: .95rem; color: var(--gold); transition: color .2s; }
.mini3 svg.off { color: rgba(255, 255, 255, .2); }
#berries { position: absolute; left: 50%; top: max(.6rem, env(safe-area-inset-top)); transform: translateX(-50%); height: 3rem; gap: .5rem; transition: border-color .2s, box-shadow .2s; }
#berries.none { display: none; }
#berry-slots { display: flex; gap: .2rem; }
.slot { width: 1.7rem; height: 1.7rem; object-fit: contain; filter: grayscale(1) brightness(.6); opacity: .45; }
.slot.on { filter: none; opacity: 1; } .slot.pop { animation: starpop .4s cubic-bezier(.3, 1.7, .5, 1); }
.gateic { width: 1.4rem; height: 1.4rem; color: rgba(255, 255, 255, .28); transition: color .2s; }
#berries.full { border-color: var(--gold); box-shadow: 0 .2rem 0 rgba(27, 17, 71, .8), 0 0 1rem rgba(255, 200, 80, .7); }
#berries.full .gateic { color: var(--gold); }
#berries.bump { animation: bump .3s; }
#b-hint.nudge { animation: pulse 1.3s ease-in-out infinite; }
#b-undo.kick svg { animation: kick .35s; }
body.darkroom #hud { opacity: .9; }
body.win #hud, body.win #keys, body.win #touch, body.win #tip { opacity: 0 !important; pointer-events: none; }
/* em pé: botões na 1ª linha; passos (esquerda) e frutas (direita) na 2ª. Nada disputa largura. */
@media (orientation: portrait) {
  .hud-info, #berries { position: absolute; top: calc(max(.6rem, env(safe-area-inset-top)) + 3.5rem); height: 2.6rem; }
  .hud-info { left: max(.8rem, env(safe-area-inset-left)); }
  #berries { left: auto; right: max(.8rem, env(safe-area-inset-right)); transform: none; }
  .mv small { display: none; } }

/* ---------- debug (?debug na URL): botão que joga a solução e mostra a sequência ---------- */
.dbg { display: none !important; } body.debug .dbg:not(.hidden) { display: flex !important; }
#b-solve { background: linear-gradient(#ff7a9a, #d93a6a); } #b-solve.on { border-color: #fff; }
#dbg-sol { position: fixed; z-index: 11; left: 50%; transform: translateX(-50%); bottom: 4.2rem; max-width: 94vw; height: auto; min-height: 2.4rem; padding: .2rem .8rem; white-space: normal; flex-wrap: wrap;
  gap: .1rem; font-size: 1.1rem; line-height: 1.3; color: var(--mute); pointer-events: none; }
#dbg-sol b { color: var(--gold); } #dbg-sol i { font-style: normal; color: #fff; background: #d93a6a; border-radius: .3rem; padding: 0 .15rem; }

/* ---------- avisos durante a fase ---------- */
#banner { position: fixed; z-index: 12; left: 50%; top: 24%; display: flex; align-items: center; gap: .7rem; padding: .5rem 1.1rem; white-space: nowrap; pointer-events: none;
  background: linear-gradient(var(--panel), var(--panel2)); border: .19rem solid var(--ink); border-radius: 1rem; box-shadow: 0 .3rem 0 var(--ink);
  font-size: 1.3rem; animation: banner 1.8s both; }
#banner .tag { background: linear-gradient(var(--gold), var(--gold2)); color: var(--goldink); border-radius: .5rem; padding: 0 .5rem; font-size: 1rem; line-height: 1.6rem; }
#banner .goal { display: flex; align-items: center; gap: .2rem; color: var(--gold); font-size: 1.1rem; }
#banner .berry { width: 1.4rem; height: 1.4rem; stroke: none; color: #ff5f9e; }
#oops, #tip, #keys { position: fixed; z-index: 11; left: 50%; transform: translateX(-50%); pointer-events: none; }
#oops { top: 30%; color: #ffd0c4; } #oops.show { animation: oops 1.5s both; }
#tip { top: 4.4rem; max-width: 92vw; white-space: normal; height: auto; min-height: 2.6rem; padding: .3rem .9rem; font-size: .95rem; line-height: 1.2; }
#keys { bottom: 1rem; height: 2.2rem; font-size: .8rem; color: var(--mute); gap: .4rem; background: rgba(34, 22, 96, .7); box-shadow: none; transition: opacity .6s; }
#keys b { color: var(--cream); background: rgba(255, 255, 255, .14); border-radius: .35rem; padding: 0 .4rem; line-height: 1.4rem; margin-left: .5rem; }
#keys b:first-child { margin-left: 0; }
body.played #keys { opacity: 0; }
body.nodrop #keys b:nth-last-of-type(1), body.nodrop #keys span:nth-last-of-type(1) { display: none; }
@media (orientation: portrait) { #tip { top: 7.2rem; } }
.flyer { position: fixed; left: 0; top: 0; width: 40px; height: 40px; pointer-events: none; z-index: 50; }

/* ---------- setas de toque (em px: o jogo reserva a área pelo tamanho --ab) ---------- */
body.size-s { --ab: 52px; } body.size-l { --ab: 78px; }
#touch { transition: opacity .25s; }
#touch .pad { position: fixed; z-index: 10; bottom: max(16px, env(safe-area-inset-bottom)); }
#touch .left { left: max(22px, env(safe-area-inset-left)); } #touch .right { right: max(22px, env(safe-area-inset-right)); }
body.lefty #touch .left { left: auto; right: max(22px, env(safe-area-inset-right)); } body.lefty #touch .right { right: auto; left: max(22px, env(safe-area-inset-left)); }
#touch .cross { display: grid; grid-template-columns: repeat(3, calc(var(--ab) * .92)); grid-template-rows: repeat(3, calc(var(--ab) * .82)); padding: 10px; align-items: center; justify-items: center; }
#touch .cross .up { grid-area: 1 / 2; } #touch .cross .lf { grid-area: 2 / 1; } #touch .cross .rt { grid-area: 2 / 3; } #touch .cross .dn { grid-area: 3 / 2; }
.ab { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(var(--ab) * .9); height: calc(var(--ab) * .9); border-radius: 50%; color: var(--cream);
  background: rgba(95, 67, 220, .78); border: 3px solid var(--ink); box-shadow: 0 4px 0 rgba(27, 17, 71, .85), inset 0 2px 0 rgba(255, 255, 255, .3); transition: transform .06s; }
.ab svg { width: 50%; height: 50%; pointer-events: none; }
.ab.up svg { transform: rotate(-90deg); } .ab.dn svg { transform: rotate(90deg); } .ab.lf svg { transform: scaleX(-1); }
.ab:active { transform: translateY(3px); background: rgba(132, 104, 247, .95); box-shadow: 0 1px 0 rgba(27, 17, 71, .85); }
#touch .right { padding: 12px; }
.ab.drop { width: calc(var(--ab) * 1.3); height: calc(var(--ab) * 1.3); background: linear-gradient(var(--gold), var(--gold2)); color: var(--goldink); }
.ab.drop.off { filter: grayscale(.9) brightness(.6); } .ab.drop.gone { display: none; }
.ab.drop.hot, .ab.hinted { animation: pulse 1.1s ease-in-out infinite; }
.ab.hinted { border-color: #fff; background: rgba(132, 104, 247, 1); }
@media (orientation: portrait) { body.nodrop #touch .left { left: 50%; transform: translateX(-50%); } }

/* ---------- telas ---------- */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; box-sizing: border-box;
  padding: max(.6rem, env(safe-area-inset-top)) .8rem max(.6rem, env(safe-area-inset-bottom)); }
.screen .tl, .screen .tr { position: absolute; top: max(.6rem, env(safe-area-inset-top)); }
.screen .tl { left: max(.8rem, env(safe-area-inset-left)); } .screen .tr { right: max(.8rem, env(safe-area-inset-right)); }
#title .logo { width: min(20rem, 66vw); max-height: 24vh; object-fit: contain; }
#title .title-art { width: min(30rem, 86vw); height: min(26vh, 12rem); }
#title .btns { display: flex; flex-direction: column; gap: .8rem; width: min(15rem, 76vw); }
#title .btns .btn { width: 100%; }
.topbtns { display: flex; gap: .5rem; }
/* toque para começar: só logo, Lumi e o convite; o menu aparece depois do primeiro toque */
#start { display: none; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 .14rem 0 var(--ink), 0 0 1rem rgba(255, 200, 90, .7); animation: blink 1.4s ease-in-out infinite; height: 7.2rem; align-items: center; }
body.boot #start { display: flex; } body.boot #title .btns, body.boot #title .topbtns, body.boot #title-stars { display: none; }
body.boot #title { cursor: pointer; }
@media (max-height: 460px) { #start { height: 2.9rem; font-size: 1.2rem; } }
#title-stars { position: absolute; top: max(.8rem, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); }
#title .foot { position: absolute; right: 1rem; bottom: .6rem; font-size: .75rem; font-weight: 600; opacity: .55; }
@media (max-height: 460px) { #title { gap: .5rem; } #title .logo { height: 19vh; width: auto; } #title .title-art { height: 30vh; }
  #title .btns { flex-direction: row; width: min(30rem, 86vw); } #title .btns .btn { flex: 1; height: 2.9rem; font-size: 1.2rem; } }

#lv-world { position: absolute; top: max(.8rem, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); font-size: 1.1rem; }
#lv-stars { position: absolute; top: max(.8rem, env(safe-area-inset-top)); right: max(.8rem, env(safe-area-inset-right)); }
#lv-grid { position: relative; width: min(84vw, 40rem); height: min(62vh, 16rem); margin-top: 2.6rem; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail path { fill: none; stroke: rgba(255, 246, 220, .4); stroke-width: 5px; stroke-dasharray: 1 13; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lv { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; box-sizing: border-box; width: 5.2rem; height: 5.7rem; margin: -2.85rem 0 0 -2.6rem; overflow: hidden;
  font-size: 2.4rem; line-height: 3.6rem; text-align: center; color: var(--cream); background: linear-gradient(var(--vio), var(--vio2)); border: .19rem solid var(--ink); border-radius: 1.2rem;
  box-shadow: 0 .3rem 0 var(--ink), inset 0 .14rem 0 rgba(255, 255, 255, .38); animation: lvin .3s both; transition: transform .08s, filter .15s; }
.lv:hover { filter: brightness(1.1); } .lv:active { transform: translateY(.2rem); }
.lv.done { background: linear-gradient(var(--gold), var(--gold2)); color: var(--goldink); }
.lv.cur { border-color: #fff; box-shadow: 0 .3rem 0 var(--ink), 0 0 1.2rem rgba(255, 255, 255, .7), inset 0 .14rem 0 rgba(255, 255, 255, .38); animation: lvin .3s both, pulse 1.3s .3s ease-in-out infinite; }
.lv.locked { background: #2a1f66; color: transparent; font-size: 0; line-height: 0; justify-content: center; align-items: center; box-shadow: 0 .3rem 0 var(--ink); cursor: default; }
/* estrelas numa faixa escura na base da ficha: cheia = dourada com contorno, vazia = buraco escuro */
.lv .mini { display: flex; justify-content: center; align-items: center; gap: .12rem; height: 1.8rem; background: rgba(27, 17, 71, .55); }
.lv .mini svg { width: 1.25rem; height: 1.25rem; color: rgba(255, 255, 255, .16); stroke: none; }
.lv .mini svg.on { color: var(--gold); stroke: #fff3c0; stroke-width: 1; }
.lv .lk { width: 1.9rem; height: 1.9rem; color: var(--mute); }
#lv-lockmsg { position: absolute; z-index: 2; left: 50%; bottom: 1rem; transform: translateX(-50%); }
.ib.side { position: absolute; top: 50%; margin-top: -1.5rem; z-index: 3; }
.ib.side.l { left: max(.8rem, env(safe-area-inset-left)); } .ib.side.r { right: max(.8rem, env(safe-area-inset-right)); }
.ib.side.off { opacity: .3; pointer-events: none; }
@media (orientation: portrait) {
  #lv-grid { width: min(100vw, 22rem); height: min(68vh, 34rem); margin-top: 1rem; }
  #lv-world { top: calc(max(.8rem, env(safe-area-inset-top)) + 3.6rem); }
  .ib.side { top: auto; bottom: max(1rem, env(safe-area-inset-bottom)); } .ib.side.l { left: calc(50% - 4rem); } .ib.side.r { right: calc(50% - 4rem); }
  #lv-lockmsg { bottom: 5rem; } }

/* ---------- final ---------- */
#ending { gap: .7rem; text-align: center; }
#ending > *:not(.petalbox):not(.tl) { position: relative; z-index: 1; } #ending .tl { z-index: 1; }
.end-lumi { display: flex; align-items: flex-end; justify-content: center; animation: hop 1.1s ease-in-out infinite; }
.end-lumi img { width: 4.2rem; } .end-lumi img.h { width: 5.2rem; margin-left: -.6rem; }
#ending h1 { margin: 0; font-size: 3rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .03em; color: var(--gold); max-width: 92vw;
  text-shadow: 0 .2rem 0 var(--ink), .12rem 0 0 var(--ink), -.12rem 0 0 var(--ink), 0 -.12rem 0 var(--ink), 0 0 1.6rem rgba(255, 190, 80, .6); }
.end-msg { margin: 0; max-width: min(26rem, 88vw); font-size: 1.15rem; line-height: 1.25; text-shadow: 0 .12rem 0 var(--ink); }
#end-stars { height: 3rem; font-size: 1.4rem; padding: 0 1.2rem; } #end-stars svg { width: 1.6rem; height: 1.6rem; }
.end-hint { margin: 0; font-size: .95rem; font-weight: 600; color: var(--mute); text-shadow: 0 .1rem 0 var(--ink); }
#ending .btns { width: min(15rem, 76vw); margin-top: .4rem; } #ending .btns .btn { width: 100%; }
.petalbox { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.petalbox i { position: absolute; top: -14px; width: 11px; height: 7px; border-radius: 50%; opacity: .9; animation: petalfall linear infinite both; }
@media (max-height: 460px) { #ending { gap: .35rem; } #ending h1 { font-size: 2.2rem; } .end-lumi img { width: 3rem; } .end-lumi img.h { width: 3.7rem; } .end-msg { font-size: 1rem; max-width: 80vw; } }

/* ---------- modais ---------- */
#veil { position: fixed; z-index: 20; inset: 0; background: rgba(10, 6, 34, .74); }
body.win #veil { background: rgba(10, 6, 34, .3); }
.modal { position: fixed; z-index: 30; left: 50%; top: 50%; transform: translate(-50%, -50%); box-sizing: border-box; width: min(21rem, 92vw);
  display: flex; flex-direction: column; align-items: stretch; gap: .7rem; padding: 0 1.1rem 1.2rem; text-align: center;
  background: linear-gradient(var(--panel), var(--panel2)); border: .22rem solid var(--ink); border-radius: 1.4rem;
  box-shadow: 0 .45rem 0 var(--ink), 0 1.4rem 2.6rem rgba(5, 2, 25, .6); animation: pop .22s cubic-bezier(.3, 1.4, .5, 1) both; }
.modal h2 { margin: 0 -1.1rem .2rem; padding: 0 3rem; height: 3.1rem; line-height: 3.1rem; font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; color: var(--goldink); background: linear-gradient(var(--gold), var(--gold2)); border-bottom: .19rem solid var(--ink);
  border-radius: 1.15rem 1.15rem 0 0; box-shadow: inset 0 .14rem 0 rgba(255, 255, 255, .4); }
.modal .ib.x { position: absolute; top: .42rem; right: .5rem; width: 2.25rem; height: 2.25rem; border-radius: .7rem; box-shadow: 0 .16rem 0 var(--ink); z-index: 2; }
.modal p, .modal .sub, .modal .tagline, .modal .goalline { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.25; color: var(--mute); }
.modal p:empty, .modal .sub:empty, .modal .goalline:empty { display: none; }
.modal .btn { width: 100%; }
.sleepy, .hint-lumi, .rays { display: none; }
/* fase concluída */
#m-complete .happy { display: flex; justify-content: center; align-items: flex-end; position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: -.5rem; pointer-events: none; }
#m-complete .happy img { width: 2.6rem; } #m-complete .happy img.h { width: 3.2rem; margin-left: -.4rem; }
#petals { position: absolute; inset: 0; overflow: hidden; border-radius: 1.2rem; pointer-events: none; }
#petals i { position: absolute; top: -12px; width: 9px; height: 6px; border-radius: 50%; opacity: .9; animation: petal linear both; }
#m-complete > *:not(#petals):not(.happy) { position: relative; }
#c-lv { color: var(--cream) !important; font-size: 1.05rem !important; font-weight: 800 !important; }
.stars { display: flex; justify-content: center; align-items: flex-end; gap: .1rem; }
.stars i { width: 3.7rem; height: 3.7rem; background: url(../assets/hud/star-off.webp) center / contain no-repeat; }
.stars i:nth-child(2) { width: 4.9rem; height: 4.9rem; margin-bottom: .5rem; }
.stars i.on { background-image: url(../assets/hud/star-on.webp); animation: starpop .5s cubic-bezier(.3, 1.7, .5, 1) both; }
.stars i.on:nth-child(2) { animation-delay: .18s; } .stars i.on:nth-child(3) { animation-delay: .36s; }
.c-body, .c-left { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.stat { display: flex; align-items: baseline; justify-content: center; gap: .5rem; font-size: 1rem; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.stat b { font-size: 2rem; line-height: 1; color: var(--cream); }
.stamp { align-self: center; padding: 0 .8rem; line-height: 1.7rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  color: var(--goldink); background: linear-gradient(var(--gold), var(--gold2)); border: .14rem solid var(--ink); border-radius: .6rem; }
.c-right { display: flex; align-items: center; gap: .5rem; width: 100%; margin-top: .4rem; }
.c-right .row2 { display: contents; } .c-right .ib { order: 1; width: 3.4rem; height: 3.4rem; } .c-right #b-next { order: 2; flex: 1; width: auto; min-width: 0; }
@media (max-height: 460px) { #m-complete .happy { display: none; } }
/* ajustes */
#m-settings { width: min(25rem, 94vw); }
.tabs { display: flex; gap: .3rem; padding: .3rem; background: rgba(0, 0, 0, .28); border-radius: .95rem; }
.tabs button { flex: 1; display: flex; align-items: center; justify-content: center; height: 2.4rem; border-radius: .7rem; color: var(--mute); transition: background .15s, color .15s; }
.tabs button svg { width: 1.5rem; height: 1.5rem; }
.tabs button.on { background: linear-gradient(var(--gold), var(--gold2)); color: var(--goldink); box-shadow: inset 0 .12rem 0 rgba(255, 255, 255, .4); }
.tab { display: flex; flex-direction: column; gap: .5rem; }
.row { display: flex; align-items: center; gap: .6rem; box-sizing: border-box; min-height: 2.9rem; padding: .3rem .8rem; text-align: left; font-size: 1rem; line-height: 1.15;
  background: rgba(0, 0, 0, .24); border-radius: .8rem; }
.row > svg { width: 1.3rem; height: 1.3rem; color: var(--mute); flex: none; }
.row > span { flex: 1; min-width: 0; }
.seg { display: flex; gap: .3rem; flex: none; }
.seg button { height: 2.1rem; min-width: 2.3rem; padding: 0 .7rem; border-radius: .6rem; background: rgba(255, 255, 255, .12); font-size: .95rem; }
.seg button.on, .card.on { background: linear-gradient(var(--gold), var(--gold2)); color: var(--goldink); }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.langs button { height: 2.15rem; padding: 0 .5rem; border-radius: .6rem; background: rgba(0, 0, 0, .24); font-size: .95rem; white-space: nowrap; overflow: hidden; }
.langs button.on { background: linear-gradient(var(--gold), var(--gold2)); color: var(--goldink); }
@media (max-height: 460px) { .langs { grid-template-columns: repeat(4, 1fr); } }
.cards { display: flex; gap: .5rem; }
.card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .4rem; border-radius: .8rem; background: rgba(0, 0, 0, .24); font-size: .95rem; }
.mini-pad { display: flex; gap: .1rem; height: 1.6rem; align-items: center; } .mini-pad svg { width: 1.2rem; height: 1.2rem; } .swipe-ic svg { width: 1.6rem; height: 1.6rem; }
.sw { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 3.2rem; height: 1.8rem; margin: 0; border-radius: 1rem; background: rgba(255, 255, 255, .16);
  border: .14rem solid var(--ink); cursor: pointer; transition: background .15s; }
.sw::after { content: ''; position: absolute; left: .14rem; top: .12rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--cream); box-shadow: 0 .1rem 0 rgba(0, 0, 0, .3); transition: transform .15s; }
.sw:checked { background: linear-gradient(var(--gold), var(--gold2)); } .sw:checked::after { transform: translateX(1.36rem); }
input[type=range] { appearance: none; -webkit-appearance: none; flex: none; width: 9rem; max-width: 46%; height: .6rem; margin: 0; border-radius: .3rem; background: rgba(255, 255, 255, .2); cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: linear-gradient(var(--gold), var(--gold2)); border: .16rem solid var(--ink); }
input[type=range]::-moz-range-thumb { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--gold); border: .16rem solid var(--ink); }

/* ---------- animações ---------- */
@keyframes blink { 50% { opacity: .35; transform: scale(.97); } }
@keyframes hop { 50% { transform: translateY(-.5rem); } }
@keyframes petalfall { to { transform: translate(40px, 105vh) rotate(720deg); } }
@keyframes pop { from { transform: translate(-50%, -46%) scale(.9); opacity: 0; } }
@keyframes starpop { from { transform: scale(0); } }
@keyframes tick { 40% { transform: scale(1.3); } }
@keyframes bump { 40% { scale: 1.1; } }
@keyframes kick { 50% { transform: rotate(-50deg); } }
@keyframes pulse { 50% { transform: scale(1.08); filter: brightness(1.2); } }
@keyframes lvin { from { transform: scale(.6); opacity: 0; } }
@keyframes petal { to { transform: translate(30px, 60vh) rotate(540deg); opacity: 0; } }
@keyframes banner { 0% { transform: translate(-50%, -1rem) scale(.9); opacity: 0; } 12%, 80% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, -.6rem); opacity: 0; } }
@keyframes oops { 0% { transform: translate(-50%, .6rem) scale(.8); opacity: 0; } 15%, 75% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, -.6rem); opacity: 0; } }
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
