/* Milky Way Interiors - Christmas edition. Everything is scoped to html.xmas (set by the XMAS flag in xmas-flag.js). */
html.xmas{--xgold:#D4AF6A;--xred:#E0303A;--xgreen:#1FA64A;--xpine:#1F6B4A}

/* Build & Book buttons: a soft gold halo that breathes (opacity only) */
html.xmas a.btn[href^="/build"],html.xmas #b-book:not(.dis),html.xmas .tsl a.btn[href="#book"]{position:relative;isolation:isolate}
html.xmas a.btn[href^="/build"]::after,html.xmas #b-book:not(.dis)::after,html.xmas .tsl a.btn[href="#book"]::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
 box-shadow:0 0 0 1px rgba(212,175,106,.55),0 0 18px 1px rgba(212,175,106,.32),0 0 42px 6px rgba(179,18,46,.10);opacity:.55;animation:xglow 3.6s ease-in-out infinite alternate}
html.xmas nav a.btn::after{box-shadow:0 0 0 1px rgba(212,175,106,.5),0 0 12px 0 rgba(212,175,106,.28)}
html.xmas.xcalm .btn::after{display:none}
@keyframes xglow{from{opacity:.45}to{opacity:1}}

/* Holiday card (home, under the hero) */
html.xmas .xcard{position:relative;max-width:640px;margin:0 auto;padding:44px 28px;border-radius:var(--r);background:var(--card);overflow:hidden;isolation:isolate}
html.xmas .xcard::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;
 background:linear-gradient(135deg,rgba(232,206,150,.9),rgba(212,175,106,.3) 34%,rgba(212,175,106,.3) 66%,rgba(232,206,150,.9));
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
html.xmas .xcard::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:60%;pointer-events:none;z-index:-1;
 background:linear-gradient(100deg,rgba(255,236,200,0) 0%,rgba(255,236,200,.075) 50%,rgba(255,236,200,0) 100%);transform:translateX(0);animation:xsweep 9s cubic-bezier(.45,0,.3,1) 2.4s infinite}
@keyframes xsweep{0%{transform:translateX(0)}30%,100%{transform:translateX(267%)}}
html.xmas .xeb{margin:0 0 12px;font-size:15px;line-height:1;font-weight:500;letter-spacing:.16em;font-variant-caps:all-small-caps;color:var(--xgold)}
html.xmas .xcard .h{margin:0}
html.xmas .xoffer{margin-top:12px}

/* Intro + header: pre-baked colored bloom under the logo (opacity-only breath) */
html.xmas #intro .xbloom{position:absolute;left:-7.8%;top:-18.7%;width:115.6%;height:137.4%;display:block;background:center/100% 100% no-repeat;pointer-events:none}
html.xmas .xlogo .xbloom{position:absolute;left:-5%;top:-12%;width:110%;height:124%;display:block;background:center/100% 100% no-repeat;pointer-events:none}
html.xmas #intro .lg{overflow:visible}
html.xmas #intro .lg svg{position:relative;overflow:visible}

/* Header logo: red/green strokes + subtle bloom, no bulb glints */
html.xmas .brand{position:relative}
html.xmas .brand .logo{opacity:0}
html.xmas .xlogo{position:absolute;left:0;top:50%;width:67px;height:28px;margin-top:-14px;pointer-events:none}
html.xmas .xlogo svg{display:block;width:67px;height:28px;overflow:visible;position:relative}
html.xmas body.intro-nav .xlogo{opacity:0}
html.xmas .xlogo .xbloom{opacity:.82;animation:xbreath 3.6s ease-in-out 2.8s infinite alternate}
html.xmas .xlogo.static .xbloom,html.xmas.xcalm .xlogo .xbloom{animation:none}
@keyframes xbreath{from{opacity:.78}to{opacity:.95}}

@media (prefers-reduced-motion:reduce){html.xmas:not(.tesla) .xlogo .xbloom,html.xmas:not(.tesla) .xcard::after,html.xmas:not(.tesla) .btn::after{animation:none}html.xmas:not(.tesla) a.btn[href^="/build"]::after{opacity:.8}}
