:root{
  --bg:#07090d;
  --panel:#0e1118;
  --text:#f2f4f8;
  --muted:#b7bdc8;

  --yellow:#ffe100;
  --yellow2:#ffcf00;

  --teal:#27d6c6;
  --teal2:#0ea7b5;

  --shadow: 0 25px 80px rgba(0,0,0,.65);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; width:100%; }

body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--text);
  overflow-x:hidden;
  background: transparent;
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1180px, 92vw); margin:0 auto; }

/* ✅ FULL PAGE BACKGROUND */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(180deg, rgba(7,9,13,0.30), rgba(7,9,13,0.55)),
    url("images/background.webp") center / cover no-repeat;
  z-index:-10;
}

/* =========================
   TOPBAR
========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,9,13,.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
}

.brand{ display:flex; align-items:center; }
.brand__logo{
  height:80px;
  width:auto;
  display:block;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  font-weight:1000;
  letter-spacing:.6px;
  border:1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(180deg, var(--yellow), var(--yellow2));
  color:#101214;
  box-shadow: 0 18px 45px rgba(255,225,0,.18);
}
.btn--primary:hover{
  box-shadow: 0 24px 65px rgba(255,225,0,.24);
  transform: translateY(-1px);
}

.btn--ghost{
  background: linear-gradient(180deg, rgba(255,225,0,.98), rgba(255,200,0,.92));
  color:#101214;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  min-width:160px;
}
.btn--ghost:hover{ transform: translateY(-1px); }

.btn--wide{
  width:min(560px, 100%);
  padding:14px 18px;
}

/* =========================
   HERO
========================= */
.hero{
  position:relative;
  padding:44px 0 28px;
  overflow:hidden;
}

.hero__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:28px;
  align-items:center;
}

.pill{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-weight:1000;
  letter-spacing:.9px;
  font-size:12px;
}

.hero__title{
  margin:14px 0 10px;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height:1.02;
  letter-spacing:-1px;
  text-transform:uppercase;
}

.hero__titleAccent{
  display:block;
  color: transparent;
  background: linear-gradient(180deg, var(--yellow), rgba(255,255,255,.85));
  -webkit-background-clip:text;
  background-clip:text;
  text-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.offer{
  display:flex;
  gap:16px;
  align-items:flex-end;
  margin:14px 0 14px;
}

.offer__big{
  font-size: clamp(64px, 7vw, 120px);
  font-weight:1000;
  line-height:.85;
  color: var(--yellow);
  text-shadow: 0 18px 70px rgba(0,0,0,.55);
}

.offer__text{ padding-bottom:10px; }

.offer__line{
  font-weight:1000;
  letter-spacing:1px;
  color: rgba(255,255,255,.92);
  text-transform:uppercase;
}

.offer__line2{
  margin-top:6px;
  font-weight:1000;
  font-size:26px;
  text-transform:uppercase;
}

.offer__small{
  margin-top:8px;
  color: rgba(255,255,255,.75);
  font-weight:900;
  letter-spacing:.8px;
  text-transform:uppercase;
}

.hero__desc{
  margin:10px 0 18px;
  color: var(--muted);
  line-height:1.7;
  max-width:56ch;
}

.hero__ctaRow{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
}

.code{
  margin-top:16px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
}
.code__label{
  font-size:11px;
  font-weight:1000;
  letter-spacing:.9px;
  color: rgba(255,255,255,.75);
}
.code__value{
  font-weight:1000;
  letter-spacing:1px;
  padding:6px 12px;
  border-radius:999px;
  background: rgba(255,225,0,.14);
  border: 1px solid rgba(255,225,0,.25);
  color: var(--yellow);
}

.fineprint{
  display:block;
  margin-top:14px;
  color: rgba(255,255,255,1);
  line-height:1.45;
  font-size:14px;
}

/* =========================
   PLAYER (football.png)
========================= */
.hero__visual{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-height:520px;
 background: transparent !important;
}

/* container MUST be relative for absolute kids */
.playerCard{
  position:relative;
  width:520px;
  max-width:100%;
  aspect-ratio: 1 / 0.9;
  overflow:hidden;
  transform: translateX(115px); /* desktop shift */
  will-change: transform;
  background: transparent !important;
}

/* background player */
.playerCard__player{
  position:absolute;
  inset:0;
  background-image: url("images/football.png");
  background-repeat:no-repeat;
  background-size:75%;
  background-position:center bottom;
 background-size: contain;   /* ⬅️ THIS IS THE KEY */
  background-position: center;

  filter:
    filter: drop-shadow(0 22px 55px rgba(0,0,0,.75));

  animation: floaty 1.9s ease-in-out infinite;
  transform-origin: 50% 60%;
}

/* remove card shine/shadow layers */
.playerCard__shine,
.playerCard__shadow{
  display:none !important;
}

@keyframes floaty{
  0%,100%{ transform: translateY(0) rotate(-0.2deg); }
  50%    { transform: translateY(-4px) rotate(0.2deg); }
}

/* =========================
   TILES
========================= */
.tiles{
  padding:40px 0 60px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.22));
  border-top: 1px solid rgba(255,255,255,.00);
background: transparent !important;
  border-top: none !important;
}

.sectionTitle{
  margin:0;
  font-size:30px;
  letter-spacing:-0.5px;
  text-transform:uppercase;
}

.sectionSubtitle{
  margin:10px 0 18px;
  color: var(--muted);
  line-height:1.6;
}

.tiles__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}

.tile{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:16px 16px 14px;
  min-height:170px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  transition: transform .15s ease, border-color .15s ease;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(255,225,0,.20);
}

.tile__icon{
  width:44px; height:44px;
  border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.tile__title{
  margin:12px 0 8px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.3px;
}

.tile__desc{
  margin:0 0 12px;
  color: var(--muted);
  line-height:1.55;
  font-size:14px;
}

.tile__cta{
  display:inline-flex;
  gap:6px;
  font-weight:1000;
  color: rgba(255,255,255,.92);
  opacity:.9;
}
.tile__cta:hover{
  opacity:1;
  color: var(--yellow);
}

.tiles__bottomCta{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

/* =========================
   FOOTER
========================= */
.footer{
  padding:18px 0 30px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.28);
}

.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.footer__links{
  display:flex;
  gap:14px;
  color: rgba(255,255,255,.75);
}
.footer__links a:hover{ color: var(--yellow); }

.footer__copy{ color: rgba(255,255,255,.6); }
.footer__logo{ height:29px; width:auto; display:block; }

/* =========================
   RESPONSIVE (clean)
========================= */

/* <= 1180px (iPad landscape / small laptops) */
@media (max-width:1180px){
  .hero__grid{ grid-template-columns: 1fr; gap:18px; align-items:start; }
  .hero__visual{ justify-content:center; min-height:auto; }

  .playerCard{
    transform:none;
    width: min(620px, 92vw);
    max-width:92vw;
    border-radius:22px;
  }
  .playerCard__player{
    background-size:125%;
    background-position:58% center;
  }

  .tiles__grid{ grid-template-columns: repeat(2, 1fr); }
  .btn--ghost{ min-width:0; }
}

/* <= 980px (tablet) */
@media (max-width:980px){
  .hero{ padding:34px 0 18px; }
  .tiles__grid{ grid-template-columns: repeat(2, 1fr); }
}

/* <= 520px (mobile) */
@media (max-width:520px){
  /* topbar sizing */
  .topbar__inner{ padding:12px 0; }
  .brand__logo{ height:56px; }

  /* hero becomes centered */
  .hero{
    padding: 30px 0 18px;
    min-height:100vh;
    display:flex;
    align-items:center;
  }

  .hero__copy{
    text-align:center;
    margin:0 auto;
  }

  .pill{
    margin: 0 auto 6px;
    padding:6px 10px;
    font-size:11px;
  }

  .hero__title{
    font-size:28px;
    line-height:1.05;
    margin:6px 0 4px;
  }

  .offer{
    margin:6px 0 8px;
    gap:8px;
    justify-content:center;
  }

  .offer__big{ font-size:58px; line-height:.9; }
  .offer__text{ padding-bottom:4px; }
  .offer__line{ font-size:12px; }
  .offer__line2{ font-size:18px; margin-top:2px; }
  .offer__small{ margin-top:4px; font-size:11px; }

  .hero__desc{
    margin:6px auto 12px;
    font-size:13px;
    line-height:1.5;
  }

  .hero__ctaRow{
    flex-direction:column;
    gap:10px;
    align-items:stretch;
  }

  .btn--ghost,
  .btn--primary{ width:100%; }

  .code{
    width:100%;
    justify-content:space-between;
    margin-left:auto;
    margin-right:auto;
  }

  .playerCard{
    width:92vw;
    max-width:92vw;
    transform:none;
    border-radius:22px;
  }
  .playerCard__player{
    background-size:115%;
    background-position:50% center;
  }

  .tiles{ padding:26px 0 44px; }
  .tiles__grid{ grid-template-columns:1fr; }

  .footer__inner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  .footer__links{ flex-wrap:wrap; gap:10px 14px; }
}

/* iPad specific typography (optional) */
@media (min-width:768px) and (max-width:1024px){
  .hero{ padding:28px 0 16px; }
  .hero__title{ font-size: clamp(32px, 4.2vw, 52px); }
  .offer__big{ font-size: clamp(56px, 7vw, 96px); }
}

/* =========================
   MOBILE BUTTON SIZE FIX
========================= */
@media (max-width: 520px){

  /* CTA row centered */
  .hero__ctaRow{
    align-items: center;
  }

  /* smaller, cleaner buttons */
  .btn--ghost,
  .btn--primary{
    width: min(250px, 80vw);   /* 🔥 NOT full width */
    padding: 10px 16px;       /* 🔥 shorter height */
    font-size: 13px;          /* 🔥 smaller text */
    letter-spacing: .5px;
  }

  /* remove forced stretching */
  .btn--ghost{
    min-width: unset;
  }

  /* bonus code stays centered but tighter */
  .code{
    width: min(320px, 86vw);
    font-size: 12px;
  }
}

@media (max-width: 520px){

  .topbar .btn--primary{
    width: auto;              /* 🔥 don't stretch */
    padding: 8px 18px;        /* 🔥 height */
    font-size: 12px;          /* 🔥 text size */
    letter-spacing: .6px;
    border-radius: 999px;
  }
}

/* =========================
   REMOVE SPACE ABOVE 100%
========================= */

/* tighten the offer row */
.offer{
  align-items: center !important;   /* 🔥 was flex-end */
  gap: 12px;
}

/* tighten the big 100% */
.offer__big{
  line-height: 0.9 !important;      /* 🔥 less vertical space */
  margin-top: 0;
}

/* remove artificial offset from text block */
.offer__text{
  padding-bottom: 0 !important;     /* 🔥 was creating the gap */
}


/* =========================
   iPAD = MOBILE-STYLE CENTERED HERO
========================= */
@media (min-width: 768px) and (max-width: 1024px){

  /* HERO STRUCTURE */
  .hero{
    display: block !important;
    height: auto !important;
    min-height: unset !important;
    padding: 28px 0 32px !important;
  }

  .hero__grid{
    grid-template-columns: 1fr !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
  }

  /* TEXT BLOCK */
  .hero__copy{
    margin: 0 auto !important;
    max-width: 640px;
  }

  .pill{
    margin-left: auto;
    margin-right: auto;
  }

  .hero__title,
  .hero__desc{
    margin-left: auto;
    margin-right: auto;
  }

  /* OFFER BLOCK */
  .offer{
    justify-content: center !important;
    text-align: center;
  }

  .offer__text{
    padding-bottom: 0;
  }

  /* CTA BUTTONS */
  .hero__ctaRow{
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .btn--ghost{
    width: min(300px, 70vw);
  }

  /* BONUS CODE */
  .code{
    margin-left: auto;
    margin-right: auto;
  }

  /* PLAYER */
  .hero__visual{
    justify-content: center !important;
    margin-top: -10px;
  }

  .playerCard{
    width: min(520px, 90vw) !important;
    transform: none !important;
  }

  .playerCard__player{
    background-size: 100% !important;
    background-position: 50% center !important;
  }
}

/* =========================
   REDUCE SPACE: PLAYER → TILES
   (Mobile + iPad)
========================= */

/* Tablets (iPad, iPad mini) */
@media (min-width: 768px) and (max-width: 1024px){

  /* reduce space after player */
  .hero{
    padding-bottom: 16px !important; /* 🔽 was large */
  }

  /* pull tiles section upward */
  .tiles{
    padding-top: 16px !important; /* 🔽 was ~40px */
  }
}

/* Mobile */
@media (max-width: 520px){

  .hero{
    padding-bottom: 12px !important;
  }

  .tiles{
    padding-top: 12px !important;
  }
}

/* =========================
   FIX iPad Air / 1180px HERO ALIGNMENT
   Treat as centered tablet layout
========================= */
@media (max-width: 1180px){

  /* HERO */
  .hero{
    min-height: unset !important;
    height: auto !important;
    display: block !important;
    padding: 28px 0 32px !important;
  }

  /* FORCE single-column layout */
  .hero__grid{
    grid-template-columns: 1fr !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
  }

  /* TEXT BLOCK */
  .hero__copy{
    max-width: 720px;
    margin: 0 auto !important;
  }

  .pill{
    margin-left: auto;
    margin-right: auto;
  }

  .hero__title,
  .hero__desc{
    margin-left: auto;
    margin-right: auto;
  }

  /* OFFER */
  .offer{
    justify-content: center !important;
    align-items: center !important;
  }

  /* CTA BUTTONS */
  .hero__ctaRow{
    justify-content: center !important;
    align-items: center !important;
  }

  .btn--ghost{
    width: min(300px, 70vw);
  }

  /* BONUS CODE */
  .code{
    margin-left: auto;
    margin-right: auto;
  }

  /* PLAYER */
  .hero__visual{
    justify-content: center !important;
    margin-top: -10px;
  }

  .playerCard{
    width: min(520px, 90vw) !important;
    transform: none !important;
  }

  .playerCard__player{
    background-size: 95% !important;
    background-position: 50% center !important;
  }
}

/* =========================
   GLOBAL: LESS GAP BETWEEN PLAYER & TILES
   (ALL SIZES)
========================= */

/* 1) Make the player block shorter (less height) */
.playerCard{
  aspect-ratio: 1 / 0.88 !important; /* was ~1 / 1.05 -> reduces height */
}

/* 2) Reduce the space after the visual so tiles come up */
.hero__visual{
  margin-bottom: clamp(-80px, -6vw, -32px) !important; /* pulls next section up */
}

/* 3) Ensure tiles still has a little breathing room */
.tiles{
  padding-top: 18px !important;
}


/* =========================
   STABLE HERO → TILES SPACING (ALL SIZES)
   + KEEP PLAYER INSIDE HERO
========================= */

/* 1) Remove any “pull-up” hacks that cause bleed */
.hero__visual{
  margin-bottom: 0 !important;
  overflow: hidden !important; /* hero clips the player cleanly */
}

/* 2) Player must be clipped inside its card */
.playerCard{
  position: relative !important;
  overflow: hidden !important;
  border-radius: 22px; /* keep your rounded look */
}

/* 3) Control the gap the right way: padding only */
.hero{
  padding-bottom: 16px !important; /* reduce gap after player */
}

.tiles{
  padding-top: 16px !important;    /* reduce gap before “Choose your game” */
}

/* 4) Make player sizing predictable so it never “pushes” too much */
.hero__visual{
  min-height: 420px; /* desktop baseline */
}

/* responsive tuning */
@media (max-width: 1180px){
  .hero__visual{ min-height: 360px; }
}
@media (max-width: 520px){
  .hero__visual{ min-height: 300px; }
}

/* 5) Keep player centered in its card (prevents going outside visually) */
.playerCard__player{
  background-position: 50% center !important;
}


@media (min-width: 1181px){
  .playerCard{ transform: none !important; }
}

/* =========================
   DESKTOP: STOP PLAYER FROM LEAVING HERO BOUNDS
   (guaranteed fix)
========================= */
@media (min-width: 1181px){

  /* clip anything that tries to go outside hero */
  .hero{
    overflow: hidden !important;
  }

  /* make the right column a clipping container too */
  .hero__visual{
    overflow: hidden !important;
    justify-content: flex-end !important;
  }

  /* remove ANY previous X shifting */
  .playerCard{
    transform: none !important;
    translate: 0 0 !important;          /* covers newer translate property */
    margin-right: 0 !important;
    width: min(520px, 100%) !important; /* keeps it inside column */
    max-width: 100% !important;
  }

  /* keep the player centered inside the card (no right bias) */
  .playerCard__player{
    background-position: 50% center !important;
    background-size: 105% !important;   /* slightly less zoom */
  }
}


/* =========================
   UNIFY BUTTON GLOW (MATCH JOIN NOW)
========================= */

/* Base glow for ALL yellow buttons */
.btn--primary,
.btn--ghost{
  background: linear-gradient(180deg, var(--yellow), var(--yellow2));
  color: #101214;
  box-shadow:
    0 18px 45px rgba(255,225,0,.28),
    0 0 0 rgba(255,225,0,0);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

/* Hover glow */
.btn--primary:hover,
.btn--ghost:hover{
  transform: translateY(-2px);
  box-shadow:
    0 26px 65px rgba(255,225,0,.45),
    0 0 22px rgba(255,225,0,.45);
  filter: brightness(1.05);
}

/* Active / pressed */
.btn--primary:active,
.btn--ghost:active{
  transform: translateY(0);
  box-shadow:
    0 14px 30px rgba(255,225,0,.25);
}

/* 🔒 FINAL PLAYER SIZE LOCK */
.playerCard__player{
  background-size: 90% !important;     /* ⬅️ adjust size here */
  background-position: center bottom !important;
}


/* Desktop */
@media (min-width:1180px){
  .playerCard__player{ background-size: 90% !important; }
}

/* Tablet */
@media (max-width:1180px){
  .playerCard__player{ background-size: 73% !important; }
}

/* Mobile */
@media (max-width:520px){
  .playerCard__player{ background-size: 83% !important; }
}


