/* Broto — a cena é a interface. Painéis de vidro por cima; cores da UI seguem o céu (dia/noite). */
[hidden] { display: none !important; }
:root {
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --ink: #2a2340;
  --muted: #5d5675;
  --line: rgba(42, 35, 64, 0.12);
  --accent: #3fae78;
  --low: #ff9f6e;
  --accent-ink: #ffffff;
  --coral: #ff8a8a;
  --chip: rgba(255, 255, 255, 0.85);
  --page: #a9dcf5;
  --font-display: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
  --font-body: 'Nunito', ui-rounded, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-sky='noite'] {
  --glass: rgba(30, 26, 62, 0.62);
  --glass-strong: rgba(34, 29, 70, 0.95);
  --ink: #f6f1ff;
  --muted: #c3badc;
  --line: rgba(255, 255, 255, 0.14);
  --chip: rgba(255, 255, 255, 0.1);
  --page: #2b2459;
  color-scheme: dark;
}
:root[data-sky='amanhecer'] { --page: #d9a3c8; }
:root[data-sky='entardecer'] { --page: #c76b9a; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-body); font-size: 16px;
  overflow: hidden; transition: background 1s;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

#app { position: relative; height: 100%; max-width: 520px; margin: 0 auto; overflow: hidden; }
#scene-wrap, .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

/* SVG */
.scene .cloud { fill: #fff; opacity: 0.85; }
.scene .cloud.dark { fill: #e4e8f2; opacity: 0.75; }
:root[data-sky='noite'] .scene .cloud { fill: #6b5f9a; opacity: 0.5; }
.scene .tuft { fill: none; stroke: #3f8a57; stroke-width: 1.6; stroke-linecap: round; }
.scene .c1 { animation: drift 38s linear infinite alternate; }
.scene .c2 { animation: drift 52s linear infinite alternate-reverse; }
.scene .c3 { animation: drift 44s linear infinite alternate; }
.scene .island, .scene .far-island { animation: float 7s ease-in-out infinite; }
.scene .far-island.f2 { animation-duration: 9s; animation-delay: -3s; }
.scene .glow { animation: pulse 3s ease-in-out infinite; }
.scene .butterfly { animation: flutter 6s ease-in-out infinite; }
.pet { cursor: pointer; }
.pet .pet-body { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.4s ease-in-out infinite; }
.pet .body { stroke: #3f9a76; stroke-width: 2; }
.pet .foot { fill: #4fa37f; }
.pet .pupil { fill: #2a2340; }
.pet .lid { fill: none; stroke: #2a2340; stroke-width: 3.2; stroke-linecap: round; }
.pet .eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5s infinite; }
.pet .stem { stroke: #3f8a57; stroke-width: 3; stroke-linecap: round; fill: none; }
.pet .leafA { fill: #7fd36f; stroke: #3f8a57; stroke-width: 1.4; }
.pet .leafB { fill: #a5e48c; stroke: #3f8a57; stroke-width: 1.4; }
.pet .sprout { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; }
.pet .zzz { font: 600 18px var(--font-display); fill: #fff; opacity: 0.8; animation: zz 2.6s ease-in-out infinite; }
.pet .zzz.s { font-size: 13px; animation-delay: 0.7s; }
.pet.mood-radiante .pet-body { animation: hop 1.1s ease-in-out infinite; }
.pet.mood-acordando .pet-body, .pet.mood-aconchego .pet-body { animation-duration: 5.5s; }
.pet.jump .pet-body { animation: hop 0.45s ease-in-out 2; }

@keyframes drift { to { transform: translateX(40px); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes pulse { 50% { opacity: 0.6; } }
@keyframes flutter { 25% { transform: translate(-30px, -14px); } 50% { transform: translate(-60px, 6px); } 75% { transform: translate(-24px, 14px); } }
@keyframes breathe { 50% { transform: scale(1.035, 0.965); } }
@keyframes hop { 40% { transform: translateY(-14px) scale(0.97, 1.04); } 70% { transform: translateY(0) scale(1.05, 0.95); } }
@keyframes sway { 50% { transform: rotate(5deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes zz { 50% { transform: translateY(-6px); opacity: 0.4; } }

/* Topo */
.top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 10px;
}
.glassy { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.who { display: flex; flex-direction: column; gap: 5px; padding: 8px 14px; border-radius: 20px; min-width: 0; }
.who b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 0.68rem; color: var(--muted); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.bar { height: 5px; width: 96px; border-radius: 9px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; transition: width 0.8s; }
.icons { margin-left: auto; display: flex; gap: 6px; }
.icon { width: 42px; height: 42px; border-radius: 50%; font-size: 1.15rem; display: grid; place-items: center; position: relative; }
.icon .dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }

.bubble {
  position: absolute; z-index: 3; left: 50%; transform: translate(-50%, -100%); width: max-content; max-width: min(80%, 320px);
  padding: 10px 16px; border-radius: 20px; background: var(--glass-strong); color: var(--ink);
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1.3; text-align: center; text-wrap: balance;
  box-shadow: 0 6px 24px rgba(20, 10, 40, 0.15);
}
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 3px; z-index: -1; }
.bubble.pop { animation: pop 0.35s ease-out; }
@keyframes pop { from { transform: translate(-50%, -88%) scale(0.92); opacity: 0; } }

/* Bandeja de baixo */
.tray {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  display: grid; gap: 12px; justify-items: center;
}
.tray > * { width: 100%; max-width: 440px; }
.needs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 12px 6px 10px; border-radius: 26px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.need { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.need .ring { width: 58px; height: 58px; position: relative; border-radius: 50%; padding: 4px; display: grid; transition: transform 0.15s; }
.need .orb { border-radius: 50%; background: var(--glass-strong); display: grid; place-items: center; font-size: 1.55rem; }
.need:active .ring { transform: scale(0.9); }
.need .lbl { font-size: 0.72rem; font-weight: 800; line-height: 1.1; text-align: center; }
.need .lbl small { color: var(--muted); font-weight: 700; }
.pill { justify-self: center; width: auto !important; min-height: 46px; padding: 0 20px; border-radius: 99px; font-weight: 800; font-size: 0.95rem; box-shadow: 0 6px 20px rgba(20, 10, 40, 0.2); animation: nudge 2.4s ease-in-out infinite; }
.pill.go { background: var(--accent); color: var(--accent-ink); }
@keyframes nudge { 50% { transform: translateY(-3px); } }
.sleepcard { display: grid; gap: 4px; padding: 14px 18px; border-radius: 22px; text-align: center; }
.sleepcard b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.sleepcard span { color: var(--muted); font-size: 0.9rem; }
.tray .row2 { margin: 0; }
.tray .btn.glassy { background: var(--glass); margin: 0; }
.help-fab {
  position: absolute; z-index: 3; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(262px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 62px; border-radius: 20px; display: grid; place-items: center; font-size: 1.3rem; line-height: 1; padding-top: 4px;
}
.help-fab span { font-size: 0.66rem; font-weight: 800; color: var(--muted); }
:root[data-asleep='1'] .help-fab { bottom: calc(196px + env(safe-area-inset-bottom, 0px)); }
.btn.big { min-height: 58px; font-size: 1.1rem; margin: 0; }
.wx { font-size: 0.8rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.who .name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }

/* Folhas (bottom sheets) */
#sheet-bg { position: fixed; inset: 0; z-index: 8; background: rgba(20, 12, 40, 0.35); animation: fade 0.25s; }
#sheet {
  position: fixed; z-index: 9; left: 50%; bottom: 0; width: 100%; max-width: 520px; transform: translateX(-50%);
  max-height: 88dvh; overflow-y: auto; border-radius: 28px 28px 0 0; background: var(--glass-strong); color: var(--ink);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 10px max(18px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  animation: up 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1); box-shadow: 0 -10px 40px rgba(20, 10, 40, 0.25);
}
@keyframes up { from { transform: translate(-50%, 40%); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 10px; }
#sheet h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; margin: 6px 0 4px; text-wrap: balance; }
#sheet p { line-height: 1.5; margin: 6px 0 12px; }
.sub { color: var(--muted); font-size: 0.92rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin: 12px 0; }
.pick {
  display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 20px; background: var(--chip);
  box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; font-size: 0.85rem; text-align: center; line-height: 1.15; transition: transform 0.12s;
}
.pick .e { font-size: 1.8rem; }
.pick small { font-weight: 600; color: var(--muted); font-size: 0.72rem; }
.pick:active { transform: scale(0.95); }
.pick.on { box-shadow: inset 0 0 0 3px var(--accent); background: rgba(63, 174, 120, 0.16); }
.btn { display: block; width: 100%; min-height: 52px; border-radius: 18px; font-weight: 800; font-size: 1rem; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); margin-top: 10px; padding: 0 16px; }
.btn.go { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.btn:disabled { opacity: 0.45; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.row2 .btn { margin-top: 0; }
.quote { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.3; padding: 16px 18px; border-radius: 20px; background: rgba(255, 214, 110, 0.24); margin: 12px 0; text-wrap: balance; }
.card { padding: 14px 16px; border-radius: 20px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); margin: 10px 0; line-height: 1.45; }
.card b { font-family: var(--font-display); font-weight: 600; }
.dots { display: flex; gap: 8px; margin: 12px 0; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--accent); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.week .d { display: grid; gap: 4px; justify-items: center; }
.week .d em { font-style: normal; font-size: 1.2rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); }
input[type='text'], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--chip); border: 0; box-shadow: inset 0 0 0 1.5px var(--line);
  border-radius: 16px; padding: 14px; min-height: 52px;
}
textarea { min-height: 90px; resize: vertical; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 46dvh; overflow-y: auto; padding: 4px 0; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); border-bottom-left-radius: 6px; }
.msg small { display: block; opacity: 0.6; font-size: 0.7rem; margin-top: 4px; }
.send { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.send .btn { margin: 0; width: auto; }
.help { font-size: 0.9rem; padding: 12px 14px; border-radius: 16px; background: rgba(255, 138, 138, 0.18); margin-top: 14px; line-height: 1.45; }
.help b { white-space: normal; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; }
.toggle input { width: 24px; height: 24px; accent-color: var(--accent); }

.breath { width: 130px; height: 130px; margin: 10px auto; border-radius: 50%; background: radial-gradient(circle, rgba(127, 211, 111, 0.7), rgba(63, 174, 120, 0.12)); animation: breath 10s ease-in-out infinite; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
@keyframes breath { 0%, 100% { transform: scale(0.72); } 40% { transform: scale(1.08); } }
.ring-timer { width: 190px; height: 190px; margin: 10px auto; position: relative; display: grid; place-items: center; }
.ring-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-timer .t { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.flyer { position: fixed; z-index: 20; font-size: 2rem; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 560px) { #app { box-shadow: 0 0 60px rgba(0, 0, 0, 0.18); } }

.center { text-align: center; }
#sheet h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 18px 0 8px; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.times label { display: grid; gap: 6px; font-weight: 800; font-size: 0.9rem; }
.times input { font: inherit; font-size: 1.3rem; font-weight: 700; color: var(--ink); background: var(--chip); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 16px; padding: 12px; min-height: 56px; width: 100%; }
.choice { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px; border-radius: 20px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); margin-top: 10px; }
.choice > span { font-size: 1.8rem; text-align: center; }
.choice b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.choice small { color: var(--muted); font-size: 0.85rem; }
.week .d span { font-size: 0.8rem; line-height: 1; }
.breath.slow { animation-duration: 19s; }
.pet .m-eat { display: none; }
.pet.eating .m-eat { display: inline; }
.pet.eating .m-normal { display: none; }
.pet.eating .pet-body { animation: chomp 0.32s ease-in-out 4; }
@keyframes chomp { 50% { transform: scale(1.06, 0.92); } }
:root[data-asleep='1'] #scene-wrap { filter: brightness(0.75) saturate(0.85); transition: filter 1s; }

.need .star { position: absolute; top: -6px; right: -6px; font-size: 0.95rem; }
.pill:not(.go) { background: var(--glass-strong); color: var(--ink); }
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0; }
.face { display: grid; justify-items: center; gap: 6px; padding: 12px 2px; border-radius: 18px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 0.72rem; font-weight: 800; line-height: 1.1; text-align: center; }
.face span { font-size: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { padding: 10px 14px; border-radius: 99px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; }
.chip.on { background: rgba(63, 174, 120, 0.18); box-shadow: inset 0 0 0 2.5px var(--accent); }
.answers .choice { grid-template-columns: 40px 1fr; }

/* O selo "Powered by Netlify" (plano grátis) fica por cima dos botões de baixo.
   O certo é desligar em Project configuration > General > Powered by Netlify badge; isto é só reserva. */
#nl-badge-frame { display: none !important; }

/* Abas da bandeja e meus hábitos */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 99px; }
.seg button { min-height: 38px; border-radius: 99px; font-weight: 800; font-size: 0.85rem; color: var(--muted); }
.seg button.on { background: var(--glass-strong); color: var(--ink); box-shadow: 0 2px 8px rgba(20, 10, 40, 0.12); }
.seg small { background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 0.7rem; margin-left: 2px; }
.needs.mine { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); max-height: 220px; overflow-y: auto; }
.need.full .ring { box-shadow: 0 0 16px rgba(63, 174, 120, 0.55); border-radius: 50%; }
.need.hab.full .ring { box-shadow: 0 0 18px rgba(255, 201, 77, 0.8); border-radius: 50%; }
.need .badge { position: absolute; right: -4px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 800; display: grid; place-items: center; }
.need.hab.full .badge { background: #ffc94d; color: #3a2a00; }
.need.add .ring { background: none; box-shadow: inset 0 0 0 2px var(--line); border-radius: 50%; }
.need.add .orb { background: transparent; font-size: 1.6rem; color: var(--muted); }
.need { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tip { margin: -4px 0 0; text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.empty { display: grid; gap: 6px; padding: 16px; border-radius: 22px; text-align: center; }
.empty b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.empty span { color: var(--muted); font-size: 0.9rem; }
.empty .row2 { margin-top: 6px; }
.how { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.how > span { font-size: 1.6rem; text-align: center; }
.how b { font-family: var(--font-display); font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.stats div { padding: 12px; border-radius: 18px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; display: grid; gap: 2px; }
.stats b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.stats span { font-size: 0.8rem; color: var(--muted); font-weight: 700; }

/* Passinhos */
.ladder { display: grid; gap: 8px; margin: 12px 0; }
.step { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; line-height: 1.3; transition: transform 0.12s, background 0.2s; }
.step:active { transform: scale(0.98); }
.step .chk { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--line); color: var(--muted); }
.step.next { box-shadow: inset 0 0 0 2.5px var(--accent); background: rgba(63, 174, 120, 0.1); }
.step.next em { font-style: normal; font-size: 0.72rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.step.done .chk { background: var(--accent); color: #fff; }
.step.done .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(63, 174, 120, 0.6); }
.step:disabled { opacity: 1; }
.bar.wide { width: 100%; height: 8px; margin: 4px 0 8px; }
.cheer { text-align: center; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--accent); margin: 4px 0 !important; animation: cheerpop 0.35s ease-out; }
@keyframes cheerpop { from { transform: scale(0.8); opacity: 0; } }
.link { display: block; margin: 14px auto 0; font-weight: 800; color: var(--muted); font-size: 0.9rem; padding: 8px; }
.step-edit { display: grid; gap: 8px; margin: 12px 0; }
.se { display: grid; grid-template-columns: 26px 1fr 40px; gap: 8px; align-items: center; }
.se span { font-weight: 800; color: var(--muted); text-align: center; }
.se button { width: 40px; height: 40px; border-radius: 50%; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-weight: 800; }
.mini-steps { margin: 0 0 10px; padding-left: 22px; line-height: 1.6; color: var(--muted); font-weight: 600; }

/* Comida: caminhos */
.path { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px; border-radius: 20px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); margin-top: 10px; }
.path .e { font-size: 2rem; text-align: center; }
.path b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.path small { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.path em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 0.72rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.path.gentle { box-shadow: inset 0 0 0 2.5px var(--accent); background: rgba(63, 174, 120, 0.1); }
span.chip { cursor: default; }

/* Jornada */
.seg.three { grid-template-columns: 1.15fr 1fr 1fr; }
.seg.three button { font-size: 0.8rem; padding: 0 4px; white-space: nowrap; }
.needs.three { grid-template-columns: repeat(3, 1fr); }
.who { text-align: left; }
.jhead { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 16px; border-radius: 20px; text-align: left; font-size: 0.9rem; }
.jhead b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.jhead .chev { font-size: 0.75rem; font-weight: 800; color: var(--muted); }
.jbar { grid-column: 1 / -1; height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.jbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffc94d); border-radius: 9px; }
.phases { display: grid; gap: 8px; margin: 12px 0; }
.phase { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); }
.phase .pe { font-size: 1.6rem; text-align: center; }
.phase b { font-family: var(--font-display); font-weight: 600; }
.phase small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; line-height: 1.35; }
.phase.now { box-shadow: inset 0 0 0 2.5px var(--accent); }
.phase.next { opacity: 0.55; }
.phase .bar.wide { margin: 6px 0 0; height: 6px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 10px 0; }
.bdg { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 16px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; opacity: 0.5; }
.bdg span { font-size: 1.6rem; }
.bdg small { font-size: 0.68rem; font-weight: 800; line-height: 1.1; }
.bdg.on { opacity: 1; box-shadow: inset 0 0 0 2px #ffc94d; }
.levelup { text-align: center; padding: 10px 0; }
.levelup > span { font-size: 3rem; display: block; animation: cheerpop 0.5s ease-out; }
.levelup .chest { animation: wiggle 0.6s ease-in-out 2; }
@keyframes wiggle { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }

/* Check-up */
.hitem.late, .hitem.todo { box-shadow: inset 0 0 0 2px #ffb37a; }
.hitem.ok { box-shadow: inset 0 0 0 2px rgba(63, 174, 120, 0.6); }

/* Mente */
.faq { border-radius: 16px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); padding: 12px 14px; margin-top: 8px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 8px 0 0 !important; }
.med-step { min-height: 110px; display: grid; place-items: center; }
.med-step.fresh { animation: fadein 0.8s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.breathe-ring { animation: breath 10s ease-in-out infinite; }
.choice.on { box-shadow: inset 0 0 0 2.5px var(--accent); }
/* Roda e evolução */
.radar { width: 100%; max-width: 320px; display: block; margin: 6px auto; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.lg.a { background: #b9a2ff; } .lg.b { background: #3fae78; }
.wh { display: grid; gap: 4px; margin: 10px 0; font-weight: 700; }
.wh span { display: flex; justify-content: space-between; }
.wh input { width: 100%; accent-color: var(--accent); }
.beforeafter { display: grid; gap: 6px; margin: 10px 0; padding: 12px 14px; border-radius: 20px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); }
.cmp { display: grid; grid-template-columns: 1fr 52px 18px 52px; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.cmp span { font-weight: 700; font-size: 0.9rem; }
.cmp b { text-align: center; font-family: var(--font-display); font-size: 1.1rem; }
.cmp b.up { color: var(--accent); }
.cmp i { font-style: normal; color: var(--muted); text-align: center; }
.cmp.head small { text-align: center; font-size: 0.68rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
/* Tour */
#tour { position: fixed; inset: 0; z-index: 30; }
#tour .spot { z-index: 1; position: fixed; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(20, 12, 40, 0.62); transition: all 0.3s; pointer-events: none; }
#tour .tip-card { z-index: 2; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); position: fixed; left: 16px; right: 16px; max-width: 460px; margin: 0 auto; padding: 16px; border-radius: 22px; background: var(--glass-strong); color: var(--ink); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); animation: cheerpop 0.3s ease-out; }
#tour .tip-card small { color: var(--muted); font-weight: 800; font-size: 0.72rem; }
#tour .tip-card b { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 2px 0; }
#tour .tip-card p { margin: 4px 0 12px; line-height: 1.45; }
#tour .row2 { margin: 0; }
#tour .dim { position: fixed; inset: 0; background: rgba(20, 12, 40, 0.62); }
#tour .spot::after { content: ''; position: absolute; inset: -4px; border-radius: 26px; border: 3px solid #fff; animation: tourpulse 1.6s ease-out infinite; }
@keyframes tourpulse { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.12); } }
.tour-dots { display: flex; gap: 5px; margin-bottom: 6px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.35; }
.tour-dots i.on { opacity: 1; background: var(--accent); width: 18px; border-radius: 4px; }

/* Um passo só */
.onestep { font-size: 1.5rem; padding: 26px 18px; }
.countdown { text-align: center; font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--accent); animation: cheerpop 0.4s ease-out; }

/* A área vazia da bandeja não rouba toques (ex.: do botão Ajuda) */
.tray { pointer-events: none; }
.tray > * { pointer-events: auto; }
.help-fab { z-index: 4; transition: bottom 0.2s; }

/* Desabafo e Respiro */
#vchat { max-height: 42dvh; }
.vbox { display: grid; gap: 8px; margin-top: 10px; }
.vbox textarea { min-height: 72px; }
.row3 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.row3 .btn { margin: 0; }
.chip.tool { background: rgba(63, 174, 120, 0.14); box-shadow: inset 0 0 0 1.5px var(--accent); }
.big2 { margin: 6px 0 4px; }
.big2 .choice { margin-top: 0; grid-template-columns: 34px 1fr; padding: 12px; }
.sounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.snd { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 18px; background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 0.78rem; font-weight: 800; text-align: center; line-height: 1.1; }
.snd span { font-size: 1.7rem; }
.snd.on { box-shadow: inset 0 0 0 3px var(--accent); background: rgba(63, 174, 120, 0.14); animation: nudge 2.4s ease-in-out infinite; }
.guide-bubble { width: 120px; height: 120px; }

/* Expectativas */
.ack { display: flex; gap: 10px; align-items: center; margin: 14px 0 4px; font-weight: 800; }
.ack input { width: 22px; height: 22px; accent-color: var(--accent); }
.badge-line { font-size: 0.8rem !important; font-weight: 800; color: var(--muted); background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 12px; padding: 8px 12px; margin: 4px 0 10px !important; }
.link.inline { display: inline; margin: 0; padding: 0; font-size: inherit; text-decoration: underline; }

/* Personalizar o básico */
.need .ring { width: min(58px, 14vw); height: min(58px, 14vw); }
.need .orb { font-size: min(1.55rem, 6.4vw); }
.bset.off { opacity: 0.6; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 10px; margin-top: 10px; text-align: center; }
.stepper .btn { margin: 0; padding: 0; font-size: 1.4rem; min-height: 44px; }
.stepper b { font-family: var(--font-display); font-size: 1.25rem; }
.bset .send { margin-top: 8px; }
.bset input[type=number] { width: 100%; font: inherit; color: var(--ink); background: var(--chip); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 16px; padding: 12px; min-height: 48px; }
.need .lbl small { display: block; white-space: nowrap; }
.track-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 10px 0 12px; }
.track-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 0.3s linear; }
.chips.center { justify-content: center; }
.sound-chips { gap: 6px; }
.sound-chips .chip { font-size: 0.85rem; padding: 6px 10px; min-height: 36px; }
.bars { display: grid; gap: 8px; margin: 6px 0 4px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 46%) 1fr auto; align-items: center; gap: 8px; font-size: 0.9rem; }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row i { display: block; height: 12px; width: var(--w); border-radius: 6px; background: var(--accent); opacity: 0.85; }
.bar-row b { font-size: 0.85rem; color: var(--muted); }
.th-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.th-item .link { flex: none; }
.fphases { display: grid; gap: 6px; margin: 8px 0 12px; }
.fph { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; opacity: 0.5; }
.fph.on { opacity: 1; }
.fph b { min-width: 3.2em; }
.card.warn { background: #fff4e0; color: #5a3a00; }
.pet.mood-jejum .glass { animation: sip 4s ease-in-out infinite; transform-origin: 55px -10px; }
@keyframes sip { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } }
.times > label { min-width: 0; }
.times input { min-width: 0; }
.more-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 0; background: var(--glass-strong); color: var(--ink); font: inherit; font-weight: 800; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); cursor: pointer; }
.tip.keys-tip { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
a.btn.go { color: var(--accent-ink); }
a.tel { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.stats.four { grid-template-columns: repeat(2, 1fr); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0 4px; }
.cal-h { font-style: normal; text-align: center; font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.cal-d { aspect-ratio: 1; border: 0; border-radius: 8px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font: inherit; font-size: 0.72rem; font-weight: 700; padding: 0; min-height: 28px; }
.cal-d.off { background: transparent; box-shadow: none; }
.cal-d.rest { opacity: 0.45; }
.cal-d.tiny { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--ink); box-shadow: none; }
.cal-d.full { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.cal-d.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips.days .chip { min-width: 40px; justify-content: center; }
.need.rest { opacity: 0.55; }
.cal-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); margin: 4px 0; } .cal-legend .cal-d { width: 14px; height: 14px; min-height: 0; display: inline-block; border-radius: 4px; }
