/* Christmas theme — loaded ONLY when it is switched on in Настройки. Turning it off removes this file completely. */
:root{--xm-red:#e2364b;--xm-green:#1f9d63;--xm-gold:#ffcf5a}

/* Festive bar on top */
.xm-bar{position:relative;z-index:60;background:linear-gradient(90deg,#b3132b,#e2364b 40%,#1f7a52);color:#fff;text-align:center;font-weight:700;font-size:.9rem;padding:9px 16px;letter-spacing:.01em}
.xm-bar a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.xm-bar::before,.xm-bar::after{content:"❄";opacity:.7;margin:0 10px}

/* Garland of twinkling lights under the header */
.xm-garland .hdr::after{content:"";position:absolute;left:0;right:0;bottom:-9px;height:14px;pointer-events:none;
  background:
    radial-gradient(circle at 10px 9px,#ff4d5e 0 4px,transparent 5px) 0 0/80px 14px repeat-x,
    radial-gradient(circle at 30px 9px,#ffd23f 0 4px,transparent 5px) 0 0/80px 14px repeat-x,
    radial-gradient(circle at 50px 9px,#3ddc84 0 4px,transparent 5px) 0 0/80px 14px repeat-x,
    radial-gradient(circle at 70px 9px,#4fc3ff 0 4px,transparent 5px) 0 0/80px 14px repeat-x,
    radial-gradient(ellipse 40px 6px at 40px 0,transparent 5px,rgba(30,30,40,.55) 6px,transparent 7px) 0 0/80px 14px repeat-x;
  filter:drop-shadow(0 0 4px rgba(255,210,63,.6));animation:xmTwinkle 1.6s steps(2) infinite}
@keyframes xmTwinkle{50%{filter:drop-shadow(0 0 8px rgba(255,90,110,.9)) brightness(1.25)}}

/* Santa hat on the logo */
.xm-hat .hdr .logo{position:relative}
.xm-hat .hdr .logo::before{content:"";position:absolute;left:-12px;top:-14px;width:34px;height:30px;transform:rotate(-22deg);pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cpath d='M8 44C14 20 30 4 50 8c6 1 10 8 6 12-4-2-8-2-10 2-4 8-6 16-6 22z' fill='%23e2364b'/%3E%3Crect x='2' y='40' width='44' height='12' rx='6' fill='%23fff'/%3E%3Ccircle cx='56' cy='22' r='6' fill='%23fff'/%3E%3C/svg%3E") no-repeat center/contain}

/* Snow canvas */
.xm-snowfall{position:fixed;inset:0;pointer-events:none;z-index:40}

/* Gentle festive accents */
.xmas .hero h1::after{content:" 🎄";font-size:.8em}
.xmas .pcard{position:relative}
.xmas .pcard::before{content:"";position:absolute;top:0;left:0;right:0;height:16px;background:radial-gradient(circle at 10px 0,#fff 10px,transparent 11px) 0 0/28px 16px repeat-x,linear-gradient(#fff,#fff) 0 0/100% 6px no-repeat;filter:drop-shadow(0 2px 2px rgba(20,18,31,.10));z-index:3;pointer-events:none}
.xmas .ftr{background-image:radial-gradient(ellipse 60% 40px at 20% 0,rgba(255,255,255,.08),transparent),radial-gradient(ellipse 50% 30px at 80% 0,rgba(255,255,255,.06),transparent)}
.xmas .fab,.xmas .chat-fab{box-shadow:0 0 0 4px rgba(226,54,75,.25),0 10px 30px rgba(123,92,255,.4)}

@media (prefers-reduced-motion:reduce){.xm-garland .hdr::after{animation:none}.xm-snowfall{display:none}}
@media (max-width:600px){.xm-bar{font-size:.8rem;padding:7px 12px}.xm-bar::before,.xm-bar::after{display:none}.xm-hat .hdr .logo::before{width:26px;height:24px;left:-9px;top:-11px}}
