@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@600;700;800;900&display=swap");

/* Ember + black + red accents — warm neutrals (no slate/cyan) */
:root {
  --bg-body: #000000;
  --bg-nav: rgba(0, 0, 0, 0.94);
  --bg-card: rgba(12, 6, 2, 0.94);
  --accent: #ff7700;
  --accent-deep: #e65100;
  --accent-red: #ff3d00;
  --accent-light: #ffb300;
  --rgb-accent: 255, 119, 0;
  --rgb-deep: 230, 81, 0;
  --rgb-light: 255, 179, 0;
  --rgb-red: 255, 61, 0;
  --text-primary: #faf6f0;
  --text-secondary: rgba(255, 232, 210, 0.88);
  --text-muted: rgba(255, 200, 160, 0.62);
  --text-subtle: rgba(255, 170, 120, 0.45);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.35s;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1rem, 0.12vw + 0.96rem, 1.07rem);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Full-page loading overlay (index + leaderboard) */
html.site-loading-active {
  overflow: hidden;
}

.site-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.45s var(--ease-out),
    visibility 0.45s var(--ease-out);
}

.site-loading--exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loading__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(255, 85, 0, 0.24), transparent 52%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(255, 40, 0, 0.1), transparent 45%),
    radial-gradient(ellipse 70% 45% at 0% 80%, rgba(230, 81, 0, 0.08), transparent 42%),
    #000000;
}

.site-loading__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 119, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 119, 0, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.site-loading__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.site-loading__logo-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-loading__ring {
  position: absolute;
  inset: -4px;
  z-index: 0;
  border-radius: 50%;
  border: 2px solid rgba(var(--rgb-accent), 0.2);
  border-top-color: var(--accent-light);
  border-right-color: rgba(var(--rgb-accent), 0.55);
  animation: siteLoadingSpin 0.95s linear infinite;
}

.site-loading__logo {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(var(--rgb-accent), 0.5));
  animation: siteLoadingLogoPulse 2.1s ease-in-out infinite;
}

.site-loading__text {
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
  text-shadow: 0 0 20px rgba(var(--rgb-accent), 0.25);
}

@keyframes siteLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes siteLoadingLogoPulse {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loading__ring,
  .site-loading__logo {
    animation: none;
  }

  .site-loading {
    transition-duration: 0.12s;
  }
}

.hero-title,
.leaderboard-title,
.bonuses-heading,
.timer-label {
  font-family: "Outfit", "Inter", system-ui, sans-serif;
}

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.leaderboard-btn:focus-visible,
.discord-btn:focus-visible,
.affiliate-btn:focus-visible,
.control-btn:focus-visible,
.lb-site-select__trigger:focus-visible {
  outline: 2px solid rgba(var(--rgb-accent), 0.95);
  outline-offset: 3px;
}

/* Background — true black + soft ember halo */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(255, 85, 0, 0.14), transparent 52%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(255, 40, 0, 0.06), transparent 45%),
    radial-gradient(ellipse 70% 45% at 0% 80%, rgba(230, 81, 0, 0.07), transparent 42%),
    #000000;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: none;
}

/* Decorative weapon skins — 2 left / 2 right, gentle vertical float */
.floating-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-bg__img {
  position: absolute;
  width: clamp(120px, 18.5vw, 255px);
  height: auto;
  object-fit: contain;
  opacity: 0.4;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.65));
  will-change: transform;
  /* Rotation wobble paired with vertical bob (see --bob-tilt per slot) */
  --bob-tilt: 4deg;
  /* One shared rhythm — same duration, delay, easing for all */
  animation: floatingBgBob 7s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  animation-delay: 0s;
  transform-origin: 55% 48%;
}

/* Flip: left column mirrored */
.floating-bg__img--left {
  --flip-x: -1;
}

.floating-bg__img--right {
  --flip-x: 1;
}

/* Slots: top/mid each side — left-mid uses former bottom-right asset (floating6), mirrored */
.floating-bg__img--left-top {
  left: clamp(0.15rem, 1.6vw, 1.1rem);
  top: clamp(6.5rem, 17vh, 22%);
  width: clamp(140px, 21.5vw, 298px);
}

.floating-bg__img--left-mid {
  left: clamp(1.35rem, 7.2vw, 5.2rem);
  top: 47%;
  width: clamp(148px, 22vw, 308px);
}

.floating-bg__img--right-top {
  right: clamp(0.35rem, 2.1vw, 1.45rem);
  top: clamp(6.75rem, 17.5vh, 22.5%);
  width: clamp(125px, 19vw, 268px);
}

.floating-bg__img--right-mid {
  right: clamp(1.45rem, 7.8vw, 5rem);
  top: 48%;
  width: clamp(152px, 23vw, 312px);
}

.floating-bg__img--left-top {
  --bob-rot: -11deg;
  --bob-x: 6px;
  --bob-tilt: 5deg;
}

.floating-bg__img--left-mid {
  --bob-rot: 5deg;
  --bob-x: -8px;
  --bob-tilt: 3.5deg;
}

.floating-bg__img--right-top {
  --bob-rot: 13deg;
  --bob-x: -5px;
  --bob-tilt: 4.5deg;
}

.floating-bg__img--right-mid {
  --bob-rot: -9deg;
  --bob-x: 10px;
  --bob-tilt: 4deg;
}

@keyframes floatingBgBob {
  0%,
  100% {
    transform: translate(var(--bob-x, 0px), 0)
      rotate(calc(var(--bob-rot, 0deg) - var(--bob-tilt, 4deg)))
      scaleX(var(--flip-x, 1));
  }
  50% {
    transform: translate(var(--bob-x, 0px), -24px)
      rotate(calc(var(--bob-rot, 0deg) + var(--bob-tilt, 4deg)))
      scaleX(var(--flip-x, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-bg__img {
    animation: none;
    transform: translate(var(--bob-x, 0px), 0) rotate(var(--bob-rot, 0deg)) scaleX(var(--flip-x, 1));
  }
}

@media (max-width: 640px) {
  .floating-bg__img {
    opacity: 0.3;
  }

  .floating-bg__img--left-top {
    width: clamp(90px, 29vw, 185px);
    left: clamp(0.1rem, 1.5vw, 0.75rem);
    top: clamp(6.1rem, 19.5vh, 24%);
  }

  .floating-bg__img--left-mid {
    width: clamp(94px, 31vw, 190px);
    left: clamp(0.75rem, 5.5vw, 2.2rem);
    top: 47.5%;
  }

  .floating-bg__img--right-top {
    width: clamp(84px, 28vw, 172px);
    right: clamp(0.2rem, 1.8vw, 1rem);
    top: clamp(6.25rem, 20vh, 24.5%);
  }

  .floating-bg__img--right-mid {
    width: clamp(96px, 32vw, 194px);
    right: clamp(0.7rem, 5.8vw, 2.1rem);
    top: 48.5%;
  }
}

/* Floating Images (legacy / optional) */
.floating-image {
  position: fixed;
  pointer-events: none;
  z-index: -2;
  opacity: 0.45;
  filter: drop-shadow(0 0 28px rgba(var(--rgb-accent), 0.55));
  transition: transform 0.1s ease-out, filter 0.5s ease-in-out;
}

@keyframes floatingImageGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 18px rgba(var(--rgb-accent), 0.4));
  }
  50% {
    filter: drop-shadow(0 0 42px rgba(var(--rgb-light), 0.65));
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-nav);
  backdrop-filter: blur(25px);
  z-index: 1000;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(var(--rgb-accent), 0.42);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 100, 0, 0.08);
  transition: border-color var(--dur-med) var(--ease-smooth), box-shadow var(--dur-med) var(--ease-smooth);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo-group {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  transition: all 0.4s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  background: rgba(var(--rgb-deep), 0.18);
  border-radius: 25px;
  border: 2px solid rgba(var(--rgb-deep), 0.35);
  transition:
    color var(--dur-med) var(--ease-smooth),
    background var(--dur-med) var(--ease-smooth),
    border-color var(--dur-med) var(--ease-smooth),
    transform var(--dur-med) var(--ease-smooth),
    box-shadow var(--dur-med) var(--ease-smooth);
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--rgb-light), 0.45), transparent);
  transition: left 0.6s ease;
  z-index: 0;
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(var(--rgb-deep), 0.3); /* Changed from orange */
  border-color: rgba(var(--rgb-accent), 0.75);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 28px rgba(var(--rgb-deep), 0.45), 0 0 28px rgba(var(--rgb-accent), 0.35);
  color: #fff;
}

/* Neon Effects */
.neon-text {
  color: var(--accent-light);
  text-shadow: 0 0 14px rgba(var(--rgb-accent), 0.55), 0 0 32px rgba(var(--rgb-accent), 0.3);
}

.neon-border {
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(var(--rgb-accent), 0.45), inset 0 0 16px rgba(var(--rgb-accent), 0.12);
  position: relative;
}

.neon-btn {
  background: linear-gradient(135deg, rgba(var(--rgb-accent), 0.2), rgba(var(--rgb-light), 0.1));
  border: 2px solid var(--accent);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.neon-btn:hover {
  background: linear-gradient(135deg, rgba(var(--rgb-accent), 0.5), rgba(var(--rgb-light), 0.28));
  box-shadow: 0 0 36px rgba(var(--rgb-accent), 0.5), inset 0 0 20px rgba(var(--rgb-accent), 0.1);
  transform: translateY(-3px);
}

/* Main Content */
.main-content {
  margin-top: 90px;
  min-height: 100vh;
  padding: 2rem;
  flex: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .main-content,
  .leaderboard-main {
    animation: pageEnter 0.55s var(--ease-out) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-content,
  .leaderboard-main {
    animation: none;
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #ffcc80 22%, var(--accent) 42%, var(--accent-deep) 52%, #ff9800 62%, #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  line-height: 1.1;
  text-align: center;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
  text-align: center;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 3rem;
  text-shadow: 0 0 20px rgba(var(--rgb-accent), 0.2), 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* Content Grid - Stacked Layout */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Sign Up Card — backlit amber radial (bonus-card reference) */
.signup-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 110% 75% at 50% -12%, rgba(255, 140, 0, 0.38), transparent 55%),
    radial-gradient(ellipse 90% 45% at 50% 108%, rgba(230, 81, 0, 0.12), transparent 50%),
    linear-gradient(168deg, rgba(16, 8, 2, 0.97) 0%, rgba(0, 0, 0, 0.94) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--rgb-accent), 0.45);
  border-radius: 20px;
  padding: 2rem;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.85),
    0 0 80px rgba(var(--rgb-accent), 0.14),
    inset 0 1px 0 rgba(255, 200, 100, 0.18);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.signup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  z-index: -1;
}

.shock-section {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.shock-logo {
  max-height: 150px; /* Limits max height, but allows shrinking */
  width: auto; /* Ensures aspect ratio is maintained */
  max-width: 100%; /* <--- ADD THIS - CRUCIAL FOR RESPONSIVENESS */
  margin-bottom: 1.5rem;
  border-radius: 1rem;
}

.exclusive-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-light)); /* Changed from orange */
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 0 22px rgba(var(--rgb-accent), 0.55), 0 4px 16px rgba(0, 0, 0, 0.5);
}
/* --- Add this media query to fix the badge on mobile --- */
@media (max-width: 500px) {
  .exclusive-badge {
    scale: 0.7;
    margin-top: -5px;
    margin-right: -5px;
  }
}

.casino-tagline {
  color: var(--accent-light);
  font-size: 1.32rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(var(--rgb-deep), 0.05); /* Changed from orange */
  border: 1px solid rgba(var(--rgb-deep), 0.15); /* Changed from orange */
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-deep), var(--accent-light)); /* Changed from orange */
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.benefit-item:hover::before {
  transform: scaleY(1);
}

.benefit-item:hover {
  background: rgba(var(--rgb-deep), 0.1); /* Changed from orange */
  border-color: rgba(var(--rgb-deep), 0.3); /* Changed from orange */
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(var(--rgb-deep), 0.15); /* Changed from orange */
}

.benefit-icon {
  font-size: 1.5rem;
  min-width: 30px;
  color: var(--accent-deep); /* Changed from orange */
  text-align: center;
}

.benefit-text {
  flex: 1;
}

.benefit-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.benefit-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.signup-cta {
  text-align: center;
}

.cta-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.affiliate-btn {
  border-radius: 16px;
  width: 100%;
  padding: 1.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 38%, var(--accent-deep) 100%);
  border: 1px solid rgba(255, 200, 120, 0.35);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(var(--rgb-deep), 0.55), 0 0 40px rgba(var(--rgb-accent), 0.2);
}

.affiliate-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%; /* start slightly outside but not entire width */
  width: 40%; /* make it a band instead of full width */
  height: 100%;
  border-radius: inherit; /* clip corners same as button */
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transition: left 0.6s ease;
}

.affiliate-btn:hover::before {
  left: 100%; /* animates across smoothly */
}

.affiliate-btn:hover {
  background: linear-gradient(135deg, #ffc107, var(--accent) 40%, var(--accent-deep));
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(var(--rgb-deep), 0.65), 0 0 56px rgba(var(--rgb-accent), 0.38);
}

.btn-lightning {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.affiliate-btn:hover .btn-lightning {
  left: 100%;
}

/* CTA Buttons Section */
.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.leaderboard-cta,
.discord-cta {
  text-align: center;
}

.leaderboard-btn,
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.4s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.leaderboard-btn {
  background: linear-gradient(135deg, rgba(var(--rgb-accent), 0.35), rgba(var(--rgb-deep), 0.2));
  border: 2px solid var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(var(--rgb-accent), 0.15);
}

.leaderboard-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--rgb-light), 0.4), transparent);
  transition: left 0.6s ease;
}

.leaderboard-btn:hover::before {
  left: 100%;
}

.leaderboard-btn:hover {
  background: linear-gradient(135deg, rgba(var(--rgb-accent), 0.65), rgba(var(--rgb-light), 0.35));
  box-shadow: 0 0 40px rgba(var(--rgb-accent), 0.45), 0 10px 32px rgba(var(--rgb-deep), 0.35);
  transform: translateY(-3px) scale(1.05);
}

.discord-btn {
  background: linear-gradient(135deg, rgba(var(--rgb-deep), 0.2), rgba(var(--rgb-light), 0.1)); /* Changed from orange */
  border: 2px solid var(--accent-deep); /* Changed from orange */
  color: #fff;
}

.discord-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--rgb-light), 0.16), transparent);
  transition: left 0.6s ease;
}

.discord-btn:hover::before {
  left: 100%;
}

.discord-btn:hover {
  background: linear-gradient(135deg, rgba(var(--rgb-deep), 0.55), rgba(var(--rgb-accent), 0.3));
  box-shadow: 0 0 36px rgba(var(--rgb-accent), 0.35), 0 10px 28px rgba(var(--rgb-deep), 0.3);
  transform: translateY(-3px) scale(1.05);
}

.btn-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.leaderboard-btn:hover .btn-arrow,
.discord-btn:hover .btn-arrow {
  transform: translateX(8px);
}

/* Stream Section */
.stream-section {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  padding: 1.5rem;
  border-radius: 24px;
  background: radial-gradient(ellipse 85% 55% at 50% 0%, rgba(255, 120, 0, 0.1), transparent 58%),
    rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(var(--rgb-accent), 0.22);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5), 0 0 48px rgba(var(--rgb-accent), 0.06);
}

.stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stream-header h3 {
  color: var(--accent-light);
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(var(--rgb-accent), 0.35);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(var(--rgb-red), 0.22);
  border: 1px solid var(--accent-red);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: livePulse 1s ease-in-out infinite;
}
.dot-offline {
  animation: none !important;
  background-color: rgba(120, 90, 75, 0.85) !important;
}

.embed-container {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 120, 0, 0.12), #000);
  border: 1px solid rgba(var(--rgb-accent), 0.55);
  box-shadow: 0 0 48px rgba(var(--rgb-accent), 0.12), inset 0 0 0 1px rgba(255, 180, 80, 0.08);
}

.embed-container iframe {
  width: 100%;
  height: 100%;
}

.stream-offline-msg {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stream-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid rgba(var(--rgb-accent), 0.45);
}

.viewer-count {
  color: var(--accent);
  font-weight: 700;
}

/* Leaderboard Page */
.leaderboard-main {
  margin-top: 90px;
  padding: 2rem;
  min-height: 100vh;
  flex: 1;
}

.leaderboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Leaderboard: site dropdown (trigger + 2-col grid panel) */
.lb-partners-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.75rem;
  padding: 0 0.75rem;
}

.lb-site-select {
  position: relative;
  width: 100%;
  max-width: min(100%, 22rem);
  z-index: 200;
}

.lb-site-select__trigger {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  min-height: 3.75rem;
  border: 1px solid rgba(var(--rgb-accent), 0.28);
  border-radius: 14px;
  background: linear-gradient(
    165deg,
    rgba(28, 10, 4, 0.98) 0%,
    rgba(8, 3, 0, 0.99) 45%,
    rgba(0, 0, 0, 0.98) 100%
  );
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 90, 0, 0.06),
    inset 0 1px 0 rgba(255, 160, 80, 0.1);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    background var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast) var(--ease-smooth);
}

.lb-site-select__trigger:hover {
  border-color: rgba(var(--rgb-accent), 0.45);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(var(--rgb-accent), 0.12);
}

.lb-site-select.is-open .lb-site-select__trigger {
  border-color: rgba(var(--rgb-accent), 0.55);
}

.lb-site-select__trigger-logo {
  flex-shrink: 0;
  width: clamp(80%, 10vw, 4.75rem);
  height: clamp(3.25rem, 10vw, 4.75rem);
  max-width: 100%;
  object-fit: contain;
  object-position: center left;
  pointer-events: none;
}

.lb-site-select__chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 220, 190, 0.92);
  font-size: 1.125rem;
  transform-origin: center center;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.45, 0.55, 1),
    color 0.3s ease;
  pointer-events: none;
}

.lb-site-select__chevron i {
  display: block;
  transition: transform 0.45s cubic-bezier(0.34, 1.45, 0.55, 1);
}

.lb-site-select.is-open .lb-site-select__chevron {
  transform: rotate(180deg);
  color: rgba(var(--rgb-light), 0.95);
}

.lb-site-select.is-open .lb-site-select__chevron i {
  animation: lbChevronPop 0.55s cubic-bezier(0.34, 1.6, 0.52, 1) both;
}

@keyframes lbChevronPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.28);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-site-select__chevron,
  .lb-site-select__chevron i {
    transition-duration: 0.12s;
    animation: none !important;
  }
}

.lb-site-select__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.55rem);
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--rgb-accent), 0.22);
  background: linear-gradient(168deg, rgba(22, 8, 2, 0.98) 0%, rgba(0, 0, 0, 0.97) 100%);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 60, 0, 0.06),
    inset 0 1px 0 rgba(255, 140, 60, 0.08);
}

.lb-site-select__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.55rem;
}

.lb-site-select__grid .lb-partner-slot {
  flex: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  padding: 0.5rem 0.45rem;
  line-height: 0;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.15s ease;
  position: relative;
}

.lb-site-select__grid .lb-partner-slot:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lb-site-select__grid .lb-partner-slot:active {
  transform: scale(0.98);
}

.lb-partner-logo {
  display: block;
  height: clamp(20px, 4vw, 26px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.42;
  filter: grayscale(0.12) brightness(1.05);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.lb-site-select__grid .lb-partner-slot:hover .lb-partner-logo {
  opacity: 0.75;
  filter: grayscale(0) brightness(1.08);
}

.lb-site-select__grid .lb-partner-slot.is-active .lb-partner-logo {
  opacity: 1;
  filter: grayscale(0) brightness(1.12) drop-shadow(0 0 10px rgba(255, 200, 90, 0.35));
}

.lb-site-select__grid .lb-partner-slot.is-active {
  background: rgba(255, 120, 40, 0.12);
  box-shadow: inset 0 -2px 0 rgba(var(--rgb-accent), 0.85);
}

/* Stronger than .lb-partner-slot { display: flex } so admin-disabled affiliates actually disappear */
.lb-site-select__grid .lb-partner-slot[hidden] {
  display: none !important;
}

/* Leaderboard header: title, promo, timer, controls (site selector is outside this stack) */
.lb-header-stack {
  width: 100%;
  max-width: min(100%, 26rem);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

.lb-header-stack .lb-source-notice:not([hidden]) {
  margin-bottom: 0.1rem;
}

.lb-promo {
  text-align: center;
  margin: 0;
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.45;
}

.lb-promo strong {
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 45%, var(--accent-deep));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leaderboard-title {
  text-align: center;
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.35rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.leaderboard-title #lbHeadingLine {
  display: block;
  line-height: 1.12;
}

.prize-amount {
  margin-bottom: -1rem;
  font-size: clamp(2.4rem, 8vw, 4rem);
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 45%, var(--accent-deep));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(var(--rgb-accent), 0.5));
}

/* Timer */
.timer-container {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timer-container.hidden {
  opacity: 0;
  transform: translateY(-50px);
  height: 0;
  margin: 0;
  overflow: hidden;
}

.timer {
  background:
    radial-gradient(ellipse 100% 90% at 50% -40%, rgba(255, 140, 0, 0.22), transparent 55%),
    var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 1rem 1.35rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(var(--rgb-accent), 0.5);
  box-shadow: 0 0 28px rgba(var(--rgb-accent), 0.2), 0 12px 32px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.timer-label {
  color: var(--accent);
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  font-weight: 700;
  margin-bottom: 0.45rem;
  letter-spacing: 0.16em;
}

.timer-display {
  font-size: clamp(1.45rem, 4.5vw, 2.05rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1.15;
}

/* Controls */
.leaderboard-controls {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.control-btn {
  flex: 1;
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  letter-spacing: 0.06em;
  transition: all var(--dur-med) var(--ease-smooth);
  background: rgba(var(--rgb-deep), 0.22);
  border: 2px solid rgba(var(--rgb-accent), 0.42);
  color: var(--text-secondary);
  font-weight: 600;
}

.control-btn.active {
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 40%, var(--accent-deep));
  border-color: rgba(var(--rgb-accent), 0.95);
  color: #fff;
  box-shadow: 0 0 28px rgba(var(--rgb-accent), 0.45);
}

.control-btn:hover {
  background: rgba(var(--rgb-deep), 0.35);
  border-color: rgba(var(--rgb-accent), 0.65);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--rgb-accent), 0.25);
}

/* Podium Section */
.podium-section {
  margin-bottom: 4rem;
}

.podium-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-end;
  perspective: 1000px;
}

/* Dramatic 3D hover animations for top 3 cards */
.podium-card {
  background:
    radial-gradient(ellipse 95% 55% at 50% -8%, rgba(255, 130, 0, 0.2), transparent 52%),
    rgba(8, 4, 0, 0.94);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(var(--rgb-accent), 0.42);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-width: 0;
}

.podium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(var(--rgb-accent), 0.22), rgba(var(--rgb-light), 0.08));
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.podium-card:hover::before {
  opacity: 1;
}

.podium-card:hover {
  transform: translateY(-15px) scale(1.08);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.65),
    0 0 56px rgba(var(--rgb-accent), 0.35),
    0 0 100px rgba(var(--rgb-deep), 0.15);
  border-color: rgba(var(--rgb-accent), 0.85);
}

.first-place {
  transform: scale(1.1);
  background: rgba(251, 191, 36, 0.1) !important;
  border: 2px solid #fbbf24;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
  min-height: 400px;
}

.first-place:hover {
  transform: scale(1.13) translateY(-15px);
  box-shadow: 0 25px 50px rgba(251, 191, 36, 0.4), 0 0 80px rgba(251, 191, 36, 0.2);
}

.second-place {
  background: rgba(255, 160, 120, 0.08) !important;
  border: 2px solid rgba(255, 190, 160, 0.45);
  box-shadow: 0 0 24px rgba(255, 140, 100, 0.18);
  min-height: 350px;
}

.second-place:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 120, 80, 0.22), 0 0 48px rgba(255, 100, 60, 0.12);
}

.third-place {
  background: rgba(205, 127, 50, 0.1) !important;
  border: 2px solid #cd7f32;
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.2);
  min-height: 300px;
}

.third-place:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 35px rgba(205, 127, 50, 0.3), 0 0 50px rgba(205, 127, 50, 0.1);
}

/* Quarter-disc in top-right corner (circle center = card corner) */
.rank-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: clamp(4rem, 12vw, 5.5rem);
  height: clamp(4rem, 12vw, 5.5rem);
  margin: 0;
  border-radius: 0 0 0 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0.5rem 0.65rem 0 0;
  font-size: clamp(1.05rem, 3.2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  box-sizing: border-box;
  pointer-events: none;
  background: linear-gradient(155deg, #ffb500, #e65100);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: -2px 4px 16px rgba(255, 140, 0, 0.35);
}

.first-place .rank-badge {
  background: linear-gradient(155deg, #ffe066, #ffb300 45%, #d97706);
  color: #1a0d00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: -2px 5px 18px rgba(255, 200, 60, 0.45);
}

.second-place .rank-badge {
  background: linear-gradient(155deg, #f3f4f6, #9ca3af 55%, #6b7280);
  color: #1f2937;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow: -2px 4px 14px rgba(180, 190, 200, 0.35);
}

.third-place .rank-badge {
  background: linear-gradient(155deg, #e8a87c, #cd7f32 50%, #8b4513);
  color: #fff;
  box-shadow: -2px 4px 14px rgba(205, 127, 50, 0.4);
}

.rank-badge--empty {
  background: linear-gradient(155deg, #404040, #2a2a2a) !important;
  color: #888 !important;
  text-shadow: none !important;
  box-shadow: -1px 3px 10px rgba(0, 0, 0, 0.4) !important;
}

.rank-badge.champion {
  /* kept if JS adds class; mirror first-place */
  background: linear-gradient(155deg, #ffe066, #ffb300 45%, #d97706);
  color: #1a0d00;
}

.player-avatar {
  margin-bottom: 1.5rem;
  position: relative;
  width: 110px;
  height: 110px;
  margin-left: auto;
  margin-right: auto;
}

.avatar-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(var(--rgb-accent), 0.55), inset 0 0 10px rgba(var(--rgb-deep), 0.25);
}

.champion-ring {
  border-color: #ffd700;
  border-width: 4px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.7), inset 0 0 15px rgba(255, 215, 0, 0.4);
}

.avatar-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-red));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Photos: do NOT use transform to center — it blurs upscaled images on many GPUs. */
.player-avatar .avatar-img.avatar-img--photo {
  transform: none;
  margin: -45px 0 0 -45px;
  padding: 0;
  overflow: hidden;
  background: rgba(12, 5, 2, 0.98);
  display: block;
}

.player-avatar .avatar-img.avatar-img--photo .lb-avatar-photo-img {
  width: 90px;
  height: 90px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: top;
}

.player-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.podium-card .player-name {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champion-name {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.player-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-stat {
  background: rgba(var(--rgb-accent), 0.12);
  border-color: rgba(var(--rgb-accent), 0.38);
}

.champion-prize {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}

.champion-prize .stat-value {
  color: #ffd700;
}


/* Footer - Improved and Cleaner */
.footer {
  background: #000000;
  border-top: 2px solid rgba(var(--rgb-accent), 0.45);
  box-shadow: 0 -12px 48px rgba(var(--rgb-accent), 0.06);
  padding: 2rem;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.social-icon {
  color: #fff;
  font-size: 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 50%;
  background: rgba(var(--rgb-accent), 0.1);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.social-icon:hover {
  color: var(--accent-light);
  background: rgba(var(--rgb-accent), 0.28);
  border-color: var(--accent);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 32px rgba(var(--rgb-accent), 0.4);
}

.social-icon.discord-icon:hover {
  color: #5865f2;
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.14);
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.38);
}

.social-icon.twitter-icon:hover {
  color: #1d9bf0;
  border-color: rgba(29, 155, 240, 0.5);
  background: rgba(29, 155, 240, 0.1);
  box-shadow: 0 12px 32px rgba(29, 155, 240, 0.32);
}

.social-icon.youtube-icon:hover {
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.45);
  background: rgba(255, 0, 0, 0.1);
  box-shadow: 0 12px 32px rgba(255, 0, 0, 0.28);
}

.email-icon:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 12px 32px rgba(var(--rgb-light), 0.35);
}

.footer-text {
  text-align: center;
  margin-top: 10px;
}

.footer-text p {
  font-size: 0.92rem;
  color: var(--text-subtle);
  margin: 0;
}

.gamble-aware-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.gamble-aware-link:hover {
  color: var(--accent-light);
  text-shadow: 0 0 14px rgba(var(--rgb-accent), 0.45);
}

.made-by {
  font-size: 0.88rem;
  color: var(--text-subtle);
  margin-top: 0.5rem;
  font-weight: 500;
}

.heart {
  color: #ff4757;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}

.creator {
  color: var(--accent);
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.creator:hover {
  color: var(--accent-light);
  text-shadow: 0 0 14px rgba(var(--rgb-accent), 0.45);
}

/* Animations */
@keyframes waveMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatParticles {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(-40px) translateX(-5px);
  }
}

@keyframes championGlow {
  0% {
    filter: brightness(1) saturate(1);
  }
  100% {
    filter: brightness(1.2) saturate(1.3);
  }
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(-60px) rotate(240deg);
  }
}

@keyframes logoGlow {
  0% {
    box-shadow: 0 0 22px rgba(var(--rgb-accent), 0.4);
  }
  100% {
    box-shadow: 0 0 36px rgba(var(--rgb-accent), 0.55);
  }
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes crownFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes avatarSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(var(--rgb-accent), 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(var(--rgb-accent), 0.5), 0 0 36px rgba(var(--rgb-accent), 0.28);
  }
  100% {
    box-shadow: 0 8px 25px rgba(var(--rgb-accent), 0.3);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes titleGlow {
  0%,
  100% {
    filter: brightness(1) saturate(1.08) drop-shadow(0 0 22px rgba(var(--rgb-accent), 0.45))
      drop-shadow(0 0 48px rgba(var(--rgb-deep), 0.2));
  }
  50% {
    filter: brightness(1.1) saturate(1.2) drop-shadow(0 0 36px rgba(var(--rgb-accent), 0.6))
      drop-shadow(0 0 72px rgba(var(--rgb-light), 0.25));
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .podium-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .first-place {
    order: -1;
    transform: none;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo-group {
    gap: 0.5rem;
  }



  .main-content,
  .leaderboard-main {
    padding: 1rem;
  }

  .stream-section {
    padding: 2rem;
    max-width: 100%;
  }

  .footer-links {
    gap: 1.5rem;
  }

  .social-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .footer-text p {
    font-size: 0.8rem;
  }

  .timer {
    padding: 0.95rem 1.15rem;
    border-radius: 16px;
  }

  .timer-label {
    font-size: 0.76rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.14em;
  }

  .timer-display {
    font-size: clamp(1.3rem, 4.5vw, 1.85rem);
    line-height: 1.2;
  }

  .leaderboard-table {
    margin: 0 -0.5rem 1rem -0.5rem;
    border-radius: 15px;
    margin: 0.5%;
  }

  .leaderboard-container {
    padding-bottom: 1rem;
  }

  .leaderboard-main {
    margin-top: 90px;
    padding: 1rem 1rem 1rem 1rem;
    min-height: auto;
    flex: 1;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.8rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .podium-section {
    margin-bottom: 1.5rem;
  }

  .lb-header-stack {
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .leaderboard-controls {
    gap: 0.55rem;
  }

  .control-btn {
    padding: 0.65rem 0.65rem;
    font-size: 0.88rem;
  }

  .leaderboard-title {
    font-size: clamp(1.5rem, 5vw, 2.35rem);
    padding: 0 0.35rem;
  }

  .prize-amount {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }

  .leaderboard-btn,
  .discord-btn {
    padding: 1.2rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 550px) {
  .logo {
   
    margin-top: -5px;
  }
}

@media (max-width: 480px) {
  .leaderboard-main {
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  }

  .leaderboard-container {
    padding-bottom: 0.5rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.7rem 0.3rem;
    line-height: 1.5;
  }

  .timer-display {
    font-size: 1.5rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 1rem 0.3rem;
    font-size: 0.7rem;
  }

  .rank-number {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }

  .username,
  .wagered,
  .prize {
    font-size: 0.75rem;
  }

  .leaderboard-table th:nth-child(2),
  .leaderboard-table td:nth-child(2) {
    width: 30%;
  }

  .leaderboard-table th:nth-child(3),
  .leaderboard-table td:nth-child(3) {
    width: 27.5%;
  }



  .nav-menu {
    gap: 1rem;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .leaderboard-title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    padding: 0 0.2rem;
    margin-bottom: 0;
  }

  .lb-header-stack {
    gap: 0.65rem;
    margin-bottom: 1.75rem;
    padding: 0 0.35rem;
  }

  .prize-amount {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }

  .footer-links {
    gap: 1rem;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 360px) {
  .leaderboard-title {
    font-size: clamp(1.25rem, 6.5vw, 1.75rem);
  }

  .prize-amount {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }
}
.affiliate-btn,
.leaderboard-btn,
.discord-btn {
  position: relative;
  overflow: hidden; /* keeps shine inside */
  /* or 50px for round ones */
}

/* --- Add this to fix leaderboard table spacing on mobile --- */

@media (max-width: 768px) {
  /* Add more padding to the first column (left side) */
  .leaderboard-table th:first-child,
  .leaderboard-table td:first-child {
    padding-left: 1rem;
  }

  /* Add more padding to the last column (right side) */
  .leaderboard-table th:last-child,
  .leaderboard-table td:last-child {
    padding-right: 1rem;
  }
}

/* --- Rules Popup Styles --- */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.popup-content {
  position: relative;
  background: radial-gradient(ellipse 100% 70% at 50% -20%, rgba(255, 120, 0, 0.18), #0a0400);
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.02rem;
  animation: fadeInScale 0.4s var(--ease-out);
  border: 1px solid rgba(var(--rgb-accent), 0.38);
  box-shadow: 0 0 56px rgba(var(--rgb-accent), 0.14), 0 24px 48px rgba(0, 0, 0, 0.65);
}

.popup-content h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.popup-content p {
  margin-bottom: 1rem;
}

.popup-content ul {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 1rem;
}

.popup-content li {
  margin-bottom: 0.5rem;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
  color: var(--accent-deep); /* Changed from orange */
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* --- New Rules Button Styles --- */

.rules-button-container {
  text-align: center;
  margin: 0;
  min-height: 0;
}

.rules-btn-new {
  background: transparent;
  border: 2px solid rgba(var(--rgb-accent), 0.55);
  color: var(--accent-light);
  padding: 0.6rem 1.5rem;
  border-radius: 50px; /* Pill shape */
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.rules-btn-new .fa-info-circle {
  transition: transform 0.3s ease;
}

/* On hover, it comes to life */
.rules-btn-new:hover {
  background: rgba(var(--rgb-accent), 0.18);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(var(--rgb-accent), 0.35);
}

.rules-btn-new:hover .fa-info-circle {
  transform: rotate(15deg);
}

/* --- Add this to make the rules popup responsive on mobile --- */

@media (max-width: 768px) {
  .popup-content {
    /* Ensure popup never exceeds 85% of the screen height */
    max-height: 85vh; 
    
    /* Use flexbox to separate header from scrollable body */
    display: flex;
    flex-direction: column;
  }

  .popup-rules-body {
    /* This makes the rules area scrollable if it overflows */
    overflow-y: auto; 
    
    /* A little padding on the right to keep text away from the scrollbar */
    padding-right: 1rem;
  }
}

/* Find this section in your styles.css (around line 1090-1145) and replace it with this: */

/* Leaderboard Table */
.leaderboard-table {
  background:
    linear-gradient(180deg, rgba(255, 100, 0, 0.07) 0%, transparent 42%),
    linear-gradient(135deg, rgba(10, 3, 0, 0.97), rgba(0, 0, 0, 0.94));
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 64px rgba(var(--rgb-accent), 0.1), 0 20px 50px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(var(--rgb-accent), 0.25);
}

.mobile-cards {
  display: none;
}

.desktop-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  background: rgba(var(--rgb-accent), 0.18);
  padding: 1.5rem;
  text-align: left;
  color: var(--accent-light);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(var(--rgb-accent), 0.65);
}

.leaderboard-table td {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(var(--rgb-accent), 0.2);
  transition: all 0.3s ease;
}

.leaderboard-table tbody tr {
  background: rgba(10, 5, 4, 0.65);
  border-bottom: 1px solid rgba(var(--rgb-deep), 0.2);
}

.leaderboard-table tr:hover {
  background: rgba(var(--rgb-accent), 0.1);
  transform: scale(1.02);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-red));
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1rem;
}

.username {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.wagered {
  color: var(--text-muted);
  font-weight: 600;
}

.prize {
  background: linear-gradient(135deg, #ff5500, #f59e0b);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 900;
  display: inline-block;
}

/* Mobile Cards */
@media (max-width: 768px) {
  .desktop-table {
    display: none;
  }

  .mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .leaderboard-card {
    background: rgba(12, 6, 5, 0.92);
    border: 1px solid rgba(var(--rgb-deep), 0.3);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
  }

  .leaderboard-card:hover {
    background: rgba(var(--rgb-accent), 0.1);
    border-color: rgba(var(--rgb-accent), 0.5);
    transform: translateX(5px);
  }

  .card-rank {
    flex-shrink: 0;
  }

  .rank-number-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-red));
    color: #fff;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1rem;
  }

  .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .card-username {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
  }

  .card-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .card-label {
    color: var(--text-muted);
  }

  .card-value {
    color: var(--text-secondary);
    font-weight: 600;
  }

  .card-prize {
    flex-shrink: 0;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.95rem;
  }
}

/* ========== Bonus deck (swipeable stack, cycles to back) ========== */
.bonuses-section {
  text-align: center;
  width: 100%;
}

.bonuses-heading {
  font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
  background: linear-gradient(120deg, #fff8f0 0%, var(--accent-light) 35%, var(--accent) 55%, var(--accent-deep) 78%, #ffb300 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(var(--rgb-accent), 0.45)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.bonuses-sub {
  color: rgba(255, 210, 170, 0.92);
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 0 0 20px rgba(var(--rgb-accent), 0.2);
}

.bonus-deck-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  /* Absolute cards don’t expand the box — min-height fits one full card; stack offsets are small in JS */
  min-height: 480px;
  padding-bottom: 0.75rem;
  margin: 0 auto;
  box-sizing: border-box;
  perspective: 1280px;
  perspective-origin: 50% 12%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.bonus-deck-wrap:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--rgb-accent), 0.55);
  border-radius: 24px;
}

.bonus-deck-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
  transform-origin: 50% 100%;
  border-radius: 20px;
  padding: 1.05rem 1.1rem 1rem;
  box-sizing: border-box;
  /* Opaque base stops text from stacked cards bleeding through */
  background-color: #0a0704;
  background-image:
    radial-gradient(ellipse 100% 72% at 50% -14%, rgba(255, 140, 0, 0.36), transparent 54%),
    linear-gradient(168deg, rgba(16, 8, 2, 0.98) 0%, rgba(0, 0, 0, 0.94) 100%);
  border: 1px solid rgba(var(--rgb-accent), 0.48);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.65),
    0 0 36px rgba(var(--rgb-accent), 0.08),
    inset 0 1px 0 rgba(255, 200, 100, 0.16);
  transition:
    transform 0.45s cubic-bezier(0.33, 1.24, 0.64, 1),
    box-shadow 0.35s ease;
  will-change: transform;
}

.bonus-deck-card--top {
  isolation: isolate;
  cursor: grab;
}

.bonus-deck-card--top:active {
  cursor: grabbing;
}

.bonus-deck-card--dragging {
  transition: none !important;
  cursor: grabbing !important;
}

.bonus-card-logo {
  width: 100%;
  height: 72px;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
}

.bonus-card-logo-img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.bonus-card-logo--placeholder {
  background: rgba(0, 0, 0, 0.45);
  border: 2px dashed rgba(var(--rgb-accent), 0.45);
  color: var(--accent-light);
}

.bonus-card-logo-fallback {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 1;
}

.bonus-card-site {
  color: var(--accent-light);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
  text-align: center;
}

.bonus-card-perks {
  list-style: none;
  text-align: left;
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 12px;
  border: 1px solid rgba(var(--rgb-deep), 0.25);
}

.bonus-card-perks li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.4;
}

.bonus-card-perks li:last-child {
  margin-bottom: 0;
}

.bonus-card-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--rgb-accent), 0.6);
}

.bonus-code-block {
  margin-bottom: 0.65rem;
  text-align: left;
}

.bonus-code-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.bonus-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  border: 1px dashed rgba(var(--rgb-accent), 0.4);
}

.bonus-code-value {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.bonus-copy-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(var(--rgb-accent), 0.2);
  color: var(--accent-light);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bonus-copy-btn:hover {
  background: rgba(var(--rgb-accent), 0.35);
  color: #fff;
}

.bonus-copy-btn--done {
  background: rgba(46, 204, 113, 0.35) !important;
  color: #86efac !important;
}

.bonus-card-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
  min-height: 2.65rem;
}

.bonus-lb-btn,
.bonus-join-btn {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}

.bonus-lb-btn {
  padding: 0.55rem 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #fff8f0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background: linear-gradient(
    145deg,
    #fbbf24 0%,
    #f59e0b 28%,
    var(--accent-deep) 72%,
    #7c2d12 100%
  );
  border: 1px solid rgba(253, 224, 71, 0.45);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(var(--rgb-accent), 0.35),
    inset 0 1px 0 rgba(255, 240, 200, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.bonus-lb-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08) saturate(1.05);
  border-color: rgba(254, 243, 199, 0.55);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(var(--rgb-accent), 0.45),
    inset 0 1px 0 rgba(255, 250, 235, 0.35);
  color: #fff;
}

.bonus-join-btn {
  padding: 0.55rem 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 38%, var(--accent-deep) 100%);
  border: 1px solid rgba(255, 200, 120, 0.35);
  box-shadow: 0 8px 24px rgba(var(--rgb-deep), 0.45), 0 0 32px rgba(var(--rgb-accent), 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bonus-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--rgb-deep), 0.55), 0 0 40px rgba(var(--rgb-accent), 0.25);
}

.bonuses-hint {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  font-size: clamp(0.95rem, 2.1vw, 1.08rem);
  font-weight: 600;
  color: rgba(255, 200, 160, 0.85);
  line-height: 1.65;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.bonuses-hint .fa-hand-pointer {
  margin-right: 0.4rem;
  color: var(--accent-light);
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(var(--rgb-accent), 0.5));
}

.bonuses-hint-keys {
  display: block;
  margin-top: 0.35rem;
}

.bonuses-hint-keys kbd {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  font-size: clamp(0.78rem, 1.8vw, 0.9rem);
  font-family: inherit;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(var(--rgb-accent), 0.5);
  border-radius: 8px;
  color: var(--accent-light);
  box-shadow: 0 0 12px rgba(var(--rgb-accent), 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .bonus-deck-card {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .bonus-deck-wrap {
    min-height: 460px;
    padding-bottom: 0.5rem;
  }

  .bonus-deck-card {
    padding: 0.95rem 0.9rem 0.9rem;
  }
}