/* =========================================================
   MONSTER GYM — componentes
   ========================================================= */

/* ---------- Monstro ---------- */
.mon { position: relative; width: 120px; height: 134px; flex-shrink: 0; cursor: pointer; }
.mon svg { width: 100%; height: 100%; overflow: visible; display: block; }
.mon .m-shape { transform-box: fill-box; transform-origin: 50% 100%; animation: m-breathe 3.2s ease-in-out infinite; }
.mon .m-eyes > *, .mon .m-brows > * { transform-box: fill-box; transform-origin: center; }
.mon .m-eyes > * { animation: m-blink var(--bl, 4.6s) var(--bd, 0s) infinite; }
.mon.blink2 .m-eyes > * { animation-name: m-blink2; }
/* pupilas olhando em volta (propriedade translate não briga com o piscar, que usa transform) */
.mon .m-pupil { animation: m-gaze var(--gz, 9s) var(--gd, 0s) ease-in-out infinite; }
.mon .m-mouth { transform-box: fill-box; transform-origin: center; }
.mon .m-acc { transform-box: fill-box; transform-origin: center; }
.mon .m-crown { animation: m-crown 3s ease-in-out infinite; }
@keyframes m-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .975); } }
@keyframes m-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
@keyframes m-blink2 { 0%, 88%, 92%, 96%, 100% { transform: scaleY(1); } 90% { transform: scaleY(.08); } 94% { transform: scaleY(.1); } }
@keyframes m-gaze { 0%, 16%, 100% { translate: 0 0; } 20%, 34% { translate: -5px 1px; } 38%, 52% { translate: 5px -1px; } 56%, 66% { translate: 1px -4px; } 70%, 84% { translate: 0 3px; } 88% { translate: 0 0; } }
@keyframes m-crown { 50% { transform: translateY(-3px) rotate(-3deg); } }

.mon.mood-poke .m-shape { animation: m-poke .5s cubic-bezier(.3,1.6,.5,1); }
.mon.mood-poke .m-eyes > * { animation: m-wide .5s ease; }
@keyframes m-poke { 0% { transform: scale(1.12, .82); } 60% { transform: scale(.94, 1.08); } 100% { transform: none; } }
@keyframes m-wide { 40% { transform: scale(1.18); } }

.mon.mood-happy .m-shape, .mon.mood-celebrate .m-shape { animation: m-jump .6s cubic-bezier(.3,1.4,.5,1) 3; }
.mon.mood-celebrate .m-shape { animation: m-party .7s ease-in-out 4; }
.mon.mood-happy .m-mouth, .mon.mood-celebrate .m-mouth, .mon.mood-love .m-mouth { animation: m-grin .6s ease 3; }
@keyframes m-jump { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(0) scale(1.08, .9); } 55% { transform: translateY(-18%) scale(.95, 1.06); } 80% { transform: translateY(0) scale(1.04, .96); } }
@keyframes m-party { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-14%) rotate(-8deg); } 50% { transform: translateY(0) rotate(0) scale(1.06, .94); } 75% { transform: translateY(-14%) rotate(8deg); } }
@keyframes m-grin { 50% { transform: scale(1.18, 1.3); } }

.mon.mood-love .m-shape { animation: m-love 1.2s ease-in-out 2; }
@keyframes m-love { 50% { transform: scale(1.06) rotate(-4deg); } }

.mon.mood-rest .m-shape, .mon.mood-sleep .m-shape { animation: m-sway 3.6s ease-in-out infinite; }
.mon.mood-rest .m-eyes > *, .mon.mood-sleep .m-eyes > * { animation: none; transform: scaleY(.3); }
@keyframes m-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) scale(1.02, .98); } }

.mon.mood-anxious .m-shape { animation: m-shake .32s linear infinite; }
.mon.mood-anxious .m-brows > * { transform: translateY(-14%); }
.mon.mood-anxious .m-eyes > * { animation: m-look 1.1s ease-in-out infinite; }
@keyframes m-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2.5%) rotate(-1.5deg); } 75% { transform: translateX(2.5%) rotate(1.5deg); } }
@keyframes m-look { 0%, 100% { transform: translateX(-6%); } 50% { transform: translateX(6%); } }

.mon.mood-alert .m-shape { animation: m-alert .55s cubic-bezier(.3,1.5,.5,1) infinite; }
.mon.mood-alert .m-eyes > * { transform: scale(1.15); animation: none; }
.mon.mood-alert .m-mouth { transform: scale(1.2, 1.35); }
@keyframes m-alert { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-12%) scale(.96, 1.06); } 70% { transform: translateY(0) scale(1.06, .94); } }

.m-fx { position: absolute; inset: 0; pointer-events: none; }
.m-fx .conf { position: absolute; left: 50%; top: 40%; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: conf 1.4s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes conf { 0% { opacity: 1; transform: translate(-50%, 0) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(var(--dy) + 120px)) rotate(var(--r)); } }
.m-fx .heart { position: absolute; left: 50%; top: 10%; color: #E5484D; font-size: 18px; opacity: 0; animation: heart 1.4s ease-out forwards; }
@keyframes heart { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -50px) scale(1.2); } }
.m-fx .zz { position: absolute; right: 2%; top: 4%; font-weight: 800; color: var(--mc); font-size: 16px; opacity: 0; animation: zz 2.7s ease-in-out infinite; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 10px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -30px) scale(1.2); } }
.m-fx .sweat { position: absolute; right: 12%; top: 20%; width: 12px; height: 16px; background: #8EF2FF; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; border: 2px solid #fff; animation: sweat 1s ease-in infinite; }
@keyframes sweat { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }
.m-fx .bang { position: absolute; right: -6%; top: -2%; width: 30px; height: 30px; border-radius: 50%; background: #E5484D; color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 18px; animation: pop .4s cubic-bezier(.3,1.6,.5,1), bang 1s ease-in-out infinite .4s; box-shadow: 0 3px 0 #B3262B; }
@keyframes bang { 50% { transform: scale(1.15) rotate(8deg); } }

.speech { position: relative; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 16px; font-size: .86rem; font-weight: 700; line-height: 1.35; box-shadow: var(--shadow), inset 0 -3px 0 var(--lip); }
.speech::before { content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 3px; }
.speech.top::before { left: 50%; top: auto; bottom: -7px; transform: translateX(-50%) rotate(45deg); }

/* ---------- Splash ---------- */
.splash { position: fixed; inset: 0; z-index: 200; background: var(--c-lime); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; transition: opacity .35s ease, transform .35s ease; }
.splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash .logo-mark { width: 150px; height: 150px; animation: logo-in .7s cubic-bezier(.3,1.5,.5,1) both; }
.splash .logo-mark .lm-eyes > * { transform-box: fill-box; transform-origin: center; animation: m-blink 2.2s .5s infinite; }
.splash .logo-mark .lm-head { transform-box: fill-box; transform-origin: 50% 100%; animation: m-breathe 2.4s ease-in-out infinite; }
.splash .brand-title { font-size: 3.1rem; line-height: 1; margin-top: 18px; animation: rise .5s .15s both; }
.splash .brand-sub { margin-top: 10px; font-size: .8rem; animation: rise .5s .25s both; }
@keyframes logo-in { from { transform: scale(.4) translateY(30px); opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

/* ---------- Boas-vindas / login ---------- */
.welcome { position: relative; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--safe-top); }
.welcome-crew { position: relative; width: min(92vw, 420px, 58dvh); aspect-ratio: 1; margin: 0 auto; flex-shrink: 0; }
.welcome-crew.small { width: min(70vw, 290px, 34dvh); }
.welcome-crew .orbit { position: absolute; width: 23%; aspect-ratio: 210 / 232; transform: translate(-50%, -50%); animation: float var(--t, 3s) ease-in-out var(--d, 0s) infinite; }
.welcome-crew .orbit.center { left: 50%; top: 50%; width: 40%; --t: 3.4s; z-index: 1; }
.welcome-crew .orbit .mon { width: 100%; height: 100%; }
@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 7px)) rotate(var(--rot, 2deg)); } }
.welcome-crew .orbit:nth-child(even) { --rot: -3deg; }
.welcome-bottom { position: relative; padding: 22px 24px calc(var(--safe-bottom) + 24px); text-align: center; }
.welcome-tag { font-weight: 300; letter-spacing: .24em; text-transform: uppercase; font-size: clamp(.8rem, 4vw, 1.05rem); margin: 0 0 10px; color: var(--ink); white-space: nowrap; }
.welcome-sub { color: var(--muted); font-size: .92rem; line-height: 1.45; margin: 0 auto 22px; max-width: 300px; }

.auth-form { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.auth-card { background: var(--surface); padding: calc(var(--safe-top) + 12px) 24px 26px; border-radius: 0 0 32px 32px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.auth-card h1 { margin: 0 0 6px; }
.auth-card .sub { margin-bottom: 8px; }
.uline { display: block; position: relative; margin-top: 16px; }
.uline > span { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.uline input { width: 100%; height: 48px; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); outline: none; padding: 0 70px 0 0; -webkit-appearance: none; appearance: none; }
.uline input:focus { border-bottom-color: var(--brand-strong); }
.uline .eye { position: absolute; right: 0; bottom: 12px; font-size: .8rem; font-weight: 800; color: var(--brand-ink); }
:root[data-theme="dark"] .uline .eye { color: var(--c-lime); }
.auth-peek { flex: 1; min-height: 220px; display: grid; place-items: center; padding: 18px 0; }

/* ---------- Onboarding ---------- */
.ob { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 14px) 20px calc(var(--safe-bottom) + 18px); }
.ob-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; min-height: 46px; }
.ob-dots { flex: 1; display: flex; gap: 6px; }
.ob-dots i { flex: 1; height: 7px; border-radius: 9px; background: var(--surface-3); }
.ob-dots i.on { background: var(--brand); }
.ob-body { flex: 1; }
.ob-body h1 { font-size: 1.7rem; }
.ob-foot { padding-top: 16px; }
.ob-hero { display: flex; align-items: center; gap: 14px; margin: 4px 0 20px; }
.ob-hero .mon { width: 84px; height: 94px; }
.mon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mon-pick { border-radius: 22px; padding: 8px 4px 10px; background: var(--surface); box-shadow: var(--shadow), inset 0 -4px 0 var(--lip); border: 3px solid transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .12s; }
.mon-pick:active { transform: scale(.96); }
.mon-pick.on { border-color: var(--mc); background: color-mix(in srgb, var(--mc) 12%, var(--surface)); }
.mon-pick .mon { width: 78px; height: 88px; pointer-events: none; }
.mon-pick b { font-size: .82rem; }
.mon-pick span { font-size: .66rem; color: var(--muted); font-weight: 700; }
.mon-preview { margin-top: 16px; border-radius: 26px; padding: 16px; display: flex; gap: 14px; align-items: center; color: #fff; background: var(--mc); box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); }
.mon-preview .mon { width: 86px; height: 96px; }
.mon-preview p { margin: 4px 0 0; font-size: .82rem; line-height: 1.45; opacity: .92; }

/* ---------- Dashboard ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hello h1 { font-size: 1.55rem; }
.avatar-btn { width: 52px; height: 52px; border-radius: 18px; background: var(--mc); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.avatar-btn .mon { width: 44px; height: 48px; pointer-events: none; }
.hero-mon { display: flex; align-items: center; gap: 12px; }
.hero-mon .mon { width: 108px; height: 120px; }
.hero-mon .speech { flex: 1; }
.lv-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.lv-badge { min-width: 46px; height: 46px; border-radius: 15px; background: rgba(255,255,255,.22); display: grid; place-items: center; text-align: center; line-height: 1; font-weight: 800; }
.lv-badge small { display: block; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.today { display: flex; align-items: center; gap: 14px; }
.ind-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ind { background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: var(--shadow), inset 0 -3px 0 var(--lip); min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.ind .ii { width: 30px; height: 30px; border-radius: 10px; background: var(--cc); display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.ind .ii svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ind b { font-size: 1.05rem; display: block; margin-top: 8px; letter-spacing: -.2px; }
.ind span { font-size: .68rem; color: var(--muted); font-weight: 700; }
.macro-bars { display: grid; gap: 8px; }
.macro { display: grid; grid-template-columns: 74px 1fr 64px; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; }
.macro .progress-bar { height: 9px; }
.macro em { font-style: normal; color: var(--muted); text-align: right; font-weight: 600; }
.ach-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.ach { padding: 12px; border-radius: 18px; background: var(--surface-2); text-align: left; display: flex; flex-direction: column; gap: 4px; opacity: .7; }
.ach.on { background: color-mix(in srgb, var(--cc) 14%, var(--surface)); opacity: 1; box-shadow: inset 0 -3px 0 var(--lip); }
.ach-i { width: 36px; height: 36px; border-radius: 12px; background: var(--muted); display: grid; place-items: center; }
.ach.on .ach-i { background: var(--cc); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.ach-i svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ach b { font-size: .82rem; line-height: 1.2; }
.ach span { font-size: .7rem; color: var(--muted); line-height: 1.3; }
.reward-mon { display: grid; place-items: center; margin: 4px 0 6px; }
.reward-mon .mon { width: 130px; height: 146px; }

/* ---------- Workout cards ---------- */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 4px 18px 12px; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.wcard { scroll-snap-align: start; flex-shrink: 0; width: 170px; min-height: 196px; border-radius: var(--radius); padding: 16px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; background: var(--cc); box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); cursor: pointer; }
.wcard .wname { font-size: 1.05rem; font-weight: 800; line-height: 1.2; letter-spacing: -.2px; }
.wcard .wmeta { font-size: .74rem; color: rgba(255,255,255,.85); margin-top: 4px; font-weight: 600; }
.wcard .wbottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.wcard.add { background: var(--surface); color: var(--ink); box-shadow: var(--shadow), inset 0 -4px 0 var(--lip); align-items: center; justify-content: center; text-align: center; gap: 10px; }

/* ---------- Sessão de treino ---------- */
.session-hero { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.4); }
.session-hero .clock { font-size: 2.1rem; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.session-hero .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.session-hero .grid3 b { display: block; font-size: 1.05rem; }
.session-hero .grid3 span { font-size: .7rem; color: #A99DAB; font-weight: 600; }
.session-hero .mon { width: 76px; height: 84px; }
.paused-banner { background: color-mix(in srgb, var(--c-orange) 20%, transparent); color: #B86A00; border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: .84rem; margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.ex { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 -4px 0 var(--lip); padding: 16px 14px 12px; margin-bottom: 12px; }
.ex.current { box-shadow: 0 0 0 2.5px var(--c-blue), var(--shadow); }
.ex.complete { box-shadow: 0 0 0 2.5px var(--success), var(--shadow); }
.ex-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; padding: 0 2px; }
.ex-num { width: 30px; height: 30px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex-shrink: 0; }
.ex.complete .ex-num { background: var(--success); color: #fff; }
.ex-num svg { width: 15px; height: 15px; stroke-width: 3; }
.ex-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.2px; }
.ex-last { font-size: .76rem; color: var(--muted); margin-top: 3px; font-weight: 600; }
.set-head, .set-row { display: grid; grid-template-columns: 26px 1fr 1fr 46px; gap: 8px; align-items: center; }
.set-head { font-size: .66rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 0 2px 6px; }
.set-head span:nth-child(2), .set-head span:nth-child(3) { text-align: center; }
.set-row { padding: 5px 2px; border-radius: 14px; transition: background .2s; }
.set-row.done { background: color-mix(in srgb, var(--success) 13%, transparent); }
.set-idx { font-weight: 800; color: var(--muted); text-align: center; font-size: .86rem; }
.set-row.done .set-idx { color: var(--success); }
.stepper { display: flex; align-items: center; background: var(--surface-2); border-radius: 13px; height: 44px; overflow: hidden; }
.set-row.done .stepper { background: var(--surface); }
.stepper button { width: 34px; height: 100%; font-size: 1.25rem; font-weight: 600; color: var(--ink-2); flex-shrink: 0; }
.stepper button:active { background: var(--surface-3); }
.stepper input { width: 100%; min-width: 0; border: 0; background: transparent; text-align: center; font: inherit; font-size: 16px; font-weight: 800; color: var(--ink); padding: 0; outline: none; font-variant-numeric: tabular-nums; }
.check { width: 46px; height: 44px; border-radius: 13px; background: var(--surface-2); display: grid; place-items: center; box-shadow: inset 0 -3px 0 var(--surface-3); transition: transform .1s; }
.check:active { transform: scale(.92); }
.check svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.set-row.done .check { background: var(--success); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.set-row.done .check svg { stroke: #fff; }
.set-row.just-done .check { animation: pop .4s cubic-bezier(.3,1.6,.5,1); }
.set-tools { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px 0; flex-wrap: wrap; gap: 4px; }
.set-tools button { font-size: .82rem; font-weight: 800; color: var(--brand-ink); padding: 8px 4px; display: inline-flex; align-items: center; gap: 4px; }
:root[data-theme="dark"] .set-tools button { color: var(--c-lime); }
.set-tools button.muted { color: var(--muted); }
.set-tools svg, .link-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pr-badge { display: inline-flex; align-items: center; gap: 3px; font-size: .62rem; font-weight: 900; color: #B86A00; background: color-mix(in srgb, var(--c-orange) 20%, transparent); border-radius: 7px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.hint { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--ink-2); border-radius: 14px; padding: 10px 12px; font-size: .8rem; line-height: 1.35; margin: 0 0 10px; font-weight: 600; }
.hint span { flex: 1; }
.hint > svg { width: 20px; height: 20px; color: var(--brand-ink); }
.hint button { background: var(--brand); color: #1E2300; font-weight: 800; font-size: .8rem; min-height: 34px; padding: 0 14px; border-radius: 11px; flex-shrink: 0; box-shadow: 0 2px 0 var(--brand-deep); }
.how-btn { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--brand-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .58rem; font-weight: 800; line-height: 1.1; }
:root[data-theme="dark"] .how-btn { color: var(--c-lime); }
.how-btn svg { width: 15px; height: 15px; fill: currentColor; }
.ex.superset { box-shadow: inset 5px 0 0 var(--c-blue), var(--shadow); }
.ss-head { display: flex; flex-direction: column; gap: 6px; padding: 0 2px 12px; }
.ss-head .tag { align-self: flex-start; background: color-mix(in srgb, var(--c-blue) 16%, transparent); color: var(--c-blue); }
.ss-ex + .ss-ex { border-top: 1.5px dashed var(--line); padding-top: 12px; }
.round { border-radius: 16px; padding: 4px 0 2px; }
.round + .round { margin-top: 6px; }
.round-label { font-size: .7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; padding: 4px 4px 2px; }
.round.done .round-label { color: var(--success); }
.link-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 38px; margin: -4px 0 6px; border-radius: 13px; border: 2px dashed var(--line); color: var(--muted); font-size: .8rem; font-weight: 700; }
.link-toggle.on { border: 0; background: color-mix(in srgb, var(--c-blue) 14%, transparent); color: var(--c-blue); }
.ed-ex { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 -4px 0 var(--lip); padding: 14px; margin-bottom: 10px; }
.ed-ex .top { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.ed-ex .top .input { min-height: 46px; }
.swatch { width: 38px; height: 38px; border-radius: 13px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); border: 3px solid transparent; }
.swatch.on { border-color: var(--ink); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { min-height: 42px; border-radius: 13px; background: var(--surface); box-shadow: var(--shadow), inset 0 -3px 0 var(--lip); font-size: .78rem; font-weight: 800; color: var(--ink-2); }
.day.on { background: var(--brand); color: #1E2300; box-shadow: inset 0 -3px 0 var(--brand-deep); }

/* ---------- Timer ---------- */
.timer-wrap { display: grid; place-items: center; margin: 6px 0 14px; }
.timer-ring { position: relative; width: min(80vw, 300px); aspect-ratio: 1; }
.timer-ring svg.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring .center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.timer-ring .center .mon { width: 104px; height: 116px; margin-bottom: -2px; }
.timer-ring .time { font-size: 3.3rem; font-weight: 800; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; line-height: 1; }
.timer-ring .lbl { font-size: .72rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer-ring.done .time { color: var(--rest); }
.timer-ring.compact { width: min(66vw, 250px); }
.timer-ring.compact .center .mon { width: 80px; height: 90px; }
.timer-ring.compact .time { font-size: 2.6rem; }
.play-hint { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; color: var(--c-pink); background: color-mix(in srgb, var(--c-pink) 14%, transparent); padding: 6px 12px; border-radius: 99px; margin-top: 6px; }
.play-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.adjust { display: flex; align-items: center; justify-content: center; gap: 12px; }
.adjust .btn { min-width: 86px; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preset { min-height: 52px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow), inset 0 -3px 0 var(--lip); font-weight: 800; font-size: .92rem; }
.preset.on { background: var(--rest); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.timer-controls { display: grid; grid-template-columns: 64px 1fr 64px; gap: 14px; align-items: center; margin: 16px 0 8px; }
.round-btn { width: 64px; height: 64px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow), inset 0 -4px 0 var(--lip); display: grid; place-items: center; }
.round-btn:active { transform: translateY(2px); }
.round-btn svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.big-btn { min-height: 64px; border-radius: 22px; font-size: 1.1rem; }
.timer-pill { position: fixed; z-index: 80; right: 16px; bottom: calc(var(--tabbar-h) + 14px); min-height: 48px; padding: 0 16px 0 6px; border-radius: 18px; background: var(--rest); color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-lg), inset 0 -4px 0 rgba(0,0,0,.15); }
.timer-pill .mon { width: 36px; height: 40px; }
.timer-pill.in-session { bottom: calc(var(--safe-bottom) + 96px); }
.timer-pill.done { background: var(--c-red); }
#timer-pill-text { display: inline-flex; align-items: center; gap: 4px; }
.back-to-workout { position: fixed; z-index: 79; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 12px); max-width: 528px; margin: 0 auto; }

/* ---------- Gráficos/peso ---------- */
.hero-weight { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 6px; }
.hero-weight .w { font-size: 2.8rem; font-weight: 800; letter-spacing: -1.4px; line-height: 1; }
.hero-weight .w small { font-size: 1.1rem; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.delta { font-size: .88rem; font-weight: 800; }
.big-input-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 18px; }
.big-input { width: 170px; text-align: center; font-size: 3.2rem; font-weight: 800; letter-spacing: -1.5px; border: 0; outline: none; background: transparent; color: var(--ink); font-family: inherit; padding: 0; }
.big-unit { font-size: 1.1rem; color: var(--muted); font-weight: 700; text-align: center; margin-top: -14px; margin-bottom: 18px; }
.ebars { display: flex; align-items: stretch; gap: 8px; }
.ebars.many { gap: 3px; }
.eb { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.eb .col { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.eb .estack { width: 100%; max-width: 24px; border-radius: 7px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface-2); }
.eb .estack.today { box-shadow: 0 0 0 2px var(--ink); }
.eb .a { background: var(--c-orange); }
.eb .r { background: color-mix(in srgb, var(--c-orange) 35%, transparent); }
.eb span { font-size: .64rem; color: var(--muted); font-weight: 700; height: 13px; line-height: 13px; }
.legend { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.legend.a { background: var(--c-orange); }
.legend.r { background: color-mix(in srgb, var(--c-orange) 35%, transparent); }

/* ---------- Demonstração ---------- */
.demo { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 3 / 2; }
.demo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo img.f2 { animation: demo-swap 2.6s ease-in-out infinite; }
@keyframes demo-swap { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.demo-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.demo-thumb { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.steps { padding-left: 20px; margin: 0 0 14px; }
.steps li { font-size: .9rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 10px; font-weight: 500; }
.steps code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: .8rem; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 2.2; stroke-linecap: round; flex-shrink: 0; transition: transform .2s; }
details[open] > summary svg { transform: rotate(180deg); }

/* ---------- Seletor de exercícios ---------- */
.sheet.tall { height: 90vh; height: 90dvh; display: flex; flex-direction: column; padding-bottom: 0; }
.sheet.tall #pk-list { flex: 1; padding-bottom: 12px; }
.pk-head { position: sticky; top: -10px; z-index: 3; background: var(--surface); padding: 2px 0 6px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.pk-search { position: relative; margin: 12px 0 10px; }
.pk-search .input { padding-left: 44px; }
.pk-search > svg { position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; color: var(--muted); }
.pk-item.on { background: color-mix(in srgb, var(--success) 12%, transparent); }
.pk-check { width: 28px; height: 28px; border-radius: 10px; border: 2px solid var(--surface-3); display: grid; place-items: center; flex-shrink: 0; transition: background .15s, border-color .15s, transform .15s; }
.pk-check svg { width: 16px; height: 16px; stroke: transparent; stroke-width: 3; }
.pk-item.on .pk-check { background: var(--success); border-color: var(--success); transform: scale(1.08); }
.pk-item.on .pk-check svg { stroke: #fff; }
.pk-foot { position: sticky; bottom: 0; margin: 0 -20px; padding: 12px 20px calc(var(--safe-bottom) + 16px); background: linear-gradient(to top, var(--surface) 75%, transparent); z-index: 3; }
.ex-name-btn { display: flex; align-items: center; gap: 10px; text-align: left; font-weight: 700; cursor: pointer; }
.ex-name-btn .ph { color: var(--muted); font-weight: 600; }
.ex-name-btn svg { width: 18px; height: 18px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; flex-shrink: 0; }

/* ---------- Início: Sua evolução ---------- */
.evo { background: var(--dark); color: #fff; box-shadow: var(--shadow-lg), inset 0 -5px 0 rgba(0,0,0,.4); overflow: hidden; position: relative; }
.evo::before { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(191,208,37,.28), transparent 70%); pointer-events: none; }
.evo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-bottom: 14px; position: relative; }
.evo-stats b { display: block; font-size: 1.45rem; font-weight: 800; color: var(--c-lime); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.evo-stats span { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #A99DAB; font-weight: 700; }
.evo-seg { background: rgba(255,255,255,.08); margin-bottom: 12px; }
.evo-seg button { color: #A99DAB; }
.evo-seg button.on { background: var(--c-lime); color: #1E2300; box-shadow: none; }
.evo-line { margin: 0 0 12px; font-size: .86rem; font-weight: 700; line-height: 1.4; animation: rise .5s both; }
.evo-row { display: block; width: 100%; text-align: left; color: inherit; padding: 8px 0; animation: rise .5s calc(var(--i) * .12s) both; }
.evo-row + .evo-row { border-top: 1px solid rgba(255,255,255,.08); }
.evo-row b { font-size: .9rem; }
.evo-row .tiny { color: #A99DAB; margin-top: 4px; }
.evo-row .tiny b { color: #fff; font-size: .78rem; }
.evo-pill { background: rgba(191,208,37,.18); color: var(--c-lime); font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.evo-bar { height: 10px; background: rgba(255,255,255,.08); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.evo-bar i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 99px; background: linear-gradient(90deg, var(--c-green), var(--c-lime)); transform-origin: left; animation: grow-x .9s cubic-bezier(.2,.8,.2,1) calc(.2s + var(--i) * .12s) both; }
@keyframes grow-x { from { transform: scaleX(0); } }
.evo-cols { display: flex; align-items: flex-end; gap: 6px; height: 132px; }
.evo-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.evo-col span { font-size: .6rem; color: #A99DAB; font-weight: 700; white-space: nowrap; }
.evo-col i { display: block; width: 100%; max-width: 26px; height: calc(var(--h) * 92px); border-radius: 8px 8px 4px 4px; background: rgba(191,208,37,.45); transform-origin: bottom; animation: grow-y .8s cubic-bezier(.3,1.4,.5,1) calc(var(--i) * .06s) both; }
.evo-col i.now { background: var(--c-lime); box-shadow: 0 0 14px rgba(191,208,37,.6); }
.evo-col em { font-style: normal; font-size: .6rem; color: #A99DAB; font-weight: 700; }
@keyframes grow-y { from { transform: scaleY(0); } }
.evo-spark { width: 100%; height: auto; display: block; margin-bottom: 6px; overflow: visible; }
.evo-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.4,0,.2,1) .15s forwards; }
.evo-area { opacity: 0; animation: fade-in .8s ease .8s forwards; }
.evo-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: dot-in .5s cubic-bezier(.3,1.6,.5,1) 1.35s forwards, dot-pulse 2s ease-in-out 2s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes dot-in { from { transform: scale(0); opacity: 0; } to { opacity: 1; } }
@keyframes dot-pulse { 50% { transform: scale(1.3); } }
.evo .row .tiny { color: #A99DAB; }
.evo-body-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.evo-body-grid div { background: rgba(255,255,255,.07); border-radius: 14px; padding: 10px 12px; animation: rise .5s calc(var(--i) * .08s) both; }
.evo-body-grid span { display: block; font-size: .7rem; color: #A99DAB; font-weight: 700; }
.evo-body-grid b { font-size: 1.05rem; }
.evo-empty { display: flex; align-items: center; gap: 12px; }
.evo-empty p { margin: 0; color: #CFC6D0; font-size: .84rem; line-height: 1.45; }


/* ---------- Mais vida: expressões extras ---------- */
/* olhar rápido para o lado */
.mon.mood-look .m-pupil { animation: m-glance 1.8s ease-in-out; }
@keyframes m-glance { 0%, 100% { translate: 0 0; } 15%, 45% { translate: -7px 0; } 55%, 85% { translate: 7px 0; } }
/* curioso: inclina a cabeça e procura */
.mon.mood-curious .m-shape { animation: m-tilt 2s ease-in-out; }
.mon.mood-curious .m-pupil { animation: m-glance 1.6s ease-in-out; }
.mon.mood-curious .m-brows > * { transform: translateY(-10%) rotate(-4deg); transition: transform .3s; }
@keyframes m-tilt { 0%, 100% { transform: rotate(0); } 25%, 70% { transform: rotate(-9deg) translateY(-2%); } }
/* animado: olhos arregalados, pulinhos rápidos e brilhos */
.mon.mood-excited .m-shape { animation: m-hop .42s cubic-bezier(.3,1.4,.5,1) 4; }
.mon.mood-excited .m-eyes > * { scale: 1.16; animation-duration: 1.2s; }
.mon.mood-excited .m-mouth { animation: m-grin .42s ease 4; }
@keyframes m-hop { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-9%) scale(.97, 1.04); } 80% { transform: translateY(0) scale(1.04, .96); } }
/* sonolento: olhos pesando, cochilos e bocejos lentos */
.mon.mood-sleepy .m-shape { animation: m-nod 4.2s ease-in-out infinite; }
.mon.mood-sleepy .m-eyes > * { animation: m-droop 4.2s ease-in-out infinite; }
.mon.mood-sleepy .m-pupil { animation: none; translate: 0 3px; }
.mon.mood-sleepy .m-mouth { animation: m-yawn 8.4s ease-in-out 2s infinite; }
@keyframes m-nod { 0%, 100% { transform: rotate(0) translateY(0); } 40%, 60% { transform: rotate(4deg) translateY(2%) scale(1.02, .97); } 70% { transform: rotate(-1deg) translateY(-1%); } }
@keyframes m-droop { 0%, 100% { transform: scaleY(.45); } 40%, 62% { transform: scaleY(.12); } 70% { transform: scaleY(.7); } }
@keyframes m-yawn { 0%, 55%, 100% { transform: scale(1); } 65%, 80% { transform: scale(1.25, 1.75); } }
/* acordando: espreguiça, boceja e abre os olhos devagar */
.mon.mood-waking .m-shape { animation: m-stretch 6s ease-in-out infinite; }
.mon.mood-waking .m-eyes > * { animation: m-wake 6s ease-in-out infinite; }
.mon.mood-waking .m-mouth { animation: m-yawn 6s ease-in-out infinite; }
@keyframes m-stretch { 0%, 100% { transform: scale(1); } 60% { transform: scale(.96, 1.08) translateY(-3%); } 72% { transform: scale(1.04, .96); } }
@keyframes m-wake { 0%, 50% { transform: scaleY(.25); } 58%, 66% { transform: scaleY(.08); } 74% { transform: scaleY(.6); } 80% { transform: scaleY(.1); } 88%, 100% { transform: scaleY(1); } }
/* com fome: mastiga no ar, baba e pensa em comida */
.mon.mood-hungry .m-mouth { animation: m-chomp .55s ease-in-out infinite; }
.mon.mood-hungry .m-pupil { animation: none; translate: 4px -5px; }
.mon.mood-hungry .m-shape { animation: m-breathe 1.6s ease-in-out infinite; }
@keyframes m-chomp { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.08, .72); } }
/* efeitos */
.m-fx .spark { position: absolute; left: var(--x); top: var(--y); color: #FFD40F; font-size: 16px; opacity: 0; text-shadow: 0 0 6px rgba(255,212,15,.8); animation: spark .9s ease-out forwards; }
@keyframes spark { 0% { opacity: 0; transform: scale(0) rotate(0); } 40% { opacity: 1; transform: scale(1.3) rotate(45deg); } 100% { opacity: 0; transform: scale(.6) rotate(90deg); } }
.m-fx .drool { position: absolute; left: 60%; top: 74%; width: 7px; height: 10px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: #8EF2FF; opacity: 0; animation: drool 2.4s ease-in 1s infinite; }
@keyframes drool { 0% { opacity: 0; transform: translateY(0) scaleY(.5); } 20% { opacity: 1; transform: translateY(0) scaleY(1); } 70% { opacity: 1; transform: translateY(6px) scaleY(1.5); } 100% { opacity: 0; transform: translateY(26px); } }
.m-fx .thought { position: absolute; right: -14%; top: -16%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--c-orange); animation: think 3s ease-in-out infinite; }
.m-fx .thought svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.m-fx .thought::after { content: ""; position: absolute; left: 4%; bottom: -10%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
@keyframes think { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.06); } }
.m-fx .yawn { position: absolute; right: -4%; top: 2%; font-size: 11px; font-weight: 800; font-style: italic; color: var(--mc); opacity: 0; animation: yawn-txt 6s ease-in-out infinite; }
@keyframes yawn-txt { 0%, 58%, 90%, 100% { opacity: 0; transform: translateY(4px); } 66%, 82% { opacity: 1; transform: none; } }
.sheet-close { z-index: 5; }
