/* =========================================================
   🍪 Χριστούγεννα — «Γιορτινό τραπέζι» (js/xmasfood.js)
   Η διάταξη (σκηνή 16:9, δεξιά στήλη, κουμπιά, πλακίδια) είναι του
   css/xmastree.css (.xt-*)· τα συννεφάκια/«πουφ» του css/xmassanta.css (.xs-*).
   Εδώ μόνο ό,τι είναι δικό της (.xf-*). Κινήσεις ΜΟΝΟ με transform/opacity.
   ========================================================= */
.xf-main { cursor: default; }
.xf-main[data-step="mix"], .xf-main[data-step="roll"] { cursor: grab; }
.xf-main[data-step="knead"], .xf-main[data-step="shape"], .xf-main[data-step="syrup"], .xf-main[data-step="table"] { cursor: pointer; }
.xf-main[data-step="cut"], .xf-main[data-step="decor"] { cursor: crosshair; }
.xf-main[data-step="pan"], .xf-main[data-step="coin"], .xf-main[data-step="fill"], .xf-main[data-step="dress"] { cursor: pointer; }
.xf-main[data-step="brush"], .xf-main[data-step="chop"] { cursor: none; }
.xf-sky, .xf-fx, .xf-over, .xf-elves { pointer-events: none; }
.xf-main.xf-onelf { cursor: pointer; }
/* Ξωτικά της κουζίνας (πίσω από το τραπέζι): σηκώνονται όταν μιλούν, χώνονται στο κου-κου, κουνιούνται όταν γελούν/φταρνίζονται */
.xf-elf-pos { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.xf-elf-pos.up { transform: translateY(-46px); }
.xf-elf-pos.down { transform: translateY(110px); transition: transform .3s ease-in; }
.xf-elf-wig { transform-box: fill-box; transform-origin: 50% 100%; }
.xf-elf-wig.xf-wig { animation: xfWig .45s ease-in-out 2; }
@keyframes xfWig { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.xf-face .xf-pop { animation-duration: .3s; }

/* ---- 3.80: περισσότερη κίνηση ---- */
.xf-enter { animation: xfEnter .5s ease-out; }
@keyframes xfEnter { from { opacity: 0; transform: translateY(26px); } }
.xf-pop { transform-box: fill-box; transform-origin: center; animation: xfPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes xfPop { from { transform: scale(.2); } }
.xf-dot { position: absolute; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.12); animation: xfDot .8s ease-out forwards; pointer-events: none; }
.xf-dot.snow { width: 7px; height: 7px; box-shadow: none; animation-duration: 1.2s; }
@keyframes xfDot { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--dx), calc(var(--dy) + 60px)); opacity: 0; } }
.xf-steam path { animation: xfSteam 1.8s ease-out infinite; }
.xf-steam.soft path { animation-duration: 2.6s; }
@keyframes xfSteam { 0% { opacity: 0; transform: translateY(20px) scaleY(.6); } 40% { opacity: .75; } 100% { opacity: 0; transform: translateY(-50px) scaleY(1.1); } }
.xf-ding { transform-box: fill-box; transform-origin: 50% 100%; animation: xfDing .6s ease-out; }
@keyframes xfDing { 30% { transform: scale(1.03, .97); } 60% { transform: scale(.99, 1.02); } }
.xf-blink { animation: xfBlink .8s steps(1) infinite; }
@keyframes xfBlink { 50% { opacity: .3; } }
.xf-heat { animation: xfHeat .5s ease-in-out infinite alternate; }
@keyframes xfHeat { to { opacity: .55; } }
.xf-stream { stroke-dasharray: 26 18; animation: xfStream .35s linear infinite; }
.xf-stream.thin { stroke-dasharray: 12 10; }
@keyframes xfStream { to { stroke-dashoffset: -44; } }
.xf-coin { transform-box: fill-box; transform-origin: center; animation: xfCoin 1.4s ease-in forwards; }
@keyframes xfCoin { 0% { transform: translateY(-160px) rotate(0); opacity: 1; } 45% { transform: translateY(0) rotate(540deg) scale(1); opacity: 1; } 100% { transform: scale(.2); opacity: 0; } }
.xf-hid { opacity: 0; }
.xf-knife { transform-box: fill-box; transform-origin: 50% 100%; animation: xfKnife .22s ease-out; }
@keyframes xfKnife { 50% { transform: translateY(26px) rotate(-6deg); } }
.xf-drip { animation: xfDrip 1.6s ease-in-out infinite alternate; }
@keyframes xfDrip { to { transform: translateY(8px); } }
.xf-halo { animation: xtPulse 1.2s ease-in-out infinite alternate; }
.xf-fridge { transform-box: fill-box; transform-origin: 50% 100%; animation: xfFridge .45s ease-out; }
@keyframes xfFridge { from { transform: scale(.85); opacity: 0; } }
.xf-door { transform-box: fill-box; transform-origin: 0 50%; animation: xfDoor .7s ease-out; }
@keyframes xfDoor { from { transform: scaleX(.1); } }
.xf-guest.arrive { animation: xfArrive .7s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes xfArrive { from { transform: translateY(160px); opacity: 0; } }
.xf-cake { background: #fff3e0; border-color: #ffb300; font-weight: 700; }
.xf-say { z-index: 5; }
.xf-wrap .xt-btn.sel { background: linear-gradient(#ffe082, #ffca28); }

/* ---- κινήσεις στη σκηνή ---- */
.xf-dough { transform-box: fill-box; transform-origin: 50% 60%; }
.xf-dough.press { animation: xfPress .32s ease-out; }
@keyframes xfPress { 40% { transform: scale(1.12, .8); } 100% { transform: scale(1); } }
.xf-drop { animation: xfDrop .6s ease-in forwards; }
@keyframes xfDrop { from { transform: translateY(-60px); opacity: 1; } to { transform: translateY(230px) scale(.5); opacity: 0; } }
.xf-glow { opacity: .1; transition: opacity .8s ease; }
.xf-glow.on { opacity: .75; animation: xfGlow 1.2s ease-in-out infinite alternate; }
@keyframes xfGlow { from { opacity: .6; } to { opacity: .9; } }
.xf-knob { cursor: pointer; }
.xf-knob:hover circle:nth-child(2) { fill: #fff8e1; }
.xf-ball { cursor: pointer; }
.xf-served { transform-box: fill-box; transform-origin: center; animation: xfServe .8s ease-out; }
@keyframes xfServe { from { transform: scale(.6); opacity: 0; } }
.xf-dish { cursor: pointer; }
.xf-dish.sel { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #29b6f6); }
.xf-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: xtFlame .4s ease-in-out infinite alternate; }
.xf-guest { cursor: pointer; }
.xf-guest.hop { animation: xfHop .6s ease-out; }
@keyframes xfHop { 40% { transform: translateY(-14px); } }
.xf-flash { position: absolute; transform: translate(-50%, -50%); padding: 6px 16px; border-radius: 999px; background: #fff; color: #c62828; font-size: 22px; font-weight: 800; box-shadow: 0 3px 12px rgba(0,0,0,.3); white-space: nowrap; animation: xfFlash 1.5s ease-out forwards; pointer-events: none; }
@keyframes xfFlash { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110%); } }

/* ---- Δεξιά στήλη ---- */
.xf-steps { display: flex; flex-direction: column; gap: 4px; }
.xf-title { font-size: 15px; font-weight: 800; color: #8e1b1b; text-align: center; }
.xf-strip { display: flex; gap: 3px; }
.xf-st { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 3px 1px; border-radius: 9px; background: #eceff1; color: #607d8b; }
.xf-st i { font-style: normal; font-size: 17px; line-height: 1.2; }
.xf-st b { font-size: 8.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.xf-st.done { background: #e8f5e9; color: #2e7d32; }
.xf-st.now { background: #c62828; color: #fff; box-shadow: 0 0 0 2px #8e1b1b; }
.xf-help { margin: 2px 0 6px; font-size: 13px; line-height: 1.3; padding: 7px 9px; border-radius: 10px; background: #fff8e1; color: #5d4037; }
.xf-need { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
.xf-need span { font-size: 13px; padding: 3px 8px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.xf-need span.ok { background: #e8f5e9; color: #2e7d32; }
.xf-need em { float: right; font-style: normal; color: #90a4ae; }
/* 21/11/2026: εικόνες των υλικών στη λίστα (όσες φορές χρειάζεται· σβηστές ως να μπουν στο μπολ) */
.xf-need span { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.xf-need span b { flex: 1; }
.xf-ni { display: inline-flex; gap: 1px; font-style: normal; }
.xf-ni u { display: inline-block; width: 30px; height: 30px; opacity: .45; filter: grayscale(.6); text-decoration: none; }
.xf-ni u.got { opacity: 1; filter: none; }
.xf-ni svg { width: 100%; height: 100%; display: block; }
.xf-wrap .xt-tile { display: flex; flex-direction: column; align-items: center; aspect-ratio: auto; cursor: pointer; }
.xf-wrap .xt-tile svg { height: 46px; }
.xf-wrap .xt-tile b { font-size: 10px; font-weight: 600; line-height: 1.1; text-align: center; color: #37474f; }
.xf-tile svg { height: 52px !important; }
.xf-bar { height: 16px; border-radius: 999px; background: #eceff1; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.2); margin: 6px 0; }
.xf-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffca28, #ef6c00); border-radius: 999px; }
.xf-gap { margin-top: 8px; }
.xf-recipe-temp { font-size: 14px; padding: 6px 9px; border-radius: 10px; background: #e3f2fd; }
.xf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.xf-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 2px solid transparent; border-radius: 14px; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.18); cursor: pointer; font: inherit; color: #263238; }
.xf-card:hover:not(:disabled) { border-color: #ffb300; transform: scale(1.03); }
.xf-card svg { width: 100%; height: 66px; }
.xf-card b { font-size: 13px; }
.xf-card em { font-style: normal; font-size: 11px; color: #78909c; }
.xf-card .e { font-size: 34px; line-height: 1.2; }
.xf-card.soon { opacity: .55; cursor: default; }
.xf-card.cont { flex-direction: row; width: 100%; gap: 10px; margin-bottom: 4px; padding: 8px 10px; text-align: left; background: #fff3e0; border-color: #ffb300; }
.xf-card.cont span:last-child { display: flex; flex-direction: column; }
.xf-foot:empty { display: none; }
.xf-go { width: 100%; padding: 11px 8px; border: 0; border-radius: 14px; background: #cfd8dc; color: #607d8b; font: inherit; font-size: 16px; font-weight: 800; cursor: default; }
.xf-go.ready, .xf-go.fire, .xf-two .xf-go { background: linear-gradient(#66bb6a, #2e7d32); color: #fff; cursor: pointer; box-shadow: 0 3px 8px rgba(46,125,50,.4); }
.xf-go.ready { animation: xfReady 1s ease-in-out infinite alternate; }
@keyframes xfReady { to { transform: scale(1.04); } }
.xf-go.fire { background: linear-gradient(#ff8a50, #e64a19); box-shadow: 0 3px 8px rgba(230,74,25,.4); }
.xf-go:disabled { background: #cfd8dc; color: #90a4ae; box-shadow: none; cursor: default; animation: none; }
.xf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.xf-two .xf-go[data-serve="fridge"] { background: linear-gradient(#ef5350, #c62828); }
.xf-call.sel { background: #fff3e0; }
.xf-ghost { width: 90px; height: 90px; }

/* ---- 3.81: Υποδείξεις — τι πατάω τώρα ---- */
.xf-hint { pointer-events: none; }
.xf-hint text { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.xf-ring { fill: none; stroke: #ffd54f; stroke-width: 6; stroke-dasharray: 22 14; stroke-linecap: round; animation: xfDash 1s linear infinite; }
@keyframes xfDash { to { stroke-dashoffset: -36; } }
.xf-ring2 { fill: none; stroke: #fff; stroke-width: 5; transform-box: fill-box; transform-origin: center; animation: xfRingOut 1.6s ease-out infinite; }
@keyframes xfRingOut { from { transform: scale(.94); opacity: .95; } to { transform: scale(1.2); opacity: 0; } }
.xf-tap { animation: xfTap 1s ease-in-out infinite; }
@keyframes xfTap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.xf-nudge { animation: xfNudgeL .9s ease-in-out infinite; }
.xf-nudge.r { animation-name: xfNudgeR; }
@keyframes xfNudgeL { 50% { transform: translateX(-18px); } }
@keyframes xfNudgeR { 50% { transform: translateX(18px); } }
.xf-updown { animation: xfUpDown 1.2s ease-in-out infinite; }
@keyframes xfUpDown { 0%, 100% { transform: translateY(14px); } 50% { transform: translateY(-14px); } }
.xf-sideways { animation: xfSide 1.2s ease-in-out infinite; }
@keyframes xfSide { 0%, 100% { transform: translateX(-20px); } 50% { transform: translateX(20px); } }
.xf-spin { transform-box: fill-box; transform-origin: center; animation: xfSpin 2.6s linear infinite; }
@keyframes xfSpin { to { transform: rotate(360deg); } }
/* επιλογές της δεξιάς στήλης που ταιριάζουν ΤΩΡΑ */
.xf-wrap .xf-hl { border-color: #ffb300 !important; animation: xfHl 1.2s ease-in-out infinite; }
@keyframes xfHl { 0%, 100% { box-shadow: 0 0 0 2px #ffb300, 0 0 0 0 rgba(255, 179, 0, .7); } 60% { box-shadow: 0 0 0 3px #ffb300, 0 0 0 10px rgba(255, 179, 0, 0); } }
.xf-wrap .xt-tile.xf-hl { background: radial-gradient(circle at 50% 35%, #ffffff, #fff3c4); }
/* λωρίδα βημάτων: το τρέχον χοροπηδά, το επόμενο περιμένει */
.xf-st.now i { display: inline-block; animation: xfTap 1.1s ease-in-out infinite; }
.xf-st.next { outline: 2px dashed #ffb300; outline-offset: -3px; }
/* «Επόμενο βήμα» έτοιμο: δείχνει ένα χεράκι */
.xf-go.ready { position: relative; }
.xf-go.ready::after { content: '👈'; position: absolute; right: 12px; top: 50%; margin-top: -.6em; font-size: 20px; line-height: 1.2; animation: xfNudgeR .8s ease-in-out infinite; }
.xf-two .xf-go { animation: xfReady 1s ease-in-out infinite alternate; }
.xf-two .xf-go:nth-child(2) { animation-delay: .5s; }
/* κάρτες του βιβλίου: μπαίνουν μία-μία */
.xf-cards .xf-card { animation: xfCardIn .45s ease-out both; }
.xf-cards .xf-card:nth-child(2) { animation-delay: .07s; } .xf-cards .xf-card:nth-child(3) { animation-delay: .14s; }
.xf-cards .xf-card:nth-child(4) { animation-delay: .21s; } .xf-cards .xf-card:nth-child(5) { animation-delay: .28s; } .xf-cards .xf-card:nth-child(6) { animation-delay: .35s; }
@keyframes xfCardIn { from { opacity: 0; transform: translateY(14px) scale(.95); } }

/* Θέμα Lite: χωρίς κινήσεις */
html.th-lite .xf-enter, html.th-lite .xf-pop, html.th-lite .xf-steam path, html.th-lite .xf-ding, html.th-lite .xf-blink, html.th-lite .xf-heat, html.th-lite .xf-stream, html.th-lite .xf-coin, html.th-lite .xf-knife, html.th-lite .xf-drip, html.th-lite .xf-halo, html.th-lite .xf-fridge, html.th-lite .xf-door, html.th-lite .xf-elf .xs-elf-in, html.th-lite .xf-elf-wig, html.th-lite .xf-face .xf-pop, html.th-lite .xf-dough, html.th-lite .xf-drop, html.th-lite .xf-glow, html.th-lite .xf-served, html.th-lite .xf-flame, html.th-lite .xf-guest, html.th-lite .xf-go.ready, html.th-lite .xf-flash, html.th-lite .xf-ring, html.th-lite .xf-tap, html.th-lite .xf-nudge, html.th-lite .xf-updown, html.th-lite .xf-sideways, html.th-lite .xf-spin, html.th-lite .xf-st.now i, html.th-lite .xf-go.ready::after, html.th-lite .xf-two .xf-go, html.th-lite .xf-cards .xf-card { animation: none !important; }
html.th-lite .xf-ring2 { display: none; }
html.th-lite .xf-wrap .xf-hl { animation: none !important; box-shadow: 0 0 0 3px #ffb300; }
html.th-lite .xf-card:hover { transform: none; }
