/* RCgames portal: sidebar, top bar, liquid-glass panels and game tiles on the orange RCgames gradient. */
:root {
  --ink: #201e1d;
  --ink-2: #4a3a33;
  --cream: #fff6e6;
  --orange: #e8590c;
  --yellow: #ffb703;
  --red: #c8180a;
  --side-w: 236px;
  --gap: 16px;
  --ease-pop: cubic-bezier(.2,.9,.3,1.25);
  --ease-out: cubic-bezier(.2,.8,.2,1);
}
html { scroll-behavior: auto; }
body.portal { margin: 0; color: var(--ink); font-family: var(--font-body); overflow-x: clip; }
body.portal a { color: inherit; }
body.portal .gtile { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------ moving red, orange and yellow background */
body.portal::before {
  content: ""; position: fixed; z-index: -2; left: -50vw; top: -50vh; width: 200vw; height: 200vh; pointer-events: none;
  background: linear-gradient(115deg, #c8180a 0%, #e8590c 17%, #ffb703 33%, #ff8a3d 50%, #c8180a 67%, #e8590c 83%, #ffb703 100%);
  animation: rcBgMove 22s ease-in-out infinite alternate; will-change: transform;
}
body.portal::after {
  content: ""; position: fixed; z-index: -1; inset: -20%; pointer-events: none;
  background:
    radial-gradient(38% 34% at 22% 28%, rgba(255,214,90,.6), rgba(255,214,90,0) 70%),
    radial-gradient(34% 30% at 78% 72%, rgba(200,24,10,.5), rgba(200,24,10,0) 70%),
    radial-gradient(30% 30% at 72% 18%, rgba(255,138,61,.55), rgba(255,138,61,0) 70%);
  animation: rcGlow 16s ease-in-out infinite alternate; will-change: transform;
}
@keyframes rcBgMove { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-24vw, 12vh, 0); } 100% { transform: translate3d(14vw, -20vh, 0); } }
@keyframes rcGlow { 0% { transform: translate3d(0, 0, 0) rotate(0); } 100% { transform: translate3d(7%, -6%, 0) rotate(10deg) scale(1.12); } }

/* ------------------------------------------------------------ liquid glass */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(150deg, rgba(255,255,255,.38), rgba(255,255,255,.14) 50%, rgba(255,255,255,.24));
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(255,255,255,.28),
    inset 0 0 22px rgba(255,255,255,.12),
    0 2px 4px rgba(120,20,0,.08),
    0 18px 40px -14px rgba(110,18,0,.5);
}
/* the soft light that follows the pointer across glass */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(260px circle at var(--gx, 25%) var(--gy, -10%), rgba(255,255,255,.55), rgba(255,255,255,0) 62%);
  opacity: .75; transition: opacity .3s ease;
}
/* bright rim, strongest on the top-left and bottom-right edges, like thick curved glass */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,0) 32%, rgba(255,255,255,0) 68%, rgba(255,255,255,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass.dark { background: linear-gradient(150deg, rgba(40,20,18,.62), rgba(32,30,29,.48)); color: #fff; border-color: rgba(255,255,255,.22); }
.glass.dark::before { background: radial-gradient(260px circle at var(--gx, 25%) var(--gy, -10%), rgba(255,200,120,.32), rgba(255,255,255,0) 62%); }
.raise { transition: transform .4s var(--ease-pop), box-shadow .4s ease; will-change: transform; }
.raise:hover { transform: translateY(-4px); box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.3), inset 0 0 22px rgba(255,255,255,.16),
    0 4px 8px rgba(120,20,0,.1), 0 28px 50px -16px rgba(110,18,0,.6); }

.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; font: 800 15px/1 var(--font-heading); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease-pop), box-shadow .3s ease, background .2s ease; }
.pill-btn:hover { transform: translateY(-2px) scale(1.03); }
.pill-btn:active { transform: scale(.97); }
.pill-btn.dark { background: var(--ink); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.pill-btn.sun { background: linear-gradient(180deg, #ffd23f, var(--yellow)); color: var(--ink) !important; box-shadow: 0 8px 20px -8px rgba(160,60,0,.7), inset 0 1.5px 0 rgba(255,255,255,.7); }
.pill-btn.clear { background: rgba(255,255,255,.3); color: var(--ink) !important; border: 1px solid rgba(255,255,255,.6); }
.pill-btn svg { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ------------------------------------------------------------ sidebar */
.side {
  position: fixed; z-index: 40; left: 12px; top: 12px; bottom: 12px; width: var(--side-w);
  border-radius: 26px; padding: 14px 10px; display: flex; flex-direction: column; overflow: hidden;
}
.side-scroll { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 2px; margin: -2px; }
.side-scroll::-webkit-scrollbar { display: none; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 12px; text-decoration: none; }
.side-brand img { width: 44px; height: auto; filter: drop-shadow(0 4px 6px rgba(80,10,0,.35)); }
.side-brand span { font: 800 22px/1 var(--font-heading); letter-spacing: .02em; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 14px;
  font: 700 15px/1 var(--font-heading); text-decoration: none; transition: background .2s ease, transform .25s var(--ease-pop);
}
.side-link svg { width: 20px; height: 20px; flex: none; }
.side-link:hover { background: rgba(255,255,255,.35); transform: translateX(3px); }
.side-link.on { background: var(--ink); color: #fff !important; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); }
.side-link .dot { width: 14px; height: 14px; border-radius: 5px; margin: 0 3px; background: var(--c); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 6px -1px var(--c); flex: none; }
.side-link .count { margin-left: auto; font-size: 12px; font-weight: 700; opacity: .6; font-variant-numeric: tabular-nums; }
.side-label { margin: 14px 12px 4px; font: 800 11px/1 var(--font-heading); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.side-sep { height: 1px; margin: 10px 8px; background: rgba(255,255,255,.55); }
.side-scrim { display: none; }

/* ------------------------------------------------------------ page shell + top bar */
.shell { margin-left: calc(var(--side-w) + 24px); padding: 12px max(16px, env(safe-area-inset-right, 0px)) 24px 0; min-height: 100vh; display: flex; flex-direction: column; gap: 22px; }
.top { position: sticky; top: 12px; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 22px; }
.top .top-menu, .top .top-brand { display: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.3); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.icon-btn svg { width: 22px; height: 22px; }
.search { position: relative; flex: 1 1 auto; max-width: 560px; margin: 0 auto; }
.search input {
  width: 100%; height: 44px; padding: 0 44px 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.55); color: var(--ink); font: 600 15px/1 var(--font-body);
  box-shadow: inset 0 2px 6px rgba(120,20,0,.12), 0 1px 0 rgba(255,255,255,.6);
}
.search input::placeholder { color: #6e5a50; }
.search input:focus { outline: none; background: rgba(255,255,255,.85); box-shadow: 0 0 0 3px rgba(32,30,29,.85), inset 0 2px 6px rgba(120,20,0,.08); }
.search > svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); border-radius: 20px; padding: 8px; display: none; z-index: 50; max-height: min(70vh, 460px); overflow-y: auto; }
.search-results.open { display: block; animation: popIn .25s var(--ease-out); }
.search-results.glass { background: rgba(255,246,230,.96); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6); box-shadow: 0 24px 50px -16px rgba(80,10,0,.6); }
.search-results a { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: 14px; text-decoration: none; }
.search-results a:hover, .search-results a.sel { background: rgba(255,255,255,.55); }
.search-results img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.search-results b { display: block; font: 800 15px/1.2 var(--font-heading); }
.search-results small { font-size: 12px; opacity: .7; }
.search-results .none { padding: 12px; font-size: 14px; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.streak-chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6); font: 800 14px/1 var(--font-heading); text-decoration: none; white-space: nowrap; }
.streak-chip .flame { width: 18px; height: 18px; }

/* ------------------------------------------------------------ sections */
.page { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sec-head h2 { margin: 0; font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--font-heading); color: #fff; text-shadow: 0 2px 12px rgba(120,20,0,.35); text-wrap: balance; }
.sec-head .more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font: 800 14px/1 var(--font-heading); color: #fff; text-decoration: none; padding: 10px 14px; border-radius: 999px; background: rgba(32,30,29,.25); }
.sec-head .more:hover { background: rgba(32,30,29,.45); }
.sec-head .arrows { display: flex; gap: 6px; }
.sec-head .arrows .icon-btn { width: 38px; height: 38px; border-radius: 50%; }

/* ------------------------------------------------------------ game tiles */
.gtile {
  position: relative; display: block; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff;
  aspect-ratio: 1 / 1; background: #2b2b33; border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 2px 4px rgba(110,18,0,.15), 0 16px 30px -14px rgba(110,18,0,.6);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)) scale(var(--s, 1));
  transition: transform .45s var(--ease-pop), box-shadow .35s ease, border-color .25s ease;
}
.gtile:hover { --ty: -6px; --s: 1.03; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.55), 0 0 30px 2px rgba(255,210,63,.55), 0 26px 44px -16px rgba(110,18,0,.7); z-index: 2; }
.gtile .art { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .6s var(--ease-out); }
.gtile:hover .art { transform: scale(1.08); }
.gtile .shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); background-size: 260% 100%; background-position: 160% 0; }
.gtile:hover .shine { animation: shine .9s ease forwards; }
.gtile .label {
  position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 8px 12px; border-radius: 14px;
  background: rgba(32,30,29,.62); -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  transform: translateY(calc(100% + 12px)); opacity: 0; transition: transform .35s var(--ease-pop), opacity .25s ease;
}
.gtile:hover .label, .gtile:focus-visible .label { transform: none; opacity: 1; }
.gtile .label b { display: block; font: 800 15px/1.15 var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtile .label small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin-top: 2px; }
.gtile .badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; flex-wrap: wrap; pointer-events: none; }
.badge { font: 800 10px/1 var(--font-heading); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: rgba(32,30,29,.78); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.badge.mp { background: #2f8f3e; }
.badge.desk { background: #3a4a8f; }
.badge.hot { background: var(--yellow); color: var(--ink); margin-left: auto; }
.gtile.big .label { opacity: 1; transform: none; padding: 12px 16px; left: 12px; right: 12px; bottom: 12px; border-radius: 18px; }
.gtile.big .label b { font-size: 24px; }
.gtile.big .label p { margin: 4px 0 0; font-size: 14px; line-height: 1.35; color: #f3e7dd; }
.gtile.soon .art { background: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 12px, rgba(255,255,255,.08) 12px 24px); }
.gtile.soon { background: rgba(32,30,29,.35); cursor: default; }
.gtile.soon .label { opacity: 1; transform: none; }
@media (hover: none) { .gtile .label { opacity: 1; transform: none; } }

/* horizontally scrolling rows */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 15vw, 210px); gap: 14px; overflow-x: auto; padding: 8px 6px 18px; margin: -8px -6px -18px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }

/* ------------------------------------------------------------ reveal + motion */
html.rv-on .rv { opacity: 0; transform: translateY(26px) scale(.985); }
html.rv-on .rv.in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .9s var(--ease-pop); transition-delay: var(--d, 0s); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes shine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ------------------------------------------------------------ footer */
.foot { margin-top: 12px; padding: 18px 22px; border-radius: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.foot b { font: 800 20px/1 var(--font-heading); }
.foot span { font-size: 13px; }
.foot a { text-decoration: underline; }
.ad-slot { min-height: 0; }

/* ------------------------------------------------------------ phones and small tablets */
@media (max-width: 960px) {
  .side { left: 0; top: 0; bottom: 0; border-radius: 0 26px 26px 0; padding-top: max(14px, env(safe-area-inset-top, 0px)); transform: translateX(-105%); transition: transform .45s var(--ease-out); width: min(300px, 84vw); }
  body.side-open .side { transform: none; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(32,10,0,.4); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  body.side-open .side-scrim { opacity: 1; pointer-events: auto; }
  .shell { margin-left: 0; padding: 8px max(12px, env(safe-area-inset-right, 0px)) 20px max(12px, env(safe-area-inset-left, 0px)); gap: 18px; }
  .top { top: 8px; gap: 8px; padding: 8px; border-radius: 20px; }
  .top .top-menu { display: grid; }
  .top .top-brand { display: none; }
  .top-brand img { width: 40px; height: auto; display: block; }
  .search { margin: 0; }
  .search input { height: 42px; font-size: 16px; }
  .streak-chip .txt, .top-actions .pill-btn .txt { display: none; }
  .streak-chip, .top-actions .pill-btn { padding: 0 12px; height: 42px; min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  html.rv-on .rv { opacity: 1; transform: none; }
  .gtile { transform: none !important; }
}

/* no heavy focus box on the menu logo when the menu opens by tap */
.side a:focus:not(:focus-visible) { outline: none; }
.side-brand:focus-visible { outline: 3px solid #1f1f1f; outline-offset: 2px; border-radius: 14px; }

/* "playing now" badge */
.live-chip { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6); font: 800 14px/1 var(--font-heading); white-space: nowrap; }
.live-chip[hidden] { display: none; }
button.live-chip { cursor: pointer; color: inherit; transition: background .2s ease, transform .2s ease; }
button.live-chip:hover { background: rgba(255,255,255,.65); transform: translateY(-1px); }
.live-pop { position: fixed; z-index: 400; width: min(300px, calc(100vw - 16px)); max-height: min(60vh, 420px); overflow: auto; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 16px 40px rgba(90,15,0,.35); color: #201e1d; }
.live-pop h3 { margin: 0 0 8px; font: 800 15px/1.2 var(--font-heading); }
.live-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.live-pop li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.05); min-width: 0; }
.live-pop li b { font: 800 14px/1.2 var(--font-heading); overflow-wrap: anywhere; }
.live-pop li span { font-size: 13px; opacity: .75; overflow-wrap: anywhere; }
.live-pop li.msg { background: none; font-size: 13px; opacity: .75; }
.live-chip i { width: 10px; height: 10px; border-radius: 50%; background: #2fcf4f; box-shadow: 0 0 0 0 rgba(47,207,79,.6); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(47,207,79,0); } 100% { box-shadow: 0 0 0 0 rgba(47,207,79,0); } }
@media (max-width: 960px) { .live-chip .txt { display: none; } .live-chip { height: 42px; padding: 0 11px; } }
@media (max-width: 420px) { .live-chip { display: none !important; } }

/* ---- Get the app ---- */
.side-app { width: 100%; border: 0; background: linear-gradient(135deg, #ffe27a, #ffb21e); box-shadow: 0 6px 14px -8px rgba(120,40,0,.7), inset 0 1px 0 rgba(255,255,255,.7); font: inherit; font-weight: 800; color: var(--ink); text-align: left; cursor: pointer; }
.side-app[hidden] { display: none; }
.side-notify { margin-top: 8px; background: rgba(255,255,255,.55); }
.side-notify.on { background: linear-gradient(135deg, #b8f5c4, #5fd67a); }
.rc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 500; max-width: min(92vw, 380px); padding: 12px 16px; border-radius: 16px; background: #201e1d; color: #fff; font: 700 14px/1.35 var(--font-heading); box-shadow: 0 12px 30px rgba(0,0,0,.35); text-align: center; }
.app-how { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(40,12,0,.55); overflow-y: auto; }
.app-card { position: relative; width: min(460px, 100%); max-height: 90vh; overflow-y: auto; padding: 24px 22px 20px; border-radius: 28px; color: var(--ink); }
.app-card h2 { margin: 0 34px 8px 0; font: 800 26px/1.1 var(--font-heading); }
.app-card h3 { margin: 18px 0 6px; font: 800 13px/1 var(--font-heading); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.app-card p { margin: 0; font-size: 15px; line-height: 1.45; }
.app-card ol { margin: 0; padding-left: 22px; display: grid; gap: 5px; font-size: 15px; line-height: 1.4; }
.app-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.45); font: 700 24px/1 system-ui; color: var(--ink); cursor: pointer; }
.app-card { background: linear-gradient(160deg, #ffe27a, #ffb21e 55%, #ff8a2a); }
.app-card::before { display: none; }

/* ---- paid games: padlock + price ---- */
.gtile .badge.paid { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #ffe27a, #ffb21e); color: #2a1200; font-weight: 900; }
.gtile .lockbig { position: absolute; left: 50%; top: 42%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; font-size: 2.6em; color: #fff; background: rgba(15,30,60,.55); border: 3px solid rgba(255,255,255,.85); box-shadow: 0 8px 22px -6px rgba(0,0,0,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); pointer-events: none; }
.gtile .lockbig svg { width: 58%; height: 58%; }
.gtile .lockbig svg circle { fill: rgba(15,30,60,.9); }
.side-link .count:empty { display: none; }

/* ------------------------------------------------------------ Christmas (switched on by rc-portal.js from 1 Dec to 6 Jan) */
body.portal.xmas::before { background: linear-gradient(115deg, #7a0a12 0%, #c8102e 17%, #0d5c34 33%, #17834a 50%, #7a0a12 67%, #c8102e 83%, #0d5c34 100%); }
body.portal.xmas::after {
  background:
    radial-gradient(38% 34% at 22% 28%, rgba(255,215,110,.42), rgba(255,215,110,0) 70%),
    radial-gradient(34% 30% at 78% 72%, rgba(255,255,255,.22), rgba(255,255,255,0) 70%),
    radial-gradient(30% 30% at 72% 18%, rgba(255,60,80,.4), rgba(255,60,80,0) 70%);
}
body.xmas .glass { background: linear-gradient(150deg, rgba(255,255,255,.5), rgba(255,255,255,.26) 50%, rgba(255,255,255,.36)); }
#xmSnow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 35; }
.xm-logo { position: relative; z-index: 3; display: inline-flex; flex: none; }
.xm-hat { position: absolute; left: 19%; top: -27%; width: 58%; height: auto; transform: rotate(10deg); pointer-events: none; filter: drop-shadow(0 1px 1px rgba(60,0,0,.3)); }
.xm-cap { position: absolute; left: 0; right: 0; top: 0; height: 16px; pointer-events: none; z-index: 2; border-radius: inherit; overflow: hidden; }
.xm-cap svg { display: block; width: 100%; height: 100%; }
.top .xm-lights { position: absolute; left: 18px; right: 18px; top: -9px; height: 26px; pointer-events: none; z-index: 3; }
.xm-lights svg { display: block; width: 100%; height: 100%; overflow: visible; }
.xm-bulb { animation: xmBlink 1.6s steps(1) infinite; }
.xm-bulb.b2 { animation-delay: .4s; } .xm-bulb.b3 { animation-delay: .8s; } .xm-bulb.b4 { animation-delay: 1.2s; }
@keyframes xmBlink { 50% { opacity: .35; } }
.xm-count { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; font: 800 14px/1 var(--font-heading); color: #fff; background: linear-gradient(135deg, #c8102e, #8e0b1c); border: 1px solid rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); white-space: nowrap; }
.xm-count b { font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .xm-count { display: none; } }
.side-link.xm-snow-btn .count { font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .xm-bulb { animation: none; } }
