/* Capsaicin lesson. Everything scoped under .cap-*. */
.cap-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cap-note { font-size: 12.5px; color: var(--faint); text-align: center; }
.cap-hero img { width: 280px; max-width: 100%; max-height: 32vh; object-fit: contain; display: block; filter: drop-shadow(0 16px 28px rgba(123,92,253,.3)); }
.cap-hero.sm img { width: 180px; max-height: 20vh; }
.cap-read { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cap-read span { font-size: 12.5px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.cap-read b { font: 700 26px var(--mono); color: var(--text); }
.cap-read em { font-style: normal; font-size: 13px; color: var(--mint); font-weight: 700; }

/* the cut chili */
.figure.cap-fig { width: min(100%, 340px); }

/* the desert test */
.cap-field { width: 100%; max-width: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cap-an { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-height: 210px; transition: border-color .3s; }
.cap-an img { width: 100%; max-width: 130px; height: 96px; object-fit: contain; transition: transform .4s; }
.cap-an b { font-size: 13.5px; font-weight: 800; color: var(--text); text-align: center; }
.cap-an.eat img { animation: capNom .5s ease-in-out 2; }
@keyframes capNom { 50% { transform: translateY(6px) rotate(-4deg); } }
.cap-an.no img { transform: rotate(8deg) translateX(8px); opacity: .75; }
.cap-st { font-size: 13px; line-height: 1.3; color: var(--dim); text-align: center; min-height: 34px; }
.cap-st.bad b { color: #FF8A8A; } .cap-st.good b { color: var(--mint); }
.cap-seeds { display: flex; gap: 5px; min-height: 14px; }
.cap-seeds i { width: 9px; height: 12px; border-radius: 50%; background: #f1e3bf; opacity: 0; animation: capIn .3s forwards; }
.cap-seeds i.dead { background: #6e6258; transform: scale(.7) rotate(40deg); border-radius: 3px; }
.cap-seeds i.live { background: #f1e3bf; box-shadow: 0 -6px 0 -2px var(--mint); }
@keyframes capIn { to { opacity: 1; } }
.cap-field.hot .cap-an { border-color: rgba(216,85,85,.5); }

/* the tongue */
.cap-mouth { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; }
.cap-tongue { display: block; width: 100%; height: auto; overflow: visible; }
.cap-pap circle { fill: #5a1a2c; }
.cap-lb { fill: var(--dim); font: 700 13px var(--sans); text-anchor: middle; }
.cap-lb.sm { font-weight: 600; fill: var(--faint); }
.cap-mi { transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.cap-mi path { fill: none; stroke: #FF7A4D; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.cap-mi circle { fill: var(--gold); }
.cap-mi.gone { opacity: 0; }
.cap-d { opacity: 0; animation: capFall 1.1s ease-in forwards; }
.cap-d.water { fill: rgba(111,211,255,.75); }
.cap-d.milk circle { fill: #f4f1ea; }
.cap-d.milk .cap-cas { fill: #d9c9a3; }
@keyframes capFall { 0% { opacity: 0; transform: translateY(-20px); } 15% { opacity: 1; } 70% { opacity: 1; transform: translateY(36px); } 100% { opacity: 0; transform: translateY(48px); } }
.cap-burn { margin: 0 6px; }

/* a month of sauce */
.cap-days { width: 100%; max-width: 320px; height: 170px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.cap-day { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.cap-day i { width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: linear-gradient(#FCC050, #D85555); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.cap-day span { font-size: 13px; font-weight: 700; color: var(--dim); }

/* the patch */
.cap-skin { display: block; width: 100%; max-width: 340px; height: auto; overflow: visible; }
.cap-derm { fill: rgba(216,101,127,.18); }
.cap-nv { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; transition: stroke .6s, opacity .6s; }
.cap-patch { fill: #efe6d6; stroke: var(--gold-deep); stroke-width: 1.5; }
.cap-skin.fire .cap-nv { stroke: var(--red); animation: capFlash .3s 3; }
@keyframes capFlash { 50% { opacity: .4; } }
.cap-skin.quiet .cap-nv { stroke: var(--faint); opacity: .5; }

@media (prefers-reduced-motion: reduce) {
  .cap-an.eat img, .cap-skin.fire .cap-nv { animation: none; }
  .cap-d { animation-duration: .01s; }
}
@media (max-height: 700px) {
  .cap-an { min-height: 0; padding: 8px 6px; }
  .cap-an img { height: 72px; }
  .cap-days { height: 130px; }
  .cap-mouth { max-width: 300px; }
}
