/* ==========================================================================
   SMASH SENPAI — EDGE-TO-EDGE THEMED RANKINGS HUB (rankings-hub.css v4.3)
   Full-Width Navbar Alignment | 3-Card Hero Showcase | 10-Col Dock | Bento Grid
   ========================================================================== */

:root {
  --color-primary: 255, 77, 216;
  --color-secondary: 91, 192, 255;
  --color-tertiary: 167, 112, 255;
  --color-special: 255, 200, 88;
  --btn-text: #ffffff;
  --img-anchor: center top;
  --dynamic-bg: none;
  --bg-blend: normal;
  --bg-opacity: 1;
}

a.nav-left {
  text-decoration: none;
}

/* Override core.css 1200px lock so content aligns edge-to-edge with .navbar (40px padding) */
.rankings-page-wrapper {
  padding: 18px 40px 60px 40px !important;
  min-height: 85vh;
}

.rankings-inner {
  max-width: 1840px !important;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   1. COMPACT TOP BAR (BREADCRUMBS + H1 SEO HEADER + LIVE SNAPSHOT PILL)
   ========================================================================== */
.hub-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hub-topbar-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
}
.crumbs a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.crumbs a:hover {
  color: rgb(var(--color-primary));
}

.hub-main-h1 {
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.hub-main-h1 span {
  background: linear-gradient(90deg, #ff4dd8, #5bc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hub-topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
}

.hub-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}

/* ==========================================================================
   2. HERO SPOTLIGHT CAROUSEL (FULL-WIDTH 3-CHAMPION SHOWCASE + 10-GAME DOCK)
   ========================================================================== */
.hub-carousel {
  position: relative;
  border-radius: 22px;
  background: #111117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  margin-bottom: 30px;
}

.hub-slides-viewport {
  position: relative;
  width: 100%;
}

.hub-slide {
  position: relative;
  width: 100%;
  min-height: 320px;
  padding: 28px 34px 26px;
  display: none;
  grid-template-columns: minmax(320px, 1.05fr) minmax(420px, 1.35fr);
  align-items: center;
  gap: 32px;
  overflow: hidden;
  border-bottom: 2px solid rgba(var(--color-primary), 0.55);
}

.hub-slide.is-active {
  display: grid;
  animation: slideFadeIn 0.32s ease;
}

@keyframes slideFadeIn {
  from {
    opacity: 0.35;
    transform: scale(0.996);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Clearer, brighter wall2.webp background */
.hub-slide-bg {
  position: absolute;
  inset: 0;
  background-image: var(--game-wall);
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: saturate(1.3) contrast(1.06);
  transform: scale(1.02);
  z-index: 0;
  pointer-events: none;
}

.hub-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(var(--color-primary), 0.32), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(var(--color-secondary), 0.25), transparent 55%),
    linear-gradient(90deg, rgba(10, 10, 15, 0.94) 0%, rgba(10, 10, 15, 0.62) 50%, rgba(10, 10, 15, 0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

.hub-slide-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hub-slide-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hub-slide-cover {
  width: 60px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgb(var(--color-primary));
  box-shadow: 0 0 22px rgba(var(--color-primary), 0.45);
  flex-shrink: 0;
}

.hub-slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(var(--color-primary), 0.18);
  border: 1px solid rgba(var(--color-primary), 0.6);
  color: color-mix(in srgb, rgb(var(--color-primary)) 88%, white);
  margin-bottom: 6px;
}

.hub-slide-title {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  margin: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.hub-slide-desc {
  color: #dcdce2;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
}

.hub-slide-desc strong {
  color: color-mix(in srgb, rgb(var(--color-primary)) 88%, white);
}

/* Quick Stats Strip Inside Hero Left Column */
.hub-slide-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.hub-stat-chip {
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hub-stat-chip strong {
  color: #fff;
  font-weight: 900;
}

.hub-slide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.hub-slide-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgb(var(--color-primary));
  color: var(--btn-text, #ffffff);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(var(--color-primary), 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hub-slide-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(var(--color-primary), 0.65);
}

.hub-slide-cta-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hub-slide-cta-play:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

/* Right Side of Hero Slide: 3 Spotlight Champion Cards (Eliminates Middle Dead Space) */
.hub-slide-champions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 215px));
  justify-content: flex-end;
  gap: 14px;
}

.hub-champ-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 3.85;
  background: #181820;
  border: 1.5px solid rgba(var(--color-primary), 0.6);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75), 0 0 20px rgba(var(--color-primary), 0.2);
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hub-champ-card.champ-secondary {
  border-color: rgba(var(--color-secondary), 0.65);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75), 0 0 20px rgba(var(--color-secondary), 0.2);
}

.hub-champ-card.champ-tertiary {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}

.hub-champ-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.hub-champ-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-anchor, center top);
  transition: transform 0.4s ease;
}
.hub-champ-card:hover .hub-champ-img {
  transform: scale(1.06);
}

/* Clean, Non-Truncating Top Badges on Spotlight Cards */
.hub-champ-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.hub-champ-rank {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.64rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #0b0b0e;
  flex-shrink: 0;
}

.hub-champ-card.champ-tertiary .hub-champ-rank {
  background: rgba(20, 20, 26, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hub-champ-board {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(10, 10, 14, 0.86);
  border: 1px solid rgba(var(--color-primary), 0.55);
  color: color-mix(in srgb, rgb(var(--color-primary)) 88%, white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-champ-card.champ-secondary .hub-champ-board {
  border-color: rgba(var(--color-secondary), 0.65);
  color: color-mix(in srgb, rgb(var(--color-secondary)) 85%, white);
}

.hub-champ-boardline {
  display: none;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: color-mix(in srgb, rgb(var(--color-primary)) 88%, white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.hub-champ-card.champ-secondary .hub-champ-boardline {
  color: color-mix(in srgb, rgb(var(--color-secondary)) 85%, white);
}

.hub-champ-overlay {
  position: relative;
  z-index: 2;
  padding: 38px 11px 11px;
  background: linear-gradient(to top, rgba(8, 8, 12, 0.98) 0%, rgba(8, 8, 12, 0.8) 58%, transparent 100%);
}

.hub-champ-name {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-champ-score {
  font-size: 0.76rem;
  font-weight: 800;
  color: color-mix(in srgb, rgb(var(--color-primary)) 85%, white);
  margin-top: 2px;
}
.hub-champ-card.champ-secondary .hub-champ-score {
  color: color-mix(in srgb, rgb(var(--color-secondary)) 85%, white);
}

/* 10-Game Selector Dock: Fits ALL 10 Games Cleanly Without Clipping on Desktop */
.hub-carousel-dock {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 14px;
  background: rgba(8, 8, 12, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hub-dock-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  min-width: 0;
  transition: all 0.2s ease;
}

.hub-dock-btn img {
  width: 20px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.hub-dock-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-dock-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hub-dock-btn.is-active {
  background: rgba(var(--color-primary), 0.18);
  border-color: rgb(var(--color-primary));
  color: #fff;
  box-shadow: 0 0 14px rgba(var(--color-primary), 0.3);
}

/* ==========================================================================
   3. HALL OF FAME (COMPACT HEIGHT + DIVERSE GAME CHAMPIONS TOGGLE)
   ========================================================================== */
.hub-section {
  margin-top: 30px;
}

.hub-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hub-h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.3px;
  border-left: 4px solid rgb(var(--color-primary));
  padding-left: 12px;
  color: #fff;
  margin: 0;
}

.hub-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 3px 0 0 16px;
}

.hof-switcher {
  display: inline-flex;
  background: rgba(18, 18, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 3px;
}

.hof-switch-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hof-switch-btn.is-active {
  background: rgba(255, 77, 216, 0.18);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 77, 216, 0.25);
}

.hof-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

body.js-ready .hof-grid.is-hof-hidden {
  display: none;
}

/* Portrait cards (same shape as the art). The old fixed height turned them landscape and cropped heads. */
.hof-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #14141a;
  border: 1.5px solid rgba(var(--color-primary), 0.42);
  aspect-ratio: 5 / 6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hof-card-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.hof-card:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--color-primary));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(var(--color-primary), 0.28);
}

.hof-card.rank-1 {
  border-color: rgba(255, 215, 0, 0.75);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 22px rgba(255, 200, 88, 0.22);
}

.hof-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hof-pos, center 16%);
  transition: transform 0.45s ease;
}
.hof-card:hover .hof-img {
  transform: scale(1.06);
}

.hof-overlay {
  position: relative;
  z-index: 2;
  padding: 46px 12px 12px;
  background: linear-gradient(to top, rgba(10, 10, 14, 0.98) 0%, rgba(10, 10, 14, 0.78) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hof-rank-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  min-width: 28px;
  height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.74rem;
  color: #fff;
  background: rgba(15, 15, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hof-card.rank-1 .hof-rank-badge {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #0b0b0e;
  border: none;
}
.hof-card.rank-2 .hof-rank-badge {
  background: linear-gradient(135deg, #f3f4f6, #9ca3af);
  color: #0b0b0e;
  border: none;
}
.hof-card.rank-3 .hof-rank-badge {
  background: linear-gradient(135deg, #e09f5a, #9a5822);
  color: #0b0b0e;
  border: none;
}

.hof-game {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: color-mix(in srgb, rgb(var(--color-primary)) 85%, white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hof-name {
  font-size: 0.96rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hof-score {
  font-size: 0.76rem;
  font-weight: 800;
  color: color-mix(in srgb, rgb(var(--color-primary)) 85%, white);
}
.hof-score small {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.66rem;
}

/* ==========================================================================
   4. COMMAND BAR (GENRE PILLS + GLOBAL BOARD TOGGLE + LIVE SEARCH)
   ========================================================================== */
.hub-command-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(18, 18, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: var(--hub-nav-h, 68px); /* set by the page script from the real header height */
  transition: top 0.28s ease;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hub-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.hub-filter-pills::-webkit-scrollbar {
  display: none;
}

.hub-pill {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.hub-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.hub-pill.is-active {
  background: rgba(255, 77, 216, 0.16);
  border-color: #ff4dd8;
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 77, 216, 0.25);
}

.hub-command-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  justify-content: flex-end;
}

.hub-global-mode {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}

.hub-mode-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.hub-mode-btn.is-active[data-slot="0"] {
  background: rgba(255, 77, 216, 0.2);
  color: #ff4dd8;
}
.hub-mode-btn.is-active[data-slot="1"] {
  background: rgba(91, 192, 255, 0.2);
  color: #5bc0ff;
}

.hub-search-wrap {
  position: relative;
  flex: 1 1 180px;
  max-width: 260px;
}

.hub-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.hub-search-input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease;
}
.hub-search-input:focus {
  border-color: #ff4dd8;
}

/* ==========================================================================
   5. THEMED GAME CARDS (SCALES TO 5 COLUMNS × 2 ROWS ON WIDE MONITORS)
   ========================================================================== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.hub-card {
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(var(--color-primary), 0.26);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), inset 0 0 24px rgba(var(--color-primary), 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hub-card.is-filtered-out {
  display: none !important;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--color-primary), 0.65);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.75), 0 0 24px rgba(var(--color-primary), 0.18);
}

.hub-card-head {
  position: relative;
  padding: 15px 15px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(var(--color-primary), 0.18);
  overflow: hidden;
  background: #13131a;
}

.hub-card-wall {
  position: absolute;
  inset: 0;
  background-image: var(--game-wall);
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  filter: saturate(1.3);
  transform: scale(1.04);
  z-index: 0;
  pointer-events: none;
}

.hub-card-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--color-primary), 0.28), transparent 65%),
    linear-gradient(180deg, rgba(18, 18, 24, 0.22) 0%, rgba(18, 18, 24, 0.92) 100%);
  z-index: 0;
  pointer-events: none;
}

.hub-cover {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 58px;
  border-radius: 9px;
  object-fit: cover;
  border: 1.5px solid rgba(var(--color-primary), 0.75);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 12px rgba(var(--color-primary), 0.25);
  flex-shrink: 0;
}

.hub-head-info {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.hub-head-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: color-mix(in srgb, rgb(var(--color-primary)) 85%, white);
  margin-bottom: 2px;
}

.hub-card-head h3 {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-card-head h3 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hub-card-head h3 a:hover {
  color: rgb(var(--color-primary));
}

.hub-QuickPlay {
  position: relative;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(var(--color-primary), 0.16);
  border: 1px solid rgba(var(--color-primary), 0.5);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.hub-QuickPlay:hover {
  background: rgb(var(--color-primary));
  border-color: rgb(var(--color-primary));
  color: var(--btn-text, #fff);
  box-shadow: 0 0 14px rgba(var(--color-primary), 0.45);
}

/* Segmented Theme Tabs Inside Card */
.hub-card-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 6px;
  padding: 10px 13px 0;
}

.hub-card-tab {
  appearance: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  padding: 7px 6px;
  border-radius: 9px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-card-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.hub-card-tab.is-active.tone-primary {
  background: rgba(var(--color-primary), 0.16);
  border-color: rgba(var(--color-primary), 0.65);
  color: color-mix(in srgb, rgb(var(--color-primary)) 85%, white);
  box-shadow: 0 0 14px rgba(var(--color-primary), 0.16);
}

.hub-card-tab.is-active.tone-secondary {
  background: rgba(var(--color-secondary), 0.18);
  border-color: rgba(var(--color-secondary), 0.65);
  color: color-mix(in srgb, rgb(var(--color-secondary)) 80%, white);
  box-shadow: 0 0 14px rgba(var(--color-secondary), 0.16);
}

.hub-card-body {
  padding: 11px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

body.js-ready .hub-board.is-tab-hidden {
  display: none;
}

.hub-board-label-fallback {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: color-mix(in srgb, rgb(var(--color-primary)) 85%, white);
  margin: 0 0 6px;
}
body.js-ready .hub-board-label-fallback {
  display: none;
}

/* Bento Podium List inside each Card (#1 full width, #2 & #3 side-by-side) */
.hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hub-row-item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.hub-row-item.item-rank-1 {
  grid-column: 1 / -1;
}

.hub-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 9px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hub-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(var(--color-primary), 0.45);
  transform: translateY(-2px);
}

.hub-row.is-top {
  padding: 9px 11px;
  gap: 11px;
  background: linear-gradient(
    95deg,
    rgba(var(--color-primary), 0.15) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-color: rgba(var(--color-primary), 0.45);
}

.hub-board.tone-secondary .hub-row.is-top {
  background: linear-gradient(
    95deg,
    rgba(var(--color-secondary), 0.16) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-color: rgba(var(--color-secondary), 0.48);
}

.hub-row.is-search-match {
  border-color: rgb(var(--color-special)) !important;
  box-shadow: 0 0 16px rgba(var(--color-special), 0.4);
}

.hub-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.hub-avatar {
  width: 36px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  object-position: var(--img-anchor, center top);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: block;
}

.hub-row.is-top .hub-avatar {
  width: 50px;
  height: 64px;
  border-radius: 10px;
  border: 1.5px solid rgb(var(--color-primary));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hub-board.tone-secondary .hub-row.is-top .hub-avatar {
  border-color: rgb(var(--color-secondary));
}

.hub-pos {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.66rem;
  color: #0b0b0e;
  background: #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hub-pos.pos-1 {
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
}
.hub-pos.pos-2 {
  background: linear-gradient(135deg, #f3f4f6, #9ca3af);
}
.hub-pos.pos-3 {
  background: linear-gradient(135deg, #e09f5a, #92400e);
  color: #fff;
}

.hub-char-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hub-champ-tag {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: color-mix(in srgb, rgb(var(--color-primary)) 85%, white);
}

.hub-board.tone-secondary .hub-champ-tag {
  color: color-mix(in srgb, rgb(var(--color-secondary)) 80%, white);
}

.hub-char-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.hub-name {
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-row-item:not(.item-rank-1) .hub-name {
  font-size: 0.78rem; /* long single-word names (Meowscarada) were breaking mid-word in the 4-column grid */
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.hub-row.is-top .hub-name {
  font-size: 1rem;
  font-weight: 900;
}

.hub-score {
  font-weight: 800;
  font-size: 0.73rem;
  color: var(--text-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hub-row.is-top .hub-score {
  font-size: 0.86rem;
  font-weight: 900;
  color: #fff;
}

.hub-score small {
  font-weight: 700;
  font-size: 0.63rem;
  margin-left: 2px;
}

.hub-bar-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 3px;
}

.hub-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(var(--color-primary)), rgb(var(--color-tertiary)));
}

.hub-board.tone-secondary .hub-bar-fill {
  background: linear-gradient(90deg, rgb(var(--color-secondary)), rgb(var(--color-primary)));
}

.hub-card-links {
  padding: 0 13px 13px;
  margin-top: auto;
}

.hub-btn-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(var(--color-primary), 0.12);
  border: 1px solid rgba(var(--color-primary), 0.42);
  color: color-mix(in srgb, rgb(var(--color-primary)) 90%, white);
  font-size: 0.79rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.22s ease;
}
.hub-btn-primary:hover {
  background: rgb(var(--color-primary));
  border-color: rgb(var(--color-primary));
  color: var(--btn-text, #ffffff);
  box-shadow: 0 0 18px rgba(var(--color-primary), 0.4);
}

.hub-empty-search {
  display: none;
  text-align: center;
  padding: 36px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  font-weight: 700;
}

/* ==========================================================================
   5b. HEADER HIDE-ON-SCROLL + FAQ + REDUCED MOTION
   ========================================================================== */
/* The header itself is hidden by core.css via .navbar-hidden (same as the game pages).
   Nothing here touches .navbar; only the sticky filter bar reacts to it. */
/* With the header gone the filter bar sticks near the top of the screen. */
body.hub-nav-hidden .hub-command-bar {
  top: 10px;
}

.hub-faq {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.hub-faq details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}
.hub-faq details[open] {
  border-color: rgba(255, 77, 216, 0.35);
}
.hub-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.hub-faq summary::-webkit-details-marker {
  display: none;
}
.hub-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  color: #ff4dd8;
}
.hub-faq details[open] summary::after {
  content: "\2212";
}
.hub-faq summary:focus-visible {
  outline: 2px solid #ff4dd8;
  outline-offset: 2px;
  border-radius: 12px;
}
.hub-faq details p {
  margin: 0;
  padding: 0 16px 15px;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .hub-command-bar {
    transition: none;
  }
  .hub-slide.is-active,
  .hub-live-dot {
    animation: none;
  }
}

/* ==========================================================================
   6. RESPONSIVE REFLOWS
   ========================================================================== */
@media (max-width: 1500px) {
  .hub-carousel-dock {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .rankings-page-wrapper {
    padding: 15px 24px 50px 24px !important;
  }
  .hub-slide {
    grid-template-columns: 1fr;
    padding: 22px 20px 20px;
    gap: 18px;
  }
  .hub-slide-champions {
    justify-content: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .rankings-page-wrapper {
    padding: 12px 12px 40px 12px !important;
  }
  .hub-carousel-dock {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .hub-carousel-dock::-webkit-scrollbar {
    display: none;
  }
  .hub-dock-btn {
    flex: 0 0 auto;
    padding: 7px 12px;
  }

  /* command bar: pills / search / board toggle each get a full row */
  .hub-command-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .hub-command-right {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  /* every card already has its own board tabs, so the global switch is dropped on phones */
  .hub-global-mode {
    display: none;
  }
  .hub-search-wrap {
    flex: none;
    width: 100%;
    max-width: none;
  }
  .hub-search-input {
    padding: 10px 12px 10px 34px;
    font-size: 16px; /* below 16px iOS zooms the page when the field is focused */
  }
  .hub-search-icon {
    left: 12px;
  }
}

@media (max-width: 640px) {
  /* compact hero */
  .hub-slide {
    padding: 16px 14px;
    gap: 14px;
    min-height: 0;
  }
  .hub-slide-info {
    gap: 11px;
  }
  .hub-slide-brand {
    gap: 12px;
  }
  .hub-slide-cover {
    width: 46px;
    height: 60px;
    border-radius: 9px;
  }
  .hub-slide-eyebrow {
    font-size: 0.6rem;
    padding: 3px 9px;
  }
  .hub-slide-title {
    font-size: clamp(1.25rem, 6.2vw, 1.6rem);
  }
  .hub-slide-desc {
    font-size: 0.86rem;
    line-height: 1.5;
  }
  .hub-stat-chip {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
  .cta-game {
    display: none;
  }
  .hub-slide-actions {
    flex-wrap: nowrap;
    width: 100%;
    gap: 8px;
  }
  .hub-slide-cta-main {
    flex: 1 1 auto;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.84rem;
  }
  .hub-slide-cta-play {
    flex: 0 0 auto;
    padding: 11px 14px;
    font-size: 0.82rem;
  }

  /* all 3 champions as a swipeable strip (the 3rd card used to be hidden) */
  .hub-slide-champions {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 14px;
    overscroll-behavior-x: contain;
    margin: 0 -14px;
    padding: 2px 14px 6px;
    scrollbar-width: none;
  }
  .hub-slide-champions::-webkit-scrollbar {
    display: none;
  }
  .hub-champ-card {
    flex: 0 0 clamp(138px, 40vw, 176px);
    scroll-snap-align: start;
  }
  .hub-champ-board {
    display: none;
  }
  .hub-champ-boardline {
    display: block;
  }

  /* hall of fame strip */
  .hof-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    gap: 10px;
    padding: 2px 0 6px;
    scrollbar-width: none;
  }
  .hof-grid::-webkit-scrollbar {
    display: none;
  }
  .hof-card {
    flex: 0 0 clamp(148px, 42vw, 190px);
    aspect-ratio: 5 / 6.4;
    scroll-snap-align: start;
  }
  .hof-name {
    font-size: 0.9rem;
  }
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Touch screens have no real hover: without this a tapped card stays zoomed/lifted. */
@media (hover: none) {
  .hub-champ-card:hover,
  .hof-card:hover,
  .hub-card:hover,
  .hub-row:hover,
  .hub-slide-cta-main:hover {
    transform: none;
  }
  .hub-champ-card:hover .hub-champ-img,
  .hof-card:hover .hof-img {
    transform: none;
  }
}
.hub-intro{margin:6px 0 0;max-width:62ch;color:var(--text-dim);font-size:.9rem;line-height:1.55}