/* Assay lesson. All rules scoped under .asy-* */

.asy-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.asy-note { font-size: 13px; color: var(--dim); text-align: center; }
.asy-hero { width: min(86%, 330px); }
.asy-hero img { width: 100%; display: block; }

/* the plate */
.asy-plate { width: 100%; max-width: 380px; height: auto; display: block; }
.asy-pl { fill: rgba(200, 214, 240, .08); stroke: rgba(200, 214, 240, .35); stroke-width: 2; }
.asy-pw { fill: rgba(220, 232, 255, .06); stroke: rgba(200, 214, 240, .4); stroke-width: 1.2; }

/* wells */
.asy-strip { display: flex; justify-content: center; gap: 14px; width: 100%; padding-top: 6px; }
.asy-well { position: relative; flex: 0 0 auto; width: 70px; height: 70px; border-radius: 50%; background: rgba(220, 232, 255, .06); border: 2.5px solid rgba(200, 214, 240, .45); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .45); margin-bottom: 44px; transition: border-color .2s, box-shadow .2s, transform .15s; }
.asy-well:active { transform: scale(.96); }
.asy-liq { position: absolute; inset: 5px; border-radius: 50%; opacity: 0; background: rgb(242, 206, 84); }
.asy-drop { position: absolute; left: 50%; top: -34px; width: 12px; height: 16px; margin-left: -6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: rgb(242, 206, 84); opacity: 0; }
.asy-well.dosed .asy-drop { animation: asyDrop .4s ease-in both; }
.asy-well.dosed.still .asy-drop { animation: none; }
@keyframes asyDrop { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; transform: translateY(58px) scale(.8); } 100% { opacity: 0; transform: translateY(62px) scale(.4); } }
.asy-score { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font: 800 17px var(--mono); color: var(--text); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.asy-well.scored .asy-score { opacity: 1; }
.asy-well small { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); width: 96px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--dim); }
.asy-well.scored small { top: calc(100% + 30px); }
.asy-strip .asy-well:has(small) { margin-bottom: 66px; }
.asy-strip .asy-well.scored:has(small) { margin-bottom: 70px; }
.asy-strip:has(small) { gap: 30px; }
.asy-well.asy-ghost { border-style: dashed; opacity: .5; }
.asy-strip:not(.asy-ask) .asy-well.dosed { pointer-events: none; }
.asy-strip.asy-ask .asy-well { border-color: var(--violet-bright); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .45), 0 0 0 3px rgba(123, 92, 253, .25); }
.asy-well.right { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(63, 214, 154, .35); }
.asy-well.wrong { border-color: var(--red); box-shadow: 0 0 0 4px rgba(216, 85, 85, .35); }

/* the ruler */
.asy-ruler { width: 100%; max-width: 320px; padding: 26px 8px 0; opacity: 0; transition: opacity .3s; }
.asy-ruler.on { opacity: 1; }
.asy-track { position: relative; height: 14px; border-radius: 999px; background: var(--raised); }
.asy-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; border-radius: 999px; background: var(--violet-bright); transition: left .8s cubic-bezier(.2, .8, .2, 1), width .8s cubic-bezier(.2, .8, .2, 1), background .3s; }
.asy-zero { position: absolute; top: 0; bottom: 0; left: 0; width: 16.667%; border-radius: 999px 0 0 999px; background: repeating-linear-gradient(135deg, rgba(242, 206, 84, .55) 0 4px, transparent 4px 8px); opacity: 0; transition: opacity .4s; }
.asy-ruler.shift .asy-zero { opacity: 1; }
.asy-ruler.shift .asy-fill { left: 16.667%; width: 33.333%; background: var(--mint); border-radius: 0 999px 999px 0; }
.asy-mark { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-style: normal; font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; }
.asy-mark::after { content: 'half of 120?'; }
.asy-ruler.shift .asy-mark::after { content: '40 of 100 steps'; color: var(--mint); }
.asy-ticks { position: relative; height: 18px; margin-top: 4px; }
.asy-ticks span { position: absolute; transform: translateX(-50%); font: 700 12px var(--mono); color: var(--dim); }
.asy-t0 { left: 0; } .asy-t20 { left: 16.667%; } .asy-t60 { left: 50%; } .asy-t120 { left: 100%; }
.asy-ruler .asy-t20 { opacity: 0; transition: opacity .3s; }
.asy-ruler.shift .asy-t20 { opacity: 1; color: var(--gold); }

/* the pregnancy test */
.asy-test { width: 100%; max-width: 360px; height: auto; display: block; }
.asy-case { fill: #EEF0F4; stroke: #C8CDD8; stroke-width: 2; }
.asy-well2 { fill: #D7DBE4; stroke: #B5BBC8; stroke-width: 1.5; }
.asy-win { fill: #FBFBFD; stroke: #B5BBC8; stroke-width: 1.5; }
.asy-line { fill: #C94C7C; opacity: 0; }
.asy-lab { font: 800 16px var(--sans); fill: var(--text); text-anchor: middle; }
.asy-sub { font: 700 12px var(--sans); fill: var(--dim); text-anchor: middle; }
.asy-void { opacity: 0; transition: opacity .3s; }
.asy-void rect { fill: rgba(216, 85, 85, .18); stroke: var(--red); stroke-width: 2; }
.asy-void text { font: 800 15px var(--sans); fill: #F08A8A; text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.asy-test.void .asy-void { opacity: 1; }

/* the parts */
.asy-parts { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.asy-part { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 3px; }
.asy-part b { font: 700 18px var(--serif); color: var(--gold); }
.asy-part span { font-size: 14px; color: var(--dim); }

@media (max-height: 700px) {
  .asy-hero { width: min(70%, 240px); }
  .asy-well { width: 62px; height: 62px; }
  .asy-plate { max-width: 300px; }
  .asy-part { padding: 10px 14px; }
}
