/**
 * Home hub layout — extracted from docs/home-hub-mockup.html
 *
 * Usage:
 *   <body class="home-hub"> …
 *     <div class="home-hub-content"> … all hub sections … </div>
 *   </body>
 *
 * Tokens and page chrome live on body.home-hub; component rules are scoped with @scope
 * so this sheet can load beside public/css/style.css without resetting the global header/footer.
 * (@scope: Chrome 118+, Firefox 128+, Safari 18+.)
 */

/* Design tokens — aligned with docs/frontend.html */
body.home-hub {
  --bg-0: #0B0F16;
  --bg-1: #111827;
  --bg-2: #13181F;
  --bg-3: #161D26;
  --text-1: rgba(255, 255, 255, 0.92);
  --text-2: rgba(255, 255, 255, 0.68);
  --text-3: rgba(255, 255, 255, 0.50);
  --border-1: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(230, 201, 122, 0.22);
  --accent-gold: #E6C97A;
  --accent-secondary: #6366F1;
  --success: #2DD4BF;
  --hover-bg: rgba(255, 255, 255, 0.05);
  --mock-chrome-h: 56px;
}

body.home-hub {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(230, 201, 122, 0.07), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(99, 102, 241, 0.06), transparent 50%),
    var(--bg-0);
  color: var(--text-1);
  line-height: 1.55;
  min-height: 100vh;
}

/* Wide hub sections: clip here, not on body (body overflow-x skews root scrollbar width in Chromium) */
body.home-hub .home-hub-content {
  overflow-x: hidden;
  max-width: 100%;
}

/*
 * DM Sans is for hub main content only (body). Sidebar and top/bottom bars must use the same stack
 * as style.css body - otherwise link line-height and font metrics differ from /cards and /dice,
 * the nav list height changes, inner scrollbar toggles, and main content appears to shift sideways.
 */
body.home-hub .top-bar,
body.home-hub .sidebar-nav,
body.home-hub .bottom-nav,
body.home-hub #notification-dropdown {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

@scope (.home-hub-content) {
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

.mock-badge {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  pointer-events: none;
}

/* —— Fake site chrome (header + placeholder sidebar gutter) —— */
.mock-shell {
  display: flex;
  min-height: 100vh;
}

.mock-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #0D1117;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0;
  display: none;
}

@media (min-width: 900px) {
  .mock-sidebar { display: block; }
}

.mock-sidebar .logo-pill {
  padding: 0 1.25rem 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 1rem;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: var(--text-2);
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.mock-nav-item.active {
  background: var(--hover-bg);
  color: var(--accent-gold);
  border-left-color: var(--accent-gold);
}

.mock-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mock-header {
  height: var(--mock-chrome-h);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mock-header .logo-img {
  height: 32px;
  opacity: 0.9;
}

.mock-header-note {
  font-size: 0.75rem;
  color: var(--text-3);
  max-width: 200px;
  text-align: right;
  line-height: 1.3;
}

/* —— Page content —— */
.hub-wrap {
  flex: 1;
  padding: 1rem 1rem 2.5rem;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .hub-wrap { padding: 1.25rem 1.5rem 3rem; }
}

/* style.css sets section { padding: 3rem 0 } — would add empty bands around the hero & every hub section */
section {
  padding: 0;
}

/* Hub CTAs: beat global body a:link (blue + underline) from style.css */
a.btn-gold-outline:link,
a.btn-gold-outline:visited,
a.btn-gold-outline:hover,
a.btn-gold-outline:active {
  color: var(--text-1);
  text-decoration: none;
}

a.btn-ghost:link,
a.btn-ghost:visited,
a.btn-ghost:hover,
a.btn-ghost:active {
  color: var(--text-2);
  text-decoration: none;
}

/* Real links: base .btn-* used cursor:default for mock buttons — pointer + motion */
a.btn-gold-outline {
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

a.btn-gold-outline:hover {
  background: rgba(230, 201, 122, 0.16);
  border-color: rgba(230, 201, 122, 0.48);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(230, 201, 122, 0.14);
  color: var(--text-1);
  transform: translateY(-1px);
}

a.btn-gold-outline:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

a.btn-gold-outline:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg-1),
    0 0 0 4px rgba(230, 201, 122, 0.55);
}

a.link-all:link,
a.link-all:visited {
  color: var(--accent-gold);
  text-decoration: none;
}

a.link-all:hover,
a.link-all:active {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* 1) Narrow stats strip */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  padding: 10px 12px;
  margin-bottom: 1.25rem;
  background: rgba(15, 22, 35, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-1);
  border-radius: 12px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  font-size: 12px;
}

.stat-chip-label { color: var(--text-3); font-weight: 500; }
.stat-chip-value { color: var(--text-1); font-weight: 600; }
.stat-chip-value.gold { color: var(--accent-gold); }

/* Stats strip: one row on narrow phones (was 2+1 wrap) */
@media (max-width: 640px) {
  .stats-strip {
    flex-wrap: nowrap;
    justify-content: stretch;
    gap: 0.35rem;
    padding: 8px 6px;
  }

  .stat-chip {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 4px;
    font-size: 10px;
    border-radius: 10px;
    text-align: center;
  }

  .stat-chip-label {
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
  }

  .stat-chip-value,
  .stat-chip-value.gold {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
  }
}

/* 2) Banner — ~30% copy + CTAs (left) + ~70% image (right, linkable, rotatable) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-1);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, #111827 0%, #0F1623 100%);
}

@media (min-width: 768px) {
  .hero-split {
    grid-template-columns: 3fr 7fr;
    align-items: stretch;
  }
}

/* Mobile: keep image block visually on top */
@media (max-width: 767px) {
  .hero-banner-media {
    order: -1;
  }
}

.hero-banner-media {
  position: relative;
  background: #0a0e14;
  align-self: stretch;
  min-height: 220px;
}

.hero-banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(10, 16, 28, 1) 0%,
    rgba(10, 16, 28, 0.75) 10%,
    rgba(10, 16, 28, 0) 24%
  );
}

@media (min-width: 768px) {
  .hero-banner-media {
    /* Row height comes from .hero-banner-side; image fills via absolute inset — avoids empty bands inside the tile */
    min-height: 0;
  }
}

/* Stacked slides (up to 3); whole slide area can be a link when href is set */
.hero-banner-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
  z-index: 0;
}

.hero-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-banner-slide .hero-banner-cta-anchor {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* Fixed offset from banner edge — not safe-area (inset changes when mobile browser chrome shows/hides on scroll). */
  bottom: 12px;
  z-index: 5;
  height: 44px;
  padding: 0 24px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: min(92%, 340px);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  border-radius: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  background: rgba(20, 20, 28, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.32s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.32s ease,
    transform 0.28s ease;
}

.hero-banner-media--carousel .hero-banner-slide .hero-banner-cta-anchor {
  /* Clears pagination strip (~bottom 10px + dot size) */
  bottom: 26px;
}

/* Brighten CTA when hovering the banner (modern gaming affordance); anchor :hover stacks below */
.hero-banner-media:hover .hero-banner-slide.is-active .hero-banner-cta-anchor {
  background: rgba(32, 32, 44, 0.54);
}

.hero-banner-slide .hero-banner-cta-anchor:hover {
  border-color: rgba(232, 192, 71, 0.45);
  box-shadow: 0 0 20px rgba(232, 192, 71, 0.18);
  transform: translateX(-50%) translateY(-1px);
}

.hero-banner-slide .hero-banner-cta-anchor:focus-visible {
  outline: 2px solid rgba(232, 192, 71, 0.55);
  outline-offset: 2px;
}

.hero-banner-slide .hero-banner-image-link,
.hero-banner-slide .hero-banner-image-nolink {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  outline: none;
  transition: filter 0.42s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-banner-slide .hero-banner-image-nolink {
  cursor: default;
}

.hero-banner-slide .hero-banner-image-link:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(230, 201, 122, 0.55);
}

.hero-banner-slide .hero-banner-image-link picture,
.hero-banner-slide .hero-banner-image-nolink picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-banner-slide .hero-banner-image-link img,
.hero-banner-slide .hero-banner-image-nolink img,
.hero-banner-slide .hero-banner-image-link picture img,
.hero-banner-slide .hero-banner-image-nolink picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-banner-media:hover .hero-banner-slide.is-active .hero-banner-image-link,
  .hero-banner-media:hover .hero-banner-slide.is-active .hero-banner-image-nolink {
    filter: contrast(1.07) saturate(1.09) brightness(1.035);
  }
}

.hero-banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.hero-banner-dots .hero-banner-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  pointer-events: auto;
  cursor: pointer;
  line-height: 0;
}

.hero-banner-dots .hero-banner-dot.is-active {
  background: var(--accent-gold);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.hero-banner-side {
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  border-top: 1px solid var(--border-1);
}

@media (min-width: 768px) {
  .hero-banner-side {
    min-height: 300px;
    padding: 1.75rem 1.5rem;
    border-top: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.hero-banner-side h1 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-1);
  line-height: 1.25;
}

.hero-banner-side p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1.1rem;
  border-radius: 12px;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--text-1);
  background: rgba(230, 201, 122, 0.08);
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  cursor: default;
  text-decoration: none;
  color: inherit;
}

.btn-ghost {
  height: 40px;
  padding: 0 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2);
  cursor: default;
}

a.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

a.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

a.btn-ghost:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

a.btn-ghost:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg-1),
    0 0 0 4px rgba(255, 255, 255, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  a.btn-gold-outline,
  a.btn-ghost {
    transition-duration: 0.01ms;
  }

  a.btn-gold-outline:hover,
  a.btn-gold-outline:active,
  a.btn-ghost:hover,
  a.btn-ghost:active {
    transform: none;
  }
}

/* Section headings */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-1);
}

.section-head .sub {
  font-size: 0.8rem;
  color: var(--text-3);
}

.link-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-all:hover { text-decoration: underline; }

/*
 * Featured scratchers — visual parity with index “all cards” grid (public/css/style.css).
 * All rules scoped under .hub-mock-prod-cards; not linked to site stylesheets.
 */
.hub-mock-prod-cards {
  --hm-text: #f0f0f0;
  --hm-text-secondary: #b0b0b0;
  --hm-card-bg: #222831;
  --hm-card-hover: #333f50;
  --hm-success: #2ecc71;
  --hm-token-default: #6c757d;
  --featured-gap: 1.25rem;
}

/* Featured scratchers — horizontal carousel (touch + buttons) */
.hub-mock-featured-carousel {
  position: relative;
  /* Only horizontal negative margin — `margin: 0 -4px` would zero bottom margin vs .hub-mock-prod-cards */
  margin-left: -4px;
  margin-right: -4px;
  margin-bottom: 2.5rem;
}

.hub-mock-featured-carousel .featured-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 12px;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px 12px;
  margin: 0 -8px;
  scrollbar-width: auto;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.hub-mock-featured-carousel .featured-scroll::-webkit-scrollbar {
  height: 7px;
}

.hub-mock-featured-carousel .featured-scroll::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 99px;
}

.hub-mock-featured-carousel .featured-scroll::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 99px;
}

.hub-mock-featured-carousel .featured-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.hub-mock-featured-carousel .featured-scroll .cards-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--featured-gap);
  width: max-content;
  min-height: 0;
}

.hub-mock-featured-carousel .featured-scroll .card {
  flex: 0 0 clamp(252px, 78vw, 316px);
  max-width: 316px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

@media (min-width: 900px) {
  .hub-mock-featured-carousel .featured-scroll .card {
    flex: 0 0 clamp(280px, 30vw, 320px);
  }
}

.featured-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(230, 201, 122, 0.35);
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s, background 0.2s;
}

.featured-nav:hover:not(:disabled) {
  border-color: rgba(230, 201, 122, 0.55);
  background: rgba(26, 32, 44, 0.96);
  transform: translateY(-50%) scale(1.04);
}

.featured-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.98);
}

.featured-nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

.featured-nav-prev,
.games-carousel-prev {
  left: 2px;
}

.featured-nav-next,
.games-carousel-next {
  right: 2px;
}

.featured-nav i {
  font-size: 0.85rem;
  pointer-events: none;
}

@media (max-width: 640px) {
  .featured-nav {
    width: 38px;
    height: 38px;
  }

  .featured-nav-prev,
  .games-carousel-prev {
    left: 0;
  }

  .featured-nav-next,
  .games-carousel-next {
    right: 0;
  }

  .hub-mock-featured-carousel .featured-scroll {
    scroll-padding-inline: 8px;
    padding: 4px 8px 14px;
  }

  .hub-mock-all-games-carousel .games-scroll {
    scroll-padding-inline: 8px;
    padding: 4px 8px 14px;
  }
}

.hub-mock-prod-cards .card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.hub-mock-prod-cards .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.hub-mock-prod-cards .cards-grid .card:hover .card-image img {
  transform: scale(1.05);
}

.hub-mock-prod-cards .cards-grid .card {
  background-color: var(--hm-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border-left: none !important;
}

.hub-mock-prod-cards .cards-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  background: var(--hm-card-hover);
}

.hub-mock-prod-cards .cards-grid .card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 220px;
  position: relative;
}

.hub-mock-prod-cards .cards-grid .card-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--hm-text);
  text-align: center;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.hub-mock-prod-cards .nft-badge {
  color: #ffd700;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: hub-mock-nft-glow 2s ease-in-out infinite;
  white-space: nowrap;
  margin-left: 0.35rem;
}

@keyframes hub-mock-nft-glow {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  50% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4); }
}

.hub-mock-prod-cards .cards-grid .card-jackpot {
  text-align: center;
  margin: 0.25rem 0 0.4rem 0;
  animation: hub-mock-jackpot-pulse 10s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

@keyframes hub-mock-jackpot-pulse {
  0%, 95%, 100% { transform: scale(1); opacity: 1; }
  97.5% { transform: scale(1.015); opacity: 0.98; }
}

.hub-mock-prod-cards .cards-grid .jackpot-label {
  font-size: 0.7rem;
  color: var(--hm-text-secondary);
  opacity: 0.65;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

.hub-mock-prod-cards .cards-grid .jackpot-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.25),
    0 0 20px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(255, 255, 255, 0.08);
}

.hub-mock-prod-cards .cards-grid .card-price {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  margin-bottom: 0;
}

.hub-mock-prod-cards .cards-grid .entry-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0;
  margin-bottom: 0.65rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.hub-mock-prod-cards .cards-grid .entry-label {
  font-size: 0.85rem;
  color: var(--hm-text-secondary);
  opacity: 0.7;
  font-weight: 500;
  margin: 0;
}

.hub-mock-prod-cards .cards-grid .card-price .entry-row .xrp-price,
.hub-mock-prod-cards .cards-grid .card-price .entry-row .csc-price {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
  color: var(--hm-text) !important;
}

.hub-mock-prod-cards .cards-grid .free {
  font-weight: 600;
  color: var(--hm-success);
  margin: 0 0 0.65rem 0;
  text-align: center;
}

.hub-mock-prod-cards .cards-grid .play-btn {
  height: 46px;
  width: 100%;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1b2431 0%, #131b26 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    filter 0.18s ease;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.hub-mock-prod-cards .cards-grid .card:hover .play-btn {
  transform: translateY(-2px);
  border-color: rgba(230, 201, 122, 0.25);
  filter: brightness(1.06);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hub-mock-prod-cards .cards-grid .card:active .play-btn {
  transform: translateY(0);
  filter: brightness(0.98);
}

.hub-mock-prod-cards .free-tag:not([class*="fa-"]) {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--hm-success);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hub-mock-prod-cards [class*="-tag"]:not(.grid-type-tag):not(.free-tag) {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--hm-token-default);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hub-mock-prod-cards .xrpl-tag {
  background-color: #4c6ef5 !important;
}

.hub-mock-prod-cards .solana-tag {
  background-color: #9945FF !important;
}

.hub-mock-prod-cards .grid-type-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hub-mock-prod-cards .grid-type-tag.grid-type-xrpl {
  background-color: rgba(76, 110, 245, 0.85);
}

.hub-mock-prod-cards .grid-type-tag.grid-type-solana {
  background-color: rgba(153, 69, 255, 0.85);
}

/* 3b) All games — horizontal carousel (same interaction as featured scratchers) */
.all-games-section {
  margin-bottom: 2rem;
}

.hub-mock-all-games-carousel {
  position: relative;
  margin: 0 -4px;
  --games-carousel-gap: 1rem;
}

.hub-mock-all-games-carousel .games-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 12px;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px 12px;
  margin: 0 -8px;
  scrollbar-width: auto;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.hub-mock-all-games-carousel .games-scroll::-webkit-scrollbar {
  height: 7px;
}

.hub-mock-all-games-carousel .games-scroll::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 99px;
}

.hub-mock-all-games-carousel .games-scroll::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 99px;
}

.hub-mock-all-games-carousel .games-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.hub-mock-all-games-carousel .games-all-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--games-carousel-gap);
  width: max-content;
}

.hub-mock-all-games-carousel .games-all-grid .game-spotlight {
  flex: 0 0 clamp(268px, 82vw, 340px);
  max-width: 360px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

@media (min-width: 900px) {
  .hub-mock-all-games-carousel .games-all-grid .game-spotlight {
    flex: 0 0 clamp(280px, 31vw, 380px);
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .hub-mock-all-games-carousel .games-all-grid .game-spotlight {
    flex: 0 0 clamp(260px, 72vw, 320px);
  }
  .game-spotlight-body h3 {
    font-size: 0.95rem;
  }
  .game-spotlight-body p {
    font-size: 0.78rem;
  }
}

.game-spotlight {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s, border-color 0.2s;
}

.game-spotlight:hover {
  transform: translateY(-3px);
}

.game-spotlight.scratch {
  background: linear-gradient(165deg, #2a2418 0%, #111827 48%, #0f1419 100%);
}

.game-spotlight.scratch:hover {
  border-color: rgba(230, 201, 122, 0.35);
}

.game-spotlight.dice {
  background: linear-gradient(165deg, #1a1f35 0%, #111827 48%, #0f1419 100%);
}

.game-spotlight.dice:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.game-spotlight.plinko {
  background: linear-gradient(165deg, #142a2e 0%, #111827 48%, #0f1419 100%);
}

.game-spotlight.plinko:hover {
  border-color: rgba(45, 212, 191, 0.28);
}

.game-spotlight.lottery {
  background: linear-gradient(165deg, #2e1064 0%, #111827 48%, #0f1419 100%);
}

.game-spotlight.lottery:hover {
  border-color: rgba(167, 139, 250, 0.35);
}

.game-spotlight.race {
  background: linear-gradient(165deg, #431407 0%, #111827 48%, #0f1419 100%);
}

.game-spotlight.race:hover {
  border-color: rgba(251, 146, 60, 0.35);
}

.game-spotlight-visual {
  position: relative;
  min-height: 152px;
  overflow: hidden;
  padding: 0;
}

.game-spotlight-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.game-spotlight:hover .game-spotlight-art {
  transform: scale(1.05);
}

/* Tint over photo — keeps badge readable and matches game color story */
.game-spotlight-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.game-spotlight.scratch .game-spotlight-visual::after {
  background: linear-gradient(180deg, rgba(42, 36, 24, 0.35) 0%, rgba(17, 24, 39, 0.72) 100%);
}

.game-spotlight.dice .game-spotlight-visual::after {
  background: linear-gradient(180deg, rgba(26, 31, 53, 0.4) 0%, rgba(17, 24, 39, 0.78) 100%);
}

.game-spotlight.plinko .game-spotlight-visual::after {
  background: linear-gradient(180deg, rgba(20, 42, 46, 0.4) 0%, rgba(17, 24, 39, 0.78) 100%);
}

.game-spotlight.lottery .game-spotlight-visual::after {
  background: linear-gradient(180deg, rgba(46, 16, 100, 0.42) 0%, rgba(17, 24, 39, 0.78) 100%);
}

.game-spotlight.race .game-spotlight-visual::after {
  background: linear-gradient(180deg, rgba(67, 20, 7, 0.45) 0%, rgba(17, 24, 39, 0.78) 100%);
}

.game-spotlight-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2);
}

.game-spotlight-body {
  padding: 0 1.15rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-spotlight-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-spotlight-body p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  flex: 1;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-3);
}

.game-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.game-meta i {
  color: var(--accent-gold);
  opacity: 0.85;
  font-size: 0.7rem;
}

/*
 * All games CTAs — same language as featured scratchers “Play Now”
 * (main-page grid button), scaled down for narrower spotlight tiles.
 */
.game-spotlight .play-btn {
  margin-top: auto;
  height: 36px;
  width: 100%;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.2px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1b2431 0%, #131b26 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    filter 0.18s ease;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
}

.game-spotlight .play-btn:link,
.game-spotlight .play-btn:visited {
  color: rgba(255, 255, 255, 0.95) !important;
}

.game-spotlight:hover .play-btn {
  transform: translateY(-2px);
  border-color: rgba(230, 201, 122, 0.25);
  filter: brightness(1.06);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.game-spotlight .play-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

/* 4) Activity feed — one size for list (desktop) and cards (mobile); was 0.85rem on list only */
.feed-section {
  margin-bottom: 2rem;
  font-size: 1rem;
}

.feed-list {
  border: 1px solid var(--border-1);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.6);
}

.feed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-1);
  font-size: inherit;
}

.feed-row:last-child { border-bottom: none; }

.feed-row.feed-row--empty {
  grid-template-columns: 1fr;
}

.feed-lead {
  min-width: 0;
}

.feed-lead--empty .line1 {
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.15rem;
}

.feed-lead--empty .line2 {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* Inline-flex so the link only spans icon + title (no full-row underline / stretched gaps). */
.feed-game-hit,
.feed-game-hit:link,
.feed-game-hit:visited,
.feed-game-hit:hover,
.feed-game-hit:active {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  margin: -0.2rem;
  padding: 0.2rem;
  text-align: left;
  word-spacing: normal;
}

.feed-game-hit:hover .feed-icon {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.feed-game-hit:focus-visible {
  outline: 2px solid rgba(230, 201, 122, 0.65);
  outline-offset: 2px;
}

.feed-game-hit .line1-line {
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.25;
  min-width: 0;
}

.feed-game-hit:hover .line1-line {
  color: var(--text-2);
}

.feed-lead:not(.feed-lead--empty) > .line2 {
  margin-left: calc(38px + 0.75rem);
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-3);
}

.feed-lead--empty .line2 {
  margin-left: 0;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-3);
}

.feed-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

.feed-icon.scratch { background: rgba(230, 201, 122, 0.12); color: var(--accent-gold); }
.feed-icon.dice { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.feed-icon.plinko { background: rgba(45, 212, 191, 0.12); color: var(--success); }
.feed-icon.hexwheel { background: rgba(251, 146, 60, 0.14); color: #fdba74; }
.feed-icon.limbo { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.feed-icon.coinflip { background: rgba(234, 179, 8, 0.14); color: #fde047; }
.feed-icon.hilo { background: rgba(244, 63, 94, 0.14); color: #fb7185; }
.feed-icon.mines { background: rgba(168, 85, 247, 0.14); color: #c4b5fd; }

.feed-amt {
  text-align: right;
  font-weight: 700;
  color: var(--success);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

.feed-cards {
  display: none;
}

@media (max-width: 640px) {
  .feed-list { display: none; }
  .feed-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .feed-card {
    border: 1px solid var(--border-1);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: rgba(17, 24, 39, 0.75);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: start;
    font-size: inherit;
  }

  .feed-card .feed-amt {
    font-size: inherit;
  }

  .feed-card.feed-card--empty {
    grid-template-columns: 1fr;
  }
}

/* 5) Provably fair */
.pf-block {
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 0% 0%, rgba(230, 201, 122, 0.06), transparent 50%),
    linear-gradient(180deg, #141E2B 0%, #0F1623 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.pf-block h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.pf-block > p.lead {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.pf-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .pf-columns { grid-template-columns: repeat(3, 1fr); }
}

.pf-item {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-1);
}

.pf-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(230, 201, 122, 0.1);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.pf-item h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pf-item p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
}

.mock-footer-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-1);
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
}

} /* @scope (.home-hub-content) */

/*
 * Reinstate viewport scrollbar sizing after hub rules.
 * Loads last on `/` - avoids body-level overflow quirks and keeps root bar matching Dice/cards/etc.
 */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  scrollbar-width: auto;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 5px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
