/* Beta Endorphins lesson. All rules scoped under .bep-* */
.bep-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bep-note { color: var(--faint); font-size: 12px; text-align: center; max-width: 300px; }
.bep-hero { padding: 14px 0 18px; }
.bep-hero img { display: block; width: 230px; max-width: 64vw; max-height: 36vh; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(123, 92, 253, .3)); }

/* ---------- the poppy ---------- */
.bep-photo { position: relative; margin: 0; }
.bep-photo img { display: block; width: 280px; max-width: 76vw; max-height: 44vh; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: bepZoom 6s ease-out both; }
@keyframes bepZoom { from { transform: scale(1.12); } to { transform: none; } }
.bep-glint { position: absolute; left: 51%; top: 71%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(#fff, rgba(255, 255, 255, 0) 70%); animation: bepGlint 2.4s ease-in-out 1s 3; opacity: 0; }
@keyframes bepGlint { 40% { opacity: 1; transform: scale(1.8); } }
@media (max-height: 700px) { .bep-photo img { max-height: 38vh; } }

/* ---------- the lock ---------- */
.bep-lock { display: block; width: 100%; max-width: 340px; height: auto; overflow: visible; }
@media (max-height: 700px) { .bep-lock { max-width: 300px; } }
.bep-t { fill: var(--dim); font: 700 14px var(--sans); }
.bep-t.r { text-anchor: end; } .bep-t.c { text-anchor: middle; }
.bep-t.st { fill: #FF8FA0; font-size: 15px; }
.bep-lock.eased .bep-t.st { fill: var(--mint); }
.bep-lock.jammed .bep-t.st { fill: var(--dim); }
.bep-nerve { fill: #3A2A44; stroke: #6E4F80; stroke-width: 2; }
.bep-pulse { fill: #FF6B7A; filter: drop-shadow(0 0 6px #FF6B7A); }
.bep-lock.eased .bep-pulse { fill: #8A7A9A; filter: none; }
.bep-shk { fill: none; stroke: #C9B8DA; stroke-width: 6; stroke-linecap: round; }
.bep-body { fill: #A99BFF; stroke: #E5DEFF; stroke-width: 2; }
.bep-hole { fill: #1A1430; }
.bep-kb { fill: #F4EEDC; stroke: #B9A77A; stroke-width: 1.5; }
.bep-hit { fill: transparent; cursor: pointer; }
.bep-pb { fill: #7A8BA6; stroke: #C9D4E6; stroke-width: 2; }
.bep-lock.keyed .bep-key .bep-kb { fill: var(--gold); }
.bep-lock.keyed .bep-t.mt { opacity: 0; }

/* ---------- the ward ---------- */
.bep-ward { display: flex; gap: 12px; justify-content: center; width: 100%; }
.bep-pt { display: grid; grid-template-columns: auto 18px; grid-template-rows: auto auto; gap: 4px 6px; align-items: end; transition: opacity .4s; }
.bep-pt img { width: 76px; height: auto; grid-row: 1; grid-column: 1; }
.bep-meter { grid-row: 1; grid-column: 2; width: 16px; height: 100px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line-strong); position: relative; overflow: hidden; }
.bep-meter i { position: absolute; left: 0; right: 0; bottom: 0; height: 80%; background: linear-gradient(0deg, #D85555, #FF8FA0); }
.bep-res { grid-row: 2; grid-column: 1; color: var(--gold); font: 800 13px var(--sans); text-align: center; min-height: 18px; }
.bep-pt.dim .bep-res { color: var(--dim); }
@media (max-height: 700px) { .bep-pt img { width: 64px; } .bep-meter { height: 84px; } }
