:root {
  --ng-shell-page: var(--ng-page, #f5f7fb);
  --ng-shell-surface: var(--ng-panel, rgba(255, 255, 255, 0.94));
  --ng-shell-surface-strong: var(--ng-panel-solid, #ffffff);
  --ng-shell-text: var(--ng-ink, #182337);
  --ng-shell-muted: var(--ng-muted, #71809a);
  --ng-shell-line: var(--ng-line, rgba(68, 88, 121, 0.14));
  --ng-shell-primary: var(--ng-accent, #2476ef);
  --ng-shell-accent: var(--ng-accent-2, #17b8c7);
  --ng-shell-radius: 22px;
  --ng-shell-radius-small: 12px;
  --ng-shell-shadow: var(--ng-shadow, 0 20px 50px rgba(30, 55, 90, 0.12));
  --ng-shell-nav-bg: color-mix(in srgb, var(--ng-shell-surface-strong) 92%, transparent);
  --ng-shell-card-bg: linear-gradient(145deg, var(--ng-shell-surface-strong), var(--ng-shell-surface));
  --ng-shell-card-border: var(--ng-shell-line);
  --ng-shell-card-decor: radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--ng-shell-primary) 18%, transparent), transparent 42%);
  --ng-shell-icon-bg: color-mix(in srgb, var(--ng-shell-primary) 12%, var(--ng-shell-surface-strong));
  --ng-shell-icon-fg: var(--ng-shell-primary);
  --ng-shell-nav-icon-surface: linear-gradient(150deg, color-mix(in srgb, var(--ng-shell-surface-strong) 88%, var(--ng-shell-primary)), var(--ng-shell-surface-strong));
  --ng-shell-nav-icon-border: color-mix(in srgb, var(--ng-shell-primary) 38%, var(--ng-shell-line));
  --ng-shell-nav-pedestal: linear-gradient(180deg, color-mix(in srgb, var(--ng-shell-primary) 40%, #f0c875), color-mix(in srgb, var(--ng-shell-primary) 52%, #2d271d));
  --ng-shell-nav-label-bg: color-mix(in srgb, var(--ng-shell-text) 92%, transparent);
  --ng-shell-nav-height: 78px;
  --ng-shell-nav-visual-height: 40px;
  --ng-shell-content-max: 920px;
  --ng-shell-space-1: 4px;
  --ng-shell-space-2: 8px;
  --ng-shell-space-3: 12px;
  --ng-shell-space-4: 16px;
  --ng-shell-space-5: 20px;
  --ng-shell-space-6: 24px;
  --ng-shell-space-8: 32px;
  --ng-shell-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ng-shell-motion-press: 120ms;
  --ng-shell-motion-control: 190ms;
  --ng-shell-motion-panel: 250ms;
}

/*
 * Cross-document transitions create an old and a new snapshot. The browser's
 * default cross-fade made both complete pages (and both navigation snapshots)
 * visible for a short time on slow connections. Switch snapshots atomically:
 * the old document remains interactive while the request is pending, then the
 * fully rendered destination replaces it without a double-page afterimage.
 */
::view-transition-group(root),
::view-transition-group(ng-persistent-bottom-nav) {
  animation-duration: 1ms;
}

::view-transition-old(root),
::view-transition-old(ng-persistent-bottom-nav) {
  animation: none;
  opacity: 0;
}

::view-transition-new(root),
::view-transition-new(ng-persistent-bottom-nav) {
  animation: none;
  opacity: 1;
}

body.ng-app-shell-ready {
  padding-bottom: calc(var(--ng-shell-nav-height) + env(safe-area-inset-bottom, 0px) + 22px) !important;
}

/* Keep the public footer in one compact, predictable slot. Short pages push
   it down toward the persistent navigation; long pages keep normal document
   flow. The body already owns the navigation reserve, so page shells do not
   need a second large empty area below the footer. */
body.ng-app-shell-ready > .page-shell,
body.ng-app-shell-ready > .lottery-shell {
  min-height: calc(100dvh - var(--ng-shell-nav-height) - env(safe-area-inset-bottom, 0px) - 22px);
  display: flex;
  flex-direction: column;
}

body.ng-app-shell-ready > .lottery-shell { padding-bottom: 6px; }

body.ng-app-shell-ready.ng-catalog-page > .ng-hub-shell{
  min-height: calc(100dvh - var(--ng-shell-nav-height) - env(safe-area-inset-bottom, 0px) - 22px);
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
}

body.ng-app-shell-ready.ng-catalog-page .ng-hub-section,
body.ng-app-shell-ready.ng-catalog-page [data-catalog-root],
body.ng-app-shell-ready.ng-catalog-page .collector-catalog-panel{
  min-height: 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

body.ng-app-shell-ready .fixed-page-footer,
body.ng-app-shell-ready > .page-shell > .site-footer,
body.ng-app-shell-ready > .lottery-shell > .site-footer {
  width: min(100%, var(--ng-shell-content-max));
  min-height: 0;
  margin: auto auto 0;
  padding: 5px 12px 6px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  border: 0;
  border-radius: 0;
  color: var(--ng-shell-muted);
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

body.ng-app-shell-ready .brand-footer {
  min-height: 0;
  gap: 1px;
  padding: 0;
  line-height: 1.25;
}

body.ng-app-shell-ready .brand-footer .desc { display: none; }

/* Full-screen games own their entire control surface. Global floating actions
   are removed from hit-testing so they cannot cover betting or game controls. */
body.ng-fullscreen-experience :is(
  .theme-mode-toggle,
  .theme-float-button,
  .music-float-button,
  .ng-music-float-toggle,
  .ng-action-hub-toggle,
  .ng-scroll-top,
  .activity-hall-toggle,
  .service-float-btn
) {
  display: none !important;
}

/* Expanded music controls are the active floating surface. Temporarily remove
   the secondary floating shortcuts and give the player the full mobile lane so
   background track actions cannot visually compete with it. */
body.ng-music-player-expanded :is(
  .theme-mode-toggle,
  .theme-float-button,
  .music-float-button,
  .ng-music-float-toggle,
  .ng-action-hub-toggle,
  .ng-scroll-top,
  .activity-hall-toggle,
  .service-float-btn
) {
  display: none !important;
}

@media (max-width: 768px) {
  body.ng-music-player-expanded .ng-music-page .ng-music-player,
  body.ng-music-player-expanded.ng-music-page .ng-music-player,
  body.ng-music-player-expanded .ng-music-page .ng-music-queue,
  body.ng-music-player-expanded.ng-music-page .ng-music-queue {
    right: max(12px, env(safe-area-inset-right, 0px));
  }
}

.ng-bottom-nav {
  position: fixed;
  z-index: var(--ng-layer-nav, 100);
  right: 50%;
  bottom: 0;
  width: min(100%, 760px);
  min-height: var(--ng-shell-nav-height);
  padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  overflow: visible;
  isolation: isolate;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translateX(50%);
  view-transition-name: ng-persistent-bottom-nav;
}

::view-transition-group(ng-persistent-bottom-nav) {
  z-index: var(--ng-layer-nav, 100);
  animation: none;
}

::view-transition-new(ng-persistent-bottom-nav) { mix-blend-mode: normal; }

html[data-ng-shell-navigating="true"] .ng-bottom-nav {
  pointer-events: none;
}

.ng-bottom-nav::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(var(--ng-shell-nav-visual-height) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  background: var(--ng-shell-nav-bg);
  border: 1px solid var(--ng-shell-line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 24px rgba(20, 36, 62, 0.12);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.ng-bottom-nav__item {
  position: relative;
  min-width: 0;
  min-height: 63px;
  padding: 2px 3px 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ng-shell-muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
  transition: color var(--ng-shell-motion-control) var(--ng-shell-ease), background-color var(--ng-shell-motion-control) var(--ng-shell-ease), transform var(--ng-shell-motion-press) var(--ng-shell-ease);
}

.ng-bottom-nav__item:active {
  transform: scale(0.94);
}

.ng-bottom-nav__item:focus-visible {
  outline: 2px solid var(--ng-shell-primary);
  outline-offset: -2px;
}

.ng-bottom-nav__icon {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--ng-shell-icon-fg);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform-origin: center bottom;
  transition: transform var(--ng-shell-motion-control) var(--ng-shell-ease), filter var(--ng-shell-motion-control) var(--ng-shell-ease);
}

.ng-bottom-nav__icon::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -5px;
  bottom: -2px;
  left: -5px;
  height: 12px;
  border: 1px solid color-mix(in srgb, var(--ng-shell-primary) 38%, rgba(255, 255, 255, 0.35));
  border-radius: 50%;
  background: var(--ng-shell-nav-pedestal);
  box-shadow: 0 3px 8px rgba(11, 18, 31, 0.22);
}

.ng-bottom-nav__icon svg,
.ng-shell-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.ng-ai-icon__image,
.ng-ai-icon__fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ng-ai-icon__image {
  position: relative;
  z-index: 2;
  opacity: 0;
  object-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: var(--ng-ai-edge-cleanup, none);
  mask-image: var(--ng-ai-edge-cleanup, none);
  /*
   * Generated artwork occasionally contains glow or detached decoration on the
   * outermost source pixels.  A soft transparent safe edge keeps the complete
   * icon visible while preventing those clipped source fragments from leaking
   * into compact navigation and category-card containers.
   */
  filter: drop-shadow(0 6px 7px rgba(8, 16, 31, 0.2));
}

.ng-ai-icon__fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  color: currentColor;
  opacity: 1;
}

.ng-ai-icon--ready .ng-ai-icon__image { opacity: 1; }
.ng-ai-icon--ready .ng-ai-icon__fallback { opacity: 0; visibility: hidden; }

/*
 * Only artwork proven to contain a detached source fragment receives a mask.
 * Each stop sits in the transparent gap between that fragment and the subject,
 * so the intended icon is not globally cropped or made smaller.
 */
.ng-ai-icon__image[data-ng-ai-theme="original"][data-ng-ai-icon="night"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 3.5%, #000 10% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="original"][data-ng-ai-icon="stage"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 15.2%, #000 16.5% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="original"][data-ng-ai-icon="lottery"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 10.5%, #000 17.5% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="cosmic"][data-ng-ai-icon="home"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 .5%, #000 7.4% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="cosmic"][data-ng-ai-icon="night"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 8.2%, #000 14.8% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="cosmic"][data-ng-ai-icon="stage"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 5%, #000 9.8% 100%); }

.ng-ai-icon__image[data-ng-ai-theme="aurora"][data-ng-ai-icon="home"],
.ng-ai-icon__image[data-ng-ai-theme="aurora"][data-ng-ai-icon="night"],
.ng-ai-icon__image[data-ng-ai-theme="aurora"][data-ng-ai-icon="notice"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 1.2%, #000 9.8% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="aurora"][data-ng-ai-icon="stage"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 8.4%, #000 15.2% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="aurora"][data-ng-ai-icon="lottery"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 6.3%, #000 11.7% 100%); }

.ng-ai-icon__image[data-ng-ai-theme="esports"][data-ng-ai-icon="notice"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 7%, #000 8.3% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="esports"][data-ng-ai-icon="stage"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 11%, #000 13% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="esports"][data-ng-ai-icon="lottery"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 14.5%, #000 16.8% 100%); }

.ng-ai-icon__image[data-ng-ai-theme="arcade"][data-ng-ai-icon="discover"] { --ng-ai-edge-cleanup: linear-gradient(to right, #000 0 85%, transparent 91.5% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="arcade"][data-ng-ai-icon="night"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 6.5%, #000 11.7% 100%); }

.ng-ai-icon__image[data-ng-ai-theme="gold"][data-ng-ai-icon="home"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 10.9%, #000 12.1% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="gold"][data-ng-ai-icon="discover"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 7.4%, #000 10.2% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="gold"][data-ng-ai-icon="night"] { --ng-ai-edge-cleanup: linear-gradient(to right, #000 0 88.3%, transparent 92.2% 100%); }
.ng-ai-icon__image[data-ng-ai-theme="gold"][data-ng-ai-icon="stage"] { --ng-ai-edge-cleanup: linear-gradient(to right, transparent 0 7%, #000 8.6% 100%); }

.ng-ai-icon--failed .ng-ai-icon__image { display: none; }
.ng-ai-icon--failed .ng-ai-icon__fallback { opacity: 1; visibility: visible; }

/* Separate source images supply theme AND lighting; never tint/darken logos. */
.ng-theme-symbol {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex: 0 0 auto;
  vertical-align: middle;
  line-height: 0;
}
.ng-theme-symbol > .ng-theme-symbol__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  filter: none;
  opacity: 0;
}
.ng-theme-symbol > .ng-theme-symbol__fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
}
.ng-theme-symbol.is-ready > .ng-theme-symbol__image { opacity: 1; }
.ng-theme-symbol.is-failed > .ng-theme-symbol__fallback { visibility: visible; }
.ng-theme-symbol__fallback > svg { display: block; width: 100%; height: 100%; }
body.ng-core-hub-page .ng-hub-header__icon:has(.ng-theme-symbol),
body.ng-core-hub-page .ng-hub-grid .ng-category-card__icon:has(.ng-theme-symbol),
body.ng-core-hub-page .ng-service-card__avatar:has(.ng-theme-symbol),
body.ng-core-hub-page .ng-age-gate__icon:has(.ng-theme-symbol) {
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
body.ng-core-hub-page .ng-service-card__channel > .ng-theme-symbol { width: 20px; height: 20px; }
body.ng-core-hub-page .ng-service-action--copy > .ng-theme-symbol { width: 24px; height: 24px; }
.gh-main-categories [data-ng-symbol-slot] { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
.gh-main-categories .ng-theme-symbol { display: inline-block; }
.site-invite-icon > .ng-theme-symbol { width: 100%; height: 100%; }
.ng-theme-symbol-slot { display: inline-block; width: 100%; height: 100%; }

.ng-bottom-nav__label {
  position: relative;
  z-index: 2;
  min-width: 42px;
  max-width: 100%;
  margin-top: -2px;
  padding: 2px 7px 3px;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--ng-shell-primary) 30%, rgba(255, 255, 255, 0.28));
  border-radius: 999px;
  background: var(--ng-shell-nav-label-bg);
  box-shadow: 0 3px 8px rgba(11, 18, 31, 0.18);
}

.ng-bottom-nav__item[aria-current="page"] {
  color: var(--ng-shell-primary);
  background: transparent;
}

.ng-bottom-nav__item[aria-current="page"] .ng-bottom-nav__icon {
  color: var(--ng-shell-primary);
  filter: saturate(1.08) brightness(1.05);
  transform: translateY(-4px) scale(1.12);
}

.ng-bottom-nav__item[aria-current="page"] .ng-bottom-nav__label {
  border-color: color-mix(in srgb, var(--ng-shell-primary) 62%, #f5d895);
  background: color-mix(in srgb, var(--ng-shell-primary) 58%, var(--ng-shell-nav-label-bg));
}

.ng-bottom-nav__item[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: -3px;
  left: 28%;
  height: 2px;
  border-radius: 99px 99px 0 0;
  background: var(--ng-shell-primary);
}

.ng-bottom-nav__item--home {
  transform: none;
}

.ng-bottom-nav__item--home:active {
  transform: scale(0.94);
}

.ng-bottom-nav__item--home .ng-bottom-nav__icon {
  padding: 0;
  color: var(--ng-shell-primary);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ng-bottom-nav__item--home .ng-bottom-nav__label {
  min-width: 50px;
  margin-top: 0;
  border-color: color-mix(in srgb, var(--ng-shell-primary) 62%, #f5d895);
}

body.ng-app-shell-home .section.nav-section,
body.ng-app-shell-home .service-float-btn,
body.ng-app-shell-home .ng-action-hub-toggle,
body.ng-app-shell-home .ng-scroll-top,
body.ng-app-shell-home .activity-hall-toggle {
  display: none !important;
}

/* Reference-inspired recommendation cards: real backend content stays intact,
   while mobile cards become a clear title/action lane with the real logo art. */
body.ng-app-shell-home #cardsScroll .card-grid {
  gap: 12px;
}

body.ng-app-shell-home #cardsScroll .card {
  overflow: hidden;
  border-color: var(--ng-shell-card-border);
  background: var(--ng-shell-card-bg);
}

body.ng-app-shell-ready .theme-mode-toggle,
body.ng-app-shell-ready .theme-float-button,
body.ng-app-shell-ready .music-float-button {
  bottom: calc(var(--ng-shell-nav-height) + env(safe-area-inset-bottom, 0px) + 16px) !important;
}

body.ng-app-shell-ready .ng-music-global-player,
body.ng-app-shell-ready .music-player-bar {
  bottom: calc(var(--ng-shell-nav-height) + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-ui-theme="cosmic"] {
  --ng-shell-nav-bg: color-mix(in srgb, #080d28 94%, transparent);
  --ng-shell-card-bg: linear-gradient(145deg, rgba(21, 31, 80, 0.97), rgba(8, 13, 40, 0.98));
  --ng-shell-card-border: rgba(140, 162, 255, 0.22);
  --ng-shell-card-decor: radial-gradient(circle at 84% 12%, rgba(101, 116, 255, 0.3), transparent 43%), radial-gradient(circle at 12% 100%, rgba(28, 205, 219, 0.15), transparent 38%);
  --ng-shell-icon-bg: linear-gradient(145deg, rgba(105, 89, 255, 0.28), rgba(12, 20, 57, 0.8));
  --ng-shell-icon-fg: #aab8ff;
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #24315e, #111936);
  --ng-shell-nav-icon-border: rgba(134, 151, 255, 0.48);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #596cdb, #1d285d);
  --ng-shell-nav-label-bg: #11172f;
  --ng-shell-radius: 28px;
}

html[data-ui-theme="aurora"] {
  --ng-shell-nav-bg: color-mix(in srgb, #092d2c 92%, transparent);
  --ng-shell-card-bg: linear-gradient(150deg, rgba(19, 67, 62, 0.96), rgba(7, 38, 43, 0.98));
  --ng-shell-card-border: rgba(128, 255, 211, 0.23);
  --ng-shell-card-decor: radial-gradient(ellipse at 88% 0%, rgba(101, 255, 198, 0.28), transparent 42%), linear-gradient(115deg, transparent 50%, rgba(111, 183, 255, 0.08));
  --ng-shell-icon-bg: linear-gradient(145deg, rgba(98, 255, 195, 0.2), rgba(28, 115, 114, 0.22));
  --ng-shell-icon-fg: #8cf3d0;
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #1b5b53, #0b3337);
  --ng-shell-nav-icon-border: rgba(128, 255, 211, 0.5);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #51d4aa, #176660);
  --ng-shell-nav-label-bg: #0c3434;
  --ng-shell-radius: 26px 18px 26px 18px;
}

html[data-ui-theme="particles"] {
  --ng-shell-nav-bg: color-mix(in srgb, #07141c 95%, transparent);
  --ng-shell-card-bg: linear-gradient(160deg, rgba(12, 31, 43, 0.98), rgba(5, 18, 27, 0.99));
  --ng-shell-card-border: rgba(0, 214, 255, 0.24);
  --ng-shell-card-decor: linear-gradient(90deg, rgba(0, 225, 255, 0.08) 1px, transparent 1px), linear-gradient(rgba(0, 225, 255, 0.05) 1px, transparent 1px);
  --ng-shell-icon-bg: rgba(0, 211, 255, 0.11);
  --ng-shell-icon-fg: #3de3ff;
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #123544, #071923);
  --ng-shell-nav-icon-border: rgba(61, 227, 255, 0.52);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #1cc8dc, #0b4f67);
  --ng-shell-nav-label-bg: #071923;
  --ng-shell-radius: 14px;
}

html[data-ui-theme="esports"] {
  --ng-shell-nav-bg: color-mix(in srgb, #101a28 96%, transparent);
  --ng-shell-card-bg: linear-gradient(135deg, #1b2a3c, #111c2b);
  --ng-shell-card-border: rgba(61, 191, 248, 0.2);
  --ng-shell-card-decor: linear-gradient(120deg, transparent 60%, rgba(34, 182, 240, 0.12) 60%, rgba(34, 182, 240, 0.04) 82%, transparent 82%);
  --ng-shell-icon-bg: linear-gradient(150deg, #1eb6ec, #2763db);
  --ng-shell-icon-fg: #fff;
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #24415c, #121f30);
  --ng-shell-nav-icon-border: rgba(61, 191, 248, 0.5);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #28bce9, #2459ad);
  --ng-shell-nav-label-bg: #101b2a;
  --ng-shell-radius: 18px 6px 18px 6px;
}

html[data-ui-theme="arcade"] {
  --ng-shell-nav-bg: color-mix(in srgb, #1d1230 95%, transparent);
  --ng-shell-card-bg: linear-gradient(150deg, #2a1742, #18102b);
  --ng-shell-card-border: rgba(250, 93, 214, 0.32);
  --ng-shell-card-decor: radial-gradient(circle at 86% 10%, rgba(255, 80, 207, 0.24), transparent 34%), linear-gradient(135deg, transparent 55%, rgba(115, 87, 255, 0.13));
  --ng-shell-icon-bg: linear-gradient(145deg, #ff5bc7, #694cff);
  --ng-shell-icon-fg: #fff;
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #542766, #211235);
  --ng-shell-nav-icon-border: rgba(255, 103, 215, 0.58);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #ed55c7, #6546bd);
  --ng-shell-nav-label-bg: #251337;
  --ng-shell-radius: 14px;
}

html[data-ui-theme="gold"] {
  --ng-shell-nav-bg: color-mix(in srgb, #17130c 96%, transparent);
  --ng-shell-card-bg: linear-gradient(145deg, #272016, #15120d);
  --ng-shell-card-border: rgba(219, 175, 88, 0.32);
  --ng-shell-card-decor: radial-gradient(circle at 88% 5%, rgba(229, 188, 101, 0.21), transparent 38%), linear-gradient(115deg, transparent 62%, rgba(193, 143, 56, 0.08));
  --ng-shell-icon-bg: linear-gradient(145deg, #e6c57b, #9d6b20);
  --ng-shell-icon-fg: #17120a;
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #5a4727, #211a10);
  --ng-shell-nav-icon-border: rgba(230, 197, 123, 0.64);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #e7c675, #8c5d1e);
  --ng-shell-nav-label-bg: #211a10;
  --ng-shell-radius: 20px;
}

/* Seven complete day/night palettes. The skin stylesheet owns page-level
   colors; these tokens keep the shared shell and its reusable cards aligned. */
html[data-ui-theme="original"][data-theme="light"] {
  --ng-theme-color: #f4f8ff;
  --ng-accent: #2f7bff;
  --ng-accent-2: #20b6c7;
  --ng-accent-rgb: 47, 123, 255;
  --ng-page: #eff5ff;
  --ng-page-deep: #dfeaff;
  --ng-panel: rgba(255, 255, 255, 0.88);
  --ng-panel-solid: #ffffff;
  --ng-ink: #14223a;
  --ng-muted: #70809a;
  --ng-line: rgba(47, 123, 255, 0.2);
  --ng-on-accent: #ffffff;
  --ng-shell-nav-bg: rgba(247, 250, 255, 0.96);
  --ng-shell-card-bg: linear-gradient(145deg, #ffffff, #eef5ff);
  --ng-shell-card-border: rgba(47, 123, 255, 0.2);
  --ng-shell-card-decor: radial-gradient(circle at 88% 10%, rgba(55, 132, 255, 0.18), transparent 42%);
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #ffffff, #dbe9ff);
  --ng-shell-nav-icon-border: rgba(47, 123, 255, 0.38);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #80b8ff, #2d6cd7);
  --ng-shell-nav-label-bg: #20345b;
}

html[data-ui-theme="original"][data-theme="dark"] {
  --ng-theme-color: #0d1726;
  --ng-accent: #5c9ff5;
  --ng-accent-2: #56c6d3;
  --ng-accent-rgb: 92, 159, 245;
  --ng-page: #081321;
  --ng-page-deep: #13263e;
  --ng-panel: rgba(18, 36, 58, 0.9);
  --ng-panel-solid: #12243a;
  --ng-ink: #f3f7ff;
  --ng-muted: #9cb0ca;
  --ng-line: rgba(107, 169, 255, 0.24);
  --ng-shadow: 0 22px 52px rgba(0, 6, 16, 0.48), inset 0 1px rgba(255, 255, 255, 0.05);
  --ng-on-accent: #07111f;
  --ng-shell-nav-bg: rgba(10, 20, 36, 0.96);
  --ng-shell-card-bg: linear-gradient(145deg, #17263c, #0d1829);
  --ng-shell-card-border: rgba(91, 151, 238, 0.24);
  --ng-shell-card-decor: radial-gradient(circle at 88% 10%, rgba(47, 123, 255, 0.24), transparent 42%);
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #243a59, #111e32);
  --ng-shell-nav-icon-border: rgba(107, 169, 255, 0.46);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #4c91ec, #244c8d);
  --ng-shell-nav-label-bg: #0c1728;
}

html[data-ui-theme="cosmic"][data-theme="light"] {
  --ng-shell-nav-bg: rgba(247, 246, 255, 0.96);
  --ng-shell-card-bg: linear-gradient(145deg, #ffffff, #f0efff);
  --ng-shell-card-border: rgba(96, 78, 208, 0.2);
  --ng-shell-card-decor: radial-gradient(circle at 84% 12%, rgba(101, 90, 226, 0.2), transparent 43%), radial-gradient(circle at 12% 100%, rgba(35, 174, 193, 0.13), transparent 38%);
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #ffffff, #e2e1ff);
  --ng-shell-nav-icon-border: rgba(97, 85, 218, 0.44);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #9a91ee, #5751b3);
  --ng-shell-nav-label-bg: #332d69;
}

html[data-ui-theme="cosmic"][data-theme="dark"] {
  --ng-shell-nav-bg: rgba(8, 13, 40, 0.96);
  --ng-shell-card-bg: linear-gradient(145deg, rgba(21, 31, 80, 0.98), rgba(8, 13, 40, 0.99));
  --ng-shell-card-border: rgba(140, 162, 255, 0.22);
  --ng-shell-card-decor: radial-gradient(circle at 84% 12%, rgba(101, 116, 255, 0.3), transparent 43%), radial-gradient(circle at 12% 100%, rgba(28, 205, 219, 0.15), transparent 38%);
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #24315e, #111936);
  --ng-shell-nav-icon-border: rgba(134, 151, 255, 0.52);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #6575e5, #26336f);
  --ng-shell-nav-label-bg: #11172f;
}

html[data-ui-theme="aurora"][data-theme="light"] {
  --ng-shell-nav-bg: rgba(245, 255, 252, 0.96);
  --ng-shell-card-bg: linear-gradient(150deg, #ffffff, #e8fbf6);
  --ng-shell-card-border: rgba(27, 166, 147, 0.2);
  --ng-shell-card-decor: radial-gradient(ellipse at 88% 0%, rgba(51, 200, 157, 0.2), transparent 42%), linear-gradient(115deg, transparent 50%, rgba(105, 88, 206, 0.08));
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #ffffff, #d8f5ed);
  --ng-shell-nav-icon-border: rgba(34, 174, 151, 0.45);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #79dfc4, #269783);
  --ng-shell-nav-label-bg: #205c57;
}

html[data-ui-theme="aurora"][data-theme="dark"] {
  --ng-shell-nav-bg: rgba(7, 38, 43, 0.96);
  --ng-shell-card-bg: linear-gradient(150deg, rgba(19, 67, 62, 0.98), rgba(7, 38, 43, 0.99));
  --ng-shell-card-border: rgba(128, 255, 211, 0.23);
  --ng-shell-card-decor: radial-gradient(ellipse at 88% 0%, rgba(101, 255, 198, 0.28), transparent 42%), linear-gradient(115deg, transparent 50%, rgba(111, 183, 255, 0.08));
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #1b5b53, #0b3337);
  --ng-shell-nav-icon-border: rgba(128, 255, 211, 0.5);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #51d4aa, #176660);
  --ng-shell-nav-label-bg: #0c3434;
}

html[data-ui-theme="particles"][data-theme="light"] {
  --ng-shell-nav-bg: rgba(244, 251, 255, 0.97);
  --ng-shell-card-bg: linear-gradient(160deg, #ffffff, #e8f5fa);
  --ng-shell-card-border: rgba(35, 126, 178, 0.22);
  --ng-shell-card-decor: linear-gradient(90deg, rgba(36, 134, 187, 0.08) 1px, transparent 1px), linear-gradient(rgba(36, 134, 187, 0.06) 1px, transparent 1px);
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #ffffff, #d8eef7);
  --ng-shell-nav-icon-border: rgba(35, 126, 190, 0.46);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #5ac4dd, #287daa);
  --ng-shell-nav-label-bg: #204b68;
}

html[data-ui-theme="particles"][data-theme="dark"] {
  --ng-shell-nav-bg: rgba(5, 18, 27, 0.97);
  --ng-shell-card-bg: linear-gradient(160deg, rgba(12, 31, 43, 0.99), rgba(5, 18, 27, 0.99));
  --ng-shell-card-border: rgba(0, 214, 255, 0.24);
  --ng-shell-card-decor: linear-gradient(90deg, rgba(0, 225, 255, 0.08) 1px, transparent 1px), linear-gradient(rgba(0, 225, 255, 0.05) 1px, transparent 1px);
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #123544, #071923);
  --ng-shell-nav-icon-border: rgba(61, 227, 255, 0.52);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #1cc8dc, #0b4f67);
  --ng-shell-nav-label-bg: #071923;
}

html[data-ui-theme="esports"][data-theme="light"] {
  --ng-shell-nav-bg: rgba(255, 248, 251, 0.97);
  --ng-shell-card-bg: linear-gradient(135deg, #ffffff, #f7edf3);
  --ng-shell-card-border: rgba(217, 52, 99, 0.22);
  --ng-shell-card-decor: linear-gradient(120deg, transparent 60%, rgba(232, 52, 103, 0.11) 60%, rgba(89, 73, 213, 0.05) 82%, transparent 82%);
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #ffffff, #f5dfe8);
  --ng-shell-nav-icon-border: rgba(222, 49, 99, 0.48);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #ee668e, #7756c9);
  --ng-shell-nav-label-bg: #58243d;
}

html[data-ui-theme="esports"][data-theme="dark"] {
  --ng-shell-nav-bg: rgba(12, 20, 32, 0.97);
  --ng-shell-card-bg: linear-gradient(135deg, #1b2a3c, #111c2b);
  --ng-shell-card-border: rgba(76, 178, 235, 0.22);
  --ng-shell-card-decor: linear-gradient(120deg, transparent 60%, rgba(34, 182, 240, 0.12) 60%, rgba(236, 50, 104, 0.05) 82%, transparent 82%);
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #24415c, #121f30);
  --ng-shell-nav-icon-border: rgba(61, 191, 248, 0.5);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #28bce9, #5a4fd0);
  --ng-shell-nav-label-bg: #101b2a;
}

html[data-ui-theme="arcade"][data-theme="light"] {
  --ng-shell-nav-bg: rgba(255, 249, 253, 0.97);
  --ng-shell-card-bg: linear-gradient(150deg, #ffffff, #f7edff);
  --ng-shell-card-border: rgba(121, 72, 218, 0.23);
  --ng-shell-card-decor: radial-gradient(circle at 86% 10%, rgba(218, 86, 179, 0.18), transparent 34%), linear-gradient(135deg, transparent 55%, rgba(105, 76, 207, 0.1));
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #ffffff, #f0dcff);
  --ng-shell-nav-icon-border: rgba(121, 72, 218, 0.48);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #dc79c9, #6f56c9);
  --ng-shell-nav-label-bg: #4b2a62;
}

html[data-ui-theme="arcade"][data-theme="dark"] {
  --ng-shell-nav-bg: rgba(24, 16, 43, 0.97);
  --ng-shell-card-bg: linear-gradient(150deg, #2a1742, #18102b);
  --ng-shell-card-border: rgba(250, 93, 214, 0.32);
  --ng-shell-card-decor: radial-gradient(circle at 86% 10%, rgba(255, 80, 207, 0.24), transparent 34%), linear-gradient(135deg, transparent 55%, rgba(115, 87, 255, 0.13));
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #542766, #211235);
  --ng-shell-nav-icon-border: rgba(255, 103, 215, 0.58);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #ed55c7, #6546bd);
  --ng-shell-nav-label-bg: #251337;
}

html[data-ui-theme="gold"][data-theme="light"] {
  --ng-shell-nav-bg: rgba(255, 253, 248, 0.97);
  --ng-shell-card-bg: linear-gradient(145deg, #fffefa, #f3ede2);
  --ng-shell-card-border: rgba(159, 121, 62, 0.25);
  --ng-shell-card-decor: radial-gradient(circle at 88% 5%, rgba(193, 143, 56, 0.17), transparent 38%), linear-gradient(115deg, transparent 62%, rgba(193, 143, 56, 0.08));
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #fffdf6, #ead9b9);
  --ng-shell-nav-icon-border: rgba(166, 121, 49, 0.5);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #e4c475, #9a6b25);
  --ng-shell-nav-label-bg: #4e3b22;
}

html[data-ui-theme="gold"][data-theme="dark"] {
  --ng-shell-nav-bg: rgba(21, 18, 13, 0.97);
  --ng-shell-card-bg: linear-gradient(145deg, #272016, #15120d);
  --ng-shell-card-border: rgba(219, 175, 88, 0.32);
  --ng-shell-card-decor: radial-gradient(circle at 88% 5%, rgba(229, 188, 101, 0.21), transparent 38%), linear-gradient(115deg, transparent 62%, rgba(193, 143, 56, 0.08));
  --ng-shell-nav-icon-surface: linear-gradient(145deg, #5a4727, #211a10);
  --ng-shell-nav-icon-border: rgba(230, 197, 123, 0.64);
  --ng-shell-nav-pedestal: linear-gradient(180deg, #e7c675, #8c5d1e);
  --ng-shell-nav-label-bg: #211a10;
}

@media (min-width: 900px) {
  .ng-bottom-nav {
    bottom: 16px;
    padding-bottom: 7px;
  }

  .ng-bottom-nav::before {
    border-bottom: 1px solid var(--ng-shell-line);
    border-radius: 24px;
  }
}

@media (max-width: 360px) {
  :root { --ng-shell-nav-height: 74px; }
  .ng-bottom-nav { padding-inline: 5px; }
  .ng-bottom-nav__item { min-height: 59px; }
  .ng-bottom-nav__icon { width: 38px; height: 38px; padding: 0; }
  .ng-bottom-nav__item--home .ng-bottom-nav__icon { padding: 0; }
  .ng-bottom-nav__label { min-width: 38px; padding-inline: 6px; font-size: 9px; }
}

@media (max-width: 768px) {
  body.ng-app-shell-home #cardsScroll .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body.ng-app-shell-home #cardsScroll .card {
    min-height: 122px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "avatar" "meta" "cta";
    justify-items: center;
    gap: 5px;
    padding: 8px 5px 6px;
    border-radius: 12px;
  }

  body.ng-app-shell-home #cardsScroll .card .avatar {
    grid-area: avatar;
    align-self: auto;
    width: 44px;
    height: 44px;
    min-height: 0;
    object-fit: cover;
    border-radius: 50%;
    filter: none;
  }

  body.ng-app-shell-home #cardsScroll .card .meta {
    grid-area: meta;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  body.ng-app-shell-home #cardsScroll .card .title {
    width: 100%;
    font-size: 13px;
    white-space: nowrap;
  }

  body.ng-app-shell-home #cardsScroll .card .desc,
  body.ng-app-shell-home #cardsScroll .card .rating {
    display: none;
  }

  body.ng-app-shell-home #cardsScroll .card .go {
    grid-area: cta;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    margin: 0;
    padding: 3px;
    border-radius: 8px;
    font-size: 10px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  :root { --ng-shell-nav-height: 58px; }
  .ng-bottom-nav { padding-top: 4px; }
  .ng-bottom-nav__item { min-height: 48px; }
  .ng-bottom-nav__item--home { transform: none; }
  .ng-bottom-nav__item--home:active { transform: scale(0.94); }
  .ng-bottom-nav__item--home .ng-bottom-nav__icon { padding: 0; border: 0; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ng-bottom-nav__item { transition: none; }
  .ng-bottom-nav__icon { transition: none; }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .ng-bottom-nav::before { background: var(--ng-shell-surface-strong); }
  .ng-bottom-nav__item[aria-current="page"] { background: rgba(36, 118, 239, 0.1); }
}

.ng-shell-status {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin: 12px; padding: 12px; border-radius: 12px;
  color: var(--ng-shell-text, #dce7ff); background: var(--ng-shell-surface-strong, #162137);
  font-size: 14px; line-height: 1.5;
}
.ng-shell-status button { min-height: 40px; padding: 8px 14px; border: 1px solid currentColor; border-radius: 10px; color: inherit; background: transparent; cursor: pointer; }
.ng-shell-status button:disabled { opacity: .55; cursor: wait; }
