/* XLabAPK homepage: shared tokens and base */
:root {
  color-scheme: light;
  --xl-bg: #fff;
  --xl-bg-alt: #f8fafc;
  --xl-home-card: #f8fafc;
  --xl-text: #1e293b;
  --xl-text-secondary: #64748b;
  --xl-accent: #e11d48;
  --xl-border: #e2e8f0;
  --xl-radius: 12px;
  --xl-radius-sm: 8px;
  --xl-container: 1200px;
  --xl-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --xl-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background: var(--xl-bg);
  color: var(--xl-text);
  font: 400 1rem/1.55 var(--xl-font-sans);
  -webkit-font-smoothing: antialiased;
}
button, input {
  font: inherit;
}
a {
  color: inherit;
}
.xl-container {
  width: min(calc(100% - 32px), var(--xl-container));
  margin-inline: auto;
  padding-inline: 8px;
}
.xl-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;
}
.xl-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xl-menu-open {
  overflow: hidden;
}
/* Header, desktop navigation, search and mobile drawer */
.xl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--xl-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.xl-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.xl-logo {
  flex: 0 0 auto;
  color: var(--xl-accent);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.xl-logo:focus-visible, .xl-desktop-nav a:focus-visible, .xl-menu-item:focus-visible, .xl-view-all:focus-visible {
  outline: 2px solid var(--xl-accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.xl-desktop-nav {
  display: none;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.xl-desktop-nav a {
  color: var(--xl-text-secondary);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.xl-desktop-nav a:hover {
  color: var(--xl-accent);
}
.xl-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.xl-nav-btn {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--xl-text-secondary);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.xl-nav-btn:hover, .xl-nav-btn:focus-visible {
  border-color: var(--xl-border);
  background: var(--xl-bg-alt);
  color: var(--xl-accent);
}
.xl-nav-btn:focus-visible, .xl-menu-close:focus-visible, .xl-slider-nav:focus-visible {
  outline: 2px solid var(--xl-accent);
  outline-offset: 2px;
}
.xl-nav-btn[aria-expanded="true"] {
  color: var(--xl-accent);
  background: #fff1f2;
  border-color: #fecdd3;
}
.xl-search-panel {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  max-height: min(90vh, 500px);
  overflow: hidden;
  border: 1px solid var(--xl-border);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--xl-bg);
  box-shadow: 0 12px 28px rgba(15,23,42,.12);
}
.xl-search-panel[hidden] {
  display: none;
}
.xl-search-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--xl-border);
}
@media (min-width: 768px) {
  .xl-search-inner { min-height: 72px; }
}
@media (max-width: 420px) {
  .xl-search-inner { min-height: 60px; }
}
.xl-search-inner .xl-search-label {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.xl-search-back {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--xl-text-secondary);
  cursor: pointer;
}
.xl-search-back:hover, .xl-search-back:focus-visible {
  border-color: var(--xl-border);
  color: var(--xl-accent);
}
.xl-search-back:focus-visible { outline: 2px solid var(--xl-accent); outline-offset: 1px; }
.xl-search-close {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--xl-bg);
  color: var(--xl-text-secondary);
  cursor: pointer;
}
.xl-search-close:hover, .xl-search-close:focus-visible {
  color: var(--xl-accent);
  border-color: var(--xl-accent);
}
.xl-search-label {
  display: block;
  font-size: 0;
}
.xl-search-label input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--xl-bg);
  color: var(--xl-text);
  font-size: 1rem;
}
/* Keep the active search field free of the red accent ring. */
.xl-search-label input:focus-visible {
  outline: 2px solid var(--xl-text-secondary);
  outline-offset: 1px;
  border-color: var(--xl-border);
}
.xl-search-label input::placeholder { color: var(--xl-text-secondary); opacity: .8; }
.xl-search-open .xl-header-inner { visibility: hidden; }
.xl-search-results {
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 10px;
  padding-bottom: 12px;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}
.xl-search-results::-webkit-scrollbar { width: 6px; }
.xl-search-results::-webkit-scrollbar-thumb { border-radius: 6px; background: #cbd5e1; }
.xl-search-results:empty { display: none; }
.xl-search-results-title {
  margin: 0 0 6px;
  color: var(--xl-text-secondary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.xl-search-result-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.xl-search-result-list > li + li { border-top: 1px solid var(--xl-border); }
.xl-search-result {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 10px;
  color: var(--xl-text);
  text-decoration: none;
}
.xl-search-result:hover, .xl-search-result:focus-visible { background: var(--xl-bg-alt); outline: none; }
.xl-search-result:focus-visible { box-shadow: inset 0 0 0 2px var(--xl-accent); }
.xl-search-result .xl-card-media { flex: 0 0 44px; width: 44px; height: 44px; }
.xl-search-result .xl-card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.xl-search-result-body { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.xl-search-result-topline { display: flex; min-width: 0; align-items: center; gap: 7px; }
.xl-search-result-name { overflow: hidden; font-size: .9rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.xl-search-result-badges { display: inline-flex; flex: 0 0 auto; gap: 4px; }
.xl-search-result-badges .xl-badge { padding: 2px 5px; font-size: .58rem; }
.xl-search-result-meta { overflow: hidden; color: var(--xl-text-secondary); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.xl-search-more { display: block; margin-top: 6px; padding: 11px 8px; border-top: 1px solid var(--xl-border); color: var(--xl-accent); font-size: .88rem; font-weight: 700; text-align: center; text-decoration: none; }
.xl-search-more:focus-visible, .xl-search-retry:focus-visible { outline: 2px solid var(--xl-accent); outline-offset: 2px; }
.xl-search-more-hint { padding: 0 8px 8px; font-size: .75rem; }
.xl-search-retry { margin-top: 8px; padding: 7px 12px; border: 1px solid var(--xl-border); border-radius: 8px; background: var(--xl-bg); color: var(--xl-accent); font: inherit; font-weight: 700; cursor: pointer; }
.xl-search-empty { padding: 18px 8px 20px; text-align: center; }
.xl-search-empty strong { display: block; color: var(--xl-text); font-size: .95rem; }
.xl-search-empty span { display: block; margin-top: 4px; color: var(--xl-text-secondary); font-size: .82rem; }
@media (max-width: 767px) {
  .xl-search-panel { max-height: 90vh; }
  .xl-search-back { display: grid; }
  .xl-search-results { max-height: min(68vh, calc(90vh - 96px)); }
}
.xl-menu-overlay {
  position: fixed;
  z-index: 70;
  inset: 0;
  visibility: hidden;
  background: rgba(15,23,42,.42);
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}
.xl-menu-overlay.active {
  visibility: visible;
  opacity: 1;
}
.xl-menu-panel {
  position: fixed;
  z-index: 80;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(86vw, 360px);
  padding: 76px 22px 28px;
  overflow-y: auto;
  border-left: 1px solid var(--xl-border);
  background: var(--xl-bg);
  box-shadow: -12px 0 32px rgba(15,23,42,.12);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .22s ease, visibility .22s ease;
}
.xl-menu-panel.active {
  transform: translateX(0);
  visibility: visible;
}
.xl-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--xl-border);
  border-radius: 10px;
  background: var(--xl-bg-alt);
  color: var(--xl-text-secondary);
  cursor: pointer;
}
.xl-menu-item {
  padding: 14px 4px;
  border-bottom: 1px solid var(--xl-border);
  color: var(--xl-text);
  font-weight: 600;
  text-decoration: none;
}
.xl-menu-item:hover {
  color: var(--xl-accent);
}
/* Homepage primary heading */
.xl-homepage-h1 {
  max-width: 900px;
  margin: 18px 0 14px;
  color: var(--xl-text);
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
}

/* Featured slider */
.xl-featured-section {
  padding-top: 20px;
}
.xl-slider {
  position: relative;
  overflow: hidden;
  margin: 0 auto 8px;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 8px 24px rgba(15,23,42,.16);
  touch-action: pan-y;
}
.xl-slider-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.xl-slider-card {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}
.xl-slider-link {
  position: relative;
  display: block;
  min-height: 230px;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.xl-slider-picture, .xl-slider-img, .xl-slider-fallback {
  display: block;
  width: 100%;
  height: 100%;
}
.xl-slider-picture {
  position: absolute;
  inset: 0;
}
.xl-slider-img, .xl-slider-fallback {
  position: absolute;
  inset: 0;
}
.xl-slider-img {
  object-fit: cover;
  object-position: center;
}
.xl-slider-fallback {
  background: radial-gradient(circle at 78% 24%, rgba(225,29,72,.52), transparent 32%), linear-gradient(135deg, #1e293b, #0f172a);
}
.xl-slider-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg,rgba(0,0,0,.68) 0%,rgba(0,0,0,.34) 42%,rgba(0,0,0,.04) 76%), linear-gradient(0deg,rgba(0,0,0,.48),transparent 58%);
}
.xl-slider-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px;
  color: #fff;
}
.xl-slider-editors-picks {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(250,204,21,.45);
  border-radius: 999px;
  background: rgba(15,23,42,.78);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 16px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
}
.xl-slider-editors-picks svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #facc15;
  stroke: currentColor;
}

/* Tablet icon count is controlled by the homepage tablet_count setting. */
@media (min-width: 768px) and (max-width: 1099px) {
  .xl-card-sm.xl-app-card.xl-home-tablet-extra {
    display: none;
  }
}

/* The Editor's Picks badge stays visible and anchored near the top-left on desktop and mobile. */
/* Extra latest-item cards are rendered for desktop but preserve the configured mobile count. */
@media (max-width: 767px) {
  .xl-card-sm.xl-app-card.xl-home-desktop-extra {
    display: none;
  }
}
.xl-slider-featured-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 10px;
}
.xl-slider-featured-labels .xl-badge {
  max-width: 100%;
  min-height: 21px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(15,18,24,.72);
  color: rgba(255,255,255,.94);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}
.xl-slider-app-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.xl-slider-icon {
  display: block;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
}
.xl-slider-app-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xl-slider-app-icon.xl-icon-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: rgba(15,23,42,.78);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}
.xl-slider-app-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.xl-slider-title {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.42);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.xl-slider-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  line-height: 1.2;
}
.xl-slider-meta-item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}
.xl-slider-meta-item > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.xl-slider-meta-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xl-slider-meta-divider {
  color: rgba(255,255,255,.48);
}
.xl-slider-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(15,23,42,.54);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.xl-slider-nav:hover {
  background: rgba(15,23,42,.82);
}
.xl-slider-nav--prev {
  left: 14px;
}
.xl-slider-nav--next {
  right: 14px;
}
.xl-slider-nav .xl-icon {
  width: 21px;
  height: 21px;
}
.xl-slider-dots {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.xl-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.xl-slider-dot.is-active {
  width: 22px;
  background: #fff;
}
.xl-slider-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
/* Sections, APK cards and metadata */
.xl-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--xl-border);
}
.xl-section:last-of-type {
  border-bottom: 0;
}
.xl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--xl-border);
}
.xl-section-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--xl-text);
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.xl-section-icon {
  display: inline-flex;
  flex: 0 0 21px;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: var(--xl-accent);
}
.xl-section-icon .xl-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* XLabAPK - TRENDING NOW TITLE */
.xl-slider-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.xl-view-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: var(--xl-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.xl-view-all:hover {
  text-decoration: underline;
}
.xl-grid-horizontal, .xl-grid-grid, .xl-grid-list {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px 12px;
}
.xl-grid-list {
  grid-template-columns: 1fr;
}
.xl-grid-list .xl-card-sm {
  max-width: 720px;
}
.xl-card {
  color: inherit;
  text-decoration: none;
}
.xl-card[data-homepage-card] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.xl-card-sm.xl-app-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 106px;
  padding: 7px 5px 6px;
  border: 0;
  border-radius: 12px;
  background: var(--xl-home-card);
  box-shadow: none;
  transition: transform .16s ease;
}
.xl-card-sm.xl-app-card:hover {
  transform: translateY(-2px);
}
.xl-card-sm.xl-app-card:focus-visible {
  outline: 2px solid var(--xl-accent);
  outline-offset: 4px;
  border-radius: 8px;
}
.xl-card-sm.xl-app-card .xl-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 9px;
}
.xl-card-sm.xl-app-card .xl-card-media img, .xl-card-sm.xl-app-card .xl-card-media > .xl-icon-fallback {
  display: block;
  width: clamp(56px, 6vw, 76px);
  height: clamp(56px, 6vw, 76px);
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 17px;
  object-fit: contain;
  box-shadow: none;
}
.xl-card-sm.xl-app-card .xl-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.xl-card-sm.xl-app-card .xl-card-title {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  min-height: 2.5em;
  overflow: hidden;
  color: var(--xl-text);
  font-size: .78rem;
  font-weight: 550;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.xl-card-sm.xl-app-card--enhanced {
  align-items: stretch;
  padding: 13px 11px 11px;
  border: 1px solid var(--xl-border);
  border-radius: var(--xl-radius);
  background: var(--xl-bg);
  box-shadow: 0 2px 8px rgba(15,23,42,.035);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.xl-card-sm.xl-app-card--enhanced:hover {
  border-color: #cbd5e1;
  box-shadow: var(--xl-shadow);
}
.xl-card-sm.xl-app-card--enhanced:focus-visible {
  transform: translateY(-1px);
  border-color: var(--xl-accent);
  box-shadow: 0 0 0 3px rgba(225,29,72,.14), 0 5px 14px rgba(15,23,42,.1);
  outline-offset: 3px;
}
.xl-card-sm.xl-app-card--enhanced:active {
  transform: translateY(0) scale(.99);
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
  transition-duration: .08s;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-topline {
  display: grid;
  grid-template-columns: clamp(48px, 5vw, 62px) minmax(0, 1fr);
  min-height: 66px;
  align-items: start;
  gap: 16px;
  min-width: 0;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-media {
  justify-content: flex-start;
  width: clamp(48px, 5vw, 62px);
  height: clamp(48px, 5vw, 62px);
  margin: 0;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-media img,
.xl-card-sm.xl-app-card--enhanced .xl-card-media > .xl-icon-fallback {
  width: clamp(48px, 5vw, 62px);
  height: clamp(48px, 5vw, 62px);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 15px;
  background: var(--xl-bg-alt);
  box-shadow: none;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-body {
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-title {
  height: auto;
  min-height: 1.3em;
  align-self: stretch;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  letter-spacing: -.01em;
}
.xl-card-sm.xl-app-card--enhanced .xl-app-rating {
  justify-content: flex-start;
}
.xl-card-developer, .xl-card-meta {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--xl-text-secondary);
  font-size: .74rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-developer,
.xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  height: 1.35em;
}
.xl-card-meta {
  color: #778397;
  font-size: .7rem;
}
.xl-app-rating {
  display: inline-flex;
  min-height: 16px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--xl-text-secondary);
  font-size: .72rem;
  line-height: 1;
}
.xl-app-rating-value {
  font-variant-numeric: tabular-nums;
}
.xl-app-rating-star {
  color: #f59e0b;
  font-size: .78rem;
  line-height: 1;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-badges {
  display: flex;
  min-width: 0;
  max-height: 66px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5px;
  overflow: hidden;
}

.xl-card-sm.xl-app-card--enhanced .xl-card-badges .xl-badge {
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid #f4c8d2;
  border-radius: 7px;
  background: #fff4f6;
  color: #a31236;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-developer {
  display: flex;
  height: auto;
  min-height: 1.35em;
  align-items: center;
  color: var(--xl-accent);
}
.xl-card-sm.xl-app-card--enhanced .xl-card-developer .xl-slider-meta-item {
  width: 100%;
  overflow: hidden;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-developer .xl-slider-meta-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  display: flex;
  height: auto;
  min-height: 1.35em;
  align-items: center;
  gap: 10px;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-meta-item {
  flex: 0 1 auto;
  width: auto;
  overflow: hidden;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-meta-item > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-meta-item svg {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.xl-badge--online {
  border-color: #f4c8d2;
  background: #fff4f6;
  color: #a31236;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.xl-section--collection .xl-section-header {
  border-bottom-color: #fecdd3;
}
.xl-section--collection .xl-section-icon {
  color: #be123c;
}
.xl-section--collection .xl-card-sm.xl-app-card--enhanced {
  background: linear-gradient(145deg, #fff 55%, #fff7f8);
}
.xl-section--paid .xl-section-header {
  border-bottom-color: #fde68a;
}
.xl-section--paid .xl-grid-horizontal {
  grid-template-columns: 1fr;
  gap: 10px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  min-height: 84px;
  padding: 10px 12px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-topline {
  display: flex;
  min-height: 62px;
  width: 62px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-media {
  width: 62px;
  height: 62px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-media img,
.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-media > .xl-icon-fallback {
  width: 62px;
  height: 62px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-badges {
  display: none;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-body {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  gap: 3px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-title {
  min-height: 0;
  font-size: .86rem;
  line-height: 1.25;
}
.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-title-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 2px 6px;
  border: 1px solid #d6dbe3;
  border-radius: 7px;
  background: #f8fafc;
  color: #5f6877;
  font-size: .56rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-developer,
.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  min-height: 1.25em;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  gap: 6px;
}

@media (min-width: 768px) {
  .xl-section--paid .xl-grid-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  gap: 6px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta-item {
  gap: 3px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta-item svg {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  font-size: .68rem;
}
.xl-section--collection .xl-grid-horizontal,
.xl-section--collection .xl-grid-grid,
.xl-section--paid .xl-grid-horizontal,
.xl-section--paid .xl-grid-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.xl-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.xl-badge--paid {
  border-color: #f4c8d2;
  background: #fff4f6;
  color: #a31236;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.xl-badge--premium {
  border-color: #f4c8d2;
  background: #fff4f6;
  color: #a31236;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.xl-badge--mod {
  border-color: #f4c8d2;
  background: #fff4f6;
  color: #a31236;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.xl-badge--pro {
  border-color: #f4c8d2;
  background: #fff4f6;
  color: #a31236;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.xl-badge--offline {
  border-color: #f4c8d2;
  background: #fff4f6;
  color: #a31236;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.xl-badge--original {
  border-color: #f4c8d2;
  background: #fff4f6;
  color: #a31236;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.xl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--xl-radius-sm);
  font-size: .8rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.xl-btn--primary {
  background: var(--xl-accent);
  color: #fff;
}
.xl-btn--primary:hover {
  transform: translateY(-1px);
  background: #be123c;
}
.xl-btn--secondary {
  border: 1px solid var(--xl-border);
  background: var(--xl-bg-alt);
  color: var(--xl-text-secondary);
}
.xl-btn--secondary:hover {
  border-color: var(--xl-accent);
  color: var(--xl-accent);
}
/* Footer and mobile bottom navigation */
.xl-footer {
  margin-top: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--xl-border);
  background: var(--xl-bg-alt);
}
.xl-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.xl-footer .xl-logo {
  font-size: 1.25rem;
}
.xl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.xl-footer-link, .xl-footer-copyright {
  color: var(--xl-text-secondary);
  font-size: .84rem;
}
.xl-footer-link {
  text-decoration: none;
}
.xl-footer-link:hover {
  color: var(--xl-accent);
  text-decoration: underline;
}

/* Compact branded footer with non-repetitive utility links */
.xl-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-content: initial;
  gap: 18px;
}
.xl-footer-brand { min-width: 0; }
.xl-footer-tagline {
  margin: 5px 0 0;
  color: var(--xl-text-secondary);
  font-size: .88rem;
  line-height: 1.5;
}
.xl-footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.xl-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.xl-footer-heading {
  grid-column: 1 / -1;
  color: var(--xl-text);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.xl-footer-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.xl-footer-link-icon {
  display: block;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px;
  max-width: 17px;
  min-height: 17px;
  max-height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xl-footer-social { display: grid; gap: 12px; align-content: start; }
.xl-footer-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.xl-footer-social-link {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--xl-border);
  border-radius: 13px;
  background: var(--xl-card, #fff);
  color: var(--xl-text-secondary);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.xl-footer-social-link:hover {
  color: var(--xl-accent);
  border-color: var(--xl-accent);
  transform: translateY(-1px);
}
.xl-footer-social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.xl-footer-social-link svg rect,
.xl-footer-social-link svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.xl-footer-social-link svg .xl-social-dot { fill: currentColor; stroke: none; }
.xl-footer-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--xl-border);
}
.xl-footer-copyright { display: block; }
.xl-bottom-nav {
  display: none;
}
/* Tablet and desktop */
@media (min-width: 600px) {
  .xl-footer { padding: 30px 0 24px; }
  .xl-footer-columns { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; }
  .xl-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xl-container {
    width: min(calc(100% - 48px), var(--xl-container));
    padding-inline: 12px;
  }
  .xl-grid-horizontal, .xl-grid-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
  }
  .xl-section--collection .xl-grid-horizontal,
  .xl-section--collection .xl-grid-grid,
  .xl-section--paid .xl-grid-horizontal,
  .xl-section--paid .xl-grid-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
  }
  .xl-section {
    padding-block: 30px;
  }
}
@media (min-width: 768px) {
  .xl-header-inner {
    min-height: 72px;
  }
  .xl-logo {
    font-size: 1.6rem;
  }
  .xl-desktop-nav {
    display: flex;
  }
  .xl-nav {
    margin-left: 0;
  }
  .xl-nav-btn[data-menu-toggle] {
    display: none;
  }
  .xl-slider-link {
    min-height: 300px;
    aspect-ratio: 16 / 5.7;
  }
  .xl-slider-content {
    max-width: 720px;
    padding: 28px;
  }
  .xl-slider-editors-picks {
    top: 22px;
    left: 22px;
  }
  .xl-slider-nav--prev {
    left: 18px;
  }
  .xl-slider-nav--next {
    right: 18px;
  }
  .xl-section-title {
    font-size: 1.3rem;
  }
  .xl-section--collection .xl-grid-horizontal,
  .xl-section--collection .xl-grid-grid,
  .xl-section--paid .xl-grid-horizontal,
  .xl-section--paid .xl-grid-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
  }
}
@media (min-width: 1100px) {
  .xl-grid-horizontal, .xl-grid-grid {
    grid-template-columns: repeat(8,minmax(0,1fr));
  }
  #latest-games > .xl-container > .xl-grid-grid,
  #latest-apps > .xl-container > .xl-grid-grid {
    grid-template-columns: repeat(var(--xl-home-desktop-columns,8),minmax(0,1fr));
  }
  .xl-section--collection .xl-grid-horizontal,
  .xl-section--collection .xl-grid-grid,
  .xl-section--paid .xl-grid-horizontal,
  .xl-section--paid .xl-grid-grid {
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 20px;
  }
  .xl-slider-link {
    min-height: 340px;
    aspect-ratio: 16 / 5.5;
  }
}
@media (min-width: 1500px) {
  .xl-section--collection .xl-grid-horizontal,
  .xl-section--collection .xl-grid-grid,
  .xl-section--paid .xl-grid-horizontal,
  .xl-section--paid .xl-grid-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
  }
  .xl-slider-link {
    min-height: 360px;
  }
}
@media (max-width: 767px) {
  .xl-slider-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(252px, 58vw, 320px);
    padding-top: 92px;
    aspect-ratio: auto;
  }
  .xl-slider-content {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: none;
    padding: 12px clamp(14px, 4vw, 20px) 16px;
  }
  .xl-slider-featured-labels {
    gap: 5px;
    margin-bottom: 9px;
  }
  .xl-slider-app-info {
    gap: 10px;
  }
  .xl-slider-icon {
    flex-basis: clamp(48px, 13vw, 60px);
    width: clamp(48px, 13vw, 60px);
    height: clamp(48px, 13vw, 60px);
    border-radius: 13px;
  }
  .xl-slider-title {
    margin-bottom: 5px;
    font-size: clamp(1.05rem, 4vw, 1.28rem);
    line-height: 1.18;
  }
  .xl-slider-meta {
    gap: 5px;
    font-size: clamp(.68rem, 2.5vw, .76rem);
    line-height: 1.3;
  }
  .xl-slider-meta-item {
    gap: 4px;
  }
  .xl-slider-meta-item svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .xl-slider-nav {
    top: 56px;
    width: 36px;
    height: 36px;
    transform: none;
  }
  .xl-slider-nav--prev,
  .xl-slider-nav--next {
    display: none;
  }
  .xl-slider-nav--prev {
    left: 8px;
  }
  .xl-slider-nav--next {
    right: 8px;
  }
  .xl-slider-dots {
    top: 12px;
    right: 12px;
    gap: 6px;
  }
  .xl-slider-dot {
    width: 7px;
    height: 7px;
  }
  .xl-slider-dot.is-active {
    width: 18px;
  }
}
/* Small mobile */
@media (max-width: 420px) {
  .xl-container {
    width: calc(100% - 16px);
    padding-inline: 4px;
  }
  .xl-header-inner {
    min-height: 60px;
    gap: 10px;
  }
  .xl-logo {
    font-size: 1.38rem;
  }
  .xl-nav {
    gap: 4px;
  }
  .xl-nav-btn {
    width: 40px;
    height: 40px;
  }
  .xl-featured-section {
    padding-top: 12px;
  }
  .xl-slider {
    border-radius: 15px;
  }
  .xl-slider-editors-picks {
    top: 11px;
    left: 11px;
    gap: 5px;
    padding: 6px 9px;
    font-size: .68rem;
  }
  .xl-slider-editors-picks svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .xl-slider-app-info {
    gap: 9px;
  }
  .xl-section {
    padding-block: 22px;
  }
  .xl-section-header {
    margin-bottom: 14px;
    padding-bottom: 9px;
  }
  .xl-section-title {
    gap: 6px;
    font-size: 1.08rem;
  }
  .xl-section-icon, .xl-section-icon .xl-icon {
    width: 18px;
    height: 18px;
  }
  .xl-grid-horizontal, .xl-grid-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    column-gap: 8px;
    row-gap: 18px;
  }
  .xl-section--collection .xl-grid-horizontal,
  .xl-section--collection .xl-grid-grid,
  .xl-section--paid .xl-grid-horizontal,
  .xl-section--paid .xl-grid-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px 10px;
  }
  .xl-card-sm.xl-app-card .xl-card-media {
    margin-bottom: 7px;
  }
  .xl-card-sm.xl-app-card .xl-card-media img,
  .xl-card-sm.xl-app-card .xl-card-media > .xl-icon-fallback {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .xl-card-sm.xl-app-card:not(.xl-app-card--enhanced) .xl-card-title {
    font-size: .72rem;
  }
  .xl-bottom-nav {
    position: fixed;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    min-height: 62px;
    padding: 5px;
    border: 1px solid var(--xl-border);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
    backdrop-filter: blur(14px);
  }
  .xl-bottom-nav-item {
    display: flex;
    min-width: 0;
    min-height: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--xl-text-secondary);
    font-size: .63rem;
    font-weight: 650;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .xl-bottom-nav-item.active, .xl-bottom-nav-item:focus-visible {
    color: var(--xl-accent);
  }
  .xl-bottom-nav-item:focus-visible {
    outline: 2px solid var(--xl-accent);
    outline-offset: 1px;
  }
  .xl-bottom-nav-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
  }
  .xl-bottom-nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media (min-width: 421px) and (max-width: 767px) {
  .xl-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    min-height: 64px;
    padding: 6px;
    border: 1px solid var(--xl-border);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
    backdrop-filter: blur(14px);
  }
  .xl-bottom-nav-item {
    display: flex;
    min-width: 0;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 3px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--xl-text-secondary);
    font-size: .68rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
  }
  .xl-bottom-nav-item.active, .xl-bottom-nav-item:focus-visible {
    color: var(--xl-accent);
  }
  .xl-bottom-nav-item:focus-visible {
    outline: 2px solid var(--xl-accent);
    outline-offset: 1px;
  }
  .xl-bottom-nav-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
  }
  .xl-bottom-nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
}


/* Catalog pages */
.xl-catalog-page { padding: 12px 0 48px; }
.xl-catalog-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--xl-text-secondary); font-size: .82rem; }
.xl-catalog-breadcrumb a { color: inherit; text-decoration: none; }
.xl-catalog-breadcrumb a:hover { color: var(--xl-accent); }
.xl-catalog-main { min-width: 0; }
.xl-catalog-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.xl-catalog-heading-row h1 { margin: 0; color: var(--xl-text); font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.25; }
.xl-catalog-heading-row p { max-width: 680px; margin: 7px 0 0; color: var(--xl-text-secondary); font-size: .9rem; }
.xl-catalog-view { display: flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius-sm); }
.xl-catalog-view a { padding: 5px 8px; border-radius: 6px; color: var(--xl-text-secondary); font-size: .78rem; text-decoration: none; }
.xl-catalog-view a.is-active { background: #fff1f2; color: var(--xl-accent); }
.xl-catalog-category-picker { margin: 16px 0 12px; }
.xl-catalog-category-toggle { display: flex; width: max-content; min-height: 40px; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius-sm); color: var(--xl-text); font-size: .84rem; font-weight: 600; cursor: pointer; list-style: none; }
.xl-catalog-category-toggle::-webkit-details-marker { display: none; }
.xl-catalog-category-toggle::after { content: '+'; color: var(--xl-accent); font-size: 1.1rem; line-height: 1; }
.xl-catalog-category-picker[open] > .xl-catalog-category-toggle::after { content: '−'; }
.xl-catalog-category-toggle:focus-visible { outline: 2px solid var(--xl-accent); outline-offset: 2px; }
.xl-catalog-categories { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 0; padding: 2px 1px 6px; scrollbar-width: thin; }
.xl-catalog-chip { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--xl-border); border-radius: 999px; color: var(--xl-text-secondary); font-size: .8rem; text-decoration: none; white-space: nowrap; }
.xl-catalog-chip:hover, .xl-catalog-chip.is-active { border-color: #fecdd3; background: #fff1f2; color: var(--xl-accent); }
.xl-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; color: var(--xl-text-secondary); font-size: .84rem; }
.xl-catalog-sort { display: flex; align-items: center; gap: 7px; }
.xl-catalog-sort select, .xl-catalog-sort button { min-height: 36px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius-sm); background: #fff; color: var(--xl-text); font: inherit; }
.xl-catalog-sort select { max-width: 170px; padding: 0 8px; }
.xl-catalog-sort button { padding: 0 10px; color: var(--xl-accent); cursor: pointer; }
.xl-catalog-results.xl-grid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.xl-catalog-results.xl-grid-list { grid-template-columns: 1fr; gap: 10px; }
.xl-catalog-results.xl-grid-list .xl-card { display: grid; grid-template-columns: 60px minmax(0,1fr); align-items: center; gap: 14px; max-width: none; min-height: 82px; padding: 10px 14px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius); background: var(--xl-bg); box-shadow: 0 2px 8px rgb(15 23 42 / 3%); transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.xl-catalog-results.xl-grid-list .xl-card:hover { border-color: color-mix(in srgb, var(--xl-accent) 34%, var(--xl-border)); background: var(--xl-bg-alt); box-shadow: 0 4px 14px rgb(15 23 42 / 6%); }
.xl-catalog-results.xl-grid-list .xl-card-topline { display: block; min-height: 60px; width: 60px; }
.xl-catalog-results.xl-grid-list .xl-card-media { width: 60px; height: 60px; margin: 0; }
.xl-catalog-results.xl-grid-list .xl-card-media img,
.xl-catalog-results.xl-grid-list .xl-card-media > .xl-icon-fallback { width: 60px; height: 60px; border-radius: 14px; }
.xl-catalog-results.xl-grid-list .xl-card-body { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px; row-gap: 3px; }
.xl-catalog-results.xl-grid-list .xl-card-title { grid-column: 1 / -1; min-height: 0; text-align: left; font-size: .96rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.xl-catalog-results.xl-grid-list .xl-card-developer { grid-column: 1; grid-row: 2; }
.xl-catalog-results.xl-grid-list .xl-card-meta { grid-column: 1 / -1; grid-row: 3; }
.xl-catalog-results.xl-grid-list .xl-card-developer,
.xl-catalog-results.xl-grid-list .xl-card-meta { height: auto; min-height: 0; font-size: .76rem; }
.xl-catalog-results.xl-grid-list .xl-card-developer { color: var(--xl-text-secondary); }
.xl-catalog-results.xl-grid-list .xl-app-rating { justify-self: end; grid-column: 2; grid-row: 2; white-space: nowrap; }
.xl-catalog-results.xl-grid-list .xl-card-badges { display: none; }
.xl-catalog-empty { margin: 0; padding: 20px 14px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius); color: var(--xl-text-secondary); text-align: center; }
.xl-catalog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 24px 0 0; }
.xl-catalog-page-number, .xl-catalog-page-step { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius-sm); color: var(--xl-text); font-size: .85rem; text-decoration: none; }
.xl-catalog-page-number.is-current { border-color: var(--xl-accent); background: var(--xl-accent); color: #fff; }
.xl-catalog-page-step { color: var(--xl-accent); }
@media (min-width: 600px) {
  .xl-catalog-results.xl-grid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .xl-catalog-page { padding-top: 18px; }
}
@media (min-width: 900px) {
  .xl-catalog-results.xl-grid-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (max-width: 420px) {
  .xl-catalog-heading-row { flex-wrap: wrap; }
  .xl-catalog-toolbar { flex-wrap: wrap; }
  .xl-catalog-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .xl-catalog-results.xl-grid-list { gap: 8px; }
  .xl-catalog-results.xl-grid-list .xl-card { grid-template-columns: 52px minmax(0,1fr); gap: 11px; min-height: 76px; padding: 9px 10px; }
  .xl-catalog-results.xl-grid-list .xl-card-topline,
  .xl-catalog-results.xl-grid-list .xl-card-media,
  .xl-catalog-results.xl-grid-list .xl-card-media img,
  .xl-catalog-results.xl-grid-list .xl-card-media > .xl-icon-fallback { width: 52px; height: 52px; min-height: 52px; }
  .xl-catalog-results.xl-grid-list .xl-card-title { font-size: .9rem; }
  .xl-catalog-results.xl-grid-list .xl-card-developer,
  .xl-catalog-results.xl-grid-list .xl-card-meta,
  .xl-catalog-results.xl-grid-list .xl-app-rating { font-size: .72rem; }
}


/* Homepage touch polish: remove Android's blue long-press/tap highlight on interactive UI. */
body:has(.xl-homepage-heading) :is(
  a,
  button,
  [role="button"],
  .xl-slider,
  .xl-card,
  .xl-collection-card,
  .xl-bottom-nav-item,
  .xl-nav-btn,
  .xl-menu-item,
  .xl-view-all
) {
  -webkit-tap-highlight-color: transparent;
}

/* Cards and controls should not enter text-selection mode on long-press. */
body:has(.xl-homepage-heading) :is(
  .xl-slider,
  .xl-card[data-homepage-card],
  .xl-collection-card,
  .xl-bottom-nav-item,
  .xl-nav-btn,
  .xl-slider-nav,
  .xl-slider-dot
) {
  -webkit-user-select: none;
  user-select: none;
}

/* Premium compact homepage heading with fire icon */
.xl-homepage-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 4px;
}

.xl-homepage-heading-icon {
  display: inline-flex;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  color: var(--xl-accent);
}

.xl-homepage-heading-icon .xl-icon {
  width: 20px;
  height: 20px;
  position: relative;
  top: -1px;
}

.xl-homepage-heading .xl-homepage-h1 {
  min-width: 0;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}

@media (max-width: 767px) {
  .xl-homepage-heading {
    gap: 6px;
    margin: 8px 0 12px;
  }

  .xl-homepage-heading-icon {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
  }

  .xl-homepage-heading-icon .xl-icon {
    width: 19px;
    height: 19px;
    position: relative;
    top: -1px;
  }

  .xl-homepage-heading .xl-homepage-h1 {
    font-size: 21px;
    line-height: 1.25;
  }

  .xl-featured-section {
    padding-top: 2px;
  }
}

/* News pages: isolated additions, sharing the existing catalog container. */
.xl-news-page { padding-bottom: 56px; }
.xl-news-page > .xl-catalog-breadcrumb { margin-bottom: 18px; }
.xl-news-list { display: grid; gap: 14px; margin-top: 22px; }
.xl-news-card, .xl-news-article { min-width: 0; padding: clamp(18px, 4vw, 30px); border: 1px solid var(--xl-border); border-radius: var(--xl-radius); background: #fff; }
.xl-news-card h2 { margin: 0; font-size: clamp(1.1rem, 3vw, 1.4rem); line-height: 1.3; }
.xl-news-card h2 a { color: var(--xl-text); text-decoration: none; }
.xl-news-card h2 a:hover { color: var(--xl-accent); }
.xl-news-card > p { margin: 10px 0 14px; color: var(--xl-text-secondary); line-height: 1.6; }
.xl-news-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--xl-text-secondary); font-size: .82rem; }
.xl-news-home-grid { display: grid; gap: 16px; }
.xl-news-home-grid--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.xl-news-home-grid--horizontal { grid-auto-columns: minmax(240px, 1fr); grid-auto-flow: column; overflow-x: auto; padding-bottom: 8px; }
.xl-news-home-grid--list { grid-template-columns: 1fr; }
.xl-news-home-card { min-width: 0; overflow: hidden; border: 1px solid var(--xl-border); border-radius: var(--xl-radius); background: #fff; }
.xl-news-home-media { display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; background: #eef2f7; color: var(--xl-text-secondary); text-decoration: none; }
.xl-news-home-image { width: 100%; height: 100%; object-fit: cover; }
.xl-news-home-image-fallback { font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.xl-news-home-body { padding: 16px; }
.xl-news-home-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.xl-news-home-body h3 a { color: var(--xl-text); text-decoration: none; }
.xl-news-home-body h3 a:hover { color: var(--xl-accent); }
.xl-news-home-body p { margin: 9px 0 12px; color: var(--xl-text-secondary); line-height: 1.55; }
.xl-news-home-empty { margin: 16px 0 0; color: var(--xl-text-secondary); }
.xl-news-kicker { margin: 0 0 8px; color: var(--xl-accent); font-size: .8rem; font-weight: 700; }
.xl-news-article > header h1 { margin: 0; color: var(--xl-text); font-size: clamp(1.65rem, 5vw, 2.5rem); line-height: 1.2; overflow-wrap: anywhere; }
.xl-news-summary { margin: 14px 0; color: var(--xl-text-secondary); font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.6; }
.xl-news-featured-image { display: block; width: 100%; max-width: 100%; height: auto; max-height: 520px; margin: 22px auto; border-radius: var(--xl-radius-sm); object-fit: contain; }
.xl-news-body { margin-top: 26px; color: var(--xl-text); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.xl-news-body > :first-child { margin-top: 0; }
.xl-news-body h1, .xl-news-body h2, .xl-news-body h3, .xl-news-body h4 { margin: 1.6em 0 .55em; line-height: 1.3; }
.xl-news-body p, .xl-news-body ul, .xl-news-body ol, .xl-news-body blockquote, .xl-news-body pre { margin: 0 0 1em; }
.xl-news-body a { color: var(--xl-accent); text-underline-offset: 3px; }
.xl-news-body blockquote { margin-left: 0; padding: 10px 16px; border-left: 3px solid var(--xl-accent); background: #fff7f8; color: var(--xl-text-secondary); }
.xl-news-body pre { max-width: 100%; overflow-x: auto; padding: 14px; border-radius: var(--xl-radius-sm); background: #f6f7fa; font-size: .88rem; }
.xl-news-body code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.xl-news-body :not(pre) > code { padding: .12em .35em; border-radius: 4px; background: #f1f3f6; }
@media (min-width: 768px) {
  .xl-news-list { gap: 18px; }
  .xl-news-article { padding: clamp(28px, 5vw, 48px); }
  .xl-news-body { max-width: 76ch; margin: 30px auto 0; }
}

@media (max-width: 767px) {
  .xl-news-page {
    width: min(calc(100% - 24px), var(--xl-container));
    max-width: 100%;
    padding-inline: 0;
  }
  .xl-news-card, .xl-news-article { padding: 16px; }
  .xl-news-body { font-size: 1rem; line-height: 1.7; }
}

@media (max-width: 420px) {
  .xl-homepage-heading {
    gap: 5px;
    margin-top: 6px;
    margin-bottom: 12px;
  }

  .xl-homepage-heading-icon {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
  }

  .xl-homepage-heading-icon .xl-icon {
    width: 17px;
    height: 17px;
    position: relative;
    top: -1px;
  }

  .xl-homepage-heading .xl-homepage-h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  .xl-featured-section {
    padding-top: 2px;
  }
}

.xl-header-inner {
  position: relative;
  z-index: 1;
}

/* Shared charcoal theme is provided by theme.css. */

.xl-slider-dot {
  background: #f3b8cb;
}

.xl-slider-dot.is-active {
  background: #e11d48;
}

.xl-slider-dot:focus-visible {
  outline-color: #e11d48;
}

@media (max-width: 767px) {
  .xl-slider {
    border-radius: 18px;
  }

  .xl-slider-card::after {
    /* Keep the dark gradient on the banner image, not on the glass info panel. */
    background:
      linear-gradient(90deg, rgba(8,12,24,.10) 0%, rgba(8,12,24,.04) 48%, rgba(8,12,24,0) 76%),
      linear-gradient(0deg, rgba(8,12,24,.76) 0%, rgba(8,12,24,.48) 24%, rgba(8,12,24,.18) 49%, transparent 68%);
  }

  .xl-slider-content {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 10px;
  left: 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
  -webkit-backdrop-filter: blur(3px) saturate(108%);
  backdrop-filter: blur(3px) saturate(108%);
}

.xl-slider-editors-picks {
  position: absolute;
  top: 10px;
  bottom: auto;
  left: 10px;
  margin: 0;
  padding: 4px 7px;
  font-size: .60rem;
  line-height: 1.1;
  background: rgba(255,255,255,.88);
  box-shadow: 0 2px 6px rgba(131,24,67,.06);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.xl-slider-editors-picks svg {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

.xl-slider-featured-labels {
  display: flex;
  order: 2;
  gap: 4px;
  margin: 5px 0 0;
}

.xl-slider-featured-labels .xl-badge {
  min-height: 15px;
  padding: 2px 5px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.36);
  color: #881c43;
  font-size: .54rem;
  line-height: 1.05;
  box-shadow: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.xl-slider-app-info {
  gap: 8px;
}

.xl-slider-icon {
  width: 40px;
  height: 40px;
  border-color: rgba(255,255,255,.48);
  box-shadow: none;
}

.xl-slider-title {
  font-size: .94rem;
  line-height: 1.12;
}

.xl-slider-meta {
  gap: 6px;
  font-size: .68rem;
}

@media (max-width: 767px) {
  .xl-slider-content {
    bottom: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 6px 7px;
    border-radius: 11px;
    background: rgba(255,255,255,.17);
    -webkit-backdrop-filter: blur(3px) saturate(108%);
    backdrop-filter: blur(3px) saturate(108%);
  }

  .xl-slider-editors-picks {
    top: 8px;
    left: 8px;
    padding: 3px 6px;
    font-size: .56rem;
  }

  .xl-slider-featured-labels {
    gap: 3px;
    margin-top: 4px;
  }

  .xl-slider-featured-labels .xl-badge {
    min-height: 14px;
    padding: 2px 4px;
    font-size: .50rem;
  }

  .xl-slider-icon {
    width: 38px;
    height: 38px;
  }

  .xl-slider-title {
    font-size: .90rem;
  }

  .xl-slider-meta {
    gap: 5px;
    font-size: .66rem;
  }
}

@media (max-width: 767px) {
  .xl-slider-content {
    right: auto;
    bottom: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    background: rgba(15,23,42,.38);
    -webkit-backdrop-filter: blur(3px) saturate(108%);
    backdrop-filter: blur(3px) saturate(108%);
  }

  .xl-slider-editors-picks {
    top: auto;
    bottom: calc(100% + 7px);
    left: 0;
    padding: 3px 6px;
    font-size: .56rem;
  }

  .xl-slider-featured-labels {
    gap: 3px;
    margin-bottom: 4px;
  }

  .xl-slider-featured-labels .xl-badge {
    min-height: 15px;
    padding: 2px 4px;
    font-size: .52rem;
  }

  .xl-slider-icon {
    width: 40px;
    height: 40px;
  }

  .xl-slider-title {
    font-size: .92rem;
  }

  .xl-slider-meta {
    gap: 6px;
    font-size: .70rem;
  }
}


/* Focused premium mobile slider polish: brighter artwork, compact glass panel, shorter banner. */
@media (max-width: 767px) {
  .xl-slider-link {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .xl-slider-img {
    object-fit: cover;
    object-position: center;
  }

  .xl-slider-card::after {
    background:
      linear-gradient(0deg, rgba(8,12,24,.30) 0%, rgba(8,12,24,.12) 22%, transparent 48%);
  }

  .xl-slider-content {
    bottom: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px;
    background: rgba(15,23,42,.64);
    box-shadow: 0 4px 14px rgba(15,23,42,.18);
    -webkit-backdrop-filter: blur(8px) saturate(125%);
    backdrop-filter: blur(8px) saturate(125%);
  }

  .xl-slider-featured-labels {
    margin: 0 0 5px;
  }

  .xl-slider-featured-labels .xl-badge {
    background: rgba(255,255,255,.18);
    color: #fff;
    border-color: rgba(255,255,255,.32);
  }

  .xl-slider-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .xl-slider-link {
    aspect-ratio: 5 / 4;
  }

  .xl-slider-content {
    padding: 6px 7px;
  }
}

/* Clean mobile featured slider: let the artwork lead; keep labels and metadata crisp without a glass panel. */
@media (max-width: 767px) {
  .xl-slider-link {
    min-height: 0;
    padding-top: 0;
    aspect-ratio: 3 / 2;
  }

  .xl-slider-img {
    object-fit: cover;
    object-position: center;
  }

  .xl-slider-card::after {
    background: linear-gradient(
      0deg,
      rgba(8, 12, 24, .82) 0%,
      rgba(8, 12, 24, .58) 24%,
      rgba(8, 12, 24, .16) 52%,
      transparent 72%
    );
  }

  .xl-slider-content {
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: auto;
    max-width: none;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .48);
  }

  .xl-slider-editors-picks {
    top: 12px;
    right: auto;
    bottom: auto;
    left: 12px;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 999px;
    background: #fff;
    color: #9f1239;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-size: .68rem;
  }

  .xl-slider-editors-picks svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    color: #e11d48;
  }

  .xl-slider-featured-labels {
    order: 1;
    gap: 5px;
    margin: 0 0 7px;
  }

  .xl-slider-featured-labels .xl-badge {
    min-height: 20px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-size: .62rem;
    line-height: 1;
    letter-spacing: .015em;
  }

  .xl-slider-app-info {
    align-items: center;
    gap: 9px;
  }

  .xl-slider-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  }

  .xl-slider-app-icon {
    border-radius: 8px;
  }

  .xl-slider-app-copy {
    min-width: 0;
  }

  .xl-slider-title {
    margin: 0 0 5px;
    color: #fff;
    font-size: clamp(.95rem, 3.8vw, 1.15rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.015em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
    overflow-wrap: anywhere;
  }

  .xl-slider-meta {
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .94);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  }

  .xl-slider-meta-item {
    gap: 4px;
  }

  .xl-slider-meta-item svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    stroke-width: 2;
  }

  .xl-slider-meta-divider {
    color: rgba(255, 255, 255, .68);
  }

  .xl-slider-nav {
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .94);
    color: #be123c;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .xl-slider-nav--prev {
    left: 9px;
  }

  .xl-slider-nav--next {
    right: 9px;
  }

  .xl-slider-nav .xl-icon {
    width: 19px;
    height: 19px;
  }

  .xl-slider-dots {
    top: 13px;
    right: 13px;
    gap: 6px;
  }

  .xl-slider-dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  }

  .xl-slider-dot.is-active {
    width: 19px;
    background: #e11d48;
  }
}

@media (max-width: 380px) {
  .xl-slider-content {
    padding: 10px;
  }

  .xl-slider-editors-picks {
    top: 10px;
    left: 10px;
  }

  .xl-slider-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .xl-slider-title {
    font-size: .9rem;
  }

  .xl-slider-meta {
    gap: 5px;
    font-size: .66rem;
  }
}

/* Mobile slider finishing pass: compact type and align category badges with the app copy. */
@media (max-width: 767px) {
  .xl-slider-content {
    padding: 11px 12px 13px;
  }

  .xl-slider-app-info {
    align-items: center;
    gap: 8px;
  }

  .xl-slider-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .xl-slider-title {
    margin-bottom: 4px;
    font-size: clamp(.88rem, 3.45vw, 1.02rem);
    line-height: 1.18;
    letter-spacing: -.01em;
  }

  .xl-slider-meta {
    gap: 6px;
    font-size: .67rem;
    line-height: 1.25;
  }

  .xl-slider-meta-item {
    gap: 3px;
    min-width: 0;
  }

  .xl-slider-meta-item svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .xl-slider-featured-labels {
    box-sizing: border-box;
    padding-left: 48px;
    gap: 5px;
    margin: 0 0 6px;
    flex-wrap: wrap;
    align-items: center;
  }

  .xl-slider-featured-labels .xl-badge {
    min-height: 19px;
    padding: 4px 7px;
    font-size: .58rem;
    line-height: 1;
    letter-spacing: .01em;
  }

  .xl-slider-editors-picks {
    padding: 5px 8px;
    font-size: .64rem;
  }
}

@media (max-width: 380px) {
  .xl-slider-content {
    padding: 9px 10px 11px;
  }

  .xl-slider-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .xl-slider-title {
    font-size: .84rem;
  }

  .xl-slider-meta {
    gap: 4px;
    font-size: .62rem;
  }

  .xl-slider-featured-labels {
    padding-left: 44px;
    gap: 4px;
  }

  .xl-slider-featured-labels .xl-badge {
    padding: 4px 6px;
    font-size: .55rem;
  }
}

}

/* Featured Collections: direct app-icon grid */
.xl-section--collection .xl-collection-list,
.xl-collections-page .xl-collection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.xl-collection-card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--xl-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #fff8fb 100%);
  box-shadow: 0 4px 14px rgba(15,23,42,.045);
  color: var(--xl-text);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.xl-collection-card:hover,
.xl-collection-card:focus-visible {
  border-color: #f1b6c8;
  box-shadow: 0 8px 22px rgba(190,24,93,.09);
  transform: translateY(-1px);
}
.xl-collection-card:focus-visible {
  outline: 3px solid var(--xl-accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgb(225 29 72 / 18%);
}
.xl-collection-cover {
  position: relative;
  z-index: 3;
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  min-width: 64px;
  place-items: center;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.xl-collection-cover-apps {
  display: grid;
  width: 64px;
  height: 64px;
  grid-template-columns: repeat(2, 27px);
  grid-auto-rows: 27px;
  justify-content: center;
  align-content: center;
  gap: 6px;
  overflow: visible;
  pointer-events: none;
}
.xl-collection-cover-apps .xl-collection-app-icon {
  display: grid;
  box-sizing: border-box;
  width: 27px;
  height: 27px;
  min-width: 0;
  max-width: 27px;
  max-height: 27px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  color: #be123c;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: 0 2px 5px rgb(0 0 0 / 32%);
}
.xl-collection-cover-apps .xl-collection-app-icon:first-child:nth-last-child(1) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 54px;
  height: 54px;
  max-width: 54px;
  max-height: 54px;
  border-radius: 12px;
}
.xl-collection-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.xl-collection-copy strong { overflow-wrap: anywhere; font-size: 1rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.xl-collection-copy > span { color: var(--xl-text-secondary); font-size: .78rem; line-height: 1.35; }
.xl-collection-arrow {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 50%;
  background: rgb(10 16 28 / 48%);
  color: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
}
.xl-collection-arrow .xl-icon { width: 24px; height: 24px; stroke-width: 2.2; }
.xl-collection-meta { display: inline-flex; align-items: center; gap: 7px; }
.xl-collection-meta .xl-icon { flex: 0 0 auto; width: 18px; height: 18px; stroke-width: 1.9; }
.xl-collection-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--xl-text-secondary);
  font-size: .82rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.xl-collections-page { padding-top: 22px; padding-bottom: 44px; }
.xl-collection-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--xl-text-secondary); font-size: .86rem; }
.xl-collection-breadcrumb a { color: var(--xl-accent); text-decoration: none; }
.xl-collections-heading { margin: 0 0 22px; padding: 24px; border: 1px solid #f3dce4; border-radius: 22px; background: linear-gradient(135deg,#fff7fb 0%,#fff 52%,#fff0f5 100%); }
.xl-collections-heading p { margin: 0 0 8px; color: var(--xl-accent); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.xl-collections-heading h1 { margin: 0 0 8px; font-size: clamp(1.7rem,4vw,2.5rem); line-height: 1.12; letter-spacing: -.04em; }
.xl-collections-heading > span { color: var(--xl-text-secondary); }
html[data-theme="dark"]:not([data-theme="dark"]) .xl-collection-card { background: #1b2230; border-color: #303949; color: #f1f5f9; }
html[data-theme="dark"]:not([data-theme="dark"]) .xl-collection-copy > span { color: #b4bfce; }
html[data-theme="dark"]:not([data-theme="dark"]) .xl-collections-heading { background: linear-gradient(135deg,#241b27,#1b2230); border-color: #303949; }
@media (max-width: 767px) {
  .xl-section--collection .xl-container { padding-inline: 0; }
  .xl-section--collection .xl-collection-list,
  .xl-collections-page .xl-collection-list { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .xl-collection-card { min-height: 96px; gap: 12px; padding: 12px; border-radius: 16px; }
  .xl-collection-cover { flex-basis: 70px; width: 70px; height: 70px; border-radius: 14px; }
  .xl-collection-copy strong { font-size: .96rem; }
  .xl-collection-copy > span { font-size: .76rem; }
  .xl-collections-page { padding-top: 16px; }
  .xl-collections-heading { padding: 19px; border-radius: 18px; }
}


/* Mobile homepage layout repair: keep featured media and collection cards bounded. */
@media (max-width: 767px) {
  .xl-featured-section .xl-slider {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }

  .xl-featured-section .xl-slider-link {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .xl-featured-section .xl-slider-content {
    padding: 12px 14px;
  }

  .xl-featured-section .xl-slider-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .xl-featured-section .xl-slider-title {
    margin-bottom: 4px;
    font-size: clamp(.9rem, 3.5vw, 1.2rem);
    line-height: 1.15;
  }

  .xl-featured-section .xl-slider-meta {
    gap: 5px;
    font-size: .68rem;
  }

  .xl-featured-section .xl-slider-editors-picks {
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    font-size: .65rem;
  }

  .xl-featured-section .xl-slider-nav {
    width: 30px;
    height: 30px;
  }

  .xl-featured-section .xl-slider-nav--prev { left: 8px; }
  .xl-featured-section .xl-slider-nav--next { right: 8px; }

  .xl-featured-section .xl-slider-dots {
    top: 13px;
    right: 13px;
    gap: 5px;
  }

  .xl-featured-section .xl-slider-dot {
    width: 6px;
    height: 6px;
  }

  .xl-featured-section .xl-slider-dot.is-active { width: 16px; }
}

/* Featured Collection banners with app-icon grids and clear navigation controls. */
.xl-section--collection .xl-collection-list,
.xl-collections-page .xl-collection-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: stretch;
  gap: 18px;
}
.xl-section--collection .xl-collection-card--banner,
.xl-collections-page .xl-collection-card--banner {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: clamp(176px, 18vw, 210px);
  height: auto;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--xl-bg-alt);
  box-sizing: border-box;
}
.xl-section--collection .xl-collection-card--banner > .xl-collection-card-banner,
.xl-collections-page .xl-collection-card--banner > .xl-collection-card-banner {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #263143;
}
.xl-section--collection .xl-collection-card--banner > .xl-collection-card-banner img,
.xl-collections-page .xl-collection-card--banner > .xl-collection-card-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.xl-section--collection .xl-collection-card--banner::after,
.xl-collections-page .xl-collection-card--banner::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgb(10 16 28 / 66%) 0%, rgb(10 16 28 / 40%) 48%, rgb(10 16 28 / 6%) 100%);
  content: "";
}
.xl-section--collection .xl-collection-content,
.xl-collections-page .xl-collection-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: inherit;
  height: 100%;
  min-width: 0;
  padding: 20px;
  box-sizing: border-box;
}
.xl-section--collection .xl-collection-card--banner .xl-collection-cover,
.xl-collections-page .xl-collection-card--banner .xl-collection-cover {
  grid-column: 1;
  width: 64px;
  height: 64px;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  box-sizing: border-box;
  background: transparent;
}
.xl-section--collection .xl-collection-card--banner .xl-collection-copy,
.xl-collections-page .xl-collection-card--banner .xl-collection-copy {
  grid-column: 2;
  min-width: 0;
  gap: 5px;
  color: #fff;
  overflow-wrap: anywhere;
}
.xl-section--collection .xl-collection-card--banner .xl-collection-copy strong,
.xl-collections-page .xl-collection-card--banner .xl-collection-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.xl-section--collection .xl-collection-card--banner .xl-collection-copy > span,
.xl-section--collection .xl-collection-card--banner .xl-collection-copy small,
.xl-collections-page .xl-collection-card--banner .xl-collection-copy > span,
.xl-collections-page .xl-collection-card--banner .xl-collection-copy small {
  color: rgb(255 255 255 / 88%);
  line-height: 1.4;
}
.xl-section--collection .xl-collection-card--banner .xl-collection-copy small,
.xl-collections-page .xl-collection-card--banner .xl-collection-copy small {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.xl-section--collection .xl-collection-card--banner .xl-collection-arrow,
.xl-collections-page .xl-collection-card--banner .xl-collection-arrow {
  grid-column: 3;
  justify-self: end;
  color: #fff;
  font-size: 1.5rem;
}
.xl-custom-collection-banner {
  margin: 18px 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fce7ef;
}
.xl-custom-collection-banner img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}
.xl-custom-collection-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0;
  scrollbar-width: thin;
}
.xl-custom-collection-filters a {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid #e3e6ed;
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  color: #30394a;
  background: #fff;
}
.xl-custom-collection-filters a.is-active {
  border-color: #e7194f;
  color: #fff;
  background: #e7194f;
}
.xl-collection-filter-item[hidden] { display: none; }
@media (max-width: 767px) {
  /* Keep desktop-style banner cards; stack one card per row on mobile. */
  .xl-section--collection .xl-container { padding-inline: 0; }
  .xl-section--collection .xl-collection-list,
  .xl-collections-page .xl-collection-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    overflow: visible;
    padding: 0;
  }
  .xl-section--collection .xl-collection-card--banner,
  .xl-collections-page .xl-collection-card--banner {
    display: block;
    width: 100%;
    height: auto;
    min-height: clamp(154px, 38vw, 172px);
    padding: 0;
  }
  .xl-section--collection .xl-collection-card--banner > .xl-collection-card-banner,
  .xl-collections-page .xl-collection-card--banner > .xl-collection-card-banner {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: auto;
  }
  .xl-section--collection .xl-collection-card--banner > .xl-collection-card-banner img,
  .xl-collections-page .xl-collection-card--banner > .xl-collection-card-banner img { aspect-ratio: auto; }
  .xl-section--collection .xl-collection-card--banner::after,
  .xl-collections-page .xl-collection-card--banner::after { display: block; }
  .xl-section--collection .xl-collection-content,
  .xl-collections-page .xl-collection-content {
    position: relative;
    grid-template-columns: 64px minmax(0, 1fr) 40px;
    gap: 10px;
    min-height: inherit;
    height: 100%;
    padding: 14px;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-cover,
  .xl-collections-page .xl-collection-card--banner .xl-collection-cover {
    width: 64px;
    height: 64px;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-copy,
  .xl-collections-page .xl-collection-card--banner .xl-collection-copy { color: #fff; }
  .xl-section--collection .xl-collection-card--banner .xl-collection-copy strong,
  .xl-collections-page .xl-collection-card--banner .xl-collection-copy strong { font-size: 1rem; }
  .xl-section--collection .xl-collection-card--banner .xl-collection-copy > span,
  .xl-section--collection .xl-collection-card--banner .xl-collection-copy small,
  .xl-collections-page .xl-collection-card--banner .xl-collection-copy > span,
  .xl-collections-page .xl-collection-card--banner .xl-collection-copy small { color: rgb(255 255 255 / 88%); }
  .xl-section--collection .xl-collection-card--banner .xl-collection-arrow,
  .xl-collections-page .xl-collection-card--banner .xl-collection-arrow {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
  .xl-collection-arrow .xl-icon { width: 21px; height: 21px; }
  .xl-custom-collection-banner img { height: 190px; }
  .xl-custom-collection-filters { margin-right: -12px; }
}

/* Collection cards are one primary link, including their decorative folder and arrow. */
@media (prefers-reduced-motion: reduce) {
  .xl-collection-card { transition-duration: .01ms; }
}

/* Public Light/Dark selector */
.xl-theme-selector { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--xl-border); border-radius: 12px; background: var(--xl-bg-alt); }
.xl-theme-option { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--xl-text-secondary); font: inherit; font-size: .875rem; font-weight: 650; cursor: pointer; transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .12s ease; }
.xl-theme-option .xl-icon { width: 17px; height: 17px; }
.xl-theme-option:hover { background: color-mix(in srgb, var(--xl-accent) 9%, var(--xl-bg)); color: var(--xl-text); }
.xl-theme-option:active { transform: scale(.97); }
.xl-theme-option:focus-visible { outline: 3px solid var(--xl-accent); outline-offset: 2px; }
.xl-theme-option.is-active { border-color: color-mix(in srgb, var(--xl-accent) 40%, var(--xl-border)); background: color-mix(in srgb, var(--xl-accent) 12%, var(--xl-bg)); color: var(--xl-accent); box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.xl-theme-selector--mobile { align-self: flex-start; margin-top: 18px; }
@media (min-width: 768px) { .xl-theme-selector--mobile { display: none; } }
@media (max-width: 767px) { .xl-theme-selector--desktop { display: none; } }
html[data-theme="dark"] .xl-theme-option.is-active { background: rgb(225 29 72 / 18%); color: #ff8ca4; border-color: rgb(255 140 164 / 42%); }
@media (prefers-reduced-motion: reduce) { .xl-theme-option { transition: none; } }


/* Global mobile polish: remove Android/WebKit blue tap and long-press callout highlights.
   Keep normal text selection available for readable/copyable content. */
html {
  -webkit-tap-highlight-color: transparent;
}
button,
[role="button"],
a,
summary,
label,
select,
input[type="button"],
input[type="submit"],
input[type="reset"],
[onclick],
img,
svg,
video,
canvas {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
button,
[role="button"],
summary,
input[type="button"],
input[type="submit"],
input[type="reset"],
[onclick] {
  -webkit-user-select: none;
  user-select: none;
}
img,
svg,
video,
canvas {
  -webkit-user-drag: none;
}


/* Global mobile header: hamburger, logo, search, then theme toggle. */
@media (max-width: 767px) {
  .xl-header-inner > .xl-nav {
    display: contents;
    margin-left: 0 !important;
  }
  .xl-header-inner > .xl-nav > [data-menu-toggle] {
    order: 0 !important;
    flex: 0 0 auto;
  }
  .xl-header-inner > .xl-logo {
    order: 1 !important;
    margin-right: auto;
  }
  .xl-header-inner > .xl-nav > [data-search-toggle] {
    order: 2 !important;
    flex: 0 0 auto;
  }
  .xl-header-inner > .xl-nav > [data-theme-toggle] {
    order: 3 !important;
    flex: 0 0 auto;
  }
}

/* Shared menu drawer opens from the left edge across all public pages. */
.xl-menu-panel {
  left: 0;
  right: auto;
  inset-inline-start: 0;
  inset-inline-end: auto;
  border-left: 0;
  border-right: 1px solid var(--xl-border);
  box-shadow: 12px 0 32px rgba(15,23,42,.12);
  transform: translateX(-105%);
}
.xl-menu-panel.active {
  transform: translateX(0);
}


/* Global header controls are icon-only: no visible button box in any state. */
.xl-header-inner .xl-nav-btn[data-menu-toggle],
.xl-header-inner .xl-nav-btn[data-search-toggle],
.xl-header-inner .xl-nav-btn[data-theme-toggle],
.xl-header-inner .xl-nav-btn[data-menu-toggle]:hover,
.xl-header-inner .xl-nav-btn[data-menu-toggle]:active,
.xl-header-inner .xl-nav-btn[data-menu-toggle]:focus,
.xl-header-inner .xl-nav-btn[data-menu-toggle]:focus-visible,
.xl-header-inner .xl-nav-btn[data-menu-toggle][aria-expanded="true"],
.xl-header-inner .xl-nav-btn[data-search-toggle]:hover,
.xl-header-inner .xl-nav-btn[data-search-toggle]:active,
.xl-header-inner .xl-nav-btn[data-search-toggle]:focus,
.xl-header-inner .xl-nav-btn[data-search-toggle]:focus-visible,
.xl-header-inner .xl-nav-btn[data-theme-toggle]:hover,
.xl-header-inner .xl-nav-btn[data-theme-toggle]:active,
.xl-header-inner .xl-nav-btn[data-theme-toggle]:focus,
.xl-header-inner .xl-nav-btn[data-theme-toggle]:focus-visible {
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}


/* Polished mobile navigation drawer */
.xl-menu-panel {
  left: 0;
  right: auto;
  transform: translateX(-105%);
  display: flex;
  flex-direction: column;
  padding: 0 20px max(20px, env(safe-area-inset-bottom));
  border-right: 1px solid var(--xl-border);
  border-left: 0;
  background: var(--xl-surface, var(--xl-bg));
  box-shadow: 20px 0 60px rgba(15, 23, 42, .12);
}
.xl-menu-panel.active { transform: translateX(0); }
.xl-menu-head {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--xl-border);
}
.xl-menu-brand {
  color: var(--xl-text);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -.045em;
  text-decoration: none;
}
.xl-menu-brand::first-letter { color: var(--xl-accent); }
.xl-menu-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--xl-border);
  border-radius: 14px;
  background: var(--xl-bg-alt);
  color: var(--xl-text-secondary);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.xl-menu-close:hover {
  transform: rotate(4deg);
  border-color: var(--xl-accent);
  background: var(--xl-bg);
  color: var(--xl-accent);
}
.xl-menu-close .xl-icon { width: 21px; height: 21px; }
.xl-menu-links { padding-top: 22px; }
.xl-menu-section-label {
  margin: 0 0 10px;
  color: var(--xl-text-secondary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.xl-menu-section-label--library { margin-top: 26px; }
.xl-menu-item {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--xl-text);
  font-size: .98rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.xl-menu-item + .xl-menu-item { margin-top: 4px; }
.xl-menu-item > .xl-icon:first-child {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: var(--xl-text-secondary);
  stroke-width: 1.8;
}
.xl-menu-item > span { flex: 1; }
.xl-menu-item > .xl-icon:last-child {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--xl-text-secondary);
  opacity: .7;
}
.xl-menu-item:hover, .xl-menu-item:focus-visible {
  transform: translateX(2px);
  border-color: var(--xl-border);
  background: var(--xl-bg-alt);
  color: var(--xl-accent);
  outline: none;
}
.xl-menu-item:hover > .xl-icon:first-child,
.xl-menu-item:focus-visible > .xl-icon:first-child { color: var(--xl-accent); }
.xl-menu-item:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--xl-accent) 24%, transparent); }
.xl-menu-item[hidden] { display: none; }
.xl-menu-foot {
  margin-top: auto;
  padding: 22px 4px 4px;
  color: var(--xl-text-secondary);
  font-size: .78rem;
}
html[data-theme="dark"] .xl-menu-panel { box-shadow: 20px 0 60px rgba(0, 0, 0, .32); }
@media (max-width: 420px) {
  .xl-menu-panel { padding-right: 16px; padding-left: 16px; }
  .xl-menu-head { min-height: 76px; }
  .xl-menu-item { min-height: 51px; }
}


/* Catalog marketplace rebuild: responsive, token-driven and shared by Apps/Games. */
.xl-catalog-page { padding-top: 10px; }
.xl-catalog-page .xl-catalog-breadcrumb { margin-bottom: 18px; }
.xl-catalog-hero { display:flex; align-items:center; gap:14px; margin:0 0 18px; }
.xl-catalog-hero-icon { display:grid; width:62px; height:62px; flex:0 0 62px; place-items:center; border-radius:20px; background:color-mix(in srgb,var(--xl-accent) 9%,var(--xl-bg)); color:var(--xl-accent); }
.xl-catalog-hero-icon .xl-catalog-icon { width:31px; height:31px; stroke-width:2; }
.xl-catalog-hero-copy { min-width:0; }
.xl-catalog-hero-copy h1 { margin:0; color:var(--xl-text); font-size:clamp(1.65rem,5vw,2.15rem); line-height:1.1; letter-spacing:-.035em; }
.xl-catalog-hero-copy p { max-width:680px; margin:7px 0 0; color:var(--xl-text-secondary); font-size:.9rem; line-height:1.5; }
.xl-catalog-search { display:flex; gap:9px; margin:0 0 18px; }
.xl-catalog-search-field { display:flex; min-width:0; min-height:48px; flex:1; align-items:center; gap:10px; padding:0 14px; border:1px solid transparent; border-radius:999px; background:color-mix(in srgb,var(--xl-accent) 7%,var(--xl-bg)); color:var(--xl-text-secondary); }
.xl-catalog-search-field:focus-within { border-color:color-mix(in srgb,var(--xl-accent) 50%,var(--xl-border)); box-shadow:0 0 0 3px color-mix(in srgb,var(--xl-accent) 10%,transparent); }
.xl-catalog-search-field .xl-catalog-icon { width:21px; height:21px; flex:0 0 21px; }
.xl-catalog-search-field input { width:100%; min-width:0; border:0!important; outline:0!important; background:transparent!important; box-shadow:none!important; color:var(--xl-text)!important; font:inherit; font-size:.92rem; }
.xl-catalog-search-field input::placeholder { color:var(--xl-text-secondary); opacity:1; }
.xl-catalog-search > button { min-width:74px; padding:0 17px; border:1px solid var(--xl-accent); border-radius:999px; background:var(--xl-accent); color:#fff; font:inherit; font-weight:750; cursor:pointer; }
.xl-catalog-quick-categories { display:flex; align-items:center; gap:8px; overflow-x:auto; margin:0 -2px 18px; padding:2px 2px 7px; scrollbar-width:none; }
.xl-catalog-quick-categories::-webkit-scrollbar,.xl-catalog-filter-chips::-webkit-scrollbar { display:none; }
.xl-catalog-quick-categories .xl-catalog-chip { min-height:40px; display:inline-flex; align-items:center; padding:0 15px; border-color:var(--xl-border); background:var(--xl-surface); color:var(--xl-text); font-size:.83rem; font-weight:650; }
.xl-catalog-quick-categories .xl-catalog-chip.is-active { border-color:var(--xl-accent); background:var(--xl-accent); color:#fff; }
.xl-catalog-filter-trigger,.xl-catalog-sort-trigger { display:inline-flex; min-height:42px; flex:0 0 auto; align-items:center; justify-content:center; gap:8px; padding:0 13px; border:1px solid var(--xl-border); border-radius:13px; background:var(--xl-surface); color:var(--xl-text); font:inherit; font-size:.83rem; font-weight:700; white-space:nowrap; cursor:pointer; }
.xl-catalog-icon { display:inline-block; width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.xl-catalog-filter-count { display:inline-grid; min-width:20px; height:20px; place-items:center; padding:0 4px; border-radius:999px; background:var(--xl-accent); color:#fff; font-size:.72rem; }
.xl-catalog-toolbar { align-items:center; margin:2px 0 14px; }
.xl-catalog-results-summary { display:flex; flex-direction:column; gap:3px; min-width:0; }
.xl-catalog-results-summary strong { color:var(--xl-text); font-size:.88rem; font-weight:750; }
.xl-catalog-results-summary span { font-size:.76rem; }
.xl-catalog-toolbar-actions { display:flex; align-items:center; gap:8px; }
.xl-catalog-sort-trigger { min-height:42px; max-width:190px; }
.xl-catalog-sort-trigger span { overflow:hidden; text-overflow:ellipsis; }
.xl-catalog-view { align-items:center; min-height:42px; gap:3px; padding:3px; border-radius:13px; background:var(--xl-surface); }
.xl-catalog-view a { display:grid; width:34px; height:34px; place-items:center; padding:0; border-radius:9px; }
.xl-catalog-view a .xl-catalog-icon { width:19px; height:19px; }
.xl-catalog-view a.is-active { background:color-mix(in srgb,var(--xl-accent) 10%,var(--xl-bg)); color:var(--xl-accent); }
.xl-catalog-list-icon { font-size:24px; line-height:1; }
.xl-catalog-results.xl-grid-grid { gap:12px; }
.xl-catalog-results.xl-grid-grid .xl-card { min-width:0; border:1px solid var(--xl-border); border-radius:18px; background:var(--xl-surface); box-shadow:0 3px 12px rgb(15 23 42 / 3%); overflow:hidden; }
.xl-catalog-results.xl-grid-grid .xl-card:hover { border-color:color-mix(in srgb,var(--xl-accent) 38%,var(--xl-border)); box-shadow:0 7px 22px rgb(15 23 42 / 7%); }
.xl-catalog-results.xl-grid-grid .xl-card-title { overflow-wrap:anywhere; }
.xl-catalog-results.xl-grid-grid .xl-card-body { min-width:0; }
.xl-catalog-dialog { width:min(100% - 24px,560px); max-width:560px; max-height:min(82dvh,760px); margin:auto; padding:0; overflow:hidden; border:1px solid var(--xl-border); border-radius:25px; background:var(--xl-surface); color:var(--xl-text); box-shadow:0 24px 80px rgb(15 23 42 / 24%); }
.xl-catalog-dialog::backdrop { background:rgb(15 23 42 / 48%); backdrop-filter:blur(3px); }
.xl-catalog-dialog[open] { animation:xl-catalog-dialog-in .18s ease-out; }
@keyframes xl-catalog-dialog-in { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
.xl-catalog-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 20px 15px; border-bottom:1px solid var(--xl-border); }
.xl-catalog-dialog-eyebrow { margin:0 0 5px; color:var(--xl-text-secondary); font-size:.68rem; font-weight:850; letter-spacing:.1em; }
.xl-catalog-dialog-head h2 { margin:0; font-size:1.35rem; letter-spacing:-.025em; }
.xl-catalog-dialog-close { display:grid; width:42px; height:42px; flex:0 0 42px; place-items:center; border:1px solid var(--xl-border); border-radius:13px; background:var(--xl-bg-alt); color:var(--xl-text-secondary); cursor:pointer; }
.xl-catalog-dialog-body { max-height:calc(82dvh - 160px); overflow:auto; padding:18px 20px; }
.xl-catalog-filter-group + .xl-catalog-filter-group { margin-top:24px; padding-top:20px; border-top:1px solid var(--xl-border); }
.xl-catalog-filter-group h3 { margin:0 0 12px; font-size:.98rem; }
.xl-catalog-filter-chips { display:flex; flex-wrap:wrap; gap:8px; max-height:210px; overflow:auto; }
.xl-catalog-filter-chips .xl-catalog-chip { padding:9px 12px; border-color:var(--xl-border); background:var(--xl-bg); color:var(--xl-text); }
.xl-catalog-filter-chips .xl-catalog-chip.is-active { border-color:var(--xl-accent); background:color-mix(in srgb,var(--xl-accent) 10%,var(--xl-bg)); color:var(--xl-accent); }
.xl-catalog-dialog-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px max(16px,env(safe-area-inset-bottom)); border-top:1px solid var(--xl-border); }
.xl-catalog-reset { color:var(--xl-accent); font-size:.9rem; font-weight:700; text-decoration:none; }
.xl-catalog-apply { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:0 22px; border:1px solid var(--xl-accent); border-radius:999px; background:var(--xl-accent); color:#fff; font:inherit; font-weight:800; text-decoration:none; cursor:pointer; }
.xl-catalog-sort-form { display:flex; flex-direction:column; gap:7px; padding:12px 16px 18px; }
.xl-catalog-sort-option { display:flex; min-height:66px; align-items:center; gap:13px; padding:11px 12px; border:1px solid transparent; border-radius:15px; cursor:pointer; }
.xl-catalog-sort-option.is-selected { border-color:color-mix(in srgb,var(--xl-accent) 40%,var(--xl-border)); background:color-mix(in srgb,var(--xl-accent) 7%,var(--xl-bg)); }
.xl-catalog-sort-option input { position:absolute; width:1px; height:1px; opacity:0; }
.xl-catalog-radio { display:grid; width:20px; height:20px; flex:0 0 20px; place-items:center; border:2px solid var(--xl-border); border-radius:50%; }
.xl-catalog-sort-option input:checked + .xl-catalog-radio { border-color:var(--xl-accent); }
.xl-catalog-sort-option input:checked + .xl-catalog-radio::after { width:10px; height:10px; border-radius:50%; background:var(--xl-accent); content:""; }
.xl-catalog-sort-copy { display:flex; flex-direction:column; gap:3px; }
.xl-catalog-sort-copy strong { font-size:.92rem; }
.xl-catalog-sort-copy small { color:var(--xl-text-secondary); font-size:.78rem; }
.xl-catalog-sort-form > .xl-catalog-apply { width:100%; margin-top:7px; }
@media (max-width:600px) {
  .xl-catalog-page { padding-top:8px; padding-bottom:32px; }
  .xl-catalog-page .xl-catalog-breadcrumb { margin-bottom:15px; }
  .xl-catalog-hero { gap:12px; margin-bottom:16px; }
  .xl-catalog-hero-icon { width:54px; height:54px; flex-basis:54px; border-radius:17px; }
  .xl-catalog-hero-copy h1 { font-size:1.65rem; }
  .xl-catalog-hero-copy p { margin-top:5px; font-size:.83rem; }
  .xl-catalog-search { gap:7px; margin-bottom:15px; }
  .xl-catalog-search-field { min-height:46px; padding:0 12px; }
  .xl-catalog-search > button { min-width:62px; padding:0 13px; }
  .xl-catalog-quick-categories { margin-bottom:15px; }
  .xl-catalog-quick-categories .xl-catalog-chip { min-height:38px; padding:0 13px; }
  .xl-catalog-toolbar { align-items:flex-start; }
  .xl-catalog-toolbar-actions { gap:6px; }
  .xl-catalog-sort-trigger { max-width:155px; min-height:40px; padding:0 10px; font-size:.78rem; }
  .xl-catalog-filter-trigger { min-height:40px; padding:0 10px; font-size:.8rem; }
  .xl-catalog-view { min-height:40px; }
  .xl-catalog-view a { width:30px; height:32px; }
  .xl-catalog-results.xl-grid-grid { gap:10px; }
  .xl-catalog-results.xl-grid-grid .xl-card { border-radius:15px; }
  .xl-catalog-dialog { position:fixed; inset:auto 0 0; width:100%; max-width:none; max-height:85dvh; margin:0; border-radius:24px 24px 0 0; border-bottom:0; }
  .xl-catalog-dialog[open] { animation:xl-catalog-sheet-in .2s ease-out; }
  @keyframes xl-catalog-sheet-in { from { opacity:.8; transform:translateY(35px); } to { opacity:1; transform:translateY(0); } }
  .xl-catalog-dialog-head { padding:18px 18px 14px; }
  .xl-catalog-dialog-body { max-height:calc(85dvh - 155px); padding:16px 18px; }
  .xl-catalog-dialog-foot { padding-right:18px; padding-left:18px; }
  .xl-catalog-sort-form { padding:10px 14px max(18px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) {
  .xl-catalog-dialog[open] { animation:none; }
}


/* Catalog polish: keep labels accessible without exposing screen-reader text visually. */
.xl-catalog-search-field .xl-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; }
.xl-catalog-search > button { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.xl-catalog-search > button .xl-catalog-icon { width:17px; height:17px; }
.xl-catalog-results-summary strong { display:flex; align-items:center; gap:7px; }
.xl-catalog-results-summary strong .xl-catalog-icon { width:17px; height:17px; flex:0 0 17px; color:var(--xl-accent); }
.xl-catalog-view a .xl-catalog-icon { width:19px; height:19px; }
.xl-catalog-view a:focus-visible, .xl-catalog-sort-trigger:focus-visible, .xl-catalog-filter-trigger:focus-visible, .xl-catalog-search > button:focus-visible { outline:2px solid var(--xl-accent); outline-offset:2px; }
@media (max-width: 767px) {
  .xl-catalog-page { padding-top:6px; }
  .xl-catalog-page .xl-catalog-breadcrumb { margin-bottom:14px; }
  .xl-catalog-hero { gap:12px; margin-bottom:16px; }
  .xl-catalog-hero-icon { width:54px; height:54px; flex-basis:54px; border-radius:17px; }
  .xl-catalog-hero-icon .xl-catalog-icon { width:27px; height:27px; }
  .xl-catalog-hero-copy p { margin-top:5px; font-size:.86rem; line-height:1.42; }
  .xl-catalog-search { gap:8px; margin-bottom:15px; }
  .xl-catalog-search-field { min-height:46px; padding-inline:12px; }
  .xl-catalog-search > button { min-width:82px; padding-inline:12px; }
  .xl-catalog-quick-categories { gap:7px; margin-bottom:14px; }
  .xl-catalog-quick-categories .xl-catalog-chip { min-height:38px; padding-inline:13px; }
  .xl-catalog-toolbar { gap:10px; margin-bottom:12px; }
  .xl-catalog-toolbar-actions { gap:6px; }
  .xl-catalog-sort-trigger { min-height:40px; max-width:165px; gap:6px; padding-inline:10px; font-size:.78rem; }
  .xl-catalog-view { min-height:40px; }
  .xl-catalog-view a { width:32px; height:32px; }
  .xl-catalog-results.xl-grid-grid { gap:10px; }
}
@media (max-width: 380px) {
  .xl-catalog-search > button { min-width:44px; width:44px; padding:0; }
  .xl-catalog-search > button span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .xl-catalog-sort-trigger { max-width:145px; }
}


/* Catalog refinement pass: crisp Lucide controls and an opaque, readable sort sheet. */
.xl-catalog-icon { flex: 0 0 auto; stroke-width: 1.85; }
.xl-catalog-quick-categories .xl-catalog-chip,
.xl-catalog-filter-trigger,
.xl-catalog-sort-trigger,
.xl-catalog-view,
.xl-catalog-view a { transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.xl-catalog-quick-categories .xl-catalog-chip { border: 1px solid var(--xl-border); }
.xl-catalog-quick-categories .xl-catalog-chip:focus-visible,
.xl-catalog-filter-trigger:focus-visible,
.xl-catalog-sort-trigger:focus-visible,
.xl-catalog-dialog-close:focus-visible,
.xl-catalog-apply:focus-visible { outline: 2px solid var(--xl-accent); outline-offset: 3px; }
.xl-catalog-sort-dialog { background-color: var(--xl-surface, #fff); isolation: isolate; }
.xl-catalog-sort-dialog .xl-catalog-dialog-head,
.xl-catalog-sort-dialog .xl-catalog-sort-form { background-color: var(--xl-surface, #fff); }
.xl-catalog-sort-dialog .xl-catalog-dialog-head { padding-bottom: 16px; }
.xl-catalog-sort-option { gap: 11px; min-height: 72px; padding: 10px 12px; background: var(--xl-surface, #fff); }
.xl-catalog-sort-option.is-selected { box-shadow: 0 2px 9px color-mix(in srgb, var(--xl-accent) 8%, transparent); }
.xl-catalog-sort-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--xl-border); border-radius: 12px; background: var(--xl-bg-alt); color: var(--xl-text-secondary); }
.xl-catalog-sort-icon .xl-catalog-icon { width: 19px; height: 19px; }
.xl-catalog-sort-option.is-selected .xl-catalog-sort-icon { border-color: color-mix(in srgb, var(--xl-accent) 25%, var(--xl-border)); background: color-mix(in srgb, var(--xl-accent) 10%, var(--xl-surface)); color: var(--xl-accent); }
.xl-catalog-sort-copy { min-width: 0; gap: 4px; }
.xl-catalog-sort-copy strong { color: var(--xl-text); font-size: .96rem; line-height: 1.2; }
.xl-catalog-sort-copy small { font-size: .8rem; line-height: 1.35; }
.xl-catalog-radio { margin-left: 2px; }
.xl-catalog-sort-form > .xl-catalog-apply { min-height: 48px; margin-top: 8px; box-shadow: 0 5px 14px color-mix(in srgb, var(--xl-accent) 18%, transparent); }
@media (max-width: 600px) {
  .xl-catalog-sort-dialog { max-height: min(88dvh, 780px); background-color: var(--xl-surface, #fff); }
  .xl-catalog-sort-dialog .xl-catalog-dialog-head { padding: 18px 18px 15px; }
  .xl-catalog-sort-form { gap: 7px; padding: 12px 16px max(20px, env(safe-area-inset-bottom)); }
  .xl-catalog-sort-option { min-height: 70px; padding: 10px 11px; }
  .xl-catalog-sort-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
}
html[data-theme="dark"] .xl-catalog-sort-dialog,
html[data-theme="dark"] .xl-catalog-sort-dialog .xl-catalog-dialog-head,
html[data-theme="dark"] .xl-catalog-sort-dialog .xl-catalog-sort-form,
html[data-theme="dark"] .xl-catalog-sort-option { background-color: var(--xl-surface, #171923); }
html[data-theme="dark"] .xl-catalog-sort-icon { border-color: var(--xl-border); background: var(--xl-raised, #202330); color: var(--xl-text-secondary); }
html[data-theme="dark"] .xl-catalog-sort-option.is-selected .xl-catalog-sort-icon { background: color-mix(in srgb, var(--xl-accent) 16%, var(--xl-surface)); color: #ff8ba3; }


/* Keep filters in the results toolbar, not hidden at the end of the category scroller. */
.xl-catalog-quick-categories { padding-right: 2px; }
.xl-catalog-toolbar { min-width: 0; }
.xl-catalog-toolbar-actions { min-width: 0; }
@media (max-width: 600px) {
  .xl-catalog-toolbar { flex-wrap: wrap; row-gap: 10px; }
  .xl-catalog-results-summary { flex: 1 1 auto; }
  .xl-catalog-toolbar-actions { width: 100%; justify-content: space-between; gap: 7px; }
  .xl-catalog-sort-trigger { flex: 1 1 auto; max-width: none; min-width: 0; justify-content: flex-start; }
  .xl-catalog-filter-trigger { flex: 0 0 auto; }
  .xl-catalog-view { flex: 0 0 auto; }
}


/* Apps/Games category chips: visible More action plus consistent Lucide icon rhythm. */
.xl-catalog-quick-categories { align-items:center; gap:7px; }
.xl-catalog-quick-categories .xl-catalog-chip,
.xl-catalog-more-trigger { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.xl-catalog-quick-categories .xl-catalog-chip .xl-catalog-icon,
.xl-catalog-more-trigger .xl-catalog-icon { width:16px; height:16px; flex:0 0 16px; }
.xl-catalog-more-trigger { min-height:38px; flex:0 0 auto; padding:0 13px; border:1px solid var(--xl-border); border-radius:999px; background:var(--xl-surface); color:var(--xl-text); font:inherit; font-size:.83rem; font-weight:700; white-space:nowrap; cursor:pointer; }
.xl-catalog-quick-categories .xl-catalog-chip.is-active .xl-catalog-icon { color:currentColor; }
.xl-catalog-dialog { background-color:var(--xl-surface, #fff); opacity:1; }
.xl-catalog-dialog-head { background:var(--xl-surface, #fff); }
.xl-catalog-dialog-body { background:var(--xl-surface, #fff); max-height:calc(88dvh - 150px); overscroll-behavior:contain; scrollbar-width:thin; }
.xl-catalog-filter-group h3 { display:flex; align-items:center; gap:9px; }
.xl-catalog-filter-group h3 .xl-catalog-icon { width:19px; height:19px; color:var(--xl-accent); }
.xl-catalog-filter-chips { max-height:none; overflow:visible; gap:8px; }
.xl-catalog-filter-chips .xl-catalog-chip { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:8px 12px; border-radius:13px; line-height:1.2; }
.xl-catalog-filter-chips .xl-catalog-chip .xl-catalog-icon { width:16px; height:16px; flex:0 0 16px; color:var(--xl-text-secondary); }
.xl-catalog-filter-chips .xl-catalog-chip.is-active .xl-catalog-icon { color:var(--xl-accent); }
.xl-catalog-dialog-foot { background:var(--xl-surface, #fff); }
.xl-catalog-dialog-foot .xl-catalog-reset { display:inline-flex; align-items:center; gap:7px; }
.xl-catalog-dialog-foot .xl-catalog-apply { min-width:100px; }
@media (max-width:600px) {
  .xl-catalog-quick-categories { margin-bottom:14px; }
  .xl-catalog-quick-categories .xl-catalog-chip { min-height:38px; padding:0 12px; }
  .xl-catalog-more-trigger { min-height:38px; padding:0 12px; }
  .xl-catalog-dialog { position:fixed; inset:auto 0 0; width:100%; max-width:none; max-height:90dvh; margin:0; border-radius:24px 24px 0 0; border-bottom:0; }
  .xl-catalog-dialog::backdrop { background:rgb(15 23 42 / 56%); backdrop-filter:blur(4px); }
  .xl-catalog-dialog-head { padding:17px 18px 14px; }
  .xl-catalog-dialog-body { max-height:calc(90dvh - 150px); padding:16px 18px 22px; }
  .xl-catalog-filter-group + .xl-catalog-filter-group { margin-top:20px; padding-top:18px; }
  .xl-catalog-dialog-foot { padding:13px 18px max(18px,env(safe-area-inset-bottom)); }
}
html[data-theme="dark"] .xl-catalog-dialog,
html[data-theme="dark"] .xl-catalog-dialog-head,
html[data-theme="dark"] .xl-catalog-dialog-body,
html[data-theme="dark"] .xl-catalog-dialog-foot { background:var(--xl-surface, #171923); }
html[data-theme="dark"] .xl-catalog-more-trigger { background:var(--xl-surface); color:var(--xl-text); }


/* Compact category-only filter sheet: less vertical scrolling on phones. */
.xl-catalog-dialog-body { padding: 14px 18px 18px; }
.xl-catalog-filter-group h3 { margin: 0 0 11px; font-size: .98rem; }
.xl-catalog-filter-chips { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.xl-catalog-filter-chips .xl-catalog-chip {
  min-height:34px; padding:6px 10px; gap:6px; border-radius:11px;
  font-size:.84rem; font-weight:600; line-height:1.15;
}
.xl-catalog-filter-chips .xl-catalog-chip .xl-catalog-icon {
  width:14px; height:14px; flex-basis:14px; stroke-width:1.8;
}
.xl-catalog-filter-group + .xl-catalog-filter-group { margin-top:18px; padding-top:16px; }
@media (max-width:600px) {
  .xl-catalog-dialog { max-height:88dvh; }
  .xl-catalog-dialog-head { padding:16px 18px 13px; }
  .xl-catalog-dialog-body { max-height:calc(88dvh - 142px); padding:13px 16px 18px; }
  .xl-catalog-filter-group h3 { margin-bottom:10px; font-size:.94rem; }
  .xl-catalog-filter-chips { gap:6px; }
  .xl-catalog-filter-chips .xl-catalog-chip { min-height:32px; padding:6px 9px; font-size:.8rem; border-radius:10px; }
  .xl-catalog-filter-chips .xl-catalog-chip .xl-catalog-icon { width:13px; height:13px; flex-basis:13px; }
  .xl-catalog-filter-group + .xl-catalog-filter-group { margin-top:15px; padding-top:14px; }
}

/* Smooth client-side catalog view switching */
.xl-catalog-results[data-catalog-results] { transition: opacity .16s ease, transform .2s ease; }
.xl-catalog-results[data-catalog-results].xl-view-transitioning { opacity: .72; transform: translateY(3px); }
.xl-catalog-view [data-catalog-view] { transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.xl-catalog-view [data-catalog-view]:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) { .xl-catalog-results[data-catalog-results], .xl-catalog-view [data-catalog-view] { transition: none !important; } }


/* Compact premium mobile polish — October 2026 */
@media (max-width: 600px) {
  .xl-container { width: min(calc(100% - 24px), var(--xl-container)); padding-inline: 0; }
  .xl-header-inner { min-height: 62px; gap: 10px; }
  .xl-logo { font-size: clamp(1.45rem, 6vw, 1.8rem); letter-spacing: -.045em; }
  .xl-nav { gap: 5px; }
  .xl-nav-btn { width: 40px; height: 40px; border-radius: 12px; }
  .xl-section { margin-block: 22px; }
  .xl-section-header { margin-bottom: 12px; padding-bottom: 9px; gap: 8px; }
  .xl-section-title { font-size: clamp(1.08rem, 4.5vw, 1.3rem); letter-spacing: -.025em; }
  .xl-section-icon { width: 22px; height: 22px; }
  .xl-slider { margin-top: 10px; }
  .xl-slider-card { border-radius: 22px; }
  .xl-slider-content { padding: 12px; }
  .xl-slider-title { font-size: clamp(1rem, 4.3vw, 1.25rem); line-height: 1.2; }
  .xl-slider-meta { gap: 7px; font-size: .78rem; }
  .xl-slider-app-icon { width: 64px; height: 64px; border-radius: 15px; }
  .xl-slider-editors-picks { font-size: .78rem; padding: 6px 10px; }
  .xl-slider-dots { margin-top: 10px; }
  .xl-grid-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .xl-card { min-width: 0; border-radius: 17px; }
  .xl-card-media { border-radius: 13px; }
  .xl-card-body { padding: 8px 6px 9px; }
  .xl-card-title { font-size: clamp(.75rem, 3.2vw, .88rem); line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
  .xl-card-meta, .xl-card-developer { font-size: .7rem; }
  .xl-card-badges { gap: 4px; }
  .xl-card-badges > * { font-size: .62rem; padding: 3px 6px; }
  .xl-bottom-nav { width: calc(100% - 24px); margin-inline: 12px; padding: 7px 5px; border-radius: 22px; }
  .xl-bottom-nav-item { min-width: 0; gap: 3px; padding: 5px 2px; font-size: .72rem; }
  .xl-bottom-nav-icon { width: 23px; height: 23px; }
  .xl-theme-menu { width: min(248px, calc(100vw - 24px)); padding: 5px; border-radius: 17px; top: calc(100% + 7px); }
  .xl-theme-menu-option { min-height: 49px; gap: 9px; padding: 8px 9px; border-radius: 12px; }
  .xl-theme-menu-option > .xl-icon { width: 19px; height: 19px; flex-basis: 19px; }
  .xl-theme-menu-copy strong { font-size: .86rem; }
  .xl-theme-menu-copy small { font-size: .69rem; line-height: 1.25; }
  .xl-theme-menu-check { font-size: 1rem; }
}
@media (max-width: 380px) {
  .xl-grid-grid { gap: 7px; }
  .xl-card { border-radius: 14px; }
  .xl-card-body { padding: 7px 4px 8px; }
  .xl-card-title { font-size: .72rem; }
  .xl-bottom-nav-item { font-size: .66rem; }
  .xl-slider-content { padding: 10px; }
  .xl-slider-app-icon { width: 56px; height: 56px; }
}


/* Homepage-only card title polish: cleaner wrapping without changing card layout */
#latest-games .xl-card-title,
#latest-apps .xl-card-title {
  display: -webkit-box;
  min-height: 2.5em;
  max-height: 2.5em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}
@media (max-width: 380px) {
  #latest-games .xl-card-title,
  #latest-apps .xl-card-title {
    font-size: 13px;
  }
}


/* Latest Apps / Games: four swipeable lists on mobile */
.xl-home-swipe { display: none; }
.xl-home-swipe-track {
  display: flex;
  width: 100%;
  gap: 12px;
  scroll-padding-inline: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.xl-home-swipe-track::-webkit-scrollbar { display: none; }
.xl-home-swipe-page {
  /* Leave a visible slice of the next page as a swipe affordance. */
  flex: 0 0 calc(100% - 42px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.xl-home-swipe-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 88px;
  padding: 9px 10px;
  border: 1px solid var(--xl-border);
  border-radius: 15px;
  background: var(--xl-bg-alt);
  color: var(--xl-text);
  text-decoration: none;
  transition: background-color .15s ease;
}
.xl-home-swipe-item:hover,
.xl-home-swipe-item:focus-visible {
  background: var(--xl-bg-alt);
  outline: none;
}
.xl-home-swipe-icon {
  display: flex;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--xl-bg-alt);
}
.xl-home-swipe-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.xl-home-swipe-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.xl-home-swipe-title {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: var(--xl-text);
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.xl-home-swipe-subtitle {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--xl-text-secondary);
  font-size: .78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-home-swipe-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  color: var(--xl-text-secondary);
  font-size: .72rem;
  line-height: 1.25;
}
.xl-home-swipe-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 7px;
  background: var(--xl-bg-alt);
  color: var(--xl-text);
  font-weight: 650;
}
.xl-home-swipe-separator { color: var(--xl-text-secondary); }
.xl-home-swipe-badge {
  padding: 2px 6px;
  border: 1px solid var(--xl-border);
  border-radius: 6px;
  color: var(--xl-text-secondary);
  font-size: .64rem;
  font-weight: 750;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  #latest-games > .xl-container > .xl-grid-horizontal,
  #latest-games > .xl-container > .xl-grid-grid,
  #latest-games > .xl-container > .xl-grid-list,
  #latest-apps > .xl-container > .xl-grid-horizontal,
  #latest-apps > .xl-container > .xl-grid-grid,
  #latest-apps > .xl-container > .xl-grid-list {
    display: none !important;
  }
  #latest-games > .xl-container > .xl-home-swipe,
  #latest-apps > .xl-container > .xl-home-swipe {
    display: block;
  }
  .xl-home-swipe-page { flex-basis: calc(100% - 34px); }
  /* Keep all three rows and the swipe dots clear of the fixed bottom navigation. */
  .xl-home-swipe-item { box-sizing: border-box; min-height: 76px; padding: 6px 8px; gap: 10px; }
  .xl-home-swipe-icon { flex-basis: 56px; width: 56px; height: 56px; border-radius: 14px; }
  .xl-home-swipe-title { font-size: .88rem; line-height: 1.2; }
  .xl-home-swipe-subtitle { font-size: .74rem; }
  .xl-home-swipe-details { gap: 4px; font-size: .68rem; }
  .xl-home-swipe-pagination { min-height: 22px; padding-top: 4px; }
}
@media (max-width: 380px) {
  .xl-home-swipe-item { min-height: 78px; gap: 10px; }
  .xl-home-swipe-icon { flex-basis: 58px; width: 58px; height: 58px; border-radius: 14px; }
  .xl-home-swipe-title { font-size: .86rem; }
  .xl-home-swipe-subtitle { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .xl-home-swipe-track { scroll-behavior: auto; }
}


/* Compact featured collection banners on phones without changing desktop cards. */
@media (max-width: 767px) {
  .xl-section--collection .xl-collection-list {
    gap: 10px;
  }
  .xl-section--collection .xl-collection-card--banner {
    min-height: clamp(132px, 24vw, 158px);
    border-radius: 15px;
  }
  .xl-section--collection .xl-collection-content {
    grid-template-columns: 54px minmax(0, 1fr) 34px;
    gap: 9px;
    padding: 11px 12px;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-cover {
    width: 54px;
    height: 54px;
  }
  .xl-section--collection .xl-collection-cover-apps {
    width: 54px;
    height: 54px;
    grid-template-columns: repeat(2, 24px);
    grid-auto-rows: 24px;
    gap: 4px;
  }
  .xl-section--collection .xl-collection-cover-apps .xl-collection-app-icon {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    border-radius: 7px;
  }
  .xl-section--collection .xl-collection-cover-apps .xl-collection-app-icon:first-child:nth-last-child(1) {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-copy {
    gap: 4px;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-copy strong {
    font-size: .94rem;
    line-height: 1.18;
    -webkit-line-clamp: 2;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-copy > span {
    font-size: .72rem;
    line-height: 1.25;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-copy small {
    margin-top: 0;
    font-size: .75rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-arrow {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-arrow .xl-icon {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 380px) {
  .xl-section--collection .xl-collection-card--banner {
    min-height: 128px;
  }
  .xl-section--collection .xl-collection-content {
    grid-template-columns: 48px minmax(0, 1fr) 30px;
    gap: 8px;
    padding: 10px;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-cover {
    width: 48px;
    height: 48px;
  }
  .xl-section--collection .xl-collection-cover-apps {
    width: 48px;
    height: 48px;
    grid-template-columns: repeat(2, 21px);
    grid-auto-rows: 21px;
    gap: 4px;
  }
  .xl-section--collection .xl-collection-cover-apps .xl-collection-app-icon {
    width: 21px;
    height: 21px;
    max-width: 21px;
    max-height: 21px;
  }
  .xl-section--collection .xl-collection-card--banner .xl-collection-arrow {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
}


/* Bottom navigation polish: theme-aware surface and reserved scroll space. */
@media (max-width: 767px) {
  .xl-bottom-nav {
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 80;
    box-sizing: border-box;
  }
  body { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
}
html[data-theme="dark"] .xl-bottom-nav {
  background: rgba(35, 36, 40, .97);
  border-color: #45464a;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .38);
}
html[data-theme="dark"] .xl-bottom-nav-item { color: #c2c5cc; }
html[data-theme="dark"] .xl-bottom-nav-item.active,
html[data-theme="dark"] .xl-bottom-nav-item:focus-visible { color: #ff3b70; }
html[data-theme="dark"] .xl-bottom-nav-item:focus-visible { outline-color: #ff3b70; }


/* Mobile navigation dock: attach to the viewport edge instead of floating above it. */
@media (max-width: 767px) {
  .xl-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    margin: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    box-sizing: border-box;
    z-index: 100;
  }
  body {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
}


/* Hide the fixed bottom dock while the global side drawer is open. */
@media (max-width: 767px) {
  body:has(.xl-menu-panel.active) .xl-bottom-nav {
    display: none !important;
  }
  body:has(.xl-menu-panel.active) {
    padding-bottom: 0 !important;
  }
}

/* Mobile homepage section rhythm: compact the featured-to-catalog flow. */
@media (max-width: 600px) {
  main > .xl-featured-section {
    margin-block: 0 4px;
    padding-block: 6px 2px;
  }

  main > .xl-section:not(.xl-featured-section) {
    margin-block: 6px;
    padding-block: 14px;
  }

  main > #latest-games {
    padding-top: 8px;
  }

  main > #latest-apps {
    padding-top: 12px;
  }

  main > #latest-games .xl-section-header,
  main > #latest-apps .xl-section-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
}


/* Theme-aware XLabAPK brand assets shared by every public page. */
.xl-header-inner > .xl-logo,
.xl-footer-brand > .xl-logo,
.xl-menu-head > .xl-menu-brand {
  display: block;
  flex: 0 0 auto;
  width: clamp(128px, 37vw, 156px);
  aspect-ratio: 786 / 160;
  height: auto;
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  white-space: nowrap;
  text-decoration: none;
  background-color: transparent;
  background-image: url("/images/xlabapk-logo-for-light-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

html[data-theme="dark"] .xl-header-inner > .xl-logo,
html[data-theme="dark"] .xl-footer-brand > .xl-logo,
html[data-theme="dark"] .xl-menu-head > .xl-menu-brand {
  background-image: url("/images/xlabapk-logo-for-dark-bg.svg");
}

.xl-footer-brand > .xl-logo { width: 146px; }
.xl-menu-head > .xl-menu-brand { width: 150px; }

@media (min-width: 768px) {
  .xl-header-inner > .xl-logo { width: 156px; }
}
@media (max-width: 360px) {
  .xl-header-inner > .xl-logo { width: 126px; }
}
