/* ==========================================================================
   TEMPLATE NEXUS — black/gold sportsbook portal skin
   Loaded after template.css. Scoped to body.tpl-nexus so shared tpl-* parts
   (rail, popup, jackpot, footer, faq, article, bottom-nav) keep working.
   ========================================================================== */

.tpl-nexus {
  /*
   * Accent + surfaces follow Explore swatches from template.css
   * ([data-theme] / [data-bg]). Do NOT re-assign --gold/--bg here —
   * that previously locked Nexus to hardcoded gold forever.
   */
  --nexus-gold: var(--gold);
  --nexus-gold-light: var(--line);
  --nexus-gold-deep: var(--gold-2);
  --nexus-gold-grad: var(--gold-bar);
  --nexus-bg: var(--bg);
  --nexus-bg-alt: var(--header-top);
  --nexus-card: var(--panel);
  --nexus-card-2: color-mix(in srgb, var(--panel) 88%, var(--text) 12%);
  --nexus-bg-elevated: color-mix(in srgb, var(--panel) 90%, var(--gold) 10%);
  --nexus-text: var(--text);
  --nexus-muted: var(--muted);
  --nexus-border: color-mix(in srgb, var(--gold) 22%, transparent);
  --nexus-border-soft: color-mix(in srgb, var(--text) 6%, transparent);
  --nexus-shell: min(1140px, 100% - 2rem);
  --nexus-radius: 6px;
  /* Follow Explore Style text font ([data-font] → --font-display / --font-body) */
  --nexus-font-display: var(--font-display, "Orbitron", sans-serif);
  --nexus-font-body: var(--font-body, "Rajdhani", sans-serif);
  --nexus-on-accent: var(--btn-on-accent, #0a0a0a);

  /* Menu contrast: dark page → bright menus; light page → dark menus */
  --nexus-menu-ink: #f3f3f3;
  --nexus-menu-ink-soft: color-mix(in srgb, #fff 78%, transparent);
  --nexus-menu-active: color-mix(in srgb, var(--nexus-gold-light) 42%, #fff);
  --nexus-menu-icon: color-mix(in srgb, var(--nexus-gold-light) 35%, #fff);
  --nexus-menu-icon-active: color-mix(in srgb, var(--nexus-gold-light) 22%, #fff);
  --nexus-nav-surface-top: color-mix(in srgb, var(--nexus-gold) 16%, #1a1410);
  --nexus-nav-surface-bot: color-mix(in srgb, var(--nexus-gold) 7%, #0e0c0a);
  --nexus-logo-fill: var(--nexus-gold-grad);

  --line-dim: var(--nexus-border);
  --neon: none;
  --container: 1140px;

  background: var(--nexus-bg);
  color: var(--nexus-text);
  font-family: var(--nexus-font-body) !important;
  font-size: 14px;
  line-height: 1.55;
  padding-bottom: 0;
}

/* Style text font must paint the visible chrome (logo/nav/CTA), not only headings */
.tpl-nexus .nexus-logo-text,
.tpl-nexus .nexus-footer__logo-text,
.tpl-nexus .nexus-cats a,
.tpl-nexus .nexus-btn-gold,
.tpl-nexus .nexus-btn-ghost,
.tpl-nexus .nexus-btn-masuk,
.tpl-nexus .nexus-tg-pill,
.tpl-nexus .nexus-section-title,
.tpl-nexus .nexus-jackpot .tpl-jackpot-amount,
.tpl-nexus .nexus-mcats__label,
.tpl-nexus .nexus-mcats__item,
.tpl-nexus .tpl-auth-mobile-btn,
.tpl-nexus h1,
.tpl-nexus h2,
.tpl-nexus h3,
.tpl-nexus h4 {
  font-family: var(--nexus-font-display) !important;
}

/* Light backgrounds → dark menus / icons */
.tpl-nexus[data-bg="pearl"],
.tpl-nexus[data-bg="ivory"],
.tpl-nexus[data-bg="snow"],
.tpl-nexus[data-bg="mist"],
.tpl-nexus[data-bg="sand"],
.tpl-nexus[data-bg="sky"],
.tpl-nexus[data-bg="blush"],
.tpl-nexus[data-bg="mint"] {
  --nexus-menu-ink: #1c1917;
  --nexus-menu-ink-soft: #57534e;
  --nexus-menu-active: var(--nexus-gold-deep);
  --nexus-menu-icon: color-mix(in srgb, var(--nexus-gold-deep) 55%, #111);
  --nexus-menu-icon-active: var(--nexus-gold-deep);
  --nexus-nav-surface-top: color-mix(in srgb, var(--nexus-gold) 10%, #ffffff);
  --nexus-nav-surface-bot: color-mix(in srgb, var(--nexus-gold) 5%, #f1efe9);
  --nexus-logo-fill: linear-gradient(180deg, var(--nexus-gold) 0%, var(--nexus-gold-deep) 100%);
}

/* Kill shared theme page overlays — keep JS FX canvas visible */
body.tpl-nexus::before,
body.tpl-nexus::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.tpl-nexus .tpl-fx-canvas {
  display: block !important;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9600;
}

.tpl-nexus h1,
.tpl-nexus h2,
.tpl-nexus h3,
.tpl-nexus h4 {
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.tpl-nexus img {
  max-width: 100%;
}

.tpl-nexus ::selection {
  background: var(--nexus-gold);
  color: #120d02;
}

/* -------------------------------------------------- shell + skip link ---- */

.nexus-shell {
  width: var(--nexus-shell);
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.tpl-nexus .tpl-shell {
  width: var(--nexus-shell);
  max-width: 1140px;
  margin: .85rem auto 1.4rem;
}

.tpl-nexus .tpl-seo > .container-xl,
.tpl-nexus .tpl-footer > .container-xl {
  width: var(--nexus-shell);
  max-width: 1140px;
}

.nexus-skip {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 0 0 var(--nexus-radius) var(--nexus-radius);
  background: var(--nexus-gold-grad);
  color: #150f02;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: top .18s ease;
}

.nexus-skip:focus {
  top: 0;
  outline: 2px solid var(--nexus-gold-light);
  outline-offset: 2px;
}

/* -------------------------------------------------------------- buttons -- */

.nexus-btn-gold,
.nexus-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  min-width: 104px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: var(--nexus-font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: filter .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.nexus-btn-gold {
  background: var(--nexus-gold-grad);
  color: var(--nexus-on-accent);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--nexus-gold) 35%, transparent), 0 1px 0 rgba(255, 255, 255, .25) inset;
}

.nexus-btn-gold:hover,
.nexus-btn-gold:focus-visible {
  filter: brightness(1.08);
  color: var(--nexus-on-accent);
  transform: none;
}

.nexus-btn-ghost {
  background: transparent;
  border-color: var(--nexus-border);
  color: var(--nexus-gold-light);
}

.nexus-btn-ghost:hover,
.nexus-btn-ghost:focus-visible {
  border-color: var(--nexus-gold);
  background: color-mix(in srgb, var(--nexus-gold) 10%, transparent);
  color: var(--nexus-gold-light);
}

.nexus-btn-masuk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 104px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
  font-family: var(--nexus-font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.nexus-btn-masuk:hover,
.nexus-btn-masuk:focus-visible {
  background: #333;
  border-color: var(--nexus-gold);
  color: var(--nexus-gold-light);
}

.nexus-btn-lg {
  min-height: 42px;
  padding: 0 22px;
  font-size: 13px;
}

/* --------------------------------------------------------------- header -- */

.nexus-header {
  position: relative;
  z-index: 30;
  background: var(--nexus-bg);
  border-bottom: 0;
}

.nexus-topbar {
  background: var(--nexus-bg-alt);
  border-bottom: 1px solid color-mix(in srgb, var(--nexus-text) 8%, transparent);
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.nexus-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.nexus-topbar-left,
.nexus-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nexus-topbar-left {
  flex-wrap: wrap;
}

.nexus-topbar-right {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.nexus-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--nexus-menu-ink);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: color .16s ease, background .16s ease;
}

.nexus-top-icon:hover,
.nexus-top-icon:focus-visible {
  color: var(--nexus-menu-active);
  background: color-mix(in srgb, var(--nexus-gold) 12%, transparent);
}

.nexus-top-icon--android {
  color: var(--nexus-menu-icon-active);
}

.nexus-top-icon--android:hover,
.nexus-top-icon--android:focus-visible {
  color: var(--nexus-menu-active);
}

.nexus-tg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2aabee 0%, #229ed9 100%);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(34, 158, 217, .4);
  text-decoration: none !important;
  transition: filter .16s ease;
}

.nexus-tg-pill svg {
  flex: 0 0 auto;
  color: #fff;
}

.nexus-tg-pill:hover,
.nexus-tg-pill:focus-visible {
  filter: brightness(1.08);
  color: #fff !important;
  transform: none;
}

.nexus-top-btn {
  font: inherit;
}

.nexus-top-btn.is-hit {
  color: var(--nexus-gold-light);
  background: color-mix(in srgb, var(--nexus-gold) 14%, transparent);
}

.nexus-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  color: var(--nexus-text);
  font-size: 18px;
  font-weight: 600;
  cursor: default;
}

.nexus-lang-flag {
  font-size: 20px;
  line-height: 1;
}

.nexus-lang-caret {
  opacity: .75;
}

.nexus-search-toggle[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.nexus-search-panel {
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: #121212;
  padding: 10px 0;
}

.nexus-search-panel[hidden] {
  display: none;
}

.nexus-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nexus-search-field {
  flex: 1 1 auto;
  min-width: 0;
}

.nexus-search-field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--nexus-border);
  border-radius: 8px;
  background: #0a0a0a;
  color: var(--nexus-text);
  font: inherit;
  font-size: 15px;
}

.nexus-search-field input::placeholder {
  color: var(--nexus-muted);
}

.nexus-search-field input:focus {
  outline: none;
  border-color: var(--nexus-gold);
  box-shadow: none;
}

.nexus-search-form .nexus-btn-gold {
  min-height: 42px;
}

.nexus-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--nexus-gold) 45%, transparent);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nexus-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--nexus-gold-light);
  border-radius: 1px;
}

/* mobile-only chrome — hidden on desktop */
.nexus-appbar,
.nexus-mcats {
  display: none;
}

/* --------------------------------------------------------------- navbar -- */

.nexus-navbar {
  position: relative;
  z-index: 50;
  overflow: visible;
  background: linear-gradient(
    180deg,
    var(--nexus-nav-surface-top) 0%,
    var(--nexus-nav-surface-bot) 100%
  );
  border-top: 0;
  border-bottom: 2px solid var(--nexus-gold);
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--nexus-gold) 28%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--nexus-gold-light) 12%, transparent);
}

.nexus-navbar::before,
.nexus-navbar::after {
  display: none;
}

.nexus-navbar-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 78px;
  position: relative;
  z-index: 2;
}

.tpl-nexus .nexus-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 220px;
  border: 0;
  background: none;
  box-shadow: none;
  padding: 6px 10px 6px 0;
}

.tpl-nexus .nexus-logo-text {
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--nexus-logo-fill);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--nexus-menu-active);
  text-shadow: none;
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--nexus-gold-deep) 35%, transparent));
}

.tpl-nexus .nexus-logo-img {
  display: block;
  height: 48px;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.tpl-nexus .nexus-logo.has-logo {
  border: 0;
  background: none;
  box-shadow: none;
}

.nexus-cats-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.nexus-cats {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.nexus-cats::-webkit-scrollbar {
  display: none;
}

.nexus-cats > li {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

.nexus-cats a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 84px;
  padding: 10px 10px 8px;
  color: var(--nexus-menu-ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.nexus-cats a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--nexus-gold-grad);
  opacity: 0;
  transition: opacity .2s ease;
}

.nexus-cats a:hover,
.nexus-cats a:focus-visible,
.nexus-cats a.is-active {
  color: var(--nexus-menu-active);
  background: color-mix(in srgb, var(--nexus-gold) 12%, transparent);
}

.nexus-cats a:hover::after,
.nexus-cats a.is-active::after {
  opacity: 1;
}

.nexus-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  line-height: 1;
  color: var(--nexus-menu-icon);
  background: transparent;
  transition: filter .2s ease, opacity .2s ease;
}

.nexus-cats a:hover .nexus-cat-icon,
.nexus-cats a:focus-visible .nexus-cat-icon,
.nexus-cats a.is-active .nexus-cat-icon {
  color: var(--nexus-menu-icon-active);
  filter: brightness(1.15) saturate(1.1);
}

.nexus-cat-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.nexus-cat-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  font-size: 22px;
  filter: grayscale(.15) saturate(1.1) brightness(1.15);
}

.nexus-cats a:hover .nexus-cat-glyph,
.nexus-cats a:focus-visible .nexus-cat-glyph,
.nexus-cats a.is-active .nexus-cat-glyph {
  filter: brightness(1.2) saturate(1.15);
  background: none !important;
}

.nexus-cats-nav {
  flex: 0 0 auto;
  width: 32px;
  height: 56px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--nexus-menu-ink-soft);
  font-size: 30px;
  line-height: 1;
  font-family: var(--nexus-font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0;
}

.nexus-cats-nav:hover {
  color: var(--nexus-menu-active);
  background: color-mix(in srgb, var(--nexus-gold) 10%, transparent);
}

.nexus-cats-nav.is-off {
  opacity: .35;
  pointer-events: none;
}

/* -------------------------------------------------------------- banners -- */

.nexus-banner {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.nexus-banner-slide {
  position: relative;
  aspect-ratio: 1920 / 560;
  min-height: 220px;
  max-height: min(560px, 52vw);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nexus-banner-a {
  background: radial-gradient(
    circle at 72% 38%,
    color-mix(in srgb, var(--nexus-gold) 42%, #1a1208),
    color-mix(in srgb, var(--nexus-bg) 92%, #000) 58%
  );
}
.nexus-banner-b {
  background: radial-gradient(
    circle at 72% 38%,
    color-mix(in srgb, var(--nexus-gold) 34%, #14100a),
    color-mix(in srgb, var(--nexus-bg) 94%, #000) 58%
  );
}
.nexus-banner-c {
  background: radial-gradient(
    circle at 72% 38%,
    color-mix(in srgb, var(--nexus-gold) 28%, #12100c),
    color-mix(in srgb, var(--nexus-bg) 94%, #000) 58%
  );
}
.nexus-banner-d {
  background: radial-gradient(
    circle at 72% 38%,
    color-mix(in srgb, var(--nexus-gold) 46%, #1c1408),
    color-mix(in srgb, var(--nexus-bg) 90%, #000) 58%
  );
}

.nexus-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.nexus-banner-img[hidden] {
  display: none;
}

.nexus-banner .carousel-control-prev,
.nexus-banner .carousel-control-next {
  width: 48px;
  opacity: 0;
  transition: opacity .18s ease;
}

.nexus-banner:hover .carousel-control-prev,
.nexus-banner:hover .carousel-control-next,
.nexus-banner .carousel-control-prev:focus-visible,
.nexus-banner .carousel-control-next:focus-visible {
  opacity: .9;
}

.nexus-banner .carousel-indicators {
  margin-bottom: 10px;
  gap: 6px;
}

.nexus-banner .carousel-indicators [data-bs-target] {
  width: 20px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .32);
  opacity: 1;
}

.nexus-banner .carousel-indicators .active {
  background: var(--nexus-gold-grad);
  width: 30px;
}

/* -------------------------------------------------------------- marquee -- */

.nexus-marquee-bar {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--nexus-border);
  border-bottom: 1px solid var(--nexus-border);
  border-radius: 0;
  background: linear-gradient(180deg, #131313, #0b0b0b);
  overflow: hidden;
}

.nexus-marquee-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  box-sizing: border-box;
}

.nexus-marquee-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.nexus-marquee-label svg {
  color: #fff;
  flex: 0 0 auto;
}

.nexus-marquee-label strong {
  font-weight: 700;
  color: #fff;
}

.tpl-nexus .nexus-marquee {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.tpl-nexus .nexus-marquee .tpl-marquee-inner {
  width: 100%;
  max-width: none;
  height: 30px;
}

.tpl-nexus .nexus-marquee .tpl-marquee-track {
  gap: 3rem;
  animation-duration: 26s;
}

.tpl-nexus .nexus-marquee span {
  color: var(--nexus-text);
  font-size: 12.5px;
  white-space: nowrap;
}

.nexus-clock {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-left: 1px solid var(--nexus-border);
  color: var(--nexus-gold-light);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------------------------------------- jackpot --- */

.tpl-nexus .nexus-jackpot {
  margin: 0 0 14px;
}

.tpl-nexus .nexus-jackpot .tpl-jackpot-wrap {
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius);
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}

.tpl-nexus .nexus-jackpot .tpl-jackpot-amount {
  font-family: var(--nexus-font-display);
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 12px rgba(0, 0, 0, .45);
}

/* ------------------------------------------------------------- sections -- */

.nexus-section {
  margin: 0 0 18px;
}

.nexus-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--nexus-border);
}

.nexus-section-head h2,
.nexus-section-head h3 {
  position: relative;
  margin: 0;
  padding-left: 12px;
  font-size: clamp(15px, 2.1vw, 19px);
  color: var(--nexus-text);
}

.nexus-section-head h2::before,
.nexus-section-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 68%;
  border-radius: 2px;
  background: var(--nexus-gold-grad);
}

.nexus-section-head--tab {
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  border-bottom: 2px solid color-mix(in srgb, var(--nexus-gold) 55%, transparent);
}

.nexus-section-head--tab h2,
.nexus-section-head--tab h3 {
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.nexus-section-head--tab h2::before,
.nexus-section-head--tab h3::before {
  display: none;
}

.nexus-section-head--tab h2 span,
.nexus-section-head--tab h3 span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 32px 6px 12px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
  background: var(--nexus-gold-grad);
  color: var(--nexus-on-accent);
  font-family: var(--nexus-font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 1px 6px color-mix(in srgb, var(--nexus-gold) 20%, transparent);
}

.nexus-section-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-bottom: 4px;
}

.nexus-section-head--tab .nexus-section-more {
  padding-bottom: 6px;
}

.nexus-section-more {
  margin-left: auto;
  color: var(--nexus-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nexus-section-more:hover {
  color: var(--nexus-gold-light);
}

.nexus-live-tv {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: none;
  flex: 0 0 auto;
}

.nexus-live-tv:hover {
  background: #1a1a1a;
  border-color: color-mix(in srgb, var(--nexus-gold) 55%, transparent);
  color: var(--nexus-gold-light);
  filter: none;
}

.nexus-live-tv svg {
  width: 12px;
  height: 12px;
}

.nexus-rail-nav {
  display: flex;
  gap: 4px;
}

.nexus-rail-nav button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--nexus-border);
  border-radius: 3px;
  background: rgba(0, 0, 0, .4);
  color: var(--nexus-gold);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease;
}

.nexus-rail-nav button:hover {
  background: color-mix(in srgb, var(--nexus-gold) 16%, transparent);
}

/* ------------------------------------------------------- match cards ----- */

.nexus-matches-section {
  margin: 0 0 18px;
}

.nexus-section-head--matches {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  flex-wrap: wrap;
}

.nexus-section-head--matches h2 {
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.nexus-section-head--matches h2::before {
  display: none;
}

.nexus-section-head--matches h2 span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 32px 6px 12px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
  background: var(--nexus-gold-grad);
  color: var(--nexus-on-accent);
  font-family: var(--nexus-font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 1px 6px color-mix(in srgb, var(--nexus-gold) 20%, transparent);
}

.nexus-matches-wrap {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
}

.nexus-matches-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--nexus-gold) 40%, transparent);
  border-radius: 50%;
  background: rgba(20, 16, 8, .9);
  color: var(--nexus-gold-light);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.nexus-matches-nav:hover {
  background: var(--nexus-gold-grad);
  color: var(--nexus-on-accent);
  border-color: var(--nexus-gold-light);
}

.nexus-matches-nav.prev { left: 0; }
.nexus-matches-nav.next { right: 0; }

.nexus-match-grid {
  --nexus-match-gap: 10px;
  --nexus-match-cols: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--nexus-match-cols) - 1) * var(--nexus-match-gap)) / var(--nexus-match-cols));
  gap: var(--nexus-match-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.nexus-match-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nexus-match-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  height: 156px;
  max-height: 156px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color .16s ease;
}

.nexus-match-card:hover {
  border-color: color-mix(in srgb, var(--nexus-gold) 45%, transparent);
  box-shadow: none;
  transform: none;
}

.nexus-match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #9a9a9a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.nexus-match-league {
  min-width: 0;
  max-width: 68%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #bbb;
  font-weight: 700;
}

.nexus-match-league i {
  font-style: normal;
  opacity: .55;
  margin-left: 2px;
}

.nexus-match-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 2px;
  background: #c62828;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.nexus-match-live::before {
  display: none;
}

.nexus-match-time {
  flex: 0 0 auto;
  color: var(--nexus-gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.nexus-match-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  flex: 1 1 auto;
  min-height: 0;
}

.nexus-match-side {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.nexus-match-side.is-home {
  justify-content: flex-start;
}

.nexus-match-side.is-away {
  justify-content: flex-end;
  text-align: right;
}

.nexus-match-side > span:not(.nexus-match-flag) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
}

.nexus-match-flag {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.nexus-match-score {
  flex: 0 0 auto;
  min-width: 0;
  text-align: center;
  color: var(--nexus-gold-light);
  font-family: var(--nexus-font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.nexus-match-score.is-ft {
  font-size: 13px;
  letter-spacing: 0;
}

.nexus-odds {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.nexus-odds-label {
  display: block;
  text-align: center;
  color: #9a9a9a;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  border-top: 1px dashed rgba(255, 255, 255, .08);
  padding-top: 2px;
  margin-top: 1px;
}

.nexus-odds-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.nexus-odds-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  background: #0d0d0d;
  color: #bdbdbd;
  font-size: 10.5px;
  transition: border-color .14s ease;
}

.nexus-odds-row a em {
  font-style: normal;
  color: #9a9a9a;
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nexus-odds-row a strong {
  color: var(--nexus-gold-light);
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.nexus-odds-row a strong.is-neg {
  color: var(--nexus-gold-light);
}

.nexus-match-card:hover .nexus-odds-row a {
  border-color: color-mix(in srgb, var(--nexus-gold) 35%, transparent);
}

.nexus-odds-row a:hover {
  border-color: var(--nexus-gold);
  background: #0d0d0d;
  color: var(--nexus-text);
}

/* ------------------------------------------------------------ game grid -- */

.tpl-nexus .nexus-games-section {
  margin: 0 0 18px;
  padding: 0;
}

.nexus-game-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px 6px;
  width: 100%;
  justify-content: start;
}

.nexus-game-card {
  min-width: 0;
}

.nexus-game-card[hidden] {
  display: none !important;
}

.nexus-game {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #eee;
  text-decoration: none !important;
  transition: color .16s ease;
}

.nexus-game:hover,
.nexus-game:focus-visible {
  border-color: transparent;
  color: var(--nexus-gold-light);
  transform: none;
  box-shadow: none;
}

.nexus-games-section .nexus-game-media {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.nexus-game:hover .nexus-game-media,
.nexus-game:focus-visible .nexus-game-media {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--nexus-gold) 55%, transparent);
}

.nexus-game-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .2s ease, border-color .2s ease;
}

.nexus-game-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  min-width: 0;
  padding: 0 5px;
  border-radius: 3px;
  color: var(--nexus-on-accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  background: var(--nexus-gold-grad);
  box-shadow: none;
}

.nexus-game-badge--stack {
  top: 22px;
}

.nexus-game-badge--hot { background: var(--nexus-gold-grad); color: var(--nexus-on-accent); }
.nexus-game-badge--new { background: #c62828; color: #fff; }
.nexus-game-badge--top { background: var(--nexus-gold-grad); color: var(--nexus-on-accent); }
.nexus-game-badge--exclusive { background: var(--nexus-gold-grad); color: var(--nexus-on-accent); }
.nexus-game-badge--x { background: #c62828; color: #fff; }

.nexus-game-gift {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a65, #d84315);
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}

.nexus-game-corner {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe082, #f9a825 55%, #ef6c00);
  color: #3a2200;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

.nexus-game-corner--jp {
  min-width: 52px;
  min-height: 52px;
  font-size: 7.5px;
  background: radial-gradient(circle at 35% 30%, #fff59d, #fbc02d 50%, #f57f17);
}

.nexus-game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.nexus-game:hover .nexus-game-media img {
  transform: none;
}

.nexus-games-section .nexus-game-play {
  display: none;
}

.nexus-game-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 6, .62);
  color: var(--nexus-gold-light);
  font-family: var(--nexus-font-display);
  font-size: 15px;
  letter-spacing: .12em;
  opacity: 0;
  transition: opacity .16s ease;
}

.nexus-game:hover .nexus-game-play,
.nexus-game:focus-visible .nexus-game-play {
  opacity: 1;
}

.nexus-game strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #eee;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexus-game-meta {
  display: block;
  margin-top: -3px;
  color: var(--nexus-gold);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
}

.nexus-games-section .nexus-game small {
  display: none;
}

.nexus-game small {
  color: var(--nexus-muted);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
}

/* -------------------------------------------------------- video slots --- */

.nexus-slots-section {
  margin: 0 0 18px;
}

.nexus-vslot {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 1140px;
  height: 344px;
  min-height: 344px;
  overflow: hidden;
}

.nexus-vslot-left {
  flex: 0 0 232px;
  width: 232px;
  height: 344px;
  display: flex;
  flex-direction: column;
}

.nexus-slots-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  height: 55px;
  flex: 0 0 55px;
  color: #fff;
  font-family: var(--nexus-font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.nexus-slots-play {
  width: 18px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: #c62828;
  position: relative;
}

.nexus-slots-play::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent #fff;
}

.nexus-vslot-mid {
  flex: 0 0 455px;
  width: 455px;
  height: 344px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nexus-vslot-art {
  flex: 0 0 421px;
  width: 421px;
  height: 344px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 0;
}

.nexus-vslot-art img {
  display: block;
  width: 421px;
  height: 344px;
  object-fit: contain;
  object-position: center bottom;
}

.nexus-prov-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 55px;
  margin: 0 0 6px;
  min-width: 0;
}

.nexus-prov-nav {
  flex: 0 0 18px;
  width: 18px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #aaa;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.nexus-prov-nav:hover {
  color: #fff;
}

.nexus-provider-tabs {
  display: flex;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 0;
}

.nexus-provider-tabs::-webkit-scrollbar {
  display: none;
}

.nexus-provider-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 45px;
  min-width: 120px;
  min-height: 45px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
  color: var(--nexus-muted);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.nexus-provider-tab img {
  display: block;
  width: 110px;
  height: 40px;
  max-width: 110px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.nexus-provider-tab:hover {
  border-color: color-mix(in srgb, var(--nexus-gold) 40%, transparent);
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
}

.nexus-provider-tab.is-active {
  border-color: color-mix(in srgb, var(--nexus-gold) 70%, transparent);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--nexus-gold) 25%, transparent);
}

.nexus-provider-tab:hover img,
.nexus-provider-tab.is-active img {
  filter: none;
  opacity: 1;
}

.nexus-slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: 100%;
  max-width: 455px;
  height: 282px;
  overflow: hidden;
}

.nexus-slot-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 141px;
  height: 141px;
  flex: 0 0 141px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #eee;
  text-decoration: none !important;
  transition: color .16s ease;
}

.nexus-slot-card:hover,
.nexus-slot-card:focus-visible {
  color: var(--nexus-gold-light);
  transform: none;
}

.nexus-slot-media {
  position: relative;
  display: block;
  width: 131px;
  height: 120px;
  margin: 0 auto;
  aspect-ratio: auto;
  border-radius: 6px;
  overflow: hidden;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .2s ease, border-color .2s ease;
}

.nexus-slot-card:hover .nexus-slot-media {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--nexus-gold) 55%, transparent);
}

.nexus-slot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: none;
}

.nexus-slot-card:hover .nexus-slot-media img {
  transform: none;
}

.nexus-slot-card strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  color: inherit;
  text-align: center;
  max-width: 141px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexus-slot-rtp {
  display: none;
}

.nexus-winners {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  gap: 0;
}

.nexus-winners-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  height: 30px;
  box-sizing: border-box;
  font-family: var(--nexus-font-body);
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 0;
}

.nexus-winners-head svg,
.nexus-winners-head h3 {
  display: none;
}

.nexus-winners-viewport {
  height: 172px;
  overflow: hidden;
  position: relative;
}

.nexus-winners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  max-height: none;
  overflow: visible;
  animation: nexus-win-scroll 18s linear infinite;
}

.nexus-winners-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  min-height: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  border-radius: 0;
  background: transparent;
}

.nexus-winners-list img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}

.nexus-winner-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.nexus-winner-info strong {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.nexus-winner-info small {
  font-style: normal;
  font-size: 11px;
  color: #9a9a9a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexus-winner-amount {
  font-size: 12px;
  font-weight: 700;
  color: var(--nexus-gold-light);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nexus-winners-fish {
  display: block;
  margin-top: 4px;
  line-height: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.nexus-winners-fish img {
  width: 232px;
  height: 87px;
  object-fit: cover;
  display: block;
}

.nexus-winners-cta,
.nexus-slots-toolbar,
.nexus-slots-layout,
.nexus-slots-main,
.nexus-slots-panel,
.nexus-slots-promo,
.nexus-slots-promo-art,
.nexus-slots-promo-star,
.nexus-slots-promo-float {
  /* legacy hooks kept inert */
}

.nexus-slots-promo,
.nexus-slots-promo-art,
.nexus-slots-promo-star,
.nexus-slots-promo-float {
  display: none !important;
}

@keyframes nexus-win-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ------------------------------------------------------------------ apk -- */

.nexus-apk {
  position: relative;
  width: 100vw;
  margin: 12px 0 0;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #0e0b09;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: block;
  gap: 0;
}

.nexus-apk-bg {
  position: relative;
  background-color: #0e0b09;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.nexus-apk-bg::before,
.nexus-apk-bg::after {
  content: none;
  display: none;
}

.nexus-apk-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 399px;
  gap: clamp(8px, 2vw, 24px);
  overflow: visible;
  width: min(1140px, calc(100% - 2rem));
  max-width: 1140px;
  margin: 0 auto;
}

.nexus-apk-phone {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

.nexus-apk-phone-frame {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* No solid overlay box — theme tint on the photo only (alpha-safe) */
.nexus-apk-phone-frame::before,
.nexus-apk-phone-frame::after {
  content: none !important;
  display: none !important;
}

.nexus-apk-phone img,
.nexus-apk-phone-frame img {
  display: block;
  position: relative;
  z-index: 0;
  width: auto;
  max-width: min(566px, 100%);
  height: auto;
  max-height: 399px;
  object-fit: contain;
  object-position: center center;
  background: transparent !important;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

/* Soft theme nudge on pixels only — never paints a rectangular plate */
.tpl-nexus:not([data-theme="gold"]) .nexus-apk-phone-frame img {
  filter: sepia(.18) saturate(1.15) hue-rotate(var(--nexus-apk-hue, 0deg));
}

.tpl-nexus[data-theme="emerald"] .nexus-apk-phone-frame img { --nexus-apk-hue: 95deg; }
.tpl-nexus[data-theme="crimson"] .nexus-apk-phone-frame img,
.tpl-nexus[data-theme="blood"] .nexus-apk-phone-frame img { --nexus-apk-hue: -15deg; }
.tpl-nexus[data-theme="sapphire"] .nexus-apk-phone-frame img,
.tpl-nexus[data-theme="abyss"] .nexus-apk-phone-frame img { --nexus-apk-hue: 195deg; }
.tpl-nexus[data-theme="violet"] .nexus-apk-phone-frame img,
.tpl-nexus[data-theme="royal"] .nexus-apk-phone-frame img { --nexus-apk-hue: 250deg; }
.tpl-nexus[data-theme="cyan"] .nexus-apk-phone-frame img { --nexus-apk-hue: 160deg; }
.tpl-nexus[data-theme="orange"] .nexus-apk-phone-frame img,
.tpl-nexus[data-theme="iron"] .nexus-apk-phone-frame img { --nexus-apk-hue: 25deg; }
.tpl-nexus[data-theme="obsidian"] .nexus-apk-phone-frame img,
.tpl-nexus[data-theme="graphite"] .nexus-apk-phone-frame img,
.tpl-nexus[data-theme="onyx"] .nexus-apk-phone-frame img { --nexus-apk-hue: 0deg; filter: sepia(.08) saturate(.9) brightness(.95); }
.tpl-nexus[data-theme="poison"] .nexus-apk-phone-frame img { --nexus-apk-hue: 110deg; }

.nexus-apk-copy {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 570px;
  padding: 0 8px 0 12px;
  color: #fff;
}

.nexus-apk-h2 {
  margin: 0 0 6px;
  font-family: var(--nexus-font-body);
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 100;
  line-height: 1.1;
  color: #fff;
}

.nexus-apk-h2 strong {
  display: block;
  font-weight: 700;
  color: #fff;
}

.nexus-apk-h3 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  color: #fff;
}

.nexus-apk-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.nexus-apk-qr {
  position: relative;
  flex: 0 0 auto;
  width: 94px;
  height: 94px;
  padding: 0;
  background: #fff;
  line-height: 0;
  display: block;
  overflow: hidden;
}

.nexus-apk-qr img,
.nexus-apk-qr .tpl-qr-img {
  display: block;
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.nexus-apk-qr .tpl-qr-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
}

.nexus-apk-qr .tpl-qr-empty[hidden] {
  display: none !important;
}

.nexus-apk-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.nexus-apk-appname {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: #fff;
}

.nexus-apk-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--nexus-gold-grad);
  color: var(--nexus-on-accent) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--nexus-gold) 35%, transparent);
  transition: filter .16s ease;
}

.nexus-apk-guide:hover,
.nexus-apk-guide:focus-visible {
  filter: brightness(1.08);
  color: var(--nexus-on-accent) !important;
  transform: none;
}

.nexus-apk-scan {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.nexus-apk-scan a {
  color: var(--nexus-gold) !important;
  text-decoration: none !important;
  font-weight: 600;
}

.nexus-apk-scan a:hover {
  color: var(--nexus-gold-light) !important;
}

/* legacy hooks (old CSS phone mock) */
.nexus-apk-visual,
.nexus-apk-glow,
.nexus-apk-chip,
.nexus-apk-ball,
.nexus-apk-die,
.nexus-apk-ticker,
.nexus-apk-content,
.nexus-apk-download,
.nexus-apk-meta,
.nexus-apk-hint,
.nexus-apk-qr-frame,
.nexus-apk-phone-notch,
.nexus-apk-phone-screen,
.nexus-apk-phone-top,
.nexus-apk-phone-hero,
.nexus-apk-phone-cats,
.nexus-apk-phone-grid {
  /* replaced by composite artwork layout */
}

/* ------------------------------------------------------------- telegram -- */

.nexus-tg {
  margin: 0 0 14px;
}

.nexus-tg-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, #2f7fe0 0%, #4f55d8 42%, #7b3fd4 100%);
  box-shadow: 0 12px 28px rgba(47, 127, 224, .28);
  transition: filter .16s ease, transform .16s ease;
}

.nexus-tg-banner::before,
.nexus-tg-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}

.nexus-tg-banner::before {
  width: 120px;
  height: 120px;
  top: -48px;
  right: 22%;
}

.nexus-tg-banner::after {
  width: 70px;
  height: 70px;
  bottom: -28px;
  left: 36%;
  background: rgba(255, 255, 255, .08);
}

.nexus-tg-banner:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  color: inherit;
}

.nexus-tg-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
}

.nexus-tg-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.nexus-tg-copy strong {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
  color: #fff;
  text-transform: none;
  font-family: var(--nexus-font-body);
}

.nexus-tg-copy small {
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  line-height: 1.45;
}

.nexus-tg-cta {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: #4a35b5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

/* -------------------------------------------------------- seo / article -- */

.tpl-nexus .tpl-seo {
  padding: 6px 0 24px;
}

.tpl-nexus .tpl-article {
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius);
  background: linear-gradient(180deg, #121212, #0b0b0b);
  box-shadow: none;
  color: var(--nexus-text);
  padding: 22px clamp(14px, 2.2vw, 24px);
}

.tpl-nexus .tpl-article h1,
.tpl-nexus .tpl-article h2,
.tpl-nexus .tpl-article h3 {
  color: var(--nexus-gold-light);
  text-shadow: none;
}

.tpl-nexus .tpl-article h1 {
  font-size: clamp(21px, 3.2vw, 30px);
}

.tpl-nexus .tpl-article h2 {
  font-size: clamp(17px, 2.4vw, 22px);
}

.tpl-nexus .tpl-article h3 {
  font-size: clamp(15px, 2vw, 18px);
}

.tpl-nexus .tpl-article p,
.tpl-nexus .tpl-article li {
  color: #ddd8ca;
  font-size: 13.5px;
}

.tpl-nexus .tpl-article a {
  color: var(--nexus-gold);
  text-decoration: underline;
  text-decoration-color: var(--nexus-border);
}

.tpl-nexus .tpl-article a:hover {
  color: var(--nexus-gold-light);
}

.tpl-nexus .tpl-review-item {
  border: 1px solid var(--nexus-border-soft);
  border-radius: var(--nexus-radius);
  background: #101010;
}

.tpl-nexus .tpl-review-item h3 {
  color: var(--nexus-gold-light);
}

.tpl-nexus .tpl-review-item--featured {
  border-color: var(--nexus-gold);
  background: linear-gradient(180deg, #171310, #0d0d0d);
}

.tpl-nexus .tpl-review-author {
  color: var(--nexus-muted);
}

.tpl-nexus .tpl-faq-item {
  border: 1px solid var(--nexus-border-soft);
  border-radius: var(--nexus-radius);
  background: #101010;
}

.tpl-nexus .tpl-faq-item[open] {
  border-color: var(--nexus-border);
}

.tpl-nexus .tpl-faq-q {
  color: var(--nexus-text);
  font-weight: 700;
}

.tpl-nexus .tpl-faq-q::before {
  color: var(--nexus-gold);
}

.tpl-nexus .tpl-faq-a p {
  color: #ddd8ca;
}

/* --------------------------------------------------------------- footer -- */

.tpl-nexus .nexus-footer {
  margin-top: 10px;
  padding: 2.25rem 0 1.15rem;
  border-top: 1px solid var(--nexus-border);
  background: linear-gradient(
    180deg,
    var(--nexus-bg-alt) 0%,
    color-mix(in srgb, var(--nexus-bg) 92%, #000 8%) 100%
  );
}

.nexus-taruhan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 26px;
}

.nexus-taruhan__card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--nexus-border);
  border-radius: 12px;
  background: var(--nexus-card);
}

.nexus-taruhan__ico {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--nexus-border);
  background: var(--nexus-bg-elevated);
  font-size: 22px;
  line-height: 1;
}

.nexus-taruhan__body h4 {
  margin: 0 0 4px;
  font-family: var(--nexus-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--nexus-gold-light);
}

.nexus-taruhan__body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--nexus-muted);
}

.nexus-pay {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--nexus-border);
  border-radius: 14px;
  background: var(--nexus-bg-alt);
}

.nexus-pay__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.nexus-pay__chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--nexus-border);
  border-radius: 8px;
  background: linear-gradient(#141414, #0d0d0d);
}

.nexus-pay__chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--nexus-gold-grad);
}

.nexus-pay__auto {
  position: absolute;
  top: 4px;
  left: 8px;
  padding: 0 5px;
  border-radius: 3px;
  background: #7ee07e;
  color: #0a3d0a;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.5;
}

.nexus-pay__name {
  color: var(--nexus-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
}

.nexus-pay__note {
  margin: 12px 0 0;
  font-size: 11px;
  font-style: italic;
  color: var(--nexus-muted);
}

.nexus-speed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.nexus-speed__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--nexus-border);
  border-radius: 12px;
  background: var(--nexus-card);
}

.nexus-speed__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nexus-gold-grad);
  color: var(--nexus-on-accent);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.nexus-speed__card strong {
  display: block;
  font-size: 14px;
  color: var(--nexus-gold-light);
}

.nexus-speed__card small {
  color: var(--nexus-muted);
  font-size: 12px;
}

.nexus-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 22px;
  align-items: start;
  padding: 30px 0 10px;
}

.nexus-footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  text-decoration: none;
}

.nexus-footer__logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nexus-footer__logo-text {
  font-family: var(--nexus-font-display);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--nexus-gold-light);
  text-shadow: 0 0 18px color-mix(in srgb, var(--nexus-gold) 28%, transparent);
}

.nexus-footer__logo.has-logo .nexus-footer__logo-text {
  display: none;
}

.nexus-footer__logo.has-logo .nexus-footer__logo-img {
  display: block;
}

.nexus-footer__brand p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--nexus-muted);
}

.nexus-footer__brand a {
  color: var(--nexus-gold-light);
}

.nexus-footer__col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--nexus-gold-light);
}

.nexus-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nexus-footer__col a {
  color: #ddd;
  font-size: 12.5px;
  transition: color .2s ease;
}

.nexus-footer__col a:hover {
  color: var(--nexus-gold-light);
}

.nexus-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--nexus-border);
}

.nexus-trust__block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nexus-trust__copy {
  margin-left: auto;
}

.nexus-trust__copy p {
  margin: 0;
  font-size: 11.5px;
  color: var(--nexus-muted);
}

.nexus-trust__label {
  font-size: 10.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--nexus-muted);
}

.nexus-trust__badges {
  display: flex;
  gap: 6px;
}

.nexus-trust__pill {
  padding: 3px 10px;
  border: 1px solid var(--nexus-border);
  border-radius: 999px;
  background: var(--nexus-bg-elevated);
  color: var(--nexus-text);
  font-size: 11px;
  font-weight: 700;
}

.nexus-providers {
  padding: 18px 0 34px;
  border-top: 1px solid var(--nexus-border);
}

.nexus-providers__label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--nexus-muted);
}

.nexus-providers__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nexus-providers__chip {
  padding: 7px 14px;
  border: 1px solid var(--nexus-border);
  border-radius: 8px;
  background: var(--nexus-card);
  color: var(--nexus-text);
  font-size: 12px;
  font-weight: 700;
}

.nexus-providers__chip:hover {
  border-color: color-mix(in srgb, var(--nexus-gold) 45%, transparent);
  color: var(--nexus-gold-light);
}

@media (max-width: 900px) {
  .nexus-taruhan {
    grid-template-columns: repeat(2, 1fr);
  }

  .nexus-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .nexus-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nexus-taruhan,
  .nexus-speed,
  .nexus-footer__grid {
    grid-template-columns: 1fr;
  }

  .nexus-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nexus-trust__copy {
    margin-left: 0;
  }

  .nexus-providers__row {
    gap: 8px;
  }

  .nexus-providers__chip {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* --------------------------------------------------------- rails + misc -- */

.tpl-nexus .tpl-rail {
  z-index: 9200;
}

.tpl-nexus .nexus-rail .tpl-rail-panel {
  gap: .42rem;
  padding: .55rem .42rem;
  border: 1px solid #3a3a3a;
  background: #0a0a0a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
}

.tpl-nexus .tpl-rail-left .tpl-rail-panel {
  border-left: 0;
  border-radius: 0 12px 12px 0;
}

.tpl-nexus .tpl-rail-right .tpl-rail-panel {
  border-right: 0;
  border-radius: 12px 0 0 12px;
  padding: .5rem .45rem;
}

.tpl-nexus .tpl-rail-left .tpl-rail-panel a {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  transition: filter .16s ease, transform .16s ease;
}

.tpl-nexus .tpl-rail-left .tpl-rail-panel a:nth-child(1) {
  background: #2aabee;
}

.tpl-nexus .tpl-rail-left .tpl-rail-panel a:nth-child(2) {
  background: #25d366;
}

.tpl-nexus .tpl-rail-left .tpl-rail-panel a:nth-child(3) {
  background: #1877f2;
}

.tpl-nexus .tpl-rail-left .tpl-rail-panel a:nth-child(4) {
  background: var(--nexus-gold-grad);
}

.tpl-nexus .tpl-rail-left .tpl-rail-panel a:hover,
.tpl-nexus .tpl-rail-left .tpl-rail-panel a:focus-visible {
  filter: brightness(1.12);
  transform: scale(1.06);
}

.tpl-nexus .tpl-rail-left .tpl-rail-panel a img {
  width: 22px;
  height: 22px;
}

.tpl-nexus .nexus-rail .tpl-rail-toggle {
  width: 28px;
  min-width: 28px;
  min-height: 188px;
  border: 0;
  background: var(--nexus-gold-grad);
  color: var(--nexus-on-accent);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 2px 0 12px rgba(0, 0, 0, .35);
}

.tpl-nexus .tpl-rail-left .tpl-rail-toggle {
  border-radius: 0 10px 10px 0;
}

.tpl-nexus .tpl-rail-right .tpl-rail-toggle {
  min-height: 176px;
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 0 12px rgba(0, 0, 0, .35);
}

.tpl-nexus .tpl-rail.is-collapsed .tpl-rail-toggle {
  min-height: 188px;
  height: 188px;
}

.tpl-nexus .tpl-rail-right.is-collapsed .tpl-rail-toggle {
  min-height: 176px;
  height: 176px;
}

.tpl-nexus .nexus-rail .tpl-download-card {
  width: 108px;
  color: var(--nexus-gold);
}

.tpl-nexus .nexus-rail .tpl-download-label {
  color: var(--nexus-gold-light);
  font-family: var(--nexus-font-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

.tpl-nexus .nexus-rail .tpl-download-card small {
  color: #d8d8d8;
  font-size: .62rem;
}

.tpl-nexus .tpl-rail-right .tpl-qr-frame {
  width: 96px;
  height: 96px;
  border: 2px solid var(--nexus-gold);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(252, 230, 142, .25), 0 6px 16px rgba(0, 0, 0, .4);
}

.tpl-nexus .tpl-qr-empty {
  color: #888;
  font-weight: 700;
}

.tpl-nexus .nexus-offcanvas {
  background: var(--nexus-bg-alt);
  border-left: 1px solid var(--nexus-border);
  color: var(--nexus-text);
}

.tpl-nexus .nexus-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--nexus-border);
}

.tpl-nexus .nexus-offcanvas .offcanvas-title {
  font-family: var(--nexus-font-display);
  font-size: 17px;
  letter-spacing: .06em;
  color: var(--nexus-gold-light);
}

.nexus-offcanvas-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--nexus-border-soft);
}

.nexus-offcanvas-auth .nexus-btn-gold,
.nexus-offcanvas-auth .nexus-btn-ghost {
  min-height: 38px;
}

.tpl-nexus .nexus-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--nexus-border-soft);
  color: var(--nexus-text);
  font-size: 12.5px;
  letter-spacing: .06em;
}

.tpl-nexus .nexus-mobile-menu a:hover,
.tpl-nexus .nexus-mobile-menu a:focus {
  color: var(--nexus-gold-light);
  background: color-mix(in srgb, var(--nexus-gold) 8%, transparent);
}

.tpl-nexus .nexus-popup .tpl-popup-frame {
  border-color: var(--nexus-gold);
}

.tpl-nexus .nexus-popup .tpl-popup-close {
  border-color: var(--nexus-gold);
  background: #101010;
  color: var(--nexus-gold-light);
}

/* bottom nav is a mobile-only element — never show it on large screens */
@media (min-width: 768px) {
  .tpl-nexus .nexus-bottom-nav {
    display: none !important;
  }

  .tpl-nexus .nexus-auth-mobile {
    display: none !important;
  }

  .tpl-nexus .nexus-menu-toggle {
    display: none !important;
  }
}

.tpl-nexus .nexus-bottom-nav {
  background: linear-gradient(180deg, #121212, #060606);
  border-top: 1px solid var(--nexus-border);
}

.tpl-nexus .nexus-bottom-nav .tpl-bottom-nav-item {
  color: var(--nexus-muted);
  font-size: 9.5px;
  letter-spacing: .06em;
}

.tpl-nexus .nexus-bottom-nav .tpl-bottom-nav-item:hover,
.tpl-nexus .nexus-bottom-nav .tpl-bottom-nav-item.is-home {
  color: var(--nexus-gold-light);
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1199.98px) {
  .nexus-vslot {
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .nexus-vslot-left {
    flex: 0 0 220px;
    width: 220px;
    height: auto;
  }

  .nexus-vslot-mid {
    flex: 1 1 360px;
    width: auto;
    max-width: 455px;
    height: auto;
  }

  .nexus-vslot-art {
    flex: 0 0 280px;
    width: 280px;
    height: 230px;
  }

  .nexus-vslot-art img {
    width: 280px;
    height: 230px;
  }

  .nexus-winners-fish img {
    width: 100%;
    height: auto;
  }

  .nexus-game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px 6px;
  }

  .nexus-match-grid {
    --nexus-match-cols: 3;
    --nexus-match-gap: 8px;
  }

  .nexus-cats a {
    min-width: 72px;
    padding: 8px 8px 10px;
    font-size: 10px;
  }
}

@media (max-width: 991.98px) {
  .nexus-vslot {
    flex-direction: column;
    height: auto;
  }

  .nexus-vslot-left,
  .nexus-vslot-mid,
  .nexus-vslot-art {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .nexus-slots-title {
    height: auto;
    flex: 0 0 auto;
    min-height: 40px;
  }

  .nexus-vslot-art img {
    width: min(421px, 100%);
    height: auto;
    margin: 0 auto;
  }

  .nexus-slot-grid {
    height: auto;
    max-width: 100%;
    justify-content: center;
  }

  .nexus-winners-viewport {
    height: 172px;
  }

  .nexus-match-grid {
    --nexus-match-cols: 2;
    --nexus-match-gap: 8px;
  }

  .nexus-apk-row {
    min-height: 0;
  }

  .nexus-apk-phone img {
    max-height: 340px;
  }

  .nexus-apk-h2 {
    font-size: 28px;
  }

  .nexus-apk-h3 {
    font-size: 18px;
  }

  .nexus-game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nexus-tg-pill span {
    max-width: 9.5em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nexus-prov-wrap {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .tpl-nexus {
    --nexus-shell: min(1140px, 100% - 1rem);
  }

  /* ---- app install bar ---- */
  .nexus-appbar:not([hidden]) {
    display: block;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .nexus-appbar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    max-width: 100%;
  }

  .nexus-appbar__ico {
    flex: 0 0 auto;
    display: inline-flex;
  }

  .nexus-appbar__text {
    flex: 1 1 0;
    min-width: 0;
    line-height: 1.2;
  }

  .nexus-appbar__text strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
  }

  .nexus-appbar__text small {
    font-size: 10px;
    color: #999;
  }

  .nexus-appbar__btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 6px;
    background: #c62828;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
  }

  .nexus-appbar__close {
    flex: 0 0 auto;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #aaa;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  /* ---- header: logo center + burger ---- */
  .nexus-topbar {
    display: none !important;
  }

  .nexus-header {
    position: sticky;
    top: 0;
    z-index: 8000;
  }

  .nexus-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--nexus-bg-alt);
    border-bottom: 1px solid color-mix(in srgb, var(--nexus-gold) 20%, transparent);
    box-shadow: none;
  }

  .nexus-navbar-inner {
    position: relative;
    justify-content: center !important;
    gap: 0;
    min-height: 56px !important;
    padding: 6px 48px 6px 12px !important;
  }

  .tpl-nexus .nexus-logo {
    margin: 0 auto;
    max-width: none;
    padding: 0 !important;
  }

  .tpl-nexus .nexus-logo-text {
    font-size: 28px;
  }

  .tpl-nexus .nexus-logo-img {
    height: 40px !important;
    width: auto;
  }

  .nexus-cats,
  .nexus-cats-nav {
    display: none !important;
  }

  .nexus-menu-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 51;
    display: flex !important;
  }

  /* ---- main order: marquee → banner → auth → matches → cats ---- */
  #nexusMain {
    display: flex;
    flex-direction: column;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .nexus-marquee-bar {
    order: 1;
  }

  .nexus-banner {
    order: 2;
  }

  .tpl-shell.nexus-main {
    order: 3;
    display: flex;
    flex-direction: column;
    width: var(--nexus-shell);
    max-width: 100%;
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .nexus-seo {
    order: 20;
  }

  .nexus-marquee-bar-inner {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 34px;
    padding: 6px 8px;
  }

  .nexus-marquee-label strong {
    font-size: 10px;
  }

  .nexus-clock {
    padding-left: 6px;
    font-size: 10px;
    color: #7ec8e3;
  }

  .tpl-nexus .nexus-auth-mobile {
    order: 1;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    padding: 10px 0;
  }

  .tpl-nexus .nexus-auth-mobile .tpl-auth-mobile-btn {
    min-height: 44px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
  }

  .tpl-nexus .nexus-auth-mobile .tpl-auth-mobile-btn:last-child {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
  }

  .tpl-nexus .nexus-jackpot {
    display: block;
    margin: 8px 0 10px;
  }

  .nexus-matches-section {
    order: 2;
  }

  .nexus-mcats {
    order: 3;
    display: block;
    padding: 8px 0 4px;
    border-block: 1px solid color-mix(in srgb, var(--nexus-gold) 18%, transparent);
    background: color-mix(in srgb, var(--nexus-gold) 6%, #0a0a0a);
  }

  .nexus-mcats__scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 8px 10px;
    scrollbar-width: none;
  }

  .nexus-mcats__scroll::-webkit-scrollbar {
    display: none;
  }

  .nexus-mcats__item {
    flex: 0 0 auto;
    width: 68px;
    text-align: center;
    color: var(--nexus-menu-ink-soft) !important;
    text-decoration: none !important;
  }

  .nexus-mcats__item.is-active,
  .nexus-mcats__item:hover {
    color: var(--nexus-menu-active) !important;
  }

  .nexus-mcats__ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--nexus-gold) 10%, rgba(255, 255, 255, .05));
    border: 1px solid color-mix(in srgb, var(--nexus-gold) 35%, transparent);
    font-size: 20px;
    line-height: 1;
    color: var(--nexus-menu-icon);
    position: relative;
  }

  .nexus-mcats__ico:not(.nexus-cat-glyph)::before {
    display: none;
  }

  .nexus-mcats__item.is-active .nexus-mcats__ico {
    background: color-mix(in srgb, var(--nexus-gold) 22%, transparent);
    border-color: var(--nexus-gold);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--nexus-gold) 25%, transparent);
  }

  .nexus-mcats__ico img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
    pointer-events: none;
  }

  .nexus-mcats__label {
    display: block;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nexus-games-section {
    order: 4;
  }

  .nexus-slots-section,
  .nexus-apk,
  .nexus-tg {
    order: 10;
  }

  .nexus-match-grid {
    --nexus-match-cols: 2;
    --nexus-match-gap: 8px;
    scroll-snap-type: x mandatory;
  }

  .nexus-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .nexus-slot-grid {
    gap: 10px 8px;
    height: auto;
  }

  .nexus-slots-title {
    font-size: 14px;
  }

  .nexus-match-card {
    height: 150px;
    max-height: 150px;
    scroll-snap-align: start;
  }

  .nexus-matches-wrap {
    padding: 0;
  }

  .nexus-matches-nav {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .nexus-section-head--matches h2 span {
    font-size: 11.5px;
    min-height: 28px;
    padding: 5px 28px 5px 10px;
  }

  .nexus-section-head,
  .nexus-section-head--tab {
    flex-wrap: wrap;
    align-items: center;
  }

  .nexus-section-head--tab h2 span,
  .nexus-section-head--tab h3 span {
    font-size: 11.5px;
    min-height: 30px;
    padding: 0 14px 0 12px;
  }

  .nexus-section-tools {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    padding-bottom: 0;
  }

  .nexus-apk-row {
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 12px 0 20px;
    text-align: center;
    overflow: visible;
  }

  .nexus-apk-phone {
    height: auto;
    max-width: 100%;
    justify-content: center;
  }

  .nexus-apk-phone img {
    height: auto;
    max-height: 360px;
    max-width: 360px;
    margin: 0 auto;
  }

  .nexus-apk-copy {
    width: auto;
    max-width: 100%;
    padding: 8px 12px 16px;
  }

  .nexus-apk-h2 {
    font-size: 26px;
  }

  .nexus-apk-h3 {
    font-size: 16px;
    white-space: normal;
  }

  .nexus-apk-info {
    justify-content: center;
    text-align: left;
  }

  .nexus-tg-banner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .nexus-tg-icon {
    width: 40px;
    height: 40px;
  }

  .nexus-tg-icon svg {
    width: 32px;
    height: 32px;
  }

  .nexus-tg-copy strong {
    font-size: 15px;
  }

  .nexus-tg-copy small {
    font-size: 12px;
  }

  .nexus-tg-cta {
    width: 100%;
    min-height: 40px;
    text-align: center;
  }

  .tpl-nexus {
    padding-bottom: 62px;
  }

  .tpl-nexus .nexus-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    z-index: 10050;
    min-height: 56px;
    padding: .35rem .2rem calc(.35rem + env(safe-area-inset-bottom, 0px));
  }

  .tpl-nexus .nexus-bottom-nav .tpl-bottom-nav-item {
    min-height: 44px;
    color: var(--nexus-gold-light) !important;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none !important;
  }

  .tpl-nexus .nexus-bottom-nav .tpl-bottom-nav-item.is-home {
    background: color-mix(in srgb, var(--nexus-gold) 15%, transparent);
    color: #fff !important;
    border-radius: 6px;
  }

  /* left float gold tab only */
  .tpl-nexus .tpl-rail-left {
    display: flex !important;
    top: 42%;
  }

  .tpl-nexus .tpl-rail-right {
    display: none !important;
  }

  .tpl-nexus .nexus-auth-mobile .tpl-auth-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nexus-gold-grad);
    color: #150f02;
    text-transform: uppercase;
  }
}

@media (max-width: 479.98px) {
  .nexus-btn-gold,
  .nexus-btn-ghost,
  .nexus-btn-masuk {
    padding: 0 10px;
    font-size: 11px;
    min-height: 28px;
  }

  .nexus-tg-pill {
    padding: 0 10px;
    font-size: 11px;
  }

  .nexus-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nexus-match-grid {
    --nexus-match-cols: 1;
  }

  .nexus-match-card {
    height: auto;
    max-height: none;
    min-height: 148px;
    padding: 10px 12px;
  }

  .nexus-matches-nav {
    display: none;
  }

  .nexus-match-grid {
    --nexus-match-cols: 1 !important;
  }

  .nexus-slot-card {
    width: calc(33.333% - 8px);
    flex: 0 0 calc(33.333% - 8px);
    height: auto;
  }

  .nexus-slot-media {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .nexus-provider-tab {
    width: 100px;
    min-width: 100px;
  }

  .nexus-clock {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpl-nexus *,
  .tpl-nexus *::before,
  .tpl-nexus *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
