/* Leaderboard motion layer (home-leaderboard.js + GSAP). Adds to the home.css hx-board and hx-podium rules
   without changing their look: a gliding tab indicator with a 7 s timer line, a pause button,
   and the first-place glow. 2026-11-08 */

.luxury-home .hx-board__tabs-wrap.has-ctrl {
  align-items: center;
  display: flex;
  gap: .5rem;
}

.luxury-home .hx-board__tabs-wrap.has-ctrl .hx-board__tabs {
  flex: 1 1 auto;
  min-width: 0;
}

.luxury-home .hx-board__tabs {
  position: relative;
  padding-block-end: 6px;
}

/* Indicator under the active tab; its fill is the auto-advance timer. */
.luxury-home .hx-board__glider {
  background: rgba(var(--t-c-ffffff), 0.06);
  border-radius: 999px;
  bottom: 0;
  height: 3px;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.luxury-home .hx-board__glider-fill {
  background: linear-gradient(90deg, var(--hx-accent), var(--hx-lime));
  border-radius: inherit;
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
}

[dir="rtl"] .luxury-home .hx-board__glider-fill {
  background: linear-gradient(270deg, var(--hx-accent), var(--hx-lime));
  transform-origin: 100% 50%;
}

.luxury-home .hx-board__glider.is-static .hx-board__glider-fill {
  transform: scaleX(1);
}

/* Pause / play */
.luxury-home .hx-board__pause {
  align-items: center;
  background: rgba(var(--t-c-ffffff), 0.03);
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  color: var(--hx-text-2);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  transition: border-color .18s ease, color .18s ease;
  width: 44px;
}

.luxury-home .hx-board__pause:hover {
  border-color: var(--hx-line-strong);
  color: var(--hx-text);
}

.luxury-home .hx-board__pause:focus-visible {
  box-shadow: 0 0 0 2px var(--hx-bg), 0 0 0 4px var(--hx-lime);
  outline: none;
}

.luxury-home .hx-board__pause svg {
  height: 18px;
  width: 18px;
}

/* Bars grow from the floor; meters fill from the start side. */
.luxury-home .hx-board.is-motion .hx-podium__base {
  transform-origin: 50% 100%;
}

.luxury-home .hx-board.is-motion .hx-board__meter > span {
  transform-origin: 0 50%;
}

[dir="rtl"] .luxury-home .hx-board.is-motion .hx-board__meter > span {
  transform-origin: 100% 50%;
}

/* First place glow (toggled by the script after the medal pulse). */
.luxury-home .hx-podium__spot--1.is-glow .hx-podium__medal {
  box-shadow: 0 0 0 6px rgba(var(--t-c-fbbf24), 0.12), 0 0 34px rgba(var(--t-c-fbbf24), 0.45);
  transition: box-shadow .5s ease;
}

.luxury-home .hx-podium__spot--1.is-glow .hx-podium__base {
  box-shadow: 0 -10px 40px -18px rgba(var(--t-c-fbbf24), 0.55);
  transition: box-shadow .5s ease;
}

/* Panels slide inside the card; vertical page scrolling stays native on touch. */
.luxury-home .hx-board.is-motion .hx-board__card {
  overflow: hidden;
  touch-action: pan-y;
}

@media (prefers-reduced-motion: reduce) {
  .luxury-home .hx-podium__spot--1.is-glow .hx-podium__medal,
  .luxury-home .hx-podium__spot--1.is-glow .hx-podium__base {
    transition: none;
  }
}
