/* Bunnimoo 5.4 — roadmap 2 wave B (bm-b.js). Calm and steady; html.rm (reduce motion) stills every movement. */
/* hubs */
.ht-dayhelp { background: linear-gradient(160deg, #ffffff 40%, #fdf3dc); }
.ht-bodycheck { background: linear-gradient(160deg, #ffffff 40%, #fbe9ef); }

/* B1 token board */
.bmb-tokens { display: flex; flex-direction: column; gap: 8px; }
.bmb-tboard { display: flex; align-items: center; gap: 8px; background: #ffffff; border-radius: 26px; box-shadow: var(--shadow); padding: 16px 12px; margin: 4px 0; }
.bmb-slots { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; justify-items: center; }
.bmb-slots.n4 { grid-template-columns: repeat(2, 1fr); }
.bmb-slot { width: 56px; height: 56px; border-radius: 50%; border: 3px dashed #d7dcf2; background: #f7f8fe; display: grid; place-items: center; }
.bmb-slot.on { border: 3px solid #f1cf7c; background: #fff7df; }
.bmb-slot svg { width: 44px; height: 44px; }
.bmb-arrow { width: 26px; height: 26px; color: #b5bde3; flex: none; }
.bmb-arrow svg { width: 26px; height: 26px; }
[dir="ltr"] .bmb-arrow svg { transform: scaleX(-1); }
.bmb-prize { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 15px; color: var(--ink-2); }
.bmb-prize-i { width: 72px; height: 72px; border-radius: 22px; background: #f2f9f4; display: grid; place-items: center; box-shadow: 0 0 0 3px #d5eedd inset; }
.bmb-prize-i svg { width: 52px; height: 52px; }
.bmb-tboard.full .bmb-prize-i { background: #fff7df; box-shadow: 0 0 0 3px #f1cf7c inset; }
.bmb-tbline { text-align: center; font-size: 20px; margin: 4px 0; min-height: 28px; color: var(--ink); }
.btn.bmb-give svg { width: 32px; height: 32px; }
.bmb-rwgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bmb-rw { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 92px; background: #ffffff; border-radius: 18px; box-shadow: var(--shadow); font-size: 14.5px; border: 3px solid transparent; }
.bmb-rw svg { width: 40px; height: 40px; }
.bmb-rw.sel { border-color: #9fb0ee; background: #f3f5ff; }
.center { text-align: center; }

/* B2 body check */
.bmb-body { display: flex; flex-direction: column; gap: 10px; }
.bmb-said .ts-i svg { width: 46px; height: 46px; }
.bmb-tip { text-align: center; margin: 0; color: var(--ink-2); font-size: 17px; }
.bmb-bgrid .talk-btn svg { width: 50px; height: 50px; }
.bmb-bigcard { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 28px 20px; }
.bmb-bigi svg { width: 140px; height: 140px; }
.bmb-bigt { font-size: 30px; font-weight: 600; margin: 0; color: var(--ink); }

/* B3 body cue (inside the rabbit's speech bubble) */
#say.bmb-saycue { display: flex; align-items: center; gap: 8px; }
#say.bmb-saycue .bmb-cue-i { flex: none; }
#say.bmb-saycue .bmb-cue-i svg { width: 36px !important; height: 42px !important; display: block; }
.bmb-cue { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 6; display: flex; align-items: center; gap: 8px; max-width: 64%; padding: 8px 12px 8px 10px; background: rgba(255, 255, 255, .95); border-radius: 20px; box-shadow: 0 6px 18px -8px rgba(74, 84, 137, .35); font-size: 15px; color: var(--ink); animation: bmbFade .8s ease-out both; }
.bmb-cue.out { opacity: 0; transition: opacity .7s ease; }
.bmb-cue-i svg { width: 40px; height: 46px; display: block; }
@keyframes bmbFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* B4 waiting */
.bmb-wait { display: flex; flex-direction: column; gap: 8px; }
.bmb-wstage { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 8px 0; }
.bmb-wchar .charwrap.small { width: 120px; }
.bmb-jar { width: 150px; height: 188px; display: block; }
.bmb-fill { transition: y .5s linear, height .5s linear; }
.bmb-wline { text-align: center; font-size: 19px; min-height: 28px; margin: 2px 0; color: var(--ink); }

/* B5 trip planner */
.bmb-trip { display: flex; flex-direction: column; gap: 8px; }
.bmb-tstrip { display: flex; flex-wrap: wrap; gap: 8px; min-height: 64px; align-items: center; background: #ffffff; border-radius: 20px; box-shadow: var(--shadow); padding: 8px; }
.bmb-tstrip .note { margin: 0 6px; }
.bmb-tchip { position: relative; width: 58px; height: 58px; border-radius: 16px; background: #f4f6fe; display: grid; place-items: center; box-shadow: 0 0 0 2px #dde2f6 inset; }
.bmb-tchip svg { width: 40px; height: 40px; }
.bmb-tchip .bmb-tn { position: absolute; top: -6px; inset-inline-start: -6px; }
.bmb-tn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #8f9be0; color: #fff; font-size: 14px; font-weight: 600; flex: none; }
.bmb-pgrid .talk-btn { font-size: 14.5px; line-height: 1.2; padding: 6px 4px; text-align: center; }
.bmb-pgrid .talk-btn svg { width: 42px; height: 42px; }
.bmb-sticky:empty { display: none; }
.bmb-sticky { position: sticky; bottom: 10px; z-index: 3; background: linear-gradient(to top, var(--bg) 70%, transparent); padding-top: 10px; margin: 0; }
.bmb-tstory { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bmb-tstory li { display: flex; align-items: center; gap: 10px; background: #ffffff; border-radius: 20px; box-shadow: var(--shadow); padding: 10px 12px; }
.bmb-ti svg { width: 52px; height: 52px; display: block; }
.bmb-tt { flex: 1; font-size: 18px; color: var(--ink); }

/* B9 big buttons for any age */
html.bmb-big button:not(.switch):not(.bmb-pic), html.bmb-big .btn, html.bmb-big [role="button"] { min-height: 64px; min-width: 64px; }
html.bmb-big .btn-sm { padding-inline: 18px; font-size: 17px; }
html.bmb-big .switch { transform: scale(1.18); margin-inline: 6px; }
html.bmb-big .spk-btn { display: inline-grid; place-items: center; vertical-align: middle; }

/* B10 a picture next to every word */
.bmb-pic { display: inline-flex; width: 26px; height: 26px; flex: none; vertical-align: middle; margin-inline-end: 6px; }
.bmb-pic svg { width: 100%; height: 100%; }
.bmb-hp { display: inline-flex; align-items: center; justify-content: center; gap: 0; }
.seg-btn.bmb-hp, .bmb-rw.bmb-hp { flex-direction: row; }

/* B11 keyboard focus: a clear ring, only when the keyboard is used */
html.bmb-kbd :focus-visible, html.bmb-kbd :focus { outline: 4px solid #4b5bd6 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px rgba(255, 255, 255, .95) !important; border-radius: 14px; }
html.bmb-kbd h1:focus { outline-offset: 6px !important; }
.bmb-keys { display: flex; align-items: center; gap: 8px; }
.bmb-keys svg { width: 30px; height: 30px; flex: none; }

/* settings card rows */
.bmb-set .row-i svg { width: 30px; height: 30px; }
.bmb-vrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.bmb-vrow .sel-in { flex: 1; min-width: 0; max-width: 100%; }

/* B14 calm offline cloud */
.bmb-offline { position: fixed; z-index: 40; top: calc(env(safe-area-inset-top, 0px) + 10px); inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 12px -6px rgba(74, 84, 137, .45); display: grid; place-items: center; padding: 0; }
.bmb-offline.at-home { inset-inline-end: auto; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 8px); }
.bmb-offline[hidden] { display: none; }
.bmb-offline svg { width: 30px; height: 30px; }
html.bmb-big .bmb-offline { min-width: 0; min-height: 0; }

/* B16 nothing moves while the app is in the background */
html.bmb-away *, html.bmb-away *::before, html.bmb-away *::after { animation-play-state: paused !important; }

/* parent area: tiles, own words, what's new */
.bmb-tl .row-i svg { width: 30px; height: 30px; }
.bmb-twlist { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bmb-twlist li { display: flex; align-items: center; gap: 10px; background: #f7f8fe; border-radius: 16px; padding: 6px 10px; }
.bmb-twlist li b { flex: 1; font-weight: 500; }
.bmb-twi svg { width: 36px; height: 36px; display: block; }
.bmb-twdel { width: 44px; height: 44px; }
.bmb-twdel svg { width: 22px; height: 22px; }
.bmb-twlab { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bmb-twpick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.bmb-twp { aspect-ratio: 1; border-radius: 14px; background: #ffffff; box-shadow: 0 0 0 2px #e3e6f6 inset; display: grid; place-items: center; padding: 4px; }
.bmb-twp svg { width: 32px; height: 32px; }
.bmb-twp.sel { box-shadow: 0 0 0 3px #8f9be0 inset; background: #f1f3ff; }
.talk-btn.bmb-own { box-shadow: var(--shadow), 0 0 0 2px #f1e3b4 inset; }
.bmb-new { background: linear-gradient(160deg, #ffffff 30%, #f4effd); }
.bmb-new h2 { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.bmb-new h2 svg { width: 34px; height: 34px; flex: none; }
.bmb-newlist { margin: 0 0 12px; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.bmb-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 80px; color: var(--muted); }
.bmb-loading .charwrap.small { width: 120px; }

/* reduce motion: still */
html.rm .bmb-cue { animation: none; }
html.rm .bmb-cue.out { transition: none; }
html.rm .bmb-fill { transition: none; }
