
:root{
  --bg0:#0b0f14;
  --bg1:#0f1620;
  --panel:#151a22cc;
  --panel2:#10141bcc;
  --stroke:rgba(255,255,255,.14);
  --text:#eaf1ff;
  --muted:#aeb8cc;
  --accent:#ff9a2f;
  --accent2:#ffcc73;
  --navBlue1:#2b66ad;
  --navBlue2:#1d4f92;
  --radius:18px;
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%; margin:0}
html{}
body{
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 900px at 30% 20%, rgba(255,255,255,.07), transparent 60%),
    radial-gradient(900px 600px at 70% 75%, rgba(120,70,255,.10), transparent 60%),
    linear-gradient(140deg, var(--bg1), var(--bg0));
  overflow-x:hidden;
  overflow-y: auto; /* allow premium scroll */
}
.topbar{
  position:sticky; top:0; z-index:50;
  height:56px;
  background: linear-gradient(180deg, var(--navBlue1), var(--navBlue2));
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  display:flex; align-items:center;
  padding:0 18px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width:180px;
}
.brand img{
  height:32px; width:auto;
  display:block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.45));
}
.nav{
  margin-left:auto;
  display:flex;
  align-items:stretch;
  gap:10px;
}
/* Clamp wobble: fixed button widths */
.nav a{
  width:104px; /* fixed so bold doesn't shift */
  display:flex;
  align-items:center;
  justify-content:center;
  height:42px;
  margin-top:0;
  border-radius:14px;
  font-size:14px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:400; /* non-bold by default */
  color: rgba(255,255,255,.92);
  position:relative;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}
.nav a::after{
  content:"";
  position:absolute; left:18px; right:18px; bottom:8px;
  height:2px; border-radius:999px;
  background: linear-gradient(90deg, transparent, rgba(255,154,47,.95), transparent);
  opacity:0;
  transition: opacity .14s ease;
}
.nav a:hover{
  transform: translateY(5px); /* "drops down" */
  font-weight:800; /* bold on hover */
  background: rgba(0,0,0,.22);
  color: var(--accent2);
}
.nav a:hover::after{opacity:1}
.nav a.active{
  background: rgba(0,0,0,.28);
  color: var(--accent2);
  font-weight:800;
}
.nav a.active::after{opacity:1}

main{min-height: calc(100vh - 64px);}
.card{
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:40px; padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(0,0,0,.28)}
.small{font-size:12px; color:var(--muted)}

/* Premium scrollbar (Explore + BodLab) */
body{
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: rgba(255,255,255,.22) rgba(255,255,255,.04);
}
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{
  background: rgba(255,255,255,.03);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.12));
}


/* === BuddiBods faction palette v2 (balanced UI colours) === */
:root{
--fc-WYLDZ:#22C06A;
--fc-WYLDZ-glow:#7DFFB2;

--fc-MAGI:#A36BFF;
--fc-MAGI-glow:#D6B7FF;

--fc-HOLOWZ:#4FD8FF;
--fc-HOLOWZ-glow:#A6F0FF;

--fc-SEPTIX:#B7F230;
--fc-SEPTIX-glow:#E3FF7A;

--fc-MEZMAZ:#FF4FD8;
--fc-MEZMAZ-glow:#FF9AEC;

--fc-BROOTZ:#FF5A2A;
--fc-BROOTZ-glow:#FF8C6A;

--fc-TYTANZ:#E39A2F;
--fc-TYTANZ-glow:#FFD27A;
}

--fc-REEVERZ:#FF2020;
--fc-REEVERZ-glow:#FF6A6A;



/* === BuddiBods faction palette v26 === */
:root{
  --fc-WYLDZ:#22C06A;
  --fc-WYLDZ-glow:#7DFFB2;

  --fc-MAGI:#A36BFF;
  --fc-MAGI-glow:#D6B7FF;

  --fc-HOLOWZ:#4FD8FF;
  --fc-HOLOWZ-glow:#A6F0FF;

  --fc-SEPTIX:#B7F230;
  --fc-SEPTIX-glow:#E3FF7A;

  --fc-MEZMAZ:#FF4FD8;
  --fc-MEZMAZ-glow:#FF9AEC;

  --fc-BROOTZ:#FF5A2A;
  --fc-BROOTZ-glow:#FF8C6A;

  --fc-TYTANZ:#E39A2F;
  --fc-TYTANZ-glow:#FFD27A;

  --fc-REEVERZ:#FF2020;
  --fc-REEVERZ-glow:#FF6A6A;

  --fc-MEXX:#53B3FF;
  --fc-MEXX-glow:#A8D8FF;

  --fc-JURASIX:#7BE05F;
  --fc-JURASIX-glow:#B8FFA7;

  --fc-BUGZ:#62E3C1;
  --fc-BUGZ-glow:#A9FFE8;
}


/* === Fold / tablet topbar fit ===
   Prevent the desktop nav from forcing a wider layout on foldables and tablets,
   which causes the whole page to render scaled down instead of filling the screen. */
@media (max-width: 1100px){
  .topbar{
    padding: 0 10px;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .brand{
    min-width: auto;
    flex: 0 0 auto;
  }

  .brand img{
    height: 28px;
  }

  .nav{
    margin-left: 8px;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .nav a{
    width: auto;
    min-width: max-content;
    padding: 0 12px;
    height: 38px;
    font-size: 12px;
    letter-spacing: .08em;
    flex: 0 0 auto;
  }

  .nav a::after{
    left: 12px;
    right: 12px;
    bottom: 7px;
  }
}

@media (max-width: 760px){
  .topbar{
    padding: 0 8px;
    gap: 8px;
  }

  .brand img{
    height: 24px;
  }

  .nav{
    gap: 2px;
  }

  .nav a{
    padding: 0 10px;
    height: 36px;
    font-size: 11px;
    letter-spacing: .06em;
    border-radius: 12px;
  }
}
