/* Approved seasonal skins: real artwork, real existing controls and live data. */
html[data-season=halloween]{--season-accent:#cf702b;--season-glow:#d7622838;--season-image:url('assets/seasons/v2/halloween-atlas.png')}
html[data-season=christmas]{--season-accent:#d6b56d;--season-glow:#b5dcca30;--season-image:url('assets/seasons/v2/christmas-atlas.png')}
html[data-season=newyear]{--season-accent:#e9bf55;--season-glow:#e6b84540;--season-image:url('assets/seasons/v2/newyear-atlas.png')}
.wb-season-frame{position:fixed;inset:0;z-index:35;pointer-events:none!important;user-select:none;overflow:hidden}
.wb-season-frame[hidden]{display:none!important}.wb-season-frame *{pointer-events:none!important;box-sizing:border-box}
.wb-season-frame>div{position:absolute;background-image:var(--season-art);background-repeat:no-repeat}
.wb-season-scene{background-size:100% 200%;background-position:center top}
.wb-season-header{left:calc(var(--sx) + var(--sw)*.277);top:var(--sy);width:calc(var(--sw)*.353);height:calc(var(--sh)*.071);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 88%,transparent)}
.wb-season-hero{left:calc(var(--sx) + var(--sw)*.164);top:calc(var(--sy) + var(--sh)*.082);width:calc(var(--sw)*.562);height:calc(var(--sh)*.182);border:1px solid var(--season-accent);border-radius:6px;padding:calc(var(--sh)*.035) calc(var(--sw)*.018);box-shadow:0 0 16px var(--season-glow);overflow:hidden;display:flex;justify-content:center;flex-direction:column;gap:calc(var(--sh)*.012)}
.wb-season-hero strong{font:900 clamp(20px,2.05vw,45px)/1.08 Arial,sans-serif;letter-spacing:.025em;color:#f6f8fa;text-shadow:0 2px 8px #000;margin:0}
.wb-season-hero small{font:800 clamp(9px,.77vw,17px)/1.3 Arial,sans-serif;letter-spacing:.24em;color:#efc16b;text-shadow:0 1px 4px #000}
.wb-season-still{background-size:300% 200%;background-position:left bottom}
.wb-season-sidebar{left:calc(var(--sx) + var(--sw)*.002);top:calc(var(--sy) + var(--sh)*.65);width:calc(var(--sw)*.148);height:calc(var(--sh)*.24);filter:drop-shadow(0 0 14px var(--season-glow))}
.wb-season-corner{background-size:300% 200%;background-position:right bottom;opacity:.95}
.wb-season-logo-corner{left:var(--sx);top:var(--sy);width:calc(var(--sw)*.065);height:calc(var(--sh)*.085);transform:rotate(180deg);mask-image:linear-gradient(135deg,#000,transparent 83%)}
.wb-season-edge-corner{right:0;top:0;width:65px;height:55px;transform:scaleY(-1)}
.wb-season-hero-corner{left:calc(var(--sx) + var(--sw)*.675);top:calc(var(--sy) + var(--sh)*.207);width:calc(var(--sw)*.051);height:calc(var(--sh)*.057)}
html[data-season]:not([data-season=""]) :is(.alliance-roles-panel,.live-events-panel,.live-activity-panel,.live-clock-panel){border-color:var(--season-accent)!important;box-shadow:0 0 12px var(--season-glow),inset 0 1px #ffffff05!important}
html[data-season]:not([data-season=""]) :is(.alliance-roles-panel,.live-events-panel,.live-clock-panel)::after{content:'';position:absolute;bottom:-1px;right:-1px;width:48px;height:42px;background:var(--season-image) right bottom/300% 200% no-repeat;pointer-events:none;opacity:.85}
html[data-season]:not([data-season=""]) .live-clock-panel{background-image:linear-gradient(90deg,#08131ff2,#08131fb0 60%,#08131f77),var(--season-image)!important;background-size:100% 100%,100% 200%!important;background-position:center,center top!important}
.wb-season-settings{margin:20px 0;padding:16px;border:1px solid #355061;border-radius:8px;background:#0b1923;color:#d9e5ed;min-width:0}.wb-season-settings h3{margin:0 0 12px;color:#efbc60}.wb-season-settings label{display:grid;gap:8px}.wb-season-settings select{width:100%;padding:12px;border:1px solid #526373;border-radius:6px;background:#08141c;color:#eef3f6;font:inherit;min-height:44px}.wb-season-settings p{font-size:12px;line-height:1.5;color:#9bb1bf;margin:10px 0 0}.wb-season-settings select:focus-visible{outline:2px solid #efbc60;outline-offset:2px}
@media(max-width:760px){
 .wb-season-frame{display:none!important}
 html[data-season]:not([data-season=""]) #wb-mobile .wb-top{background-image:linear-gradient(90deg,#07111fd9,#07111f77,#07111fd9),var(--season-image)!important;background-size:100% 100%,100% 200%!important;background-position:center,center top!important;border-bottom-color:var(--season-accent)!important;box-shadow:0 0 14px var(--season-glow)}
 html[data-season]:not([data-season=""]) #wb-mobile :is(.wb-clock,.wb-tile,.wb-card,.wb-war-alert){border-color:var(--season-accent)!important;box-shadow:0 0 9px var(--season-glow)}
 html[data-season]:not([data-season=""]) #wb-mobile .wb-clock{background-image:linear-gradient(90deg,#06111fcc,#06111fa6),var(--season-image)!important;background-size:100% 100%,100% 200%!important;background-position:center,center top!important}
 html[data-season]:not([data-season=""]) #wb-mobile .wb-clock::before{display:none}
 html[data-season=halloween] #wb-mobile .wb-brand::before{content:'🎃 ';font-size:20px}
 html[data-season=christmas] #wb-mobile .wb-brand::before{content:'🎄 ';font-size:20px}
 html[data-season=newyear] #wb-mobile .wb-brand::before{content:'✨ ';font-size:20px}
 .wb-season-settings{padding:12px}.wb-season-settings select{font-size:16px}
}
/* Seasonal appearance belongs to the whole application, not just Home. */
body:is(:has(.modal-backdrop:not([hidden])),:has(#settingsBackdrop:not([hidden])),:has(.calendar-site-page:not([hidden]))) .wb-season-frame :is(.wb-season-hero,.wb-season-hero-corner){display:none!important}
html[data-season]:not([data-season=""]) :is(.modal.site-function-panel,.settings-panel,.calendar-reference-board,.tools-tile,.zr-panel,.zr-feed-status,.wb-season-settings){border-color:var(--season-accent)!important;box-shadow:0 0 12px var(--season-glow)!important}
html[data-season]:not([data-season=""]) :is(.war-modal-header,.calendar-reference-header,.settings-panel-header,.settings-header){background-image:linear-gradient(90deg,#07141ef2,#07141ed9 55%,#07141e99),var(--season-image)!important;background-position:center,center top!important;background-size:100% 100%,100% 200%!important;border-bottom-color:var(--season-accent)!important}
html[data-season]:not([data-season=""]) :is(.site-function-panel,.settings-panel,.calendar-reference-board) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:color-mix(in srgb,var(--season-accent) 48%,#2e4655)!important}
html[data-season]:not([data-season=""]) :is(.site-function-panel,.settings-panel,.calendar-reference-board) :is(input,select,textarea,button):focus-visible{outline-color:var(--season-accent)!important}
html[data-season]:not([data-season=""]) :is(.tools-tile,.zr-panel,.calendar-side-card,.announcement-section,.announcement-card,.settings-section){border-color:color-mix(in srgb,var(--season-accent) 70%,#344655)!important}
html[data-season]:not([data-season=""]) :is(.calendar-reference-title,.war-modal-icon,.modal-kicker,.settings-panel h3){color:var(--season-accent)!important}
@media(max-width:760px){
 html[data-season]:not([data-season=""]) #wb-mobile :is(.wb-card,.wb-panel,.wb-form,.tools-tile,.zr-panel,.zr-feed-status,fieldset){border-color:var(--season-accent)!important;box-shadow:0 0 8px var(--season-glow)!important}
 html[data-season]:not([data-season=""]) #wb-mobile .wb-page-head{background-image:linear-gradient(90deg,#08131ff2,#08131f99),var(--season-image)!important;background-position:center,center top!important;background-size:100% 100%,100% 200%!important;border-bottom:1px solid var(--season-accent);padding:14px 10px;border-radius:6px;color:#f6e6bf}
 html[data-season]:not([data-season=""]) #wb-mobile .wb-content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:color-mix(in srgb,var(--season-accent) 48%,#2e4655)!important}
 html[data-season]:not([data-season=""]) #wb-mobile .wb-content h2{color:var(--season-accent)!important}
}



/* Frozen approved artwork. Crops expose only decoration and static branding, never mockup data. */
html[data-season=halloween]{--season-reference:url("assets/seasons/v3/halloween-reference.png");--season-image:var(--season-reference)}
html[data-season=christmas]{--season-reference:url("assets/seasons/v3/christmas-reference.png");--season-image:var(--season-reference)}
html[data-season=newyear]{--season-reference:url("assets/seasons/v3/newyear-reference.png");--season-image:var(--season-reference)}
.wb-season-header{left:var(--sx);width:calc(var(--sw)*.693);mask-image:none;background-image:var(--season-reference)!important;background-size:144.285714% 1290.140845%!important;background-position:0.000000% 0.000000%!important;background-repeat:no-repeat!important;}
.wb-season-hero{padding:0!important;gap:0!important;background-image:var(--season-reference)!important;background-size:177.376033% 542.011834%!important;background-position:37.516689% 10.575636%!important;background-repeat:no-repeat!important;}.wb-season-hero strong,.wb-season-hero small{display:none!important}
.wb-season-sidebar{left:var(--sx);top:calc(var(--sy) + var(--sh)*.65);width:calc(var(--sw)*.1515);height:calc(var(--sh)*.35);filter:none;background-image:var(--season-reference)!important;background-size:660.384615% 286.250000%!important;background-position:0.000000% 100.000000%!important;background-repeat:no-repeat!important;}
.wb-season-logo-corner,.wb-season-edge-corner,.wb-season-hero-corner{display:none!important}
.wb-season-top-edge{left:var(--sx);top:var(--sy);width:var(--sw);height:calc(var(--sh)*.011);background-image:var(--season-reference)!important;background-size:100.000000% 9160.000000%!important;background-position:0.000000% 0.000000%!important;background-repeat:no-repeat!important;}
.wb-season-nav-edge{left:calc(var(--sx) + var(--sw)*.144);top:calc(var(--sy) + var(--sh)*.075);width:calc(var(--sw)*.009);height:calc(var(--sh)*.575);background-image:var(--season-reference)!important;background-size:11446.666667% 174.476190%!important;background-position:14.453584% 18.158568%!important;background-repeat:no-repeat!important;}
.wb-season-trim{position:absolute;inset:-1px;pointer-events:none!important;z-index:2;overflow:visible;border-radius:inherit}.wb-season-trim *{position:absolute;display:block;pointer-events:none!important}
html[data-season=""] .wb-season-trim{display:none!important}
.wb-season-trim-top{left:0;right:0;top:-3px;height:14px;background-image:var(--season-reference)!important;background-size:404.000000% 5388.235294%!important;background-position:98.606811% 7.230256%!important;background-repeat:no-repeat!important;}
.wb-season-trim-bottom{left:0;right:0;bottom:-3px;height:16px;background-image:var(--season-reference)!important;background-size:404.000000% 6542.857143%!important;background-position:98.606811% 44.678492%!important;background-repeat:no-repeat!important;}
.wb-season-trim-left{left:-7px;top:0;bottom:0;width:17px;background-image:var(--season-reference)!important;background-size:8585.000000% 281.846154%!important;background-position:73.895109% 12.690355%!important;background-repeat:no-repeat!important;}
.wb-season-trim-right{right:-7px;top:0;bottom:0;width:17px;background-image:var(--season-reference)!important;background-size:9538.888889% 281.846154%!important;background-position:100.000000% 12.690355%!important;background-repeat:no-repeat!important;}
.live-events-panel .wb-season-trim-bottom{height:46px;bottom:-3px;background-image:var(--season-reference)!important;background-size:404.000000% 2035.555556%!important;background-position:98.606811% 77.956372%!important;background-repeat:no-repeat!important;}
html[data-season]:not([data-season=""]) :is(.alliance-roles-panel,.live-events-panel,.live-clock-panel)::after{display:none!important}
html[data-season]:not([data-season=""]) :is(.war-modal-header,.calendar-reference-header,.settings-panel-header,.settings-header){background-image:linear-gradient(90deg,#07131ff0,#07131f9c),var(--season-reference)!important;background-size:100% 100%,390.227273% 555.151515%!important;background-position:center,62.646829% 10.785619%!important;background-repeat:no-repeat!important;}
html[data-season=halloween] .live-clock-panel,html[data-season=newyear] .live-clock-panel{background:linear-gradient(90deg,#08131ff0,#08131f66 65%,#bd571e20),url("assets/game-clock-bg.jpg") center/cover no-repeat!important}
html[data-season=christmas] .live-clock-panel{background-image:linear-gradient(90deg,#07131ff0,#07131f9c),var(--season-reference)!important;background-size:100% 100%,390.227273% 555.151515%!important;background-position:center,62.646829% 10.785619%!important;background-repeat:no-repeat!important;}
@media(max-width:760px){html[data-season]:not([data-season=""]) #wb-mobile :is(.wb-top,.wb-clock,.wb-page-head){background-image:linear-gradient(90deg,#07131ff0,#07131f9c),var(--season-reference)!important;background-size:100% 100%,390.227273% 555.151515%!important;background-position:center,62.646829% 10.785619%!important;background-repeat:no-repeat!important;}.wb-season-trim{display:none!important}}

/* The clock uses only the artwork at the right of the approved clock panel: no sample numbers or UI. */
html[data-season]:not([data-season=""]) #liveClockPanel{background-image:linear-gradient(90deg,#08131ff2,#08131fb0 50%,#08131f22),var(--season-reference)!important;background-size:100% 100%,1040.606061% 916.000000%!important;background-position:center,99.742268% 99.632353%!important;background-repeat:no-repeat!important}
.live-events-panel .wb-season-trim-bottom{mask-image:linear-gradient(to bottom,transparent,#000 32%)}

html[data-season]:not([data-season=""]) #liveClockPanel{background:#08131f!important}
.wb-season-clock-art{position:absolute;inset:0;pointer-events:none!important;clip-path:polygon(60% 47%,100% 47%,100% 100%,60% 100%);mask-image:linear-gradient(90deg,transparent 58%,#000 78%);background-image:var(--season-reference);background-size:386.711712% 482.105263%;background-position:100.000000% 100.000000%;background-repeat:no-repeat;}
.wb-season-events-ornament{position:absolute;right:-14px;bottom:-4px;width:82px;height:126px;pointer-events:none!important;z-index:3;mask-image:linear-gradient(90deg,transparent,#000 38%),linear-gradient(0deg,#000 80%,transparent);mask-composite:intersect;background-image:var(--season-reference);background-size:1635.238095% 495.135135%;background-position:9.615385% 83.447332%;background-repeat:no-repeat;}
html[data-season=""] :is(.wb-season-clock-art,.wb-season-events-ornament){display:none!important}
@media(max-width:760px){.wb-season-clock-art,.wb-season-events-ornament{display:none!important}}

@media(max-width:760px){
/* User-approved mobile composition, copied without redesign. */
html[data-season]:not([data-season=""]) #wb-mobile .mobile-season-hero{position:relative;height:112px;min-height:112px;border:1px solid var(--season-accent);border-radius:7px;margin:0 0 16px;overflow:hidden;box-shadow:0 0 13px var(--season-glow);background-image:var(--season-reference);background-size:390.227273% 555.151515%;background-position:62.646829% 10.785619%;background-repeat:no-repeat;}
html[data-season]:not([data-season=""]) #wb-mobile .mobile-season-hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#04101fea,#04101fa0 55%,transparent)}
html[data-season]:not([data-season=""]) #wb-mobile .mobile-season-hero strong{position:absolute;left:16px;top:23px;z-index:1;font:900 22px/1.04 Arial,sans-serif;letter-spacing:.035em;color:#fff;text-shadow:0 2px 4px #000}
html[data-season]:not([data-season=""]) #wb-mobile .mobile-season-hero small{position:absolute;left:17px;bottom:17px;z-index:1;color:#f1c66f;font:700 8px/1.2 Arial,sans-serif;letter-spacing:.17em}
html[data-season]:not([data-season=""]) #wb-mobile .mobile-season-hero i{position:absolute;right:-4px;bottom:0;width:92px;height:108px;mask-image:linear-gradient(90deg,transparent,#000 32%);background-image:var(--season-reference);background-size:1560.909091% 495.135135%;background-position:9.334163% 84.131327%;background-repeat:no-repeat;}
html[data-season]:not([data-season=""]) #wb-mobile .mobile-season-card-trim{position:absolute;left:0;right:0;bottom:0;height:11px;pointer-events:none;opacity:.95;background-image:var(--season-reference);background-size:404.000000% 6542.857143%;background-position:98.606811% 44.678492%;background-repeat:no-repeat;}
html[data-season]:not([data-season=""]) #wb-mobile .wb-top::after{content:'';position:absolute;top:0;right:0;width:54px;height:19px;pointer-events:none;background-image:var(--season-reference);background-size:3179.629630% 4821.052632%;background-position:100.000000% 0.000000%;background-repeat:no-repeat;}
html[data-season]:not([data-season=""]) #wb-mobile .wb-top{position:relative}
html[data-season]:not([data-season=""]) #wb-mobile .wb-tile{position:relative}
html[data-season]:not([data-season=""]) #wb-mobile .wb-bottom{background:linear-gradient(#0d1e2d,#071019);border-top:1px solid var(--season-accent);box-shadow:0 -3px 13px var(--season-glow)}

.mobile-season-hero,.mobile-season-hero *,.mobile-season-card-trim{pointer-events:none!important}
}
