/* Bongabdo Learn — design system + game UI
   Bangla: Noto Serif Bengali · Latin & digits: Fraunces (soft) · symbols: Noto Sans Math subset */

@font-face {
  font-family: "BL Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+200E-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "BL Bangla";
  src: url("../fonts/nsb-bengali.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CF9, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "BL Math";
  src: url("../fonts/mathsym.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+221A, U+2260, U+2264, U+2265, U+2234, U+2235, U+221E, U+03C0, U+2208, U+2209, U+2115, U+2124, U+211A, U+211D, U+21D2, U+2192, U+2194, U+2236, U+2223, U+2282, U+2286, U+222A, U+2229, U+2205;
}

.bl-root, .bl-app {
  --ink: #1F1D45;
  --ink-2: #3A3870;
  --muted: #5B5980;
  --paper: #F4F6FB;
  --grid: #E1E6F2;
  --gridline: #E9ECF5;
  --road: #C5CADD;
  --card: #FFFFFF;
  --pink: #D6136F;  --pink-soft: #FCE4F0;
  --teal: #0B8582;  --teal-soft: #DDF3F2;
  --sun: #FFC527;   --sun-soft: #FFF4CC;
  --leaf: #178A4C;  --leaf-soft: #DFF3E6;
  --coral: #D63F27; --coral-soft: #FCE3DE;
  --violet: #6B46E5; --violet-soft: #ECE6FE;
  --line: 3px solid var(--ink);
  --r-tile: 14px;
  --r-card: 24px;
  --font: "BL Fraunces", "BL Bangla", "BL Math", "Noto Serif Bengali", "Noto Serif", serif;
  --soft: "SOFT" 100, "WONK" 0;
  --fun: "SOFT" 100, "WONK" 1;
}

/* ---------- page shell (template) ---------- */
html.bl-html, body.bl-body { margin: 0; padding: 0; background: #F4F6FB; }
body.bl-body { min-height: 100vh; }
.bl-app {
  font-family: var(--font);
  font-variation-settings: var(--soft);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--gridline) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridline) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
}
.bl-app *, .bl-app *::before, .bl-app *::after { box-sizing: border-box; }
.bl-app :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
.bl-app :where(button) { font: inherit; color: inherit; font-variation-settings: var(--soft); }
.bl-app a { color: inherit; }
.bl-app img, .bl-app svg { max-width: 100%; }
.bl-app :focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

/* Before JS runs (and for search engines): show content as a readable article */
.bl-app:not(.bl-ready) .bl-level { max-width: 680px; margin: 0 auto; padding: 24px 18px; }
.bl-app:not(.bl-ready) .bl-level > h2 { font-size: 26px; margin: 24px 0 12px; }
.bl-app:not(.bl-ready) .bl-card { background: var(--card); border: var(--line); border-radius: var(--r-card); padding: 20px; margin: 0 0 18px; }
.bl-app.bl-ready .bl-source, .bl-app.bl-ready > :not(.bl-view) { display: none !important; }

/* ---------- site bar ---------- */
.bl-sitebar {
  display: flex; align-items: center; gap: 14px;
  max-width: 980px; margin: 0 auto; padding: 14px 18px;
}
.bl-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: 0; }
.bl-logo svg { width: 38px; height: 38px; flex: none; }
.bl-logo + .bl-iconbtn { margin-left: auto; }
.bl-crumbs { margin-left: auto; font-size: 15px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bl-crumbs a { text-decoration: none; border-bottom: 2px solid var(--grid); }
.bl-crumbs a:hover { border-color: var(--pink); color: var(--ink); }
.bl-crumbs span[aria-hidden] { opacity: .5; }
@media (max-width: 520px) {
  .bl-crumbs:has(a) > *:not(a:last-of-type) { display: none; }
  .bl-crumbs a:last-of-type::before { content: "‹ "; }
  .bl-crumbs:not(:has(a)) > * { display: none; }
}

/* ---------- typography inside content ---------- */
.bl-app h1 { font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; }
.bl-app :is(h1, h2, h3, .bl-tile, .bl-btn, .bl-opt, .bl-pill, .bl-dot, .eq, .g-problem, .g-quot, .g-sqhead, .g-rview, .g-ans, .bl-keypad button, .g-mcard, .g-tfcard, .bl-stat b, .g-node, .g-chip) { font-variation-settings: var(--fun); }
.bl-app h2 { font-size: 25px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.bl-app h3 { font-size: 20px; font-weight: 800; line-height: 1.35; }
:where(.bl-app) p { margin: 0 0 12px; text-wrap: pretty; }
.bl-app p:last-child { margin-bottom: 0; }
.bl-app strong, .bl-app b { font-weight: 800; }
.bl-app .k { font-weight: 800; background: linear-gradient(transparent 62%, var(--sun-soft) 62%); padding: 0 2px; }
.bl-app .en { font-style: italic; font-weight: 500; color: var(--muted); }
.bl-app small, .bl-app .note { font-size: 15px; color: var(--muted); }

/* math bits */
.bl-app .num { font-weight: 600; white-space: nowrap; font-variant-numeric: lining-nums; }
.bl-app .fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-weight: 600; line-height: 1.05; margin: 0 .12em; font-size: .92em; }
.bl-app .fr > span:first-child { border-bottom: 2px solid currentColor; padding: 0 .18em .08em; }
.bl-app .fr > span:last-child { padding: .08em .18em 0; }
.bl-app .rt { display: inline-flex; align-items: stretch; white-space: nowrap; font-weight: 600; vertical-align: -0.12em; }
.bl-app .rt::before {
  content: ""; width: .62em; flex: none; background: currentColor; margin-right: -1px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 100' preserveAspectRatio='none'%3E%3Cpath d='M0 58 L14 51 L30 88 L56 2 L62 2 L62 7.5 L59.5 7.5 L33 97 L27 97 L12 61 L3 65 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 100' preserveAspectRatio='none'%3E%3Cpath d='M0 58 L14 51 L30 88 L56 2 L62 2 L62 7.5 L59.5 7.5 L33 97 L27 97 L12 61 L3 65 Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
.bl-app .rt > span { border-top: .09em solid currentColor; padding: .06em .12em 0 .08em; line-height: 1.12; }
.bl-app .dt { position: relative; display: inline-block; line-height: 1; }
.bl-app .dt::after { content: ""; position: absolute; left: 50%; top: -.16em; width: .19em; height: .19em; margin-left: -.095em; border-radius: 50%; background: currentColor; }
.bl-app .ov { text-decoration: overline; }
.bl-app .eq { display: block; text-align: center; font-size: 22px; font-weight: 700; margin: 10px 0 14px; line-height: 1.6; }
.bl-app .muted { color: var(--muted); }
.bl-app .bl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.bl-btn {
  appearance: none; cursor: pointer; border: var(--line); background: var(--pink); color: #fff;
  font-weight: 800; font-size: 19px; line-height: 1.2; padding: 14px 22px; border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink); transform: translateY(0); transition: transform .08s, box-shadow .08s, background .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; min-height: 54px;
}
.bl-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.bl-btn:disabled { background: #D9DCE8; color: #7C7A98; cursor: not-allowed; box-shadow: 0 5px 0 #A8ABC2; border-color: #A8ABC2; }
.bl-btn.alt { background: var(--card); color: var(--ink); }
.bl-btn.sun { background: var(--sun); color: var(--ink); }
.bl-btn.teal { background: var(--teal); }
.bl-btn.leaf { background: var(--leaf); }
.bl-btn.small { font-size: 16px; padding: 9px 14px; min-height: 42px; border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.bl-btn.wide { width: 100%; }
.bl-iconbtn {
  appearance: none; cursor: pointer; width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border: var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 4px 0 var(--ink); padding: 0;
}
.bl-iconbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.bl-iconbtn svg { width: 22px; height: 22px; }

/* ---------- chapter map ---------- */
.bl-map { max-width: 760px; margin: 0 auto; padding: 6px 18px 64px; }
.bl-hero { text-align: center; padding: 14px 0 0; }
.bl-hero .bl-chapno { display: inline-block; font-weight: 800; font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--sun); border-radius: 8px; padding: 2px 12px; }
.bl-hero h1 { font-size: clamp(40px, 9vw, 64px); margin: 14px 0 2px; }
.bl-hero .bl-en { font-size: clamp(22px, 4.4vw, 30px); font-weight: 800; font-style: normal; color: var(--ink-2); font-variation-settings: var(--fun); }
.bl-hook { margin: 30px auto 0; max-width: 520px; }
.bl-hook-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.bl-hook .bl-tile { font-size: 34px; height: 76px; padding: 0 20px; }
.bl-hook .bl-q { width: 56px; height: 56px; font-size: 32px; font-weight: 900; display: grid; place-items: center; border-radius: 50%; border: var(--line); background: var(--pink); color: #fff; box-shadow: 0 4px 0 var(--ink); }
.bl-hook p { margin: 18px auto 20px; max-width: 28em; font-size: 18px; }
.bl-herogo { margin-top: 26px; }
.bl-mapstats { display: flex; justify-content: center; gap: 10px; margin: 20px 0 0; flex-wrap: wrap; }
.bl-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 16px; border: var(--line); border-radius: 999px; padding: 4px 14px 4px 10px; background: var(--card); box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.bl-pill svg { width: 20px; height: 20px; }
.bl-pill.sun { background: var(--sun); }
.bl-mapstats .bl-pill { border-width: 2px; box-shadow: none; font-size: 15px; padding: 3px 12px 3px 9px; }

/* the road: dots in one straight column, text in one straight column */
.bl-path { list-style: none; margin: 44px auto 0; padding: 0; max-width: 560px; --dot: 54px; --gap: 24px; }
.bl-stop { position: relative; }
.bl-stop + .bl-stop { margin-top: var(--gap); }
.bl-stop:not(:last-child)::before {
  content: ""; position: absolute; left: calc(var(--dot) / 2 - 2px); top: calc(var(--dot) / 2); width: 4px; height: calc(100% + var(--gap));
  background: repeating-linear-gradient(to bottom, var(--road) 0 7px, transparent 7px 14px);
}
.bl-stop.done:not(:last-child)::before { background: var(--ink); }
.bl-node {
  position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 14px; width: 100%; margin: 0; padding: 0;
  background: none; border: 0; border-radius: 16px; text-align: left; color: var(--ink); cursor: pointer; text-decoration: none;
}
.bl-node .bl-dot {
  position: relative; flex: none; width: var(--dot); height: var(--dot); border-radius: 50%; border: var(--line); background: var(--card);
  display: grid; place-items: center; font-size: 23px; font-weight: 900; line-height: 1; box-shadow: 0 4px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
@media (hover: hover) { .bl-node:hover .bl-dot { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); } }
.bl-node:active .bl-dot { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.bl-node:focus-visible { outline-offset: 6px; }
.bl-stop.done .bl-dot { background: var(--sun); }
.bl-stop.current .bl-dot { background: var(--pink); color: #fff; box-shadow: 0 4px 0 var(--ink), 0 0 0 7px var(--pink-soft); }
.bl-stop.boss .bl-dot { border-radius: 16px; background: var(--violet); color: #fff; font-size: 26px; }
.bl-stop.boss.current .bl-dot { box-shadow: 0 4px 0 var(--ink), 0 0 0 7px var(--violet-soft); }
.bl-node .bl-nlabel { flex: 1; min-width: 0; min-height: var(--dot); display: flex; flex-direction: column; justify-content: center; }
.bl-node .bl-ntitle { font-size: 18px; font-weight: 800; line-height: 1.3; }
.bl-node .bl-nsub { font-size: 15px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.bl-node .bl-nstars { flex: none; align-self: center; display: flex; gap: 1px; }
.bl-node .bl-nstars svg { width: 17px; height: 17px; }
.bl-stop.soon .bl-node { cursor: default; }
.bl-stop.soon .bl-dot { background: #ECEEF5; box-shadow: none; border-color: #B9BCD0; color: #A3A6BE; }
.bl-stop.soon .bl-ntitle { color: #6E6C8E; }
.bl-stop.soon .bl-nsub { color: #9A98B6; }
.bl-maptools { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 48px 0 0; }
.bl-bookref { max-width: 30em; margin: 30px auto 0; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- index pages (home, class, subject) ---------- */
.bl-chlist { list-style: none; margin: 26px auto 0; padding: 0; display: grid; gap: 14px; max-width: 640px; }
.bl-chcard {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 4px 14px; text-decoration: none; color: var(--ink);
  background: var(--card); border: var(--line); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); padding: 12px 16px; transition: transform .08s, box-shadow .08s;
}
a.bl-chcard:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
a.bl-chcard:hover { background: var(--sun-soft); }
.bl-chcard .num { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; border: var(--line); display: grid; place-items: center; font-weight: 900; font-size: 24px; background: var(--sun); font-variation-settings: var(--fun); }
.bl-chcard .t { font-weight: 800; font-size: 19px; line-height: 1.35; }
.bl-chcard .s { font-size: 15px; color: var(--muted); line-height: 1.4; grid-column: 2; }
.bl-chcard .bl-chstars { grid-row: span 2; display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 15px; }
.bl-chcard .bl-chstars svg { width: 22px; height: 22px; }
.bl-chcard.soon { background: transparent; border: 2px dashed #B9BCD0; box-shadow: none; color: #6E6C8E; }
.bl-chcard.soon .num { background: #fff; border-color: #B9BCD0; color: #A3A6BE; }
.bl-chcard .pill-live { font-size: 13px; font-weight: 800; background: var(--leaf); color: #fff; border-radius: 999px; padding: 2px 10px; border: 2px solid var(--ink); }
.bl-intro { max-width: 560px; margin: 14px auto 0; text-align: center; color: var(--ink-2); }
.bl-classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; max-width: 720px; margin: 28px auto 0; padding: 0; list-style: none; }
.bl-classes .bl-chcard { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 18px 12px; }
.bl-classes .bl-chcard .num { grid-row: auto; width: auto; min-width: 64px; padding: 0 12px; }
.bl-classes .bl-chcard .s { grid-column: auto; }
.bl-soon { max-width: 640px; margin: 44px auto 0; }
.bl-app .bl-soon h2 { font-size: 18px; font-weight: 800; color: var(--ink-2); margin: 0 0 8px 4px; }
.bl-soonlist { list-style: none; margin: 0; padding: 0; }
@media (min-width: 620px) { .bl-soonlist { columns: 2; column-gap: 28px; } }
.bl-soonlist li { display: flex; align-items: center; gap: 12px; padding: 7px 4px; break-inside: avoid; color: var(--muted); font-size: 16px; line-height: 1.4; }
.bl-soonlist .num { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #C5CADD; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #8C8AAA; background: var(--paper); font-variation-settings: var(--fun); }

/* ---------- game shell ---------- */
.bl-play { min-height: 100vh; display: flex; flex-direction: column; }
.bl-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(244, 246, 251, .94); backdrop-filter: blur(6px); border-bottom: var(--line);
}
body.admin-bar .bl-topbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .bl-topbar { top: 46px; } }
.bl-progress { flex: 1; height: 20px; border: var(--line); border-radius: 999px; background: var(--card); overflow: hidden; position: relative; }
.bl-progress > i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--leaf); border-right: 3px solid var(--ink); transition: width .35s cubic-bezier(.3,1.4,.5,1); }
.bl-progress > i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 4px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.45); }
.bl-xp { position: relative; }
.bl-xp .bl-pill { background: var(--sun); }
.bl-xp .bl-plus { position: absolute; right: 6px; top: -4px; font-weight: 900; color: var(--leaf); pointer-events: none; animation: bl-float 1s ease-out forwards; }
.bl-stage { flex: 1; width: 100%; max-width: 660px; margin: 0 auto; padding: 22px 16px 150px; }
.bl-ltitle { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 14px; color: var(--muted); font-size: 15px; font-weight: 700; }
.bl-ltitle b { color: var(--ink); font-size: 17px; }

.bl-card {
  background: var(--card); border: var(--line); border-radius: var(--r-card); box-shadow: 0 6px 0 var(--ink);
  padding: 22px var(--cpx) 24px; --cpx: 20px;
}
.bl-card + .bl-card { margin-top: 18px; }
.bl-card.enter { animation: bl-in .38s cubic-bezier(.2,.9,.3,1.15) both; }
.bl-card > * + * { margin-top: 14px; }
.bl-card > h2 + * { margin-top: 6px; }
.bl-card ul.bl-list { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.bl-card ul.bl-list li { position: relative; padding-left: 28px; }
.bl-card ul.bl-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 12px; height: 12px; border: 2.5px solid var(--ink); border-radius: 4px; background: var(--sun); transform: rotate(45deg); }

.bl-bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.bl-bottombar .bl-inner { max-width: 660px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.bl-bottombar .bl-btn { flex: 1; }
.bl-bottombar .bl-hintmsg { font-size: 15px; color: var(--muted); text-align: center; margin: 0 0 8px; }

/* ---------- টিয়া (mascot) ---------- */
.bl-tia { display: flex; gap: 12px; align-items: flex-start; }
.bl-tia .bl-av { flex: none; width: 52px; height: 52px; }
.bl-tia .bl-bubble { position: relative; background: var(--sun-soft); border: 2.5px solid var(--ink); border-radius: 18px; padding: 10px 14px; font-size: 17px; line-height: 1.65; }
.bl-tia .bl-bubble::before { content: ""; position: absolute; left: -10px; top: 16px; width: 16px; height: 16px; background: var(--sun-soft); border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); }
.bl-tia .bl-bubble b { font-weight: 800; }

/* ---------- reveal ---------- */
.bl-reveal > .bl-btn { width: 100%; }
.bl-reveal-body { border: 2.5px dashed var(--ink); border-radius: 16px; padding: 14px 16px; background: #FBFCFF; animation: bl-pop .3s ease-out both; }

/* ---------- tiles ---------- */
.bl-tile {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 58px; height: 58px; padding: 0 14px; border: var(--line); border-radius: var(--r-tile); background: var(--card);
  box-shadow: 0 5px 0 var(--ink); font-weight: 800; font-size: 24px; line-height: 1; color: var(--ink);
  transition: transform .08s, box-shadow .08s, background .15s; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.bl-tile:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.bl-tile.sun { background: var(--sun); }
.bl-tile.pink { background: var(--pink); color: #fff; }
.bl-tile.teal { background: var(--teal); color: #fff; }
.bl-tile.sel { background: var(--sun); transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.bl-tile.ok { background: var(--leaf); color: #fff; }
.bl-tile.bad { background: var(--coral); color: #fff; animation: bl-shake .35s; }
.bl-tile.miss { background: var(--sun-soft); border-style: dashed; }
.bl-tile.big { height: 84px; min-width: 96px; font-size: 34px; border-radius: 20px; padding: 0 22px; box-shadow: 0 6px 0 var(--ink); }
.bl-tile .fr { font-size: .78em; }

/* ---------- generic game parts ---------- */
.bl-game { position: relative; }
.g-q { font-weight: 700; font-size: 19px; line-height: 1.55; margin-bottom: 12px; }
.g-q .num, .g-q .fr { font-weight: 800; }
.g-count { font-size: 14px; font-weight: 700; color: var(--muted); }
.bl-fb { margin-top: 14px; border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px 14px 12px 48px; position: relative; font-size: 17px; line-height: 1.6; animation: bl-pop .25s ease-out both; }
.bl-fb::before { position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 15px; line-height: 1; }
.bl-fb.ok { background: var(--leaf-soft); }
.bl-fb.ok::before { content: "✓"; background: var(--leaf); color: #fff; }
.bl-fb.bad { background: var(--coral-soft); }
.bl-fb.bad::before { content: "!"; background: var(--coral); color: #fff; }
.bl-fb.info { background: var(--teal-soft); }
.bl-fb.info::before { content: "i"; background: var(--teal); color: #fff; font-style: italic; }
.bl-fb .lead { font-weight: 800; margin-right: 4px; }

/* mcq */
.g-opts { display: grid; gap: 12px; }
.g-opts.cols { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.bl-opt {
  appearance: none; cursor: pointer; text-align: left; width: 100%; border: var(--line); border-radius: 16px; background: var(--card);
  padding: 13px 16px; min-height: 58px; font-size: 19px; font-weight: 700; line-height: 1.45; box-shadow: 0 5px 0 var(--ink);
  display: flex; align-items: center; gap: 12px; transition: transform .08s, box-shadow .08s, background .15s;
}
.g-opts.cols .bl-opt { justify-content: center; text-align: center; font-size: 22px; }
.bl-opt:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.bl-opt:disabled { cursor: default; }
.bl-opt.ok { background: var(--leaf); color: #fff; }
.bl-opt.bad { background: var(--coral-soft); color: var(--ink); text-decoration: line-through; text-decoration-thickness: 2px; animation: bl-shake .35s; opacity: .8; }
.bl-opt.reveal { background: var(--leaf-soft); border-style: dashed; }
.bl-opt .bl-key { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2.5px solid currentColor; display: grid; place-items: center; font-size: 15px; font-weight: 800; }

/* sort (deck) */
.g-sort .g-deck { display: grid; place-items: center; min-height: 120px; margin: 6px 0 16px; position: relative; }
.g-sort .g-deck .bl-tile { animation: bl-drop .35s cubic-bezier(.2,.9,.3,1.3) both; }
.g-sort .g-bins { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.g-bin {
  appearance: none; cursor: pointer; text-align: left; border: var(--line); border-radius: 18px; padding: 10px 12px 12px; min-height: 92px;
  background: var(--card); box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; gap: 8px; transition: transform .08s, box-shadow .08s;
}
.g-bin:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.g-bin .g-bintitle { font-weight: 800; font-size: 18px; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.g-bin .g-bintitle i { width: 14px; height: 14px; border-radius: 4px; border: 2.5px solid var(--ink); flex: none; }
.g-bin .g-binsub { font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: -4px; }
.g-bin .g-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.g-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 9px; border: 2px solid var(--ink); border-radius: 9px; font-weight: 700; font-size: 16px; background: var(--paper); animation: bl-pop .3s ease-out both; }
.g-chip.late { border-style: dashed; }
.g-bin.flash-ok { animation: bl-glow .5s; }
.g-bin.flash-bad { animation: bl-shake .35s; }

/* pick */
.g-pick .g-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 6px 0 14px; }
.g-pick .g-actions { display: flex; justify-content: center; }
.g-pick .bl-tile.sel { transform: translateY(-3px); }
.g-pick .bl-tile .why { display: none; }

/* order */
.g-order .g-slots { display: grid; gap: 10px; margin-bottom: 14px; counter-reset: st; }
.g-order .g-slot { border: 2.5px dashed #A8ABC2; border-radius: 14px; min-height: 50px; padding: 10px 12px 10px 48px; position: relative; color: #9A98B6; font-size: 16px; }
.g-order .g-slot::before { counter-increment: st; content: counter(st, bengali); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 8px; border: 2.5px solid currentColor; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.g-order .g-slot.filled { border: 2.5px solid var(--ink); background: var(--leaf-soft); color: var(--ink); animation: bl-pop .25s ease-out both; }
.g-order .g-pool { display: grid; gap: 10px; }
.g-order .g-pool .bl-opt { font-size: 17px; }

/* match */
.g-match .g-mprompt { margin: 6px 0 14px; }
.g-match .g-mcard { border: var(--line); border-radius: 18px; background: var(--sun-soft); padding: 14px 16px; text-align: center; font-weight: 800; font-size: 21px; line-height: 1.5; box-shadow: 0 5px 0 var(--ink); animation: bl-drop .3s cubic-bezier(.2,.9,.3,1.3) both; }
.g-match .g-opts .bl-opt { font-size: 18px; }

/* poll */
.g-poll .bl-opt.chosen { background: var(--violet); color: #fff; }

/* keypad + answer box */
.g-ansrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g-ans {
  min-width: 140px; min-height: 58px; flex: 1; border: var(--line); border-radius: 14px; background: var(--paper);
  display: flex; align-items: center; padding: 6px 14px; font-size: 26px; font-weight: 800; letter-spacing: .02em; position: relative;
}
.g-ans.active { background: #fff; box-shadow: 0 0 0 4px var(--sun); }
.g-ans .ph { color: #A8ABC2; font-weight: 600; font-size: 17px; letter-spacing: 0; }
.g-ans .caret { display: inline-block; width: 3px; height: 30px; background: var(--pink); margin-left: 2px; animation: bl-blink 1s steps(1) infinite; }
.g-ans.ok { background: var(--leaf-soft); border-color: var(--leaf); }
.g-ans.bad { animation: bl-shake .35s; background: var(--coral-soft); }
.bl-keypad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; max-width: 420px; }
.bl-keypad button {
  appearance: none; cursor: pointer; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--card); min-height: 50px;
  font-size: 22px; font-weight: 800; box-shadow: 0 4px 0 var(--ink); touch-action: manipulation; padding: 0;
}
.bl-keypad button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.bl-keypad button.fn { background: var(--paper); font-size: 17px; }
.bl-keypad button.go { background: var(--pink); color: #fff; font-size: 18px; }
.bl-keypad button.span2 { grid-column: span 2; } .bl-keypad button.span3 { grid-column: span 3; } .bl-keypad button.span4 { grid-column: span 4; }
.bl-keypad button.del { background: var(--coral-soft); }
.bl-kbhelp { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* steps */
.g-steps .g-step { border: 2.5px solid #C9CCDD; border-radius: 16px; padding: 12px 14px; background: #FBFCFF; }
.g-steps .g-step + .g-step { margin-top: 10px; }
.g-steps .g-step.active { border-color: var(--ink); background: var(--card); box-shadow: 0 4px 0 var(--ink); }
.g-steps .g-step.done { border-color: var(--leaf); background: var(--leaf-soft); }
.g-steps .g-step .g-sp { font-weight: 700; margin-bottom: 8px; }
.g-steps .g-step.done .g-sp { margin-bottom: 4px; }
.g-steps .g-step .g-sa { font-size: 22px; font-weight: 800; }
.g-steps .g-step .g-after { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.g-steps .g-hint { margin-top: 8px; font-size: 16px; background: var(--sun-soft); border: 2px dashed var(--ink); border-radius: 12px; padding: 8px 12px; }
.g-steps .g-problem { text-align: center; font-size: 30px; font-weight: 800; margin: 2px 0 14px; }
.g-steps .g-more { margin-top: 14px; display: flex; justify-content: center; }

/* tree */
.g-tree ul { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.g-tree > ul { padding-left: 0; }
.g-tree li { position: relative; padding: 5px 0 5px 18px; }
.g-tree > ul > li { padding-left: 0; }
.g-tree ul ul li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2.5px solid var(--ink); }
.g-tree ul ul li:last-child::before { bottom: auto; height: 27px; }
.g-tree ul ul li::after { content: ""; position: absolute; left: 0; top: 27px; width: 14px; border-top: 2.5px solid var(--ink); }
.g-node {
  appearance: none; cursor: pointer; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--card);
  padding: 4px 12px; font-size: 17px; font-weight: 800; box-shadow: 0 3px 0 var(--ink); line-height: 1.5; text-align: left;
}
.g-node:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.g-node.root { background: var(--ink); color: #fff; font-size: 19px; }
.g-node.rat { background: var(--teal-soft); }
.g-node.irr { background: var(--pink-soft); }
.g-node.seen { outline: 3px solid var(--sun); outline-offset: 1px; }
.g-node.on { background: var(--sun); }
.g-node.ok { background: var(--leaf); color: #fff; }
.g-node.bad { background: var(--coral); color: #fff; animation: bl-shake .35s; }
.g-tree .g-info { margin-top: 12px; }
.g-tree .g-place { position: sticky; top: 78px; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px calc(-1 * var(--cpx)) 14px; padding: 10px var(--cpx) 14px; background: var(--card); border-bottom: 2.5px dashed #C9CCDD; }
body.admin-bar .g-tree .g-place { top: 110px; }
.g-tree .g-place .bl-tile.big { height: 70px; font-size: 30px; }
.g-tree .g-twin { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* flip grid */
.g-flip .g-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.g-flipcard { appearance: none; cursor: pointer; perspective: 600px; border: 0; background: none; padding: 0; height: 96px; }
.g-flipcard .in { position: relative; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.3,1.3,.5,1); transform-style: preserve-3d; }
.g-flipcard.on .in { transform: rotateY(180deg); }
.g-flipcard .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: var(--line); border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 24px; box-shadow: 0 5px 0 var(--ink); background: var(--card); padding: 6px; text-align: center; line-height: 1.25; }
.g-flipcard .back { transform: rotateY(180deg); background: var(--teal-soft); font-size: 22px; }
.g-flipcard .back small { display: block; font-size: 13px; color: var(--ink-2); font-weight: 700; }

/* flashcards (memory cards) */
.g-cards .g-cardview { perspective: 900px; }
.g-cards .g-fc { appearance: none; border: 0; padding: 0; background: none; width: 100%; height: 260px; cursor: pointer; display: block; }
.g-cards .g-fc .in { position: relative; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.3,1.25,.5,1); transform-style: preserve-3d; }
.g-cards .g-fc.on .in { transform: rotateY(180deg); }
.g-cards .g-fc .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: var(--line); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); background: var(--sun); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 20px; text-align: center; font-size: 22px; font-weight: 800; line-height: 1.45; }
.g-cards .g-fc .back { transform: rotateY(180deg); background: var(--card); font-size: 18px; font-weight: 600; text-align: left; align-items: flex-start; justify-content: center; }
.g-cards .g-fc .face small { font-size: 14px; color: var(--ink-2); margin-top: 10px; font-weight: 700; }
.g-cards .g-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }

/* rapid fire */
.g-tf .g-tfcard { border: var(--line); border-radius: 20px; padding: 22px 18px; min-height: 140px; display: grid; place-items: center; text-align: center; font-size: 22px; font-weight: 800; line-height: 1.5; background: var(--paper); animation: bl-drop .3s cubic-bezier(.2,.9,.3,1.3) both; }
.g-tf .g-tfbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.g-tf .g-tfbtns .bl-btn { font-size: 20px; }
.g-tf .g-meta { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.g-tf .g-timer { height: 10px; border: 2.5px solid var(--ink); border-radius: 99px; overflow: hidden; margin-bottom: 12px; background: #fff; }
.g-tf .g-timer i { display: block; height: 100%; background: var(--pink); transform-origin: left; }
.g-tf .g-review { display: grid; gap: 8px; margin-top: 12px; }
.g-tf .g-review div { border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-size: 16px; background: var(--coral-soft); }

/* division machine */
.g-div .g-divhead { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.g-div .g-divhead .bl-tile { height: 56px; font-size: 26px; }
.g-div .g-quot { text-align: center; font-size: 34px; font-weight: 800; margin: 10px 0 6px; min-height: 52px; word-break: break-all; line-height: 1.4; }
.g-div .g-quot .new { color: var(--pink); animation: bl-pop .3s ease-out both; display: inline-block; }
.g-div .g-quot .lp { background: var(--sun); border-radius: 6px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.g-div .g-rems { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 4px; align-items: center; }
.g-div .g-rems .lab { font-size: 15px; font-weight: 700; color: var(--muted); width: 100%; text-align: center; }
.g-div .g-rem { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 8px; border: 2.5px solid var(--ink); border-radius: 50%; font-weight: 800; font-size: 18px; background: var(--card); animation: bl-pop .25s ease-out both; }
.g-div .g-rem.hit { background: var(--sun); transform: scale(1.12); }
.g-div .g-rem.zero { background: var(--leaf); color: #fff; }
.g-div .g-work { font-size: 17px; text-align: center; min-height: 30px; color: var(--ink-2); }
.g-div .g-ctrl { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.g-div .g-presets { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.g-div .g-presets .bl-tile { height: 48px; min-width: 64px; font-size: 18px; box-shadow: 0 4px 0 var(--ink); }

/* number line */
.g-line svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-line .g-cands { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }


/* ---------- shared widget bits ---------- */
.g-row { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 10px 0; flex-wrap: wrap; }
.g-stepper { display: inline-flex; align-items: center; gap: 10px; border: 2.5px solid var(--ink); border-radius: 16px; padding: 6px 8px 6px 14px; background: var(--paper); }
.g-stepper .g-slabel { font-weight: 700; font-size: 16px; }
.g-stepper .bl-iconbtn { width: 40px; height: 40px; font-size: 24px; font-weight: 900; line-height: 1; }
.g-stepper b { min-width: 34px; text-align: center; font-size: 24px; }

/* number line */
.g-linefig { margin: 4px -4px 6px; }

/* magic */
.g-chain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 8px; }
.g-chain .op { font-weight: 800; font-size: 22px; }
.g-chain .bl-tile { height: 50px; min-width: 50px; font-size: 22px; }

/* p²/q tester */
.g-ptcalc { display: grid; gap: 4px; justify-items: center; font-size: 20px; margin: 10px 0; }

/* dots */
.g-dotboard { margin: 10px 0 4px; }
.g-dotrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.g-dotrow .g-intpart { font-weight: 800; font-size: 28px; padding: 0 2px; }
.g-dotrow .g-dig { min-width: 40px; width: 40px; height: 50px; padding: 0; font-size: 24px; box-shadow: 0 4px 0 var(--ink); }
.g-dotrow .g-dig.sel { background: var(--pink); color: #fff; }
.g-dotrow .g-dig.ok { position: relative; }
.g-dotrow .g-dig.ok::after { content: ""; position: absolute; top: -10px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--ink); }

/* tail cut */
.g-tailbox { border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); padding: 12px 14px; margin: 6px 0 14px; overflow-x: auto; }
.g-trow { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; font-size: clamp(17px, 4.6vw, 22px); padding: 2px 0; white-space: nowrap; }
.g-trow .g-tl { min-width: 4.6em; }
.g-trow .g-tl { text-align: right; font-weight: 800; color: var(--ink-2); }
.g-trow .g-tn { font-variant-numeric: tabular-nums; }
.g-trow .g-tdec { color: var(--pink); font-weight: 700; }
.g-trow.sub { border-bottom: 2.5px solid var(--ink); padding-bottom: 6px; }
.g-tailbox.cut .g-tdec { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--ink); opacity: .55; transition: opacity .4s; }
.g-trow.res { color: var(--leaf); font-weight: 800; padding-top: 6px; animation: bl-pop .3s ease-out both; }

/* expand (similar) */
.g-explist { display: grid; gap: 8px; margin-top: 12px; }
.g-expline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 2px solid #C9CCDD; border-radius: 14px; padding: 8px 12px; background: #FBFCFF; font-size: 21px; }
.g-expline .g-arrow { font-weight: 800; color: var(--muted); }
.g-expline .g-new { font-weight: 800; color: var(--teal); }
.g-expline .g-bad { font-size: 15px; color: var(--ink-2); font-weight: 700; }
.g-row.wrap { flex-wrap: wrap; }

/* square root */
.g-sqhead { text-align: center; font-size: 30px; font-weight: 800; margin: 4px 0 10px; }
.g-sqhead .g-sqroot { color: var(--pink); }
.g-sqwork { display: grid; gap: 4px; margin: 0 auto 12px; width: max-content; max-width: 100%; overflow-x: auto; }
.g-sqrow { display: grid; grid-template-columns: auto auto auto; gap: 14px; align-items: baseline; font-size: 18px; font-variant-numeric: tabular-nums; animation: bl-pop .25s ease-out both; }
.g-sqrow .g-div { font-weight: 800; color: var(--teal); text-align: right; }
.g-sqrow .g-c { font-weight: 700; }
.g-sqrow .g-s { color: var(--muted); }
.bl-keypad.digits { grid-template-columns: repeat(5, 1fr); max-width: none; }

/* rounding */
.g-rview { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 2px; font-size: 32px; font-weight: 800; margin: 14px 0 6px; }
.g-rd { padding: 2px 3px; border-radius: 8px; }
.g-rd.keep { background: var(--teal-soft); }
.g-rd.next { background: var(--sun); box-shadow: inset 0 0 0 2.5px var(--ink); }
.g-rd.rest { color: #A8ABC2; }
.g-cut { display: inline-block; width: 0; height: 44px; border-left: 3px dashed var(--pink); margin: 0 3px; align-self: center; }
.g-rout { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 10px; }
.g-rbox { border: var(--line); border-radius: 16px; padding: 10px 14px; background: var(--card); box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; gap: 2px; }
.g-rbox.alt { background: var(--sun-soft); }
.g-rbox b.num { font-size: 28px; }
.g-rbox small { font-size: 14px; color: var(--ink-2); }

/* aligned sums */
.g-align { display: grid; justify-content: center; gap: 2px; margin: 6px 0; font-size: 24px; }
.g-arow { display: grid; grid-template-columns: 22px auto; text-align: right; }
.g-arow:last-child { border-bottom: 2.5px solid var(--ink); padding-bottom: 4px; }

/* results */
.bl-result { text-align: center; padding: 30px 18px 24px; }
.bl-result h2 { font-size: 34px; margin: 6px 0 4px; }
.bl-result .bl-bigstars { display: flex; justify-content: center; gap: 8px; margin: 10px 0 16px; }
.bl-result .bl-bigstars svg { width: 64px; height: 64px; }
.bl-result .bl-bigstars svg.on { animation: bl-starin .5s cubic-bezier(.2,1.4,.4,1) both; }
.bl-result .bl-bigstars svg:nth-child(2) { transform: translateY(-12px); }
.bl-result .bl-bigstars svg:nth-child(2).on { animation-delay: .25s; }
.bl-result .bl-bigstars svg:nth-child(3).on { animation-delay: .5s; }
.bl-result .bl-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 20px; }
.bl-result .bl-stat { border-radius: 16px; padding: 8px 16px; background: var(--paper); min-width: 118px; }
.bl-result .bl-stat b { display: block; font-size: 28px; line-height: 1.2; }
.bl-result .bl-stat span { font-size: 14px; color: var(--muted); font-weight: 700; }
.bl-result .bl-actions { display: grid; gap: 14px; max-width: 360px; margin: 0 auto; }
.bl-result .bl-quiet { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.bl-app .bl-nextlv { flex-direction: column; gap: 2px; }
.bl-app .bl-nextlv small { font-size: 15px; font-weight: 600; color: inherit; opacity: .9; line-height: 1.35; }

/* toast (combo etc.) */
.bl-toast { position: fixed; left: 50%; top: 84px; z-index: 50; transform: translateX(-50%); background: var(--violet); color: #fff; border: var(--line); border-radius: 999px; padding: 6px 18px; font-weight: 800; font-size: 18px; box-shadow: 0 4px 0 var(--ink); animation: bl-toast 1.6s ease-out forwards; pointer-events: none; white-space: nowrap; }

/* bursts */
.bl-burst { position: fixed; pointer-events: none; z-index: 60; width: 0; height: 0; }
.bl-burst i { position: absolute; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 3px; animation: bl-burst .7s ease-out forwards; }

/* animations */
@keyframes bl-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes bl-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes bl-drop { from { opacity: 0; transform: translateY(-24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bl-shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes bl-glow { 0% { box-shadow: 0 5px 0 var(--ink), 0 0 0 0 rgba(23,138,76,.6); } 100% { box-shadow: 0 5px 0 var(--ink), 0 0 0 14px rgba(23,138,76,0); } }
@keyframes bl-float { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-28px); } }
@keyframes bl-blink { 50% { opacity: 0; } }
@keyframes bl-toast { 0% { opacity: 0; transform: translate(-50%, -10px) scale(.9); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 20% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -12px); } }
@keyframes bl-starin { from { opacity: 0; transform: scale(.2) rotate(-40deg); } to { opacity: 1; } }
@keyframes bl-burst { from { opacity: 1; transform: translate(0,0) rotate(0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } }

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

@media (min-width: 720px) {
  .bl-app { font-size: 19px; }
  .bl-card { padding: 28px var(--cpx) 30px; --cpx: 30px; }
  .bl-stage { padding-top: 30px; }
  .bl-app h2 { font-size: 28px; }
}
@media (max-width: 380px) {
  .bl-app { font-size: 17px; }
  .bl-tile { min-width: 52px; height: 54px; font-size: 22px; padding: 0 11px; }
  .bl-keypad button { min-height: 46px; font-size: 20px; }
  .bl-path { --dot: 48px; --gap: 22px; }
  .bl-node .bl-dot { font-size: 21px; }
  .bl-node { gap: 12px; }
}
