/* Autophagy lesson. All rules scoped under .aph-* */
.aph-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.aph-note { font-size: 12.5px; color: var(--faint); text-align: center; }
.aph-hero img { width: 260px; max-width: 100%; max-height: 34vh; object-fit: contain; display: block; filter: drop-shadow(0 16px 28px rgba(123,92,253,.3)); }
.aph-hero.sm img { width: 200px; max-height: 24vh; }

/* ---------- the cell ---------- */
.aph-game { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; }
.aph-game .gauge.aph-en { margin: 0 4px; }
.aph-cell { display: block; width: 100%; height: auto; overflow: visible; }
.aph-mem { fill: rgba(123,92,253,.07); stroke: rgba(169,155,255,.55); stroke-width: 2.5; transition: fill .5s; }
.aph-game.starve .aph-mem { fill: rgba(123,92,253,.03); stroke: rgba(169,155,255,.3); stroke-dasharray: 6 5; }
.aph-nuc circle { fill: rgba(169,155,255,.18); stroke: var(--violet-bright); stroke-width: 1.5; }
.aph-nuc path { fill: none; stroke: rgba(169,155,255,.6); stroke-width: 1.5; }
.aph-lab { fill: var(--dim); font: 600 12px var(--sans); text-anchor: middle; }
.aph-lyb { fill: rgba(63,214,154,.16); stroke: var(--mint); stroke-width: 2; }
.aph-enz { fill: rgba(63,214,154,.7); }
.aph-lyso.eat { animation: aphEat .45s ease-out; }
@keyframes aphEat { 40% { transform: scale(1.15); } }
.aph-clump circle { fill: #8E7F6A; stroke: #C2A77E; stroke-width: 1.2; }
.aph-mito rect { fill: rgba(123,92,253,.5); stroke: #A99BFF; stroke-width: 1.5; }
.aph-mito path { fill: none; stroke: #D8D0FF; stroke-width: 1.4; }
.aph-mito.worn rect { fill: rgba(142,127,106,.55); stroke: #C2A77E; }
.aph-mito.worn path { stroke: #C2A77E; }
.aph-mito .crack { stroke: #FF8A6A; stroke-width: 2; }
.aph-t { cursor: pointer; }
.aph-t.spare.lit .aph-mito rect { stroke: var(--gold); stroke-width: 2.5; }
.aph-hit { fill: transparent; }
.aph-t.shake .aph-in { animation: aphShake .3s; }
@keyframes aphShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.aph-wall circle { fill: none; stroke: var(--gold); stroke-width: 2; }
.aph-wall circle:first-child { fill: rgba(252,192,80,.08); }
.aph-bit { fill: var(--mint); }
.aph-fd { fill: var(--gold); }

/* ---------- birth ---------- */
.aph-bars { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 6px; }
.aph-bt { font-size: 12.5px; color: var(--dim); text-align: center; }
.aph-br { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.aph-br i { height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.aph-br b { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 5px; transition: width .7s ease-out; }
.aph-br em { font-style: normal; font-size: 12.5px; color: var(--dim); font-weight: 600; }
