/* Cheetos lesson. All rules scoped under .chz-* */
.chz-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chz-t { font: 700 13px var(--sans); fill: var(--dim); }

/* the machine */
.chz-mc { width: 100%; max-width: 360px; height: auto; display: block; overflow: visible; touch-action: none; cursor: grab; }
.chz-hop { fill: #3A3350; stroke: #5B5375; stroke-width: 2; }
.chz-meal { fill: #F0D27A; }
.chz-neck { fill: #3A3350; }
.chz-fall circle { fill: #F0D27A; animation: chzFall .6s ease-in 3 both; }
.chz-fall circle:nth-child(2n) { animation-delay: .2s; }
@keyframes chzFall { from { transform: translateY(-8px); opacity: 1; } to { transform: translateY(24px); opacity: 0; } }
.chz-heat { fill: rgba(255, 120, 40, .28); animation: chzGlow 1.4s ease-in-out 4 alternate; }
@keyframes chzGlow { to { fill: rgba(255, 120, 40, .45); } }
.chz-bar { fill: #2C2640; stroke: #6A6288; stroke-width: 3; }
.chz-dough { fill: #EED79A; }
.chz-die { fill: #8A82A6; }
.chz-hole { fill: #0A0E1A; }
.chz-wisps path { fill: none; stroke: rgba(234, 227, 215, .6); stroke-width: 4; stroke-linecap: round; opacity: 0; }
.chz-puffing .chz-wisps path { animation: chzWisp 1.2s ease-out 2 both; }
.chz-puffing .chz-wisps path:nth-child(2) { animation-delay: .25s; }
.chz-puffing .chz-wisps path:nth-child(3) { animation-delay: .5s; }
@keyframes chzWisp { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
.chz-out { transform: scale(0); transform-box: fill-box; transform-origin: left center; }

/* a Cheeto */
.chz-lp { fill: #FF8A1E; transition: fill .6s; }
.chz-sh { fill: #C2560A; transition: fill .6s; }
.chz-dust circle { fill: #FFD27A; transition: opacity .6s .3s; }
.chz-raw .chz-lp { fill: #F2DEA8; }
.chz-raw .chz-sh { fill: #C9B27A; }
.chz-raw .chz-dust circle { opacity: 0; }

/* up close at the hole */
.chz-zoom { width: 100%; max-width: 340px; height: auto; display: block; overflow: visible; }
.chz-wall { fill: #6A6288; }
.chz-zdough { fill: #EED79A; }
.chz-arrows path { fill: none; stroke: var(--violet-bright); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chz-drops circle { fill: #3E9BEA; transition: transform .8s cubic-bezier(.3,1.4,.5,1), opacity .8s; transform-box: fill-box; transform-origin: center; }
.chz-in { font-size: 15px; }
.chz-kd { fill: #3E9BEA; }
.chz-sq { fill: var(--violet-bright); font-size: 15px; }
.chz-air { font-size: 15px; }
.chz-blob { transform: scale(0); transform-box: fill-box; transform-origin: left center; transition: transform 1s cubic-bezier(.2,1.3,.4,1) .2s; }
.chz-bb { fill: rgba(255, 255, 255, .9); stroke: #C9B27A; stroke-width: 1.5; }
.chz-air { opacity: 0; transition: opacity .4s 1s; }
.chz-burst .chz-blob { transform: scale(1); }
.chz-burst .chz-air { opacity: 1; }
.chz-burst .chz-drops circle { transform: scale(1.8); opacity: .3; }

/* the photo */
.chz-fig { margin: 0; width: 100%; max-width: 360px; }
.chz-fig img { width: 100%; height: auto; max-height: 220px; object-fit: contain; display: block; filter: drop-shadow(0 10px 18px rgba(123,92,253,.28)); }

/* other holes */
.chz-dz { width: 100%; max-width: 340px; height: auto; display: block; overflow: visible; }
.chz-dies { display: flex; justify-content: center; gap: 18px; }
.chz-dbtn { width: 64px; height: 64px; padding: 0; border-radius: 50%; border: 2px solid var(--violet-bright); background: var(--surface); cursor: pointer; transition: opacity .3s, border-color .3s; }
.chz-dbtn svg { width: 100%; height: 100%; display: block; }
.chz-plate { fill: #8A82A6; }
.chz-dh circle { fill: #0A0E1A; }
.chz-dh .chz-dplug { fill: #8A82A6; }
.chz-dbtn.chz-tried { border-color: var(--mint); }
.chz-pop { animation: chzPop .5s cubic-bezier(.3,1.5,.5,1) both; transform-box: fill-box; transform-origin: center; }
@keyframes chzPop { from { transform: scale(.2); opacity: 0; } }
.chz-loop { fill: #E9B04E; }
.chz-loophole { fill: #0A0E1A; }
.chz-kib { fill: #9A5B2E; }
.chz-nm { fill: var(--text); font-size: 15px; }

/* the bite */
.chz-bite { width: 100%; max-width: 300px; height: auto; display: block; overflow: visible; cursor: pointer; }
.chz-eat { transition: transform .8s ease-in, opacity .8s ease-in; transform-box: fill-box; transform-origin: center; }
.chz-eat.chz-gone { transform: scale(.1); opacity: 0; }
.chz-crumb { fill: #FF8A1E; }
.chz-note { min-height: 20px; font: 700 15px var(--sans); color: var(--gold); text-align: center; max-width: 330px; }
.chz-note.chz-small { font-size: 13px; font-weight: 600; color: var(--dim); line-height: 1.35; }

@media (max-height: 700px) {
  .chz-mc { max-width: 320px; }
  .chz-zoom { max-width: 300px; }
  .chz-fig img { max-height: 170px; }
  .chz-bite { max-width: 240px; }
}
