/*!
 * m3_boost_up — English Boost-Up · cute bee game theme
 * © 2026 Aubeespace | English
 */
.m3bu {
	--pink: #ff4f8b; --pink2: #ff86ad; --pinkbg: #ffe6ef;
	--honey: #ffc83d; --honey2: #ffdd6e; --honeyd: #e0a100; --honeybg: #fff6d6;
	--purple: #7b5cf5; --purple2: #a48cff; --purplebg: #efeaff;
	--blue: #4f9cff; --bluebg: #e4f1ff;
	--mint: #22c3a6; --mintbg: #dcfbf3;
	--orange: #ff9f43; --orangebg: #fff0e0;
	--red: #ff5a6a;
	--ink: #2b2350; --ink2: #5b5480; --muted: #8c86aa;
	--line: #ece6ff; --card: #ffffff; --cream: #fffaf0;
	--r: 22px; --shadow: 0 6px 0 rgba(123, 92, 245, .12), 0 14px 30px -18px rgba(43, 35, 80, .35);
	--font: 'Mali', 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
	--display: 'Fredoka', 'Mali', system-ui, sans-serif;
	position: relative;
	font-family: var(--font);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.m3bu *, .m3bu *::before, .m3bu *::after { box-sizing: border-box; }
.m3bu h1, .m3bu h2, .m3bu h3, .m3bu h4 { font-family: var(--font); font-weight: 700; color: var(--ink); line-height: 1.3; margin: 0 0 .5em; letter-spacing: 0; text-transform: none; }
.m3bu p { margin: 0 0 .8em; }
.m3bu a { color: var(--purple); }
.m3bu button { font-family: inherit; }
.m3bu img, .m3bu svg { max-width: 100%; }
.m3bu table { border-collapse: collapse; }
.m3bu b, .m3bu strong { font-weight: 700; }
.m3bu small { font-size: .82em; }
.m3bu .bu-muted { color: var(--muted); }
.m3bu .bu-small { font-size: .85rem; }
.m3bu .bu-center { text-align: center; }
.m3bu [hidden] { display: none !important; }

/* Full-screen page --------------------------------------------------- */
body.m3bu-fullscreen { margin: 0 !important; padding: 0 !important; background: linear-gradient(180deg, #bfe6ff 0%, #e7f6ff 32%, #fff8e9 70%, #fff3d6 100%) fixed !important; min-height: 100vh; }
body.m3bu-fullscreen #m3bu-app, body.m3bu-fullscreen .m3bu-login-wrap { min-height: 100vh; }
#m3bu-app { padding-bottom: 90px; }

/* Sky ---------------------------------------------------------------- */
.m3bu .bu-sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.m3bu .bu-cloud { position: absolute; width: 140px; height: 46px; background: #fff; border-radius: 50px; opacity: .9; animation: bu-drift 38s linear infinite; }
.m3bu .bu-cloud::before, .m3bu .bu-cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.m3bu .bu-cloud::before { width: 60px; height: 60px; left: 20px; top: -28px; }
.m3bu .bu-cloud::after { width: 46px; height: 46px; left: 70px; top: -18px; }
.m3bu .bu-cloud.c1 { top: 12%; left: -160px; }
.m3bu .bu-cloud.c2 { top: 34%; left: -160px; transform: scale(.7); animation-duration: 52s; animation-delay: -20s; }
.m3bu .bu-cloud.c3 { top: 62%; left: -160px; transform: scale(.85); animation-duration: 46s; animation-delay: -35s; opacity: .7; }
@keyframes bu-drift { to { left: calc(100% + 160px); } }
.m3bu .bu-hex { position: absolute; width: 70px; height: 80px; background: rgba(255, 200, 61, .18); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.m3bu .bu-hex.h1 { right: 4%; top: 18%; } .m3bu .bu-hex.h2 { right: 10%; top: 26%; transform: scale(.6); } .m3bu .bu-hex.h3 { left: 3%; top: 70%; transform: scale(.8); background: rgba(255, 79, 139, .12); }

/* Grass & flowers (like the book footer) ----------------------------- */
.m3bu .bu-grass { position: fixed; left: 0; right: 0; bottom: 0; height: 46px; z-index: 1; pointer-events: none; background: radial-gradient(60px 26px at 10% 100%, #7fd77f 98%, transparent), radial-gradient(80px 30px at 35% 100%, #6fcf6f 98%, transparent), radial-gradient(70px 28px at 62% 100%, #7fd77f 98%, transparent), radial-gradient(90px 32px at 88% 100%, #6fcf6f 98%, transparent), linear-gradient(0deg, #6fcf6f 0 14px, transparent 14px); }
.m3bu .bu-flower { position: absolute; bottom: 16px; width: 14px; height: 14px; border-radius: 50%; background: #ffe36e; box-shadow: 0 -9px 0 -1px var(--fc), 0 9px 0 -1px var(--fc), 9px 0 0 -1px var(--fc), -9px 0 0 -1px var(--fc); animation: bu-sway 3s ease-in-out infinite alternate; transform-origin: 50% 30px; }
.m3bu .bu-flower::after { content: ''; position: absolute; left: 6px; top: 14px; width: 3px; height: 18px; background: #4cae4c; }
@keyframes bu-sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* Top bar & nav ------------------------------------------------------- */
.m3bu .bu-top, .m3bu .bu-nav, .m3bu .bu-main { position: relative; z-index: 2; }
.m3bu .bu-top { display: flex; align-items: center; gap: 10px; max-width: 1180px; margin: 0 auto; padding: 12px 16px 6px; }
.m3bu .bu-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.m3bu .bu-brand-bee { width: 54px; height: 54px; }
.m3bu .bu-brand-t { display: flex; flex-direction: column; line-height: 1.05; }
.m3bu .bu-brand-t small { font-family: var(--display); color: var(--purple); font-weight: 600; font-size: .78rem; }
.m3bu .bu-brand-t b { font-family: var(--display); font-size: 1.32rem; color: var(--purple); -webkit-text-stroke: 0; }
.m3bu .bu-brand-t i { font-style: normal; color: var(--pink); }
.m3bu .bu-stats { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.m3bu .bu-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: #fff; border: 2.5px solid var(--line); font-weight: 700; font-family: var(--display); box-shadow: 0 3px 0 var(--line); white-space: nowrap; }
.m3bu .bu-pill svg { width: 24px; height: 24px; }
.m3bu .bu-pill-star { border-color: #ffe08a; box-shadow: 0 3px 0 #ffe08a; }
.m3bu .bu-pill-gold { border-color: #ffd36a; box-shadow: 0 3px 0 #f2b630; background: #fff9e3; }
.m3bu .bu-pill.bump { animation: bu-bump .4s ease; }
@keyframes bu-bump { 50% { transform: scale(1.25); } }
.m3bu .bu-iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.m3bu .bu-nav { display: flex; gap: 6px; max-width: 1180px; margin: 0 auto; padding: 4px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.m3bu .bu-nav::-webkit-scrollbar { display: none; }
.m3bu .bu-nav-a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .75); text-decoration: none; color: var(--ink2); font-weight: 600; white-space: nowrap; border: 2px solid transparent; transition: .15s; }
.m3bu .bu-nav-a:hover { background: #fff; color: var(--ink); }
.m3bu .bu-nav-a.on { background: var(--ink); color: #fff; }
.m3bu .bu-nav-out { margin-left: auto; }
.m3bu .bu-nav-i { font-size: 1.1em; }
.m3bu .bu-main { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; outline: none; }
.m3bu.bu-focus .bu-nav { display: none; }

@media (max-width: 720px) {
	.m3bu .bu-brand-t small { display: none; }
	.m3bu .bu-brand-t b { font-size: 1.05rem; }
	.m3bu .bu-brand-bee { width: 44px; height: 44px; }
	.m3bu .bu-pill { padding: 3px 10px 3px 6px; font-size: .92rem; }
	.m3bu .bu-pill svg { width: 20px; height: 20px; }
	.m3bu .bu-iconbtn { width: 36px; height: 36px; font-size: 15px; }
	.m3bu .bu-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(43, 35, 80, .12); gap: 2px; justify-content: space-around; }
	.m3bu .bu-nav-a { flex-direction: column; gap: 0; padding: 4px 8px; font-size: .68rem; background: transparent; border-radius: 14px; }
	.m3bu .bu-nav-i { font-size: 1.35rem; }
	.m3bu .bu-nav-a.on { background: var(--purplebg); color: var(--purple); }
	.m3bu .bu-nav-out { margin-left: 0; }
	.m3bu .bu-grass { bottom: 58px; height: 30px; }
	.m3bu.bu-focus .bu-grass { bottom: 0; }
}

/* Cards & buttons ----------------------------------------------------- */
.m3bu .bu-card { background: var(--card); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); border: 3px solid var(--line); margin-bottom: 18px; }
.m3bu .bu-card h2 { font-size: 1.25rem; }
.m3bu .bu-card h3 { font-size: 1.1rem; }
.m3bu .bu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; line-height: 1.2; }
.m3bu .bu-btn:hover { transform: translateY(-1px); }
.m3bu .bu-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.m3bu .bu-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.m3bu .bu-btn svg { width: 20px; height: 20px; }
.m3bu .bu-btn-honey { background: linear-gradient(180deg, #ffe17a, var(--honey)); }
.m3bu .bu-btn-big { padding: 14px 26px; font-size: 1.1rem; }
.m3bu .bu-btn-sm { padding: 6px 12px; font-size: .88rem; border-width: 2.5px; box-shadow: 0 3px 0 var(--ink); }
.m3bu .bu-btn-ghost { border-color: var(--line); box-shadow: 0 3px 0 var(--line); color: var(--ink2); }
.m3bu .bu-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 18px 0 6px; }
.m3bu .bu-back { display: inline-block; margin: 4px 0 10px; font-weight: 700; color: var(--ink2); text-decoration: none; background: rgba(255, 255, 255, .8); padding: 5px 14px; border-radius: 999px; }
.m3bu .bu-pageh { font-size: 1.6rem; margin: 6px 0 14px; }
.m3bu .bu-kicker { font-family: var(--display); color: var(--purple); font-weight: 600; margin: 0; font-size: .9rem; }
.m3bu .bu-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--orangebg); color: #b75d00; font-size: .85rem; font-weight: 700; }
.m3bu .bu-tag.ok { background: var(--mintbg); color: #0b8f78; }
.m3bu .bu-list { padding-left: 0; list-style: none; margin: 0 0 10px; }
.m3bu .bu-list li { padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.m3bu .bu-list li svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; }

/* Bee ----------------------------------------------------------------- */
.m3bu .bu-bee { display: block; overflow: visible; }
.m3bu .bu-wing { transform-box: fill-box; transform-origin: 50% 90%; animation: bu-flap .22s ease-in-out infinite alternate; }
.m3bu .bu-wing-r { animation-delay: .11s; }
@keyframes bu-flap { from { transform: scaleY(1); } to { transform: scaleY(.72); } }
.m3bu .bu-float { animation: bu-float 2.6s ease-in-out infinite; }
@keyframes bu-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.m3bu .bu-jump { animation: bu-jump 1s ease-in-out 3; }
@keyframes bu-jump { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-22px) scale(1.06, .95); } 55% { transform: translateY(0) scale(1.08, .9); } 75% { transform: translateY(-6px); } }
.m3bu .bu-wiggle { animation: bu-wiggle 1s ease-in-out infinite; }
@keyframes bu-wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-7deg); } 80% { transform: rotate(7deg); } 90% { transform: rotate(-4deg); } }
.m3bu .bu-spin { animation: bu-spin 2.4s linear infinite; }
@keyframes bu-spin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.m3bu .shake { animation: bu-shake .45s ease; }
@keyframes bu-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Stars, coins, chests ----------------------------------------------- */
.m3bu .bu-star { width: 22px; height: 22px; fill: #e9e4f7; stroke: #cfc6ee; stroke-width: 1.4; vertical-align: -4px; }
.m3bu .bu-star.on { fill: var(--honey); stroke: var(--honeyd); }
.m3bu .bu-star.big { width: 64px; height: 64px; stroke-width: 1; }
.m3bu .bu-coin { width: 22px; height: 22px; vertical-align: -5px; }
.m3bu .bu-stars3 { display: inline-flex; gap: 1px; vertical-align: middle; }
.m3bu .bu-chest { width: 120px; height: 110px; overflow: visible; }
.m3bu .bu-chest-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .45s cubic-bezier(.5, 1.8, .5, 1); }
.m3bu .bu-chest.open .bu-chest-lid { transform: rotate(-24deg) translate(-6px, -10px); }
.m3bu .bu-chest-glow { opacity: 0; transition: opacity .4s; }
.m3bu .bu-chest.open .bu-chest-glow { opacity: 1; animation: bu-glow 1.6s ease-in-out infinite alternate; transform-origin: 60px 50px; }
@keyframes bu-glow { from { transform: scale(.92); } to { transform: scale(1.06); } }

/* Toast, modal, confetti --------------------------------------------- */
.m3bu .bu-toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -20px); opacity: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 16px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: .3s; max-width: 92vw; text-align: center; }
.m3bu .bu-toast.show { opacity: 1; transform: translate(-50%, 0); }
.m3bu .bu-toast-good { background: #10a38a; }
.m3bu .bu-toast-bad { background: #e0435a; }
.m3bu .bu-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.m3bu .bu-modal.show { opacity: 1; }
.m3bu .bu-modal-back { position: absolute; inset: 0; background: rgba(43, 35, 80, .45); backdrop-filter: blur(2px); }
.m3bu .bu-modal-card { position: relative; background: #fff; border-radius: 26px; padding: 26px 24px 20px; width: min(520px, 100%); max-height: 88vh; overflow: auto; border: 3px solid var(--line); box-shadow: 0 30px 60px -20px rgba(43, 35, 80, .5); }
.m3bu .bu-modal-wide .bu-modal-card { width: min(980px, 100%); }
.m3bu .bu-modal-card .bu-bee { width: 110px; margin: 0 auto 6px; }
.m3bu .bu-modal-x { position: sticky; top: 0; float: right; margin: -10px -6px 0 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.m3bu .bu-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 95; overflow: visible; }
.m3bu .bu-confetti i { position: absolute; width: 10px; height: 14px; border-radius: 3px; animation: bu-pop 1.3s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes bu-pop { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 160px)) rotate(var(--rot)); opacity: 0; } }
.m3bu .bu-fly { position: absolute; z-index: 96; display: flex; align-items: center; gap: 2px; font-family: var(--display); font-weight: 700; color: var(--honeyd); transition: transform .75s cubic-bezier(.5, -0.4, .6, 1), opacity .75s; pointer-events: none; }
.m3bu .bu-fly svg { width: 30px; height: 30px; }

/* Loading ------------------------------------------------------------- */
.m3bu .bu-boot, .m3bu .bu-loading { text-align: center; padding: 70px 10px; color: var(--ink2); font-weight: 600; }
.m3bu .bu-loading .bu-bee { width: 120px; margin: 0 auto 10px; }
.m3bu .bu-boot-bee { width: 110px; margin: 0 auto 10px; }
.m3bu .bu-error .bu-bee { width: 130px; margin: 0 auto; }

/* Hero & map ---------------------------------------------------------- */
.m3bu .bu-hero { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, #fff 0%, #fff6d6 55%, #ffe3ee 100%); border-color: #ffe08a; }
.m3bu .bu-hero-bee { width: 140px; flex: 0 0 140px; }
.m3bu .bu-hero h1 { font-size: 1.7rem; margin: 2px 0 6px; }
.m3bu .bu-hero-t { flex: 1; }
.m3bu .bu-hero .bu-btn { margin-top: 12px; }
.m3bu .bu-progress { height: 16px; border-radius: 999px; background: var(--purplebg); overflow: hidden; border: 2px solid #e2dbff; margin: 8px 0 4px; }
.m3bu .bu-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--honey)); border-radius: 999px; transition: width .6s; min-width: 4px; }
.m3bu .bu-progress.gold i { background: linear-gradient(90deg, #ffd36a, #ff9f43); }
@media (max-width: 640px) { .m3bu .bu-hero { flex-direction: column; text-align: center; } .m3bu .bu-hero-bee { width: 110px; flex-basis: auto; } }

.m3bu .bu-map { position: relative; padding: 10px 0 30px; }
.m3bu .bu-map-path { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; }
.m3bu .bu-path-bg { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 18; stroke-linecap: round; }
.m3bu .bu-path-dash { fill: none; stroke: #c8b9ff; stroke-width: 5; stroke-dasharray: 2 14; stroke-linecap: round; }
.m3bu .bu-map-sec { position: relative; z-index: 1; margin: 10px 0 26px; }
.m3bu .bu-sec-h { text-align: center; margin: 18px auto 10px; font-size: 1rem; }
.m3bu .bu-sec-h span { display: inline-block; padding: 8px 22px; border-radius: 999px; color: #fff; font-size: 1.05rem; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); background: var(--ink); }
.m3bu .bu-sec-h small { display: block; font-family: var(--display); color: var(--ink2); font-weight: 600; margin-top: 4px; font-size: .85rem; }
.m3bu .bu-sec-pink .bu-sec-h span { background: linear-gradient(90deg, #ff4f8b, #ff7aa7); }
.m3bu .bu-sec-blue .bu-sec-h span { background: linear-gradient(90deg, #3d8bff, #6fb2ff); }
.m3bu .bu-sec-mint .bu-sec-h span { background: linear-gradient(90deg, #13b394, #3fd6b7); }
.m3bu .bu-sec-orange .bu-sec-h span { background: linear-gradient(90deg, #ff8a2a, #ffb057); }
.m3bu .bu-sec-purple .bu-sec-h span { background: linear-gradient(90deg, #6b4cf5, #9a7dff); }
.m3bu .bu-sec-gold .bu-sec-h span { background: linear-gradient(90deg, #e3a000, #ffc83d); color: #3a2a00; }
.m3bu .bu-sec-start .bu-sec-h span, .m3bu .bu-sec-end .bu-sec-h span { background: var(--ink); }
.m3bu .bu-node-wrap { display: flex; justify-content: center; transform: translateX(calc(var(--wx) * min(70px, 11vw))); margin: 4px 0; }
.m3bu .bu-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; padding: 4px 6px; color: var(--ink); min-width: 140px; }
.m3bu .bu-node-ball { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffe9f1 60%, #ffc7da); border: 4px solid var(--pink); box-shadow: 0 7px 0 #d93a72, 0 14px 22px -10px rgba(0, 0, 0, .35); font-family: var(--display); font-size: 1.8rem; color: var(--pink); transition: transform .15s; }
.m3bu .bu-node:hover .bu-node-ball { transform: translateY(-3px) scale(1.04); }
.m3bu .bu-node:active .bu-node-ball { transform: translateY(4px); box-shadow: 0 3px 0 #d93a72; }
.m3bu .bu-sec-blue .bu-node-ball { border-color: var(--blue); color: #2771e0; background: radial-gradient(circle at 35% 30%, #fff, #e6f2ff 60%, #bcdcff); box-shadow: 0 7px 0 #2b74db, 0 14px 22px -10px rgba(0, 0, 0, .35); }
.m3bu .bu-sec-mint .bu-node-ball { border-color: var(--mint); color: #0d9b80; background: radial-gradient(circle at 35% 30%, #fff, #defcf4 60%, #a9f0df); box-shadow: 0 7px 0 #0f9e83, 0 14px 22px -10px rgba(0, 0, 0, .35); }
.m3bu .bu-sec-orange .bu-node-ball { border-color: var(--orange); color: #d9720f; background: radial-gradient(circle at 35% 30%, #fff, #fff0de 60%, #ffd3a3); box-shadow: 0 7px 0 #dd7a17, 0 14px 22px -10px rgba(0, 0, 0, .35); }
.m3bu .bu-sec-purple .bu-node-ball, .m3bu .t-test .bu-node-ball { border-color: var(--purple); color: var(--purple); background: radial-gradient(circle at 35% 30%, #fff, #efeaff 60%, #cfc2ff); box-shadow: 0 7px 0 #5a3fd8, 0 14px 22px -10px rgba(0, 0, 0, .35); }
.m3bu .bu-sec-gold .bu-node-ball, .m3bu .t-cert .bu-node-ball { border-color: #e3a000; color: #9a6a00; background: radial-gradient(circle at 35% 30%, #fff, #fff4c8 55%, #ffd76a); box-shadow: 0 7px 0 #c48a00, 0 14px 22px -10px rgba(0, 0, 0, .35); font-size: 1.5rem; }
.m3bu .bu-node.is-locked .bu-node-ball { filter: grayscale(1) opacity(.55); }
.m3bu .bu-node.is-locked .bu-node-label { opacity: .55; }
.m3bu .bu-lock { position: absolute; right: -6px; bottom: -4px; font-size: 1.1rem; background: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); filter: none; }
.m3bu .bu-node.is-done .bu-node-ball::after { content: '✓'; position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: #fff; font-size: 1rem; display: grid; place-items: center; border: 3px solid #fff; }
.m3bu .bu-node.is-current .bu-node-ball { animation: bu-pulse 1.6s ease-in-out infinite; }
@keyframes bu-pulse { 0%, 100% { box-shadow: 0 7px 0 rgba(0, 0, 0, .18), 0 0 0 0 rgba(255, 200, 61, .7); } 50% { box-shadow: 0 7px 0 rgba(0, 0, 0, .18), 0 0 0 16px rgba(255, 200, 61, 0); } }
.m3bu .bu-node-label { display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, .92); padding: 3px 12px; border-radius: 14px; line-height: 1.25; max-width: 210px; text-align: center; }
.m3bu .bu-node-label b { font-size: .95rem; }
.m3bu .bu-node-label small { color: var(--ink2); font-size: .74rem; }
.m3bu .bu-node-stars { display: flex; gap: 0; margin-top: -2px; }
.m3bu .bu-node-stars .bu-star { width: 22px; height: 22px; }
.m3bu .bu-node-score { position: absolute; top: 4px; left: calc(50% + 36px); background: var(--ink); color: #fff; font-size: .7rem; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.m3bu .bu-node-badge { position: absolute; top: 0; left: calc(50% + 30px); background: var(--orange); color: #fff; font-size: .7rem; border-radius: 999px; padding: 1px 8px; font-weight: 700; white-space: nowrap; }
.m3bu .bu-node-bee { position: absolute; left: calc(50% - 128px); top: -4px; width: 74px; }
.m3bu .bu-node.shake { animation: bu-shake .45s; }
.m3bu .bu-gate { position: relative; z-index: 1; display: flex; gap: 14px; align-items: center; max-width: 620px; margin: 20px auto; padding: 16px 20px; border-radius: 24px; background: repeating-linear-gradient(45deg, #fff8e0 0 14px, #fff3cc 14px 28px); border: 3px dashed #e3a000; }
.m3bu .bu-gate.open { border-style: solid; background: linear-gradient(135deg, #fffbe6, #ffefb8); }
.m3bu .bu-gate .bu-chest { width: 96px; height: 88px; flex: 0 0 96px; }
.m3bu .bu-gate h3 { margin: 0 0 4px; }
.m3bu .bu-gate p { margin: 0; }

/* Lesson banner & tabs ------------------------------------------------ */
.m3bu .bu-banner { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 26px; color: #fff; margin-bottom: 14px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.m3bu .bu-banner::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.m3bu .bu-banner-pink { background: linear-gradient(120deg, #ff3f7f, #ff6f9f 55%, #ff94b8); }
.m3bu .bu-banner-blue { background: linear-gradient(120deg, #2f7ff0, #58a6ff 60%, #8cc4ff); }
.m3bu .bu-banner-mint { background: linear-gradient(120deg, #0fae8f, #2fcfae 60%, #6fe3c9); }
.m3bu .bu-banner-orange { background: linear-gradient(120deg, #ff7a1a, #ff9f43 60%, #ffc27f); }
.m3bu .bu-banner-purple { background: linear-gradient(120deg, #5a3fe0, #7b5cf5 60%, #a48cff); }
.m3bu .bu-banner-gold { background: linear-gradient(120deg, #e09a00, #ffc83d 60%, #ffe08a); color: #3a2a00; }
.m3bu .bu-banner-num { background: #fff; color: var(--ink); border-radius: 20px; min-width: 96px; padding: 8px 10px; text-align: center; display: flex; flex-direction: column; line-height: 1; box-shadow: 0 5px 0 rgba(0, 0, 0, .12); z-index: 1; }
.m3bu .bu-banner-num small { font-family: var(--display); font-weight: 700; color: var(--pink); letter-spacing: .12em; font-size: .72rem; }
.m3bu .bu-banner-num b { font-family: var(--display); font-size: 2.4rem; color: var(--ink); margin: 4px 0; }
.m3bu .bu-banner-num span { font-family: var(--display); font-size: .62rem; letter-spacing: .14em; color: var(--muted); }
.m3bu .bu-banner-t { flex: 1; z-index: 1; }
.m3bu .bu-banner-t h1 { color: inherit; font-family: var(--display); font-size: 1.85rem; margin: 0 0 2px; }
.m3bu .bu-banner-t p { margin: 0 0 6px; font-size: 1.05rem; opacity: .95; }
.m3bu .bu-unit-chip { display: inline-block; background: rgba(255, 255, 255, .25); padding: 2px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.m3bu .bu-banner-bee { width: 120px; flex: 0 0 120px; z-index: 1; }
@media (max-width: 640px) { .m3bu .bu-banner { flex-wrap: wrap; } .m3bu .bu-banner-bee { width: 76px; flex-basis: 76px; position: absolute; right: 10px; top: 6px; } .m3bu .bu-banner-t h1 { font-size: 1.4rem; } .m3bu .bu-banner-t { flex-basis: 100%; } }
.m3bu .bu-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.m3bu .bu-tab { padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .85); text-decoration: none; color: var(--ink2); font-weight: 700; white-space: nowrap; border: 3px solid transparent; }
.m3bu .bu-tab.on { background: #fff; color: var(--ink); border-color: var(--honey); box-shadow: 0 4px 0 var(--honey); }

/* Learn content ------------------------------------------------------- */
.m3bu .bu-goals { border-color: #ffd0df; background: linear-gradient(180deg, #fff, #fff5f8); }
.m3bu .bu-goals-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.m3bu .bu-goals-h h3 { color: var(--pink); margin: 0; }
.m3bu .bu-goals-star { background: var(--pink); color: #fff; border-radius: 14px; padding: 4px 12px; font-weight: 700; font-size: .85rem; display: inline-flex; gap: 4px; align-items: center; }
.m3bu .bu-goals ul { list-style: none; padding: 0; margin: 10px 0 0; }
.m3bu .bu-goals li label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.m3bu .bu-goals input { width: 22px; height: 22px; accent-color: var(--pink); flex: 0 0 22px; margin-top: 2px; }
.m3bu .bu-rule { border-color: #ffd7e5; }
.m3bu .bu-rule-h { display: flex; align-items: center; gap: 12px; color: var(--pink); font-size: 1.2rem; }
.m3bu .bu-rule-n { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, #ff7aa7, var(--pink)); color: #fff; font-family: var(--display); box-shadow: 0 3px 0 #d93a72; }
.m3bu .bu-rule:nth-of-type(4n+2) { border-color: #d8e9ff; } .m3bu .bu-rule:nth-of-type(4n+2) .bu-rule-h { color: #2771e0; } .m3bu .bu-rule:nth-of-type(4n+2) .bu-rule-n { background: linear-gradient(180deg, #7fb6ff, var(--blue)); box-shadow: 0 3px 0 #2b74db; }
.m3bu .bu-rule:nth-of-type(4n+3) { border-color: #cdf5ea; } .m3bu .bu-rule:nth-of-type(4n+3) .bu-rule-h { color: #0d9b80; } .m3bu .bu-rule:nth-of-type(4n+3) .bu-rule-n { background: linear-gradient(180deg, #4fe0c2, var(--mint)); box-shadow: 0 3px 0 #0f9e83; }
.m3bu .bu-rule:nth-of-type(4n) { border-color: #e2dbff; } .m3bu .bu-rule:nth-of-type(4n) .bu-rule-h { color: var(--purple); } .m3bu .bu-rule:nth-of-type(4n) .bu-rule-n { background: linear-gradient(180deg, #a48cff, var(--purple)); box-shadow: 0 3px 0 #5a3fd8; }
.m3bu .bu-rule p b { color: var(--ink); background: linear-gradient(transparent 60%, #ffe58f 60%); }
.m3bu .bu-tablewrap { overflow-x: auto; margin: 6px 0 12px; border-radius: 14px; }
.m3bu .bu-table { width: 100%; border-radius: 14px; overflow: hidden; font-size: .95rem; }
.m3bu .bu-table th { background: var(--pinkbg); color: #c2185b; text-align: left; padding: 9px 12px; font-weight: 700; white-space: nowrap; }
.m3bu .bu-table td { padding: 8px 12px; border-top: 1.5px solid #f6eef5; vertical-align: top; }
.m3bu .bu-table tbody tr:nth-child(even) td { background: #fffafc; }
.m3bu .bu-ex { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.m3bu .bu-ex li { border-radius: 14px; overflow: hidden; border: 2px solid #f3ecff; }
.m3bu .bu-ex-en { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; font-weight: 600; }
.m3bu .bu-ex-star { color: var(--honey); }
.m3bu .bu-ex-en > span:nth-child(2) { flex: 1; }
.m3bu .bu-ex-th { background: #fff4d1; padding: 6px 12px 7px 30px; color: #6b5420; font-size: .93rem; }
.m3bu .bu-say { border: 0; background: var(--purplebg); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 15px; flex: 0 0 32px; vertical-align: middle; }
.m3bu .bu-say:hover { background: var(--honey2); }
.m3bu .bu-tip { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, #fff7d6, #fffbea); border: 2px dashed var(--honey); border-radius: 16px; padding: 10px 14px; margin: 10px 0; }
.m3bu .bu-tip-bee { width: 58px; flex: 0 0 58px; }
.m3bu .bu-tip b { color: #c48a00; }
.m3bu .bu-oops { background: #fff0f2; border: 2px solid #ffc2cb; border-radius: 16px; padding: 10px 14px; margin: 10px 0; }
.m3bu .bu-oops > b { color: #e0435a; display: inline-block; background: #fff; border-radius: 10px; padding: 0 10px; border: 2px solid #ffc2cb; }
.m3bu .bu-oops ul { margin: 6px 0 0; padding-left: 18px; }
.m3bu .bu-x { color: #e0435a; font-weight: 800; } .m3bu .bu-ok { color: #0b8f78; font-weight: 800; }
.m3bu .bu-recap { border-color: #ffd7e5; background: linear-gradient(180deg, #fff, #fff6fa); }
.m3bu .bu-recap-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.m3bu .bu-recap-h h3 { color: var(--pink); margin: 0; }
.m3bu .bu-recap ol { margin: 10px 0; padding-left: 22px; display: grid; gap: 8px; }
.m3bu .bu-recap li { padding-left: 4px; }
.m3bu .bu-gap { display: inline-block; min-width: 52px; border-bottom: 2.5px dashed var(--pink); text-align: center; color: var(--pink); font-weight: 700; margin: 0 2px; }
.m3bu .bu-recap-a { display: inline-block; margin-left: 6px; border: 2px dashed var(--purple2); background: var(--purplebg); color: var(--purple); border-radius: 10px; padding: 1px 10px; font-weight: 700; cursor: pointer; font-size: .9rem; }
.m3bu .bu-recap-a .show { display: none; }
.m3bu .bu-recap-a.open { border-style: solid; background: var(--mintbg); color: #0b8f78; border-color: var(--mint); }
.m3bu .bu-recap-a.open .show { display: inline; } .m3bu .bu-recap-a.open .hide { display: none; }
.m3bu .bu-seen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
.m3bu .bu-seen span { background: var(--purplebg); color: var(--purple); border-radius: 999px; padding: 1px 10px; font-size: .82rem; font-weight: 700; }
.m3bu .bu-flipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.m3bu .bu-flip { height: 86px; perspective: 600px; border: 0; background: none; padding: 0; cursor: pointer; }
.m3bu .bu-flip-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.m3bu .bu-flip.flipped .bu-flip-in { transform: rotateY(180deg); }
.m3bu .bu-flip-f, .m3bu .bu-flip-b { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px 10px; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-weight: 700; text-align: center; line-height: 1.25; }
.m3bu .bu-flip-f { background: #fff; border: 3px solid #e6dcff; color: var(--purple); font-family: var(--display); font-size: 1.02rem; box-shadow: 0 4px 0 #e6dcff; }
.m3bu .bu-flip-b { background: linear-gradient(180deg, #fff6d6, #ffe9a8); border: 3px solid var(--honey); color: #6b4a00; transform: rotateY(180deg); font-size: .92rem; }
.m3bu .bu-words .bu-ipa { font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif; color: var(--purple); }
.m3bu .bu-words input { width: 22px; height: 22px; accent-color: var(--mint); }
.m3bu .bu-video-box { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; }
.m3bu .bu-video-box iframe, .m3bu .bu-video-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m3bu .bu-soon .bu-bee { width: 130px; margin: 0 auto 8px; }

/* Quest intro --------------------------------------------------------- */
.m3bu .bu-quest-intro { border-color: #d9ccff; }
.m3bu .bu-quest-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: linear-gradient(120deg, #6b4cf5, #9a7dff); color: #fff; border-radius: 20px; padding: 14px 18px; margin-bottom: 12px; }
.m3bu .bu-quest-h h2 { color: #fff; font-family: var(--display); font-size: 2rem; margin: 0; }
.m3bu .bu-quest-h p { margin: 0; }
.m3bu .bu-quest-h .bu-bee, .m3bu .bu-quest-h .bu-chest { width: 92px; height: auto; flex: 0 0 92px; }
.m3bu .bu-quest-rules { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.m3bu .bu-quest-rules span { background: var(--purplebg); color: var(--purple); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .88rem; }
.m3bu .bu-questmap { width: 100%; height: auto; margin: 4px 0; background: #fbf9ff; border: 2px dashed #d9ccff; border-radius: 18px; }
.m3bu .bu-qm-path { fill: none; stroke: #d9ccff; stroke-width: 3; stroke-dasharray: 4 6; }
.m3bu .bu-qm-dot circle { fill: #fff; stroke: #b7a6ff; stroke-width: 3; }
.m3bu .bu-qm-dot text { font-family: var(--display); font-size: 11px; font-weight: 700; fill: var(--purple); }
.m3bu .bu-qm-dot.ok circle { fill: var(--mint); stroke: #0f9e83; } .m3bu .bu-qm-dot.ok text { fill: #fff; }
.m3bu .bu-qm-dot.bad circle { fill: #ff8c99; stroke: #e0435a; } .m3bu .bu-qm-dot.bad text { fill: #fff; }
.m3bu .bu-stage-list { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.m3bu .bu-stage-chip { border-radius: 14px; padding: 8px 12px; background: var(--pinkbg); }
.m3bu .bu-stage-chip b { display: inline-block; background: var(--pink); color: #fff; border-radius: 8px; padding: 0 8px; font-family: var(--display); font-size: .8rem; margin-right: 4px; }
.m3bu .bu-stage-chip small { display: block; color: var(--ink2); }
.m3bu .bu-stage-chip.s2 { background: var(--bluebg); } .m3bu .bu-stage-chip.s2 b { background: var(--blue); }
.m3bu .bu-stage-chip.s3 { background: var(--mintbg); } .m3bu .bu-stage-chip.s3 b { background: var(--mint); }
.m3bu .bu-stage-chip.s4 { background: #ece6ff; } .m3bu .bu-stage-chip.s4 b { background: var(--ink); }
.m3bu .bu-best { text-align: center; font-weight: 600; margin: 10px 0 0; }
.m3bu .bu-parts { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.m3bu .bu-parts li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 14px; border-radius: 14px; background: var(--purplebg); }
.m3bu .bu-parts small { grid-column: 1 / -1; color: var(--ink2); }
.m3bu .bu-test-intro .bu-test-grid, .m3bu .bu-test-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .m3bu .bu-test-grid { grid-template-columns: 1fr; } }
.m3bu .bu-scale { text-align: left; background: #fbf9ff; border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.m3bu .bu-scale h4 { margin: 0 0 8px; }
.m3bu .bu-scale-r { display: grid; grid-template-columns: 56px 1fr auto; grid-template-rows: auto auto; gap: 0 10px; align-items: center; padding: 6px 8px; border-radius: 12px; }
.m3bu .bu-scale-r small { grid-column: 3; color: var(--muted); text-align: right; }
.m3bu .bu-scale-r > b { text-align: right; }
.m3bu .bu-scale-r .bu-lv { grid-row: span 2; }
.m3bu .bu-scale-r.on { background: #fff4c4; box-shadow: inset 0 0 0 2px var(--honey); }
.m3bu .bu-lv { display: inline-grid; place-items: center; min-width: 42px; padding: 2px 10px; border-radius: 999px; font-family: var(--display); font-weight: 700; color: #fff; font-size: .9rem; background: #9aa0b5; }
.m3bu .bu-lv-a1 { background: #ff7fa5; } .m3bu .bu-lv-a2 { background: #ffa51f; } .m3bu .bu-lv-b1 { background: #16b897; } .m3bu .bu-lv-b2 { background: #3d86ff; } .m3bu .bu-lv-b2p { background: #7b5cf5; }

/* Player -------------------------------------------------------------- */
.m3bu .bu-play-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.m3bu .bu-play-title { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.m3bu .bu-play-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m3bu .bu-play-title small { color: var(--ink2); }
.m3bu .bu-streak { font-style: normal; margin-left: 4px; color: #e0560f; }
.m3bu .bu-hexbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.m3bu .bu-hx { width: 34px; height: 38px; border: 0; cursor: pointer; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: #e9e3fb; color: var(--ink2); font-family: var(--display); font-weight: 700; font-size: .8rem; transition: transform .15s; }
.m3bu .bu-hx.done { background: #c9bbff; color: #fff; }
.m3bu .bu-hx.ok { background: var(--mint); color: #fff; }
.m3bu .bu-hx.bad { background: #ff8c99; color: #fff; }
.m3bu .bu-hx.cur { background: var(--honey); color: var(--ink); transform: scale(1.18); }
.m3bu .bu-play-test .bu-hx { width: 30px; height: 34px; font-size: .72rem; }
.m3bu .bu-stagebar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 14px; background: var(--pinkbg); margin-bottom: 10px; font-weight: 600; }
.m3bu .bu-stagebar b { background: var(--pink); color: #fff; border-radius: 8px; padding: 0 8px; font-family: var(--display); letter-spacing: .04em; }
.m3bu .bu-stagebar span { color: var(--ink2); }
.m3bu .bu-stagebar small { margin-left: auto; color: var(--muted); }
.m3bu .bu-stagebar.s2 { background: var(--bluebg); } .m3bu .bu-stagebar.s2 b { background: var(--blue); }
.m3bu .bu-stagebar.s3 { background: var(--mintbg); } .m3bu .bu-stagebar.s3 b { background: var(--mint); }
.m3bu .bu-stagebar.s4 { background: #ece6ff; } .m3bu .bu-stagebar.s4 b { background: var(--ink); }
.m3bu .bu-play-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.m3bu .bu-play-passage { position: sticky; top: 10px; max-height: calc(100vh - 30px); overflow: auto; border-radius: var(--r); }
.m3bu .bu-play-single { max-width: 820px; margin: 0 auto; }
@media (max-width: 860px) { .m3bu .bu-play-grid { grid-template-columns: 1fr; } .m3bu .bu-play-passage { position: static; max-height: none; } }
.m3bu .bu-group { background: #fff; border-radius: var(--r); border: 3px solid var(--line); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.m3bu .bu-group-dironly { padding: 8px 14px; box-shadow: none; background: rgba(255, 255, 255, .8); }
.m3bu .bu-dir { margin: 0 0 6px; background: var(--purplebg); border-radius: 12px; padding: 6px 12px; font-weight: 600; color: var(--purple); font-size: .93rem; }
.m3bu .bu-group-dironly .bu-dir { margin: 0; }
.m3bu .bu-passage { font-size: 1.02rem; line-height: 1.75; }
.m3bu .bu-passage-t { text-align: center; color: var(--purple); font-family: var(--display); font-size: 1.15rem; margin: 6px 0 10px; }
.m3bu .bu-passage p { text-indent: 0; }
.m3bu .bu-slot { display: inline-grid; place-items: center; min-width: 46px; height: 26px; padding: 0 8px; margin: 0 2px; border-radius: 9px; background: #fff; border: 2.5px dashed var(--purple2); color: var(--purple); font-family: var(--display); font-weight: 700; font-size: .85rem; vertical-align: 1px; line-height: 1; }
.m3bu .bu-slot[data-on="1"] { background: var(--honey); border: 2.5px solid var(--ink); color: var(--ink); animation: bu-bump .9s ease-in-out infinite; }
.m3bu .bu-dialog { display: grid; gap: 8px; }
.m3bu .bu-say-line { display: flex; gap: 8px; align-items: flex-end; }
.m3bu .bu-say-line.r { flex-direction: row-reverse; }
.m3bu .bu-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; background: var(--pink); }
.m3bu .bu-say-line.r .bu-avatar { background: var(--blue); }
.m3bu .bu-bubble { max-width: 82%; padding: 8px 12px; border-radius: 18px 18px 18px 4px; background: var(--pinkbg); }
.m3bu .bu-say-line.r .bu-bubble { border-radius: 18px 18px 4px 18px; background: var(--bluebg); }
.m3bu .bu-bubble small { display: block; font-weight: 700; color: var(--ink2); font-size: .74rem; }
.m3bu .bu-kv { display: grid; gap: 6px; margin: 6px 0 10px; }
.m3bu .bu-kv-r { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 10px; padding: 7px 12px; border-radius: 12px; background: #fbf9ff; }
.m3bu .bu-kv-r b { color: var(--purple); }
.m3bu .bu-chart { width: 100%; height: auto; display: block; margin: 4px 0 8px; }
.m3bu .bu-ch-ax { font-size: 13px; fill: #6b6590; font-family: var(--font); }
.m3bu .bu-ch-ax.sm { font-size: 11px; }
.m3bu .bu-ch-v { font-size: 14px; font-weight: 700; fill: var(--ink); font-family: var(--display); }
.m3bu .bu-ch-pl { font-size: 15px; font-weight: 700; fill: #fff; font-family: var(--display); }
.m3bu .bu-ch-lg { font-size: 14px; fill: var(--ink); font-family: var(--font); }
.m3bu .bu-qcard { background: #fff; border-radius: var(--r); border: 3px solid var(--line); padding: 16px; box-shadow: var(--shadow); }
.m3bu .bu-qcard.is-right { border-color: #9be7d6; }
.m3bu .bu-qcard.is-wrong { border-color: #ffc2cb; }
.m3bu .bu-qhead { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.m3bu .bu-qnum { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ff7aa7, var(--pink)); color: #fff; font-family: var(--display); font-weight: 700; box-shadow: 0 3px 0 #d93a72; }
.m3bu .bu-q { font-size: 1.12rem; font-weight: 600; line-height: 1.65; padding-top: 4px; }
.m3bu .bu-blank { display: inline-block; min-width: 76px; border-bottom: 3px solid var(--ink); margin: 0 4px; height: 1.1em; vertical-align: -2px; }
.m3bu .bu-ul { text-decoration: none; border-bottom: 3px solid var(--pink); padding: 0 1px; font-weight: 700; }
.m3bu .bu-ul sup { font-family: var(--display); color: var(--pink); font-size: .7em; margin-left: 1px; }
.m3bu .bu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m3bu .bu-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; background: #fff6d6; border: 2px solid var(--honey); font-weight: 600; }
.m3bu .bu-chip b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-size: .8rem; }
.m3bu .bu-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .m3bu .bu-choices { grid-template-columns: 1fr; } }
.m3bu .bu-choice { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 16px; border: 3px solid var(--line); background: #fff; cursor: pointer; font-size: 1.02rem; color: var(--ink); font-weight: 600; box-shadow: 0 4px 0 var(--line); transition: transform .08s, border-color .15s, background .15s; min-height: 58px; }
.m3bu .bu-choice:hover:not(:disabled) { border-color: var(--purple2); transform: translateY(-2px); }
.m3bu .bu-choice:active:not(:disabled), .m3bu .bu-choice.pressed { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.m3bu .bu-choice:disabled { cursor: default; }
.m3bu .bu-letter { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; }
.m3bu .bu-letter.l0 { background: #ff5c93; } .m3bu .bu-letter.l1 { background: #ffb020; } .m3bu .bu-letter.l2 { background: #22c3a6; } .m3bu .bu-letter.l3 { background: #4f8cff; }
.m3bu .bu-choice.right { border-color: var(--mint); background: var(--mintbg); box-shadow: 0 4px 0 #9be7d6; }
.m3bu .bu-choice.right::after { content: '✔'; margin-left: auto; color: #0b8f78; font-size: 1.2rem; }
.m3bu .bu-choice.wrong { border-color: #ff8c99; background: #fff0f2; box-shadow: 0 4px 0 #ffc2cb; }
.m3bu .bu-choice.wrong::after { content: '✘'; margin-left: auto; color: #e0435a; font-size: 1.2rem; }
.m3bu .bu-choice.dim { opacity: .5; }
.m3bu .bu-choice.picked { border-color: var(--purple); background: var(--purplebg); box-shadow: 0 4px 0 #cfc2ff; }
.m3bu .bu-fb-box { margin-top: 14px; border-radius: 18px; padding: 12px 14px; animation: bu-in .3s ease; }
@keyframes bu-in { from { transform: translateY(10px); opacity: 0; } }
.m3bu .bu-fb-box.ok { background: var(--mintbg); border: 2px solid #9be7d6; }
.m3bu .bu-fb-box.bad { background: #fff0f2; border: 2px solid #ffc2cb; }
.m3bu .bu-fb-h { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.m3bu .bu-fb-box.ok .bu-fb-h { color: #0b8f78; } .m3bu .bu-fb-box.bad .bu-fb-h { color: #d0334b; }
.m3bu .bu-fb-x { margin: 0 0 8px; line-height: 1.6; }
.m3bu .bu-fb-act { display: flex; justify-content: flex-end; }
.m3bu .bu-testnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.m3bu .bu-play-bee { position: fixed; right: 18px; bottom: 54px; width: 96px; z-index: 5; pointer-events: none; }
@media (max-width: 860px) { .m3bu .bu-play-bee { width: 64px; right: 8px; bottom: 34px; } }
.m3bu .bu-splash { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; animation: bu-in .25s ease; }
.m3bu .bu-splash > div { background: var(--pink); color: #fff; padding: 18px 40px; border-radius: 26px; text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); transform: rotate(-3deg); border: 4px solid #fff; }
.m3bu .bu-splash.s2 > div { background: var(--blue); } .m3bu .bu-splash.s3 > div { background: var(--mint); } .m3bu .bu-splash.s4 > div { background: var(--ink); }
.m3bu .bu-splash b { display: block; font-family: var(--display); font-size: 2.6rem; letter-spacing: .06em; }
.m3bu .bu-splash span { font-weight: 700; }
.m3bu .bu-splash.out { opacity: 0; transition: opacity .4s; }

/* Results ------------------------------------------------------------- */
.m3bu .bu-result { max-width: 720px; margin: 10px auto; text-align: center; position: relative; padding-top: 34px; }
.m3bu .bu-result-ribbon { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); background: linear-gradient(90deg, #ff4f8b, #ff86ad); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.3rem; padding: 6px 26px; border-radius: 999px; box-shadow: 0 5px 0 #d93a72; white-space: nowrap; }
.m3bu .bu-result-bee { width: 130px; margin: 0 auto; }
.m3bu .bu-result-stars { display: flex; justify-content: center; gap: 4px; margin: 4px 0; }
.m3bu .bu-rs { animation: bu-starpop .5s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes bu-starpop { from { transform: scale(0) rotate(-90deg); } }
.m3bu .bu-rs:nth-child(2) .bu-star { width: 80px; height: 80px; margin-top: -12px; }
.m3bu .bu-result-label { color: var(--ink2); font-weight: 600; margin: 0; }
.m3bu .bu-score { font-family: var(--display); line-height: 1; margin: 6px 0; }
.m3bu .bu-score b { font-size: 4rem; color: var(--purple); }
.m3bu .bu-score span { font-size: 1.8rem; color: var(--muted); }
.m3bu .bu-result-pct { font-weight: 700; font-size: 1.15rem; }
.m3bu .bu-result-msg { font-size: 1.12rem; font-weight: 700; color: var(--pink); }
.m3bu .bu-legend { color: var(--muted); font-size: .85rem; }
.m3bu .bu-legend .bu-star { width: 16px; height: 16px; }
.m3bu .bu-rewards { list-style: none; padding: 10px 14px; margin: 10px auto; max-width: 440px; background: #fffbea; border-radius: 16px; border: 2px dashed var(--honey); text-align: left; }
.m3bu .bu-rewards li { padding: 3px 0; }
.m3bu .bu-chestbox { margin: 14px auto; padding: 14px; border-radius: 20px; background: radial-gradient(circle at 50% 40%, #fff7cf, #fff 70%); }
.m3bu .bu-chest-title { font-weight: 700; margin-bottom: 4px; }
.m3bu .bu-chest-btn { border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; margin: 0 auto; font-weight: 700; color: var(--purple); font-family: inherit; font-size: 1rem; }
.m3bu .bu-chest-btn .bu-chest { width: 150px; height: 138px; }
.m3bu .bu-chest-gold { font-family: var(--display); font-size: 1.6rem; color: #c48a00; animation: bu-starpop .5s cubic-bezier(.3, 1.8, .5, 1); }
.m3bu .bu-chest-gold .bu-coin { width: 36px; height: 36px; vertical-align: -8px; }
.m3bu .bu-unlock { background: var(--mintbg); border-radius: 14px; padding: 8px 14px; font-weight: 700; margin: 10px auto; max-width: 520px; }
.m3bu .bu-lvbig { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 6px 0; }
.m3bu .bu-lvbig-bee { width: 120px; }
.m3bu .bu-lvbig-badge { width: 130px; height: 130px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; border: 6px solid #fff; box-shadow: 0 8px 0 rgba(0, 0, 0, .12), 0 0 0 6px rgba(255, 200, 61, .5); animation: bu-starpop .6s cubic-bezier(.3, 1.8, .5, 1) .2s both; }
.m3bu .bu-lvbig-badge small { font-family: var(--display); letter-spacing: .1em; }
.m3bu .bu-lvbig-badge b { font-family: var(--display); font-size: 3rem; line-height: 1; }
.m3bu .bu-growth { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; background: #f6f2ff; border-radius: 18px; padding: 10px; margin: 10px 0; }
.m3bu .bu-growth > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.m3bu .bu-growth p { flex-basis: 100%; margin: 0; font-weight: 700; }
.m3bu .bu-growth-arrow { font-size: 1.8rem; color: var(--purple); }
.m3bu .bu-break { text-align: left; background: #fbf9ff; border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.m3bu .bu-break h4 { margin: 0 0 6px; }
.m3bu .bu-brow { display: grid; grid-template-columns: 76px 1fr 50px; gap: 8px; align-items: center; margin: 5px 0; }
.m3bu .bu-brow > b { text-align: right; }
.m3bu .bu-bbar { height: 12px; background: #ebe6fb; border-radius: 999px; overflow: hidden; }
.m3bu .bu-bbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple2), var(--purple)); border-radius: 999px; }
.m3bu .bu-bbar.alt i { background: linear-gradient(90deg, #ffd36a, var(--orange)); }
.m3bu .bu-skill { font-weight: 700; font-size: .9rem; }

/* Treasure ------------------------------------------------------------ */
.m3bu .bu-vault { display: flex; gap: 20px; align-items: center; background: radial-gradient(circle at 20% 30%, #fff6cf, #fff 60%); border-color: #ffe08a; }
.m3bu .bu-vault-chest { position: relative; width: 210px; flex: 0 0 210px; }
.m3bu .bu-vault-chest .bu-chest { width: 210px; height: 192px; }
.m3bu .bu-vault-t { flex: 1; }
.m3bu .bu-vault h1 { font-size: 1.6rem; margin: 2px 0; }
.m3bu .bu-vault h1 small { font-family: var(--display); color: var(--muted); font-size: .9rem; }
.m3bu .bu-bigcount { display: flex; align-items: center; gap: 8px; font-family: var(--display); margin: 6px 0; }
.m3bu .bu-bigcount .bu-coin { width: 46px; height: 46px; }
.m3bu .bu-bigcount b { font-size: 2.8rem; color: #c48a00; }
.m3bu .bu-coins-rain { position: absolute; inset: -80px 0 0; pointer-events: none; overflow: hidden; }
.m3bu .bu-coins-rain span { position: absolute; top: 0; animation: bu-rain 1s ease-in forwards; }
.m3bu .bu-coins-rain .bu-coin { width: 30px; height: 30px; }
@keyframes bu-rain { 0% { transform: translateY(-20px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(170px) rotate(240deg); opacity: 0; } }
@media (max-width: 640px) { .m3bu .bu-vault { flex-direction: column; text-align: center; } .m3bu .bu-bigcount { justify-content: center; } }
.m3bu .bu-exchange { border-color: #ffe08a; }
.m3bu .bu-ex-row { display: flex; flex-wrap: wrap; gap: 10px; }
.m3bu .bu-ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
@media (max-width: 640px) { .m3bu .bu-ladder { grid-template-columns: repeat(3, 1fr); } }
.m3bu .bu-ladder-i { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; border-radius: 16px; background: #f7f5fc; filter: grayscale(.9) opacity(.55); line-height: 1.2; }
.m3bu .bu-ladder-i .bu-chest { width: 70px; height: 64px; }
.m3bu .bu-ladder-i b { font-size: .8rem; }
.m3bu .bu-ladder-i small { color: var(--muted); font-size: .72rem; }
.m3bu .bu-ladder-i.on { filter: none; background: #fffbea; }
.m3bu .bu-ladder-i.cur { box-shadow: inset 0 0 0 3px var(--honey); }
.m3bu .bu-collect { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.m3bu .bu-col { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 8px; border-radius: 18px; background: #f5f3fa; border: 2px dashed #ddd6ee; line-height: 1.25; }
.m3bu .bu-col-e { font-size: 2.4rem; filter: grayscale(1) opacity(.4); }
.m3bu .bu-col b { font-size: .88rem; margin-top: 4px; }
.m3bu .bu-col small { color: var(--muted); font-size: .74rem; }
.m3bu .bu-col.on { background: linear-gradient(180deg, #fff, #fff4cc); border: 2px solid var(--honey); }
.m3bu .bu-col.on .bu-col-e { filter: none; animation: bu-float 3s ease-in-out infinite; }
.m3bu .bu-board { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.m3bu .bu-board li { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: #faf8ff; }
.m3bu .bu-board li.me { background: #fff4c4; box-shadow: inset 0 0 0 2px var(--honey); }
.m3bu .bu-board .bu-rank { font-family: var(--display); font-weight: 700; text-align: center; font-size: 1.15rem; }
.m3bu .bu-board span, .m3bu .bu-board small { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }

/* Scores -------------------------------------------------------------- */
.m3bu .bu-sumcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 4px; }
.m3bu .bu-sum { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px; }
.m3bu .bu-sum small { color: var(--ink2); font-weight: 600; }
.m3bu .bu-sum b { font-family: var(--display); font-size: 1.6rem; }
.m3bu .bu-bestchart { width: 100%; height: auto; }
.m3bu .bu-hist td { white-space: nowrap; }
.m3bu .bu-hist td:nth-child(2) { white-space: normal; }
.m3bu .bu-rv { border: 2px solid var(--line); border-radius: 18px; padding: 12px; margin: 10px 0; }
.m3bu .bu-rv.ok { border-color: #9be7d6; background: #f6fffc; }
.m3bu .bu-rv.bad { border-color: #ffc2cb; background: #fff8f9; }
.m3bu .bu-rv-mark { margin-left: auto; font-size: 1.3rem; font-weight: 800; }
.m3bu .bu-rv.ok .bu-rv-mark { color: #0b8f78; } .m3bu .bu-rv.bad .bu-rv-mark { color: #e0435a; }
.m3bu .bu-rv-c { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 560px) { .m3bu .bu-rv-c { grid-template-columns: 1fr; } }
.m3bu .bu-rv-ch { padding: 5px 10px; border-radius: 10px; background: #fff; border: 2px solid var(--line); }
.m3bu .bu-rv-ch.right { border-color: var(--mint); background: var(--mintbg); font-weight: 700; }
.m3bu .bu-rv-ch.wrong { border-color: #ff8c99; background: #fff0f2; text-decoration: line-through; }
.m3bu .bu-rv .bu-fb-x { margin: 8px 0 0; }

/* Certificate --------------------------------------------------------- */
.m3bu .bu-certlock-h { display: flex; gap: 16px; align-items: center; }
.m3bu .bu-certlock-h .bu-chest { width: 120px; flex: 0 0 120px; }
.m3bu .bu-checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.m3bu .bu-checks li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: #f7f5fc; font-weight: 600; }
.m3bu .bu-checks li > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ddd6ee; color: #fff; }
.m3bu .bu-checks li span { margin-left: auto; font-family: var(--display); }
.m3bu .bu-checks li.ok { background: var(--mintbg); }
.m3bu .bu-checks li.ok > b { background: var(--mint); }
.m3bu .bu-need { columns: 2 220px; }
.m3bu .bu-cert-wrap { overflow-x: auto; padding: 6px 2px 20px; }
.m3bu .bu-cert { width: 1050px; max-width: none; aspect-ratio: 297/210; margin: 0 auto; background: #fff; padding: 22px; border-radius: 10px; box-shadow: 0 20px 50px -20px rgba(43, 35, 80, .45); background-image: repeating-linear-gradient(45deg, #ffe58f 0 12px, #ffd0e0 12px 24px, #d8ccff 24px 36px, #c6f1e6 36px 48px); }
.m3bu .bu-cert-in { position: relative; height: 100%; background: #fffdf6; border-radius: 6px; border: 3px solid #e3a000; outline: 2px dashed #e3a000; outline-offset: -12px; padding: 34px 70px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.m3bu .bu-cert-corner { position: absolute; width: 110px; }
.m3bu .bu-cert-corner.tl { left: 18px; top: 16px; transform: rotate(-12deg); }
.m3bu .bu-cert-corner.br { right: 18px; bottom: 16px; transform: rotate(10deg); }
.m3bu .bu-cert-org { font-family: var(--display); color: var(--purple); font-weight: 700; letter-spacing: .08em; margin: 0; }
.m3bu .bu-cert-title { font-family: var(--display); font-size: 3rem; color: var(--pink); margin: 4px 0 2px; }
.m3bu .bu-cert-th { margin: 0; color: var(--ink2); font-size: 1.1rem; }
.m3bu .bu-cert-name { font-size: 2.6rem; font-weight: 700; color: var(--ink); margin: 6px 0 0; padding: 0 30px 2px; border-bottom: 3px solid var(--honey); line-height: 1.3; }
.m3bu .bu-cert-school { margin: 6px 0 0; color: var(--ink2); font-weight: 600; }
.m3bu .bu-cert-body { margin: 10px 0; font-size: 1.05rem; line-height: 1.7; max-width: 860px; }
.m3bu .bu-cert-score { display: flex; gap: 14px; justify-content: center; margin: 4px 0 8px; }
.m3bu .bu-cert-score > div { min-width: 170px; padding: 8px 16px; border-radius: 18px; background: linear-gradient(180deg, #fff, #fff4cc); border: 3px solid var(--honey); display: flex; flex-direction: column; line-height: 1.2; }
.m3bu .bu-cert-score small { color: var(--ink2); font-weight: 700; }
.m3bu .bu-cert-score b { font-family: var(--display); font-size: 2.2rem; color: var(--purple); }
.m3bu .bu-cert-score b span { font-size: 1.1rem; color: var(--muted); }
.m3bu .bu-cert-score em { font-style: normal; font-weight: 700; color: var(--pink); }
.m3bu .bu-cert-grow { font-size: 1.6rem !important; }
.m3bu .bu-cert-foot { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.m3bu .bu-cert-foot > div { display: flex; flex-direction: column; align-items: center; }
.m3bu .bu-cert-sign { font-family: var(--display); font-size: 1.6rem; color: var(--ink); border-bottom: 2px solid var(--ink); padding: 0 30px; min-width: 220px; }
.m3bu .bu-cert-date { font-weight: 700; border-bottom: 2px solid var(--ink); padding: 0 30px 2px; min-width: 220px; }
.m3bu .bu-cert-foot small { color: var(--ink2); margin-top: 3px; }
.m3bu .bu-cert-seal { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #ffe17a, #ffc83d 60%, #e3a000); border: 4px dashed #fff; box-shadow: 0 0 0 4px #e3a000; display: flex !important; flex-direction: column; justify-content: center; position: relative; }
.m3bu .bu-cert-seal .bu-bee { width: 54px; margin-top: -8px; }
.m3bu .bu-cert-seal span { font-family: var(--display); font-weight: 700; font-size: .72rem; line-height: 1; color: #6b4a00; }

/* Teacher ------------------------------------------------------------- */
.m3bu .bu-tfilter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.m3bu .bu-tfilter label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.m3bu .bu-tfilter select, .m3bu .bu-tfilter input, .m3bu .bu-pwform input { font-family: inherit; font-size: .95rem; padding: 7px 12px; border-radius: 12px; border: 2.5px solid var(--line); background: #fff; color: var(--ink); }
.m3bu .bu-seg { display: inline-flex; background: var(--purplebg); border-radius: 999px; padding: 3px; }
.m3bu .bu-seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.m3bu .bu-seg button.on { background: #fff; color: var(--purple); box-shadow: 0 2px 0 #d9ccff; }
.m3bu .bu-tlist tbody tr { cursor: pointer; }
.m3bu .bu-tlist tbody tr:hover td { background: #fff7d6 !important; }
.m3bu .bu-tlist td small, .m3bu .bu-grid td small { display: block; color: var(--muted); }
.m3bu .bu-mini { display: inline-block; width: 60px; height: 8px; border-radius: 999px; background: #ebe6fb; overflow: hidden; margin-right: 6px; vertical-align: middle; }
.m3bu .bu-mini i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--honey)); }
.m3bu .bu-grid th, .m3bu .bu-grid td { text-align: center; padding: 6px 5px; font-size: .82rem; }
.m3bu .bu-grid .sticky { position: sticky; left: 0; background: #fff; text-align: left; z-index: 1; min-width: 150px; }
.m3bu .bu-grid thead .sticky { background: var(--pinkbg); }
.m3bu .bu-grid tbody tr { cursor: pointer; }
.m3bu .g-ok { background: #dcfbf2 !important; color: #0b7a64; font-weight: 700; }
.m3bu .g-low { background: #fff0dc !important; color: #b75d00; font-weight: 700; }
.m3bu .g-empty { background: #fbfaff !important; }
.m3bu .bu-unitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin: 6px 0 12px; }
.m3bu .bu-ug { display: flex; flex-direction: column; align-items: center; padding: 4px; border-radius: 10px; background: #f6f4fb; line-height: 1.2; }
.m3bu .bu-ug small { font-size: .7rem; color: var(--muted); }
.m3bu .bu-ug.ok { background: var(--mintbg); color: #0b7a64; }
.m3bu .bu-ug.low { background: var(--orangebg); color: #b75d00; }
.m3bu .bu-pwform { display: flex; gap: 8px; flex-wrap: wrap; }

/* Login --------------------------------------------------------------- */
.m3bu-login-wrap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px 60px; background: linear-gradient(180deg, #bfe6ff 0%, #e7f6ff 40%, #fff8e9 100%); min-height: 640px; overflow: hidden; border-radius: 20px; }
body.m3bu-fullscreen .m3bu-login-wrap { border-radius: 0; }
.m3bu-login-wrap .bu-login-sky { position: absolute; inset: 0; pointer-events: none; }
.m3bu .bu-login-card { position: relative; z-index: 2; width: min(440px, 100%); background: #fff; border-radius: 30px; padding: 26px 26px 20px; border: 4px solid #ffe08a; box-shadow: 0 10px 0 #ffd35c, 0 30px 60px -25px rgba(43, 35, 80, .5); text-align: center; }
.m3bu .bu-login-bee { width: 130px; height: 130px; margin: -86px auto 0; border-radius: 50%; background: #fff; border: 4px solid #ffe08a; display: grid; place-items: center; padding: 8px; }
.m3bu .bu-login-bee .bu-bee { width: 108px; }
.m3bu .bu-login-title { font-family: var(--display); font-size: 2.3rem; margin: 8px 0 0; color: var(--purple); }
.m3bu .bu-login-title b { color: var(--pink); }
.m3bu .bu-login-sub { color: var(--ink2); font-weight: 600; }
.m3bu .bu-login-form { display: grid; gap: 12px; text-align: left; margin-top: 10px; }
.m3bu .bu-login-form label { display: grid; gap: 4px; font-weight: 700; color: var(--ink); }
.m3bu .bu-login-form input[type=text], .m3bu .bu-login-form input[type=password] { font-family: inherit; font-size: 1.1rem; padding: 12px 14px; border-radius: 16px; border: 3px solid var(--line); background: #fbf9ff; color: var(--ink); width: 100%; }
.m3bu .bu-login-form input:focus { outline: none; border-color: var(--purple2); background: #fff; }
.m3bu .bu-remember { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; font-weight: 600 !important; }
.m3bu .bu-remember input { width: 20px; height: 20px; accent-color: var(--purple); }
.m3bu .bu-login-form .bu-btn { width: 100%; margin-top: 4px; }
.m3bu .bu-login-error { background: #fff0f2; color: #d0334b; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.m3bu .bu-login-help { color: var(--muted); font-size: .88rem; margin: 14px 0 0; }
.m3bu .bu-login-foot { position: relative; z-index: 2; color: var(--ink2); font-size: .82rem; margin-top: 18px; }

/* Focus rings ---------------------------------------------------------- */
.m3bu a:focus-visible, .m3bu button:focus-visible, .m3bu input:focus-visible, .m3bu select:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.m3bu *, .m3bu *::before, .m3bu *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Print: certificate only ---------------------------------------------- */
@media print {
	@page { size: A4 landscape; margin: 0; }
	body * { visibility: hidden !important; }
	.m3bu .bu-cert, .m3bu .bu-cert * { visibility: visible !important; }
	.m3bu .bu-cert { position: fixed; left: 0; top: 0; width: 297mm !important; height: 210mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.m3bu .bu-grass, .m3bu .bu-sky, .m3bu .bu-nav, .m3bu .bu-top, .m3bu .bu-noprint { display: none !important; }
	html, body { height: auto !important; margin: 0 !important; background: #fff !important; }
	#m3bu-app { padding: 0 !important; }
	.m3bu .bu-main, .m3bu .bu-cert-wrap { padding: 0 !important; margin: 0 !important; }
}
@media (max-width: 720px) {
	.m3bu .bu-hx { width: 28px; height: 31px; font-size: .68rem; }
	.m3bu .bu-play-test .bu-hx { width: 22px; height: 25px; font-size: .58rem; }
	.m3bu .bu-hexbar { gap: 3px; }
	.m3bu .bu-play-top .bu-pill:not(.bu-run) { display: none; }
	.m3bu .bu-q { font-size: 1.02rem; }
}
