/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: #000;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

/* Container — leave room for the ticker */
.container-fluid {
  height: calc(100vh - 120px);
  width: 100vw;
}

/* Main Video Area */
.col {
  background-color: #000;
}

#videoArea {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Sidebar column - fixed width */
.sidebar-col {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  flex: 0 0 220px;
}

#mainVideo {
  object-fit: cover;
  object-position: center top;
  width: 100% !important;
  height: 100% !important;
  will-change: transform;
}

/* Cinematic vignette over main video */
.video-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow:
    inset 0 0 40px 15px rgba(0, 0, 0, 0.3),
    inset 0 0 100px 30px rgba(0, 0, 0, 0.12);
  will-change: auto;
  isolation: isolate;
}

.shot-tags {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: calc(100% - 48px);
  pointer-events: none;
}

.player-name-tag {
  max-width: min(640px, 100%);
  padding: 12px 20px;
  border: 1px solid rgba(237, 227, 128, 0.35);
  border-left: 4px solid #e3a01c;
  border-radius: 4px;
  background: linear-gradient(110deg, rgba(10, 10, 18, 0.94), rgba(17, 17, 34, 0.9));
  color: #fff;
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.just-now-badge {
  align-items: center;
  gap: 0.55rem;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: rgba(10, 10, 12, 0.82);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform-origin: left center;
  animation: justNowBulge 2.8s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.just-now-badge__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
  animation: justNowDotPulse 2.8s ease-in-out infinite;
}

@keyframes justNowBulge {
  0%,
  68%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
  78% {
    transform: scale(1.04);
    box-shadow:
      0 5px 20px rgba(0, 0, 0, 0.42),
      0 0 0 4px rgba(229, 57, 53, 0.12);
  }
  86% {
    transform: scale(0.99);
  }
}

@keyframes justNowDotPulse {
  0%,
  68%,
  100% {
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
  }
  78% {
    box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .just-now-badge,
  .just-now-badge__dot {
    animation: none;
  }
}

/* Multi-channel course name overlay — top-right corner */
.course-name-banner {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  z-index: 9999;
  animation: courseNameFadeIn 0.4s ease-out;
}

.course-name-banner__text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes courseNameFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Course Logo - bottom left of video area */
.course-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.course-logo-container img {
  max-width: 140px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* ---- Ticker ---- */
.live-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(90deg, #0a0a12 0%, #111122 50%, #0a0a12 100%);
  border-top: 2px solid;
  border-image: linear-gradient(
      90deg,
      #c9890f,
      #ede380,
      #e3a01c,
      #ede380,
      #c9890f
    )
    1;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.ticker-scroll {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

/* Ticker right: AS TV logo, jackpot, course logo */
.ticker-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.25rem 0 1rem;
  height: 100%;
  border-left: 1px solid rgba(237, 227, 128, 0.35);
  margin-left: 0.5rem;
  /* Space for AS TV logo overlay so jackpot/course sit directly to its left */
  padding-right: 220px;
}

.ticker-right__jackpot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.ticker-right__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2px 0;
}

.ticker-right__jackpot .jackpot-amount {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1;
}

.ticker-right__course {
  display: flex;
  align-items: center;
}

.ticker-right__course img {
  max-height: 95px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

/* AS TV logo: fixed bottom-right, overlays video */
.as-tv-logo-overlay {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 0.5rem 0.25rem 0;
  pointer-events: none;
}

.as-tv-logo-overlay img {
  height: 206px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.5));
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0 28px;
}

/* Gold diamond separator between ticker items */
.ticker-item + .ticker-item::before {
  content: "◆";
  margin-right: 24px;
  font-size: 0.5rem;
  color: #e3a01c;
  opacity: 0.6;
}

.ticker-emoji {
  font-size: 1.3rem;
}

/* ---- Inner Circle Win Overlay ---- */
.ic-win-overlay {
  position: absolute;
  bottom: 140px;
  left: 24px;
  z-index: 35;
  display: none;
  align-items: flex-end;
  pointer-events: none;
}

.ic-win-badge {
  position: relative;
  overflow: hidden;
  background: rgba(10, 10, 18, 0.94);
  border: 2px solid;
  border-image: linear-gradient(135deg, #ede380, #c9890f, #e3a01c, #ede380) 1;
  border-radius: 0;
  padding: 1.25rem 2rem;
  min-width: 280px;
  box-shadow:
    0 0 20px rgba(237, 227, 128, 0.3),
    0 0 40px rgba(227, 160, 28, 0.15);
}

.ic-win-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.ic-win-emoji {
  font-size: 1.6rem;
}

.ic-win-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ede380;
}

.ic-win-prize {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  perspective: 600px;
  display: block;
  text-align: center;
}

.ic-win-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(237, 227, 128, 0.25),
    transparent
  );
  opacity: 0;
  pointer-events: none;
}

/* Sidebar */
.sidebar-wrapper {
  overflow: hidden;
}

.sidebar {
  /*background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);*/
  background: rgba(0, 0, 0);
  color: #fff;
  padding: 1.2rem 0.75rem;
  gap: 0;
}

/* Vertical gold strip to the left of the sidebar (hidden) */
.sidebar-swirl {
  display: none;
}

/* Logo */
.logo-container {
  width: 65%;
  max-width: 120px;
}

.logo-container img {
  width: 100%;
  height: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

/* Jackpot Display */
/* Sidebar divider */
.sidebar-divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(237, 227, 128, 0.4) 50%,
    transparent 100%
  );
  margin: 1.25rem 0;
}

.jackpot-container {
  margin: 0;
}

.jackpot-pre-text {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.4;
}

.tracking-widest {
  letter-spacing: 0.2em;
}

.jackpot-amount {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 100%;
}

/* Gold Gradient Text - matches Ace Society home page */
.goldGradientText {
  background-image: linear-gradient(180deg, #ede380 0%, #e3a01c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .jackpot-pre-text {
    font-size: 1rem;
  }

  .jackpot-amount {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .col {
    width: 100%;
  }

  .sidebar-col {
    display: none;
  }
}

/* Leaderboard */
.leaderboard-container {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Enforce max 10 entries: hide any row after the 10th */
#leaderboardContainer > .leaderboard-list > .leaderboard-row:nth-child(n + 11) {
  display: none !important;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.95rem;
}

.leaderboard-row.rank-1 {
  background: linear-gradient(
    90deg,
    rgba(237, 227, 128, 0.2) 0%,
    rgba(227, 160, 28, 0.2) 100%
  );
  border: 1px solid rgba(237, 227, 128, 0.4);
}

.leaderboard-rank {
  width: 28px;
  font-weight: 700;
  color: #e0e0e0;
}

.leaderboard-row.rank-1 .leaderboard-rank {
  background-image: linear-gradient(180deg, #ede380 0%, #e3a01c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leaderboard-name {
  flex: 1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-points {
  font-weight: 600;
  color: #e0e0e0;
  margin-left: 0.5rem;
}

.leaderboard-row.rank-1 .leaderboard-points {
  background-image: linear-gradient(180deg, #ede380 0%, #e3a01c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Season Header */
.season-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.season-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.season-details {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.season-time-remaining,
.season-grand-prize {
  font-size: 0.85rem;
}

.season-label {
  color: #888;
  margin-right: 0.5rem;
}

.season-value {
  font-weight: 600;
  color: #fff;
}

.season-grand-prize .season-value {
  font-weight: 700;
}

@media (max-width: 1200px) {
  .leaderboard-title {
    font-size: 0.85rem;
  }

  .leaderboard-row {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
  }

  .season-name {
    font-size: 0.95rem;
  }

  .season-time-remaining,
  .season-grand-prize {
    font-size: 0.75rem;
  }
}

/* Social Proof Toast */
.social-proof-toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 100;
  opacity: 0;
  transform: translateX(100%);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none;
}

.social-proof-toast.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.social-proof-toast-content {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(0, 255, 136, 0.4);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 136, 0.2);
  max-width: 400px;
}

.social-proof-toast-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.social-proof-toast-message {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .social-proof-toast {
    bottom: 60px;
    right: 12px;
    left: 12px;
  }

  .social-proof-toast-content {
    max-width: 100%;
  }
}

/* ================================================================
   Jackpot Overlay – Theatrical Full-Screen Reveal
   ================================================================ */

.jackpot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* --- Curtains --- */
.jackpot-overlay__curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, #0a0a12 0%, #111122 40%, #0a0a12 100%);
  z-index: 1;
  will-change: transform;
}

.jackpot-overlay__curtain--left {
  left: 0;
}

.jackpot-overlay__curtain--right {
  right: 0;
}

/* --- Centre content --- */
.jackpot-overlay__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.jackpot-overlay__logo {
  height: 200px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.jackpot-overlay__header {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  white-space: nowrap;
}

.jackpot-overlay__value-wrapper {
  position: relative;
  display: inline-block;
}

.jackpot-overlay__value {
  font-size: 16rem;
  font-weight: 800;
  line-height: 1;
  background-image: linear-gradient(
    180deg,
    #ede380 0%,
    #e3a01c 60%,
    #c9890f 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(237, 227, 128, 0.5));
}

/* --- Particles (centered on jackpot value) --- */
.jackpot-overlay__particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}

.jackpot-overlay__particle {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.jackpot-overlay__star {
  position: absolute;
  font-size: 1.6rem;
  color: #ede380;
  text-shadow: 0 0 12px rgba(237, 227, 128, 0.8);
  will-change: transform, opacity;
  pointer-events: none;
}

/* ================================================================
   Shot Map Overlay – Today's Pin Position
   ================================================================ */

.shot-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.shot-map-overlay__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5vh;
  width: 92vw;
  height: 92vh;
}

.shot-map-overlay__heading {
  text-align: center;
}

.shot-map-overlay__header {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(237, 227, 128, 0.45);
}

.shot-map-overlay__subheader {
  margin-top: 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ede380;
  white-space: nowrap;
}

.shot-map-overlay__body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3vw;
  width: 100%;
}

.shot-map-overlay__map {
  position: relative;
  height: min(100%, 62vw);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  border: 2px solid rgba(237, 227, 128, 0.45);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  background: #0a0a12;
}

.shot-map-overlay__stage {
  position: absolute;
}

.shot-map-overlay__image,
.shot-map-overlay__markers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shot-map-overlay__image {
  object-fit: fill;
}

.shot-map-overlay__ball {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(10, 10, 18, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0a0a12;
  will-change: transform, opacity;
}

.shot-map-overlay__ball--shot {
  background: #00e5ff;
  border-color: #000;
}

.shot-map-overlay__ball--win {
  background: linear-gradient(180deg, #ede380 0%, #e3a01c 100%);
  box-shadow: 0 0 14px rgba(237, 227, 128, 0.9);
}

.shot-map-overlay__ball--off {
  filter: brightness(0.75);
  border-style: dashed;
}

.shot-map-overlay__ball--ranked {
  width: 28px;
  height: 28px;
  z-index: 3;
}

.shot-map-overlay__ball--legend {
  position: static;
  transform: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.shot-map-overlay__pin {
  position: absolute;
  width: 52px;
  height: 84px;
  transform: translate(-20%, -94%);
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.shot-map-overlay__pin svg {
  width: 100%;
  height: 100%;
  display: block;
}

.shot-map-overlay__panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: clamp(300px, 30vw, 460px);
  padding: 1.6rem;
  border-radius: 18px;
  background: rgba(17, 17, 34, 0.85);
  border: 1px solid rgba(237, 227, 128, 0.3);
}

.shot-map-overlay__panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #ede380;
}

.shot-map-overlay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.shot-map-overlay__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.2rem;
}

.shot-map-overlay__row--win {
  background: linear-gradient(
    90deg,
    rgba(237, 227, 128, 0.2) 0%,
    rgba(227, 160, 28, 0.2) 100%
  );
  border: 1px solid rgba(237, 227, 128, 0.4);
}

.shot-map-overlay__row-distance {
  font-weight: 800;
  color: #ede380;
  font-variant-numeric: tabular-nums;
}

.shot-map-overlay__note {
  margin: -0.5rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.4;
}

.shot-map-overlay__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.shot-map-overlay__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (orientation: portrait) {
  .shot-map-overlay__body {
    flex-direction: column;
    gap: 3vh;
  }

  .shot-map-overlay__map {
    height: auto;
    width: min(100%, 58vh);
  }

  .shot-map-overlay__panel {
    width: min(100%, 640px);
    max-width: none;
  }
}

/* ================================================================
   Leaderboard Overlay – Full-Screen Championship Reveal
   ================================================================ */

.lb-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* --- Curtains (reuse same dark style) --- */
.lb-overlay__curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, #0a0a12 0%, #111122 40%, #0a0a12 100%);
  z-index: 1;
  will-change: transform;
}

.lb-overlay__curtain--left {
  left: 0;
}

.lb-overlay__curtain--right {
  right: 0;
}

/* --- Content --- */
.lb-overlay__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 85%;
  max-width: 1400px;
  height: 82vh;
}

.lb-overlay__logo {
  height: 160px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.lb-overlay__header {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 2.5rem;
  white-space: nowrap;
}

.lb-overlay__season {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* Body: list + prizes side by side */
.lb-overlay__body {
  display: flex;
  gap: 2.5rem;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

/* --- Scrolling leaderboard list (no black box; transparent) --- */
.lb-overlay__list-wrapper {
  flex: 1.4;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
  background: transparent;
  border: none;
  position: relative;
}

.lb-overlay__list-inner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 1rem;
}

/* Individual row - compact so top 10 fit in view; no background except 1st */
.lb-overlay__row {
  display: flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  background: transparent;
  transition: background 0.3s;
  flex-shrink: 0;
}

.lb-overlay__row:nth-child(even) {
  background: transparent;
}

.lb-overlay__row--first {
  background: linear-gradient(
    90deg,
    rgba(237, 227, 128, 0.18) 0%,
    rgba(227, 160, 28, 0.18) 100%
  ) !important;
  border: 1px solid rgba(237, 227, 128, 0.35);
}

.lb-overlay__row-rank {
  width: 36px;
  font-weight: 800;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  flex-shrink: 0;
}

.lb-overlay__row--first .lb-overlay__row-rank {
  background-image: linear-gradient(180deg, #ede380 0%, #e3a01c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.25rem;
}

.lb-overlay__row-name {
  flex: 1;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding-left: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-overlay__row--first .lb-overlay__row-name {
  font-size: 1.1rem;
}

.lb-overlay__row-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 0.5rem;
  flex-shrink: 0;
}

.lb-overlay__badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 0.15rem 0.55rem 0.15rem 0.2rem;
}

.lb-overlay__badge-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.4));
}

.lb-overlay__badge-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.lb-overlay__row--first .lb-overlay__badge {
  background: rgba(255, 215, 0, 0.1);
}

.lb-overlay__row--first .lb-overlay__badge-img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
}

.lb-overlay__row--first .lb-overlay__badge-name {
  color: rgba(255, 215, 0, 0.85);
  font-size: 0.8rem;
}

.lb-overlay__row-pts {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  white-space: nowrap;
  padding-left: 0.75rem;
}

.lb-overlay__row--first .lb-overlay__row-pts {
  background-image: linear-gradient(180deg, #ede380 0%, #e3a01c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.05rem;
}

/* --- Prizes panel --- */
.lb-overlay__prizes {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lb-overlay__prizes-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.5rem;
  text-align: center;
}

.lb-overlay__prize-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-overlay__prize-card--first {
  background: linear-gradient(
    135deg,
    rgba(237, 227, 128, 0.14) 0%,
    rgba(227, 160, 28, 0.14) 100%
  );
  border: 1px solid rgba(237, 227, 128, 0.35);
}

.lb-overlay__prize-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.lb-overlay__prize-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.lb-overlay__prize-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.lb-overlay__prize-card--first .lb-overlay__prize-label {
  background-image: linear-gradient(180deg, #ede380 0%, #e3a01c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lb-overlay__prize-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.lb-overlay__prize-card--first .lb-overlay__prize-name {
  font-size: 1.6rem;
  background-image: linear-gradient(180deg, #ede380 0%, #e3a01c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lb-overlay__prize-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ===================================================================
   Startup loading overlay
   =================================================================== */
.startup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  transition: opacity 0.6s ease;
}

.startup-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.startup-overlay__content {
  text-align: center;
  max-width: 480px;
  padding: 2rem;
}

.startup-overlay__logo {
  height: 140px;
  width: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 24px rgba(227, 160, 28, 0.4));
}

.startup-overlay__text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.startup-overlay__progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.startup-overlay__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e3a01c, #f5c842);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.startup-overlay__status {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

/* ---------------------------------------------------------------
   Sleep overlay — shown outside operational hours
   --------------------------------------------------------------- */
.sleep-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  transition: opacity 0.6s ease;
}

.sleep-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.sleep-overlay__content {
  text-align: center;
  max-width: 520px;
  padding: 2rem;
}

.sleep-overlay__logo {
  height: 140px;
  width: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 24px rgba(227, 160, 28, 0.4));
}

.sleep-overlay__text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.sleep-overlay__subtext {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
}
