/* 2.0 polish (wave 3): new pieces only. Changes to existing components stay in their own files. */

/* A missing ingredient's badge: how many more you need, on the corner of its (paler) picture. */
.part-need { position:absolute; left:calc(50% + 6px); top:9px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:#ff9f43; color:#2a1600; font:900 11px/17px var(--body); text-align:center; box-shadow:0 1px 0 #7a3d00, 0 0 0 2px #14283b; pointer-events:none; }

/* Sleeping: a quick fade to dark and back to morning (night.js sleepFade, --fade long; a tap skips it). It sits above
   the HUD, quiz and panels and below the toasts (35), so the ☀️ good-morning toast shows on it. The clock has already
   jumped to 06:00 when it starts, so it starts nearly dark (night is dark anyway): never a flash of morning first. */
.sleep-fade { position:fixed; inset:0; z-index:33; display:grid; place-items:center; background:#05070f; opacity:.9; cursor:pointer; touch-action:none; animation:sleep-fade var(--fade, 1.3s) ease-in-out forwards; }
.sleep-fade > span { grid-area:1/1; font-size:min(26vw, 130px); line-height:1; filter:drop-shadow(0 0 24px #ffd86a88); }
.sleep-moon { animation:sleep-moon var(--fade, 1.3s) ease-in forwards; }
.sleep-sun { opacity:0; animation:sleep-sun var(--fade, 1.3s) ease-out forwards; }
.sleep-fade.skip { animation:sleep-skip .2s ease-out forwards; }
@keyframes sleep-fade { 0% { opacity:.9; } 10% { opacity:1; } 55% { opacity:1; } 100% { opacity:0; } }
@keyframes sleep-moon { 0% { opacity:.7; } 12% { opacity:.9; transform:none; } 32% { opacity:0; transform:translateY(30px) scale(.8); } 100% { opacity:0; } }
@keyframes sleep-sun { 0%, 28% { opacity:0; transform:translateY(46px) scale(.6); } 50% { opacity:1; transform:none; } 78% { opacity:1; } 100% { opacity:0; transform:translateY(-8px) scale(1.06); } }
@keyframes sleep-skip { from { opacity:1; } to { opacity:0; } }

/* Guide step 3 on a laptop: a mouse with its right button lit beside the pointing hand over the ground. */
.guide-hand-anchor .anchor-box .guide-mouse { display:inline-block; width:26px; height:37px; margin-left:2px; vertical-align:bottom; filter:drop-shadow(0 3px 0 #0007); }
.guide-mouse-right { animation:guide-mouse-click 1s ease-in-out infinite; }
@keyframes guide-mouse-click { 0%, 40%, 100% { fill:#ffc83d; } 55%, 75% { fill:#ff7a1a; } }

/* The guide's next thing to make comes first in the backpack's ✨ cards and glows (explore.js decorateBag). */
.book-cards .recipe-card.guide-card { border-color:#ffe69a; box-shadow:0 0 0 3px #ffe69a, 0 0 18px 6px #ffd65aaa; }
