/* Bunnimoo 5.1 — colour themes (pink = Heart, blue = Cloud), splash wordmark, first-run 3–6 choice,
   parent account + personal area + sync status. Soft, low-saturation, no flashing. Loaded last. */

/* ---------- themes ---------- */
html.theme-pink {
  --v1: #f2aab9; --v2: #e48ea3; --v3: #c8728a;
  --coral1: #ffc2ad; --coral2: #f7a28c;
  --line: rgba(214, 120, 145, .14); --lilac: #fbe7ea; --lilac2: #f3cfd6;
  --grad-primary: linear-gradient(180deg, #f2aab9 0%, #e48ea3 100%);
  --shadow: 0 2px 0 rgba(200, 120, 140, .06), 0 12px 26px -10px rgba(180, 90, 115, .20);
  --ink: #4a3640; --ink-2: #6e5562; --muted: #8a7480;
  background: #fdf1ee;
}
html.theme-blue {
  --v1: #a6c8ea; --v2: #82aad6; --v3: #5f8bbb;
  --coral1: #b9e0dc; --coral2: #8fc8c2;
  --line: rgba(95, 139, 187, .14); --lilac: #e6f0fa; --lilac2: #cfe0f3;
  --grad-primary: linear-gradient(180deg, #a6c8ea 0%, #82aad6 100%);
  --shadow: 0 2px 0 rgba(95, 139, 187, .06), 0 12px 26px -10px rgba(70, 110, 160, .22);
  --ink: #34435a; --ink-2: #546480; --muted: #6f7f98;
  background: #eef5fc;
}
html.theme-pink body {
  background:
    radial-gradient(70% 38% at 92% -4%, rgba(255, 214, 222, .9) 0, rgba(255, 214, 222, 0) 70%),
    radial-gradient(70% 40% at -6% 104%, rgba(255, 228, 210, .9) 0, rgba(255, 228, 210, 0) 70%),
    linear-gradient(180deg, #fff3f1 0%, #fdeee8 100%);
  background-attachment: fixed;
}
html.theme-blue body {
  background:
    radial-gradient(70% 38% at 92% -4%, rgba(206, 228, 250, .95) 0, rgba(206, 228, 250, 0) 70%),
    radial-gradient(70% 40% at -6% 104%, rgba(214, 240, 236, .9) 0, rgba(214, 240, 236, 0) 70%),
    linear-gradient(180deg, #f0f7fd 0%, #f4f8fa 100%);
  background-attachment: fixed;
}
html.theme-pink .bg42 i:nth-child(1) { background: radial-gradient(closest-side, rgba(244, 182, 194, .45), rgba(244, 182, 194, 0)); }
html.theme-pink .bg42 i:nth-child(2) { background: radial-gradient(closest-side, rgba(255, 205, 180, .42), rgba(255, 205, 180, 0)); }
html.theme-blue .bg42 i:nth-child(1) { background: radial-gradient(closest-side, rgba(169, 205, 238, .45), rgba(169, 205, 238, 0)); }
html.theme-blue .bg42 i:nth-child(2) { background: radial-gradient(closest-side, rgba(176, 222, 214, .40), rgba(176, 222, 214, 0)); }
html[class*="theme-"] .btn-primary { background: var(--grad-primary); box-shadow: 0 4px 0 var(--v3), 0 14px 24px -12px var(--v3), inset 0 2px 0 rgba(255, 255, 255, .35); }
html.theme-pink .nav-btn.on { background: linear-gradient(160deg, #fdeef0, #f8d6dd) !important; color: #a4566c !important; }
html.theme-blue .nav-btn.on { background: linear-gradient(160deg, #eef5fc, #d6e6f6) !important; color: #3f6b9a !important; }
html.theme-pink .seg-btn.sel, html.theme-pink .age-btn.sel { box-shadow: inset 0 0 0 2px #e9a7b6; }
html.theme-blue .seg-btn.sel, html.theme-blue .age-btn.sel { box-shadow: inset 0 0 0 2px #9fc2e6; }

/* ---------- splash ---------- */
.splash .bm-wm { display: block; width: min(78vw, 330px); height: auto; margin: 0 auto 4px; }
.splash .logo-tag { display: block; text-align: center; }
.bm-themes { display: flex; gap: 12px; justify-content: center; margin: 14px 0 4px; }
.bm-th { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 14px 8px; border-radius: 22px; background: rgba(255, 255, 255, .75); border: 0; font: inherit; color: var(--ink); min-width: 104px; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .25); }
.bm-th img { width: 58px; height: 58px; border-radius: 16px; }
.bm-th span { font-size: 17px; }
.bm-th.sel { box-shadow: inset 0 0 0 3px var(--v2), 0 6px 16px -10px rgba(0, 0, 0, .25); background: #fff; }
.bm-th-pink.sel span { color: #b05a72; } .bm-th-blue.sel span { color: #3f6b9a; }
.bm-themes.compact .bm-th { min-width: 92px; padding: 6px 12px; }
.bm-themes.compact .bm-th img { width: 44px; height: 44px; border-radius: 12px; }

/* ---------- first run: 3–6 is the main choice ---------- */
.choice-main { min-height: 104px; font-size: 21px; position: relative; box-shadow: inset 0 0 0 3px var(--v2), var(--shadow); }
.choice-main .ca-t b { font-size: 24px; }
.choice-main .cm-go { margin-inline-start: auto; width: 34px; height: 34px; opacity: .7; }
.choice-main .cm-go svg { width: 100%; height: 100%; }
.ob-other { margin: 14px 4px 6px; color: var(--muted); font-size: 15px; text-align: center; }
.ob-ages-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-small { min-height: 0; flex-direction: column; gap: 4px; padding: 10px 4px; font-size: 15px; }
.choice-small .person { transform: scale(.75); margin: -6px 0; }

/* ---------- parent area: account & personal area ---------- */
.bm-signin { text-align: center; }
.bm-cloud-hero svg { width: 72px; height: 72px; }
.bm-gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; margin: 10px auto 6px; border-radius: 999px; background: #fff; color: #3c4043; font: 600 17px/1 'Rubik', system-ui, sans-serif; border: 1px solid #dadce0; box-shadow: 0 1px 2px rgba(60, 64, 67, .15); }
.bm-gbtn:active { background: #f6f8fa; }
.bm-link { display: inline-block; margin-top: 6px; color: var(--v3); font-size: 15px; }
.bm-st { margin: 10px 0 6px; }
.bm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 14px; background: #f1f1f4; color: #5c5a6a; }
.bm-chip i { width: 9px; height: 9px; border-radius: 50%; background: #b9b6c8; flex: none; }
.bm-chip.bm-saved { background: #e5f5ec; color: #2f6b4c; } .bm-chip.bm-saved i { background: #5cb487; }
.bm-chip.bm-syncing { background: #e8f1fb; color: #34618f; } .bm-chip.bm-syncing i { background: #6fa3d8; }
.bm-chip.bm-offline { background: #fff4e0; color: #7a5a1c; } .bm-chip.bm-offline i { background: #e8b44f; }
.bm-chip.bm-error { background: #fdeee9; color: #8a4a3a; } .bm-chip.bm-error i { background: #e39a86; }
.bm-dashchip { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: rgba(255, 255, 255, .7); border-radius: 18px; padding: 8px 12px; margin: 0 0 12px; font: inherit; }
.bm-dashchip svg { width: 30px; height: 30px; flex: none; }
.bm-ch-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bm-av { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: var(--lilac, #f1ecff); flex: none; }
.bm-av-p svg { width: 30px; height: 30px; }
.bm-ch-name { display: flex; flex-direction: column; }
.bm-ch-name b { font-size: 20px; } .bm-ch-name small { color: var(--muted); font-size: 14px; }
.bm-lbl { display: block; margin: 10px 2px 4px; font-size: 15px; color: var(--ink-2); }
.bm-avs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bm-avb { height: 56px; border-radius: 16px; border: 0; background: #f6f5f9; font-size: 30px; }
.bm-avb.sel { background: #fff; box-shadow: inset 0 0 0 3px var(--v2); }
.bm-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 4px; text-align: center; }
.bm-prog > div { background: #faf9fc; border-radius: 14px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bm-prog b { font-size: 19px; } .bm-prog small { font-size: 12.5px; color: var(--muted); }
.bm-week { display: inline-flex; gap: 3px; height: 23px; align-items: center; }
.bm-week i { width: 7px; height: 7px; border-radius: 50%; background: #e3e0ea; }
.bm-week i.on { background: var(--v2); }
.bm-np { margin-top: 6px; }
.bm-danger { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.bm-del { background: #fff; color: #a2483a; box-shadow: inset 0 0 0 2px #f0c4b9; }
.dlg-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
html.rm .bm-th, html.rm .bm-gbtn { transition: none; }
html.theme-pink .choice-main, html.theme-pink .age-btn.sel { border-color: #e9a7b6 !important; box-shadow: inset 0 0 0 3px #e9a7b6, var(--shadow); }
html.theme-blue .choice-main, html.theme-blue .age-btn.sel { border-color: #9fc2e6 !important; box-shadow: inset 0 0 0 3px #9fc2e6, var(--shadow); }
