/* EmotiMate v4 — Soft Dawn. Mobile first, RTL. */
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/rubik-hebrew.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/rubik-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Varela Round'; src: url(fonts/varela-hebrew.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: 'Varela Round'; src: url(fonts/varela-latin.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-display: swap; }

:root {
  --bg: #f4f5fd; --card: #ffffff; --ink: #3d4159; --ink-2: #616785; --muted: #656b8a;
  --lilac: #e9ecfa; --lilac-2: #d1d8f6; --lilac-d: #7f8dcc;
  --mint: #ddf4ea; --mint-2: #c1e8cf; --mint-d: #439675;
  --blue: #e0f0fe; --blue-2: #c6e3f9; --blue-d: #5f9ecb;
  --peach: #feeae0; --peach-2: #fcd4c2; --peach-d: #df8e6b;
  --rose: #fce8f0; --sun: #fad28f;
  --r: 26px; --r-sm: 18px;
  --shadow: 0 6px 18px rgba(74, 84, 137, .10);
  --nav-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: 'Varela Round', 'Rubik', 'Assistant', 'Arial Hebrew', system-ui, sans-serif;
  color: var(--ink); font-size: 18px; line-height: 1.45;
  background: radial-gradient(1200px 600px at 100% -10%, #faeaf1 0, transparent 60%), radial-gradient(900px 600px at -10% 110%, #e0f3fe 0, transparent 60%), var(--bg);
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
svg { display: block; }
h1 { font-size: 27px; font-weight: 400; margin: 6px 0 4px; letter-spacing: .2px; }
h2 { font-size: 20px; font-weight: 400; margin: 22px 0 10px; color: var(--ink-2); }
h3 { font-size: 16px; font-weight: 400; margin: 18px 0 8px; color: var(--ink-2); }
.sub { color: var(--muted); margin: 0 0 14px; font-size: 17px; }
.note { color: var(--ink-2); background: var(--lilac); border-radius: var(--r-sm); padding: 10px 14px; margin: 10px 0; font-size: 16px; }
.note.small { font-size: 14.5px; background: transparent; padding: 4px 2px; margin: 6px 0; color: var(--muted); }
.tiny { font-size: 13px; } .muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid #7f8dcc; outline-offset: 3px; border-radius: 14px; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
.screen { padding: calc(10px + var(--safe-t)) 16px 24px; opacity: 1; }
.with-nav .screen { padding-bottom: calc(var(--nav-h) + 22px + var(--safe-b)); }
html.ready .screen { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-size: 18px; transition: transform .15s ease, background .2s ease; }
.btn svg { width: 22px; height: 22px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(180deg, #9aa7e2, #7f8dcc); color: #ffffff; box-shadow: 0 6px 14px rgba(127, 141, 204, .35); }
.btn-ghost { background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--lilac-2); }
.btn-danger { background: #ffffff; color: #b1586d; box-shadow: inset 0 0 0 2px #f1c4ce; }
.btn-xl { width: 100%; min-height: 62px; font-size: 21px; margin-top: 14px; }
.btn-sm { min-height: 46px; padding: 0 16px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.btn-row.center { justify-content: center; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); }
.icon-btn svg { width: 30px; height: 30px; }
.head-row { display: flex; align-items: center; gap: 12px; }
.head-row h1 { margin: 0; }

/* character */
.charwrap { position: relative; width: 210px; margin: 0 auto; }
.charwrap.big { width: min(64vw, 250px); }
.charwrap.mid { width: 150px; }
.charwrap.small { width: 86px; margin: 0; }
.charwrap svg { width: 100%; height: auto; overflow: visible; }
.char .face, .char .acc { display: none; }
.charwrap[data-mood="happy"] .face-happy, .charwrap[data-mood="excited"] .face-excited, .charwrap[data-mood="calm"] .face-calm,
.charwrap[data-mood="sad"] .face-sad, .charwrap[data-mood="tired"] .face-tired, .charwrap[data-mood="hungry"] .face-hungry,
.charwrap[data-mood="sleep"] .face-sleep, .charwrap[data-mood="love"] .face-love { display: inline; }
.wear-bow .acc-bow, .wear-scarf .acc-scarf, .wear-hat .acc-hat, .wear-glasses .acc-glasses, .wear-flower .acc-flower { display: inline !important; }
.wear-hat .acc-bow, .wear-hat .acc-flower { display: none !important; }
.charwrap[data-mood="sleep"] .acc-glasses { display: none !important; }
.char .ear, .char .headgrp, .char .whole, .char .blinker, .char .bodygrp { transform-box: view-box; }
.char .ear { transition: transform .9s ease; }
.char .ear-l { transform-origin: 84px 100px; } .char .ear-r { transform-origin: 136px 100px; }
.char .headgrp { transform-origin: 110px 175px; transition: transform .6s ease; }
.char .whole { transform-origin: 110px 258px; }
.char .blinker { transform-box: fill-box; transform-origin: center; animation: blink 6.5s infinite; }
.char .cheek { transition: opacity .6s ease; }
.charwrap[data-mood="love"] .cheek, .charwrap[data-mood="excited"] .cheek { opacity: .85; }
.charwrap[data-mood="tired"] .ear-l, .charwrap[data-mood="sleep"] .ear-l { transform: rotate(-38deg); }
.charwrap[data-mood="tired"] .ear-r, .charwrap[data-mood="sleep"] .ear-r { transform: rotate(38deg); }
.charwrap[data-mood="sad"] .ear-l { transform: rotate(-22deg); } .charwrap[data-mood="sad"] .ear-r { transform: rotate(22deg); }
.charwrap[data-mood="hungry"] .ear-l { transform: rotate(-8deg); } .charwrap[data-mood="hungry"] .ear-r { transform: rotate(8deg); }
.charwrap[data-mood="excited"] .ear-l { transform: rotate(6deg); } .charwrap[data-mood="excited"] .ear-r { transform: rotate(-6deg); }
.charwrap[data-mood="sleep"] .headgrp { transform: rotate(-6deg) translateY(4px); }
.char .whole { animation: breathe 4.5s ease-in-out infinite; }
.charwrap[data-mood="sleep"] .whole { animation-duration: 6s; }
.charwrap.bounce .whole { animation: bob 3.2s ease-in-out infinite; }
.charwrap.hop .whole { animation: hop .9s ease; }
.charwrap.munch .headgrp { animation: munch .3s ease-in-out 4; }
.charwrap.drink .headgrp { transform: rotate(4deg) translateY(10px); }
.charwrap[data-mood="excited"] .ear-l { animation: wig 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.022); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-16px); } 60% { transform: translateY(0); } 75% { transform: translateY(-5px); } }
@keyframes munch { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(2deg) translateY(2px); } }
@keyframes wig { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(0deg); } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.12); } }

/* splash */
.splash { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 20px 8px; }
.logo { display: flex; flex-direction: column; align-items: center; }
.logo-word { font-size: 44px; letter-spacing: .5px; color: #6d7cbf; }
.logo-word span { color: #e090a0; }
.logo-tag { font-size: 20px; color: var(--ink-2); margin-top: -2px; }
.splash-char { margin: 18px 0 8px; position: relative; }
.splash-char::before { content: ''; position: absolute; inset: 12% -8% 0; background: radial-gradient(closest-side, #ffffff 0, #fff0 100%); z-index: -1; }
.splash .btn-xl { max-width: 340px; }

/* onboarding */
.onboard { position: relative; padding-top: 6px; }
.onboard .back-btn { position: absolute; top: 0; right: 0; }
.dots { display: flex; gap: 8px; justify-content: center; margin: 18px 0 18px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--lilac-2); transition: width .3s ease; }
.dots i.on { width: 28px; border-radius: 6px; background: var(--lilac-d); } .dots i.past { background: #abb5e3; }
.onboard h1, .onboard .sub { text-align: center; }
.choice-col { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.choice { display: flex; align-items: center; gap: 18px; min-height: 84px; padding: 12px 22px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); font-size: 22px; text-align: right; transition: transform .15s ease, box-shadow .2s ease; }
.choice:active { transform: scale(.98); } .choice.sel { box-shadow: inset 0 0 0 3px var(--lilac-d), var(--shadow); }
.person { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 54px; height: 60px; }
.person i { border-radius: 50%; background: var(--peach-2); } .person b { border-radius: 14px 14px 6px 6px; background: var(--lilac-2); margin-top: 2px; }
.person.p1 i { width: 20px; height: 20px; } .person.p1 b { width: 26px; height: 20px; background: var(--mint-2); }
.person.p2 i { width: 22px; height: 22px; } .person.p2 b { width: 32px; height: 28px; background: var(--blue-2); }
.person.p3 i { width: 24px; height: 24px; } .person.p3 b { width: 38px; height: 34px; }
.ob-char { display: flex; justify-content: center; margin-top: -4px; }
.field { display: block; margin: 14px 0; }
.field span { display: block; color: var(--ink-2); margin-bottom: 6px; font-size: 17px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 20px; color: var(--ink); padding: 14px 16px; border-radius: var(--r-sm); border: 2px solid var(--lilac-2); background: #ffffff; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--lilac-d); }
.seg { display: flex; background: var(--lilac); border-radius: 999px; padding: 5px; gap: 4px; margin: 6px 0 4px; }
.seg-btn { flex: 1; min-height: 50px; border-radius: 999px; font-size: 17px; color: var(--ink-2); transition: background .2s ease; padding: 0 6px; }
.seg-btn.sel { background: #ffffff; color: var(--ink); box-shadow: 0 2px 8px rgba(74, 84, 137, .15); }
.mini-routine { list-style: none; padding: 0; margin: 18px 0 6px; display: grid; gap: 10px; }
.mini-routine li { display: flex; align-items: center; gap: 14px; background: #ffffff; border-radius: var(--r-sm); padding: 10px 16px; box-shadow: var(--shadow); font-size: 19px; }
.mini-routine .mr-i svg { width: 38px; height: 38px; } .mini-routine b { font-weight: 400; color: var(--lilac-d); min-width: 56px; }

/* home */
.home { display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav-h) - 40px - var(--safe-b)); gap: 10px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hello { display: flex; flex-direction: column; line-height: 1.2; }
.greet { font-size: 19px; color: var(--ink-2); }
.clock { font-size: 30px; color: var(--ink); letter-spacing: 1px; text-align: right; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.stars-pill { display: inline-flex; align-items: center; gap: 6px; background: #ffffff; border-radius: 999px; padding: 6px 14px 6px 10px; box-shadow: var(--shadow); font-size: 20px; }
.stars-pill svg { width: 26px; height: 26px; } .stars-pill b { font-weight: 400; }
.stars-pill.glow { animation: glow 1.4s ease; }
@keyframes glow { 0% { box-shadow: var(--shadow); } 40% { box-shadow: 0 0 0 6px rgba(250, 210, 143, .6); } 100% { box-shadow: var(--shadow); } }
.mute-btn { width: 48px; height: 48px; } .mute-btn svg { width: 28px; height: 28px; }

.nownext { display: flex; align-items: stretch; gap: 6px; }
.nn-card { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: #ffffff; border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow); text-align: right; min-height: 96px; }
.nn-now { background: linear-gradient(160deg, #fef6eb, #fde9db); }
.nn-now.free { background: linear-gradient(160deg, #f1fbf6, #dff5ea); }
.nn-later { flex: 1.25; }
.nn-lbl { font-size: 14px; color: var(--muted); }
.nn-i svg { width: 38px; height: 38px; }
.nn-t { font-size: 18px; } .nn-t b { font-weight: 400; color: var(--lilac-d); }
.nn-arrow { display: grid; place-items: center; width: 22px; } .nn-arrow svg { width: 22px; height: 22px; }
.nn-row { display: flex; align-items: center; gap: 10px; }
.nn-col { display: flex; flex-direction: column; }
.nn-in { font-size: 15px; color: var(--ink-2); }
.timer { --p: .5; position: relative; width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: conic-gradient(#aab5e9 calc(var(--p) * 360deg), #eff0f9 0); box-shadow: inset 0 0 0 3px #ffffff, 0 0 0 2px var(--lilac-2); }
.timer i { position: absolute; inset: 11px; border-radius: 50%; background: #ffffff; display: grid; place-items: center; }
.timer i svg { width: 26px; height: 26px; }

.room { position: relative; flex: 1; min-height: 300px; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #f0f2fc 0, #ebedfa 64%, #fce9df 64%, #f9e2d6 100%); box-shadow: inset 0 0 0 3px #ffffff, var(--shadow); touch-action: none; }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: linear-gradient(180deg, #fce6db, #f7ddcf); border-top: 3px solid #ffffff; }
.window { position: absolute; top: 18px; left: 18px; width: 92px; height: 80px; border-radius: 18px; border: 5px solid #ffffff; overflow: hidden; background: linear-gradient(180deg, #c2e3fc, #e6f4fe); box-shadow: 0 3px 10px rgba(74, 84, 137, .12); }
.window::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #ffffff; }
.window .sun, .window .moon { position: absolute; width: 38px; height: 38px; top: 14px; right: 10px; }
.window .moon { display: none; }
.sky-dawn .window { background: linear-gradient(180deg, #fddac6, #fef1e3); } .sky-dawn .sun { top: 34px; }
.sky-dusk .window { background: linear-gradient(180deg, #f4cad9, #fde2cb); } .sky-dusk .sun { top: 38px; right: 40px; }
.sky-night .window { background: linear-gradient(180deg, #5b6896, #8995c1); } .sky-night .sun { display: none; } .sky-night .moon { display: block; }
.sky-night { background: linear-gradient(180deg, #dde2f6 0, #d7dcf3 64%, #f0ddd7 64%, #ebd4cc 100%); }
.dec { position: absolute; display: none; pointer-events: none; }
.has-plant .dec-plant, .has-rug .dec-rug, .has-frame .dec-frame, .has-lamp .dec-lamp, .has-bunting .dec-bunting { display: block; }
.dec-plant { width: 78px; bottom: 26%; left: 10px; } .dec-rug { width: 240px; left: 50%; margin-left: -120px; bottom: 3%; }
.dec-frame { width: 64px; top: 22px; right: 22px; } .dec-lamp { width: 50px; right: 14px; bottom: 30%; }
.dec-bunting { width: 92%; left: 4%; top: 0; }
.dec svg { width: 100%; height: auto; }
.stage { position: absolute; left: 0; right: 0; bottom: 4%; display: flex; justify-content: center; cursor: grab; z-index: 2; }
.stage .charwrap { width: min(52vw, 210px); }
.say { position: absolute; z-index: 3; top: 16px; right: 16px; left: 122px; display: flex; align-items: center; gap: 8px; background: #ffffff; border-radius: 22px; padding: 10px 14px; font-size: 18px; box-shadow: var(--shadow); min-height: 56px; }
.say::after { content: ''; position: absolute; bottom: -10px; left: 44%; border: 10px solid transparent; border-top-color: #ffffff; border-bottom: 0; }
.say .need svg { width: 34px; height: 34px; }
.say.tappable { cursor: pointer; box-shadow: inset 0 0 0 2px var(--lilac-2), var(--shadow); }
.say.pop { animation: saypop .5s ease both; }
.say.static { position: relative; top: auto; right: auto; left: auto; margin: 0 auto 16px; max-width: 340px; justify-content: center; text-align: center; font-size: 20px; padding: 14px 18px; }
@keyframes saypop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bowl { position: absolute; z-index: 3; bottom: 5%; left: 50%; margin-left: 58px; width: 64px; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.bowl svg { width: 100%; height: auto; }
.show-bowl .bowl { opacity: 1; transform: none; }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.fx .p { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.fx .p svg { width: 100%; height: 100%; }
.fx .heart { animation: floatup 1.8s ease-out forwards; } .fx .heart.small { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.fx .spark { width: 26px; height: 26px; animation: sparkle 1.6s ease-out forwards; }
.fx .carrot-fly { left: 0; top: 0; margin: 0; width: 52px; height: 52px; }
.fx .fade-only { animation: fadeout 1.2s ease forwards; }
.fx .crumbs { width: 8px; height: 8px; animation: crumb 1s ease-out forwards; } .crumb { display: block; width: 8px; height: 8px; border-radius: 50%; background: #f9ae71; }
@keyframes floatup { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) scale(1); } }
@keyframes sparkle { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.8) translateY(-14px); } }
@keyframes fadeout { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes crumb { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(0, 34px); } }
.night-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(63, 74, 117, .55), rgba(63, 74, 117, .35)); opacity: 0; pointer-events: none; transition: opacity 1.6s ease; }
.night-veil i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fdf5d8; opacity: .8; }
.night-veil i:nth-child(1) { top: 14%; right: 18%; } .night-veil i:nth-child(2) { top: 26%; right: 46%; width: 4px; height: 4px; } .night-veil i:nth-child(3) { top: 10%; right: 70%; } .night-veil i:nth-child(4) { top: 34%; right: 80%; width: 4px; height: 4px; } .night-veil i:nth-child(5) { top: 20%; right: 8%; width: 4px; height: 4px; }
.zz { position: absolute; top: 34%; left: 58%; font-size: 30px; color: #ffffff; opacity: 0; animation: zz 4s ease-in-out infinite; } .zz.z2 { animation-delay: 2s; left: 64%; font-size: 22px; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(-16px, -50px); } }
.sleeping .night-veil { opacity: 1; }
.sleeping .stage { z-index: 2; }
.sleeping .say { background: #f2f4fd; }

.quick { display: flex; gap: 10px; }
.pill { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; background: #ffffff; box-shadow: var(--shadow); font-size: 17px; padding: 0 12px; }
.pill svg { width: 30px; height: 30px; }
.pill-feel { background: #fef8e7; } .pill-calm { background: #edf8f2; }
.actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 22px; background: #ffffff; box-shadow: var(--shadow); min-height: 88px; transition: transform .15s ease, box-shadow .3s ease; }
.act:active { transform: scale(.95); }
.act .ai { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; }
.act .ai svg { width: 40px; height: 40px; }
.act-feed .ai { background: #fef0e5; } .act-water .ai { background: #e7f4fe; } .act-pet .ai { background: #fcebf1; } .act-play .ai { background: #edf3fe; } .act-rest .ai { background: #eceffb; }
.act .al { font-size: 15.5px; }
.act.wanted { box-shadow: 0 0 0 3px #bbc3f0, var(--shadow); }
.wake-bar { display: none; text-align: center; }
.sleeping .actions, .sleeping .quick { display: none; }
.sleeping .wake-bar { display: block; }
.sleeping .wake-bar p { margin: 4px 0 0; }

/* bottom nav */
.nav { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 26px 26px 0 0; box-shadow: 0 -4px 20px rgba(74, 84, 137, .10); padding: 6px 6px calc(6px + var(--safe-b)); }
.nav[hidden] { display: none; }
.nav-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 18px; min-height: 62px; color: var(--muted); }
.nav-btn .ni svg { width: 32px; height: 32px; opacity: .75; }
.nav-btn .nl { font-size: 13.5px; }
.nav-btn.on { background: var(--lilac); color: var(--ink); } .nav-btn.on .ni svg { opacity: 1; }

/* feelings */
.feel { position: relative; }
.feel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.feel-head h1 { font-size: 25px; margin: 0; } .feel-head .sub { margin: 2px 0 0; }
.faces { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.face-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 14px; background: #ffffff; border-radius: var(--r); box-shadow: var(--shadow); font-size: 20px; transition: transform .15s ease; }
.face-btn:active { transform: scale(.96); }
.face-btn svg { width: 84px; height: 84px; }
.face-btn.f-unknown { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 14px; }
.face-btn.f-unknown svg { width: 64px; height: 64px; }
.face-btn.small svg { width: 64px; height: 64px; } .face-btn.small { font-size: 17px; }
.feel .back-btn { position: absolute; top: 0; right: 0; }
.chosen { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0 4px; font-size: 22px; }
.chosen svg { width: 120px; height: 120px; } .chosen b { font-weight: 400; }
.feel h1 { text-align: center; }
.intens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.int-btn { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 6px; background: #ffffff; border-radius: var(--r); box-shadow: var(--shadow); font-size: 20px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.bars i { width: 14px; border-radius: 7px; background: #e9eaf4; }
.bars i:nth-child(1) { height: 22px; } .bars i:nth-child(2) { height: 38px; } .bars i:nth-child(3) { height: 56px; }
.i1 .bars i:nth-child(1), .i2 .bars i:nth-child(-n+2), .i3 .bars i { background: #aab5e9; }
.feel-res { text-align: center; padding-top: 10px; }
.res-char { margin-bottom: 8px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; background: #ffffff; border-radius: var(--r); box-shadow: var(--shadow); font-size: 18px; min-height: 104px; justify-content: center; }
.opt svg { width: 46px; height: 46px; }

/* breathing overlay */
.overlay { position: fixed; inset: 0; z-index: 50; }
.overlay[hidden] { display: none; }
.breathe { position: absolute; inset: 0; background: linear-gradient(180deg, #eefaf4, #e9f2fe); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.b-ready { font-size: 20px; color: var(--ink-2); margin: 0 0 18px; max-width: 320px; transition: opacity .6s ease; }
.breathe.going .b-ready { opacity: 0; }
.b-wrap { position: relative; width: 280px; height: 280px; display: grid; place-items: center; }
.b-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px dashed #c0dfd0; }
.b-circle { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e7faf1, #aae1c8); box-shadow: 0 10px 30px rgba(67, 150, 117, .2); transform: scale(.45); transition: transform 4s ease-in-out, background 4s ease; }
.breathe.in .b-circle { transform: scale(1); }
.breathe.out .b-circle { transform: scale(.45); }
.b-text { position: relative; display: flex; flex-direction: column; align-items: center; }
.b-word { font-size: 30px; color: #326c56; } .b-count { font-size: 22px; color: #439675; min-height: 28px; }
.breathe.rm .b-circle { transform: scale(.9); opacity: .5; transition: opacity 4s ease-in-out; }
.breathe.rm.in .b-circle { opacity: 1; transform: scale(.9); } .breathe.rm.out .b-circle { opacity: .45; transform: scale(.9); }
.b-dots { display: flex; gap: 10px; margin: 26px 0 10px; }
.b-dots i { width: 14px; height: 14px; border-radius: 50%; background: #d4ebe0; transition: background .6s ease; } .b-dots i.on { background: #72c19f; }
.b-stop { margin-top: 10px; }
.breathe.ended .b-wrap, .breathe.ended .b-dots, .breathe.ended .b-stop, .breathe.ended .b-ready { display: none; }
.b-end { width: 100%; max-width: 380px; } .b-end h2 { color: var(--ink); font-size: 24px; } .b-char { display: flex; justify-content: center; } .b-char .charwrap { width: 120px; }
.opt-grid.two { grid-template-columns: 1fr 1fr; }
.dialog { position: absolute; left: 16px; right: 16px; top: 30%; max-width: 420px; margin: 0 auto; background: #ffffff; border-radius: var(--r); padding: 22px; box-shadow: 0 20px 60px rgba(63, 74, 117, .3); text-align: center; font-size: 19px; }
.overlay:has(.dialog) { background: rgba(63, 74, 117, .25); }

/* play */
.screen-play { padding: 0; }
.play { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, #eff6fe, #f3f4fd 60%, #fef0e9); }
.play-head { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + var(--safe-t)) 16px 10px; }
.play-count { font-size: 22px; background: #ffffff; border-radius: 999px; padding: 8px 18px; box-shadow: var(--shadow); }
.play-field { position: relative; flex: 1; overflow: hidden; touch-action: none; }
.play-hint { position: absolute; top: 30%; left: 0; right: 0; text-align: center; font-size: 22px; color: var(--ink-2); transition: opacity .6s ease; pointer-events: none; }
.play-char { position: absolute; bottom: calc(10px + var(--safe-b)); left: 50%; transform: translateX(-50%); pointer-events: none; }
.play-char .charwrap { width: 110px; }
.bub { position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffffff 0 12%, var(--c) 13% 100%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .85), 0 6px 16px rgba(74, 84, 137, .12); display: grid; place-items: center; transition: opacity .35s ease; will-change: transform; }
.bub span { width: 46%; height: 46%; opacity: .9; } .bub span svg { width: 100%; height: 100%; }
.bub.still { animation: fadein .8s ease both; }
.bub.popped { opacity: 0; } .bub.popped span { opacity: 0; }
.bub.popped::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--c); animation: ring .4s ease-out forwards; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

/* my day */
.ribbon { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; padding: 30px 6px 44px; background: #ffffff; border-radius: var(--r); box-shadow: var(--shadow); }
.ribbon > span svg { width: 26px; height: 26px; }
.rb-line { position: relative; flex: 1; height: 12px; border-radius: 6px; background: #eceef7; }
.rb-fill { position: absolute; right: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(270deg, #fce0bb, #d1d8f6); }
.rb-mark { position: absolute; top: 50%; transform: translate(50%, -50%); display: flex; flex-direction: column; align-items: center; }
.rb-mark .rb-ic { width: 38px; height: 38px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 3px #eceef7; display: grid; place-items: center; }
.rb-mark .rb-ic svg { width: 28px; height: 28px; }
.rb-mark b { position: absolute; top: 44px; font-weight: 400; font-size: 13px; color: var(--muted); }
.rb-mark.done .rb-ic { box-shadow: 0 0 0 3px var(--mint-2); }
.rb-now { position: absolute; top: -26px; transform: translateX(50%); display: flex; flex-direction: column; align-items: center; }
.rb-now em { font-style: normal; font-size: 12px; color: var(--lilac-d); order: -1; }
.rb-now i { width: 4px; height: 30px; border-radius: 2px; background: var(--lilac-d); }
.all-done { display: flex; align-items: center; gap: 10px; background: var(--mint); border-radius: var(--r-sm); padding: 12px 16px; margin: 10px 0; font-size: 18px; }
.all-done svg { width: 34px; height: 34px; }
.tasks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 12px; }
.task { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "time icon body" "btn btn btn"; align-items: center; gap: 6px 12px; background: #ffffff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.task-time { grid-area: time; font-size: 20px; color: var(--lilac-d); }
.task-i { grid-area: icon; } .task-i svg { width: 46px; height: 46px; }
.task-body { grid-area: body; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.task-body b { font-weight: 400; font-size: 18px; }
.task .btn { grid-area: btn; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; border-radius: 999px; padding: 3px 12px; }
.chip b { font-weight: 400; }
.chip-done { background: var(--mint); color: #32775b; } .chip-avail { background: #fef0e1; color: #a46341; } .chip-later { background: var(--lilac); color: var(--ink-2); }
.st-done { background: linear-gradient(160deg, #ffffff, #f1fbf6); }

/* achievements */
.star-hero { display: flex; align-items: center; justify-content: space-around; background: linear-gradient(160deg, #ffffff, #fef6e4); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); }
.sh-count { display: flex; flex-direction: column; align-items: center; }
.sh-count svg { width: 54px; height: 54px; } .sh-count b { font-weight: 400; font-size: 42px; line-height: 1.1; } .sh-count span { color: var(--muted); }
.items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #ffffff; border-radius: var(--r); padding: 12px 8px; box-shadow: var(--shadow); text-align: center; }
.item-i { height: 58px; display: grid; place-items: center; } .item-i svg { max-width: 92px; height: 52px; width: auto; }
.item.locked .item-i { opacity: .35; filter: grayscale(.6); }
.item.on { box-shadow: inset 0 0 0 3px var(--mint-2), var(--shadow); }
.item .btn { width: 100%; min-height: 44px; }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--muted); min-height: 44px; }
.lock svg { width: 20px; height: 20px; }
.stickers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stk { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 12px; color: var(--ink-2); gap: 4px; }
.stk-i { width: 56px; height: 56px; border-radius: 50%; border: 2px dashed var(--lilac-2); display: grid; place-items: center; }
.stk.has .stk-i { border: 0; background: #ffffff; box-shadow: var(--shadow); } .stk-i svg { width: 34px; height: 34px; }

/* settings & parent */
.card { background: #ffffff; border-radius: var(--r); padding: 6px 16px 12px; box-shadow: var(--shadow); margin: 14px 0; }
.card h2 { margin-top: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; border-bottom: 1px solid #eeeff7; }
.card .row:last-child { border-bottom: 0; }
.row-l { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.row-i svg { width: 32px; height: 32px; }
.switch { position: relative; width: 64px; height: 38px; border-radius: 999px; background: #e2e4f0; flex: none; transition: background .25s ease; }
.switch i { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: transform .25s ease; }
.switch[aria-checked="true"] { background: #92d3b5; }
.switch[aria-checked="true"] i { transform: translateX(-26px); }
.time-in, .txt-in, .sel-in { font: inherit; font-size: 18px; color: var(--ink); border: 2px solid var(--lilac-2); border-radius: 14px; padding: 8px 12px; background: #faf8ff; min-height: 48px; }
.txt-in { width: 46%; } .time-in { direction: ltr; min-width: 112px; }
.time-ro { font-weight: 400; color: var(--lilac-d); font-size: 19px; }
.lockline { display: flex; align-items: center; gap: 6px; } .lockline svg { width: 22px; height: 22px; flex: none; }
.hold-btn { position: relative; overflow: hidden; width: 100%; min-height: 60px; border-radius: 999px; background: var(--lilac); margin: 4px 0 6px; }
.hold-fill { position: absolute; inset: 0; transform-origin: right; transform: scaleX(0); background: #c2c9f0; }
.hold-btn.holding .hold-fill { transform: scaleX(1); transition: transform 3s linear; }
.hold-l { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 18px; } .hold-l svg { width: 26px; height: 26px; }
.ver { text-align: center; }
.banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: right; background: linear-gradient(160deg, #fef6e7, #fde8d8); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; box-shadow: var(--shadow); }
.banner svg { width: 42px; height: 42px; flex: none; } .banner b { display: block; font-weight: 400; font-size: 18px; } .banner small { color: var(--ink-2); font-size: 15px; }
.tbl-wrap { overflow-x: auto; margin: 0 -6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { font-weight: 400; color: var(--muted); text-align: right; padding: 6px; border-bottom: 2px solid #eeeff7; white-space: nowrap; }
.tbl td { padding: 8px 6px; border-bottom: 1px solid #f3f4f9; white-space: nowrap; }
.lvl { display: inline-block; vertical-align: middle; width: 30px; height: 8px; border-radius: 4px; background: #eceef7; margin-left: 6px; overflow: hidden; }
.lvl i { display: block; height: 100%; width: calc(var(--v) * 20%); background: #aab5e9; border-radius: 4px; }
.emo-bars { display: flex; flex-wrap: wrap; gap: 12px; }
.eb { display: flex; flex-direction: column; align-items: center; font-size: 13px; } .eb svg { width: 44px; height: 44px; } .eb b { font-weight: 400; font-size: 18px; } .eb small { color: var(--muted); }
.recent { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.recent li { display: grid; grid-template-columns: 92px 64px 1fr; gap: 6px; padding: 6px 0; border-bottom: 1px solid #f3f4f9; }
.recent .r-t { color: var(--muted); text-align: right; } .recent b { font-weight: 400; } .recent .r-d { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-row .btn svg { width: 20px; height: 20px; }
.parent .head-row, .calm .head-row { margin-bottom: 4px; }
.weekly .sub { margin-top: 8px; }
.wkq h2 { color: var(--ink); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sc-btn { min-height: 56px; border-radius: 18px; background: var(--lilac); font-size: 22px; }
.sc-btn.sel { background: #7f8dcc; color: #ffffff; }
.scale-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 6px; }

/* calm corner */
.calm-scene { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 220px; border-radius: 30px; overflow: hidden; margin: 10px 0 12px; background: linear-gradient(135deg, #e4f5ee, #e7effe, #eceefc, #feece4); background-size: 300% 300%; box-shadow: inset 0 0 0 3px #ffffff; animation: calmdrift 24s ease-in-out infinite; }
/* 5.9: own name; s42.css's floating-leaf keyframes of the same old name took this one over and floated, turned and faded the whole calm scene */
@keyframes calmdrift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.calm-scene .glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); transform: scale(.8); transition: transform 6s ease; }
.calm.playing .glow { animation: glowbreath 8s ease-in-out infinite; }
@keyframes glowbreath { 0%, 100% { transform: scale(.8); } 50% { transform: scale(1.1); } }
.calm-scene .charwrap { width: 140px; position: relative; }
.calm.playing .calm-scene .charwrap { --x: 0; }
.calm-left { position: absolute; bottom: 10px; font-size: 17px; color: var(--ink-2); background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 2px 14px; }
.calm-left:empty { display: none; }
.snd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.snd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 20px; background: #ffffff; box-shadow: var(--shadow); font-size: 14.5px; min-height: 92px; justify-content: center; }
.snd svg { width: 40px; height: 40px; }
.snd.sel { box-shadow: inset 0 0 0 3px #92d3b5, var(--shadow); background: #f3fcf8; }
.snd:disabled, .chip-btn:disabled { opacity: .55; }
.vol { display: flex; align-items: center; gap: 12px; margin: 16px 4px 6px; }
.vol-i svg { width: 32px; height: 32px; }
.vol input { flex: 1; height: 44px; accent-color: #92d3b5; direction: rtl; }
.chips { display: flex; gap: 8px; margin: 8px 0 4px; }
.chip-btn { flex: 1; min-height: 48px; border-radius: 999px; background: #ffffff; box-shadow: inset 0 0 0 2px var(--lilac-2); font-size: 16px; }
.chip-btn.sel { background: var(--lilac); box-shadow: inset 0 0 0 2px var(--lilac-d); }
.calm.playing .calm-go { background: linear-gradient(180deg, #a1dac1, #72c19f); box-shadow: 0 6px 14px rgba(67, 150, 117, .3); }
.calm-after { text-align: center; background: #ffffff; border-radius: var(--r); padding: 6px 14px 14px; margin-top: 14px; box-shadow: var(--shadow); }
.rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rate .face-btn { box-shadow: inset 0 0 0 2px #eeeff7; }

/* toast */
.toast { position: fixed; z-index: 60; top: calc(12px + var(--safe-t)); left: 50%; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; background: #ffffff; border-radius: 999px; padding: 8px 18px 8px 12px; box-shadow: 0 10px 30px rgba(74, 84, 137, .2); font-size: 17px; transition: opacity .4s ease, transform .4s ease; max-width: 92vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ti svg { width: 34px; height: 34px; }

/* small phones */
@media (max-height: 700px) {
  .window { display: none; } .say { left: auto; width: 54%; right: 10px; top: 10px; font-size: 16px; padding: 8px 12px; min-height: 48px; } .say::after { left: 12%; } .say .need svg { width: 28px; height: 28px; }
  .stage { justify-content: flex-end; padding-left: 10%; } .stage .charwrap { width: 140px !important; margin: 0; }
  .home { gap: 8px; } .room { min-height: 200px; } .pill { min-height: 46px; } .stage { bottom: 2%; } .stage .charwrap { width: 160px; } .act { min-height: 78px; } .act .ai { width: 44px; height: 44px; } .act .ai svg { width: 34px; height: 34px; }
  .nn-card { min-height: 76px; padding: 8px 12px; } .nn-i svg { width: 30px; height: 30px; } .timer { width: 50px; height: 50px; } .clock { font-size: 26px; } .face-btn svg { width: 70px; height: 70px; }
}
@media (max-width: 360px) { .act .al { font-size: 13.5px; } .say { left: 110px; font-size: 16px; } .nn-t { font-size: 16px; } }
@media (min-width: 700px) { .app { padding-top: 16px; } .room { min-height: 360px; } }

/* reduced motion: system setting or in-app toggle */
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
html.rm .char .ear, html.rm .char .headgrp, html.rm .bowl, html.rm .toast, html.rm .switch i { transition-duration: .2s !important; }
html.rm .fx .heart, html.rm .fx .spark { animation: fadeout 1.4s ease forwards !important; animation-duration: 1.4s !important; }
html.rm .zz { display: none; }
@media (prefers-reduced-motion: reduce) { .char .whole, .char .blinker, .calm-scene { animation: none; } }

.nav-btn { position: relative; }
.nav-btn.dot::after { content: ''; position: absolute; top: 6px; right: 28%; width: 10px; height: 10px; border-radius: 50%; background: #efa4b0; box-shadow: 0 0 0 2px #ffffff; }

/* ================= v2 ================= */
.charwrap[data-mood="worried"] .face-worried, .charwrap[data-mood="angry"] .face-angry { display: inline; }
.charwrap[data-mood="worried"] .ear-l { transform: rotate(-14deg); } .charwrap[data-mood="worried"] .ear-r { transform: rotate(14deg); }
/* growth stages: size + ear length; never "worse", just smaller/younger */
.charwrap { position: relative; }
.charwrap svg.char { transform-origin: 50% 100%; transition: transform 1.2s ease; }
.charwrap.g1 svg.char { transform: scale(.66); } .charwrap.g2 svg.char { transform: scale(.76); } .charwrap.g3 svg.char { transform: scale(.88); }
.charwrap .ears { transform-box: view-box; transform-origin: 110px 108px; transition: transform 1.2s ease; }
.charwrap.g1 .ears { transform: scale(1, .55); } .charwrap.g2 .ears { transform: scale(1, .72); } .charwrap.g3 .ears { transform: scale(1, .88); } .charwrap.g5 .ears { transform: scale(1, 1.04); }
.charwrap .crown { display: none; position: absolute; left: 50%; top: -2%; width: 30%; transform: translateX(-50%); pointer-events: none; }
.charwrap.g5 .crown { display: block; } .charwrap.wear-hat .crown { display: none; }
.charwrap .crown svg { width: 100%; height: auto; }
.grow-chip { display: flex; align-items: center; gap: 10px; background: #ffffff; border-radius: 999px; padding: 6px 14px 6px 10px; box-shadow: var(--shadow); min-height: 48px; width: 100%; text-align: start; }
.grow-chip svg { width: 30px; height: 30px; flex: none; }
.gc-t { display: flex; flex-direction: column; line-height: 1.15; } .gc-t b { font-weight: 400; font-size: 16px; } .gc-t small { color: var(--muted); font-size: 13px; }
.gc-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--mint); overflow: hidden; min-width: 60px; }
.gc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #92d3b5, #6ebc8b); border-radius: 99px; }
.gc-bar.big { height: 14px; margin: 8px 0; }
.dec2 { position: absolute; z-index: 1; pointer-events: none; } .dec2 svg { width: 100%; height: auto; }
.dec2-cushion { width: 16%; bottom: 3%; left: 6%; } .dec2-books { width: 14%; top: 36%; left: 4%; } .dec2-nightlight { width: 10%; top: 8%; left: 40%; }
.dec2-balloon { width: 11%; top: 6%; right: 30%; } .dec2-kite { width: 13%; top: 30%; right: 3%; }
.pill-more { background: #eef1fd; }
.quick .pill { font-size: 16px; padding: 0 8px; } .quick .pill svg { width: 26px; height: 26px; }
/* gentle transition warning: static dots, no blinking */
.nn-later.soon { box-shadow: 0 0 0 3px #fce2ab, var(--shadow); background: #fefbf0; }
.soon-bar { display: flex; gap: 4px; margin-top: 4px; } .soon-bar i { width: 14px; height: 8px; border-radius: 4px; background: #f1e9d3; } .soon-bar i.on { background: #f9cd76; }
/* grow moment */
.grow-moment { text-align: center; top: 12%; overflow: hidden; } .grow-moment .charwrap { width: 160px; margin: 0 auto; }
.gm-glow { position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, #fdf2cb, transparent); z-index: -1; }
.grow-moment h2 { color: var(--ink); margin: 8px 0 4px; } .gm-unlocks { list-style: none; padding: 0; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.gm-unlocks li { display: flex; flex-direction: column; align-items: center; font-size: 14px; } .gm-unlocks svg { width: 44px; height: 44px; }
/* activities hub */
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hub-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 124px; background: #ffffff; border-radius: var(--r); box-shadow: var(--shadow); font-size: 17px; padding: 10px; text-align: center; }
.hub-tile .ht-i svg { width: 54px; height: 54px; }
.hub-tile.has-ft { box-shadow: 0 0 0 3px #fce2ab, var(--shadow); }
.ht-game { background: #fef8e7; } .ht-toolbox { background: #fce8f0; } .ht-stories { background: #ebf5fe; } .ht-firstthen { background: #edf8f2; }
/* faces game */
.fg-stage { position: relative; display: flex; flex-direction: column; align-items: center; background: linear-gradient(#f0f2fd, #ffffff); border-radius: var(--r); padding: 12px; }
.fg-stage .charwrap { width: 170px; } .fg-say { position: static !important; margin-bottom: 6px; }
.say.static { position: static; display: inline-block; background: #ffffff; border-radius: 18px; padding: 10px 16px; box-shadow: var(--shadow); max-width: 100%; }
.fg-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.fg-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #ffffff; border-radius: var(--r); padding: 12px 4px; box-shadow: var(--shadow); font-size: 17px; min-height: 120px; transition: opacity .4s ease; }
.fg-opt svg { width: 56px; height: 56px; } .fg-opt.right { box-shadow: 0 0 0 3px #92d3b5, var(--shadow); } .fg-opt.dim { opacity: .45; }
.center { text-align: center; }
/* toolbox */
.tb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tb-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; min-height: 124px; background: #ffffff; border-radius: var(--r); box-shadow: var(--shadow); font-size: 17px; text-align: center; }
.tb-tile .tb-i svg { width: 56px; height: 56px; } .tb-tile.sel { box-shadow: 0 0 0 3px #f6b6c6, var(--shadow); }
.tb-star { position: absolute; top: 8px; left: 8px; } .tb-star svg { width: 24px; height: 24px; }
.tool-card { text-align: center; top: 14%; } .tool-card .tc-i svg { width: 64px; height: 64px; margin: 0 auto; } .tool-card .charwrap { width: 100px; margin: 6px auto; }
.c5-dots { display: flex; justify-content: center; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.c5-dot { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); font-size: 22px; box-shadow: inset 0 0 0 2px var(--blue-2); transition: background .3s ease; }
.c5-dot.on { background: #92d3b5; color: #ffffff; box-shadow: none; }
.c5-done { color: var(--mint-d); }
.sq-ball { width: 150px; height: 150px; margin: 10px auto; display: block; transition: transform .6s ease; touch-action: none; }
.sq-ball svg { width: 100%; height: 100%; } .sq-ball.held { transform: scale(.8, .72); }
.sq-n { font-size: 20px; }
/* stories */
.st-list { display: flex; flex-direction: column; gap: 10px; }
.st-card { display: flex; align-items: center; gap: 14px; background: #ffffff; border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow); min-height: 76px; text-align: start; }
.st-card .st-i svg { width: 48px; height: 48px; } .st-t { display: flex; flex-direction: column; } .st-t small { color: var(--muted); font-size: 14px; }
.sr-dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0; } .sr-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--lilac-2); } .sr-dots i.on { background: var(--lilac-d); }
.sr-card { background: #ffffff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 18px; text-align: center; }
.sr-pic svg { width: 120px; height: 120px; margin: 0 auto; } .sr-text { font-size: 22px; line-height: 1.5; margin: 12px 0 4px; }
.sr-reader { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; } .sr-reader .charwrap { width: 80px; } .sr-num { color: var(--muted); }
.sr-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .btn-lg { min-height: 58px; padding: 0 26px; font-size: 19px; }
.sr-speak { width: 58px; height: 58px; background: #ffffff; border-radius: 50%; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; } .sr-speak svg { width: 32px; height: 32px; }
/* first-then */
.ft-board { display: flex; align-items: stretch; gap: 8px; margin: 12px 0; }
.ft-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #ffffff; border-radius: var(--r); padding: 14px 8px; box-shadow: var(--shadow); text-align: center; transition: opacity .6s ease, box-shadow .6s ease; }
.ft-col b { font-weight: 400; font-size: 19px; } .ft-lbl { font-size: 15px; color: var(--muted); }
.ft-pic svg { width: 84px; height: 84px; } .ft-first { background: #ebf5fe; } .ft-then { background: #fef8e7; opacity: .7; }
.first-done .ft-then { opacity: 1; box-shadow: 0 0 0 3px #f9d271, var(--shadow); } .first-done .ft-first { opacity: .75; }
.ft-arrow { align-self: center; } .ft-arrow svg { width: 30px; height: 30px; }
.ft-say { display: flex; align-items: center; gap: 10px; } .ft-say .charwrap { width: 90px; flex: none; } .ft-say p { margin: 0; }
.empty-card { background: #ffffff; border-radius: var(--r); padding: 22px; text-align: center; box-shadow: var(--shadow); color: var(--ink-2); } .empty-card svg { width: 60px; height: 60px; margin: 0 auto 8px; }
/* sticker book */
.goal-list { list-style: none; padding: 0; margin: 0; } .goal-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eeeff7; }
.goal-list li:last-child { border-bottom: 0; } .gl-i svg { width: 34px; height: 34px; } .goal-list li.done { color: var(--mint-d); }
.sb-page { background: #fffdf6; border-radius: var(--r-sm); padding: 10px 12px; margin: 10px 0; box-shadow: inset 0 0 0 2px #f5ecd4; }
.sb-date { font-size: 14px; color: var(--muted); } .sb-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sb-stk { width: 58px; height: 58px; border-radius: 50%; background: #ffffff; box-shadow: 0 3px 8px rgba(74, 84, 137, .12); display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); }
.sb-stk:nth-child(2n) { transform: rotate(5deg); } .sb-stk svg { width: 38px; height: 38px; }
/* journal */
.grow-card { display: flex; align-items: center; gap: 14px; } .grow-card .charwrap { width: 90px; flex: none; } .grow-card > div { flex: 1; } .grow-card h2 { margin: 6px 0 0; color: var(--ink); } .grow-card p { margin: 2px 0; }
.stage-path { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 14px 0 4px; gap: 4px; }
.stage-path li { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 12.5px; color: var(--muted); }
.stage-path li span { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--lilac); margin-bottom: 4px; }
.stage-path li.past span { background: var(--mint-2); } .stage-path li.cur span { background: #92d3b5; color: #ffffff; } .stage-path li.cur { color: var(--ink); }
.jlist { list-style: none; padding: 0; margin: 0; } .jlist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #e4e6f4; } .j-day { color: var(--lilac-d); min-width: 64px; }
/* ================= admin ================= */
.screen-admin, .screen-parent, .screen-report { padding-bottom: 30px; }
.admin { position: relative; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; background: rgba(244, 245, 253, .96); padding: 8px 0; margin: -4px 0 4px; }
.adm-top h1 { flex: 1; margin: 0; font-size: 23px; }
.adm-top .icon-btn { width: 48px; height: 48px; background: #ffffff; border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.adm-top .icon-btn svg { width: 28px; height: 28px; } .adm-exit { min-height: 44px; }
.adm-drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(84vw, 300px); background: #ffffff; z-index: 60; padding: calc(var(--safe-t) + 14px) 10px 20px; overflow-y: auto; box-shadow: -10px 0 30px rgba(63, 74, 117, .15); transform: translateX(105%); transition: transform .3s ease; visibility: hidden; }
.drawer-open .adm-drawer { transform: none; visibility: visible; }
.adm-scrim { display: none; position: fixed; inset: 0; background: rgba(63, 74, 117, .25); z-index: 55; }
.drawer-open .adm-scrim { display: block; }
.adm-dh { display: flex; align-items: center; gap: 8px; padding: 6px 10px 12px; color: var(--ink-2); } .adm-dh svg { width: 24px; height: 24px; }
.adm-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 12px; border-radius: 14px; font-size: 17px; text-align: start; }
.adm-link svg { width: 28px; height: 28px; flex: none; } .adm-link.on { background: var(--lilac); color: var(--ink); }
@media (min-width: 900px) {
  .admin { display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
  .adm-top { grid-column: 1 / -1; } .adm-top .icon-btn[data-act="adm-menu"] { display: none; }
  .adm-drawer { position: sticky; top: 70px; transform: none; visibility: visible; width: auto; height: fit-content; border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; }
  .adm-scrim { display: none !important; }
}
.adm-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0; }
.adm-filter .seg { flex: 1; min-width: 230px; } .adm-filter .sel-in { min-height: 44px; flex: 1; }
.adm-h2 { margin-top: 26px; }
.ach h2 { font-size: 18px; color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--lilac); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tile b { font-size: 22px; font-weight: 400; } .tile small { font-size: 13px; color: var(--ink-2); line-height: 1.2; } .tl-i svg { width: 26px; height: 26px; }
.dash-who { display: flex; align-items: center; gap: 12px; } .dash-who .charwrap { width: 70px; flex: none; } .dash-who h2 { margin: 6px 0 0; color: var(--ink); }
.minis { display: grid; grid-template-columns: 1fr; gap: 4px; } .mini h3 { margin: 6px 0 0; font-size: 14.5px; }
@media (min-width: 600px) { .minis { grid-template-columns: repeat(3, 1fr); } }
.ch { width: 100%; height: auto; display: block; margin: 6px 0; overflow: visible; }
.hb { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.hb-row { display: grid; grid-template-columns: minmax(84px, 38%) 1fr auto; align-items: center; gap: 8px; font-size: 15px; }
.hb-l { display: flex; align-items: center; gap: 6px; overflow: hidden; } .hb-l svg { width: 22px; height: 22px; flex: none; }
.hb-face svg { width: 24px; height: 24px; }
.hb-track { height: 16px; background: #f1f2f8; border-radius: 99px; overflow: hidden; } .hb-track i { display: block; height: 100%; border-radius: 99px; min-width: 4px; }
.hb-v { font-weight: 400; font-size: 14.5px; min-width: 28px; text-align: end; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--ink-2); } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-inline-end: 5px; vertical-align: -1px; }
.heat { display: grid; grid-template-columns: 26px repeat(8, 1fr); gap: 3px; font-size: 11.5px; margin: 8px 0; direction: ltr; }
.heat .hd { direction: rtl; color: var(--ink-2); display: flex; align-items: center; } .heat .hh { text-align: center; color: var(--muted); }
.heat .hc { aspect-ratio: 1.4; border-radius: 5px; background: rgba(127, 141, 204, var(--a)); box-shadow: inset 0 0 0 1px #ecedf5; display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 10px; }
.pairs { list-style: none; padding: 0; margin: 0; } .pairs li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f1f2f8; } .pairs svg { width: 18px; height: 18px; } .pairs b { margin-inline-start: auto; font-weight: 400; color: var(--ink-2); }
.kv { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0; } .kv b { font-weight: 400; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.rt-row { display: grid; grid-template-columns: 38px 1fr auto auto 44px; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f1f2f8; }
.rt-row .row-i svg { width: 34px; height: 34px; } .rt-row .time-in { min-height: 44px; }
.icon-btn.sm { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; } .icon-btn.sm svg { width: 24px; height: 24px; } .icon-btn.ghost { visibility: hidden; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin: 10px 0; }
.ip { height: 54px; border-radius: 14px; background: #f9f9fd; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px #eaecf6; } .ip svg { width: 36px; height: 36px; }
.ip.sel { background: var(--lilac); box-shadow: inset 0 0 0 3px var(--lilac-d); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 16px; color: var(--ink-2); }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; }
.txt-in.wide { width: 100%; } .field input[type=time] { min-height: 46px; font: inherit; border-radius: 12px; border: 2px solid var(--lilac-2); padding: 0 10px; background: #ffffff; color: var(--ink); }
.field .sel-in, .ct-step .sel-in { min-height: 46px; width: 100%; }
.players { list-style: none; padding: 0; margin: 0; } .players li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f2f8; }
.players li.me .pl-av { background: #92d3b5; color: #ffffff; }
.pl-av { width: 40px; height: 40px; border-radius: 50%; background: var(--lilac); display: flex; align-items: center; justify-content: center; flex: none; }
.pl-b { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pl-b small { color: var(--muted); font-size: 13px; } .pl-b .txt-in { width: 100%; min-height: 42px; }
.add-row { display: flex; gap: 8px; margin: 12px 0 4px; } .add-row .txt-in { flex: 1; }
.own-stories { list-style: none; padding: 0; margin: 0; } .own-stories li { display: flex; align-items: center; gap: 10px; padding: 6px 0; } .own-stories li > svg { width: 32px; height: 32px; flex: none; } .own-stories li span { flex: 1; }
.own-stories li.muted { color: var(--muted); }
.ct-step { display: grid; grid-template-columns: 28px 120px 1fr; gap: 8px; align-items: center; margin: 8px 0; } .ct-n { color: var(--lilac-d); text-align: center; }
.file-btn { cursor: pointer; } .warn { color: #b1586d !important; }
.tbl.rs td, .tbl.rs th { white-space: nowrap; }
.about p { line-height: 1.6; } .ab-list { padding-inline-start: 20px; line-height: 1.7; }
.gate-q { font-size: 34px; text-align: center; margin: 8px 0; } #gate-in { font-size: 24px; text-align: center; } #gate-in.nope { box-shadow: inset 0 0 0 2px #fdcdc4; }
.parent-gate .gate-math { margin-top: 10px; } .gate-math.gate-math { width: 100%; }
.parent-gate.gate-math .hold-btn { display: none; } .parent-gate.gate-math .gate-math { min-height: 56px; }
/* report (print-friendly) */
.report { background: #ffffff; border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.rep-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rep-head h1 { font-size: 24px; } .rep-head p { margin: 4px 0; }
.report .card { box-shadow: none; border: 1px solid #eaecf6; break-inside: avoid; }
.rep-foot { font-size: 13px; color: var(--muted); border-top: 1px solid #eaecf6; margin-top: 16px; padding-top: 8px; }
@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #ffffff !important; } body { font-size: 12.5pt; }
  .nav, .no-print, .toast, .overlay { display: none !important; }
  .app { padding: 0 !important; max-width: none !important; } .report { box-shadow: none; padding: 0; }
  .report .card { page-break-inside: avoid; margin: 8px 0; } .tiles { grid-template-columns: repeat(6, 1fr); }
  .hb-track, .tile, .hb-track i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
html.rm .charwrap svg.char, html.rm .charwrap .ears, html.rm .adm-drawer, html.rm .sq-ball, html.rm .ft-col { transition-duration: .01s !important; }

.screen-admin .chips { flex-wrap: wrap; } .screen-admin .chip-btn { flex: 0 0 auto; padding: 0 14px; min-height: 44px; }
.quick { gap: 8px; } .quick .pill { font-size: 15px; gap: 5px; padding: 0 6px; line-height: 1.15; } .quick .pill svg { width: 22px; height: 22px; flex: none; }
.rt-row { grid-template-columns: 38px 1fr auto 44px; grid-template-areas: "i n n n" "i t s d"; row-gap: 6px; }
.rt-row .row-i { grid-area: i; align-self: start; } .rt-row .rt-n { grid-area: n; } .rt-row .time-in { grid-area: t; justify-self: start; min-width: 130px; } .rt-row .switch { grid-area: s; } .rt-row .icon-btn.sm { grid-area: d; }
.say.static::after, .say.static::before { display: none !important; }

/* ================= v3: fur colours, closet, personality, seasons, garden, pairs, breathing bubbles ================= */
.charwrap .fur { fill: var(--fur, #fffdfb); stroke: var(--fur-l, #cacde8); }
.charwrap .belly { fill: var(--belly, #fef3ed); }
.fur-snow { --fur: #fffdfb; --fur-l: #d8c8ea; --belly: #fff3ec; }
.fur-cream { --fur: #fff1d6; --fur-l: #e6cfa2; --belly: #fffaf0; }
.fur-caramel { --fur: #f6d6b3; --fur-l: #d8ac80; --belly: #fff0de; }
.fur-cocoa { --fur: #e2c3ab; --fur-l: #b99579; --belly: #f7e8dc; }
.fur-grey { --fur: #ebe8f1; --fur-l: #bdb6cf; --belly: #f8f7fb; }
.fur-lilac { --fur: #efe6ff; --fur-l: #c3b0ec; --belly: #fbf7ff; }
.fur-peach { --fur: #ffe3d9; --fur-l: #eeb7a5; --belly: #fff4ef; }
.fur-mint { --fur: #e0f5ea; --fur-l: #a6d5bd; --belly: #f4fcf8; }
.char .acc-headphones, .char .acc-starclip, .char .acc-bandana, .char .acc-sunhat, .char .acc-leafwreath, .char .acc-beanie, .char .acc-blossom, .char .acc-sunnies { display: none; }
.wear-headphones .acc-headphones, .wear-starclip .acc-starclip, .wear-bandana .acc-bandana, .wear-sunhat .acc-sunhat, .wear-leafwreath .acc-leafwreath,
.wear-beanie .acc-beanie, .wear-blossom .acc-blossom, .wear-sunnies .acc-sunnies { display: inline !important; }
.wear-hat .acc-sunhat, .wear-hat .acc-beanie, .wear-hat .acc-leafwreath, .wear-hat .acc-blossom,
.wear-sunhat .acc-beanie, .wear-sunhat .acc-leafwreath, .wear-sunhat .acc-blossom, .wear-sunhat .acc-bow, .wear-sunhat .acc-flower,
.wear-beanie .acc-leafwreath, .wear-beanie .acc-blossom, .wear-beanie .acc-bow, .wear-beanie .acc-flower { display: none !important; }
.wear-sunnies .acc-glasses { display: none !important; }
.wear-sunhat .crown, .wear-beanie .crown { display: none; }
.charwrap[data-mood="sleep"] .acc-sunnies { display: none !important; }

.ob-look { text-align: center; }
.ob-look h3 { margin: 14px 0 8px; }
.fur-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 6px; }
.fur-sw { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); min-height: 72px; font-size: 14px; color: var(--ink-2); }
.fur-sw i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(74, 84, 137,.14); }
.fur-sw.sel { box-shadow: 0 0 0 3px var(--lilac-d), var(--shadow); color: var(--ink); }
.starter-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 18px; }
.starter { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.2; min-height: 82px; color: var(--ink-2); }
.starter .st-i svg { width: 36px; height: 36px; } .starter.sel { box-shadow: 0 0 0 3px var(--lilac-d), var(--shadow); color: var(--ink); }
.none-dot { display: block; width: 30px; height: 30px; margin: 3px; border-radius: 50%; border: 3px dashed var(--lilac-2); }
.ob-look .ob-char .charwrap { width: 130px; }

.coach { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.coach-ring { position: fixed; border-radius: 26px; box-shadow: 0 0 0 4px #ffffff, 0 0 0 9999px rgba(61, 65, 89, .38); transition: all .35s ease; }
.coach-card { position: fixed; left: 50%; transform: translateX(-50%); width: min(92vw, 420px); background: #ffffff; border-radius: 24px; padding: 14px 18px 16px; box-shadow: 0 12px 30px rgba(53, 64, 116,.25); pointer-events: auto; animation: fadein .3s ease; }
.coach-card p { margin: 6px 0 12px; font-size: 18px; }
.coach-dots { display: flex; gap: 6px; justify-content: center; } .coach-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lilac-2); } .coach-dots i.on { background: var(--lilac-d); width: 22px; border-radius: 6px; }
html.rm .coach-ring { transition: none; } html.rm .coach-card { animation: none; }

.charwrap.looking .headgrp { transform: rotate(calc(var(--lx, 0) * 5deg)); }
.charwrap.looking .faces { transform: translate(calc(var(--lx, 0) * 5px), calc(var(--ly, 0) * 3px)); }
.char .faces { transition: transform .5s ease; }
.charwrap[data-mood="sleep"].looking .headgrp { transform: rotate(-6deg) translateY(4px); }
.charwrap[data-mood="sleep"].looking .faces { transform: none; }
.charwrap.idle-earL .ear-l { animation: earflick .9s ease; } .charwrap.idle-earR .ear-r { animation: earflickR .9s ease; }
.charwrap.idle-wiggle .ear-l { animation: earflick .45s ease 2; } .charwrap.idle-wiggle .ear-r { animation: earflickR .45s ease 2; }
@keyframes earflick { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-16deg); } 65% { transform: rotate(5deg); } }
@keyframes earflickR { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(16deg); } 65% { transform: rotate(-5deg); } }
.charwrap.idle-tilt .headgrp { animation: tilt 1.8s ease-in-out; }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(8deg); } }
.charwrap.idle-stretch .whole { animation: stretch 1.6s ease-in-out; }
@keyframes stretch { 0%, 100% { transform: scale(1, 1); } 40% { transform: scale(.96, 1.06); } 60% { transform: scale(1.03, .97); } }
.charwrap.idle-sniff .headgrp { animation: sniff .3s ease-in-out 4; }
@keyframes sniff { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px) rotate(1deg); } }
.charwrap.idle-look .faces { animation: lookaround 2.6s ease-in-out; }
@keyframes lookaround { 0%, 100% { transform: translateX(0); } 25%, 40% { transform: translateX(-6px); } 60%, 75% { transform: translateX(6px); } }
.charwrap.blush .cheek { opacity: .95; transition: opacity .3s; }
.charwrap.jiggle .bodygrp { animation: jiggle .8s ease; transform-origin: 110px 250px; }
@keyframes jiggle { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.05, .95); } 50% { transform: scale(.97, 1.03); } 75% { transform: scale(1.02, .98); } }
.charwrap.spin .whole { animation: spinhop 1.3s ease-in-out; }
@keyframes spinhop { 0% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-26px) rotate(-8deg); } 55% { transform: translateY(-14px) rotate(8deg); } 80% { transform: translateY(-4px) rotate(-3deg); } 100% { transform: translateY(0) rotate(0); } }
.think { position: absolute; z-index: 4; left: 58%; top: 18%; width: 62px; height: 52px; border-radius: 26px; background: #ffffff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.think::before, .think::after { content: ''; position: absolute; background: #ffffff; border-radius: 50%; box-shadow: var(--shadow); }
.think::before { width: 14px; height: 14px; left: 4px; bottom: -14px; } .think::after { width: 8px; height: 8px; left: -4px; bottom: -24px; }
.think.show { opacity: 1; transform: scale(1); } .think .th-i svg { width: 34px; height: 34px; }
[dir="rtl"] .think { left: auto; right: 58%; } [dir="rtl"] .think::before { left: auto; right: 4px; } [dir="rtl"] .think::after { left: auto; right: -4px; }
html.rm .think { transition: opacity .2s; transform: none; }
.pill-more.has-dot { position: relative; } .pill-more.has-dot::after { content: ''; position: absolute; top: 6px; inset-inline-end: 8px; width: 10px; height: 10px; border-radius: 50%; background: #f9ae71; box-shadow: 0 0 0 2px #ffffff; }
@media (prefers-reduced-motion: reduce) { .charwrap[class*="idle-"] *, .charwrap.spin .whole, .charwrap.jiggle .bodygrp { animation: none !important; } }
html.rm .charwrap[class*="idle-"] *, html.rm .charwrap.spin .whole, html.rm .charwrap.jiggle .bodygrp { animation: none !important; }
html.rm .charwrap.looking .headgrp, html.rm .charwrap.looking .faces { transform: none; }

.dec-fairylights, .dec-fishbowl, .dec-starmobile, .dec-sunflower, .dec-veggiebasket, .dec-pumpkin, .dec-snowglobe { display: none; }
.dec.on { display: block; }
.dec-fairylights { left: 6%; right: 6%; top: -14px; height: 40px; border-bottom: 2px solid #a9b3e5; border-radius: 0 0 50% 50%; }
.dec-fairylights.on { display: flex; justify-content: space-around; align-items: flex-end; }
.dec-fairylights i { width: 11px; height: 14px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: #fad28f; box-shadow: 0 0 8px 2px rgba(250, 210, 143, .55); margin-bottom: -9px; }
.dec-fairylights i:nth-child(1), .dec-fairylights i:nth-child(9) { margin-bottom: 8px; } .dec-fairylights i:nth-child(2), .dec-fairylights i:nth-child(8) { margin-bottom: -1px; } .dec-fairylights i:nth-child(3), .dec-fairylights i:nth-child(7) { margin-bottom: -6px; }
.dec-fairylights i:nth-child(3n+2) { background: #f5c8da; box-shadow: 0 0 8px 2px rgba(245, 200, 218, .6); } .dec-fairylights i:nth-child(3n) { background: #c1e8cf; box-shadow: 0 0 8px 2px rgba(193, 232, 207, .6); }
.room.has-bunting .dec-fairylights { top: 18px; }
.dec-starmobile { width: 58px; top: -4px; right: 24%; }
.dec-fishbowl { width: 58px; left: 12px; bottom: 44%; }
.dec-sunflower { width: 58px; right: 10px; bottom: 7%; }
.dec-veggiebasket { width: 56px; left: 18%; bottom: 4%; }
.dec-pumpkin { width: 52px; right: 26%; bottom: 3%; }
.dec-snowglobe { width: 46px; left: 12px; bottom: 30%; }
.has-plant .dec-fishbowl { bottom: 52%; }

.season-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.season-fx i { position: absolute; top: -20px; left: var(--x); width: 12px; height: 12px; opacity: 0; animation: fall 14s linear infinite; animation-delay: var(--d); }
.season-autumn i { background: #eea367; border-radius: 0 70% 0 70%; } .season-autumn i:nth-child(2n) { background: #e4c26f; }
.season-winter i { background: #ffffff; border-radius: 50%; width: 9px; height: 9px; box-shadow: 0 0 0 1px #e7eef7; }
.season-spring i { background: #f5c8da; border-radius: 70% 0 70% 0; }
.season-summer i { display: none; }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 8% { opacity: .85; } 50% { transform: translate(18px, 160px) rotate(140deg); } 85% { opacity: .7; } 100% { transform: translate(-8px, 320px) rotate(260deg); opacity: 0; } }
.room.sky-night .season-fx { opacity: .5; }
html.rm .season-fx i { display: none; }
@media (prefers-reduced-motion: reduce) { .season-fx i { display: none; } }

.season-gift { text-align: center; } .season-gift .sg-i svg { width: 84px; height: 84px; margin: 4px auto; }

.g-scene { position: relative; border-radius: 28px; padding: 14px 12px 16px; background: linear-gradient(180deg, #e7f4fe 0, #eefaf2 46%, #e4f2e3 100%); box-shadow: inset 0 0 0 3px #ffffff, var(--shadow); overflow: hidden; }
.g-scene.season-autumn { background: linear-gradient(180deg, #fef1e4 0, #fcf5eb 46%, #eef2e0 100%); }
.g-scene.season-winter { background: linear-gradient(180deg, #eff3fa 0, #f6f8fc 46%, #eaf1ef 100%); }
.g-top { display: flex; align-items: flex-end; gap: 6px; position: relative; z-index: 2; }
.g-say { position: relative !important; margin: 0 0 18px; min-height: 52px; flex: 1; }
.g-rabbit { flex: none; width: 104px; pointer-events: none; } .g-rabbit .charwrap { width: 104px; }
.g-sun { position: absolute; top: 10px; inset-inline-start: 12px; width: 44px; opacity: .55; } .g-sun svg { width: 44px; height: 44px; }
.g-fence { height: 26px; margin: -6px -12px 0; background: repeating-linear-gradient(90deg, transparent 0 10px, #ffffff 10px 22px, transparent 22px 34px), linear-gradient(transparent 9px, #ffffff 9px 13px, transparent 13px); opacity: .85; }
.plots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; position: relative; z-index: 2; }
.plot { position: relative; background: #f2e3d3; border-radius: 22px; padding: 6px 4px 8px; box-shadow: inset 0 -6px 0 #e6cdb6, var(--shadow); min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.plot .plant { width: 100%; max-width: 110px; height: auto; transition: transform .5s ease; }
.plot-l { display: flex; align-items: center; gap: 4px; font-size: 13.5px; line-height: 1.2; color: var(--ink-2); text-align: center; }
.plot-l svg { width: 20px; height: 20px; flex: none; }
.plot-thirsty { box-shadow: inset 0 -6px 0 #e6cdb6, 0 0 0 3px #acdbf4, var(--shadow); }
.plot-ready { box-shadow: inset 0 -6px 0 #e6cdb6, 0 0 0 3px #fad28f, var(--shadow); }
.plot-ready .plant { animation: readybob 2.6s ease-in-out infinite; }
@keyframes readybob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.plot.watering .plant { animation: watered .9s ease; }
@keyframes watered { 0% { transform: scale(1); } 40% { transform: scale(.94, 1.04); } 100% { transform: scale(1); } }
.plot.watering::before { content: ''; position: absolute; top: 4px; left: 50%; width: 36px; height: 30px; margin-left: -18px; background: repeating-linear-gradient(90deg, #90caec 0 3px, transparent 3px 9px); border-radius: 0 0 14px 14px; opacity: .8; animation: rain .9s ease; }
@keyframes rain { 0% { transform: translateY(-10px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(30px); opacity: 0; } }
.drink-ring { position: absolute; top: 8px; inset-inline-start: 8px; width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#90caec calc(var(--f) * 360deg), #e7f2fa 0); box-shadow: 0 0 0 2px #ffffff; }
html.rm .plot-ready .plant, html.rm .plot.watering .plant, html.rm .plot.watering::before { animation: none; }
.basket { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding: 12px 14px; }
.bk-t { display: flex; align-items: center; gap: 6px; color: var(--ink-2); } .bk-t svg { width: 28px; height: 28px; }
.bk { display: inline-flex; align-items: center; gap: 4px; background: var(--lilac); border-radius: 14px; padding: 2px 10px 2px 6px; } .bk svg { width: 26px; height: 26px; }
.seed-sheet { position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); width: min(94vw, 440px); background: #ffffff; border-radius: 26px; padding: 14px; box-shadow: 0 14px 36px rgba(53, 64, 116,.28); text-align: center; z-index: 30; animation: fadein .25s ease; }
.seed-sheet p { margin: 2px 0 10px; font-size: 19px; }
.seed-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.seed-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 20px; background: var(--mint); min-height: 96px; } .seed-opt svg { width: 46px; height: 46px; }

.pairs-start { text-align: center; } .pairs-start .charwrap { width: 120px; margin: 0 auto; } .pairs-start .seg { max-width: 300px; margin: 8px auto 4px; }
.pairs-say { position: relative !important; margin: 4px 0 16px; min-height: 50px; } .p-rabbit, .p-rabbit .charwrap { width: 84px; }
.pairs-grid { display: grid; gap: 10px; } .pairs-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .pairs-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pcard { aspect-ratio: 3 / 4; border-radius: 18px; position: relative; }
.pc-in { position: absolute; inset: 0; }
.pc-back, .pc-front { position: absolute; inset: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.pc-back { background: linear-gradient(160deg, #dee3fd, #d1d8f6); } .pc-back svg { width: 40%; height: auto; opacity: .55; }
.pc-front { background: #ffffff; gap: 2px; padding: 4px; display: none; } .pc-front svg { width: 72%; height: auto; } .pc-front em { font-style: normal; font-size: 13px; color: var(--ink-2); }
.pcard.up .pc-back, .pcard.done .pc-back { display: none; }
.pcard.up .pc-front, .pcard.done .pc-front { display: flex; animation: cardflip .32s ease-out; }
@keyframes cardflip { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
.pcard.done .pc-front { box-shadow: 0 0 0 3px var(--mint-2), var(--shadow); animation: none; }
.pairs-win { text-align: center; margin-top: 14px; } .pairs-win .charwrap { width: 120px; margin: 0 auto; }
html.rm .pcard .pc-front { animation: none !important; }

.blow-field { position: relative; height: min(56vh, 460px); border-radius: 28px; background: linear-gradient(180deg, #eff6fe 0, #f4f5fd 100%); box-shadow: inset 0 0 0 3px #ffffff, var(--shadow); overflow: hidden; touch-action: none; }
.blow-say { position: absolute !important; top: 12px; left: 12px; right: 12px; margin: 0; text-align: center; }
.blow-count { position: absolute; top: 72px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 15px; }
.blow-rabbit { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); } .blow-rabbit .charwrap { width: 120px; }
.blow-rabbit .charwrap.inhale .whole { animation: inhale 4s ease-out forwards; }
@keyframes inhale { from { transform: scale(1); } to { transform: scale(1.06, 1.08); } }
.wand { position: absolute; left: 50%; bottom: 150px; width: 4px; height: 34px; margin-left: 30px; background: #a9b3e5; border-radius: 2px; }
.wand i { position: absolute; top: -26px; left: -12px; width: 28px; height: 28px; border-radius: 50%; border: 4px solid #a9b3e5; }
.bubble-grow { position: absolute; left: 50%; bottom: 186px; margin-left: 32px; width: 180px; height: 180px; border-radius: 50%; transform-origin: 50% 100%; transform: translate(-50%, 0) scale(.15); opacity: 0; transition: opacity .3s; box-shadow: inset -8px -10px 18px rgba(255, 255, 255,.7), 0 0 0 2px rgba(255, 255, 255,.8); }
.bubble-grow.on { opacity: .92; }
.free-bub { position: absolute; bottom: 186px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0 10%, var(--c) 45%, rgba(255, 255, 255,.35) 100%); box-shadow: inset -6px -8px 14px rgba(255, 255, 255,.7), 0 0 0 2px rgba(255, 255, 255,.85); animation: floataway 6.5s ease-in forwards; }
@keyframes floataway { 0% { transform: translate(0, 0); } 30% { transform: translate(-18px, -120px); } 60% { transform: translate(14px, -240px); } 100% { transform: translate(-6px, -420px); } }
.free-bub.still { animation: none; opacity: .9; }
.free-bub.popped { animation: none; transform: scale(1.25); opacity: 0; transition: transform .4s ease, opacity .4s ease; }
.blow-btn { margin-top: 14px; width: 100%; -webkit-user-select: none; user-select: none; touch-action: none; }
.blow-btn.holding { background: var(--mint-d); transform: scale(.98); }
html.rm .blow-rabbit .charwrap.inhale .whole { animation: none; }

.row-btn { width: 100%; text-align: start; } .row-btn > svg { width: 22px; height: 22px; opacity: .5; transform: scaleX(-1); } [dir="ltr"] .row-btn > svg { transform: none; }
.legal-links { text-align: center; font-size: 15px; } .legal-links a { color: var(--ink-2); }

/* language pick on the splash; LTR mirroring; bigger text option */
.lang-pick { display: flex; gap: 8px; justify-content: center; margin: 14px 0 4px; }
.lang-pick .lp { min-width: 104px; min-height: 46px; border-radius: 23px; background: var(--card); box-shadow: var(--shadow); font-size: 17px; color: var(--ink-2); }
.lang-pick .lp.sel { box-shadow: 0 0 0 3px var(--lilac-d), var(--shadow); color: var(--ink); }
[dir="ltr"] .back-btn svg { transform: scaleX(-1); }
.app { zoom: var(--z, 1); } html.big { --z: 1.14; }
@media (min-width: 700px) and (min-height: 640px) { html { --z: 1.4; } html.big { --z: 1.55; } }
html.big .coach-card p { font-size: 20px; }
[dir="ltr"] .nn-arrow svg, [dir="ltr"] .pairs li svg { transform: scaleX(-1); }

/* LTR (English) mirroring of the RTL-first layout */
[dir="ltr"] .onboard .back-btn, [dir="ltr"] .feel .back-btn { right: auto; left: 0; }
[dir="ltr"] .switch i { right: auto; left: 4px; }
[dir="ltr"] .switch[aria-checked="true"] i { transform: translateX(26px); }
[dir="ltr"] .rb-fill { right: auto; left: 0; background: linear-gradient(90deg, #fce0bb, #d1d8f6); }
[dir="ltr"] .vol input { direction: ltr; }
[dir="ltr"] .heat .hd { direction: ltr; }
@media (max-width: 899px) { [dir="ltr"] .adm-drawer { right: auto; left: 0; transform: translateX(-105%); box-shadow: 10px 0 30px rgba(63, 74, 117, .15); } [dir="ltr"] .drawer-open .adm-drawer { transform: none; } }

/* researcher table: stacked cards on phones, no sideways swipe */
@media (max-width: 600px) {
  .tbl.rs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl.rs, .tbl.rs tbody, .tbl.rs tr, .tbl.rs td { display: block; width: 100%; }
  .tbl.rs tr { background: var(--lilac); border-radius: 16px; padding: 6px 12px; margin: 0 0 10px; }
  .tbl.rs td { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border: 0; text-align: start; }
  .tbl.rs td::before { content: attr(data-l); color: var(--ink-2); }
  .tbl.rs td[dir="ltr"] { flex-direction: row-reverse; } [dir="ltr"] .tbl.rs td[dir="ltr"] { flex-direction: row; }
  .tbl-wrap:has(.tbl.rs) { overflow: visible; }
}
.switch::before { content: ''; position: absolute; inset: -6px -2px; }
.legal-links a { display: inline-block; padding: 12px 6px; }

/* zoomed layouts (tablet / bigger text): viewport units are divided by the zoom so screens still fit */
.home { min-height: calc((100dvh - var(--safe-b)) / var(--z, 1) - var(--nav-h) - 40px); }
.splash { min-height: calc(100dvh / var(--z, 1) - 40px); }
.app { min-height: calc(100dvh / var(--z, 1)); }
.play { height: calc(100dvh / var(--z, 1)); }
@media (min-width: 700px) and (min-height: 640px) { .room { min-height: 300px; } }
@media (max-width: 699px) { html.big .room { min-height: 210px; } html.big .home { gap: 6px; } }
[dir="ltr"] .rb-mark { transform: translate(-50%, -50%); } [dir="ltr"] .rb-now { transform: translateX(-50%); }
.blow-count { top: 16px; left: auto; right: auto; inset-inline-end: 16px; text-align: end; max-width: 40%; }

/* ================= v4 — "Soft Dawn" design layer (fresh, premium-soft, calm) ================= */
:root {
  --bg: #f7f4ef; --bg-2: #fbf9f6; --card: #ffffff; --ink: #2e2b3f; --ink-2: #4f4b66; --muted: #67637d;
  --lilac: #eef0fc; --lilac-2: #d8dcf6; --lilac-d: #5a63c4;
  --mint: #e4f4ec; --mint-2: #bfe3cf; --mint-d: #2e7a5a;
  --blue: #e6f1fb; --blue-2: #c5ddf3; --blue-d: #3c78ad;
  --peach: #fdeee4; --peach-2: #f7d3bd; --peach-d: #b3603b;
  --rose: #fbeaf0; --sun: #f7d58c;
  --r: 24px; --r-sm: 16px; --r-lg: 32px;
  --line: rgba(46, 43, 63, .07);
  --shadow: 0 0 0 1px rgba(46, 43, 63, .045), 0 1px 2px rgba(46, 43, 63, .04), 0 10px 26px -12px rgba(64, 62, 120, .20);
  --shadow-lg: 0 0 0 1px rgba(46, 43, 63, .04), 0 2px 6px rgba(46, 43, 63, .05), 0 24px 48px -18px rgba(64, 62, 120, .30);
  --glass: rgba(255, 255, 255, .78);
  --grad-primary: linear-gradient(180deg, #7880e3 0%, #5a63c8 100%);
  --ease: cubic-bezier(.22, .8, .3, 1);
  --nav-h: 74px;
}
html { background: var(--bg); }
body {
  font-family: 'Rubik', 'Varela Round', 'Assistant', 'Arial Hebrew', system-ui, sans-serif;
  font-size: 17.5px; line-height: 1.5; color: var(--ink); font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    radial-gradient(520px 380px at 105% -6%, rgba(253, 220, 200, .55) 0, rgba(253, 220, 200, 0) 70%),
    radial-gradient(520px 420px at -12% 22%, rgba(214, 220, 250, .55) 0, rgba(214, 220, 250, 0) 70%),
    radial-gradient(560px 460px at 110% 105%, rgba(205, 236, 218, .55) 0, rgba(205, 236, 218, 0) 70%),
    var(--bg);
  background-attachment: fixed;
}
h1 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
h2 { font-size: 18.5px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
h3 { font-size: 15.5px; font-weight: 600; color: var(--ink-2); }
b, strong { font-weight: 600; }
.sub { color: var(--muted); font-size: 16.5px; }
.note { background: var(--lilac); color: var(--ink-2); border-radius: var(--r-sm); }
:focus-visible { outline: 3px solid var(--lilac-d); outline-offset: 3px; }
html.ready .screen { animation: v4in .5s var(--ease) both; }
@keyframes v4in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* buttons */
.btn { font-weight: 500; letter-spacing: .005em; transition: transform .2s var(--ease), box-shadow .25s ease, background .25s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 22px -10px rgba(78, 86, 196, .65); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1.5px var(--lilac-2) inset, 0 4px 12px -8px rgba(64, 62, 120, .25); }
.btn-danger { background: #fff; color: #a8455d; box-shadow: 0 0 0 1.5px #f0c4ce inset; }
.btn-xl { min-height: 60px; font-size: 20px; border-radius: 22px; }
.icon-btn { background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); border-radius: 18px; }
.chip { font-weight: 500; }

/* cards & surfaces */
.card { border-radius: var(--r); padding: 6px 18px 12px; box-shadow: var(--shadow); }
.card h2 { margin-top: 14px; }
.row { border-bottom-color: var(--line); }
.note.small { background: transparent; }
.banner { border-radius: var(--r); background: linear-gradient(150deg, #fff8ef, #fdeee3); }
.switch { background: #e3e2ec; width: 62px; height: 36px; }
.switch i { width: 28px; height: 28px; box-shadow: 0 2px 6px rgba(46, 43, 63, .18); transition: transform .3s var(--ease); }
.switch[aria-checked="true"] { background: linear-gradient(180deg, #79c6a1, #5aae88); }
.seg { background: rgba(46, 43, 63, .055); }
.seg-btn { font-weight: 500; }
.seg-btn.sel { box-shadow: 0 1px 2px rgba(46, 43, 63, .08), 0 6px 14px -8px rgba(64, 62, 120, .35); }
.field input, .field textarea { border: 1.5px solid var(--lilac-2); border-radius: 16px; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--lilac-d); box-shadow: 0 0 0 4px rgba(90, 99, 196, .12); }

/* splash */
.logo-word { font-weight: 700; letter-spacing: -.02em; font-size: 46px; color: #4f58bd; }
.logo-word span { color: #e0788f; }
.logo-tag { font-weight: 400; color: var(--muted); font-size: 18px; }
.splash-char { margin: 22px 0 10px; isolation: isolate; }
.splash-char::before { inset: 4% -14% -2%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95) 0, rgba(238, 240, 252, .8) 55%, rgba(238, 240, 252, 0) 100%); }
.splash-char::after { content: ''; position: absolute; z-index: -1; left: 18%; right: 18%; bottom: -2%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(64, 62, 120, .16), rgba(64, 62, 120, 0)); }
.lang-pick .lp { font-weight: 500; border-radius: 999px; }
.lang-pick .lp.sel { box-shadow: 0 0 0 2px var(--lilac-d), var(--shadow); color: var(--ink); }

/* onboarding */
.dots i { background: var(--lilac-2); height: 8px; width: 8px; }
.dots i.on { width: 26px; border-radius: 99px; background: var(--grad-primary); }
.dots i.past { background: #aab1ea; }
.choice { border-radius: var(--r); font-weight: 500; font-size: 21px; transition: transform .2s var(--ease), box-shadow .25s ease; }
.choice.sel { box-shadow: 0 0 0 2.5px var(--lilac-d), var(--shadow-lg); }
.mini-routine li { border-radius: var(--r-sm); }
.mini-routine b { color: var(--lilac-d); font-weight: 600; }

/* home */
.greet { color: var(--muted); font-size: 16px; }
.clock { font-weight: 600; font-size: 30px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stars-pill { background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-weight: 600; }
.stars-pill b { font-weight: 600; }
.nn-card { border-radius: 22px; }
.nn-now { background: linear-gradient(155deg, #fffaf3, #fdeee2); }
.nn-now.free { background: linear-gradient(155deg, #f6fcf8, #e3f4ea); }
.nn-lbl { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.nn-t { font-weight: 500; }
.nn-t b { color: var(--lilac-d); font-weight: 600; }
.timer { background: conic-gradient(#8d95ea calc(var(--p) * 360deg), #eceefb 0); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--lilac-2); }

.room { border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9) inset, var(--shadow-lg);
  background: radial-gradient(120% 70% at 50% 0%, #f4f2ff 0, #ece9fb 55%, rgba(236, 233, 251, 0) 100%), linear-gradient(180deg, #efecfc 0, #ebe8fa 63%, #fbe8dc 63%, #f7dfd0 100%); }
.floor { height: 37%; border-top: 0; border-radius: 50% 50% 0 0 / 22px 22px 0 0; background: linear-gradient(180deg, #fcebdf, #f6dccb); box-shadow: 0 -1px 0 rgba(255, 255, 255, .9) inset; }
.window { border-radius: 44px 44px 16px 16px; border: 4px solid #fff; box-shadow: 0 6px 16px -8px rgba(64, 62, 120, .35); }
.window::after { width: 3px; margin-left: -1.5px; }
.stage::before { content: ''; position: absolute; z-index: -1; bottom: -2%; left: 50%; width: min(48vw, 190px); height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(64, 62, 120, .20), rgba(64, 62, 120, 0)); pointer-events: none; }
.stage::after { content: ''; position: absolute; z-index: -2; bottom: 6%; left: 50%; width: min(70vw, 280px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); pointer-events: none; }
.stage { isolation: isolate; }
.say { border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-weight: 500; font-size: 17px; }
.say::after { border-top-color: rgba(255, 255, 255, .85); }
.say.tappable { box-shadow: 0 0 0 1.5px var(--lilac-2) inset, var(--shadow); }
.say.static { background: #fff; }
.pill { border-radius: 18px; font-weight: 500; font-size: 16.5px; min-height: 54px; }
.pill-feel { background: linear-gradient(155deg, #fffaf0, #fff1d6); } .pill-calm { background: linear-gradient(155deg, #f4fbf7, #e2f3ea); }
.actions { gap: 8px; }
.act { border-radius: 20px; padding: 10px 0 9px; transition: transform .2s var(--ease), box-shadow .3s ease; }
.act .ai { width: 48px; height: 48px; border-radius: 16px; }
.act .ai svg { width: 36px; height: 36px; }
.act .al { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.act.wanted { box-shadow: 0 0 0 2.5px #a9b0ee, var(--shadow); }
.act-feed .ai { background: #fff0e4; } .act-water .ai { background: #e5f1fc; } .act-pet .ai { background: #fceaf0; } .act-play .ai { background: #e9efff; } .act-rest .ai { background: #eeeefc; }

/* floating glass nav */
.nav { bottom: calc(10px + var(--safe-b)); width: calc(100% - 24px); max-width: 456px; border-radius: 28px; padding: 6px; gap: 2px;
  background: rgba(255, 255, 255, .80); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(46, 43, 63, .06), 0 18px 40px -14px rgba(64, 62, 120, .35); }
.with-nav .screen { padding-bottom: calc(var(--nav-h) + 34px + var(--safe-b)); }
.nav-btn { border-radius: 22px; min-height: 60px; padding: 6px 0 4px; color: var(--muted); transition: background .3s ease, color .3s ease; }
.nav-btn .ni svg { width: 28px; height: 28px; opacity: .7; transition: transform .35s var(--ease), opacity .3s ease; }
.nav-btn .nl { font-size: 12.5px; font-weight: 500; }
.nav-btn.on { background: var(--lilac); color: var(--ink); }
.nav-btn.on .ni svg { opacity: 1; transform: translateY(-1px) scale(1.06); }

/* feelings */
.feel-head h1 { font-size: 24px; }
.faces { gap: 12px; }
.face-btn { border-radius: var(--r); font-weight: 500; font-size: 18.5px; padding: 14px 6px 14px; transition: transform .2s var(--ease), box-shadow .25s ease; }
.face-btn svg { width: 78px; height: 78px; filter: drop-shadow(0 6px 8px rgba(64, 62, 120, .12)); }
.face-btn:active { transform: scale(.96); }
.chosen b { font-weight: 600; }
.int-btn, .opt { border-radius: var(--r); font-weight: 500; }
.bars i { background: #eceaf3; }
.i1 .bars i:nth-child(1), .i2 .bars i:nth-child(-n+2), .i3 .bars i { background: linear-gradient(180deg, #9aa1ee, #7179dc); }

/* breathing */
.breathe { background: radial-gradient(90% 60% at 50% 30%, #f1fbf6 0, rgba(241, 251, 246, 0) 70%), linear-gradient(180deg, #eef8f3, #eaf0fb 60%, #f3effa); }
.b-ring { border: 1.5px solid rgba(111, 186, 152, .35); box-shadow: 0 0 0 22px rgba(176, 222, 199, .12), 0 0 0 46px rgba(176, 222, 199, .07); }
.b-circle { background: radial-gradient(circle at 38% 32%, #f6fffb 0, #c9eedb 45%, #93d3b4 100%); box-shadow: 0 0 0 10px rgba(255, 255, 255, .45), 0 24px 50px -16px rgba(46, 122, 90, .35); transition-timing-function: cubic-bezier(.45, .05, .35, 1); }
.b-word { font-weight: 600; color: #275f49; letter-spacing: -.01em; }
.b-count { font-weight: 500; color: #3b8a69; }
.b-dots i { background: #d5ebdf; } .b-dots i.on { background: #5fb68f; }
.dialog { border-radius: 28px; box-shadow: var(--shadow-lg); }
.overlay:has(.dialog) { background: rgba(46, 43, 63, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* play / bubbles */
.play { background: radial-gradient(80% 50% at 50% 0, #eef2ff 0, rgba(238, 242, 255, 0) 70%), linear-gradient(180deg, #edf3fd, #f5f2fc 60%, #fdf0e8); }
.play-count { font-weight: 600; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* my day */
.ribbon { border-radius: var(--r); }
.rb-line { background: #eceaf6; height: 10px; }
.rb-fill { background: linear-gradient(270deg, #fde0bf, #c9cdf6); }
.rb-mark .rb-ic { box-shadow: 0 0 0 2px #eceaf6, 0 4px 10px -6px rgba(64, 62, 120, .3); }
.rb-mark.done .rb-ic { box-shadow: 0 0 0 2.5px var(--mint-2), 0 4px 10px -6px rgba(64, 62, 120, .3); }
.rb-mark b { font-weight: 500; }
.rb-now em { font-weight: 600; color: var(--lilac-d); }
.rb-now i { background: var(--lilac-d); width: 3px; }
.task { border-radius: var(--r); }
.task-time { color: var(--lilac-d); font-weight: 600; font-variant-numeric: tabular-nums; }
.task-body b { font-weight: 500; }
.st-done { background: linear-gradient(155deg, #fff, #f0faf4); }
.all-done { border-radius: var(--r-sm); font-weight: 500; }
.chip-done { color: #276b4f; } .chip-avail { color: #9a5232; }

/* achievements / shop */
.star-hero { border-radius: var(--r); background: linear-gradient(150deg, #fffdf8, #fff2d9); }
.sh-count b { font-weight: 700; letter-spacing: -.02em; }

/* calm corner & tools */
.calm-scene { border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset, var(--shadow); }
.hub-tile, .tb-tile { border-radius: var(--r); font-weight: 500; font-size: 16.5px; transition: transform .2s var(--ease); }
.hub-tile:active, .tb-tile:active, .choice:active, .opt:active, .int-btn:active { transform: scale(.97); }
.sc-btn { border-radius: 16px; font-weight: 500; }
.sc-btn.sel { background: var(--grad-primary); color: #fff; }
.hold-btn { border-radius: 999px; font-weight: 500; }

/* garden & pairs */
.g-scene { border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9) inset, var(--shadow); }
.plot { border-radius: 22px; }
.pcard { border-radius: 18px; }
.seed-sheet { border-radius: 28px; box-shadow: var(--shadow-lg); }

/* toast */
.toast { background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); font-weight: 500; transition: opacity .35s ease, transform .45s var(--ease); }

/* gentle idle float for the hero rabbit (disabled for reduce-motion below) */
@keyframes v4float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.splash-char .charwrap { animation: v4float 6s ease-in-out infinite; }

/* small phones */
@media (max-width: 370px) {
  .act .al { font-size: 13px; } .nav-btn .nl { font-size: 11.5px; }
  .clock { font-size: 26px; } h1 { font-size: 23px; }
}
/* reduce motion: no float, no transforms on press */
@media (prefers-reduced-motion: reduce) {
  .splash-char .charwrap { animation: none !important; }
  html.ready .screen { animation: fadein .2s ease both; }
}
html.rm .splash-char .charwrap { animation: none !important; }
html.rm.ready .screen { animation: fadein .2s ease both; }

/* v4 refinements */
.splash-char::before { content: ''; inset: auto; left: 50%; top: 50%; position: absolute; width: 92%; aspect-ratio: 1; transform: translate(-50%, -40%); border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffffff 0, rgba(255, 255, 255, 0) 62%), linear-gradient(160deg, #e9ecfc 0%, #f6efff 45%, #fdebe0 100%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .5), 0 30px 60px -30px rgba(64, 62, 120, .30); }
.splash-char { padding: 6px 0; }
.pill { font-size: 15.5px; padding: 0 10px; gap: 6px; }
.pill svg { width: 26px; height: 26px; }
.task .btn-primary, .items .btn-primary { background: var(--lilac); color: #4a53b5; box-shadow: none; }
.task:has(.chip-avail) .btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 22px -10px rgba(78, 86, 196, .65); }
.calm-scene .glow { background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); }

.home { min-height: calc(100dvh - var(--nav-h) - 54px - var(--safe-b)); }

/* ---------- v4.1 care animations ---------- */
.charwrap[data-mood="eat"] .face-eat, .charwrap[data-mood="lap"] .face-lap { display: inline; }
.charwrap[data-mood="eat"] .cheek { opacity: .8; }
.char .paw, .char .faces { transform-box: view-box; }
.char .paw-l { transform-origin: 87px 192px; } .char .paw-r { transform-origin: 133px 192px; }
.char .cheek, .char .nose, .char .chew { transform-box: fill-box; transform-origin: 50% 50%; }
.char .tongue { transform-box: fill-box; transform-origin: 50% 0; }
.stage .char .blinker { animation: none; }
.stage .charwrap { will-change: transform; }
.fx .prop { position: absolute; margin: 0; pointer-events: none; will-change: transform, opacity; }
.fx .prop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fx .prop.can svg, .fx .prop.hand svg { transform-origin: 50% 50%; }
.room .bowl { transition: opacity .45s ease, transform .45s ease; }
.room .bowl svg { overflow: visible; }
.bowl .bw-water, .bowl .bw-rip { transform-box: fill-box; transform-origin: 50% 50%; }
.bowl .bw-rip { opacity: 0; }
.say { transition: opacity .35s ease; }
.say.hush { opacity: 0 !important; transform: translateY(-4px); }
.say.to-games { cursor: pointer; flex-wrap: wrap; row-gap: 4px; }
.say .more-games { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--lilac, #eef0fd); color: var(--ink, #463c5a); font-size: 14px; font-weight: 500; white-space: nowrap; }
.say .more-games svg { width: 20px; height: 20px; }
/* rest: curl up softly; the veil dims the room */
.stage .charwrap { transform-origin: 50% 100%; transition: transform 1.2s ease; }
.sleeping .stage .charwrap { transform: translateY(2%) scale(1.05, .9); }
.charwrap[data-mood="sleep"] .headgrp { transform: rotate(-9deg) translateY(9px); }
.sleeping .stage { cursor: pointer; }
html.rm .stage .charwrap { transition-duration: .01s; }

.calm-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border-radius: 14px; background: #fff6e6; color: var(--ink, #463c5a); font-size: 15px; }
.calm-hint[hidden] { display: none; }
.calm-hint svg { width: 22px; height: 22px; flex: none; }

/* 6.2.7.5: desktop centring that does not rely on how a browser applies `zoom` to auto margins (some desktop Chromium builds scale
   the auto margin by --z, which pushed the whole app ~300px to the right on wide windows). Phones and tablets under 800px are unchanged. */
@media screen and (min-width: 800px) {
  body { display: flex; flex-direction: column; }
  body > .app { width: 480px; margin-left: 0; margin-right: 0; align-self: center; }
}

/* 6.3.3 petting redesign: the warm glow that glides over the crown, slower softer hearts while stroking */
.fx .prop.petglow { z-index: 6; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 250, 240, .95), rgba(255, 224, 234, .55) 55%, rgba(255, 224, 234, 0)); filter: blur(1.5px); }
.fx .prop.float.soft { z-index: 7; }
.fx .heart.small.soft { animation: floatsoft 1.8s cubic-bezier(.37, 0, .25, 1) forwards; }
@keyframes floatsoft { 0% { opacity: 0; transform: translateY(0) scale(.8); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-46px) scale(1); } }
html.rm .fx .heart.small.soft { animation: fadeout 1.6s ease forwards !important; }

/* ---------- 6.3.4 touch-driven petting (pet.js) ---------- */
#stage { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.charwrap.petting svg.c6 .c6-faces .face { display: none !important; }
.charwrap.petting svg.c6 .c6-faces .face-happy { display: inline !important; }
.charwrap.petting svg.c6 .face-happy .c6-eo { display: inline !important; opacity: calc(1 - var(--pc, 0)); transform-box: fill-box; transform-origin: 50% 72%; transform: scaleY(calc(1 - var(--pe, 0) * .62)); }
.charwrap.petting svg.c6 .face-happy .c6-ec { display: inline !important; opacity: var(--pc, 0); }
.charwrap.petting .cheek { opacity: calc(.22 + var(--pr, 0) * .7) !important; transition: none !important; }
.charwrap.petting svg.c6 .ear-l { transform: rotate(calc(var(--pr, 0) * -9deg)) !important; transition: none !important; }
.charwrap.petting svg.c6 .ear-r { transform: rotate(calc(var(--pr, 0) * 5deg)) !important; transition: none !important; }
.charwrap.petting svg .headgrp { transform: none !important; transition: none !important; animation: none !important; }
.charwrap svg .c6-acch, .charwrap svg .c6-accb, .charwrap svg .headgrp > .acc, .charwrap svg .bodygrp > .acc { transition: opacity .5s ease; }
.charwrap.petting svg .c6-acch, .charwrap.petting svg .c6-accb, .charwrap.petting svg .headgrp > .acc, .charwrap.petting svg .bodygrp > .acc { opacity: 0 !important; }
.charwrap svg .petfur { pointer-events: none; }
/* 6.3.5: no drawn hand while petting. A small pale glow follows the finger and fades (cream/pink, blurred, low opacity) */
.fx .petglow2 { position: absolute; left: 0; top: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; pointer-events: none; z-index: 6; opacity: 0; background: radial-gradient(closest-side, rgba(255, 238, 228, .95), rgba(255, 196, 214, .62) 55%, rgba(255, 196, 214, 0)); filter: blur(5px); transition: opacity .5s ease; }
.fx .petglow2.on { opacity: .6; transition: opacity .2s ease; }
/* the one-time hint: the petting button's small clay hand, one short stroke on the crown, then gone */
.fx .pethint { position: absolute; pointer-events: none; z-index: 6; opacity: 0; filter: drop-shadow(0 2px 3px rgba(214, 160, 178, .35)); }
.fx .pethint img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.fx .petheart { position: absolute; pointer-events: none; z-index: 6; opacity: 0; }
.fx .petheart img { display: block; width: 100%; height: 100%; object-fit: contain; }
html.rm .charwrap.petting svg.c6 .face-happy .c6-eo { transform: none; }
html.rm .charwrap.petting svg.c6 .ear-l, html.rm .charwrap.petting svg.c6 .ear-r { transform: none !important; }
@media (prefers-reduced-motion: reduce) { .charwrap.petting svg.c6 .face-happy .c6-eo { transform: none; } .charwrap.petting svg.c6 .ear-l, .charwrap.petting svg.c6 .ear-r { transform: none !important; } }
/* 6.3.4 the room's speaker is the sound on/off switch (it used to read the bubble aloud: "טוב לראות אותך" — Dan found that confusing);
   reading the bubble again is a tap on the bubble itself */
.room .say-spk.mute-btn[aria-pressed="true"] { background: #f1f1f6; box-shadow: inset 0 0 0 2px #c9cbe0; }
.room .say.say-tap { cursor: pointer; }
