/* Blood sugar levels lesson. All rules scoped under .bsl-* */
.bsl-sc { width: 100%; display: flex; justify-content: center; }

/* 0. one teaspoon into the jug */
.bsl-pour { position: relative; width: 230px; height: 268px; margin: 0 auto; }
.bsl-spn { position: absolute; top: -6px; left: 96px; width: 116px; transform-origin: 70% 30%; transition: transform .7s cubic-bezier(.3,.7,.2,1); filter: drop-shadow(0 8px 14px rgba(123,92,253,.3)); }
.bsl-tip .bsl-spn { transform: rotate(-24deg) translate(-14px, 6px); }
.bsl-grain { position: absolute; left: 50%; top: 92px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgba(255,255,255,.8); pointer-events: none; opacity: 0; }
.bsl-jug { position: absolute; left: 22px; right: 22px; bottom: 0; height: 150px; border-radius: 16px 16px 34px 34px; overflow: hidden;
  background: linear-gradient(180deg, #7d1f30, #4a0f1b); border: 2px solid rgba(255,255,255,.14); box-shadow: inset 0 -18px 30px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.35);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.bsl-jug span { position: relative; font: 700 13.5px/1.25 var(--sans); color: rgba(255,255,255,.9); text-align: center; }
.bsl-gold { position: absolute; left: 50%; top: 12px; width: 70px; height: 70px; margin-left: -35px; border-radius: 50%; background: radial-gradient(circle, rgba(252,192,80,.75), rgba(252,192,80,0) 70%); opacity: 0; transition: opacity .6s; }
.bsl-lit .bsl-gold { opacity: 1; }

/* the board: meal and brain left, tube in the middle, muscle and liver right */
.bsl-bd { position: relative; width: min(100%, 340px); height: 250px; }
.bsl-org { position: absolute; width: 90px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.bsl-org img, .bsl-food { width: 70px; height: 70px; object-fit: contain; transition: filter .3s, transform .3s, opacity .3s; }
.bsl-org > span { font: 700 12px/1.2 var(--sans); color: var(--dim); white-space: nowrap; }
.bsl-meal { left: 0; top: 14px; }
.bsl-brain { left: 0; bottom: 6px; }
.bsl-mus { right: 0; top: 14px; }
.bsl-liv { right: 0; bottom: 6px; }
.bsl-food { display: flex; align-items: center; justify-content: center; }
.bsl-food > img { width: 70px; height: 70px; object-fit: contain; }
.bsl-chew > img { transform: scale(.6); opacity: .2; }
.bsl-open img { filter: drop-shadow(0 0 10px rgba(252,192,80,.9)) brightness(1.12); transform: scale(1.06); }
.bsl-spoons { display: grid; grid-template-columns: repeat(3, 22px); gap: 2px; animation: bslIn .4s ease-out both; }
.bsl-spoons img { width: 22px; height: 26px; object-fit: contain; transition: opacity .4s; }
.bsl-spoons img.bsl-gone { opacity: .12; }
@keyframes bslIn { from { opacity: 0; transform: scale(.7); } }

.bsl-cap { position: absolute; left: 90px; right: 90px; top: 0; text-align: center; font: 700 12px/1.2 var(--sans); color: var(--dim); }
.bsl-tube { position: absolute; left: calc(50% - 40px); top: 20px; width: 42px; height: 184px; border-radius: 10px 10px 21px 21px; overflow: hidden;
  background: linear-gradient(180deg, #5a1422, #3b0c16); border: 2px solid rgba(255,255,255,.16); }
.bsl-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 33%; background: linear-gradient(180deg, #ffd88a, var(--gold)); box-shadow: 0 0 12px rgba(252,192,80,.6); }
/* 0.78 to 1.55 teaspoons on a 3-teaspoon tube */
.bsl-band { position: absolute; left: 0; right: 0; bottom: 26%; height: 25.7%; border-top: 2px dashed var(--mint); border-bottom: 2px dashed var(--mint); background: rgba(63,214,154,.1); }
.bsl-marks { position: absolute; left: calc(50% + 6px); top: 20px; height: 184px; width: 64px; }
.bsl-marks span { position: absolute; left: 0; font: 700 12px/1 var(--sans); color: var(--faint); white-space: nowrap; transition: color .2s; }
.bsl-mh { bottom: 72%; }
.bsl-mn { bottom: 36%; }
.bsl-ml { bottom: 9%; }
.bsl-marks .bsl-on { color: var(--text); }
.bsl-bd[data-zone="n"] .bsl-mn { color: var(--mint); }
.bsl-read { position: absolute; left: 90px; right: 90px; top: 210px; text-align: center; font: 700 12px var(--sans); color: var(--dim); white-space: nowrap; }
.bsl-read b { font: 800 20px var(--sans); font-variant-numeric: tabular-nums; color: var(--gold); margin-right: 2px; }
.bsl-dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(252,192,80,.9); pointer-events: none; }

/* the hormone buttons */
.btn.bsl-hb { display: flex; align-items: center; justify-content: center; gap: 8px; }
.bsl-bi { width: 34px; height: 30px; object-fit: contain; }

@media (max-height: 700px) {
  .bsl-pour { height: 240px; }
  .bsl-jug { height: 132px; }
}
