/* =========================================================
   VEGANOID · micro.css · micro-interações contextuais e ilustradas
   ========================================================= */

/* ---------- copos ---------- */
.water{gap:7px}
.glass{height:56px;border:0;background:none;box-shadow:none;border-radius:0;position:relative;overflow:visible;padding:0}
.glass::before,.glass::after{display:none}
.glass svg{width:100%;height:100%;display:block;overflow:visible}
.glass .cup{fill:rgba(255,255,255,.04);stroke:rgba(246,227,220,.42);stroke-width:1.6;stroke-linejoin:round;transition:stroke .3s,fill .3s}
.glass:hover .cup{stroke:rgba(246,227,220,.8);fill:rgba(255,255,255,.08)}
.glass .shine{stroke:rgba(255,255,255,.28);stroke-width:2.2;stroke-linecap:round}
.glass .liq{transform:translateY(50px);transition:transform 1s cubic-bezier(.3,1.35,.4,1)}
.glass.is-on .liq{transform:translateY(0)}
.glass .wave{fill:url(#waterGrad);fill:#F28BAE;animation:ripple 1.7s linear infinite}
.glass.is-on .wave{fill:#F28BAE}
@keyframes ripple{to{transform:translateX(-40px)}}
.glass .bub{fill:rgba(255,255,255,.7);opacity:0}
.glass.is-on .bub{animation:bub 2.4s ease-in infinite}
.glass.is-on .b2{animation-delay:.8s}.glass.is-on .b3{animation-delay:1.5s}
@keyframes bub{0%{opacity:0;transform:translateY(0)}15%{opacity:.9}100%{opacity:0;transform:translateY(-34px)}}
.glass.is-on .cup{stroke:rgba(246,227,220,.9)}
.glass.is-on{filter:drop-shadow(0 6px 14px rgba(242,139,174,.45))}
/* gota caindo + splash */
.glass .drop{position:absolute;left:50%;top:-14px;width:7px;height:10px;margin-left:-3.5px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;background:linear-gradient(180deg,#FFD3E2,#F28BAE);opacity:0;pointer-events:none}
.glass.pour .drop{animation:drop .42s cubic-bezier(.5,0,.9,.6) both}
@keyframes drop{0%{opacity:0;transform:translateY(-6px) scaleY(.8)}20%{opacity:1}100%{opacity:1;transform:translateY(26px) scaleY(1.2)}}
.glass .splash{position:absolute;left:50%;top:34%;width:14px;height:6px;margin-left:-7px;border-radius:50%;border:1.5px solid rgba(255,255,255,.8);opacity:0;pointer-events:none}
.glass.pour .splash{animation:splash .5s .4s ease-out both}
@keyframes splash{0%{opacity:.9;transform:scale(.3)}100%{opacity:0;transform:scale(2.2)}}
.glass.pour svg{animation:jiggle .6s .4s var(--spring)}
@keyframes jiggle{0%{transform:scale(1)}30%{transform:scale(1.06,.94)}60%{transform:scale(.97,1.04)}100%{transform:scale(1)}}
/* brinde quando fecha os 8 */
.water.cheers .glass{animation:cheers .7s var(--spring) both}
.water.cheers .glass:nth-child(1){animation-delay:.0s}.water.cheers .glass:nth-child(2){animation-delay:.05s}.water.cheers .glass:nth-child(3){animation-delay:.1s}.water.cheers .glass:nth-child(4){animation-delay:.15s}
.water.cheers .glass:nth-child(5){animation-delay:.2s}.water.cheers .glass:nth-child(6){animation-delay:.25s}.water.cheers .glass:nth-child(7){animation-delay:.3s}.water.cheers .glass:nth-child(8){animation-delay:.35s}
@keyframes cheers{0%{transform:translateY(0) rotate(0)}40%{transform:translateY(-10px) rotate(-8deg)}70%{transform:translateY(2px) rotate(4deg)}100%{transform:translateY(0) rotate(0)}}

/* ---------- pictogramas de exercício ---------- */
.pict{width:28px;height:28px;display:block;overflow:visible}
.pict .fig{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.pict .fig circle{fill:currentColor;stroke:none}
.frame .pict{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);width:26px;height:26px;color:rgba(246,227,220,.55)}
.frame.is-now .pict{color:var(--lemon)}
.frame.is-done .pict{color:var(--ink)}
.rows li.has-pict{grid-template-columns:34px 32px 1fr auto}
.rows li .pict{color:rgba(246,227,220,.5)}
.rows li.is-now .pict{color:var(--lemon)}
/* animações: só o exercício atual se mexe */
.frame.is-now .fig-jack .al{transform-origin:20px 14px;animation:jackL .5s ease-in-out infinite alternate}
.frame.is-now .fig-jack .ar{transform-origin:20px 14px;animation:jackR .5s ease-in-out infinite alternate}
.frame.is-now .fig-jack .ll{transform-origin:20px 24px;animation:jackLL .5s ease-in-out infinite alternate}
.frame.is-now .fig-jack .lr{transform-origin:20px 24px;animation:jackLR .5s ease-in-out infinite alternate}
@keyframes jackL{to{transform:rotate(-70deg)}}@keyframes jackR{to{transform:rotate(70deg)}}
@keyframes jackLL{to{transform:rotate(14deg)}}@keyframes jackLR{to{transform:rotate(-14deg)}}
.frame.is-now .fig-squat{transform-origin:20px 35px;animation:squat .9s ease-in-out infinite alternate}
@keyframes squat{to{transform:scaleY(.78)}}
.frame.is-now .fig-pushup{animation:pushup .9s ease-in-out infinite alternate}
@keyframes pushup{to{transform:translateY(5px)}}
.frame.is-now .fig-plank{transform-origin:20px 26px;animation:plank 1.6s ease-in-out infinite alternate}
@keyframes plank{to{transform:scale(1.03) translateY(-.6px)}}
.frame.is-now .fig-lunge{animation:lunge .8s ease-in-out infinite alternate}
@keyframes lunge{to{transform:translateY(4px)}}
.frame.is-now .fig-stretch{transform-origin:20px 36px;animation:stretch 1.4s ease-in-out infinite alternate}
@keyframes stretch{from{transform:rotate(-7deg)}to{transform:rotate(7deg)}}
.rows li.is-now .fig-jack .al{transform-origin:20px 14px;animation:jackL .5s ease-in-out infinite alternate}
.rows li.is-now .fig-jack .ar{transform-origin:20px 14px;animation:jackR .5s ease-in-out infinite alternate}
.rows li.is-now .fig-squat{transform-origin:20px 35px;animation:squat .9s ease-in-out infinite alternate}
.rows li.is-now .fig-pushup{animation:pushup .9s ease-in-out infinite alternate}
.rows li.is-now .fig-plank{transform-origin:20px 26px;animation:plank 1.6s ease-in-out infinite alternate}
.rows li.is-now .fig-lunge{animation:lunge .8s ease-in-out infinite alternate}
.rows li.is-now .fig-stretch{transform-origin:20px 36px;animation:stretch 1.4s ease-in-out infinite alternate}

/* ---------- bonequinhos articulados v2 ---------- */
.pict .fig{stroke-width:2.7}
.pict .fig g{transform-box:view-box}
/* polichinelo */
.is-now .fig-jk .armL{transform-origin:20px 13px;animation:jkL .5s ease-in-out infinite alternate}
.is-now .fig-jk .armR{transform-origin:20px 13px;animation:jkR .5s ease-in-out infinite alternate}
.is-now .fig-jk .legL{transform-origin:20px 23px;animation:jkLL .5s ease-in-out infinite alternate}
.is-now .fig-jk .legR{transform-origin:20px 23px;animation:jkLR .5s ease-in-out infinite alternate}
.is-now .fig-jk .body{animation:jkHop .5s ease-in-out infinite alternate}
@keyframes jkL{to{transform:rotate(150deg)}}@keyframes jkR{to{transform:rotate(-150deg)}}
@keyframes jkLL{to{transform:rotate(22deg)}}@keyframes jkLR{to{transform:rotate(-22deg)}}
@keyframes jkHop{to{transform:translateY(-1.6px)}}
/* agachamento */
.is-now .fig-sq .torso{transform-origin:20px 23px;animation:sqTorso .95s ease-in-out infinite alternate}
.is-now .fig-sq .thigh{transform-origin:20px 23px;animation:sqThigh .95s ease-in-out infinite alternate}
.is-now .fig-sq .shin{transform-origin:20px 30px;animation:sqShin .95s ease-in-out infinite alternate}
.is-now .fig-sq .hip{animation:sqHip .95s ease-in-out infinite alternate}
@keyframes sqTorso{to{transform:rotate(28deg)}}@keyframes sqThigh{to{transform:rotate(-80deg)}}
@keyframes sqShin{to{transform:rotate(82deg)}}@keyframes sqHip{to{transform:translateY(5px)}}
/* flexão */
.is-now .fig-pu .bodyP{animation:puBody .9s ease-in-out infinite alternate}
.is-now .fig-pu .ua{transform-origin:14px 20px;animation:puUa .9s ease-in-out infinite alternate}
.is-now .fig-pu .fa{transform-origin:15px 26px;animation:puFa .9s ease-in-out infinite alternate}
@keyframes puBody{to{transform:translateY(5px)}}@keyframes puUa{to{transform:rotate(-55deg)}}@keyframes puFa{to{transform:rotate(60deg)}}
/* prancha */
.is-now .fig-pl .bodyP{transform-origin:35px 30px;animation:plHold 1.8s ease-in-out infinite alternate}
@keyframes plHold{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(-.8px) rotate(-1.2deg)}}
/* afundo */
.is-now .fig-lu .bodyL{animation:luBody .85s ease-in-out infinite alternate}
.is-now .fig-lu .thighF{transform-origin:20px 23px;animation:luThF .85s ease-in-out infinite alternate}
.is-now .fig-lu .shinF{transform-origin:20px 30px;animation:luShF .85s ease-in-out infinite alternate}
.is-now .fig-lu .thighB{transform-origin:20px 23px;animation:luThB .85s ease-in-out infinite alternate}
.is-now .fig-lu .shinB{transform-origin:20px 30px;animation:luShB .85s ease-in-out infinite alternate}
@keyframes luBody{to{transform:translateY(5px)}}@keyframes luThF{to{transform:rotate(-70deg)}}@keyframes luShF{to{transform:rotate(72deg)}}
@keyframes luThB{to{transform:rotate(38deg)}}@keyframes luShB{to{transform:rotate(-28deg)}}
/* alongamento */
.is-now .fig-st .hipS{transform-origin:20px 25px;animation:stBend 1.6s ease-in-out infinite alternate}
@keyframes stBend{from{transform:rotate(-16deg)}to{transform:rotate(16deg)}}
/* pose parada: posição neutra leve (sem animação) com os mesmos grupos */
.frame:not(.is-now) .fig-sq .thigh,.rows li:not(.is-now) .fig-sq .thigh{transform-origin:20px 23px;transform:rotate(-30deg)}
.frame:not(.is-now) .fig-sq .shin,.rows li:not(.is-now) .fig-sq .shin{transform-origin:20px 30px;transform:rotate(32deg)}
.frame:not(.is-now) .fig-sq .torso,.rows li:not(.is-now) .fig-sq .torso{transform-origin:20px 23px;transform:rotate(12deg)}
.frame:not(.is-now) .fig-jk .armL,.rows li:not(.is-now) .fig-jk .armL{transform-origin:20px 13px;transform:rotate(110deg)}
.frame:not(.is-now) .fig-jk .armR,.rows li:not(.is-now) .fig-jk .armR{transform-origin:20px 13px;transform:rotate(-110deg)}
.frame:not(.is-now) .fig-jk .legL,.rows li:not(.is-now) .fig-jk .legL{transform-origin:20px 23px;transform:rotate(16deg)}
.frame:not(.is-now) .fig-jk .legR,.rows li:not(.is-now) .fig-jk .legR{transform-origin:20px 23px;transform:rotate(-16deg)}
.frame:not(.is-now) .fig-lu .thighF,.rows li:not(.is-now) .fig-lu .thighF{transform-origin:20px 23px;transform:rotate(-45deg)}
.frame:not(.is-now) .fig-lu .shinF,.rows li:not(.is-now) .fig-lu .shinF{transform-origin:20px 30px;transform:rotate(46deg)}
.frame:not(.is-now) .fig-lu .thighB,.rows li:not(.is-now) .fig-lu .thighB{transform-origin:20px 23px;transform:rotate(28deg)}
.frame:not(.is-now) .fig-lu .shinB,.rows li:not(.is-now) .fig-lu .shinB{transform-origin:20px 30px;transform:rotate(-20deg)}
.frame:not(.is-now) .fig-pu .ua,.rows li:not(.is-now) .fig-pu .ua{transform-origin:14px 20px;transform:rotate(-30deg)}
.frame:not(.is-now) .fig-pu .fa,.rows li:not(.is-now) .fig-pu .fa{transform-origin:15px 26px;transform:rotate(34deg)}
.frame:not(.is-now) .fig-st .hipS,.rows li:not(.is-now) .fig-st .hipS{transform-origin:20px 25px;transform:rotate(-12deg)}

/* ---------- tigelas ---------- */
.meals li{grid-template-columns:52px 1fr auto}
.bowl-wrap{display:grid;justify-items:center;gap:2px}
.bowl-wrap .mono{font-size:8px;opacity:.5}
.bowl{width:40px;height:40px;overflow:visible}
.bowl .rim{fill:rgba(255,255,255,.06);stroke:rgba(246,227,220,.5);stroke-width:1.8;transition:fill .3s,stroke .3s}
.meals li.is-done .bowl .rim{fill:rgba(246,227,220,.92);stroke:var(--cream)}
.bowl .ing{transform-origin:center;transform:scale(0) translateY(6px);transition:transform .55s var(--spring)}
.bowl .i1{fill:var(--lemon)}.bowl .i2{fill:#C9E265}.bowl .i3{fill:var(--rasp-300)}.bowl .i4{fill:#4F9D5B}
.meals li.is-done .bowl .ing{transform:scale(1) translateY(0)}
.meals li.is-done .bowl .i2{transition-delay:.08s}.meals li.is-done .bowl .i3{transition-delay:.16s}.meals li.is-done .bowl .i4{transition-delay:.24s}
.bowl .steam{fill:none;stroke:rgba(246,227,220,.7);stroke-width:1.6;stroke-linecap:round;opacity:0}
.meals li.is-done .bowl .steam{animation:steam 2.2s ease-out infinite}
.meals li.is-done .bowl .s2{animation-delay:.5s}.meals li.is-done .bowl .s3{animation-delay:1s}
@keyframes steam{0%{opacity:0;transform:translateY(4px)}30%{opacity:.8}100%{opacity:0;transform:translateY(-8px)}}
.meals li.is-done{opacity:1}
.meals li.is-done>div{opacity:.6}

/* ---------- chama da sequência ---------- */
.tile .flame{position:absolute;right:14px;bottom:10px;width:34px;height:44px;transform:scale(var(--s,.8));transform-origin:50% 100%;transition:transform .6s var(--spring);overflow:visible}
.tile .flame .f-out{fill:url(#fl);transform-origin:50% 100%;animation:flick .7s ease-in-out infinite alternate}
.tile .flame .f-in{fill:#EEFDC6;opacity:.9;transform-origin:50% 100%;animation:flick .5s .15s ease-in-out infinite alternate}
@keyframes flick{0%{transform:scaleY(1) skewX(0)}100%{transform:scaleY(1.08) skewX(-4deg)}}
.tile .flame{filter:drop-shadow(0 0 10px rgba(196,242,58,.55))}

/* ---------- play que respira ---------- */
.tile .play::before{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid rgba(42,7,20,.35);animation:breathe-ring 2.2s ease-out infinite}
@keyframes breathe-ring{0%{transform:scale(.85);opacity:0}30%{opacity:.8}100%{transform:scale(1.35);opacity:0}}

/* ---------- check desenhado nas células do FDS ---------- */
.cell .ck{width:18px;height:18px;margin-top:8px;overflow:visible}
.cell .ck path{fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:24;animation:draw .5s .15s var(--ease) forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.cell.is-done{animation:cellpop .5s var(--spring)}
@keyframes cellpop{0%{transform:scale(.8)}100%{transform:scale(1)}}
.tile .flame{top:12px;bottom:auto;right:16px;width:30px;height:40px}
.tile .flame{opacity:calc(.55 + var(--s,.7) * .45)}

/* ---------- botão em andamento: líquido Lemon sobre tinta ---------- */
.morph{--p:0%;overflow:hidden}
.morph.is-running,.morph.is-paused{background:linear-gradient(180deg,#3A0B1F,var(--ink));color:var(--cream);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 18px 40px -14px rgba(40,0,20,.8)}
.morph.is-running::after,.morph.is-paused::after{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--p);border-radius:999px 0 0 999px;
  background:linear-gradient(90deg,#A6DA1F,var(--lemon) 70%,#DCF98C);box-shadow:0 0 28px rgba(196,242,58,.55);transition:width .33s linear}
.morph.is-running::before,.morph.is-paused::before{content:"";position:absolute;left:var(--p);top:-12%;height:124%;width:22px;margin-left:-11px;transition:left .33s linear;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 100' preserveAspectRatio='none'%3E%3Cpath fill='%23DCF98C' d='M0 0H8C16 12 4 24 10 36C16 48 2 60 9 72C15 84 6 92 11 100H0Z'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  animation:edge 1.1s ease-in-out infinite alternate;z-index:1}
@keyframes edge{from{transform:translateY(-4px)}to{transform:translateY(4px)}}
.morph.is-paused::before{animation:none}
.morph.is-paused::after{filter:saturate(.6) brightness(.9)}
.morph>span{position:relative;z-index:2}
.morph .lbl-ink{position:absolute;left:0;top:0;bottom:0;right:0;display:flex;align-items:center;padding-left:26px;font:inherit;color:var(--ink);z-index:2;pointer-events:none;
  clip-path:inset(0 calc(100% - var(--p) - 9px) 0 0);transition:clip-path .33s linear}
.morph:not(.is-running):not(.is-paused) .lbl-ink{display:none}
.morph .arr{z-index:3}
.morph.is-running .arr{background:rgba(246,227,220,.14)}
.morph.is-running .arr::after{width:4px;height:12px;border:0;border-left:3px solid currentColor;border-right:3px solid currentColor;transform:none;left:13px;top:12px}
.morph.is-paused .arr{background:var(--lemon)}
.morph.is-paused .arr::after{width:0;height:0;border:0;border-left:11px solid var(--ink);border-top:7px solid transparent;border-bottom:7px solid transparent;transform:none;left:15px;top:11px}
.morph.is-done .arr::after{width:6px;height:11px;border:solid currentColor;border-width:0 2.5px 2.5px 0;transform:rotate(45deg);left:14px;top:9px}

/* ---------- elemento clicado vira a tela ---------- */
.zoomer{transform:none !important;animation:none !important;display:block}
.zoomer>*{transition:opacity .18s ease,transform .5s cubic-bezier(.2,.8,.2,1);transform-origin:0 0}
.zoomer.is-full>*{opacity:0;transform:translateY(-10px)}
.zoomer::before{animation:none !important}
.zoomer .play::before{animation:none}

/* ---------- frame atual: progresso do exercício ---------- */
.frame::after{content:"";position:absolute;left:8px;right:8px;bottom:4px;height:2px;border-radius:2px;background:rgba(255,255,255,.12)}
.frame.is-now::after{background:linear-gradient(90deg,var(--lemon) var(--ep,0%),rgba(255,255,255,.14) 0);box-shadow:0 0 8px rgba(196,242,58,.4)}
.frame.is-done::after{background:rgba(42,7,20,.25)}
