/* Navidad "Pino" (modelo A, sin nieve). Se prende sola en diciembre y se apaga sola el 1/1 (clase xm en <html>, la pone app.js). Va después de estadio.css. */
:root.xm{--bg:#07120D;--surface:#0E1E16;--surface-2:#14281D;--line:#234231;--fg:#F3F7F4;--fg2:#DCE8E0;--muted:#9DB5A6;--dim:#62806E;--good:#7EE2A8;--good-soft:rgba(126,226,168,.12);--xm-red:#C8102E;--xm-gold:#FFD27A;--xm-green:#2E8B57}
.xm body{background:var(--bg)}

/* guirnalda debajo de la barra de arriba (dos capas: una fija y otra que titila) */
.xm .top{position:relative;margin-bottom:22px}
.xm .top::before,.xm .top::after{content:"";position:absolute;left:-16px;right:-16px;bottom:-26px;height:26px;pointer-events:none;background-repeat:repeat-x;background-size:156px 26px}
.xm .top::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='156' height='26'%3E%3Cpath d='M0 3 Q39 22 78 3 T156 3' fill='none' stroke='%233d5a49' stroke-width='1.4'/%3E%3Cg%3E%3Crect x='11' y='7' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='13' cy='14' rx='3.6' ry='4.6' fill='%23C8102E'/%3E%3Crect x='63' y='7' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='65' cy='14' rx='3.6' ry='4.6' fill='%232E8B57'/%3E%3Crect x='115' y='11' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='117' cy='18' rx='3.6' ry='4.6' fill='%23FFD27A'/%3E%3C/g%3E%3C/svg%3E")}
.xm .top::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='156' height='26'%3E%3Crect x='37' y='11' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='39' cy='18' rx='3.6' ry='4.6' fill='%23FD6600'/%3E%3Crect x='89' y='11' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='91' cy='18' rx='3.6' ry='4.6' fill='%23FFD27A'/%3E%3Crect x='141' y='7' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='143' cy='14' rx='3.6' ry='4.6' fill='%23C8102E'/%3E%3C/svg%3E");animation:xm-tw 1.4s ease-in-out infinite alternate}
@keyframes xm-tw{from{opacity:1}to{opacity:.2}}

/* gorro de Papá Noel sobre el logo */
.xm .top>div:first-child{position:relative}
.xm .top>div:first-child::before{content:"";position:absolute;left:-11px;top:-13px;width:30px;height:23px;transform:rotate(-18deg);z-index:2;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M4 26C8 12 18 2 32 6c-4 4-5 9-4 15z' fill='%23C8102E'/%3E%3Cpath d='M12 14c5-6 11-8 17-7' stroke='%23E0213F' stroke-width='3' fill='none'/%3E%3Crect x='1' y='22' width='30' height='7' rx='3.5' fill='%23fff'/%3E%3Ccircle cx='34' cy='7' r='4' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat}

/* títulos */
.xm h1{font-family:'Mountains of Christmas',var(--display)!important;font-weight:700;text-transform:none;letter-spacing:.5px;color:#fff;font-size:42px;line-height:1}

/* Inicio · tu semana: bolitas colgadas de un hilo */
.xm .hw-days{position:relative;padding-top:4px;align-items:start}
.xm .hw-days::before{content:"";position:absolute;left:-14px;right:-14px;top:-2px;height:10px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='10' preserveAspectRatio='none'%3E%3Cpath d='M0 2 Q50 9 100 2' fill='none' stroke='%233d5a49' stroke-width='1.4'/%3E%3C/svg%3E") 0 0/100% 10px no-repeat}
.xm .hw-day{position:relative;--h:14px;gap:5px}
.xm .hw-day:nth-child(2){--h:26px}.xm .hw-day:nth-child(3){--h:8px}.xm .hw-day:nth-child(4){--h:30px}.xm .hw-day:nth-child(5){--h:18px}.xm .hw-day:nth-child(6){--h:6px}.xm .hw-day:nth-child(7){--h:22px}
.xm .hw-pip{--c:var(--xm-red);max-width:34px;border-radius:50%;margin-top:var(--h);position:relative;background:#11241A;border:1px solid #2f4a3b;transform-origin:50% calc(-1 * var(--h))}
.xm .hw-pip::before{content:"";position:absolute;left:50%;bottom:100%;width:1.2px;height:calc(var(--h) + 2px);background:#3d5a49;transform:translateX(-50%)}
.xm .hw-pip::after{content:"";position:absolute;left:50%;top:-4px;width:9px;height:5px;margin-left:-4.5px;border-radius:1px;background:#B8A36A}
.xm .hw-pip svg{display:none}
.xm .hw-day:nth-child(4n+2) .hw-pip{--c:#FD6600}.xm .hw-day:nth-child(4n+3) .hw-pip{--c:var(--xm-gold)}.xm .hw-day:nth-child(4n) .hw-pip{--c:var(--xm-green)}
.xm .hw-pip.done{background:radial-gradient(circle at 34% 30%,rgba(255,255,255,.6) 0 3px,transparent 4px),var(--c);border-color:transparent;animation:xm-swing 1.6s ease-out 1}
.xm .hw-day.today .hw-pip:not(.done){border:2px dashed var(--accent);animation:none}
@keyframes xm-swing{0%{transform:rotate(0)}15%{transform:rotate(16deg)}35%{transform:rotate(-11deg)}55%{transform:rotate(7deg)}75%{transform:rotate(-3deg)}100%{transform:rotate(0)}}
.xm .hw-slots i.on{background:var(--xm-red)}

/* botones de "Mi entrenamiento de hoy": regalo con cinta */
.xm .hw-go{background:var(--xm-red);color:#fff;position:relative;overflow:hidden}
.xm .hw-go::after{content:"";position:absolute;top:0;bottom:0;right:42px;width:10px;background:var(--xm-gold)}
.xm .hw-go>*{position:relative;z-index:1}

/* cinturón con moño */
.xm .belt{position:relative;overflow:visible}
.xm .belt::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:9px;margin:-4.5px 0 0 -5.5px;background:var(--xm-red);clip-path:polygon(0 0,50% 38%,100% 0,100% 100%,50% 62%,0 100%)}

/* Hoy: el día elegido es un regalo */
.xm .day,.xm .rs-d{position:relative}
.xm .day.on,.xm .rs-d.on{background:var(--xm-red);border-color:var(--xm-red);color:#fff}
.xm .day.on::before,.xm .rs-d.on::before{content:"";position:absolute;left:50%;top:-8px;width:24px;height:12px;margin-left:-12px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M12 8C8 0 1 1 3 6s7 2 9 2zM12 8c4-8 11-7 9-2s-7 2-9 2z' fill='%23FFD27A'/%3E%3Ccircle cx='12' cy='8' r='2.4' fill='%23E8B84F'/%3E%3C/svg%3E") center/contain no-repeat}
.xm .day.on .dot{background:#fff}

/* timer: guirnalda, números dorados y barra bastón de caramelo */
.xm .sheet-timer{background:var(--bg)}
.xm .tm::before{content:"";width:calc(100% + 32px);height:26px;margin:0 -16px 18px;flex:none;background:inherit;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='156' height='26'%3E%3Cpath d='M0 3 Q39 22 78 3 T156 3' fill='none' stroke='%233d5a49' stroke-width='1.4'/%3E%3Crect x='11' y='7' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='13' cy='14' rx='3.6' ry='4.6' fill='%23C8102E'/%3E%3Crect x='37' y='11' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='39' cy='18' rx='3.6' ry='4.6' fill='%23FD6600'/%3E%3Crect x='63' y='7' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='65' cy='14' rx='3.6' ry='4.6' fill='%232E8B57'/%3E%3Crect x='89' y='11' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='91' cy='18' rx='3.6' ry='4.6' fill='%23FFD27A'/%3E%3Crect x='115' y='11' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='117' cy='18' rx='3.6' ry='4.6' fill='%23FFD27A'/%3E%3Crect x='141' y='7' width='4' height='3' fill='%2362806E'/%3E%3Cellipse cx='143' cy='14' rx='3.6' ry='4.6' fill='%23C8102E'/%3E%3C/svg%3E");background-repeat:repeat-x;background-size:156px 26px;background-position:center;animation:xm-tw 1.4s ease-in-out infinite alternate}
.xm .tm-big{color:var(--xm-gold)!important;text-shadow:0 0 22px rgba(255,210,122,.35),0 0 2px rgba(255,210,122,.8)!important}
.xm .tm-lbl{font-family:'Mountains of Christmas',var(--display)!important;font-weight:700;text-transform:none;font-size:34px;color:#fff;letter-spacing:.5px}
.xm .tm-bar{height:10px;border-radius:5px;background:#14281D}
.xm .tm-bar span{background:repeating-linear-gradient(-45deg,#fff 0 6px,var(--xm-red) 6px 12px)!important;border-radius:5px}
.xm .tm-rest .tm-bar span{background:repeating-linear-gradient(-45deg,#fff 0 6px,var(--xm-green) 6px 12px)!important}
.xm .tm-count .tm-big{color:#fff!important}

/* barra de abajo */
.xm #nav{background:rgba(7,18,13,.96)}
@media (prefers-reduced-motion:reduce){.xm .top::after,.xm .tm::before,.xm .hw-pip.done{animation:none}}

/* festejo (objetivo cumplido / cinturón nuevo): la medalla es una bolita que se hamaca */
.xm .pt{padding-top:34px}
.xm .pt-medal{position:relative;overflow:visible;background:radial-gradient(circle at 33% 28%,rgba(255,255,255,.55) 0 9px,transparent 10px),var(--xm-red);color:#fff;border:0;box-shadow:0 0 0 4px rgba(255,210,122,.25),0 0 40px rgba(200,16,46,.45);transform-origin:50% -40px;animation:xm-swing 2.2s ease-out}
.xm .pt-medal::before{content:"";position:absolute;left:50%;top:-12px;width:26px;height:14px;margin-left:-13px;border-radius:3px;background:linear-gradient(90deg,#B8A36A,#F0DC9A 50%,#B8A36A)}
.xm .pt-medal::after{content:"";position:absolute;left:50%;bottom:calc(100% + 2px);width:1.5px;height:40px;background:#62806E}
.xm .pt h3{font-family:'Mountains of Christmas',var(--display)!important;font-weight:700;text-transform:none;color:var(--xm-gold);font-size:40px}
.xm .sheet{background:var(--surface)}

/* Mi ficha y perfil: gorro en la foto */
.xm .fc-face{position:relative}
.xm .fc-face::after{content:"";position:absolute;left:50%;top:-22px;width:60px;height:45px;margin-left:-34px;transform:rotate(-14deg);pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M4 26C8 12 18 2 32 6c-4 4-5 9-4 15z' fill='%23C8102E'/%3E%3Cpath d='M12 14c5-6 11-8 17-7' stroke='%23E0213F' stroke-width='3' fill='none'/%3E%3Crect x='1' y='22' width='30' height='7' rx='3.5' fill='%23fff'/%3E%3Ccircle cx='34' cy='7' r='4' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat}
.xm .fc{background:linear-gradient(160deg,#1B3326,#0E1E16 60%)}
