/* ============================================================
   DRGSPORTS.NET · Homepage Featured-Games Rail  ("Versus Colors")
   Copied from ezbm.ag; webfonts (Oswald, Space Grotesk, Figtree) swapped for local font stacks.
   Replaces the old Swiper carousel (sliding.css / slidetemplates.js).
   League bubble filters above a centered rail of matchup cards.
   Consumes the same payperhead feed fields, no photo background.
   ============================================================ */

/* ---- frameless stage: no background/border/shadow so the cards float over the hero ---- */
.fr-stage{ position:relative; background:transparent; }
.fr-wrap{ position:relative; }

/* ---- league bubble filter bar (above the rail) ---- */
.fr-leagues{
  display:flex; flex-wrap:nowrap; justify-content:safe center; align-items:flex-start;
  gap:14px; padding:18px 16px 8px;
  overflow-x:auto; scrollbar-width:thin; scrollbar-color:#343a47 transparent;
  -webkit-overflow-scrolling:touch; user-select:none; -webkit-user-select:none;
}
.fr-leagues::-webkit-scrollbar{ height:6px; }
.fr-leagues::-webkit-scrollbar-thumb{ background:#343a47; border-radius:99px; }
.fr-leagues::-webkit-scrollbar-track{ background:transparent; }
.fr-leagues img{ -webkit-user-drag:none; user-drag:none; }
.fr-bub{
  background:none; border:0; cursor:pointer; padding:6px 4px; flex:0 0 auto;  /* don't shrink -> overflow into the slider */
  display:flex; flex-direction:column; align-items:center; gap:7px; width:80px;
  opacity:.5; transition:opacity .2s, transform .2s;
}
.fr-bub:hover{ opacity:1; transform:translateY(-2px); }
.fr-bub.active, .fr-bub.fr-auto.on{ opacity:1; }
.fr-bub-ic{
  width:58px; height:58px; border-radius:50%; display:grid; place-items:center; position:relative;
  background:radial-gradient(circle at 50% 38%, #fff, #e9edf4);
  box-shadow:0 6px 16px -6px rgba(0,0,0,.7), inset 0 0 0 1px rgba(0,0,0,.06);
  border:2px solid transparent; transition:border-color .2s, box-shadow .2s;
  font-family:"Bahnschrift SemiCondensed","Bahnschrift","Avenir Next Condensed","Roboto Condensed","Arial Narrow",sans-serif; font-weight:700; font-size:18px; color:#0b0c0f; /* initials fallback */
}
.fr-bub-ic img{ max-width:62%; max-height:62%; object-fit:contain; }
.fr-bub.active .fr-bub-ic{ border-color:#ffc94a; box-shadow:0 0 0 3px rgba(255,201,74,.28), 0 6px 16px -6px rgba(0,0,0,.7); }
.fr-bub-lbl{
  font-family:"Bahnschrift SemiCondensed","Bahnschrift","Avenir Next Condensed","Roboto Condensed","Arial Narrow",sans-serif; font-size:11px; font-weight:500; text-transform:uppercase; letter-spacing:.04em;
  color:#aeb6c4; text-align:center; line-height:1.12; max-width:80px;
}
.fr-bub.active .fr-bub-lbl{ color:#fff; }

/* the "Auto" bubble (cycling indicator) */
.fr-auto .fr-bub-ic{ background:#13161d; border:2px dashed #3a4150; color:#9aa3b2; box-shadow:none; }
.fr-auto .fr-auto-ic{ font-size:26px; line-height:1; }
.fr-auto.on .fr-bub-ic{ border-style:solid; border-color:#36d99b; color:#36d99b; box-shadow:0 0 0 3px rgba(54,217,155,.22); }
.fr-auto.on .fr-auto-ic{ animation:fr-spin 3.2s linear infinite; }
.fr-auto.on .fr-bub-lbl{ color:#36d99b; }
@keyframes fr-spin{ to{ transform:rotate(360deg); } }

/* ---- horizontal rail (centered when it fits; scrollable when it overflows) ---- */
.fr-rail{
  display:flex; gap:20px; justify-content:safe center;
  overflow-x:auto; scroll-snap-type:x proximity;
  padding:18px 22px 24px;
  scrollbar-width:thin; scrollbar-color:#343a47 transparent;
  -webkit-overflow-scrolling:touch;
  cursor:grab; user-select:none; -webkit-user-select:none;
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); /* fade cards in/out at the edges */
  mask-image:linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.fr-rail.fr-dragging{ cursor:grabbing; scroll-snap-type:none; scroll-behavior:auto; }
.fr-rail img{ -webkit-user-drag:none; user-drag:none; }   /* stop logos being "picked up" while dragging */
.fr-rail::-webkit-scrollbar{ height:9px; }
.fr-rail::-webkit-scrollbar-thumb{ background:#343a47; border-radius:99px; }
.fr-rail::-webkit-scrollbar-track{ background:transparent; }

/* ---- scroll buttons (appear on hover; hidden when everything fits) ---- */
.fr-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:6;
  width:52px; height:112px; border:none; cursor:pointer; color:#fff; font-size:42px; line-height:1;
  font-family:"Bahnschrift SemiCondensed","Bahnschrift","Avenir Next Condensed","Roboto Condensed","Arial Narrow",sans-serif;
  background:linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,0));
  display:grid; place-items:center; opacity:0; transition:opacity .2s,color .2s;
}
.fr-nav.prev{ left:0; }
.fr-nav.next{ right:0; background:linear-gradient(270deg, rgba(0,0,0,.85), rgba(0,0,0,0)); }
.fr-wrap:hover .fr-nav{ opacity:1; }
.fr-nav:hover{ color:#ffc94a; }
.fr-nav:focus-visible{ opacity:1; outline:2px solid #ffc94a; outline-offset:-4px; }
.fr-wrap.fr-fits .fr-nav{ display:none; }   /* no overflow -> no arrows */
.fr-wrap.fr-fits .fr-rail{ cursor:default; }

/* ---- entrance ---- */
@keyframes fr-rise{ from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:none;} }

/* ---- the matchup card ---- */
.fr-card{
  scroll-snap-align:center; flex:0 0 auto;
  position:relative; width:360px; height:588px; border-radius:20px; overflow:hidden;
  background:#0b0c0f; border:1px solid #272b35;
  animation:fr-rise .55s both cubic-bezier(.2,.7,.2,1);
  transition:transform .26s cubic-bezier(.2,.7,.2,1), box-shadow .26s, border-color .26s;
}
.fr-card:hover{
  transform:translateY(-10px) scale(1.02);
  box-shadow:0 30px 56px -22px rgba(0,0,0,.9);
  border-color:#343a47; z-index:5;
}

/* ---- static promo card: full-bleed image filling the same card footprint ---- */
.fr-card.fr-static{ background:#0b0c0f; }
.fr-static-img{ width:100%; height:100%; object-fit:cover; display:block; }

/* two team-color zones split on a diagonal seam (colors set inline: --c1 / --c2) */
.fr-zones{ position:relative; height:488px; }
.fr-zones::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, var(--c1,#1d428a) 0 46%, #0b0c0f 46% 54%, var(--c2,#98002e) 54% 100%);
}
.fr-zones::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45));
}
.fr-zone{
  position:absolute; top:0; bottom:0; width:50%; z-index:2;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px;
  padding:24px 14px 0;
}
.fr-z1{ left:0; }
.fr-z2{ right:0; }

/* white "well" behind each logo so any logo (incl. dark ones) stays legible */
.fr-disc{
  position:relative;
  width:164px; height:164px; border-radius:50%; display:grid; place-items:center; flex:0 0 auto;
  background:radial-gradient(circle at 50% 38%, #fff, #e9edf4);
  box-shadow:0 12px 26px -10px rgba(0,0,0,.75), inset 0 0 0 1px rgba(0,0,0,.05);
}
.fr-disc img{ max-width:62%; max-height:62%; object-fit:contain; } /* keep logo inside the circle (square fits a circle at ~70%) */
/* monogram shown only when the logo image fails to load */
.fr-disc.fr-noimg::before{
  content:attr(data-mono);
  font-family:"Bahnschrift SemiCondensed","Bahnschrift","Avenir Next Condensed","Roboto Condensed","Arial Narrow",sans-serif; font-weight:700; font-size:44px; letter-spacing:.02em; color:#0b0c0f;
}

/* league badge inside the card: backend LeagueImage on a prominent white disc */
.fr-chip{
  position:absolute; top:16px; left:50%; transform:translateX(-50%); z-index:5;
  width:108px; height:108px; border-radius:50%; display:grid; place-items:center;
  background:radial-gradient(circle at 50% 38%, #fff, #eef1f6);
  box-shadow:0 8px 20px -8px rgba(0,0,0,.7), inset 0 0 0 1px rgba(0,0,0,.06);
}
.fr-chip img{ max-width:62%; max-height:62%; object-fit:contain; }

.fr-zone b{
  font-family:"Bahnschrift SemiCondensed","Bahnschrift","Avenir Next Condensed","Roboto Condensed","Arial Narrow",sans-serif; font-weight:600; font-size:26px; text-transform:uppercase; color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.6); text-align:center; letter-spacing:.02em; line-height:1.08;
}

/* center VS badge on the seam (auto-centered on the zones) */
.fr-seam{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:3;
  font-family:"Bahnschrift SemiCondensed","Bahnschrift","Avenir Next Condensed","Roboto Condensed","Arial Narrow",sans-serif; font-weight:700; font-size:30px; color:#0b0c0f; background:#ffc94a;
  width:62px; height:62px; border-radius:50%; display:grid; place-items:center;
  box-shadow:0 8px 20px -5px rgba(0,0,0,.7), 0 0 0 5px rgba(11,12,15,.9);
}

/* footer: date/venue (homepage's natural font) + optional broadcaster */
.fr-foot{
  position:absolute; left:0; right:0; bottom:0; height:100px; z-index:4; background:#13161d;
  border-top:1px solid #272b35; display:flex; align-items:center; justify-content:space-between;
  padding:0 22px; gap:12px;
}
.fr-when{ min-width:0; }
.fr-dt{ display:block; font-family:"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif; font-weight:600; font-size:16px; color:#ffc94a; white-space:nowrap; } /* amber, matches the VS badge */
.fr-ven{ display:block; font-family:"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif; font-size:14px; color:#98a1b2; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fr-foot .fr-tv{ height:26px; max-width:88px; object-fit:contain; opacity:.95; flex:0 0 auto; filter:drop-shadow(0 1px 2px rgba(0,0,0,.6)); }

/* empty / loading states */
.fr-msg{ color:#98a1b2; font-family:"Bahnschrift SemiCondensed","Bahnschrift","Avenir Next Condensed","Roboto Condensed","Arial Narrow",sans-serif; letter-spacing:.04em; text-transform:uppercase;
  padding:40px 18px; text-align:center; width:100%; }

@media (max-width:600px){
  .fr-leagues{ gap:4px 10px; padding:14px 10px 6px; }
  .fr-bub{ width:66px; gap:6px; }
  .fr-bub-ic{ width:50px; height:50px; }
  .fr-bub-lbl{ font-size:10px; }
  .fr-rail{ gap:14px; padding:10px 14px 16px; }
  .fr-card{ width:300px; height:470px; border-radius:16px; }
  .fr-zones{ height:380px; }
  .fr-foot{ height:90px; padding:0 16px; }
  .fr-disc{ width:128px; height:128px; }
  .fr-disc.fr-noimg::before{ font-size:36px; }
  .fr-chip{ width:84px; height:84px; top:12px; }
  .fr-zone b{ font-size:22px; }
  .fr-seam{ width:54px; height:54px; font-size:26px; }
  .fr-dt{ font-size:14px; } .fr-ven{ font-size:12px; }
  .fr-foot .fr-tv{ height:22px; }
  .fr-nav{ width:44px; height:92px; font-size:34px; }
}

/* ---- homepage hero: tighter spacing + interactive floating vectors ---- */
.hero-home-3{ padding:40px 0; }                 /* was 150px 0 -> less empty space around the slider */
.hero-home-3 .vector-image{ animation:none; pointer-events:none; will-change:transform; } /* JS drives motion now */
@media (max-width:767.98px){
  .hero-home-3{ padding:4px 0 20px; }                                   /* tighten the gap above the slider */
  .hero-home-3 .vector-image.dark-version{ display:block; width:58px; height:auto; } /* re-show + shrink the floaters on mobile */
  .fr-stage{ margin-top:0 !important; }                                 /* remove the Bootstrap my-3 top gap */
  .fr-leagues{ padding-top:6px; }                                       /* tighten above the league bubbles */
}

/* ---- static promo card: wider landscape card + operator overlay (headline/subtitle/icons) ----
   Renders the new FrontPage static-designer fields published in the feed:
   StaticText/StaticSubText (panel), StaticLeagueImage (2nd well icon), StaticTextShadow/StaticSubTextShadow
   (glow colours, fed in as --hsh / --ssh). LeagueImage = the group's bubble icon (1st well icon). */
.fr-card.fr-static{ width:1524px; }                /* banner aspect (1296:500) at rail height 588 = same image/framing as the banner version */
.fr-static-ov{
  position:absolute; inset:0; z-index:3; pointer-events:none;
  display:flex; flex-direction:column; align-items:center; padding:22px 18px;
}
/* top-center white "well": group icon (+ optional league icon), theme-accent ring */
.fr-so-well{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  background:radial-gradient(circle at 50% 38%, #fff, #e9edf4);
  box-shadow:0 8px 20px -8px rgba(0,0,0,.7), 0 0 0 2px var(--fr-accent,#ff7a3d);
}
.fr-so-ic{ position:relative; width:54px; height:54px; flex:0 0 auto; display:grid; place-items:center; }
.fr-so-ic img{ max-width:100%; max-height:100%; object-fit:contain; }
.fr-so-ic.fr-so-league{ border-left:1px solid rgba(0,0,0,.16); padding-left:8px; }
.fr-so-ic.fr-noimg::before{
  content:attr(data-mono); font-family:"Bahnschrift SemiCondensed","Bahnschrift","Avenir Next Condensed","Roboto Condensed","Arial Narrow",sans-serif; font-weight:700; font-size:22px; color:#0b0c0f;
}
/* glowing, semi-opaque text panel centered in the space under the well */
.fr-so-mid{ flex:1 1 auto; display:flex; align-items:center; width:100%; }
.fr-so-panel{
  margin:0 auto; max-width:100%; padding:10px 18px; border-radius:12px; text-align:center;
  background:rgba(12,14,24,.55); border:1px solid rgba(255,255,255,.32);
  box-shadow:0 0 26px 6px rgba(255,255,255,.10);
}
.fr-so-h{
  font-family:"Bahnschrift SemiCondensed","Bahnschrift","Avenir Next Condensed","Roboto Condensed","Arial Narrow",sans-serif; font-weight:700; text-transform:uppercase;
  font-size:26px; line-height:1.1; color:#fff;
  text-shadow:0 0 10px var(--hsh,#78c8ff), 0 0 2px var(--hsh,#78c8ff), 0 1px 2px rgba(0,0,0,.6);
}
.fr-so-s{
  font-family:"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif; font-weight:600; font-size:16px; line-height:1.2;
  color:#e8eaf0; margin-top:4px;
  text-shadow:0 0 8px var(--ssh,#50c8ff), 0 1px 2px rgba(0,0,0,.6);
}
@media (max-width:600px){
  .fr-card.fr-static{ width:1218px; }   /* banner aspect at mobile rail height 470 */
  .fr-static-ov{ padding:16px 12px; }
  .fr-so-ic{ width:42px; height:42px; }
  .fr-so-ic.fr-noimg::before{ font-size:18px; }
  .fr-so-h{ font-size:20px; }
  .fr-so-s{ font-size:13px; }
}
