/* Instant noodle lesson. All rules scoped under .ndl-* */
.ndl-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* the bowl */
.ndl-timer { display: flex; align-items: baseline; gap: 8px; padding: 4px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); }
.ndl-timer b { font: 800 24px var(--mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.ndl-timer span { font: 700 12px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.ndl-bowl { width: 100%; max-width: 320px; height: auto; display: block; overflow: visible; }
.ndl-body { fill: #F3EFE8; }
.ndl-rimr { fill: none; stroke: #FFFFFF; stroke-width: 5; }
.ndl-water { fill: rgba(150, 110, 60, .55); }
.ndl-stream { fill: rgba(190, 220, 255, .85); }
.ndl-brk { fill: #EDBE63; stroke: #C48A32; stroke-width: 2; }
.ndl-wv { fill: none; stroke: #C48A32; stroke-width: 2.4; stroke-linecap: round; }
.ndl-blk { animation: ndlDrop .7s cubic-bezier(.3,1.5,.6,1) both; }
@keyframes ndlDrop { from { transform: translateY(-150px); } }
.ndl-loose { opacity: 0; }
.ndl-strand { fill: none; stroke: #F5D27E; stroke-width: 5; stroke-linecap: round; }
.ndl-steam path, .ndl-puffs path { fill: none; stroke: rgba(234, 227, 215, .55); stroke-width: 4; stroke-linecap: round; opacity: 0; }
.ndl-hot .ndl-steam path { animation: ndlWisp 1.6s ease-in-out 3 both; }
.ndl-hot .ndl-steam path:nth-child(2) { animation-delay: .4s; }
.ndl-hot .ndl-steam path:nth-child(3) { animation-delay: .8s; }
@keyframes ndlWisp { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

/* the photo */
.ndl-photo { margin: 0; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; }
.ndl-photo img { width: 100%; height: auto; max-height: 230px; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.ndl-photo figcaption { font: 600 12.5px var(--sans); color: var(--faint); text-align: center; }

/* the lens */
.ndl-ls { width: 100%; max-width: 300px; height: auto; display: block; overflow: visible; }
.ndl-lbg { fill: #1D2238; }
.ndl-rim { fill: none; stroke: var(--violet-bright); stroke-width: 4; }
.ndl-band { fill: #F1E7D2; transition: fill .8s; }
.ndl-band.ndl-cooked { fill: #F4CF7A; }
.ndl-band.ndl-fried { fill: #E3AE52; }
.ndl-w { fill: #5AB4FF; transition: fill .3s; }
.ndl-h { fill: #2A2238; transition: fill .3s; }
.ndl-o { fill: #FFB71B; stroke: #FFF2C4; stroke-width: 1.5; transition: fill .3s; }
.ndl-pop { animation: ndlPop .3s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes ndlPop { 50% { transform: scale(1.5); } }
.ndl-steamb { fill: rgba(234, 227, 215, .8); }
.ndl-steaming .ndl-puffs path, .ndl-fan .ndl-puffs path { animation: ndlWisp 1.2s ease-in-out 2 both; }
.ndl-steaming .ndl-puffs path:nth-child(2) { animation-delay: .3s; }
.ndl-key { display: flex; justify-content: center; gap: 14px; font: 700 13px var(--sans); color: var(--dim); }
.ndl-key span { display: flex; align-items: center; gap: 6px; transition: opacity .4s; }
.ndl-key span.ndl-dim { opacity: 0; }
.ndl-key i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ndl-kw { background: #5AB4FF; }
.ndl-kh { background: #2A2238; border: 1px solid var(--line-strong); }
.ndl-ko { background: #FFB71B; }
.ndl-read { font: 700 13px var(--sans); color: var(--dim); }
.ndl-read b { color: #5AB4FF; font-size: 15px; margin-left: 4px; }
.ndl-read.ndl-low b { color: var(--gold); }
.ndl-sc .gauge.ndl-fat { width: 100%; max-width: 280px; }

/* the fryer */
.ndl-pot { width: 100%; max-width: 340px; height: auto; display: block; touch-action: none; cursor: grab; }
.ndl-potb { fill: #3A3350; stroke: #5B5375; stroke-width: 2; }
.ndl-oil { fill: #E2A43A; opacity: .9; }
.ndl-oiltop { fill: #E2A43A; opacity: .5; pointer-events: none; }
.ndl-oill { fill: #5A3A10; }
.ndl-frying .ndl-oil { fill: #F0B445; }
.ndl-flame { fill: none; stroke: #FF8A3D; stroke-width: 3; stroke-linejoin: round; }
.ndl-rail { stroke: var(--line-strong); stroke-width: 3; stroke-dasharray: 4 5; }
.ndl-hdl { stroke: #C9C2D8; stroke-width: 4; stroke-linecap: round; }
.ndl-knob { fill: var(--violet-bright); }
.ndl-mesh { fill: none; stroke: #C9C2D8; stroke-width: 2.5; stroke-dasharray: 3 3; }
.ndl-lbl { font: 700 13px var(--sans); fill: var(--dim); }
.ndl-fz { fill: rgba(255, 245, 210, .9); }

/* the pick */
.ndl-pk { width: 100%; }
.ndl-pk .ndl-mini { width: 100%; height: clamp(96px, 16vh, 140px); display: block; }

/* the chain */
.ndl-steps { display: grid; grid-template-columns: 1fr; gap: 6px; width: 100%; max-width: 300px; }
.ndl-where { font: 700 12px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.ndl-steps .slot { min-height: 50px; }
.ndl-steps .slot .n { font-size: 12px; }

@media (max-height: 700px) {
  .ndl-bowl { max-width: 250px; }
  .ndl-photo img { max-height: 190px; }
  .ndl-ls { max-width: 230px; }
  .ndl-pot { max-width: 300px; }
  .ndl-steps .slot { min-height: 44px; }
}
