/* MAYSON Atelier: Solstice 2026. Independent seasonal visual system.
   Normal | Winter | New Year. No external libraries or network resources. */
:root{--mh-gold:#f4d99c;--mh-ice:#d9f8ff;--mh-forest:#133d37;--mh-midnight:#080e21}
#mayson-seasonal{position:fixed;z-index:490;bottom:max(17px,env(safe-area-inset-bottom));right:16px;pointer-events:none;color:#e9f5ff;font-family:Inter,ui-sans-serif,system-ui,sans-serif}
#mayson-seasonal button{font:inherit;cursor:pointer;touch-action:manipulation}
#mayson-seasonal>*{pointer-events:auto}
#mayson-seasonal-trigger{display:flex;align-items:center;gap:10px;min-height:47px;padding:8px 15px 8px 10px;border:1px solid rgba(189,211,255,.42);border-radius:100px;color:#eff9ff;background:linear-gradient(128deg,rgba(20,32,57,.95),rgba(11,17,36,.95));box-shadow:0 8px 40px #0207167a,0 0 0 1px #e9d29c12 inset;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);letter-spacing:.012em;font-size:12px;font-weight:700;transition:border-color .25s,box-shadow .25s}
#mayson-seasonal-trigger:hover{border-color:rgba(240,214,158,.82);box-shadow:0 8px 40px #0207169c,0 0 24px #ffdc8040}
#mayson-seasonal-trigger .mh-medallion{display:grid;place-items:center;width:28px;height:28px;border:1px solid #f2dba766;border-radius:50%;background:radial-gradient(circle at 30% 25%,#f8e9b94c,#23334d4d);color:var(--mh-gold);font-size:15px}
#mayson-seasonal-trigger .mh-chevron{color:#b9c9da;transition:transform .25s}
#mayson-seasonal-trigger[aria-expanded="true"] .mh-chevron{transform:rotate(180deg)}
#mayson-seasonal button:focus-visible{outline:3px solid #e5c985;outline-offset:3px}
#mayson-seasonal-panel{position:absolute;bottom:calc(100% + 13px);right:0;width:min(354px,calc(100vw - 32px));padding:18px 16px 15px;border:1px solid #d9c59170;border-radius:21px;background:linear-gradient(145deg,rgba(22,37,59,.98),rgba(8,14,31,.99));box-shadow:0 24px 90px #020515d9,0 1px 0 #fff1 inset;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);overflow:hidden;isolation:isolate}
#mayson-seasonal-panel[hidden]{display:none}
#mayson-seasonal-panel:before{content:"";position:absolute;inset:0 0 auto;height:98px;background:radial-gradient(ellipse at 80% 0%,#ecbb6440,transparent 68%);pointer-events:none;z-index:-1}
#mayson-seasonal-panel .mh-top{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:17px}
#mayson-seasonal-panel .mh-eyebrow{display:block;font-size:9px;letter-spacing:.2em;color:#f0d6a2;font-weight:800;text-transform:uppercase;margin-bottom:6px}
#mayson-seasonal-panel .mh-title{display:block;font-size:20px;line-height:1.18;letter-spacing:-.035em;color:#f1f7ff;font-weight:740}
#mayson-seasonal-panel .mh-close{display:grid;place-items:center;width:32px;height:32px;border:1px solid #ffffff24;border-radius:10px;color:#e2ecf5;background:#ffffff0b;font-size:17px;flex-shrink:0}
#mayson-seasonal-panel .mh-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#mayson-seasonal-panel .mh-choice{min-height:88px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;padding:11px 10px;text-align:left;border-radius:13px;border:1px solid #ffffff1d;background:#ffffff08;color:#dbe7f4;transition:background .2s,border-color .2s,transform .2s}
#mayson-seasonal-panel .mh-choice:hover{background:#cfe8ff16;transform:translateY(-1px)}
#mayson-seasonal-panel .mh-choice[aria-pressed="true"]{background:linear-gradient(140deg,#fff2be25,#accdff16);border-color:#e8cf98b5;box-shadow:0 0 0 1px #f3d9a21a inset}
#mayson-seasonal-panel .mh-choice .mh-choice-icon{font-size:18px;line-height:1;color:#e9d8ac}
#mayson-seasonal-panel .mh-choice .mh-choice-name{font-size:11px;font-weight:760;line-height:1.15}
#mayson-seasonal-panel .mh-snowrow{margin-top:13px;padding:11px 2px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ffffff24}
#mayson-seasonal-panel .mh-snowcopy{display:flex;flex-direction:column;gap:3px;max-width:225px}
#mayson-seasonal-panel .mh-snowcopy b{font-size:12px;color:#e5f5ff}
#mayson-seasonal-panel .mh-snowcopy small{font-size:10px;line-height:1.45;color:#a5b8cc}
#mayson-seasonal-panel #mh-snow-switch{min-height:33px;min-width:58px;padding:4px 12px;border:1px solid #7193b867;border-radius:100px;background:#2d405d;color:#cbd8e4;font-size:11px;font-weight:760}
#mayson-seasonal-panel #mh-snow-switch[aria-pressed="true"]{border-color:#d4b979af;color:#1b273c;background:linear-gradient(100deg,#f2d99e,#e9f4ff)}
#mayson-seasonal-panel #mh-snow-switch:disabled{opacity:.45;cursor:not-allowed}
#mayson-seasonal-panel .mh-foot{font-size:10px;line-height:1.4;color:#91a9bf;margin:13px 1px 0}
/* Override previous snow switch UI but preserve its actual animation controller. */
#winter-snow-switch{display:none!important}
html[data-mayson-season="normal"] #winter-snow-canvas,
html[data-mayson-season="normal"] #winter-season-ribbon,
html[data-mayson-season="normal"] #winter-header-ornament,
html[data-mayson-season="normal"] #winter-system-map-snowcap,
html[data-mayson-season="normal"] .winter-snowman,
html[data-mayson-season="normal"] .winter-frame-glint,
html[data-mayson-season="normal"] .winterHeroFx,
html[data-mayson-season="normal"] .winterCtaShimmer,
html[data-mayson-season="normal"] #mayson-festive-layer,
html[data-mayson-season="normal"] #mayson-festive-tree,
html[data-mayson-season="normal"] #mayson-festive-lights{display:none!important}
html[data-mayson-season="normal"] .winter-frost-card:before,
html[data-mayson-season="normal"] .winter-frost-card:after,
html[data-mayson-season="normal"] .winterHeroCta:before,
html[data-mayson-season="normal"] .winterHeroCta:after{content:none!important;box-shadow:none!important;animation:none!important}
html[data-mayson-snow="off"] #winter-snow-canvas{display:none!important}
html[data-mayson-season="winter"] #mayson-festive-layer,
html[data-mayson-season="winter"] #mayson-festive-tree,
html[data-mayson-season="winter"] #mayson-festive-lights{display:none!important}
/* Snow and New Year remain mutually independent. Holiday ornaments stay without snowfall. */
html[data-mayson-season="festive"] .hero{isolation:isolate}
html[data-mayson-season="festive"] .hero:after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 78% 24%,rgba(232,161,97,.14),transparent 42%),radial-gradient(ellipse at 5% 75%,rgba(40,164,158,.13),transparent 60%);mix-blend-mode:screen}
html[data-mayson-season="festive"] .heroGrid{position:relative;z-index:2}
html[data-mayson-season="festive"] .hero h1 .grad{background:linear-gradient(115deg,#eeb9f3 0%,#b4b8ff 24%,#79dff7 47%,#efd7a6 75%,#eec78a 100%);background-clip:text;-webkit-background-clip:text;color:transparent}
html[data-mayson-season="festive"] .hero .btn.primary{position:relative;box-shadow:0 0 27px rgba(235,208,151,.22),0 10px 32px rgba(29,18,67,.4);border:1px solid rgba(255,245,213,.73);background:linear-gradient(112deg,#d2b6f9,#8ed4fa 55%,#f6ddaa);color:#121a2d}
html[data-mayson-season="festive"] .arch{box-shadow:0 38px 120px #061024b5,0 0 42px rgba(242,191,116,.13);border-color:#8b997e80}
html[data-mayson-season="festive"] .archTop{color:#ecddbb}
html[data-mayson-season="festive"] .archHub{box-shadow:0 0 0 1px #f4d295dd,0 0 0 6px #f6df8c19,0 0 55px #d7c6b94d;border-color:#495d6e}
html[data-mayson-season="festive"] .archNode.active{box-shadow:0 0 14px #d6b67b44}
html[data-mayson-season="festive"] #mayson-festive-layer{display:block}
#mayson-festive-layer{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;display:none}
#mayson-festive-layer .mh-aurora{position:absolute;inset:-13% -15% -25%;background:radial-gradient(ellipse 35% 48% at 78% 31%,rgba(220,155,92,.20),transparent 72%),radial-gradient(ellipse 48% 50% at 18% 54%,rgba(45,169,167,.19),transparent 70%);opacity:.74;transform:translate3d(0,0,0);animation:mh-breathe 14s ease-in-out infinite alternate}
#mayson-festive-layer .mh-star{position:absolute;left:var(--mh-x);top:var(--mh-y);width:var(--mh-size);height:var(--mh-size);transform:rotate(45deg);background:#f7edd2;border-radius:2px;opacity:var(--mh-opacity);box-shadow:0 0 14px rgba(253,220,142,.55);animation:mh-star 5s ease-in-out infinite alternate;animation-delay:var(--mh-delay)}
#mayson-festive-layer .mh-star:before{content:"";position:absolute;left:50%;top:50%;width:3px;height:210%;transform:translate(-50%,-50%);background:linear-gradient(transparent,rgba(245,240,220,.8),transparent);border-radius:50%}
#mayson-festive-layer .mh-star:after{content:"";position:absolute;left:50%;top:50%;width:210%;height:3px;transform:translate(-50%,-50%);background:linear-gradient(90deg,transparent,rgba(245,240,220,.8),transparent);border-radius:50%}
@keyframes mh-star{0%,100%{opacity:.35;transform:rotate(45deg) scale(.8)}50%{opacity:1;transform:rotate(45deg) scale(1.05)}}
@keyframes mh-breathe{from{opacity:.55;transform:translate3d(-1%,0,0)}to{opacity:.95;transform:translate3d(1%,0,0)}}
/* A cinematic but discreet frost and fir silhouette, not a floating stock illustration. */
#mayson-festive-tree{position:absolute;z-index:2;right:clamp(12px,5vw,70px);top:12px;width:103px;height:139px;pointer-events:none;opacity:.86;filter:drop-shadow(0 9px 18px #021b255c)}
#mayson-festive-tree svg{display:block;width:100%;height:100%}
#mayson-festive-tree .mh-tree-star{filter:drop-shadow(0 0 6px rgba(255,227,154,.85));animation:mh-tree-luminous 6s ease-in-out infinite alternate}
@keyframes mh-tree-luminous{from{opacity:.65}to{opacity:1}}
#mayson-festive-lights{position:absolute;z-index:5;top:0;left:8%;width:84%;height:45px;pointer-events:none;overflow:visible}
#mayson-festive-lights circle{filter:drop-shadow(0 0 5px #f0c17a99);animation:mh-garland 6s ease-in-out infinite alternate}
#mayson-festive-lights circle:nth-of-type(even){animation-delay:-2.4s}
@keyframes mh-garland{from{opacity:.46}to{opacity:.96}}
/* Santa cap is layered over the existing avatar, so identity remains unchanged. */
#mayson-avatar-holiday-cap{position:absolute!important;display:none;z-index:30!important;top:-37px;left:-18px;width:142px;height:79px;pointer-events:none;overflow:visible;max-width:none!important;transform:rotate(-5deg);filter:drop-shadow(0 6px 5px rgba(0,7,24,.38))}
html[data-mayson-season="festive"] #mayson-avatar-holiday-cap{display:block}
#mayson-avatar-holiday-cap .mh-hat-glint{animation:mh-tree-luminous 5s ease-in-out infinite alternate}
/* Atmospheric controls support compact phones and safe areas. */
@media(max-width:650px){#mayson-seasonal{bottom:max(13px,env(safe-area-inset-bottom));right:11px}#mayson-seasonal-trigger{font-size:11px;padding:7px 11px 7px 8px;min-height:43px}#mayson-seasonal-panel{width:min(335px,calc(100vw - 22px))}#mayson-festive-tree{width:61px;height:88px;top:13px;right:7px;opacity:.73}#mayson-festive-lights{height:36px}#mayson-avatar-holiday-cap{width:129px;height:72px;top:-32px;left:-14px}}
@media(max-width:355px){#mayson-seasonal-trigger .mh-medallion{width:24px;height:24px}#mayson-seasonal-panel{padding:14px 11px}#mayson-seasonal-panel .mh-choice{padding:9px 6px}}
@media(prefers-reduced-motion:reduce){#mayson-festive-layer .mh-star,#mayson-festive-layer .mh-aurora,#mayson-festive-tree .mh-tree-star,#mayson-festive-lights circle,#mayson-avatar-holiday-cap .mh-hat-glint{animation:none!important}#winter-snow-canvas{display:none!important}#mayson-seasonal .mh-choice{transition:none}}
@media(forced-colors:active){#mayson-festive-tree,#mayson-festive-layer,#mayson-festive-lights,#mayson-avatar-holiday-cap{display:none!important}#mayson-seasonal-panel .mh-choice[aria-pressed="true"]{outline:2px solid Highlight}}
/* Keep the compact control clear of the legacy lower-left winter ribbon. */
html[data-mayson-season="festive"] #winter-season-ribbon{display:none!important}
@media(max-width:650px){
  #winter-season-ribbon{display:none!important}
  #mayson-festive-tree{top:205px;right:17px;width:62px;height:84px;opacity:.82}
}
