/* CHEATER.fun Winter Edition 2026 — isolated seasonal header */
.ch-winter-header{
  --ch-winter-blue:#087df2;
  --ch-winter-blue-2:#1aa7ff;
  --ch-winter-ink:#10213a;
  --ch-winter-muted:#61738d;
  --ch-winter-border:rgba(35,91,157,.14);
  position:relative;
  z-index:1045;
  width:100%;
  margin:0;
  color:var(--ch-winter-ink);
  background:#f7fbff;
  box-shadow:0 10px 28px rgba(27,75,125,.09);
  isolation:isolate;
}
.ch-winter-header *{box-sizing:border-box}
.ch-winter-header a{text-decoration:none}
.ch-winter-header__hero{
  position:relative;
  min-height:188px;
  overflow:hidden;
  background:#d9ecff url('../winter-header-bg.webp') center 22%/cover no-repeat;
  border-bottom:1px solid rgba(255,255,255,.82);
}
.ch-winter-header__hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(244,250,255,.22),rgba(247,251,255,.06) 55%,rgba(240,248,255,.08));
  pointer-events:none;
}
.ch-winter-header__hero-inner{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:clamp(16px,2.4vw,42px);
  width:min(1660px,calc(100% - 64px));
  min-height:188px;
  margin:0 auto;
}
.ch-winter-brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  gap:11px;
  min-width:0;
  color:#0a1a34!important;
}
.ch-winter-brand__mark{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 66px;width:66px;height:72px}
.ch-winter-brand__symbol{width:62px;height:62px;fill:#087df2;filter:drop-shadow(0 3px 4px rgba(0,55,132,.18))}
.ch-winter-brand__hat{position:absolute;z-index:2;top:-3px;left:-3px;width:43px;height:35px;transform:rotate(-13deg);filter:drop-shadow(0 2px 2px rgba(16,35,63,.18))}
.ch-winter-brand__copy{display:flex;flex-direction:column;min-width:0}
.ch-winter-brand__copy strong{font-size:clamp(26px,2.45vw,42px);font-weight:900;letter-spacing:-1.6px;line-height:1;color:#10203a;white-space:nowrap}
.ch-winter-brand__copy strong span{color:#087df2}
.ch-winter-brand__copy small{margin:8px 0 0 2px;color:#425b7f;font-size:10px;font-weight:850;letter-spacing:3.1px;line-height:1.2;white-space:nowrap}
.ch-winter-edition{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  flex:0 0 auto;
  min-height:43px;
  padding:0 17px;
  border:1px solid rgba(255,255,255,.82);
  border-radius:999px;
  background:linear-gradient(135deg,#087df2,#27a9ff);
  box-shadow:0 7px 18px rgba(0,116,237,.22),inset 0 1px 0 rgba(255,255,255,.32);
  color:#fff;
  font-size:12px;
  font-weight:850;
  letter-spacing:.55px;
  white-space:nowrap;
}
.ch-winter-edition svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ch-winter-tools{display:flex;align-items:center;gap:10px;min-width:0;margin-left:auto}
.ch-winter-search{
  display:flex;
  align-items:center;
  gap:10px;
  width:clamp(270px,27vw,465px);
  min-height:48px;
  padding:0 12px 0 16px;
  border:1px solid rgba(61,103,156,.16);
  border-radius:17px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 24px rgba(24,66,119,.10),inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(8px);
}
.ch-winter-search:focus-within{border-color:rgba(8,125,242,.5);box-shadow:0 0 0 4px rgba(8,125,242,.10),0 8px 24px rgba(24,66,119,.10)}
.ch-winter-search__icon{flex:0 0 20px;width:20px;height:20px;fill:none;stroke:#506887;stroke-width:1.8;stroke-linecap:round}
.ch-winter-search input[type="search"]{width:100%;min-width:0;height:44px;padding:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#172c49!important;font-size:14px}
.ch-winter-search input::placeholder{color:#667a96;opacity:1}
.ch-winter-search kbd{flex:0 0 auto;padding:5px 8px;border:1px solid #d6e1f0;border-radius:7px;background:#f4f8fd;color:#526781;font-family:inherit;font-size:10px;font-weight:750;white-space:nowrap;box-shadow:0 1px 0 rgba(12,37,69,.04)}
.ch-winter-icon-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid rgba(56,102,161,.16);
  border-radius:13px;
  background:rgba(255,255,255,.88);
  color:#193758!important;
  box-shadow:0 4px 13px rgba(25,70,122,.08);
  cursor:pointer;
  transition:transform .16s ease,background-color .16s ease,border-color .16s ease;
}
.ch-winter-icon-btn:hover{transform:translateY(-1px);border-color:rgba(8,125,242,.32);background:#fff}
.ch-winter-icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ch-winter-account{display:flex;align-items:center;min-width:0;max-width:210px;color:#17324f}
.ch-winter-signin{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 14px;border:0;border-radius:12px;background:#087df2;color:#fff;font-size:13px;font-weight:800;white-space:nowrap;box-shadow:0 7px 17px rgba(8,125,242,.22);cursor:pointer}
.ch-winter-signin svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ch-winter-account .userinfo,.ch-winter-account .user-menu,.ch-winter-account .login_btn{max-width:100%;margin:0!important}
.ch-winter-snow{position:absolute;z-index:1;inset:0;pointer-events:none;opacity:.38;background-image:radial-gradient(circle,rgba(255,255,255,.95) 1px,transparent 1.8px),radial-gradient(circle,rgba(255,255,255,.8) 1px,transparent 1.7px);background-size:83px 83px,137px 137px;background-position:5px 10px,45px 56px;animation:chWinterSnow 24s linear infinite}
@keyframes chWinterSnow{from{transform:translate3d(0,-12px,0)}to{transform:translate3d(10px,65px,0)}}
.ch-winter-nav{position:relative;z-index:3;min-height:72px;border-bottom:3px solid transparent;border-image:linear-gradient(90deg,#087df2,#25c1ff,#087df2) 1;background:rgba(255,255,255,.96);box-shadow:0 7px 18px rgba(20,77,137,.06);backdrop-filter:blur(12px)}
.ch-winter-nav__inner{display:flex;align-items:center;gap:18px;width:min(1660px,calc(100% - 64px));min-height:69px;margin:0 auto}
.ch-winter-links{display:flex;align-items:center;justify-content:flex-start;gap:clamp(3px,.55vw,10px);min-width:0;flex:1 1 auto}
.ch-winter-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:0 clamp(9px,1vw,16px);border:1px solid transparent;border-radius:13px;color:#142844!important;font-size:13px;font-weight:750;line-height:1.1;white-space:nowrap;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.ch-winter-link>svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ch-winter-link:hover{border-color:rgba(8,125,242,.14);background:#f0f7ff;color:#087df2!important;transform:translateY(-1px)}
.ch-winter-link.is-active:not(.ch-winter-link--primary){border-color:rgba(8,125,242,.16);background:#edf6ff;color:#087df2!important}
.ch-winter-link--primary{border-color:#087df2;background:linear-gradient(135deg,#087df2,#168fff);color:#fff!important;box-shadow:0 6px 15px rgba(8,125,242,.20)}
.ch-winter-link--primary:hover,.ch-winter-link--primary.is-active{border-color:#056bd1;background:linear-gradient(135deg,#056bd1,#087df2);color:#fff!important}
.ch-winter-link__tag{padding:3px 5px;border-radius:5px;background:rgba(255,255,255,.2);font-size:8px;font-weight:900;letter-spacing:.35px}
.ch-winter-link--optional{color:#566a85!important}
.ch-winter-nav__seasonal{display:flex;align-items:center;gap:7px;flex:0 0 auto;margin-left:auto;color:#527092;font-size:9px;font-weight:900;letter-spacing:1.15px;white-space:nowrap}
.ch-winter-nav__flake{color:#1597f5;font-size:22px;line-height:1;text-shadow:0 0 10px rgba(21,151,245,.25)}
.ch-winter-mobile-menu{display:none}

/* The top navigation replaces the old fixed desktop sidebar; the offcanvas remains on mobile. */
@media (min-width:992px){
  .ch-winter-header + .container-fluid > .row > .sidebar.no_small_display{display:none!important}
}
@media (min-width:1200px) and (max-width:1450px){
  .ch-winter-nav__seasonal{display:none}
  .ch-winter-link--optional{display:none}
  .ch-winter-link{padding-left:9px;padding-right:9px;font-size:12px}
  .ch-winter-nav__inner,.ch-winter-header__hero-inner{width:calc(100% - 40px)}
  .ch-winter-brand__copy strong{font-size:34px}
  .ch-winter-edition{padding:0 12px;font-size:11px}
  .ch-winter-search{width:clamp(240px,23vw,340px)}
}
@media (max-width:1199.98px){
  .ch-winter-header__hero,.ch-winter-header__hero-inner{min-height:166px}
  .ch-winter-header__hero-inner{width:calc(100% - 34px);gap:14px}
  .ch-winter-brand__mark{flex-basis:54px;width:54px;height:60px}
  .ch-winter-brand__symbol{width:52px;height:52px}
  .ch-winter-brand__copy strong{font-size:31px}
  .ch-winter-brand__copy small{font-size:8px;letter-spacing:2.1px}
  .ch-winter-edition{min-height:37px;padding:0 11px;font-size:10px}
  .ch-winter-search{width:clamp(210px,25vw,330px);min-height:43px}
  .ch-winter-search input[type="search"]{font-size:12px}
  .ch-winter-search kbd{display:none}
  .ch-winter-icon-btn{width:38px;height:38px;flex-basis:38px}
  .ch-winter-nav__inner{width:calc(100% - 34px);gap:8px}
  .ch-winter-links{gap:0}
  .ch-winter-link{gap:6px;padding:0 8px;font-size:11px}
  .ch-winter-link>svg{width:16px;height:16px;flex-basis:16px}
}
@media (max-width:991.98px){
  .ch-winter-header__hero{min-height:142px;background-position:78% 24%}
  .ch-winter-header__hero-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:8px 12px;width:calc(100% - 26px);min-height:142px;padding:12px 0}
  .ch-winter-brand{grid-column:1;grid-row:1;gap:7px}
  .ch-winter-brand__mark{flex-basis:43px;width:43px;height:49px}
  .ch-winter-brand__symbol{width:43px;height:43px}
  .ch-winter-brand__hat{width:31px;height:25px;top:-2px;left:-3px}
  .ch-winter-brand__copy strong{font-size:clamp(23px,5vw,31px);letter-spacing:-1px}
  .ch-winter-brand__copy small{margin-top:5px;font-size:7px;letter-spacing:1.6px}
  .ch-winter-edition{grid-column:2;grid-row:1;min-height:32px;padding:0 9px;gap:5px;font-size:8px;letter-spacing:.2px}
  .ch-winter-edition svg{width:15px;height:15px}
  .ch-winter-tools{grid-column:1/3;grid-row:2;width:100%;gap:7px;margin:0}
  .ch-winter-search{flex:1 1 auto;width:auto;min-width:0;min-height:39px;padding:0 10px;border-radius:12px}
  .ch-winter-search input[type="search"]{height:36px;font-size:12px}
  .ch-winter-search__icon{width:17px;height:17px;flex-basis:17px}
  .ch-winter-advanced,.ch-winter-account{display:none}
  .ch-winter-icon-btn{width:36px;height:36px;flex-basis:36px;border-radius:11px}
  .ch-winter-nav{min-height:51px;border-bottom-width:2px}
  .ch-winter-nav__inner{width:calc(100% - 26px);min-height:49px;justify-content:space-between}
  .ch-winter-links{display:none}
  .ch-winter-mobile-menu{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 12px;border:1px solid rgba(8,125,242,.18);border-radius:10px;background:#edf6ff;color:#087df2;font-size:12px;font-weight:800}
  .ch-winter-mobile-menu svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .ch-winter-nav__seasonal{display:flex}
}
@media (max-width:480px){
  .ch-winter-header__hero{min-height:136px}
  .ch-winter-header__hero-inner{min-height:136px}
  .ch-winter-brand__copy strong{font-size:22px}
  .ch-winter-brand__copy small{font-size:6.5px;letter-spacing:1.35px}
  .ch-winter-edition{padding:0 7px;font-size:7px}
  .ch-winter-nav__seasonal{font-size:8px;letter-spacing:.7px}
  .ch-winter-search input[type="search"]::placeholder{font-size:11px}
}

/* Dark mode follows the theme's existing :root.dark switch. */
:root.dark .ch-winter-header{background:#121c2c;color:#e9f2ff}
:root.dark .ch-winter-header__hero:before{background:linear-gradient(90deg,rgba(7,19,36,.48),rgba(7,19,36,.25) 55%,rgba(7,19,36,.18))}
:root.dark .ch-winter-brand__copy strong{color:#f5f9ff}
:root.dark .ch-winter-brand__copy small{color:#d2dfef}
:root.dark .ch-winter-nav{background:rgba(13,25,42,.96);border-image:linear-gradient(90deg,#087df2,#25c1ff,#087df2) 1}
:root.dark .ch-winter-link{color:#e4edf9!important}
:root.dark .ch-winter-link:hover,:root.dark .ch-winter-link.is-active:not(.ch-winter-link--primary){background:#1b304a;color:#71baff!important}
:root.dark .ch-winter-link--primary,:root.dark .ch-winter-link--primary:hover,:root.dark .ch-winter-link--primary.is-active{color:#fff!important}
:root.dark .ch-winter-search{border-color:rgba(152,190,235,.16);background:rgba(18,34,55,.93)}
:root.dark .ch-winter-search__icon{stroke:#b7c8df}
:root.dark .ch-winter-search input[type="search"]{color:#f0f6ff!important}
:root.dark .ch-winter-search input::placeholder{color:#a9bad0}
:root.dark .ch-winter-search kbd{border-color:#344b68;background:#20354e;color:#d4e4f7}
:root.dark .ch-winter-icon-btn{border-color:#334b67;background:#1a2e47;color:#e8f2ff!important}
:root.dark .ch-winter-nav__seasonal{color:#c3d4e9}
:root.dark .ch-winter-mobile-menu{border-color:#285b8f;background:#153b61;color:#9bd0ff}

@media (prefers-reduced-motion:reduce){
  .ch-winter-snow{animation:none}
  .ch-winter-link,.ch-winter-icon-btn{transition:none}
}
