/* RecipeScreenPack mockups - shared base. 9:16 canvas, 1080x1920 design units scaled via --s */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:#000;overflow:hidden}
:root{--s:1;--accent:#ff9a1f;--accent2:#e0322b;--ink:#fff;--muted:rgba(255,255,255,.72);--glass:rgba(255,255,255,.10);--glass-border:rgba(255,255,255,.28)}
.stage{position:relative;width:1080px;height:1920px;--w:1080;--h:1920;transform-origin:top left;transform:scale(var(--s));overflow:hidden;font-family:'Poppins',system-ui,sans-serif;color:var(--ink)}
.stage.wide{width:1920px;height:1080px;--w:1920;--h:1080}
/* background layer */
.bg{position:absolute;inset:-6%;width:112%;height:112%;z-index:0}
.bg video,.bg img{width:100%;height:100%;object-fit:cover;filter:blur(22px) saturate(1.25) brightness(.85);animation:kb 24s ease-in-out infinite alternate}
.bg img{display:none}.bg.fallback video{display:none}.bg.fallback img{display:block}
@keyframes kb{from{transform:scale(1) translate(0,0)}to{transform:scale(1.12) translate(-2%,1.5%)}}
.tint{position:absolute;inset:0;z-index:1;pointer-events:none}
/* glass */
.glass{background:var(--glass);border:2px solid var(--glass-border);backdrop-filter:blur(28px) saturate(1.6);-webkit-backdrop-filter:blur(28px) saturate(1.6);box-shadow:0 30px 80px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.35)}
.ui{position:absolute;inset:0;z-index:2}
/* ingredient reveal */
.ing li{opacity:0;transform:translateY(24px);animation:in .6s cubic-bezier(.2,.8,.2,1) forwards}
.ing li:nth-child(1){animation-delay:.3s}.ing li:nth-child(2){animation-delay:.45s}.ing li:nth-child(3){animation-delay:.6s}.ing li:nth-child(4){animation-delay:.75s}.ing li:nth-child(5){animation-delay:.9s}.ing li:nth-child(6){animation-delay:1.05s}.ing li:nth-child(7){animation-delay:1.2s}.ing li:nth-child(8){animation-delay:1.35s}.ing li:nth-child(9){animation-delay:1.5s}.ing li:nth-child(10){animation-delay:1.65s}
@keyframes in{to{opacity:1;transform:none}}
/* voiceover bar */
.vo{display:flex;align-items:center;gap:22px;white-space:nowrap}
.vo .wave{display:flex;align-items:center;gap:6px;height:56px;flex-shrink:0}
.vo .wave i{display:block;width:8px;border-radius:4px;background:var(--accent);height:14px;animation:wv 1s ease-in-out infinite}
.vo .wave i:nth-child(2){animation-delay:.1s}.vo .wave i:nth-child(3){animation-delay:.2s}.vo .wave i:nth-child(4){animation-delay:.3s}.vo .wave i:nth-child(5){animation-delay:.4s}.vo .wave i:nth-child(6){animation-delay:.5s}.vo .wave i:nth-child(7){animation-delay:.6s}
@keyframes wv{0%,100%{height:12px}50%{height:52px}}
.vo .cap{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:38px;font-weight:500}
.vo .cap b{color:var(--accent)}
/* progress */
.prog{height:10px;background:rgba(255,255,255,.18);border-radius:6px;overflow:hidden}
.prog i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent),var(--accent2));animation:pg 18s linear infinite}
@keyframes pg{to{width:100%}}
.badge{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;flex-shrink:0}
/* voiceover-synced ingredient highlight */
.ing li{transition:color .35s,transform .35s,background .35s,opacity .35s,box-shadow .35s}
.ing li.hl{color:#fff;transform:translateX(6px)}
.ing li.hl span:first-of-type,.ing li.hl>span{color:var(--accent)}
.ing li.hl:before{box-shadow:0 0 0 6px rgba(255,255,255,.18),0 0 24px var(--accent)}
.vo .cap.pop{animation:cappop .35s cubic-bezier(.2,.8,.2,1)}
@keyframes cappop{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
/* recipe summary filler */
.summary{font-size:27px;line-height:1.45;color:var(--muted);font-weight:400}
.summary b{color:#fff;font-weight:600}
.summary .lbl{display:block;font-size:22px;letter-spacing:6px;text-transform:uppercase;color:var(--accent);margin-bottom:12px;font-weight:600}
.stepsg{display:flex;flex-direction:column;gap:10px}
.stepsg div{display:flex;align-items:center;gap:16px;font-size:26px;white-space:nowrap;overflow:hidden;opacity:.5;transition:.35s;padding:10px 14px;border-radius:14px}
.stepsg div span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.stepsg div b{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:22px;flex-shrink:0}
.stepsg div.on{opacity:1;background:rgba(255,255,255,.1)}
.stepsg div.on b{background:var(--accent);color:#1a0a00}
