/* Oxytocin lesson. All rules scoped under .ox-* */

/* The scene is the screen: scenes fill the width and take the height the
   copy and controls leave. */
.ox-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ox-sc > svg { display: block; width: 100%; height: auto; max-height: 44vh; overflow: visible; }

/* the shared vocabulary: signal (cyan), oxytocin (gold), receptor (violet) */
.ox-mol { fill: var(--gold); transition: opacity .35s; }
.ox-mol.gone { opacity: 0; }
.ox-spark { fill: #7FE9F5; }
.ox-nerve { fill: none; stroke: #63E0F0; stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; opacity: .55; transition: opacity .6s; }

.ox-blood { fill: none; stroke: #D2566E; stroke-width: 7; stroke-linecap: round; opacity: .35; transition: opacity .6s; }
.ox-nerve.off, .ox-blood.off { opacity: .1; }
.ox-rec { fill: var(--bg); stroke: var(--violet-bright); stroke-width: 2.4; transform-box: fill-box; transform-origin: center; }
.ox-rec.on { fill: var(--gold); stroke: var(--gold); animation: oxDock .5s ease-out; filter: drop-shadow(0 0 5px rgba(252, 192, 80, .9)); }
@keyframes oxDock { 40% { transform: scale(1.7); } }
.ox-brainimg { transition: filter .3s; }
.ox-brainimg.on { filter: drop-shadow(0 0 12px rgba(252, 192, 80, .95)); }
.ox-lbl { font: 600 14px var(--sans); fill: var(--dim); text-anchor: middle; }
.ox-lbl.l { text-anchor: start; } .ox-lbl.r { text-anchor: end; }
.ox-note { font-size: 12px; color: var(--faint); }

/* the steps under a loop */
.ox-steps { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 3px; max-width: 100%; }
.ox-step { white-space: nowrap; padding: 5px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--faint); transition: background .2s, color .2s, border-color .2s; }
.ox-step.done { color: var(--text); }
.ox-step.on { background: var(--gold); border-color: var(--gold); color: #2A1B00; }
.ox-step.skip { text-decoration: line-through; color: var(--faint); opacity: .6; }
.ox-arrow { font-style: normal; font-size: 13px; color: var(--faint); }

/* 0. the name */
.ox-hero { width: min(58%, 230px); }
.ox-hero img { width: 100%; display: block; }

.ox-greek { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ox-greek div { display: flex; flex-direction: column; align-items: center; min-width: 108px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ox-greek b { font: 800 26px var(--serif); color: var(--gold); line-height: 1.1; }
.ox-greek span { font-size: 13px; color: var(--dim); }
.ox-greek em { font-style: italic; color: var(--text); }
.ox-greek small { margin-top: 2px; font-size: 16px; font-weight: 800; color: var(--text); }
.ox-greek > i { font-style: normal; font-size: 22px; color: var(--faint); }
.ox-caption { font: 700 15px var(--sans); color: var(--dim); }

/* 1. birth */
.ox-wall { fill: #2A1830; stroke-width: 15; stroke-linejoin: round; transition: stroke-width .25s, filter .25s; }
.ox-womb.on .ox-wall { stroke-width: 19; filter: drop-shadow(0 0 8px rgba(238, 127, 151, .8)); }
.ox-fibre { fill: none; stroke: #FFD9E2; stroke-width: 1.2; opacity: .16; }
.ox-hair, .ox-limb { fill: none; stroke: #6B4636; stroke-width: 3; stroke-linecap: round; opacity: .5; }
.ox-limb { stroke: #C98A6E; stroke-width: 7; opacity: 1; }
.ox-cervix { fill: none; stroke: #EE7F97; stroke-width: 3; opacity: .8; }
.ox-stretch { fill: #7FE9F5; opacity: .35; transform-box: fill-box; transform-origin: center; transition: transform .25s, opacity .25s; }
.ox-stretch.on { opacity: 1; transform: scale(var(--k, 1.6)); filter: drop-shadow(0 0 6px #7FE9F5); }
.ox-stretch.off { opacity: .1; }
.ox-chart line { stroke: var(--line-strong); stroke-width: 1.5; }
.ox-bar { fill: var(--gold); }
.ox-born-done .ox-openlbl { opacity: 0; }
.ox-born { font: 800 22px var(--serif); fill: var(--gold); text-anchor: middle; animation: oxIn .5s both; }
@keyframes oxIn { from { opacity: 0; transform: translateY(6px); } }

/* 3. where it lands */
.ox-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.ox-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); text-align: center; }
.ox-tile.on { border-color: var(--gold); }
.ox-tile b { font: 800 16px var(--sans); color: var(--text); } .ox-tile span { font-size: 14px; color: var(--dim); }
.ox-tpic { display: flex; align-items: center; justify-content: center; min-height: 76px; }
.ox-ico { width: 72px; height: 72px; overflow: visible; }

.ox-icon-womb { fill: #2A1830; stroke: #EE7F97; stroke-width: 5; }
.ox-icon-sac { fill: #F4EBDD; stroke: var(--violet); stroke-width: 5; }
.ox-rdot { fill: var(--bg); stroke: var(--violet-bright); stroke-width: 2.4; }

.ox-cells2 .ox-cellA, .ox-cells2 .ox-cellB { fill: #2A2346; stroke: var(--violet); stroke-width: 2; transition: fill .3s; }
.ox-socket { fill: none; stroke: var(--violet-bright); stroke-width: 4; stroke-linecap: round; transition: stroke .2s; }
.ox-socket.on { stroke: var(--gold); filter: drop-shadow(0 0 4px rgba(252, 192, 80, .9)); }
.ox-in { fill: var(--text); }
.ox-res { opacity: 0; transition: opacity .4s; font-weight: 800; }
.ox-lit1 .ox-res1 { opacity: 1; fill: var(--gold); } .ox-lit2 .ox-res2 { opacity: 1; fill: var(--dim); }
.ox-lit1 .ox-cellA { fill: #4A3470; animation: oxPop .5s ease-out; transform-box: fill-box; transform-origin: center; }

/* 5. a sniff of trust */
.ox-spray { width: min(34%, 130px); }
.ox-game { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.ox-game > img { width: min(56%, 205px); display: block; }
.ox-rules { margin: 0; padding: 10px 14px 10px 32px; width: 100%; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--text); }
.ox-rules li::marker { color: var(--gold); font-weight: 800; }
.ox-piles { display: flex; justify-content: center; gap: 40px; }
.ox-piles > div { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; }
.ox-piles b { font: 800 20px var(--sans); color: var(--text); }
.ox-piles .ox-gold b { color: var(--gold); }
.ox-piles small { font-size: 13px; font-weight: 700; color: var(--dim); }
.ox-stack { display: flex; flex-direction: column-reverse; align-items: center; min-height: 8px; }
.ox-stack i { display: block; width: 34px; height: 6px; margin-top: -2px; border-radius: 50%; background: #8B8375; border: 1px solid #5E584F; }
.ox-gold .ox-stack i, .ox-them i { background: var(--gold); border-color: var(--gold-deep); }
.ox-tripled { animation: oxPop .5s ease-out; }
.ox-stack.ox-three { flex-direction: row; align-items: flex-end; gap: 4px; }
.ox-three > div { display: flex; flex-direction: column-reverse; }
@keyframes oxPop { 40% { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(252, 192, 80, .9)); } }

.ox-result { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ox-rtitle { font: 800 16px var(--sans); color: var(--text); }
.ox-hbar { display: grid; grid-template-columns: 1fr auto; row-gap: 5px; }
.ox-hbar span { font-size: 14px; font-weight: 600; color: var(--dim); }
.ox-hbar em { font-style: normal; font: 800 16px var(--sans); color: var(--text); text-align: right; }
.ox-hbar i { grid-column: 1 / -1; display: block; height: 16px; border-radius: 8px; background: var(--raised); overflow: hidden; }
.ox-hbar b { display: block; height: 100%; border-radius: 8px; background: #8B8375; animation: oxGrow .8s ease-out both; transform-origin: left; }
.ox-goldbar b { background: var(--gold); } .ox-goldbar em, .ox-goldbar span { color: var(--gold); }
@keyframes oxGrow { from { transform: scaleX(0); } }
.ox-study2 { display: grid; gap: 8px; } .ox-study2 > b { font-size: 14px; color: var(--text); }

@media (max-height: 700px) {
  .ox-sc { gap: 6px; }
  .ox-sc > svg { max-height: 33vh; }
  .ox-step { padding: 4px 6px; font-size: 12px; }
  .ox-arrow { font-size: 12px; }
  .ox-tile { padding: 10px 6px; }
  .ox-ico { width: 56px; height: 56px; }
  .ox-tpic { min-height: 58px; }
  .ox-lbl { font-size: 16px; }
  .ox-hero { width: min(44%, 170px); }
  .ox-game { gap: 6px; }
  .ox-game > img { width: min(48%, 170px); }
  .ox-rules { font-size: 13px; line-height: 1.35; padding: 6px 10px 6px 26px; }
  .ox-piles b { font-size: 17px; }
  .ox-stack i { height: 5px; }
  .ox-result { padding: 12px; gap: 8px; }
  .ox-hbar i { height: 12px; }
}
