:root {
  --hz-bg: #0f1923;
  --hz-surface: #1a2634;
  --hz-surface-lit: #243447;
  --hz-border: rgba(255,255,255,0.06);
  --hz-text: #e8e8e8;
  --hz-text-sec: #a0aab4;
  --hz-text-dim: rgba(255,255,255,0.3);
  --hz-accent: #e9c46a;
  --hz-teal: #2a9d8f;
  --hz-green: #4ade80;
  --hz-red: #f87171;
  /* Balatro vars needed by reward-components.css */
  --bl-teal: #2a9d8f;
  --bl-accent: #e9c46a;
  --bl-text: #f0f0f0;
  --bl-text-sec: #9ca3af;
}
.hz-page {
  max-width: 1200px; margin: 0 auto; padding: 0 0.5rem 2rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ===== HERO — minimal, no card, career data as subtle background ===== */
.hz-hero {
  position: relative; overflow: hidden;
  padding: 1.6rem 1rem 1.2rem;
  margin: 0.3rem 0 0.9rem;
  text-align: center;
  isolation: isolate;
}
/* (hz-hero-era-bg removed — watermark now comes from rank-bar component) */
/* Foreground text block */
.hz-hero-content { position: relative; z-index: 2; }
.hz-hero-welcome { font-size: 0.62rem; color: var(--hz-text-dim); text-transform: uppercase; letter-spacing: 2.5px; font-weight: 600; }
.hz-hero-title { font-size: 1.5rem; font-weight: 900; color: var(--hz-accent); text-transform: uppercase; letter-spacing: 5px; margin: 0.25rem 0 0.35rem; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.hz-hero-sub { font-size: 0.58rem; color: var(--hz-text-sec); letter-spacing: 0.5px; }

/* Career rank bar — uses reusable rank-bar component (rank-bar.css) */
.hz-career {
  position: relative; z-index: 2;
  margin-top: 1.2rem;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
/* Watermark: bottom-aligned to rank-bar card, rises upward behind hero */
.hz-career .rank-bar { overflow: visible; }
.hz-career .rank-bar-watermark {
  font-size: 1.6rem;
  opacity: 0.06;
}
@media (max-width: 768px) {
  .hz-career .rank-bar-watermark { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hz-showcase-track { animation: none; }
}

/* ===== GAME MODE CARDS — no gap, shared borders ===== */
.hz-modes {
  display: flex; gap: 0; margin: 0.6rem 0 1.2rem;
  border: 1px solid var(--hz-border); border-radius: 10px;
  overflow: hidden;
}
.hz-mode {
  flex: 1; position: relative; overflow: hidden;
  height: 190px; cursor: var(--cur-pointer, pointer); text-decoration: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: none;
  border-right: 1px solid var(--hz-border);
  border-radius: 0;
  background: var(--hz-surface);
  transition: all 0.3s ease;
  color: var(--hz-text);
}
.hz-mode:last-child { border-right: none; }
.hz-mode-icon {
  font-size: 2.4rem; margin-bottom: 0.4rem;
  transition: transform 0.4s ease;
}
.hz-mode-name {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; transition: transform 0.4s ease;
}
.hz-mode-desc {
  font-size: 0.52rem; color: var(--hz-text-sec); text-align: center;
  line-height: 1.4; max-width: 85%;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-top: 0.15rem;
}
.hz-mode:hover { background: rgba(233,196,106,0.05); border-color: rgba(233,196,106,0.12); }
.hz-mode:hover .hz-mode-icon { transform: translateY(-6px) scale(1.05); }
.hz-mode:hover .hz-mode-name { transform: translateY(-4px); }
.hz-mode:hover .hz-mode-desc { opacity: 1; transform: translateY(0); }
.hz-mode-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.32rem; font-weight: 700; color: var(--hz-accent);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 8px; border: 1px solid rgba(233,196,106,0.2);
  border-radius: 10px; background: rgba(0,0,0,0.4);
}

/* ===== COLLECTION SHOWCASE ===== */
.hz-showcase {
  background: var(--hz-surface); border: 1px solid var(--hz-border);
  border-radius: 10px; padding: 1rem 1rem;
  margin: 0 0 1.2rem; overflow: hidden;
  min-height: 96px;
}
.hz-showcase-track {
  display: flex; gap: 4.5rem; align-items: center;
  animation: showcaseScroll 50s linear infinite;
  width: max-content;
  min-height: 64px;
}

/* Robustness: keep items from collapsing to zero width if their <img> 404s
   and `onerror` hides it. Track keeps its rhythm instead of going empty.
   No background / no border — the silhouette PNG is the only visual.     */
.hz-showcase-item {
  min-width: 58px; min-height: 58px;
}
.hz-showcase-track:hover { animation-play-state: paused; }
@keyframes showcaseScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--sc-half, -50%)); }
}
.hz-showcase-item {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: var(--cur-pointer, pointer);
  transition: transform 0.3s ease, filter 0.3s ease;
  transform-style: preserve-3d;
}
/* Default: rotated right — anti-theft on all showcase images */
.hz-showcase-item img {
  height: 58px; width: auto; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transform: rotate(4deg);
  transition: transform 0.3s ease, filter 0.3s ease;
  user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Hover: straighten, lift, add glow shadow */
.hz-showcase-item:hover img {
  transform: rotate(0deg) scale(1.08);
  filter: drop-shadow(0 6px 18px rgba(233,196,106,0.15)) drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
/* Boards — smaller, no container/border-radius */
.hz-showcase-item.sc-board img {
  height: 34px;
  transform: rotate(5deg);
}
.hz-showcase-item.sc-board:hover img { transform: rotate(0deg) scale(1.1); }
/* Stadiums — natural size, no container */
.hz-showcase-item.sc-stadium img {
  height: 58px;
  transform: rotate(3deg);
}
.hz-showcase-item.sc-stadium:hover img { transform: rotate(0deg) scale(1.08); }
/* Titles */
.hz-showcase-item.sc-title img {
  height: 46px; transform: rotate(3deg);
}
.hz-showcase-item.sc-title:hover img { transform: rotate(0deg) scale(1.08); }
/* Locked — dark, no hover interaction */
.hz-showcase-item.locked {
  opacity: 0.35; cursor: var(--cur-default, default); pointer-events: none;
}
.hz-showcase-item.locked img {
  filter: brightness(0.06) saturate(0) drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

/* ===== HUB CARDS — squared, gap, icon+name slide up ===== */
.hz-hub { display: flex; gap: 1.4rem; margin: 0 0 1.2rem; align-items: stretch; }
.hz-hub-card {
  flex: 1; position: relative; overflow: hidden;
  min-height: 320px; cursor: var(--cur-pointer, pointer); text-decoration: none;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 1rem 0.8rem 0.8rem;
  border: 1px solid var(--hz-border);
  border-radius: 10px;
  background: var(--hz-surface);
  transition: all 0.3s ease; color: var(--hz-text);
}
/* Side cards (shop & locker room) */
.hz-hub-card.hz-hub-side {
  padding: 0.8rem 0.6rem;
}
.hz-hub-icon {
  font-size: 2.2rem; margin-bottom: 0.3rem;
  transition: transform 0.4s ease;
}
.hz-hub-name {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; transition: transform 0.4s ease;
  margin-bottom: 0.3rem;
}
.hz-hub-sub {
  font-size: 0.5rem; color: var(--hz-text-sec); text-align: center;
  line-height: 1.4; max-width: 85%;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-top: 0.15rem;
}
.hz-hub-card:hover { background: rgba(233,196,106,0.05); border-color: rgba(233,196,106,0.12); }
.hz-hub-card:hover .hz-hub-icon { transform: translateY(-6px) scale(1.05); }
.hz-hub-card:hover .hz-hub-name { transform: translateY(-4px); }
.hz-hub-card:hover .hz-hub-sub { opacity: 1; transform: translateY(0); }
/* Unhovered content — preview area */
.hz-hub-preview {
  width: 100%; flex: 1; overflow: visible;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.3s;
}
.hz-hub-card:hover .hz-hub-preview { opacity: 0; }
.hz-hub-preview-row {
  display: flex; gap: 0.3rem; justify-content: center;
  flex-wrap: wrap;
}
.hz-hub-preview-pill {
  padding: 0.18rem 0.5rem; border-radius: 4px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--hz-border);
  white-space: nowrap; font-size: 0.42rem; color: var(--hz-text-dim);
}
/* Shared preview box for all three hub previews — enforces consistent sizing */
.hz-preview-box { width: 130px; height: 170px; position: relative; }
/* Pack carousel for Club Shop hub preview — vacuum pull motion blur */
.hz-pack-carousel {
  position: relative; width: 130px; height: 170px;
  perspective: 900px;
}
/* Default (resting off-screen right, ready to fly in) */
.hz-pack-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateX(220%) scaleX(0.28) scaleY(0.88);
  filter: blur(20px);
  transition: transform 0.55s cubic-bezier(.12,.82,.24,1),
              opacity 0.4s ease,
              filter 0.45s ease;
  will-change: transform, opacity, filter;
}
/* Active — fully in place */
.hz-pack-slide.active {
  opacity: 1;
  transform: translateX(0) scaleX(1) scaleY(1);
  filter: blur(0);
}
/* Exiting — sucked away to the left like a vacuum */
.hz-pack-slide.exiting {
  opacity: 0;
  transform: translateX(-220%) scaleX(0.22) scaleY(0.84);
  filter: blur(22px);
  transition: transform 0.48s cubic-bezier(.55,.01,.85,.25),
              opacity 0.4s ease 0.06s,
              filter 0.42s ease;
}
/* Mini pack card for Club Shop hub preview — mirrors .shop-focus-card-area .deck-card (200x260) */
.hz-mini-pack {
  width: 100%; height: 100%;
  position: relative;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.hz-mini-pack-art {
  flex: none; height: 65.4%;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hz-mini-pack.tier-common .hz-mini-pack-art    { background: linear-gradient(145deg, rgba(58,58,58,0.85) 0%, rgba(42,42,42,0.85) 100%); }
.hz-mini-pack.tier-uncommon .hz-mini-pack-art  { background: linear-gradient(145deg, rgba(27,61,27,0.85) 0%, rgba(20,46,20,0.85) 100%); }
.hz-mini-pack.tier-rare .hz-mini-pack-art      { background: linear-gradient(145deg, rgba(61,50,16,0.85) 0%, rgba(46,37,8,0.85) 100%); }
.hz-mini-pack.tier-epic .hz-mini-pack-art      { background: linear-gradient(145deg, rgba(45,21,56,0.85) 0%, rgba(30,13,40,0.85) 100%); }
.hz-mini-pack.tier-legendary .hz-mini-pack-art { background: linear-gradient(145deg, rgba(61,37,16,0.85) 0%, rgba(46,26,8,0.85) 100%); }
.hz-mini-pack.tier-icon .hz-mini-pack-art      { background: linear-gradient(145deg, rgba(42,42,48,0.85) 0%, rgba(26,26,34,0.85) 100%); }
.hz-mini-pack-art::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
}
.hz-mini-pack.tier-common .hz-mini-pack-art::after    { background: linear-gradient(90deg, transparent, #9e9e9e44, transparent); }
.hz-mini-pack.tier-uncommon .hz-mini-pack-art::after  { background: linear-gradient(90deg, transparent, #4caf5044, transparent); }
.hz-mini-pack.tier-rare .hz-mini-pack-art::after      { background: linear-gradient(90deg, transparent, #ffd70044, transparent); }
.hz-mini-pack.tier-epic .hz-mini-pack-art::after      { background: linear-gradient(90deg, transparent, #9c27b044, transparent); }
.hz-mini-pack.tier-legendary .hz-mini-pack-art::after { background: linear-gradient(90deg, transparent, #ff980044, transparent); }
.hz-mini-pack.tier-icon .hz-mini-pack-art::after      { background: linear-gradient(90deg, transparent, #c0c0c044, transparent); }
.hz-mini-pack-icon {
  height: 42px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.25;
  drop-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hz-mini-pack-info {
  flex: 1; background: rgba(17,24,32,0.88);
  padding: 0.45rem 0.5rem 0.6rem;
  text-align: center; gap: 0.2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
}
.hz-mini-pack-tag {
  font-size: 0.38rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 0.04rem 0.2rem; border-radius: 2px;
}
.hz-mini-pack.tier-common    .hz-mini-pack-tag { color: #888; }
.hz-mini-pack.tier-uncommon  .hz-mini-pack-tag { color: #4caf50; }
.hz-mini-pack.tier-rare      .hz-mini-pack-tag { color: #ffd700; }
.hz-mini-pack.tier-epic      .hz-mini-pack-tag { color: #9c27b0; }
.hz-mini-pack.tier-legendary .hz-mini-pack-tag { color: #ff9800; }
.hz-mini-pack.tier-icon      .hz-mini-pack-tag { color: #e0e0e0; }
.hz-mini-pack-name {
  font-size: 0.52rem; font-weight: 700; color: rgba(255,255,255,0.85);
  line-height: 1.1;
}
.hz-mini-pack-cost {
  font-size: 0.5rem; font-weight: 700; color: var(--hz-accent);
}
.hz-mini-pack-cost .ch-millions { font-size: 0.5rem; font-weight: 700; color: var(--hz-accent); gap: 0.15rem; }
.hz-mini-pack-cost .ch-coin { width: 9px; height: 9px; font-size: 0.3rem; border-width: 1px; }
.hz-mini-pack-cost .ch-coin::after { width: 4px; height: 2px; }
.hz-mini-pack-glass {
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; pointer-events: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.02);
  background:
    linear-gradient(125deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.01) 15%, transparent 30%),
    linear-gradient(165deg, transparent 45%, rgba(255,255,255,0.02) 50%, transparent 55%);
}
/* Locker Room pieceset carousel — pure opacity cross-fade to avoid text jitter */
.hz-set-carousel {
  position: relative; width: 130px; height: 170px;
}
.hz-set-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
  backface-visibility: hidden;
}
.hz-set-slide.active { opacity: 1; }
/* Subtle card container wrapping the collection item */
.hz-set-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.35rem;
  width: 100%; height: 100%;
  padding: 0.7rem 0.5rem;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--hz-border);
  border-radius: 8px;
  justify-content: center;
}
/* Badge wrapper sits on its own — rarity filter traces the masked country shape */
.hz-set-card .country-badge-wrapper { background: none; }
/* Year-type card: big accent year number in place of the badge */
.hz-set-year-big {
  font-size: 1.2rem; font-weight: 800; color: var(--hz-accent);
  line-height: 1; letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(233,196,106,0.25);
}
.hz-set-year-label {
  font-size: 0.42rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--hz-text-sec);
  margin-top: 0.1rem;
}
.hz-set-team {
  font-size: 0.5rem; color: var(--hz-text); font-weight: 700;
  white-space: nowrap; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; text-align: center;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.hz-set-year {
  font-size: 0.42rem; color: var(--hz-text-dim);
  font-variant-numeric: tabular-nums;
}
/* Counter card — subtle year-pill style */
.hz-set-counter {
  text-align: center;
  padding: 0.2rem 0.55rem; border-radius: 5px;
  background: rgba(233,196,106,0.04);
  border: 1px solid rgba(233,196,106,0.1);
}
.hz-set-counter-num {
  font-size: 0.6rem; font-weight: 800; color: var(--hz-accent);
  font-variant-numeric: tabular-nums; line-height: 1;
}
/* "UNLOCKED" label above the counter — matches .psd-cell-label style */
.hz-set-counter-sub {
  font-size: 0.5rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 3px;
  color: rgba(255,255,255,0.12);
  padding: 0 0 0.2rem;
  text-align: center;
}
/* Challenge carousel in hub — symmetrical card */
.hz-ch-carousel {
  width: 100%; max-width: 200px; text-align: center;
  overflow: hidden; position: relative;
  height: 170px;
}
.hz-ch-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.6s ease;
  padding: 0.6rem 0.6rem;
  background: rgba(0,0,0,0.25); border: 1px solid var(--hz-border);
  border-radius: 8px; gap: 0.55rem;
}
.hz-ch-slide.active { opacity: 1; }
.hz-ch-slide-title {
  font-size: 0.5rem; font-weight: 800; color: var(--hz-text);
  text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; line-height: 1.2;
}
.hz-ch-slide-desc {
  font-size: 0.38rem; color: var(--hz-text-dim); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  max-width: 100%; margin-top: -0.2rem;
}
/* Progress bar — imported ch-row-bar from challenges.css, scaled for compact card */
.hz-ch-slide .ch-row-bar { height: 10px; border-radius: 3px; width: 72%; }
.hz-ch-slide .ch-row-bar-fill { border-radius: 3px; }
.hz-ch-slide .ch-row-bar-label { font-size: 0.32rem; }
/* Reward area — uses ch-millions / ch-caps-pill / ch-mini-pack from challenges.css, zoom-scaled */
.hz-ch-slide-reward {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem; border-radius: 8px;
  background: linear-gradient(145deg, var(--bl-surface, #252b3d), var(--bl-modal-bg, #1a1f2e));
  border: 1px solid rgba(233,196,106,0.08);
  position: relative; overflow: hidden;
}
.hz-ch-slide-reward::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.03) 0%, transparent 40%);
  border-radius: inherit; pointer-events: none;
}
.hz-ch-slide-reward-label {
  font-size: 0.28rem; font-weight: 700; color: rgba(255,255,255,0.22);
  text-transform: uppercase; letter-spacing: 1.5px; line-height: 1;
}
.hz-ch-slide-reward-row {
  display: flex !important; flex-direction: row !important;
  align-items: center; justify-content: center;
  position: relative; z-index: 1;
  zoom: 0.72;
}
/* Supply the color context that ch-reward-wallet / ch-reward-caps
   would normally provide in the full challenges modal */
.hz-ch-slide-reward-row .ch-millions {
  font-size: 1rem; font-weight: 700;
  color: var(--bl-accent, #e9c46a);
  text-shadow: 0 0 6px rgba(233,196,106,0.25);
}
.hz-ch-slide-reward-row .ch-caps-amt {
  color: #4ade80;
  text-shadow: 0 0 6px rgba(74,222,128,0.25);
}
/* Scale rb-cap-icon up to match coin size in reward context */
.hz-ch-slide-reward-row .rb-cap-icon {
  width: 18px; height: 18px; border-radius: 4px;
  background: #4ade80; opacity: 1;
}
.hz-ch-slide-reward-row .rb-cap-c {
  font-size: 0.55rem;
}
/* Hide slot bottom labels in compact hub card — "Reward" top label is enough */
.hz-ch-slide-reward-row .ch-rw-slot-label { display: none; }
/* Packs — thinner, more elegant border for compact card */
.hz-ch-slide-reward-row .ch-mini-pack {
  border-color: rgba(255,255,255,0.04);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hz-ch-slide-reward-row .ch-mini-pack:hover { border-color: rgba(255,255,255,0.08); }

/* Locked placeholder styling for empty-state carousels */
.hz-ch-slide.hz-ph-locked,
.hz-set-slide.hz-ph-locked { opacity: 0; }
.hz-ch-slide.hz-ph-locked.active,
.hz-set-slide.hz-ph-locked.active { opacity: 0.55; }
.hz-ph-locked .ch-row-bar-fill { background: rgba(255,255,255,0.08) !important; }
.hz-ph-locked .hz-ch-slide-reward { border-color: rgba(255,255,255,0.04); }
.hz-ph-lock-tag {
  position: absolute; top: 6px; right: 6px;
  font-size: 0.32rem; font-weight: 800; color: var(--hz-text-dim);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06);
}
/* Locked set slides */
.hz-ph-locked .hz-set-year-big { color: var(--hz-text-dim); text-shadow: none; }
.hz-ph-locked .hz-set-counter-num { color: var(--hz-text-dim); }
.hz-ph-locked .hz-set-counter { border-color: rgba(255,255,255,0.04); background: rgba(0,0,0,0.15); }

.hz-hub-badge {
  position: absolute; top: 6px; right: 6px;
  min-width: 16px; height: 16px;
  background: var(--hz-red); border-radius: 8px;
  font-size: 0.38rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; z-index: 2;
}

/* ===== DASHBOARD — vertical sidebar tabs, fixed height ===== */
.hz-dashboard {
  background: var(--hz-surface); border: 1px solid var(--hz-border);
  border-radius: 10px; overflow: hidden; margin: 0 0 1.2rem;
  display: flex; height: 440px;
}
.hz-dash-sidebar {
  width: 180px; flex-shrink: 0;
  border-right: 1px solid var(--hz-border);
  display: flex; flex-direction: column;
  padding: 0.6rem 0;
}
.hz-dash-tab {
  padding: 0.7rem 1rem; cursor: var(--cur-pointer, pointer);
  font-size: 0.78rem; font-weight: 600;
  color: var(--hz-text-dim); white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem;
}
.hz-dash-tab:hover { color: var(--hz-text-sec); background: rgba(255,255,255,0.02); }
.hz-dash-tab.active {
  color: var(--hz-accent); border-left-color: var(--hz-accent);
  background: rgba(233,196,106,0.04);
}
.hz-dash-tab-icon { font-size: 1rem; }
.hz-dash-content {
  flex: 1; padding: 0; overflow: hidden;
  display: flex; min-height: 0;
}
.hz-dash-panel {
  display: none;
  width: 100%; height: 100%;
  padding: 1rem; overflow-y: auto;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.hz-dash-panel.active { display: block; }
/* Leaderboard panel — no padding, table fills */
#panel-leaderboard { padding: 0; display: none; }
#panel-leaderboard.active { display: flex; }

/* ===== LEADERBOARD TABLE (mirrors profile modal pm-lb-table) ===== */
.hz-lb-table {
  border-radius: 0; overflow: hidden;
  background: rgba(0,0,0,0.12);
  flex: 1; display: flex; flex-direction: column; min-height: 0;
  width: 100%;
}
.hz-lb-hdr {
  display: grid; grid-template-columns: 40px 32px 1fr 72px;
  padding: 0.5rem 0.8rem; gap: 0.5rem;
  border-bottom: 1px solid var(--hz-border);
  background: rgba(0,0,0,0.25);
}
.hz-lb-hdr span {
  font-size: 0.48rem; font-weight: 700; color: var(--hz-text-dim);
  text-transform: uppercase; letter-spacing: 1px;
}
.hz-lb-hdr span:first-child { text-align: center; }
.hz-lb-hdr span:last-child { text-align: center; }
.hz-lb-rows {
  flex: 1; overflow-y: auto; min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.hz-lb-row {
  display: grid; grid-template-columns: 40px 32px 1fr 72px;
  padding: 0.45rem 0.8rem; gap: 0.5rem; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  position: relative;
  contain: layout style;
}
.hz-lb-row:last-child { border-bottom: none; }
.hz-lb-row:hover { background: rgba(255,255,255,0.03); }
/* Podium rows */
.hz-lb-row.hz-lb-podium { background: rgba(255,255,255,0.02); }
.hz-lb-row.hz-lb-podium:hover { background: rgba(255,255,255,0.05); }
/* Own user highlight */
.hz-lb-row.hz-lb-me {
  background: rgba(233,196,106,0.06);
  border-left: 2px solid var(--hz-accent);
}
.hz-lb-row.hz-lb-me:hover { background: rgba(233,196,106,0.1); }
.hz-lb-row.hz-lb-me .hz-lb-name { color: var(--hz-accent); font-weight: 700; }
/* Rank column */
.hz-lb-rank {
  font-size: 0.72rem; font-weight: 800; color: var(--hz-text-dim);
  font-variant-numeric: tabular-nums; text-align: center;
}
.hz-lb-rank.hz-lb-gold,
.hz-lb-rank.hz-lb-gold .mr-icon   { color: #ffd700; text-shadow: 0 0 6px rgba(255,215,0,0.3); }
.hz-lb-rank.hz-lb-silver,
.hz-lb-rank.hz-lb-silver .mr-icon  { color: #d0d0d0; text-shadow: 0 0 6px rgba(192,192,192,0.3); }
.hz-lb-rank.hz-lb-bronze,
.hz-lb-rank.hz-lb-bronze .mr-icon  { color: #cd7f32; text-shadow: 0 0 6px rgba(205,127,50,0.3); }
/* Badge column */
.hz-lb-badge { display: flex; align-items: center; justify-content: center; }
/* Name column */
.hz-lb-name {
  font-size: 0.68rem; font-weight: 600; color: var(--hz-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hz-lb-name-link { cursor: var(--cur-pointer, pointer); }
.hz-lb-name-link:hover { color: var(--hz-accent); }
/* Value column with bar */
.hz-lb-val {
  font-size: 0.68rem; font-weight: 700; color: var(--hz-text);
  text-align: center; font-variant-numeric: tabular-nums;
  position: relative; z-index: 1; overflow: hidden;
  border-radius: 3px; padding: 2px 4px;
}
.hz-lb-bar {
  position: absolute; right: 0; top: 0; bottom: 0; z-index: 0;
  border-radius: 3px; opacity: 0.08;
  background: linear-gradient(90deg, transparent, var(--hz-accent));
}
.hz-lb-row.hz-lb-podium .hz-lb-bar { opacity: 0.12; }
/* Pinned user row (outside visible top) */
.hz-lb-pinned {
  border-top: 1px dashed rgba(233,196,106,0.25);
  flex-shrink: 0;
}
/* Footer */
.hz-lb-footer {
  padding: 0.5rem 0.8rem; text-align: center;
  border-top: 1px solid var(--hz-border);
  font-size: 0.42rem; color: var(--hz-text-dim);
  letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700;
}
/* Empty state */
.hz-lb-empty {
  padding: 2.5rem 1rem; text-align: center;
  font-size: 0.65rem; color: var(--hz-text-dim);
}

/* ===== DIRECTORY — uniform card grid ===== */
.hz-dir-search {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.6rem; margin-bottom: 0.5rem;
  background: rgba(0,0,0,0.2); border: 1px solid var(--hz-border);
  border-radius: 6px; transition: border-color 0.2s;
}
.hz-dir-search:focus-within { border-color: rgba(233,196,106,0.3); }
.hz-dir-search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--hz-text); font-size: 0.58rem;
  font-family: inherit; padding: 0.1rem 0;
}
.hz-dir-search input::placeholder { color: var(--hz-text-dim); font-size: 0.5rem; }
.hz-dir-count {
  font-size: 0.46rem; color: var(--hz-text-dim);
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.hz-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}
.hz-dir-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.3rem; padding: 0.7rem 0.5rem;
  background: rgba(0,0,0,0.18); border: 1px solid var(--hz-border);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.hz-dir-card:hover {
  border-color: rgba(233,196,106,0.25);
  background: rgba(233,196,106,0.05);
}
.hz-dir-card.hz-dir-me {
  border-color: rgba(233,196,106,0.3);
  background: rgba(233,196,106,0.08);
}
.hz-dir-name {
  font-size: 0.62rem; font-weight: 700; color: var(--hz-text);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; padding: 0 0.15rem;
}
.hz-dir-name[data-pm-user] { cursor: var(--cur-pointer, pointer); }
.hz-dir-name[data-pm-user]:hover { color: var(--hz-accent); }
.hz-dir-elo {
  font-size: 0.78rem; font-weight: 800; color: var(--hz-accent);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.hz-dir-stats {
  font-size: 0.46rem; color: var(--hz-text-dim);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; font-variant-numeric: tabular-nums;
}

/* ===== LEAGUES ===== */
.hz-lg-hero { padding: 0.8rem 1rem 0.4rem; }
.hz-lg-hero-title {
  font-size: 0.85rem; font-weight: 800; color: var(--hz-text);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.hz-lg-hero-sub {
  font-size: 0.6rem; color: var(--hz-text-sec); line-height: 1.4;
  margin-top: 0.2rem;
}
.hz-lg-div-name {
  font-style: italic; font-family: Georgia, 'Times New Roman', serif;
  color: var(--bl-accent, #e9c46a); opacity: 0.55;
  letter-spacing: 0.3px;
}
/* Division coin strip */
.hz-lg-coins {
  display: flex; justify-content: center; gap: 0.35rem;
  padding: 0.5rem 0.8rem 0.6rem;
}
.hz-lg-coin-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.hz-lg-coin {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 900; color: rgba(0,0,0,0.55);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
}
.hz-lg-coin-name {
  font-size: 0.32rem; font-weight: 700; color: var(--hz-text-dim);
  text-align: center; max-width: 48px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Fact cards */
.hz-lg-facts {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 0 1rem;
}
.hz-lg-fact {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.85rem; border-radius: 8px;
  background: rgba(0,0,0,0.18); border: 1px solid var(--hz-border);
}
.hz-lg-fact-coin {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 900; color: rgba(0,0,0,0.55);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
}
.hz-lg-fact-body { flex: 1; }
.hz-lg-fact-title {
  font-size: 0.72rem; font-weight: 800; color: var(--hz-text);
}
.hz-lg-fact-desc {
  font-size: 0.56rem; color: var(--hz-text-dim); line-height: 1.4;
  margin-top: 0.1rem;
}
/* Tournament section */
.hz-lg-section {
  padding: 0.6rem 1rem 0.8rem;
  border-top: 1px solid var(--hz-border);
  margin-top: 0.6rem;
}
.hz-lg-section-title {
  font-size: 0.75rem; font-weight: 800; color: var(--hz-text);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 0.25rem;
}
.hz-lg-section-desc {
  font-size: 0.56rem; color: var(--hz-text-sec); line-height: 1.45;
}
.hz-lg-section-items {
  display: flex; gap: 0.4rem; margin-top: 0.5rem;
}
.hz-lg-section-pill {
  padding: 0.25rem 0.65rem; border-radius: 20px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--hz-border);
  font-size: 0.55rem; font-weight: 700; color: var(--hz-text-sec);
}
.hz-lg-section-note {
  font-size: 0.48rem; font-weight: 700; color: var(--hz-text-dim);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 0.4rem;
}

/* ===== NEWS — timeline with cards ===== */
/* ===== NEWS TIMELINE ===== */
.hz-nw-timeline {
  position: relative;
  padding: 0.7rem 0.8rem 0.7rem 30px;
}
/* Vertical line — gradient fade at both ends */
.hz-nw-timeline::before {
  content: ''; position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 2px; border-radius: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(233,196,106,0.12) 8%, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 85%, transparent 100%);
}
.hz-nw-item {
  position: relative;
  padding-bottom: 0.6rem;
}
.hz-nw-item:last-child { padding-bottom: 0; }
/* Latest item — subtle accent glow on card + bigger dot */
.hz-nw-item:first-child .hz-nw-card {
  border-color: rgba(233,196,106,0.12);
  background: rgba(233,196,106,0.03);
}
.hz-nw-item:first-child .hz-nw-dot {
  width: 8px; height: 8px;
  left: -19px; top: 12px;
  opacity: 0.75;
}
/*
 * Dot — small subtle sphere. All use identical pixel values.
 * No transforms, no calc, no variables — just raw consistent px.
 * line center is at 15px from timeline left (14px + 1px half-width).
 * dot left = -(30px padding - 15px line center) - half dot width
 *          = -15px - 3px = -18px
 */
.hz-nw-dot {
  position: absolute;
  left: -18px; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.55;
}
/* box-shadow stack: 1) 2px transparent gap  2) 1px colored outline ring */
.hz-nw-dot.nw-new {
  background: var(--hz-teal);
  box-shadow: 0 0 0 2px var(--hz-surface), 0 0 0 3px rgba(42,157,143,0.35);
}
.hz-nw-dot.nw-update {
  background: #8ab4ff;
  box-shadow: 0 0 0 2px var(--hz-surface), 0 0 0 3px rgba(138,180,255,0.3);
}
.hz-nw-dot.nw-fix {
  background: #c2a0ff;
  box-shadow: 0 0 0 2px var(--hz-surface), 0 0 0 3px rgba(194,160,255,0.3);
}
/* Card */
.hz-nw-card {
  padding: 0.6rem 0.75rem; border-radius: 8px;
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--hz-border);
  transition: border-color 0.15s, background 0.15s;
}
.hz-nw-card:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
}
.hz-nw-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.25rem;
}
.hz-nw-tag {
  font-size: 0.42rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; padding: 2px 8px; border-radius: 3px;
}
.hz-nw-tag.nw-new    { color: var(--hz-teal); border: 1px solid rgba(42,157,143,0.3); background: rgba(42,157,143,0.08); }
.hz-nw-tag.nw-update { color: #8ab4ff; border: 1px solid rgba(138,180,255,0.25); background: rgba(138,180,255,0.08); }
.hz-nw-tag.nw-fix    { color: #c2a0ff; border: 1px solid rgba(194,160,255,0.25); background: rgba(194,160,255,0.08); }
.hz-nw-date {
  font-size: 0.46rem; font-weight: 700; color: var(--hz-text-dim);
  text-transform: uppercase; letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.hz-nw-title {
  font-size: 0.82rem; font-weight: 800; color: var(--hz-text);
  line-height: 1.25;
}
.hz-nw-desc {
  font-size: 0.58rem; color: var(--hz-text-sec); line-height: 1.5;
  margin-top: 0.2rem;
}

/* ===== COMMUNITY STATS CAROUSEL ===== */
.hz-stats-card {
  background: var(--hz-surface); border: 1px solid var(--hz-border);
  border-radius: 10px; padding: 1.1rem 1.2rem 0.9rem;
  margin: 0 0 1.5rem; overflow: hidden;
  border-top: 2px solid var(--hz-accent);
  position: relative;
}
/* Carousel container */
.hz-stats-carousel {
  position: relative;
  min-height: 5.2rem;
}
/* ---- Mandapa interstitial (all animation driven by JS/rAF) ---- */
.hz-interstitial {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.hz-inter-solo {
  position: absolute; height: 36px; width: auto;
  filter: brightness(0) invert(1); opacity: 0;
}
.hz-inter-label {
  display: flex; align-items: center; gap: 0.5rem;
  opacity: 0;
}
.hz-inter-rook {
  height: 20px; width: auto;
  filter: brightness(0) invert(1); opacity: 0.3;
}
.hz-inter-text {
  font-size: 0.85rem; color: var(--hz-accent); text-transform: uppercase;
  letter-spacing: 4px; font-weight: 800;
  text-shadow: 0 0 16px rgba(233,196,106,0.2);
}
.hz-inter-flash {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: white; opacity: 0; border-radius: 10px;
  pointer-events: none; z-index: 2;
}
/* Stats groups — positioned by JS animation */
.hz-stats-group {
  display: flex; gap: 0; justify-content: center; align-items: center;
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; pointer-events: none;
}
.hz-stats-group.active {
  opacity: 1; transform: translateX(0); pointer-events: auto;
  position: relative;
}
/* Individual stat */
.hz-stat {
  flex: 1; text-align: center;
  padding: 0.4rem 0.5rem;
}
.hz-stat-value {
  font-size: 2.4rem; font-weight: 900; color: var(--hz-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(233,196,106,0.3), 0 0 45px rgba(233,196,106,0.1);
}
.hz-stat-label {
  font-size: 0.58rem; color: var(--hz-text-sec); text-transform: uppercase;
  letter-spacing: 1px; margin-top: 0.3rem; font-weight: 700;
}
.hz-stat-label .mr-icon {
  font-size: 0.55rem; opacity: 0.45; margin-right: 0.12rem;
}
/* Diamond divider between stats — bolder, thicker */
.hz-stat-divider {
  display: flex; align-items: center; justify-content: center;
  width: 2px; align-self: stretch;
  background: linear-gradient(180deg, transparent 5%, rgba(233,196,106,0.15) 50%, transparent 95%);
  position: relative; flex-shrink: 0;
  margin: 0.3rem 0;
}
.hz-diamond {
  position: absolute; font-size: 0.38rem; color: var(--hz-accent); opacity: 0.45;
  background: var(--hz-surface); padding: 0.2rem 0;
  line-height: 1;
}

@media (max-width: 768px) {
  .hz-modes { flex-direction: column; border-radius: 10px; border: 1px solid var(--hz-border); gap: 0; overflow: hidden; }
  .hz-mode {
    width: 100%;
    height: 120px;
    flex-direction: column; justify-content: center; align-items: center;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--hz-border);
    border-radius: 0;
  }
  .hz-mode:last-child { border-right: none; border-bottom: none; }
  .hz-mode-icon { font-size: 2.2rem; margin-bottom: 0.25rem; }
  .hz-mode-name { font-size: 0.68rem; letter-spacing: 1.3px; }
  .hz-mode-desc { display: none; }
  .hz-mode-badge { font-size: 0.28rem; top: 5px; right: 5px; padding: 1px 4px; }
  .hz-hub { flex-direction: column; }
  .hz-hub-card { border-radius: 0 !important; }
  .hz-hub-card + .hz-hub-card { border-left: 1px solid var(--hz-border); border-top: none; }
  .hz-dashboard { flex-direction: column; height: auto; }
  .hz-dash-sidebar { width: 100%; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--hz-border); padding: 0; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hz-dash-sidebar::-webkit-scrollbar { display: none; }
  .hz-dash-tab { border-left: none; border-bottom: 3px solid transparent; padding: 0.85rem 1.1rem; font-size: 0.85rem; flex-shrink: 0; white-space: nowrap; scroll-snap-align: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .hz-dash-tab-icon { font-size: 1.15rem; }
  .hz-dash-tab.active { border-left-color: transparent; border-bottom-color: var(--hz-accent); }
  .hz-dash-content { min-height: 0; }
  /* Leaderboard: cap at 10 rows visible, invisible scroll */
  .hz-lb-rows {
    max-height: 400px; overflow-y: auto;
    scrollbar-width: none;
  }
  .hz-lb-rows::-webkit-scrollbar { display: none; }
  /* Directory: same height cap, invisible scroll */
  .hz-dir-grid {
    max-height: 400px; overflow-y: auto;
    scrollbar-width: none;
  }
  .hz-dir-grid::-webkit-scrollbar { display: none; }
  /* News: cap at ~5 items visible, invisible scroll */
  #panel-news {
    max-height: 420px; overflow-y: auto;
    scrollbar-width: none;
  }
  #panel-news::-webkit-scrollbar { display: none; }

  .hz-lg-hero { padding: 0.6rem 0.7rem 0.3rem; }
  .hz-lg-facts { padding: 0 0.7rem; }
  .hz-lg-coins { gap: 0.2rem; padding: 0.4rem 0.5rem; }
  .hz-lg-coin { width: 22px; height: 22px; font-size: 0.44rem; }
  .hz-lg-section { padding: 0.5rem 0.7rem 0.7rem; }

  .hz-stats-card { padding: 0.8rem 0.6rem 0.6rem; }
  .hz-stats-carousel { min-height: 4.4rem; }
  .hz-stat-value { font-size: 1.8rem; }
  .hz-stat-label { font-size: 0.48rem; letter-spacing: 0.5px; }
  .hz-stat { padding: 0.3rem 0.2rem; }
  .hz-inter-solo { height: 28px; }
  .hz-inter-rook { height: 16px; }
  .hz-inter-text { font-size: 0.72rem; letter-spacing: 3px; }
}
