/* Bunnimoo 5.9 — roadmap 3 wave B (learning through play). Soft cards, large targets, no flashing; html.rm turns every movement off. */
.bmg .sub { margin-bottom: 10px; }
.bmg-hub .hub-tile { position: relative; }
.bmg-say { margin-top: 12px; }
.bmg-say p:empty { display: none; }
.bmg-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0; }
.bmg-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.bmg-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 76px; min-height: 76px; padding: 8px 10px;
  border: 2px solid rgba(110, 100, 160, .16); border-radius: var(--r-md, 18px); background: var(--card, #fff); color: var(--ink, #3b3350);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 2px 8px rgba(80, 70, 120, .08); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.bmg-card:active { transform: scale(.97); }
.bmg-card.sel { border-color: var(--blue-d, #3d7fb0); background: #eef6fd; }
.bmg-card.done { border-color: #8fd6b5; background: #effaf4; }
.bmg-card.big { min-width: 130px; min-height: 130px; }
.bmg-card:focus-visible { outline: 3px solid var(--blue-d, #3d7fb0); outline-offset: 2px; }
.bmg-pic { display: inline-flex; width: 52px; height: 52px; }
.bmg-pic svg { width: 100%; height: 100%; }
.bmg-card.big .bmg-pic { width: 84px; height: 84px; }
.bmg-pic.dark svg { filter: brightness(0) opacity(.55); }
.bmg-card svg { max-width: 100%; }
.bmg-big { font-size: 40px; font-weight: 700; text-align: center; margin: 6px 0; color: var(--ink, #3b3350); }
.bmg-next { text-align: center; margin: 6px 0; }

/* what's missing: a shelf with a soft curtain */
.bmg-shelf { position: relative; max-width: 340px; margin: 10px auto; padding: 14px 10px 10px; border-radius: 16px; background: #fbf7ef; border-bottom: 8px solid #d9b282; overflow: hidden; }
.bmg-shelfrow { display: flex; justify-content: space-around; gap: 6px; min-height: 64px; }
.bmg-shelfitem { display: inline-flex; width: 56px; height: 56px; }
.bmg-shelfitem svg { width: 100%; height: 100%; }
.bmg-shelfitem.found { outline: 3px dashed #8fd6b5; outline-offset: 3px; border-radius: 12px; }
.bmg-curtain { position: absolute; inset: 0 0 0 0; background: repeating-linear-gradient(90deg, #e8c7d6 0 18px, #f2d8e3 18px 36px); transform: translateY(-102%); transition: transform 1s ease-in-out; }
.bmg-shelf.closed .bmg-curtain { transform: translateY(0); }

/* size order and number line */
.bmg-line { min-height: 70px; align-items: flex-end; background: #fbf7ef; border-radius: 14px; padding: 6px; }
.bmg-c { display: inline-flex; width: 46px; height: 64px; }
.bmg-c svg, .bmg-sz .bmg-card svg { width: 46px; height: 64px; }

/* continue the pattern */
.bmg-dots { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; direction: ltr; }
.bmg-dot { display: inline-block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(60, 50, 100, .18); }
.bmg-dot.empty { background: #fff !important; border: 2px dashed #a9b3e5; }
.bmg-dot.new { box-shadow: 0 0 0 4px #daf4e8; }
.bmg-dot.big { width: 40px; height: 40px; }

/* where does it live */
.bmg-place { min-width: 120px; }

/* letter tracing */
.bmg-trace { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1 / 1; margin: 6px auto; border-radius: 20px; background: #fff; border: 2px solid #dee3fd; touch-action: none; overflow: hidden; }
.bmg-trace svg, .bmg-trace canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bmg-lt-script { fill: none; stroke: #c9cff3; stroke-width: 3; stroke-dasharray: 6 8; }
.bmg-name { text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 4px; margin: 4px 0; }
.bmg-name b { color: #6b74b8; text-decoration: underline; text-underline-offset: 6px; }

/* colour mixing */
.bmg-mixbowl { position: relative; display: flex; width: 120px; height: 120px; margin: 8px auto; border-radius: 50%; overflow: hidden; background: #fff; border: 4px solid #e6def5; box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .06); }
.bmg-mixbowl i { flex: 1; opacity: .85; }
.bmg-mixbowl b { position: absolute; inset: 16%; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 255, 255, .7); animation: bmg-grow 1.2s ease-out; }
@keyframes bmg-grow { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* shapes around us */
.bmg-room { display: block; width: 100%; max-width: 340px; margin: 8px auto; border-radius: 18px; background: #fbf7ef; border: 2px solid #ecdcc4; }
.bmg-shape { cursor: pointer; stroke: rgba(70, 60, 110, .25); stroke-width: 2; transition: stroke-width .3s ease; }
.bmg-shape.found { stroke: #4fa271; stroke-width: 5; }
.bmg-shape:focus-visible { outline: none; stroke: var(--blue-d, #3d7fb0); stroke-width: 5; }
.bmg-sf-kind { display: inline-flex; align-items: center; gap: 6px; }

/* before and after, same and different, more and less */
.bmg-ba .bmg-line { justify-content: center; }
.bmg-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.bmg-side { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px; min-height: 120px; padding: 10px; border-radius: 18px; background: #fff; border: 2px solid rgba(110, 100, 160, .16); font: inherit; cursor: pointer; }
.bmg-side svg { width: 34px; height: 34px; }
.bmg-side .bmg-pic { width: 70px; height: 70px; }

/* number line */
.bmg-numline { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0; direction: ltr; }
.bmg-num { min-width: 44px; min-height: 44px; border-radius: 12px; border: 2px solid #dee3fd; background: #fff; font: inherit; font-weight: 700; font-size: 18px; color: var(--ink, #3b3350); cursor: pointer; }
.bmg-num.at { background: #eef6fd; border-color: var(--blue-d, #3d7fb0); }
.bmg-num .bmg-hopper { display: block; width: 26px; height: 26px; margin: 0 auto -2px; }
.bmg-num .bmg-hopper svg { width: 100%; height: 100%; }
.bmg-num.at { min-height: 70px; }

/* body parts */
.bmg-bp svg.bmg-bunny { display: block; width: 100%; max-width: 250px; height: auto; margin: 8px auto; }
.bmg-part { fill: rgba(255, 255, 255, 0); stroke: transparent; cursor: pointer; }
.bmg-part.at, .bmg-part:focus-visible { fill: rgba(143, 214, 181, .35); stroke: #4fa271; stroke-width: 3; outline: none; }

/* weather and clothes */
.bmg-dr-w .bmg-card, .bmg-dr-c .bmg-card { min-width: 92px; }

/* days of the week */
.bmg-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 10px 0; }
.bmg-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: #fff; border: 2px solid #eceaf6; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink, #3b3350); cursor: pointer; min-height: 56px; }
.bmg-day.today { background: #fff6dd; border-color: #e9bf63; }
.bmg-day.sel { border-color: var(--blue-d, #3d7fb0); }

/* clock friend */
.bmg-clock { display: block; width: 220px; height: 220px; margin: 8px auto; }
.bmg-ckbtns { flex-wrap: wrap; gap: 8px; }

/* stamp page */
.bmg-stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.bmg-stamp { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 50%; aspect-ratio: 1 / 1; justify-content: center; background: #fff; border: 3px dashed #e6c9d6; text-align: center; font-size: 12px; font-weight: 600; }
.bmg-stamp svg { width: 36px; height: 36px; }

html.rm .bmg *, html.rm .bmg-curtain { transition: none !important; animation: none !important; }
@media (max-width: 370px) { .bmg-card { min-width: 68px; min-height: 68px; } .bmg-pic { width: 44px; height: 44px; } .bmg-card.big { min-width: 116px; min-height: 116px; } .bmg-day { font-size: 11px; } }
.bmg-card.small { min-width: 64px; min-height: 64px; padding: 6px; font-size: 13px; }
.bmg-card.small .bmg-pic { width: 40px; height: 40px; }
.bmg-side i { display: inline-flex; width: 30px; height: 30px; }
.bmg-side i svg { width: 100%; height: 100%; }
.bmg-side.sel { border-color: #8fd6b5; background: #effaf4; }
