/* 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, .ox-ear { fill: none; stroke: #63E0F0; stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; opacity: .55; transition: opacity .6s; }
.ox-ear { opacity: 0; }
.ox-ear.on { opacity: .55; }
.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); }
.ox-center { text-align: center; }

/* 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-hero-big { width: min(80%, 300px); }
.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); } }

/* 2. milk */
.ox-duct { fill: none; stroke: #E9D8BE; stroke-width: 10; stroke-linecap: round; opacity: .35; }
.ox-sacwall { fill: none; stroke: #F4B9C6; stroke-width: 2; opacity: .5; }
.ox-cell { fill: none; stroke: var(--violet); stroke-width: 9; stroke-linecap: round; transition: stroke .2s, stroke-width .2s; }
.ox-cells.on .ox-cell { stroke: var(--violet-bright); stroke-width: 12; }
.ox-drop { fill: #FFF8EC; }
.ox-mouth circle { fill: #EE7F97; opacity: .6; transform-box: fill-box; transform-origin: center; transition: transform .2s, opacity .2s; }
.ox-mouth.on circle { transform: scale(1.5); opacity: 1; }
.ox-crying { opacity: 0; transition: opacity .3s; }
.ox-crying.on { opacity: 1; }
.ox-crying path { fill: none; stroke: #7FE9F5; stroke-width: 2.5; stroke-linecap: round; }
.ox-cry { font: 800 16px var(--sans); fill: #7FE9F5; }

/* 3. where it lands */
.ox-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.ox-duo.three { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.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-icons { display: flex; gap: 6px; } .ox-icons .ox-ico { width: 52px; height: 52px; }
.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-tvole { width: 76px; height: auto; }
.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; }
.ox-brainbox { position: relative; width: min(70%, 280px); }
.ox-brainbox img { width: 100%; display: block; }
.ox-brainov { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; }
.ox-brec { opacity: 0; transition: opacity .5s; stroke-width: 1.4; }
.ox-recs-on .ox-brec { opacity: 1; }
.ox-source { fill: var(--gold); opacity: .5; }
.ox-src-on .ox-source { opacity: 1; filter: drop-shadow(0 0 3px rgba(252, 192, 80, .9)); }
.ox-stalk { fill: none; stroke: #D2566E; stroke-width: 2.5; stroke-linecap: round; opacity: .5; }
.ox-bloodcap { color: #E88A9C; font-size: 14px; }
.ox-define { width: 100%; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--dim); }
.ox-define b { color: var(--text); }

/* 4. voles */
.ox-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.ox-pc, .ox-mapc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.ox-pc img { height: 120px; width: auto; }
.ox-pc b, .ox-mapc b { font-size: 16px; } .ox-pc span, .ox-mapc span { font-size: 14px; color: var(--dim); }
.ox-meadow img { filter: grayscale(.6) brightness(.85); }
.ox-cellbody { fill: #2A2346; stroke: var(--violet); stroke-width: 2; }
.ox-cup { fill: var(--bg); stroke: var(--violet-bright); stroke-width: 3; transition: fill .2s, stroke .2s; }
.ox-cup.on { fill: var(--gold); stroke: var(--gold); }
.ox-divide { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.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(--text); }
.ox-lit1 .ox-cellbody { fill: #3B2C5E; }
.ox-map { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.ox-mapimg { position: relative; width: 120px; }
.ox-mapimg img { width: 100%; display: block; opacity: .6; }
.ox-dots { position: absolute; left: 42%; top: 6%; width: 50%; height: 48%; }
.ox-dots i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(252, 192, 80, .9); animation: oxIn .4s both; }
.ox-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ox-chip { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: rgba(63, 214, 154, .14); color: var(--mint); }
.ox-chip.bad { background: rgba(216, 85, 85, .16); color: #FF9C9C; }
.ox-box { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; height: 150px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; }
.ox-room { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 10px; }
.ox-room + .ox-room { border-left: 1px dashed var(--line-strong); }
.ox-rn { position: absolute; top: 8px; font-size: 13px; font-weight: 700; color: var(--dim); }
.ox-male { width: 68px; height: auto; }
.ox-room:first-child .ox-male { margin-right: 34px; } .ox-room:last-child .ox-male { margin-left: 34px; }
.ox-flip { transform: scaleX(-1); }
.ox-stranger { filter: saturate(.5) brightness(.9); }
.ox-her { position: absolute; bottom: 12px; left: 50%; width: 60px; margin-left: -30px; transition: left .9s cubic-bezier(.45, 0, .3, 1); }
.ox-her img { width: 100%; display: block; filter: hue-rotate(-12deg) saturate(1.2) brightness(1.1); }
.ox-her.ox-flip { transform: none; } .ox-her.ox-flip img { transform: scaleX(-1); }
.ox-her i { position: absolute; left: 50%; bottom: -6px; width: 40px; height: 8px; margin-left: -20px; border-radius: 50%; background: var(--gold); opacity: .6; filter: blur(2px); }
.ox-her em { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font: 800 12px var(--sans); font-style: normal; color: var(--gold); }
.ox-her.ox-flip em { transform: translateX(-50%); }
.ox-her.ox-snug img { animation: oxSnug .6s ease-in-out 2; }
@keyframes oxSnug { 50% { transform: translateY(-3px) rotate(-3deg); } }
.ox-partner.ox-glow { filter: drop-shadow(0 0 10px rgba(252, 192, 80, .95)); }
.ox-her.ox-glow img { filter: hue-rotate(-12deg) saturate(1.2) brightness(1.1) drop-shadow(0 0 10px rgba(252, 192, 80, .95)); }
.ox-tbars { display: grid; gap: 8px; width: 100%; }
.ox-tbars span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ox-tbars i { display: block; height: 10px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.ox-tbars b { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--violet-bright); }
.ox-tbars .ox-lvl { background: var(--gold); }

/* 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(86%, 320px); 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-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ox-amounts .btn { font-size: 22px; }
.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); }
.ox-held { position: relative; width: min(62%, 240px); }
.ox-held img { width: 100%; display: block; }
.ox-heldsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ox-rise { fill: none; stroke: none; }
.ox-halo { fill: var(--gold); opacity: .15; filter: blur(14px); transition: opacity .2s; }

@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-icons .ox-ico { width: 40px; height: 40px; }
  .ox-tpic { min-height: 58px; }
  .ox-tvole { width: 58px; }
  .ox-brainbox { width: min(56%, 210px); }
  .ox-lbl { font-size: 16px; }
  .ox-hero { width: min(44%, 170px); }
  .ox-hero-big { width: min(60%, 220px); }
  .ox-pc img { height: 90px; }
  .ox-box { height: 124px; }
  .ox-male { width: 56px; } .ox-her { width: 50px; margin-left: -25px; }
  .ox-held { width: min(46%, 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; }
  .ox-mapimg { width: 96px; }
}
