/* Bunnimoo 5.8 — roadmap 3 wave A (listening and gentle sound). Calm, no flashing; html.rm turns every movement off. */
.bmf-hub .hub-tile { position: relative; }
.bmf-star { position: absolute; top: 6px; inset-inline-start: 6px; width: 20px; height: 20px; }
.bmf-star svg { width: 100%; height: 100%; }
.bmf-loud { position: absolute; bottom: 6px; inset-inline-end: 8px; width: 14px; height: 20px; color: var(--ink-2, #5b5470); opacity: .75; }
.bmf-loud svg { width: 100%; height: 100%; fill: currentColor; }
.snd { position: relative; }
.snd .bmf-loud { bottom: 4px; inset-inline-end: 6px; }
.bmf-hush-btn { display: inline-flex; align-items: center; gap: 8px; }
.bmf-hush-btn svg { width: 24px; height: 24px; }
.bmf-favrow { margin-top: 14px; }
.bmf-favrow .btn { display: inline-flex; align-items: center; gap: 8px; }
.bmf-favrow svg { width: 22px; height: 22px; }
.bmf .sub { margin-bottom: 10px; }
.bmf-say { margin-top: 12px; }
.bmf-say p:empty { display: none; }

/* "too much noise": a still, quiet card over everything */
.bmf-hush { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(238, 240, 253, .96); }
.bmf-hush-card { max-width: 360px; width: 100%; text-align: center; background: var(--card, #fff); border-radius: var(--r-lg, 24px); padding: 22px 18px; box-shadow: var(--shadow, 0 6px 20px rgba(80, 70, 120, .12)); color: var(--ink, #3b3350); }
.bmf-hush-card h2 { margin: 8px 0 4px; font-size: 24px; }
.bmf-hush-card p { margin: 0 0 14px; }
.bmf-hush-card .btn-row { display: flex; flex-direction: column; gap: 10px; }
.bmf-hush .charwrap * { animation: none !important; }

/* music box */
.bmf-songs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 12px; }
.bmf-mbox { width: 120px; height: 120px; margin: 4px auto 10px; }
.bmf-mbox svg { width: 100%; height: 100%; }
.bmf-mbox.on svg { animation: bmf-sway 4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bmf-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.bmf-left { text-align: center; min-height: 1.4em; }

/* wind chimes */
.bmf-chimes { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 10px; padding: 18px 8px 10px; margin: 6px auto; max-width: 360px; touch-action: none; direction: ltr; }
.bmf-bar { position: absolute; top: 8px; left: 8%; right: 8%; height: 8px; border-radius: 4px; background: #c9bfe6; }
.bmf-chime { width: 34px; height: var(--h, 140px); border: 0; padding: 0; background: transparent; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.bmf-chime::before { content: ''; width: 2px; height: 14px; background: #b9b0d6; }
.bmf-chime i { display: block; width: 26px; flex: 1; border-radius: 13px; background: var(--c, #cbe9fd); border: 2px solid rgba(70, 60, 110, .22); }
.bmf-chime.ring i { animation: bmf-ring 1.6s ease-out; transform-origin: 50% 0; }
@keyframes bmf-ring { 0% { transform: rotate(0); } 20% { transform: rotate(5deg); } 45% { transform: rotate(-4deg); } 70% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
.bmf-chime:focus-visible i { outline: 3px solid var(--blue-d, #3d7fb0); outline-offset: 2px; }

/* rain stick */
.bmf-stickwrap { display: flex; justify-content: center; margin: 8px 0; }
.bmf-stick { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: var(--card, #fff); border-radius: var(--r-lg, 24px); padding: 14px 22px; box-shadow: var(--shadow, 0 4px 14px rgba(80, 70, 120, .1)); color: var(--ink, #3b3350); font: inherit; font-weight: 600; }
.bmf-stick svg { width: 110px; height: 110px; transition: transform 2.4s ease-in-out; }
.bmf-stick.flip svg { transform: rotate(180deg); }

/* listen and find */
.bmf-ask { text-align: center; font-weight: 600; margin: 12px 0 6px; }
.bmf-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bmf-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 96px; border-radius: var(--r, 18px); border: 2px solid var(--line, #e6e1f2); background: var(--card, #fff); color: var(--ink, #3b3350); font: inherit; font-weight: 600; }
.bmf-opt svg { width: 52px; height: 52px; }
.bmf-opt.sel { border-color: var(--mint-d, #4fa271); background: #eefaf3; }

/* rhythm */
.bmf-drum { display: block; margin: 8px auto; width: 150px; height: 150px; border-radius: 50%; border: 0; background: #fff6e2; box-shadow: var(--shadow, 0 4px 14px rgba(80, 70, 120, .1)); }
.bmf-drum svg { width: 110px; height: 110px; }
.bmf-drum.your { background: #eefaf3; box-shadow: 0 0 0 4px #bfe6cf; }
.bmf-drum.hit svg { animation: bmf-hit .35s ease-out; }
@keyframes bmf-hit { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
.bmf-dots { display: flex; justify-content: center; gap: 10px; min-height: 18px; }
.bmf-dots i { width: 14px; height: 14px; border-radius: 50%; background: #e6e1f2; }
.bmf-dots i.on { background: #e9bf63; }

/* slow beat */
.bmf-pulse { width: 180px; height: 180px; margin: 10px auto; display: flex; align-items: center; justify-content: center; }
.bmf-pulse i { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #f6c4d3 0, #f9d6e0 60%, #fbe8ee 100%); transition: background-color 1s; }
.bmf-pulse.beat i { animation: bmf-beat var(--ms, 1000ms) ease-in-out; }
@keyframes bmf-beat { 0% { transform: scale(1); } 30% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* count with me */
.bmf-carrots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 320px; margin: 8px auto; }
.bmf-carrot { opacity: .18; transition: opacity .6s; }
.bmf-carrot.on { opacity: 1; }
.bmf-carrot svg { width: 100%; height: 52px; }
.bmf-num { text-align: center; font-size: 42px; font-weight: 700; min-height: 52px; margin: 4px 0; color: var(--ink, #3b3350); }

/* hum */
.bmf-humwave { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; }
.bmf-humwave span { font-size: 26px; font-weight: 600; color: var(--ink-2, #5b5470); opacity: .5; transition: opacity 1.2s; }
.bmf-humwave.on span { opacity: 1; }

/* listening walk */
.bmf-walk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bmf-wcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 100px; border-radius: var(--r, 18px); border: 2px solid var(--line, #e6e1f2); background: var(--card, #fff); color: var(--ink, #3b3350); font: inherit; font-weight: 600; font-size: 15px; }
.bmf-wcard svg { width: 48px; height: 48px; }
.bmf-wcard.on { border-color: var(--mint-d, #4fa271); background: #eefaf3; }
.bmf-tick { position: absolute; top: 4px; inset-inline-end: 8px; color: #2f7a52; font-size: 18px; }

/* read the whole screen: a soft ring on the part being read */
.bmf-reading { outline: 3px solid #8f9be0 !important; outline-offset: 3px; border-radius: 12px; }

/* parent page: sounds */
.bmf-sfx { list-style: none; padding: 0; margin: 8px 0 14px; }
.bmf-sfx li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line, #eee8f6); }
.bmf-sfx li span { flex: 1; }
.bmf-snd h3 { font-size: 17px; margin: 14px 0 4px; }
.bmf-diary { list-style: none; padding: 0; margin: 6px 0; }
.bmf-diary li { display: flex; justify-content: space-between; padding: 4px 0; }

html.rm .bmf-mbox.on svg, html.rm .bmf-chime.ring i, html.rm .bmf-drum.hit svg, html.rm .bmf-pulse.beat i { animation: none !important; }
html.rm .bmf-stick svg, html.rm .bmf-carrot { transition: none !important; }
html.rm .bmf-pulse.beat i { background: radial-gradient(circle, #f2b3c6 0, #f6c4d3 60%, #f9d6e0 100%); }

/* 6.1: the section icon was unsized and filled the whole card width */
.bmf-snd h2 { display: flex; align-items: center; gap: 8px; }
.bmf-snd h2 > svg { width: 28px; height: 28px; flex: none; }
