/* Reversible winter layer. Saved personal themes and role portraits stay intact. */
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone]{
  --winter-bg:#141819;--winter-panel:#202728;--winter-high:#293335;--winter-text:#f3f6f3;--winter-muted:#b9c9c4;--winter-line:#485d55;--winter-gold:#edcc8d;--winter-green:#9adfc3;--winter-red:#d74e62;
  --bg:var(--winter-bg)!important;--bg2:var(--winter-panel)!important;--card:var(--winter-panel)!important;--card-h:var(--winter-high)!important;
  --text:var(--winter-text)!important;--app-text-color:var(--winter-text)!important;--hint:var(--winter-muted)!important;--gold:var(--winter-gold)!important;--accent:var(--winter-green)!important;--accent-text:#102b22!important;--border:var(--winter-line)!important;
  --town:#9adfc3!important;--mafia:#ff9aa9!important;--solo:#edcc8d!important;--heal:#a4d4f2!important;--check:#d2c3ee!important;--shoot:#f1b5cf!important;--support:#bdc9ef!important;
  --pad-ink:var(--winter-bg)!important;--pad-panel:var(--winter-panel)!important;--pad-panel-2:var(--winter-high)!important;--pad-surface:var(--winter-panel)!important;--pad-surface-soft:var(--winter-high)!important;--pad-glass:var(--winter-bg)!important;
  --pad-ivory:var(--winter-text)!important;--pad-muted:var(--winter-muted)!important;--pad-gold:var(--winter-gold)!important;--pad-gold-bright:var(--winter-gold)!important;--pad-line:var(--winter-line)!important;--pad-line-soft:var(--winter-line)!important;--pad-red:var(--winter-red)!important;--pad-on-accent:#102b22!important;
  --lgd-ink:var(--winter-bg)!important;--lgd-panel:var(--winter-panel)!important;--lgd-panel-2:var(--winter-high)!important;--lgd-white:var(--winter-text)!important;--lgd-muted:var(--winter-muted)!important;--lgd-line:var(--winter-line)!important;--lgd-gold:var(--winter-gold)!important;
  --ui-panel:var(--winter-panel)!important;--ui-panel-2:var(--winter-high)!important;--ui-border:var(--winter-line)!important;--ui-border-soft:var(--winter-line)!important;--ui-gold:var(--winter-gold)!important;
  background:var(--winter-bg)!important;color:var(--winter-text)!important;color-scheme:dark;letter-spacing:0;
}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone="light"]{
  --winter-bg:#f0f5f3;--winter-panel:#fff;--winter-high:#e3eeea;--winter-text:#172f29;--winter-muted:#4c675e;--winter-line:#a2b8ad;--winter-gold:#785216;--winter-green:#246b50;--winter-red:#a32d45;
  --accent-text:#fff!important;--pad-on-accent:#fff!important;--town:#1b6748!important;--mafia:#ab2545!important;--solo:#795916!important;--heal:#245f84!important;--check:#63448e!important;--shoot:#96456b!important;--support:#405b8f!important;color-scheme:light;
}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(.header,.mafia-brand-header,.mafia-lx-header,.bottom-nav){background:var(--winter-bg)!important;border-color:var(--winter-line)!important;box-shadow:none!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] .bottom-nav{border-top:1px solid var(--winter-line)!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(.card,.ann-card,.pad-role-card,.player-row,.pad-host-action,.host-action,.pad-rating-row,.pool-rc,.modal-sheet,.modal-content,.modal-box,.role-modal-card){background:var(--winter-panel)!important;border-color:var(--winter-line)!important;color:var(--winter-text)!important;box-shadow:none!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(.ann-card,.host-action){border-radius:8px!important;border-top:2px solid var(--winter-red)!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]){background:var(--winter-panel)!important;color:var(--winter-text)!important;border-color:var(--winter-line)!important;caret-color:var(--winter-green)}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] ::placeholder{color:var(--winter-muted)!important;opacity:1}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(.btn-primary,.bottom-nav .nav-item.active,.bottom-nav .ni.active){background:var(--winter-green)!important;color:var(--accent-text)!important;border-color:var(--winter-green)!important;box-shadow:none!important}
html[data-season="winter-2026"] :is(#pgRoles .pill.active,#pgLB .ptab.active){background:var(--winter-green)!important;color:var(--accent-text)!important;border-color:var(--winter-green)!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(.btn-outline,.btn-secondary){background:var(--winter-panel)!important;color:var(--winter-text)!important;border-color:var(--winter-line)!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(.stitle,.ha-title,.role-card-name,.pad-category-title,.lgd-role-title,.lgd-role-description){color:var(--winter-text)!important;letter-spacing:0!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(.ha-desc,.form-label,.hint,.text-muted){color:var(--winter-muted)!important}
html[data-season="winter-2026"] :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--winter-gold,#edcc8d)!important;outline-offset:3px}
/* Full-bleed winter artwork lives in the existing headers, never behind controls. */
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] #pgHome :is(.lgd-home-stage,.lgd-home-stage-inner){height:auto!important;min-height:370px!important;max-height:none!important}
html[data-season="winter-2026"] #pgHome .lgd-home-stage{background:var(--winter-bg)!important;overflow:hidden}
html[data-season="winter-2026"] #pgHome .lgd-home-stage-art{opacity:0!important}
html[data-season="winter-2026"] #pgHome .lgd-home-stage::before{content:"";position:absolute;inset:0;height:100%;background:url('/static/winter-club-2026.webp') 88% 55%/cover no-repeat;pointer-events:none;z-index:0}
html[data-season="winter-2026"] #pgHome .lgd-home-stage-shade{height:100%!important;background:linear-gradient(0deg,var(--winter-bg),transparent 36%,#0b151329)!important;z-index:1!important}
html[data-season="winter-2026"] #pgHome .lgd-home-stage-inner{position:relative;z-index:2}
html[data-season="winter-2026"] #pgHome .lgd-home-stage-copy{margin-top:90px!important}
html[data-season="winter-2026"] #pgHome .lgd-home-stage-copy :is(h2,h2 span,p){color:#fff!important;text-shadow:0 2px 8px #000!important}
html[data-season="winter-2026"] #pgHome .lgd-home-kicker{color:#f4dba1!important;text-shadow:0 2px 6px #07110d}
html[data-season="winter-2026"] #pgHome .lgd-home-stage-brand{background:#182622ed!important;border:1px solid #dac08b!important}
html[data-season="winter-2026"] #pgHome .lgd-home-stage-brand :is(strong,small){color:#fff!important}
html[data-season="winter-2026"].mafia-ui-v3 body.pad-premium-app[data-season-tone] #pgHome .stat-box{background:var(--winter-panel)!important;border-color:var(--winter-line)!important;color:var(--winter-text)!important}
html[data-season="winter-2026"].mafia-ui-v3 body.pad-premium-app[data-season-tone] #pgHome :is(.stat-box .n,.lgd-home-content::before,.lgd-home-fold-index){color:var(--winter-gold)!important}
html[data-season="winter-2026"].mafia-ui-v3 body.pad-premium-app[data-season-tone] #pgHome .stat-box .l{color:var(--winter-muted)!important}
html[data-season="winter-2026"].mafia-ui-v3 body.pad-premium-app[data-season-tone] #pgHome .lgd-home-content::before{color:var(--winter-gold)!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] .pad-page-head{position:relative;overflow:hidden;background:linear-gradient(90deg,#10241de8,#10241d50),url('/static/winter-club-2026.webp') center 52%/cover!important;min-height:140px!important;border-bottom:2px solid var(--winter-gold)!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(#pgRoles,#pgLB,#pgProf)>.pad-page-head{height:140px!important}
html[data-season="winter-2026"] .pad-page-head-art{opacity:0!important}
html[data-season="winter-2026"] .pad-page-head-shade{background:none!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] .pad-page-head :is(h2,p,.pad-page-head-kicker){color:#fff!important;text-shadow:0 2px 6px #07110d;position:relative;z-index:2}
html[data-season="winter-2026"] .pad-page-head::after{background:none!important}
.winter-trim,.winter-snow,.winter-lights{display:none;pointer-events:none!important;user-select:none}
html[data-season="winter-2026"] .winter-trim{display:flex;align-items:center;gap:12px;height:48px;margin:4px 0 12px;overflow:hidden}
.winter-trim>span{height:1px;background:var(--winter-line,#485d55);flex:1}
.winter-trim img{width:144px;height:48px;object-fit:contain;flex-shrink:0}
html[data-season="winter-2026"] #pgHome>.winter-trim{margin-inline:16px}
html[data-season="winter-2026"] .winter-snow{display:block;position:absolute;inset:0;overflow:hidden;z-index:1;contain:strict}
.winter-snow i{position:absolute;top:-10px;left:var(--x);width:var(--size);height:var(--size);border-radius:50%;background:#fff;animation:winter-snowfall var(--duration) linear var(--delay) infinite;opacity:.65}
@keyframes winter-snowfall{0%{transform:translate3d(0,-10px,0);opacity:0}10%,85%{opacity:.65}100%{transform:translate3d(22px,420px,0);opacity:0}}
html[data-season="winter-2026"] .winter-lights{position:absolute;inset:0 0 auto;height:18px;display:flex;justify-content:space-around;z-index:3;border-top:1px solid #74867c70}
.winter-lights i{height:9px;width:5px;border-radius:0 0 3px 3px;background:#f4dba1;box-shadow:0 2px 5px #edcc8d80;animation:winter-lights 5s ease-in-out infinite alternate}
.winter-lights i:nth-child(3n){background:#b8ead4;animation-delay:-2s}.winter-lights i:nth-child(3n+1){background:#ed8190;animation-delay:-4s}
@keyframes winter-lights{from{opacity:.65}to{opacity:1}}
html.winter-paused :is(.winter-snow i,.winter-lights i){animation-play-state:paused}
/* The game table remains quiet; no moving overlay or holiday props on role cards. */
html[data-season="winter-2026"] :is(#pgGame .winter-snow,#pgGame .winter-lights,#pgGame .winter-trim){display:none!important}
.winter-preference{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;margin-bottom:20px;border-bottom:1px solid var(--border);color:var(--text)}
.winter-preference strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.winter-switch{position:relative;width:52px;height:32px;flex-shrink:0}
.winter-switch input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;z-index:2}
.winter-switch>span{display:block;width:52px;height:32px;background:#67736d;border:1px solid #8c9f94;border-radius:20px;box-sizing:border-box}
.winter-switch>span::before{content:"";display:block;width:24px;height:24px;margin:3px;border-radius:50%;background:#fff;transition:transform .18s}
.winter-switch input:checked+span{background:#287554;border-color:#72b798}.winter-switch input:checked+span::before{transform:translateX(20px)}
.winter-switch input:focus-visible+span{outline:3px solid var(--gold);outline-offset:3px}
html.mafia-economy :is(.winter-snow,.winter-lights),html[data-a11y-motion="reduce"] .winter-snow{display:none!important}
html[data-a11y-motion="reduce"] .winter-lights i{animation:none!important}
@media(prefers-reduced-motion:reduce){.winter-snow{display:none!important}.winter-lights i{animation:none!important}.winter-switch>span::before{transition:none}}
@media(min-width:700px){html[data-season="winter-2026"] #pgHome .lgd-home-stage::before{background-position:center 55%}}

/* Second pass: festive surfaces throughout the app, without replacing role artwork. */
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone]{--winter-red:#c73853;--winter-gold:#f0cf8c;--winter-line:#657565;--pad-gold:#f0cf8c!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone="light"]{--winter-red:#b12744;--winter-gold:#785216;--winter-line:#9bad9c;--pad-gold:#785216!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(.btn-primary,.bottom-nav .nav-item.active,.bottom-nav .ni.active){background:var(--winter-red)!important;border-color:#e19b91!important;color:#fff!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] .bottom-nav{border-top:2px solid var(--winter-gold)!important;background:var(--winter-bg)!important;box-shadow:inset 0 3px 0 #aa3048!important}
html[data-season="winter-2026"].mafia-ui-v3 body.mp-player-view[data-season-tone] .bottom-nav .nav-item.active{background:var(--winter-red)!important;color:#fff!important}
html[data-season="winter-2026"].mafia-ui-v3 body.pad-premium-app[data-season-tone] .bottom-nav .nav-item.active{background:var(--winter-red)!important;border-color:#e19b91!important;color:#fff!important}
html[data-season="winter-2026"].mafia-ui-v3 body.pad-premium-app[data-season-tone] .bottom-nav .nav-item.active .ni{background:transparent!important;color:#fff!important}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] :is(.ann-card,.host-action){border:1px solid var(--winter-line)!important;border-left:4px solid var(--winter-red)!important;border-top:1px solid var(--winter-gold)!important}
html[data-season="winter-2026"] .winter-trim{height:62px;margin-block:8px 16px}
html[data-season="winter-2026"] .winter-trim img{width:204px;height:62px}
html[data-season="winter-2026"] .winter-trim>span{background:var(--winter-gold);opacity:.7}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] .host-action .ha-icon{background:#214332!important;color:#f3dcac!important;border:1px solid #8e9a73;border-radius:8px}
html[data-season="winter-2026"].mafia-ui-v3 body[data-season-tone] .host-action:nth-child(2n) .ha-icon{background:#6b2637!important;color:#fff!important}
html[data-season="winter-2026"] .winter-lights{height:24px;border-top:2px solid #597a59}
html[data-season="winter-2026"] .winter-lights i{width:7px;height:13px;box-shadow:0 3px 7px #f0cf8c80}
html[data-season="winter-2026"] .lgd-home-stage-brand{border-bottom:3px solid #ca4357!important}
.winter-role-frame{display:none;pointer-events:none!important;user-select:none}
html[data-season="winter-2026"] :is(.role-card,.lgd-role-visual,.lgd-role-modal-art,.lgd-catalog-role-art){position:relative}
html[data-season="winter-2026"] .winter-role-frame{display:block;position:absolute;inset:0;z-index:2;border:1px solid #e2c17e;border-radius:inherit;overflow:hidden;box-sizing:border-box}
html[data-season="winter-2026"] .winter-role-frame::before{content:"";position:absolute;top:-5px;left:0;right:0;height:12px;background:#f5faf7;border-radius:0 0 50% 35%;box-shadow:0 2px 3px #18312626}
html[data-season="winter-2026"] .winter-role-frame::after{content:"";position:absolute;top:4px;right:3px;width:118px;height:40px;background:url('/static/winter-trim-2026.webp') center/contain no-repeat}
html[data-season="winter-2026"] .role-card .winter-role-frame::after{width:64px;height:24px;top:1px;right:-3px}
html[data-season="winter-2026"] .role-card .winter-role-frame::before{height:9px;top:-4px}
html[data-season="winter-2026"] .lgd-role-content{z-index:3}
html[data-season="winter-2026"] .lgd-role-topline{position:relative;z-index:3}
html[data-season="winter-2026"] .lgd-role-visual .winter-role-frame::after{top:54px;right:5px;width:96px;height:32px}
html[data-season="winter-2026"] #pgRoles .role-card-name{border-top:2px solid #a93149!important}
html[data-season="winter-2026"] :is(.lgd-role-art-image,.role-card-img)[data-winter-art]{object-position:center top!important}
