/* Probiotics lesson. All rules scoped under .pbt-* */
.pbt-one { display: flex; justify-content: center; }

/* the capsule */
.pbt-cap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pbt-cap img { width: 230px; max-height: 24vh; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(123,92,253,.35)); }
.pbt-n { font: 800 30px var(--mono); color: var(--text); letter-spacing: -.02em; }
.pbt-roll { color: var(--gold); }
.pbt-capsm img { width: 200px; }
.pbt-art { position: relative; display: flex; justify-content: center; }
.pbt-art img { transition: opacity .35s .15s; }
.pbt-shut .pbt-art img { opacity: 0; }
.pbt-pill { position: absolute; left: 50%; top: 50%; width: 132px; height: 52px; margin: -26px 0 0 -66px; display: flex; transform: rotate(-30deg); transition: opacity .35s; }
.pbt-pill i { flex: 1; transition: transform .45s cubic-bezier(.2,.8,.2,1); box-shadow: inset 0 -6px 10px rgba(0,0,0,.18), inset 0 6px 8px rgba(255,255,255,.35); }
.pbt-pill i:first-child { background: #5b7cf0; border-radius: 26px 0 0 26px; }
.pbt-pill i:last-child { background: #f1e7d6; border-radius: 0 26px 26px 0; }
.pbt-open .pbt-pill { opacity: 0; }
.pbt-open .pbt-pill i:first-child { transform: translateX(-40px); }
.pbt-open .pbt-pill i:last-child { transform: translateX(40px); }
.pbt-open img { animation: pbtPop .5s cubic-bezier(.2,.8,.2,1); }
@keyframes pbtPop { 40% { transform: scale(1.12) rotate(-4deg); } }

/* Metchnikoff */
.pbt-photo { position: relative; display: flex; justify-content: center; }
.pbt-photo img { width: 220px; max-height: 34vh; object-fit: cover; border-radius: 14px; transition: filter .5s; }
.pbt-stamp { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%) rotate(-8deg) scale(1.6); padding: 6px 14px; border: 3px solid var(--red); border-radius: 10px; color: var(--red); font: 800 17px var(--mono); white-space: nowrap; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
.pbt-later img { filter: grayscale(1) brightness(.6); }
.pbt-later .pbt-stamp { opacity: 1; transform: translateX(-50%) rotate(-8deg) scale(1); }

/* the gut */
.pbt-day { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 4px; }
.pbt-gut { width: 100%; max-width: 340px; height: auto; display: block; overflow: hidden; }
.pbt-tube { fill: #3a2433; stroke: #8c5a72; stroke-width: 3; }
.pbt-r0 { fill: #6b7290; }
.pbt-r1 { fill: #557f76; }
.pbt-r2 { fill: #866b91; }
.pbt-v { fill: var(--gold); stroke: #fff6d6; stroke-width: 1.2; }
.pbt-io { fill: var(--faint); font: 700 15px var(--sans); }
.pbt-legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--dim); margin: 8px 0 12px; }
.pbt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pbt-legend i { display: inline-block; width: 14px; height: 7px; border-radius: 4px; }
.pbt-kr { background: #6b7290; }
.pbt-kv { background: var(--gold); }
.pbt-g { width: 100%; max-width: 340px; margin: 0 auto; }
.pbt-g .gt i { background: var(--gold); transition: none; }


/* 100 children */
.pbt-count { text-align: center; font-size: 15px; font-weight: 700; color: var(--dim); margin-bottom: 10px; }
.pbt-count b { font: 800 24px var(--mono); color: var(--text); }
.pbt-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: 100%; max-width: 280px; margin: 0 auto; }
.pbt-kid { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--raised); border: 1.5px solid var(--line-strong); transition: background .3s, border-color .3s; }
.pbt-sick { background: var(--red); border-color: var(--red-ink); }
.pbt-well { background: var(--mint); border-color: var(--mint-ink); }
.pbt-note { font-size: 12px; color: var(--faint); text-align: center; margin-top: 10px; }

.pbt-shelf { width: 100%; }

@media (max-height: 700px) {
  .pbt-cap img { width: 180px; }
  .pbt-photo img { width: 180px; max-height: 30vh; }
  .pbt-gut { max-width: 300px; }
  .pbt-grid { max-width: 230px; gap: 5px; }
}
