/* Fireside holiday theme shared by the game interface. */
body:not(.landing-page){
  --g-gold:#c6b69b;
  --g-cyan:#a7c8d6;
  --g-line:#65777b;
  --g-line-soft:#435960;
}

body:not(.landing-page) .game-shell{
  background-image:
    radial-gradient(ellipse at 50% 0,#2d4a2e36,transparent 54%),
    radial-gradient(circle at 18px 28px,#f4dfb588 0 1px,transparent 1.8px),
    radial-gradient(circle at 74px 136px,#f0c18466 0 1px,transparent 2px),
    radial-gradient(circle at 145px 77px,#fff0cc55 0 1px,transparent 1.8px),
    linear-gradient(90deg,#0007,transparent 25%,transparent 75%,#0007),
    var(--g-texture);
  background-size:auto,118px 164px,198px 236px,261px 307px,auto,480px auto;
  background-position:center top,0 0,53px 33px,17px 91px,center top,center top;
  background-repeat:no-repeat,repeat,repeat,repeat,repeat,repeat;
}

body:not(.landing-page) .nev4,
body:not(.landing-page) .v,
body:not(.landing-page) .nev,
body:not(.landing-page) .nev47,
body:not(.landing-page) .page,
body:not(.landing-page) .cm-box,
body:not(.landing-page) .raid-card,
body:not(.landing-page) .coliseum-list-final{
  background:linear-gradient(145deg,#192a33f2,#14272ded),var(--g-texture) center/320px auto;
}

body:not(.landing-page) .nev44,
body:not(.landing-page) .generated-section-title,
body:not(.landing-page) .cm-generated-title{
  color:#ccd8d8;
  background:linear-gradient(90deg,transparent,#9b5140 30%,#bd9a5c 53%,#4c7b51 74%,transparent) center/100% 1px no-repeat;
}

body:not(.landing-page) .nev44>span,
body:not(.landing-page) .generated-section-title>span{background:#1a1415}

body:not(.landing-page) .hud26-name{
  max-width:100%;
  font-size:clamp(16px,4.5vw,21px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

body:not(.landing-page) .hud26-level{background:linear-gradient(140deg,#713730,#183e2b)}
body:not(.landing-page) .hud26-stat{background:linear-gradient(135deg,#282021,#14231b)}
body:not(.landing-page) .hud26-timers{background-color:#1a1415}
body:not(.landing-page) .hud26-progress-track i{background:linear-gradient(#b8c7b3,#7e9f96 50%,#426b68)}

body:not(.landing-page) .winter26-banner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:66px;
  margin:5px 0 12px;
  padding:10px 12px;
  border:1px solid #647a7e;
  background:radial-gradient(ellipse at 50% 100%,#537d7433,transparent 80%),linear-gradient(100deg,#243c45,#203c37);
  color:#d6e3e6;
  text-align:center;
  box-shadow:inset 0 0 0 3px #071a1233,0 4px 14px #0004;
}

body:not(.landing-page) .winter26-banner-snow,
body:not(.landing-page) .winter26-banner-star{
  display:grid;
  flex:0 0 30px;
  width:30px;
  height:30px;
  place-items:center;
  color:#b6d4e2;
  font-size:20px;
  text-shadow:0 0 10px #a8d7e533;
}

body:not(.landing-page) .winter26-banner-copy{display:block;min-width:0}
body:not(.landing-page) .winter26-banner-copy b{display:block;color:#cfdbdf;font:700 16px/1.2 Georgia,serif}
body:not(.landing-page) .winter26-banner-copy small{display:block;margin-top:3px;color:#e0d1bd;font:11px/1.3 Arial,sans-serif}

/* Main menu: warm seasonal tiles instead of one long list. */
body:not(.landing-page) .main26-section{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  margin:0 0 13px;
}

body:not(.landing-page) .main26-section-head{
  grid-column:1/-1;
  color:#c8d8df;
}

body:not(.landing-page) .main26-section-head:before,
body:not(.landing-page) .main26-section-head:after{
  background:linear-gradient(90deg,transparent,#65777b 34%,#d0a962 56%,#4d8056);
}

body:not(.landing-page) .main26-link{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:112px;
  margin:0;
  padding:9px 7px;
  border:1px solid #53676c;
  border-image:none;
  background:linear-gradient(145deg,#203831,#1b2731);
  text-align:center;
}

body:not(.landing-page) .main26-link:hover{background:linear-gradient(145deg,#294b40,#273a46)}
body:not(.landing-page) .main26-link:last-child:nth-child(even){grid-column:1/-1}
body:not(.landing-page) .main26-icon{display:flex;align-items:center;justify-content:center;grid-row:auto}
body:not(.landing-page) .main26 .main26-icon img{width:38px;height:38px;object-fit:contain}
body:not(.landing-page) .main26-copy{min-width:0}
body:not(.landing-page) .main26-copy b{font-size:17px;line-height:1.15;color:#d8e0df}
body:not(.landing-page) .main26-copy small{margin-top:3px;color:#c8b9a9;font:11px/1.25 Arial,sans-serif}
body:not(.landing-page) .main26-note{grid-column:auto;font:11px/1.25 Arial,sans-serif;color:#b6c8ce}
body:not(.landing-page) .main26-arrow{position:absolute;top:3px;right:7px;font:21px/1 Arial,sans-serif;color:#a4c7d7}

body:not(.landing-page) button,
body:not(.landing-page) input[type=submit],
body:not(.landing-page) input[type=button],
body:not(.landing-page) .button_one,
body:not(.landing-page) .cm-btn,
body:not(.landing-page) .cm-btn-inline,
body:not(.landing-page) .mine26-button{
  background:linear-gradient(115deg,#174e39,#0a3026);
  color:#d4e3e6;
}

body:not(.landing-page) button.div_stanciya,
body:not(.landing-page) .div_stanciya,
body:not(.landing-page) .div_stanciya2,
body:not(.landing-page) .div_stanciya3{
  background:linear-gradient(110deg,#203831,#17251c),var(--g-texture) center/320px auto;
}

body:not(.landing-page) button.div_stanciya,
body:not(.landing-page) .ml-action-form button{
  background:linear-gradient(100deg,#344d50,#243c45 48%,#224a43);
  color:#d4e3e6;
}

body:not(.landing-page) .bottom-nav-wrap{background-color:#1a1415}
body:not(.landing-page) .footer_menu .l a.is-active{
  color:#d8e6e9;
  background:radial-gradient(ellipse at bottom,#a64c3b77,transparent 72%),linear-gradient(#30432d55,#211617);
  box-shadow:inset 0 -1px #d5ad67;
}

body:not(.landing-page) .main26-dailybonus-card{background:linear-gradient(110deg,#203831,#1b2731);border-color:#806b49}
body:not(.landing-page) a{color:#b6d5df}
body:not(.landing-page) a:hover{color:#e5f1f4}

@media(max-width:360px){
  body:not(.landing-page) .winter26-banner{min-height:58px;padding:8px;gap:6px}
  body:not(.landing-page) .winter26-banner-copy b{font-size:14px}
  body:not(.landing-page) .winter26-banner-copy small{font-size:10px}
  body:not(.landing-page) .main26-link{min-height:104px;padding:8px 5px}
  body:not(.landing-page) .main26-copy b{font-size:16px}
  body:not(.landing-page) .main26-copy small{font-size:10px}
}


/* FIX 3 — shared winter palette and two tiled, noninteractive snow layers.
   Keep semantic combat/rarity colors and item/portrait artwork untouched. */
:root{color-scheme:dark;--g-bg:#08141e;--g-panel:#112630;--g-gold:#c7b79c;--g-text:#d5dfe3;--g-muted:#9cabb5;--g-cyan:#a6cbdc;--g-line:#65767b;--g-line-soft:#364c57;--g-frame:url('/Images/ui_2026/winter-frame-muted.webp');--winter-ice:#b7d4df;--winter-panel:#13262f;--winter-border:#62777c;--winter-muted-gold:#bbaa8c}
html{min-height:100%;background:#08141e}
body:not(.landing-page),body.landing-page,body.dvl-body,body.winter-standalone26{
  --g-gold:#c7b79c;--g-cyan:#a6cbdc;--g-line:#65767b;--g-line-soft:#364c57;--g-frame:url('/Images/ui_2026/winter-frame-muted.webp');
  --character-gold:#bfcad0;
  isolation:isolate;min-height:100vh;
  background:radial-gradient(ellipse at 50% 0,#20435280,transparent 58%),linear-gradient(180deg,#091923,#0b2029 55%,#09141d)!important;
}
body::before,body::after{content:'';position:fixed;pointer-events:none;z-index:-1;inset:-320px -300px 0;will-change:transform;background-repeat:repeat;opacity:.55}
body::before{background-image:url('/Images/ui_2026/winter-flakes-far.svg');background-size:240px 260px;animation:winter26-far 24s linear infinite}
body::after{background-image:url('/Images/ui_2026/winter-flakes-near.svg');background-size:300px 320px;opacity:.45;animation:winter26-near 32s linear infinite}
@keyframes winter26-far{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,260px,0)}}
@keyframes winter26-near{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,320px,0)}}
body:not(.landing-page) .game-shell,body.landing-page .game-shell,body.character-page .game-shell{
  background:linear-gradient(90deg,#07141c62,#0a1d272a 25%,#0a1d272a 75%,#07141c62)!important;
}
body:not(.landing-page) :is(.nev4,.v,.nev,.nev47,.page,.cm-box,.raid-card,.coliseum-list-final){background:linear-gradient(150deg,#132630ed,#101f27ee),var(--g-texture) center/320px auto;border-image-source:var(--g-frame)}
body:not(.landing-page) :is(.nev44,.generated-section-title,.cm-generated-title,.main26-section-head){color:#c0d8e1;background-image:linear-gradient(90deg,transparent,#648891 45%,transparent)}
body:not(.landing-page) :is(.nev44,.generated-section-title)>span{background:#14262e}
body:not(.landing-page) .main26-link{background:linear-gradient(150deg,#192e37,#17252c);border-color:#4b626d}
body:not(.landing-page) .main26-link:hover{background:linear-gradient(150deg,#263e47,#1c3038)}
body:not(.landing-page) :is(.main26-copy b,.winter26-banner-copy b){color:#d3e0e3}
body:not(.landing-page) .winter26-banner{background:linear-gradient(110deg,#243d3e,#192d39);border-color:#657c80;box-shadow:inset 0 0 0 3px #10262b33,0 4px 14px #0004}
body:not(.landing-page) :is(.hud26-level,.hud26-stat,.hud26-timers){background:linear-gradient(140deg,#1b303b,#14252d)}
body:not(.landing-page) .hud26-name{color:#d3dce0}
body:not(.landing-page) :is(button,input[type=submit],input[type=button],.button_one,.cm-btn,.cm-btn-inline,.mine26-button){background:linear-gradient(145deg,#25454d,#15313c);color:#d7e4e8;border-image-source:var(--g-frame)}
body:not(.landing-page) :is(button.div_stanciya,.ml-action-form button,.div_stanciya,.div_stanciya2,.div_stanciya3){background:linear-gradient(140deg,#213a43,#122731);color:#d4e1e5;border-image-source:var(--g-frame)}
body:not(.landing-page) .bottom-nav-wrap{background:#14252c}
body:not(.landing-page) .footer_menu .l a{color:#b9c9cf}
body:not(.landing-page) .footer_menu .l a.is-active{color:#d6e7ee;background:radial-gradient(ellipse at bottom,#71969c44,transparent 72%),linear-gradient(#223943,#14232c);box-shadow:inset 0 -1px #90acb4}
body:not(.landing-page) .main26-dailybonus-card{background:linear-gradient(120deg,#203832,#182931);border-color:#647a7b}
body:not(.landing-page) a{color:#b5d3df}
body:not(.landing-page) a:hover{color:#e3f2f7}
body:not(.landing-page) .character-profile a{color:#b8cbd2!important}
body.character-page .character-profile{--character-gold:#bdcbd0}
/* Shared palette for standalone V2 screens (no legacy layout reset). */
body.dvl-body .dvl.dvb{background:linear-gradient(150deg,#10242de8,#15282deb);border-image:url('/Images/dungeon_v2/ui/frame-muted.webp') 51 stretch;color:#d5dfe3;box-shadow:0 4px 24px #0005}
body.dvl-body .dvl :is(h2,h3,a,.dvl-enemy-card .dvl-copy strong,.dvb-name){color:#bed5df;text-shadow:none}
body.dvl-body .dvl :is(.dvl-row,.dvb-enemy,.dvb-me,.dvl-roster,details){background:linear-gradient(155deg,#18313a,#0e2029);border-color:#586f78;box-shadow:none}
body.dvl-body .dvl .dvb-enemy[aria-pressed=true]{border-color:#a5cbd7;background:#24434c}
body.dvl-body .dvl .dvl-cooldown{color:#c5dbe0;background:#172b34;border-color:#586f78}
body.dvl-body .dvl :is(.dvl-item-icon,.dvl-enemy-icon,.dvl-banner,.dvb-avatar){border-color:#677c83}
body.dvl-body .dvl header{border-color:#586f78}
body.dvl-body .dvl button:not(.dvb-enemy){background:linear-gradient(#294b55,#17313a);border-color:#698089;color:#dae9ed;box-shadow:none}
body.dvl-body .dvl button:disabled{opacity:.55}
body.dvl-body .dvl #dvl-battle .dvb{background:transparent}
body.winter-standalone26{margin:0;max-width:none;color:#d5dfe3;font:15px/1.5 Arial,sans-serif}
body.winter-standalone26 :is(h1,h2,h3){color:#c0d8e1}
body.winter-standalone26 section{border-color:#607780;background:#142a33ed}
body.winter-standalone26 a{color:#b8d6e0}
body.winter-standalone26 button{border-color:#698089;color:#d6e5e9;background:linear-gradient(#294b55,#17313a)}
/* Reusable closed-location screen: can be included in the game or served before bootstrap. */
.winter-closed-shell{box-sizing:border-box;width:min(100%,480px);min-height:100vh;margin:0 auto;padding:24px 12px;display:grid;align-content:center}
.winter-closed26{box-sizing:border-box;margin:12px 0;padding:30px 20px;text-align:center;background:linear-gradient(150deg,#1a313cf2,#10212bef)!important;border:8px solid transparent!important;border-image:var(--g-frame) 170 / 12px / 0 stretch!important;box-shadow:0 8px 26px #0005;color:#d5dfe3;border-radius:6px}
.winter-closed-icon{display:grid;place-items:center;margin:0 auto 12px;width:68px;height:68px;border:1px solid #597582;border-radius:50%;color:#a6cbdc;background:#10232d}
.winter-closed26 h1{font:700 23px/1.2 Georgia,serif;margin:0 0 12px;color:#d0e0e5!important}
.winter-closed26 p{font:14px/1.6 Arial,sans-serif;color:#bacad2;margin:0 auto 20px;max-width:340px}
.winter-closed26 .winter-closed-back{display:inline-block;padding:10px 22px;border:1px solid #718b94;border-radius:4px;background:linear-gradient(#2b4c56,#18333e);color:#e0edf1!important;text-decoration:none;font:700 14px/1.4 Arial,sans-serif}
@media(max-width:600px){body::before{opacity:.4}body::after{display:none}}
@media(prefers-reduced-motion:reduce){body::before,body::after{animation:none!important;will-change:auto}}
@media print{body::before,body::after{display:none!important}}
/* Standalone buttons have their own compact border; do not inherit legacy border-image slices. */
body.dvl-body .dvl button,body.winter-standalone26 button{border-image:none}
body.landing-page :is(.landing-start,.landing-submit,.landing-header-login){background:linear-gradient(125deg,#304951,#193b42)!important;border-color:#6d858b;color:#dbe6e9;box-shadow:none}
body.landing-page .landing-login{background:linear-gradient(145deg,#1c3039,#12252de9);border-color:#60767e}
body.landing-page .landing-form input{background:#10222c;border-color:#4b6570;color:#d9e5e9}
