/* =========================================================
   🎅 Χριστούγεννα — «Ετοιμάζω τον Άγιο Βασίλη» (js/xmassanta.js)
   Η διάταξη (σκηνή 16:9, δεξιά στήλη, καρτέλες, κουμπιά) είναι του
   css/xmastree.css (.xt-*)· εδώ μόνο ό,τι είναι δικό της (.xs-*).
   Στρώματα: ουρανός → δωμάτιο → ξωτικά → [σώμα → καμβάς τριχών → πρόσωπο/σκούφος]
   → συννεφάκια. Κινήσεις ΜΟΝΟ με transform/opacity.
   ========================================================= */
.xs-wrap .xt-tabs { grid-template-columns: repeat(4, 1fr); }
.xs-zoom { transition: transform .7s ease; pointer-events: none; }
.xs-wrap.zoomed .xs-zoom { transform: scale(2); }
.xs-sky .xt-sleigh { display: none; }                      /* εδώ το έλκηθρο περιμένει παρκαρισμένο στο παράθυρο */
.xs-elves, .xs-santa, .xs-body, .xs-front, .xs-fx { pointer-events: none; }
.xs-body [data-hit], .xs-front [data-hit] { pointer-events: auto; cursor: pointer; }
.xs-hair { position: absolute; display: block; pointer-events: none; touch-action: none; transition: transform .25s ease; transform-origin: 50% 40%; }
.xs-wrap.zoomed .xs-hair { pointer-events: auto; cursor: crosshair; }
.xs-wrap.zoomed .xs-body [data-hit], .xs-wrap.zoomed .xs-front [data-hit] { pointer-events: none; }

/* ---- Άγιος Βασίλης ---- */
.xs-santa { transform-origin: 50% 88%; animation: xsBob 3.2s ease-in-out infinite alternate; }
@keyframes xsBob { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-2px) scaleY(1.008); } }
.xs-santa.jiggle { animation: xsJiggle .45s ease-out; }
@keyframes xsJiggle { 0% { transform: scale(1.03, .97); } 40% { transform: scale(.98, 1.02); } 70% { transform: scale(1.01, .99); } 100% { transform: scale(1); } }
.xs-santa.laugh { animation: xsLaugh 1.2s ease-in-out; }
@keyframes xsLaugh { 0%, 100% { transform: translateY(0); } 12%, 37%, 62%, 87% { transform: translateY(-9px) scale(1.01, .99); } 25%, 50%, 75% { transform: translateY(0) scale(.99, 1.01); } }
.xs-santa.hop { animation: xsHop .5s ease-out; }
@keyframes xsHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px); } }
.xs-santa.leave { animation: none; transform: translateX(-78%); opacity: 0; transition: transform 1.1s ease-in, opacity .9s ease-in .2s; }
.xs-pupil { transition: transform .12s linear; }
.xs-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: xsBlink 4.6s linear infinite; }
@keyframes xsBlink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }
.xs-nose { transform-box: fill-box; transform-origin: center; }
.xs-nose.honk { animation: xsHonk .35s ease-out; }
@keyframes xsHonk { 40% { transform: scale(1.45); } }
.xs-steam { animation: xsSteam 2.2s ease-in-out infinite alternate; }
@keyframes xsSteam { from { opacity: .25; transform: translateY(3px); } to { opacity: .9; transform: translateY(-3px); } }

/* ---- Ξωτικά ---- */
.xs-elf-in { animation: xsElfBob 1.9s ease-in-out infinite alternate; }
@keyframes xsElfBob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
.xs-elf-flip.hop { animation: xsElfHop .7s ease-out; }
@keyframes xsElfHop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-34px); } 60% { transform: translateY(0); } 78% { transform: translateY(-12px); } }
.xs-elf .xs-arm { transform-box: fill-box; }
.xs-elf .xs-arm.r { transform-origin: 0 0; }
.xs-elf .xs-arm.l { transform-origin: 100% 0; }
.xs-elf-flip.wave .xs-arm.r, .xs-elf-flip.hop .xs-arm.r { animation: xsWaveR .35s ease-in-out 2 alternate; }
.xs-elf-flip.hop .xs-arm.l { animation: xsWaveL .35s ease-in-out 2 alternate; }
@keyframes xsWaveR { to { transform: rotate(-125deg); } }
@keyframes xsWaveL { to { transform: rotate(125deg); } }
.xs-elf .xs-leg { transform-box: fill-box; transform-origin: 50% 0; }
.xs-elf.run .xs-leg { animation: xsRun .22s linear infinite alternate; }
.xs-elf.run .xs-leg.l { animation-direction: alternate-reverse; }
@keyframes xsRun { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }
.xs-elf-eyes { transform-box: fill-box; transform-origin: center; animation: xsElfBlink 3.8s linear infinite; }
@keyframes xsElfBlink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* ---- Έλκηθρο στο παράθυρο ---- */
.xs-sleigh { animation: xsPark 2.4s ease-in-out infinite alternate; }
@keyframes xsPark { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.xs-scene.fly .xs-sleigh { animation: xsFly 4.6s ease-in forwards; }
@keyframes xsFly { 0% { transform: translate(0, 0); } 25% { transform: translate(20px, -14px); } 100% { transform: translate(520px, -420px); } }

/* ---- Συννεφάκια, τούφες, «πουφ» ---- */
.xs-say { position: absolute; max-width: 236px; padding: 7px 11px; border-radius: 14px; background: #fff; color: #263238; font-size: 13.5px; line-height: 1.25; box-shadow: 0 3px 10px rgba(0,0,0,.28); animation: xsSay .25s ease-out; z-index: 4; }
.xs-say b { display: block; font-size: 11px; color: #c62828; }
.xs-say::after { content: ''; position: absolute; left: 26px; bottom: -8px; border: 9px solid transparent; border-top-color: #fff; border-bottom: 0; }
.xs-say.r::after { left: auto; right: 26px; }
@keyframes xsSay { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.xs-tuft { position: absolute; width: 12px; height: 7px; margin: -3px 0 0 -6px; border-radius: 50%; background: #f1f3f5; box-shadow: 0 0 0 1px #cfd8dc; animation: xsTuft .9s ease-in forwards; }
@keyframes xsTuft { to { transform: translate(var(--dx, 0), 170px) rotate(200deg); opacity: 0; } }
.xs-poof { position: absolute; margin: -22px 0 0 -22px; font-size: 44px; font-style: normal; line-height: 1; animation: xsPoof .7s ease-out forwards; }
@keyframes xsPoof { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.4) rotate(40deg); opacity: 0; } }

/* ---- Δεξιά στήλη ---- */
.xs-tile { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; }
.xs-tile svg { width: 100%; height: 62px; }
.xs-tile b { font-size: 10.5px; font-weight: 600; line-height: 1.12; text-align: center; color: #37474f; }
.xs-slider { display: grid; grid-template-columns: 54px 52px 1fr 60px; align-items: center; gap: 4px; margin: 5px 0; font-size: 13px; }
.xs-slider span { font-weight: 700; }
.xs-slider em { font-style: normal; font-size: 10.5px; color: #607d8b; text-align: center; }
.xs-slider input { width: 100%; min-width: 0; accent-color: #c62828; cursor: pointer; }
.xs-gap { margin-top: 6px; }
.xs-ghost { width: 110px; height: 110px; }
.xs-rainbow { background: conic-gradient(#e53935, #f6b93b, #2e9d57, #1e88e5, #8e44ad, #e53935) !important; }

/* Θέμα Lite: χωρίς κινήσεις */
html.th-lite .xs-santa, html.th-lite .xs-elf-in, html.th-lite .xs-lid, html.th-lite .xs-elf-eyes, html.th-lite .xs-sleigh, html.th-lite .xs-steam, html.th-lite .xs-say { animation: none !important; }
html.th-lite .xs-zoom, html.th-lite .xs-pupil, html.th-lite .xs-hair { transition: none; }
html.th-lite .xs-santa.leave { transition: none; }
html.th-lite .xs-scene.fly .xs-sleigh { animation: none !important; transform: translate(520px, -420px); }

/* ===== 21/11/2026: χωρίς κείμενα (εικόνες), δείκτης = εργαλείο, τρίχες που πέφτουν ===== */
.xs-wrap .xt-tab b, .xs-wrap .xt-btn b { display: none; }
.xs-wrap .xt-tab span { font-size: 26px; padding: 3px 0; }
.xs-wrap .xt-btn span { font-size: 24px; }
.xs-tile { position: relative; }
.xs-none { position: absolute; right: 3px; top: 3px; font-style: normal; font-size: 16px; line-height: 1; pointer-events: none; }
.xt-opt[data-ico] { position: relative; padding: 2px; width: 60px; height: 60px; display: inline-flex; align-items: center; justify-content: center; }
.xt-opt[data-ico] svg { width: 100%; height: 100%; display: block; }
.xs-wrap .xt-body h4.xs-h { font-size: 22px; color: inherit; text-transform: none; line-height: 1.1; margin: 8px 0 3px; letter-spacing: 2px; }
.xs-slider.xs-pic { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.xs-slider.xs-pic em { flex: 0 0 auto; width: 46px; height: 58px; }
.xs-slider.xs-pic em svg { width: 100%; height: 100%; display: block; }
.xs-slider.xs-pic input { flex: 1; min-width: 0; }
.xt-note.xs-icons { font-size: 26px; text-align: center; letter-spacing: 6px; }
.xs-cuts { grid-template-columns: repeat(3, 1fr); }
.xs-cuts .xs-tile svg { width: 100%; height: 86px; display: block; }
.xs-regrow span { font-size: 40px; display: flex; align-items: center; justify-content: center; height: 86px; }
.xs-wrap.zoomed .xs-hair { cursor: none; }
.xs-toolcur { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 6; }
.xs-toolcur.hidden { display: none; }
.xs-toolcur i { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; border: 2px dashed rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.xs-toolcur b { position: absolute; left: 2px; top: -40px; font-size: 38px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); transform-origin: 0 100%; }
.xs-toolcur.act b { animation: xsBuzz .12s linear infinite alternate; }
@keyframes xsBuzz { from { transform: rotate(-6deg) translateX(-1px); } to { transform: rotate(6deg) translateX(1px); } }
.xs-fall { position: absolute; pointer-events: none; animation: xsFallDown 1.3s ease-in forwards; }
@keyframes xsFallDown { 15% { transform: translateY(2%) rotate(1deg); } to { transform: translateY(70%) rotate(7deg); opacity: 0; } }
html.th-lite .xs-toolcur.act b, html.th-lite .xs-fall { animation: none !important; }
