/* =========================================================
   Leaderboard-Designs pro Seite (Testphase: nur Admins, Schalter "Design-Test")
   Aktiv ueber eine Klasse am <html>:  lbt-unbox  (spaeter: lbt-reaper, lbt-coldgg)
   Deko-Bilder liegen in static/img/lbt/<seite>/ und werden per JS als #lbt-decor eingefuegt.
   ========================================================= */
#lbt-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#lbt-decor img { position: absolute; height: auto; user-select: none; animation: lbt-float 7s ease-in-out infinite; will-change: transform; }
@keyframes lbt-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 2deg)); } }
@media (prefers-reduced-motion: reduce) { #lbt-decor img { animation: none; } }
.lbt-toggle.on { border-color: #7c4dff; color: #fff; box-shadow: 0 0 14px rgba(124, 77, 255, 0.5); }

/* ---------------------------------------------------------
   UNBOX.GG  –  Nachtblau, kraeftiges Lila, leuchtende Kisten
   --------------------------------------------------------- */
html.lbt-unbox {
  --bg: #0a0a1c; --bg-2: #0e0e24; --panel: #11112a; --panel-solid: #11112a; --panel-border: #23234d;
  --purple: #7c4dff; --purple-2: #5b2be0; --purple-3: #b9a6ff; --muted: #8b8db3; --gold: #ffc83d; --text: #f4f3ff;
  --shadow-purple: 0 0 24px rgba(124, 77, 255, 0.45);
  --font-display: "Outfit", "Rajdhani", "Segoe UI", sans-serif;
  background: #0a0a1c;
}
html.lbt-unbox body::before {
  background:
    radial-gradient(1000px 560px at 50% -6%, rgba(109, 58, 255, 0.42), transparent 62%),
    radial-gradient(700px 520px at -4% 52%, rgba(109, 58, 255, 0.16), transparent 62%),
    radial-gradient(700px 520px at 104% 78%, rgba(109, 58, 255, 0.16), transparent 62%),
    #0a0a1c;
}
html.lbt-unbox #bg-canvas { opacity: 0; }
/* feines Punktraster wie auf den Unbox-Karten */
html.lbt-unbox #lbt-decor::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(140, 120, 255, 0.16) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 20%, transparent 85%); mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 20%, transparent 85%);
}
/* schwebende Kisten links und rechts */
html.lbt-unbox #lbt-decor img { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
html.lbt-unbox #lbt-decor .d0 { left: -1.5vw; top: 150px; width: 250px; --r: -8deg; }
html.lbt-unbox #lbt-decor .d1 { right: -1vw; top: 170px; width: 260px; --r: 7deg; animation-delay: -2s; }
html.lbt-unbox #lbt-decor .d2 { left: 1vw; top: 700px; width: 190px; --r: 6deg; animation-delay: -4s; opacity: 0.9; }
html.lbt-unbox #lbt-decor .d3 { right: 1vw; top: 720px; width: 200px; --r: -9deg; animation-delay: -1s; opacity: 0.9; }
html.lbt-unbox #lbt-decor .d4 { left: -2vw; top: 430px; width: 230px; --r: -5deg; animation-delay: -3s; opacity: 0.75; }
html.lbt-unbox #lbt-decor .d5 { right: -2vw; top: 450px; width: 240px; --r: 8deg; animation-delay: -5s; opacity: 0.75; }
html.lbt-unbox #lbt-decor .d6 { left: 2vw; top: 960px; width: 170px; --r: 10deg; animation-delay: -6s; opacity: 0.55; }
html.lbt-unbox #lbt-decor .d7 { right: 2vw; top: 990px; width: 170px; --r: -6deg; animation-delay: -2.5s; opacity: 0.55; }
@media (max-width: 1100px) { html.lbt-unbox #lbt-decor img { opacity: 0.28 !important; } }
@media (max-width: 700px) { html.lbt-unbox #lbt-decor img { display: none; } }

/* Kopf als Banner (wie die Reward-Banner bei Unbox) */
html.lbt-unbox .page-head {
  position: relative; max-width: 1100px; margin: 0 auto 26px; padding: 40px 210px 36px; border-radius: 18px; overflow: hidden;
  background:
    url("../img/lbt/unbox/gold_lux.webp") left -18px center / 230px auto no-repeat,
    url("../img/lbt/unbox/gaming.webp") right -18px center / 230px auto no-repeat,
    radial-gradient(520px 220px at 50% 120%, rgba(255, 200, 61, 0.22), transparent 70%),
    linear-gradient(110deg, #17104a 0%, #2a1790 48%, #5a2bff 100%);
  border: 1px solid #4634c4; box-shadow: 0 22px 60px rgba(90, 43, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html.lbt-unbox .page-head::after { display: none; }
html.lbt-unbox .page-head h1 {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; filter: none;
  font-weight: 800; letter-spacing: 0.5px; text-shadow: 0 4px 22px rgba(10, 4, 60, 0.6);
}
html.lbt-unbox .page-head p { color: #d9d2ff; font-weight: 600; }
@media (max-width: 900px) { html.lbt-unbox .page-head { padding: 30px 20px 26px; background-size: 130px auto, 130px auto, auto, auto; background-position: left -50px top -20px, right -50px bottom -20px, center, center; } }

/* Umschalter */
html.lbt-unbox .lb-switch { background: #11112a; border-color: #23234d; }
html.lbt-unbox .lb-switch button { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0; }
html.lbt-unbox .lb-switch button.on { background: #6d3bff; box-shadow: 0 6px 18px rgba(109, 59, 255, 0.5); }

/* Kacheln oben */
html.lbt-unbox .panel { backdrop-filter: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
html.lbt-unbox .lb-tile { border-radius: 14px; }
html.lbt-unbox .lb-pool { background: linear-gradient(120deg, rgba(255, 200, 61, 0.16), #11112a 70%); border-color: rgba(255, 200, 61, 0.45); }
html.lbt-unbox .lb-codebox { border-color: #3b2ea0; }
html.lbt-unbox .lb-codebox:hover { border-color: #7c4dff; }
html.lbt-unbox .lb-codebox .cc-code { background: #6d3bff; color: #fff; border: 0; border-radius: 10px; text-shadow: none; box-shadow: 0 6px 18px rgba(109, 59, 255, 0.45); }
html.lbt-unbox .lb-tile-ico.copy { background: rgba(124, 77, 255, 0.16); color: #b9a6ff; }
html.lbt-unbox .lb-clock > div { background: #0a0a1c; border-color: #23234d; }
html.lbt-unbox .lb-clock b { text-shadow: none; font-weight: 800; }

/* Podest: ueber jedem Platz schwebt eine Kiste */
html.lbt-unbox .lb-podium { margin-top: 96px; }
html.lbt-unbox .lb-pod-card { background: linear-gradient(180deg, #1a1a45, #11112a); border-radius: 16px 16px 0 0; padding-top: 62px; overflow: visible; }
html.lbt-unbox .lb-pod-card::after {
  content: ""; position: absolute; left: 50%; margin-left: -95px; top: -84px; width: 190px; height: 136px;
  background: center / contain no-repeat; pointer-events: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.6)); animation: lbt-float 6s ease-in-out infinite;
}
html.lbt-unbox .lb-pod.p1 .lb-pod-card::after { background-image: url("../img/lbt/unbox/blue_cars.webp"); width: 230px; height: 164px; top: -108px; margin-left: -115px; }
html.lbt-unbox .lb-pod.p2 .lb-pod-card::after { background-image: url("../img/lbt/unbox/designer.webp"); animation-delay: -2s; }
html.lbt-unbox .lb-pod.p3 .lb-pod-card::after { background-image: url("../img/lbt/unbox/spongebob.webp"); animation-delay: -4s; }
html.lbt-unbox .lb-pod.p1 .lb-pod-card { padding-top: 70px; box-shadow: 0 -12px 60px rgba(255, 200, 61, 0.2); }
html.lbt-unbox .lb-crown { display: none; }
html.lbt-unbox .lb-pod-name { font-weight: 800; }
html.lbt-unbox .lb-pod-prize { font-weight: 800; }
html.lbt-unbox .lb-step { background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 26%, #11112a), #0d0d22); font-weight: 800; }

/* Tabelle */
html.lbt-unbox .lb-table td { background: #14143a; }
html.lbt-unbox .lb-table tbody tr:hover td { background: #1b1b4d; }
html.lbt-unbox .lb-bar i { background: linear-gradient(90deg, #5b2be0, #a98bff); box-shadow: 0 0 10px rgba(124, 77, 255, 0.6); }
html.lbt-unbox .lb-rank { color: #b9a6ff; font-weight: 800; }
@media (max-width: 700px) {
  html.lbt-unbox .lb-podium { margin-top: 70px; }
  html.lbt-unbox .lb-pod-card::after { width: 104px; height: 76px; margin-left: -52px; top: -52px; }
  html.lbt-unbox .lb-pod.p1 .lb-pod-card::after { width: 124px; height: 90px; margin-left: -62px; top: -64px; }
  html.lbt-unbox .lb-pod-card, html.lbt-unbox .lb-pod.p1 .lb-pod-card { padding-top: 34px; }
}
