/* Nutrition lesson. All rules scoped under .ntr-* */
.ntr-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ntr-hero { margin: 0; display: flex; justify-content: center; }
.ntr-hero img { display: block; height: 220px; width: auto; max-width: 100%; filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)); }
.ntr-hero.small img { height: 110px; }

/* 0. the voyage */
.ntr-deck { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 16px 12px;
  background: radial-gradient(120% 70% at 50% 100%, rgba(46,96,140,.45), transparent 70%); }
.ntr-count { display: flex; flex-direction: column; align-items: center; }
.ntr-count b { font: 800 46px/1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.ntr-count span { margin-top: 4px; font: 700 14px var(--sans); color: var(--dim); }
.ntr-crew { display: grid; grid-template-columns: repeat(8, minmax(0, 36px)); gap: 6px 4px; justify-content: center; }
.ntr-crew img { width: 100%; height: auto; transition: opacity .5s, filter .5s; }
.ntr-crew img.gone { opacity: .12; filter: grayscale(1); }

/* 2. the plan */
.ntr-twelve { display: grid; grid-template-columns: repeat(6, minmax(0, 46px)); gap: 4px 6px; justify-content: center; }
.ntr-twelve img { width: 100%; height: auto; filter: saturate(.55); }
.ntr-shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 340px; }
.ntr-shelf span { padding: 5px 10px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line-strong); font: 700 13px var(--sans); color: var(--text); }

/* 3. the sick bay */
.ntr-day { font: 700 15px var(--sans); color: var(--dim); }
.ntr-day b { font: 800 22px var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.ntr-bay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 360px; }
.ntr-bunk { --well: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 8px 4px 7px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(120,84,50,.28), rgba(80,56,34,.22)); border: 1.5px solid var(--line-strong); color: var(--text); font: inherit; cursor: pointer; }
.ntr-bunk.locked { pointer-events: none; }
.ntr-bunk.ntr-bet { border-color: var(--violet-bright); box-shadow: 0 0 0 2px rgba(123,92,253,.35); }
.ntr-pair { display: flex; justify-content: center; gap: 2px; }
.ntr-pair img { width: 50px; height: 50px; object-fit: contain; filter: grayscale(calc(.75 - .75 * var(--well))) brightness(calc(.8 + .2 * var(--well))); transition: transform .4s; }
.ntr-bunk.ntr-up { position: relative; z-index: 2; border-color: var(--gold); background: rgba(252,192,80,.18); animation: ntrStand .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes ntrStand { from { transform: scale(1); } to { transform: scale(1.22) translateY(-6px); } }
.ntr-bunk.ntr-up .ntr-pair img { animation: ntrUp .6s ease-out both; }
@keyframes ntrUp { from { transform: translateY(10px) rotate(-8deg); } }
.ntr-rx { font: 700 12.5px/1.15 var(--sans); text-align: center; color: var(--text); }

/* 5. who makes its own */
.ntr-who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 360px; }
.ntr-col { padding: 8px 6px 6px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line-strong); animation: ntrIn .45s ease-out both; }
.ntr-col.no { animation-delay: .35s; border-color: rgba(252,192,80,.5); }
.ntr-col h4 { margin: 0 0 6px; text-align: center; font: 800 13.5px var(--sans); color: var(--dim); }
.ntr-col.no h4 { color: var(--gold); }
.ntr-col > div { display: flex; justify-content: space-around; }
.ntr-ani { margin: 0; display: flex; flex-direction: column; align-items: center; }
.ntr-ani img { height: 96px; width: auto; max-width: 76px; object-fit: contain; }
.ntr-ani figcaption { margin-top: 4px; font: 700 13px var(--sans); color: var(--text); }
@keyframes ntrIn { from { opacity: 0; translate: 0 8px; } }

/* 6. the goat */
.ntr-tag { padding: 5px 12px; border-radius: 999px; background: rgba(252,192,80,.14); border: 1px solid rgba(252,192,80,.5); font: 700 13px var(--sans); color: var(--gold); }
.ntr-pickrow { display: flex; gap: 12px; justify-content: center; width: 100%; }
.ntr-pick { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px;
  background: var(--raised); border: 2px solid var(--line-strong); color: var(--text); font: 700 15px var(--sans); cursor: pointer; }
.ntr-pick img { height: 130px; width: auto; max-width: 100%; object-fit: contain; }
.ntr-pick.locked { pointer-events: none; }
.ntr-pick.right { border-color: var(--mint); background: rgba(63,214,154,.14); }
.ntr-pick.wrong { border-color: var(--red); background: rgba(216,85,85,.14); }

/* 7. the list */
.ntr-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 340px; }
.ntr-list span { padding: 7px 12px; border-radius: 12px; background: rgba(123,92,253,.14); border: 1px solid rgba(123,92,253,.5); font: 700 14px var(--sans); color: var(--text); animation: ntrIn .4s ease-out both; }

/* 8. lemon and lime */
.ntr-fruit { margin: 0; width: 100%; max-width: 320px; }
.ntr-fruit img { display: block; width: 100%; }
.ntr-fruit figcaption { display: flex; justify-content: space-around; font: 800 15px var(--sans); color: var(--text); }
.ntr-fruit.ntr-lime figcaption span:last-child { color: var(--gold); }

@media (max-height: 700px) {
  .ntr-hero img { height: 170px; }
  .ntr-hero.small img { height: 90px; }
  .ntr-crew { grid-template-columns: repeat(8, minmax(0, 30px)); }
  .ntr-pair img { width: 42px; height: 42px; }
  .ntr-pick img { height: 104px; }
  .ntr-ani img { height: 78px; }
  .ntr-fruit { max-width: 260px; }
}

/* 6. the goat, as a scene above the options */
.ntr-ani2 { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line-strong); }
.ntr-ani2 img { height: 120px; width: auto; }
.ntr-ani2 figcaption { font: 700 14px var(--sans); color: var(--text); }
.ntr-pickrow.done .gt { border-color: var(--mint); }
.ntr-pickrow.done .sl { border-color: var(--gold); }
@media (max-height: 700px) { .ntr-ani2 img { height: 92px; } }
