@font-face{
  font-family:'Nexa Slab Black Oblique';
  src:url('./fonts/Nexa%20Slab%20Black%20Oblique.ttf') format('truetype');
  font-weight:normal;
  font-style:normal;
  font-display:swap;
}

:root{
  --bg:#07080c;
  --bg2:#0c1020;
  /* Slightly higher contrast so components pop more (v30 refinement) */
  --panel: rgba(255,255,255,0.08);
  --panel2: rgba(255,255,255,0.12);
  --line: rgba(255,255,255,0.16);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --muted2: rgba(255,255,255,0.56);
  --accent: #8b5cf6;
  --accent2:#22c55e;
  --accent3:#38bdf8;
  --shadow: 0 22px 60px rgba(0,0,0,0.55);
  --r: 16px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{overflow-x:hidden;}
body{
  margin:0;
  font-family:'Nexa Slab Black Oblique', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: linear-gradient(135deg, #050506 0%, #0b0b10 28%, #1a1a24 55%, #2c2c35 78%, #3a3a44 100%);
  overflow-x:hidden;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/*
  v31 fix
  - Make <main> a flex column so the footer can sit flush to the bottom on short pages
    (prevents the "empty space" below the footer on Events and other pages)
*/
main{
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0; /* avoids overflow quirks in Safari when children use flex */
}

a{color:inherit;text-decoration:none}
button,input{font-family:inherit}

.container{
  width:min(1160px, calc(100% - 40px));
  margin:0 auto;
}

/* Mobile centering + safe-area padding (v24) */
@media (max-width: 780px){
  .container{
    width: 100%;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .navRow{min-width:0;}
  .brand{min-width:0;}
  .brand span{white-space:nowrap;}
}

/* =============================
   v31 FINAL OVERRIDES (do not remove)
   - Mobile footer: prevent Explore squish
   - Dev modal: true center + no divider
   ============================= */

/* Mobile footer: make the Store/Explore block span the full width so
   each column (Store vs Explore) has enough space. */
@media (max-width: 780px){
  .footerCols{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-areas:
      "brand brand"
      "header ciryx"
      "altyx ciryx"
      "store store" !important;
    gap: 12px 16px !important;
  }
  .footerCols > div:nth-child(5){
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    column-gap: 16px !important;
  }
}

/* Dev build popup: truly centered (vertical + horizontal), logo centered above text,
   and remove divider line above the Continue button. */
.devModal.isOpen{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.devModal .devPanel{
  margin: 0 !important;
}
.devModal .devTop{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px !important;
}
.devModal .devLogo{ margin: 0 auto !important; }
.devModal .devActions{ border-top: none !important; }

@media (max-width: 360px){
  .brand span{font-size: 19px;}
  .brand img{height:32px;}
}

.gridGlow{
  position:fixed; inset:0;
  pointer-events:none;
  opacity:0.22;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,1), rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 80%);
}

.topbar{
  position:fixed; top:0; left:0; right:0; z-index:5100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(7,8,12,0.97), rgba(7,8,12,0.88));
  border-bottom: 1px solid rgba(255,255,255,0.16);
  border-radius: 0 0 26px 26px;
  margin: 0;
  box-shadow: 0 14px 46px rgba(0,0,0,0.55);
}

@media (max-width: 780px){
  .topbar{
    margin: 0;
  }
}

/* Fixed topbar spacer - ensures content starts below the fixed header */
main > *:first-child,
main > .shardWrap > *:first-child {
  scroll-margin-top: 58px;
}

.navRow{
  height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex; align-items:center; gap:12px;
  padding:10px 12px;
  border-radius:14px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.brand:hover{
  transform: scale(1.06);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}
.brand img{height:36px;width:auto;display:block}
.brand span{font-size:22px; letter-spacing:0.5px}

.navMenu{display:flex; align-items:center; gap:10px; list-style:none; margin:0; padding:0}
.navItem{position:relative}
.navLink{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  color:rgba(255,255,255,0.92);
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.navLink:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.navLink::after{
  content:'';
  width:7px;height:7px;
  border: solid rgba(255,255,255,0.86);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top:-2px;
}

.dropdown{
  position:absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: rgba(14,16,24,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  translate: 0 8px;
  transition: opacity .14s ease, visibility .14s ease, translate .14s ease;
}
.navItem:hover .dropdown{
  opacity:1;
  visibility:visible;
  translate: 0 0;
}
.dropLink{
  display:block;
  padding:12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}
.dropLink:first-child{border-top:none}
.dropLink:hover{background: rgba(255,255,255,0.06)}
.dropLink span{
  display:block;
  font-size:12px;
  color: rgba(255,255,255,0.62);
  margin-top:4px;
}

.cartBtn{
  display:flex; align-items:center; justify-content:center;
  width:44px;height:44px;
  border-radius:14px;
   outline:none;
  background: rgba(255,255,255,0.06);
  transition: transform .14s ease, background .14s ease;
}
.cartBtn:hover{background: rgba(255,255,255,0.10); transform: translateY(-1px)}
.cartBtn:focus,.cartBtn:focus-visible{outline:none; box-shadow:none}
.cartBtn svg{opacity:0.92}

.hero{
  padding: 72px 0 38px;
}
.heroInner{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items:center;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-size: 13px;
}
.kickerDot{
  width:8px;height:8px;border-radius:999px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  box-shadow: 0 0 18px rgba(139,92,246,0.45);
}
.h1{
  margin: 14px 0 10px;
  font-size: clamp(44px, 5.2vw, 68px);
  letter-spacing: 0.6px;
  line-height: 1.02;
}
.sub{
  margin:0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.55;
}
.ctaRow{display:flex; gap:12px; margin-top:18px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.btn:hover{transform: translateY(-1px); background: var(--panel2); border-color: rgba(255,255,255,0.22); box-shadow: 0 16px 36px rgba(0,0,0,0.38)}
.btnPrimary{
  border-color: rgba(139,92,246,0.55);
  background: linear-gradient(135deg, rgba(139,92,246,0.26), rgba(56,189,248,0.12));
}
.btnPrimary:hover{border-color: rgba(139,92,246,0.78)}
.btnGhost{
  background: transparent;
}

.videoCard{
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  overflow:hidden;
  /* Always keep the media player above floating UI elements (e.g., Shard Quest). */
  position: relative;
  z-index: 50;
}
.videoFrame{

  border-radius: 18px;
  overflow: hidden;

  aspect-ratio: 16/9;
  position:relative;
  background:
    radial-gradient(900px 300px at 35% 0%, rgba(139,92,246,0.22), transparent 60%),
    radial-gradient(800px 300px at 90% 40%, rgba(56,189,248,0.16), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
}
.playChip{
  position:absolute;
  inset:auto 16px 16px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.playLeft{display:flex; align-items:center; gap:10px; color: rgba(255,255,255,0.92)}
.playIcon{
  width:34px;height:34px;border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(139,92,246,0.55), rgba(56,189,248,0.42));
  border: 1px solid rgba(255,255,255,0.14);
}
.playMeta{display:flex; flex-direction:column; line-height:1.1}
.playMeta b{font-size:13px}
.playMeta small{color: rgba(255,255,255,0.70); font-size:12px}
.badge{
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
}

.section{
  padding: 26px 0 38px;
}
.sectionTitle{
  font-size: 18px;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.4px;
  margin: 0 0 14px;
}
.sectionGrid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 54px rgba(0,0,0,0.40);
  padding: 14px 14px;
}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0; color: var(--muted); font-size: 13px; line-height:1.5}
.cardTag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
}
.pill{
  width:8px;height:8px;border-radius:999px;background: var(--accent3);
}
.col4{grid-column: span 4;}
.col6{grid-column: span 6;}
.col8{grid-column: span 8;}
.col12{grid-column: span 12;}

.footer{
  /* Full-width footer (not an "island"), flatter + cleaner */
  margin-top: auto;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  /* tighter + cleaner */
  padding: 22px 0 10px;
  background: rgba(7,8,12,0.90);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px 24px 0 0;
  box-shadow: none;
  color: rgba(255,255,255,0.70);
  font-size: 12px;
}

@media (max-width: 780px){
  .footer{
    margin-left: 0;
    margin-right: 0;
  }
}
.footerRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
}
.footer a{color: rgba(255,255,255,0.78)}
.footer a:hover{color: rgba(255,255,255,0.92)}

.pageHero{
  padding: 14px 0 14px;
}
.pageHero h1{
  margin:0;
  font-size: clamp(34px, 4vw, 52px);
}
.pageHero p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height:1.6;
}

.countdownWrap{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.countdownBox{
  min-width: 96px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.countdownBox b{display:block; font-size: 20px}
.countdownBox small{display:block; color: rgba(255,255,255,0.68); font-size: 11px; margin-top: 4px}

.huntRow{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.huntHint{
  flex: 1 1 320px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.18);
  padding: 12px 12px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.45;
}
.toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 12px;
  color: rgba(255,255,255,0.90);
  opacity: 0;
  pointer-events:none;
  transition: opacity .18s ease, translate .18s ease;
  translate: 0 10px;
}
.toast.show{
  opacity: 1;
  translate: 0 0;
}

.secret{
  position:absolute;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(139,92,246,0.9), rgba(56,189,248,0.7));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 18px rgba(139,92,246,0.45);
  opacity: 0.0;
  cursor: pointer;
}
.secret:hover{opacity: 1.0;}
.secretLabel{
  position:absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  opacity:0;
  transition: opacity .12s ease;
  pointer-events:none;
}
.secret:hover .secretLabel{opacity:1}

@media (max-width: 920px){
  .heroInner{grid-template-columns: 1fr; }
  .col4,.col6,.col8{grid-column: span 12;}
  .dropdown{left: 0; transform:none;}
}

/* v4 additions */
.footerSlogan{
  margin-top: 8px;
  font-size: 18px;
  color: rgba(255,255,255,0.88);
}
.footerNav{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.footerNav a{
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.footerNav a:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

/* Footer bottom / copyright */
.footerBottom{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.56);
  font-size: 11.5px;
  line-height: 1.35;
}
.footerCols{
  display:grid;
  /* Stable, rectangular grid areas (prevents overlap/auto-placement issues) */
  /* Slightly narrower brand column so the link groups sit closer + align better */
  grid-template-columns: minmax(280px, 1.10fr) 1fr 1fr;
  grid-template-areas:
    "brand header ciryx"
    "brand altyx store"
    "brand explore store";
  gap: 14px 18px;
  align-items: start;
  align-content: start;
}


/* Ensure every footer column aligns to the top (fixes Ciryx column drifting) */
.footerCols > div{align-self:start;}

.footerCols > div:nth-child(1){grid-area:brand;}
.footerCols > div:nth-child(2){grid-area:header;}
.footerCols > div:nth-child(3){grid-area:altyx;}
.footerCols > div:nth-child(4){grid-area:ciryx;}
.footerCols > div:nth-child(5){grid-area:store;}



.footerCols > div:nth-child(6){grid-area:explore;}
/* Make the brand block feel more "primary" */
.footerCols > div:first-child b{
  font-size: 22px;
  letter-spacing: .3px;
  color: rgba(255,255,255,0.92);
}
.footerCols > div:first-child img{
  height: 30px !important;
}

@media (max-width: 1100px){
  .footerCols{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand header"
      "brand ciryx"
      "brand altyx"
      "brand store"
      "brand explore";
  }
}

@media (max-width: 920px){
  .footerCols{grid-template-columns: 1fr;}
}
.gameGridTitle{
  margin: 0 0 12px;
  font-size: 18px;
  color: rgba(255,255,255,0.90);
}
.gameCard{
  display:flex;
  gap: 12px;
  align-items:center;
}
.gameIcon{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  text-align:center;
  padding: 8px;
}
.comingSoon{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.84);
  margin-top: 8px;
}
.comingDot{
  width:8px;height:8px;border-radius:999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  box-shadow: 0 0 16px rgba(34,197,94,0.35);
}


/* v5 additions */
.socialRow{display:flex;gap:14px;align-items:center;margin-top:16px;flex-wrap:wrap;}
/* Make social tiles match button proportions (clean + consistent) */
.socialIcon{width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:14px;border:1px solid rgba(255,255,255,0.14);background:rgba(255,255,255,0.06);transition:transform .14s ease, background .14s ease, border-color .14s ease;}
.socialIcon:hover{transform:translateY(-1px);background:rgba(255,255,255,0.10);border-color:rgba(255,255,255,0.18);}
.socialIcon svg{opacity:0.92}
.socialIcon img{width:26px;height:26px;opacity:0.95;object-fit:contain;display:block}

@media (max-width: 920px){
  /* Mobile footer: keep icons readable without taking over the layout */
  .socialRow{gap:12px;}
  .socialIcon{width:44px;height:44px;border-radius:14px;}
  .socialIcon img{width:24px;height:24px;}
}
.execGrid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px;}
.execCard{grid-column:span 6;}
@media (max-width:920px){.execCard{grid-column:span 12;}}
.avatarPh{width:72px;height:72px;border-radius:22px;border:1px solid rgba(255,255,255,0.14);background:rgba(255,255,255,0.06);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.72);font-size:11px;text-align:center;padding:10px;flex:0 0 auto;}
.execRow{display:flex;gap:14px;align-items:center;}
.execMeta b{display:block;font-size:16px}
.execMeta small{display:block;color:rgba(255,255,255,0.68);margin-top:4px}
.execMeta a{color:rgba(255,255,255,0.86);text-decoration:underline;text-decoration-color:rgba(255,255,255,0.35)}
.execMeta a:hover{text-decoration-color:rgba(255,255,255,0.8)}

/* Executive bios (v29) */
.execDetails{border-radius:18px;}
.execDetails summary{list-style:none;}
.execDetails summary::-webkit-details-marker{display:none;}
.execSummary{cursor:pointer;}
.execSummary:focus{outline:none;}
.execDetails[open] .execSummary{border-bottom-left-radius:0;border-bottom-right-radius:0;}
.execBio{padding:14px 16px 16px;border:1px solid rgba(255,255,255,0.12);border-top:none;border-bottom-left-radius:18px;border-bottom-right-radius:18px;background:rgba(0,0,0,0.18);}
.execBio p{margin:0;color:rgba(255,255,255,0.78);line-height:1.75;}
.execHint{opacity:0.65;}
.articleCard{padding:16px;}
.articleMeta{color:rgba(255,255,255,0.66);font-size:12px;margin-top:6px;}

/* v6 fixes */
body{
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.cartBtn, .cartBtn:focus, .cartBtn:focus-visible{
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}
.cartBtn{
  background: transparent !important;
}

/* Image placeholders (v12) */
.imgPh{
  width: 100%;
  height: 190px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.70);
  font-weight: 700;
  letter-spacing: .2px;
  margin-top: 12px;
  text-align:center;
}
.imgPhSmall{ height: 130px; }
.imgPhBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  pointer-events:none;
}

.imgPh img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}


/* Responsive (v15) - mobile-first adjustments without changing desktop */
@media (max-width: 980px){
  .navInner{ gap: 10px; }
  .navLinks{ gap: 6px; }
  .navLink{ padding: 10px 10px; }
  .dropdown{ min-width: 220px; }
}

@media (max-width: 780px){
  /* Make header fit nicely */
  header.nav{
    position: sticky;
    top: 0;
  }
  .navInner{
    height: auto;
    padding: 10px 0;
    align-items: flex-start;
    gap: 10px;
  }
  .brand{
    padding: 8px 10px;
  }

  /* Convert nav into wrapped rows */
  .navLinks{
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    padding-top: 6px;
  }
  .navItem{
    position: relative;
  }
  .navLink{
    font-size: 14px;
    padding: 10px 10px;
    border-radius: 10px;
  }

  /* Dropdowns become full-width panels under each item */
  .dropdown{
    left: 0;
    right: auto;
    min-width: 240px;
    max-width: calc(100vw - 24px);
  }
  .dropdown a{
    white-space: normal;
  }

  /* Sections */
  .container{ padding-left: 14px; padding-right: 14px; }
  .pageHero{ padding-top: 34px; padding-bottom: 18px; }
  .pageHero h1{ font-size: 44px; line-height: 1.02; }
  .pageHero p{ font-size: 16px; }

  /* Grid: force single column on phones */
  .sectionGrid{
    grid-template-columns: 1fr !important;
  }
  /* Override any col* widths if present */
  .col12, .col7, .col6, .col5, .col4, .col3{
    grid-column: auto / span 1 !important;
  }

  .card{
    padding: 16px;
    border-radius: 18px;
  }

  .ctaRow{
    flex-wrap: wrap;
    gap: 8px;
  }
  .btn{
    padding: 10px 12px;
  }

  /* Video + placeholders */
  .videoFrame{ border-radius: 18px; }
  .imgPh{ height: 170px; }
  .imgPhSmall{ height: 120px; }

  /* Executive cards stack nicely */
  .execGrid{
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .execRow{
    align-items: center;
  }
  .avatarPh{
    width: 88px;
    height: 88px;
    border-radius: 16px;
  }

  /* Footer spacing */
  .footerGrid{
    grid-template-columns: 1fr !important;
  }
  .footer{
    padding-top: 24px;
  }
}

@media (max-width: 420px){
  .pageHero h1{ font-size: 40px; }
  .brandText{ font-size: 18px; }
  .navLink{ padding: 9px 9px; }
  .btn{ width: fit-content; }
}


/* Mobile nav (v15a) */
.hamburgerBtn{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hamburgerBtn span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.90);
  border-radius: 4px;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburgerBtn[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburgerBtn[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburgerBtn[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px){
  .hamburgerBtn{ display:flex; }

  .navRow{
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  /* Collapse menu by default */
  .navMenu{
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0 6px;
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  body.navOpen .navMenu{ display:flex; }

  .navItem{ width: 100%; }
  .navLink{
    width: 100%;
    justify-content: space-between;
    padding: 12px 12px;
  }
  .cartBtn{
    width: 100%;
    justify-content: center;
  }

  /* Mobile dropdown behavior: tap to open (open class) or focus */
  .dropdown{
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    min-width: 100%;
    max-width: 100%;
    margin-top: 6px;
  }
  /* Keep dropdown hidden by default on mobile */
  .navItem .dropdown{
    opacity:0;
    visibility:hidden;
    translate: 0 8px;
    transition: opacity .14s ease, visibility .14s ease, translate .14s ease;
  }
  /* Show when opened or focused */
  .navItem.open .dropdown,
  .navItem:focus-within .dropdown{
    opacity:1;
    visibility:visible;
    translate: 0 0;
  }
}


/* Mobile nav overlay (v15c) */
@media (max-width: 780px){
  body.navOpen{
    overflow: hidden;
    touch-action: none;
  }

  /* Make topbar stay above overlay */
  .topbar{ position: sticky; top:0; z-index: 4000; }

  .hamburgerBtn{
    border-radius: 14px;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
  }
  .hamburgerBtn:active{ transform: scale(0.98); }
  .hamburgerBtn span{
    width: 20px;
    height: 2px;
    transform-origin: center;
  }

  /* Smoother X animation */
  .hamburgerBtn[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .hamburgerBtn[aria-expanded="true"] span:nth-child(2){ opacity: 0; transform: scaleX(0.2); }
  .hamburgerBtn[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  /* Fullscreen backdrop */
  .mobileBackdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 3500;
  }
  body.navOpen .mobileBackdrop{
    opacity: 1;
    pointer-events: auto;
  }

  /* Slide-down nav panel */
  .navMenu{
    position: fixed;
    left: 12px;
    right: 12px;
    top: 70px; /* below header */
    max-height: calc(100vh - 92px);
    overflow: auto;
    display: block !important; /* we control visibility via transform */
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 3600;

    flex-direction: column;
    gap: 8px;
    padding: 12px;
    margin: 0;
    border-radius: 18px;
    background: rgba(12,12,16,0.92);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  }
  body.navOpen .navMenu{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Make items easy to tap */
  .navItem{ width: 100%; }
  .navLink{
    width: 100%;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 14px;
  }

  /* Dropdowns as nested panels */
  .dropdown{
    position: static;
    margin-top: 6px;
    border-radius: 14px;
    background: rgba(255,255,255,0.96);
    box-shadow: none;
    min-width: 100%;
    max-width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .navItem.open .dropdown{ display: block; }

  /* Prevent hover rules from interfering */
  .navItem:hover .dropdown{ display: none; }

  /* Cart becomes a normal row button */
  .cartBtn{
    width: 100%;
    justify-content: center;
    padding: 12px 12px;
  }
}


/* Mobile nav fixes (v15d) */
@media (max-width: 780px){
  .navRow{
    align-items: center;
  }
  .hamburgerBtn{ z-index: 4100; }
  .cartBtnTop{
    margin-left: 8px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cartBtnTop svg{ color: rgba(255,255,255,0.92); }

  /* Keep menu from covering top buttons */
  .navMenu{
    top: 118px; /* below header row with controls */
  }
}


/* Mobile header + hamburger (v15e) */
.hamburgerBtn{
  position: relative;
  overflow: hidden;
}
.hamburgerBtn span{
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  width: auto;
}
.hamburgerBtn span:nth-child(1){ top: 14px; }
.hamburgerBtn span:nth-child(2){ top: 21px; }
.hamburgerBtn span:nth-child(3){ top: 28px; }

@media (max-width: 780px){
  /* Mobile cart only; keep desktop cart in menu */
  .cartBtnMobile{
    display:flex;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.28);
    align-items:center;
    justify-content:center;
    margin-left: 8px;
  }
  .cartBtnMobile svg{ color: rgba(255,255,255,0.92); }

  /* Hide cart inside the overlay menu to avoid duplicate on mobile */
  .navMenu .cartBtn{ display:none; }

  /* Ensure overlay appears and dropdowns can open */
  .navItem:hover .dropdown{ display: none !important; } /* prevent hover logic */
  .navItem.open .dropdown{ display:block !important; }

  /* Make nav links not push content around */
  .navMenu{ z-index: 3600; }
}
@media (min-width: 781px){
  .cartBtnMobile{ display:none !important; }
}

/* =========================
   Dev build modal (v31)
   ========================= */
.devModal{ position: fixed; inset: 0; z-index: 9999; display: none; }
.devModal.isOpen{ display: block; }
.devModal .devBackdrop{
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
}
.devModal .devPanel{
  position: relative;
  width: min(520px, calc(100vw - 28px));
  margin: max(24px, calc(env(safe-area-inset-top) + 24px)) auto 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14,16,24,0.92), rgba(10,12,18,0.86));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  overflow: hidden;
}
.devModal .devGlow{
  position: absolute;
  left: -160px;
  top: -190px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.06) 34%,
    rgba(255,255,255,0.00) 72%
  );
  pointer-events: none;
}
.devModal .devContent{ position: relative; padding: 22px 20px 18px; }
.devModal .devTop{ display:flex; align-items:center; gap: 14px; }
.devModal .devLogo{
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display:flex; align-items:center; justify-content:center;
}
.devModal .devLogo img{ width: 28px; height: 28px; object-fit: contain; }
.devModal .devTitle{ margin:0; font-size: 22px; line-height: 1.15; }
.devModal .devText{ margin: 10px 0 0; color: rgba(255,255,255,0.70); }
.devModal .devActions{
  position: relative;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display:flex;
  justify-content:flex-end;
}
.devModal .devBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  transition: transform .14s ease, background .14s ease;
}
.devModal .devBtn:hover{ background: rgba(255,255,255,0.10); transform: translateY(-1px); }
.devModal .devBtn:focus, .devModal .devBtn:focus-visible{ outline: none; box-shadow: none; }

@media (max-width: 780px){
  .devModal .devPanel{ margin-top: max(18px, calc(env(safe-area-inset-top) + 18px)); }
  .devModal .devTitle{ font-size: 20px; }
}

/* =========================
   Dev build modal (v31)
   ========================= */
.devModal{ position: fixed; inset: 0; z-index: 9999; display:none; }
.devModal.isOpen{ display:block; }
body.modalOpen{ overflow: hidden; }
.devModal .devBackdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
}
.devModal .devPanel{
  position: relative;
  width: min(520px, calc(100vw - 32px));
  margin: calc(18vh + env(safe-area-inset-top)) auto 0;
  background: rgba(9,10,14,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  box-shadow: 0 30px 120px rgba(0,0,0,0.6);
  overflow:hidden;
}
.devModal .devPanel::before{
  content:"";
  position:absolute;
  left:-140px; top:-160px;
  width: 560px; height: 560px;
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(255,255,255,0.11) 0%,
    rgba(255,255,255,0.05) 34%,
    rgba(255,255,255,0.00) 72%
  );
  pointer-events:none;
}
.devModal .devContent{ position:relative; z-index:1; padding: 22px 20px 18px; }
.devModal .devLogo{ display:flex; align-items:center; gap:12px; margin-bottom: 10px; }
.devModal .devLogo img{ height: 34px; width:auto; display:block; }
.devModal .devTitle{ font-size: 22px; margin: 0; }
.devModal .devText{ margin: 10px 0 0; color: rgba(255,255,255,0.76); line-height:1.45; }
.devModal .devActions{ padding: 0 20px 20px; position:relative; z-index:1; }
.devModal .devBtn{
  width: 100%;
  display:flex; align-items:center; justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  cursor:pointer;
  transition: transform .14s ease, background .14s ease;
}
.devModal .devBtn:hover{ background: rgba(255,255,255,0.10); transform: translateY(-1px); }
.devModal .devBtn:focus,.devModal .devBtn:focus-visible{ outline:none; box-shadow:none; }

@media (max-width: 780px){
  .devModal .devPanel{ margin-top: calc(14vh + env(safe-area-inset-top)); }
  .devModal .devTitle{ font-size: 20px; }
}

/* =============================
   v31 FINAL MOBILE FIXES
   (append-only overrides to prevent regressions)
   ============================= */

/* Header: keep one clean row, centered vertically, and add breathing room
   so the search icon is not tight against the brand. */
@media (max-width: 780px){
  .navRow{
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .brand{
    padding: 8px 10px !important;
    gap: 10px !important;
  }
  .brand img{ height: 30px !important; }
  .brand span{ font-size: 20px !important; }

  /* Push the control cluster to the far right and create brand-to-controls spacing */
  .navControls{
    margin-left: auto !important;
    padding-left: 16px !important; /* this is the "move search over" */
    gap: 14px !important;
    align-items: center !important;
  }

  /* Enforce mobile icon order: Search, Cart, Hamburger */
  .searchBtnMobile{ order: 1 !important; }
  .cartBtnMobile{ order: 2 !important; }
  .hamburgerBtn{ order: 3 !important; }

  /* Keep hamburger visually consistent (no outline/box) */
  .hamburgerBtn{
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    background: transparent !important;
  }
  .hamburgerBtn:focus,
  .hamburgerBtn:focus-visible{
    outline: none !important;
    box-shadow: none !important;
  }
}

/* Footer: shorten mobile by using a 2-column grid (brand spans full width) */
@media (max-width: 780px){
  .footerCols{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-areas:
      "brand brand"
      "header ciryx"
      "altyx ciryx"
      "store store" !important;
    gap: 12px 14px !important;
  }
}

/* --- v31 Mobile footer: give Store/Explore real width (reduce height without crushing pills) --- */
@media (max-width: 520px){
  /* Let Store+Explore span full width so each column inside it isn't tiny */
  .footerCols{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: 12px 16px !important;
  }
  .footerCols > div:nth-child(5){
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    column-gap: 16px !important;
  }
  /* Slightly tighter pills so everything breathes */
  .footerNav a{ padding: 6px 9px !important; }
}

/* --- v31 Dev modal: centered + logo centered above text + no divider --- */
.devModal{ display:none; }
.devModal.isOpen{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.devModal .devPanel{ margin: 0 !important; }
.devModal .devTop{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  text-align:center !important;
  gap: 10px !important;
}
.devModal .devLogo{ margin: 0 auto !important; }
.devModal .devActions{ border-top: none !important; padding-top: 0 !important; }

/* Split the combined Store/Explore column into two side-by-side blocks on mobile
   (reduces height without changing HTML). */
@media (max-width: 780px){
  .footerCols > div:nth-child(5){
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    column-gap: 14px !important;
    row-gap: 8px !important;
  }
  .footerCols > div:nth-child(5) > :nth-child(1){ grid-column: 1 !important; }
  .footerCols > div:nth-child(5) > :nth-child(2){ grid-column: 1 !important; }
  .footerCols > div:nth-child(5) > :nth-child(3){ grid-column: 2 !important; margin-top: 0 !important; }
  .footerCols > div:nth-child(5) > :nth-child(4){ grid-column: 2 !important; }
}


/* Mobile nav polish (v15f) */
@media (max-width: 780px){
  .navControls{
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  /* Ensure brand stays left, controls right */
  .navRow{ width: 100%; }

  /* Dark dropdown panel + readable links */
  .dropdown{
    background: rgba(12,12,16,0.92) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
  }
  .dropdown a{
    color: rgba(255,255,255,0.92) !important;
  }
  .dropdown a span{
    color: rgba(255,255,255,0.62) !important;
  }
  .dropdown a:hover{
    background: rgba(255,255,255,0.08) !important;
  }

  /* Hamburger -> clean X */
  .hamburgerBtn span{
    transition: transform .18s ease, opacity .14s ease, top .18s ease;
  }
  body.navOpen .hamburgerBtn span:nth-child(1){
    top: 21px;
    transform: rotate(45deg);
  }
  body.navOpen .hamburgerBtn span:nth-child(2){
    opacity: 0;
  }
  body.navOpen .hamburgerBtn span:nth-child(3){
    top: 21px;
    transform: rotate(-45deg);
  }

  /* Make sure mobile cart shows in header */
  .cartBtnMobile{
    display:flex !important;
  }
}


/* Mobile header alignment (v15g) */
@media (max-width: 780px){
  /* Keep everything on one row and vertically centered */
  .topbar{
    padding-top: calc(env(safe-area-inset-top) + 6px);
    padding-bottom: 6px;
  }
  .navRow{
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 10px;
  }
  .brand{
    padding: 8px 10px;
  }
  .navControls{
    margin-left: auto;
    margin-top: 0 !important;
    align-self: center;
  }
  .hamburgerBtn, .cartBtnMobile{
    margin-top: 0 !important;
    align-self: center;
  }

  /* Place the overlay panel directly below the header */
  .navMenu{
    top: calc(env(safe-area-inset-top) + 64px) !important;
    max-height: calc(100vh - (env(safe-area-inset-top) + 84px)) !important;
  }
}


/* Shards quest (v16) */
.shardWrap{
  position: relative;
}
.shardBtn{
  position: absolute;
  /* Keep shard clickable, but never allow it (or its stacking context)
     to interfere with core page interactions like the trailer player. */
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  user-select:none;
}
.shardBtn:hover{ transform: translateY(-1px) scale(1.03); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); }
.shardBtn:active{ transform: translateY(0) scale(0.98); }
.shardBtn[aria-disabled="true"]{ opacity: 0.25; pointer-events:none; }

/* Trailer player interaction safety:
   ensure the video surface is above any decorative/quest UI layers. */
.videoCard,
.videoFrame,
.heroVideoFrame,
.heroVideoFrame .heroVideo{
  position: relative;
  z-index: 20;
}

.shardIcon{
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(180,140,255,0.95), rgba(90,200,255,0.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 8px 18px rgba(140,120,255,0.25);
}

.shardsReward{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.shardsReward.show{ display:flex; }
.shardsReward .backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.shardsReward .panel{
  position: relative;
  width: min(980px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12,12,16,0.86);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}
.shardsReward .img{
  width: 100%;
  aspect-ratio: 16/9;
  background: #0b0b10 url('./assets/shards-reward.jpg') center/cover no-repeat;
}
.shardsReward .content{
  padding: 16px 16px 18px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
  justify-content: space-between;
}
.shardsReward .bin{
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.80);
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 700;
}
.shardsReward .title{
  font-size: 18px;
  margin: 0 0 6px;
}
.shardsReward .closeBtn{
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  cursor:pointer;
}
.shardsReward .closeBtn:hover{ background: rgba(255,255,255,0.10); }

@media (max-width: 780px){
  .shardBtn{ width: 32px; height: 32px; border-radius: 12px; }
  .shardsReward .content{ flex-direction: column; align-items: stretch; }
  .shardsReward .closeBtn{ align-self: flex-end; }
  .shardsReward .bin{ font-size: 11px; }
}


/* Shards counter (v16a) */
.shardsCounter{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.88);
  font-weight: 800;
  letter-spacing: .2px;
}
.shardsCounter .dot{
  width:10px; height:10px; border-radius:4px;
  background: linear-gradient(135deg, rgba(180,140,255,0.95), rgba(90,200,255,0.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 8px 18px rgba(140,120,255,0.18);
}
.shardsCounter small{ opacity:.75; font-weight:700; }

@media (max-width: 780px){
  .shardBtn{
    width: 30px;
    height: 30px;
  }
}


/* Reward modal close reliability (v16b) */
.shardsReward .panel{
  position: relative;
}
.shardsReward .closeBtn{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.shardsReward .content{
  padding-top: 56px; /* room for close button */
}
.shardsReward .backdrop{
  cursor: pointer;
}


/* Cleaner cart hover (v16d) */
@media (min-width: 781px){
  .cartBtn{
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    transition: background .16s ease, border-color .16s ease;
  }
  .cartBtn:hover{
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.16);
  }
  .cartBtn:active{
    background: rgba(255,255,255,0.08);
  }
  .cartBtn svg{
    transition: opacity .16s ease;
    opacity: 0.92;
  }
  .cartBtn:hover svg{ opacity: 1; }
  .cartBtn:focus{ outline: none; }
  .cartBtn:focus-visible{
    outline: 2px solid rgba(180,140,255,0.55);
    outline-offset: 2px;
  }
}


/* Ultra-smooth cart hover (v16e) */
@media (min-width: 781px){
  .cartBtn{
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: transparent;
    transform: translateZ(0); /* promote */
    will-change: background-color;
  }
  .cartBtn::before{
    content:"";
    position:absolute;
    inset:0;
    background: rgba(255,255,255,0.00);
    transition: background-color .14s ease;
    pointer-events:none;
  }
  .cartBtn:hover::before{ background: rgba(255,255,255,0.06); }
  .cartBtn:active::before{ background: rgba(255,255,255,0.08); }

  .cartBtn svg{
    position: relative;
    display:block;
    opacity: 0.92;
    transition: opacity .14s ease;
    will-change: opacity;
  }
  .cartBtn:hover svg{ opacity: 1; }

  /* Avoid border-color animation (can look jittery over blur backdrops) */
  .cartBtn:hover{ border-color: rgba(255,255,255,0.10); }
}


/* Footer branding scale (v16e) */
.siteFooter .brandRow{
  gap: 12px;
}
.siteFooter .brandRow img{
  width: 36px !important;
  height: 36px !important;
}
.siteFooter .brandRow .brandName{
  font-size: 18px !important;
  font-weight: 900;
}
.siteFooter .brandRow .slogan{
  font-size: 14px !important;
  opacity: 0.9;
}
@media (max-width: 780px){
  .siteFooter .brandRow img{
    width: 40px !important;
    height: 40px !important;
  }
  .siteFooter .brandRow .brandName{
    font-size: 20px !important;
  }
  .siteFooter .brandRow .slogan{
    font-size: 15px !important;
  }
}


/* Footer social icons v17 */
.socialLinks{display:flex;gap:12px}
.socialLinks img{
  width:22px;height:22px;
  opacity:.9;
  transition:opacity .15s ease,transform .15s ease;
}
.socialLinks a:hover img{opacity:1;transform:translateY(-1px)}


/* Footer social icons as images (v17a) */
.socialIcon img{
  width: 22px;
  height: 22px;
  display:block;
  opacity: .92;
  transition: opacity .15s ease, transform .15s ease;
}
.socialIcon:hover img{
  opacity: 1;
  transform: translateY(-1px);
}


/* Under construction icons in game cards (v18) */
.imagePlaceholder img, .imgPlaceholder img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
}


/* Home trailer video (v18a) */
.videoFrame{
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}
.heroVideo{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}


/* v18a fixes: hero video + game icons */
.heroVideoFrame{ margin-top: 0; }
.heroVideoFrame .heroVideo{ width:100%; height:auto; display:block; }

/* Game icon containers */
.gameIcon, .gameIconPlaceholder{
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  flex: 0 0 auto;
}
.gameIcon img, .gameIconPlaceholder img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  opacity: 0.95;
}


/* v18b: Hero trailer sizing + remove tall player */
.heroVideoFrame{
  border-radius: 18px;
  overflow: hidden;
}

/* Keep a consistent 16:9 frame without being too tall */
.heroVideoFrame,
.heroVideoFrame .heroVideo{
  aspect-ratio: 16 / 9;
}

/* Let the video fill the frame */
.heroVideoFrame .heroVideo{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

/* Hide any leftover ratio label elements */
.ratioPill, .ratioBadge, .aspectBadge{ display:none !important; }


/* v18b: Game icon image should reach corners */
.gameIcon, .gameIconPlaceholder{
  overflow:hidden;
}
.gameIconImg{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block;
  border-radius: inherit;
}


/* v18b hotfix: ensure hero video shows + correct frame height */
.heroInner .videoFrame{
  aspect-ratio: 16 / 9;
  height: auto;
}
.heroInner .videoFrame .heroVideo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* v18b hotfix: game icons should fill frame (remove padding/centering) */
.gameIcon, .gameIconPlaceholder{
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
}
.gameIcon img, .gameIconPlaceholder img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}


/* v18c: Hero video frame should hug 16:9 video and act as a border */
.heroGrid{ align-items: start; }
.heroMedia{ align-self: start; }
.heroVideoFrame{
  padding: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
}

/* Let the VIDEO define the height (no fixed frame aspect locking) */
.heroVideoFrame .heroVideo{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

/* Remove any older aspect-ratio forcing on the frame itself */
.heroVideoFrame{ aspect-ratio: auto !important; }


/* v18d: title above hero trailer */
.videoTitle{
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  margin: 0 0 10px 6px;
  color: rgba(255,255,255,0.92);
}

/* v18d: frame should hug video regardless of 4K (still 16:9) */
.heroVideoFrame{
  padding: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
}

.heroVideoFrame .heroVideo{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* works for 3840x2160 too */
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: #000; /* behind controls only */
}

/* Ensure poster is shown nicely before play */
.heroVideoFrame .heroVideo::-webkit-media-controls-panel{
  border-radius: 0;
}


/* v18e: force a black pre-play poster */
.heroVideoFrame .heroVideo{
  background:#000;
}


/* v18f: Fix hero trailer frame height + ensure title shows */
.heroGrid{ align-items: start; }
.heroRight, .heroMedia{ align-self: start; min-height: unset !important; height: auto !important; }

.videoTitle{
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  margin: 0 0 10px 4px;
  color: rgba(255,255,255,0.92);
}

/* Border hugs the video (no padding) */
.heroVideoFrame{
  padding: 0 !important;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
}

/* Let the video determine height; keep 16:9 */
.heroVideoFrame .heroVideo{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 18px; /* matches frame */
  background: #000;
}

/* If any parent sets fixed height, unset */
.videoFrame{ height: auto !important; }


/* v18h: mobile polish for trailer block */
@media (max-width: 820px){
  .videoTitle{
    font-size: 1rem;
    margin: 0 0 10px 2px;
    text-align: left;
  }
  .heroMedia{
    width: 100%;
  }
  .heroVideoFrame{
    border-radius: 16px;
  }
  .heroVideoFrame .heroVideo{
    border-radius: 16px;
  }
}


/* v19: Trailer title */
.videoTitle{
  padding: 14px 16px 0 16px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
}

/* v19: Frame should hug the video; frame acts as border via videoCard */
.videoCard{ padding: 0 0 0 0; }
.videoFrame{
  /* remove forced frame aspect; let the video dictate height */
  aspect-ratio: auto !important;
  background: transparent !important;
  border-radius: 18px;
  padding: 12px 16px 16px 16px; /* border spacing inside card, not extra tall */
}

/* ensure the video itself is the 16:9 box */
.videoFrame .heroVideo{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  background: #000;
}

/* Keep hero alignment tight */
.heroInner{ align-items: start; }

/* Mobile: stack and keep title above trailer */
@media (max-width: 820px){
  .videoTitle{ font-size: 1rem; padding: 12px 12px 0 12px; }
  .videoFrame{ padding: 10px 12px 12px 12px; }
  .videoFrame .heroVideo{ border-radius: 14px; }
}


/* v21: header search button */
.searchBtn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;
  color: rgba(255,255,255,0.92);
  text-decoration:none;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}
.searchBtn:hover{
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.searchBtn:active{
  transform: translateY(0);
  opacity: 0.9;
}

.navControls{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* mobile header controls positioning (keeps burger + search + cart aligned) */
@media (max-width: 820px){
  .navControls{
    gap: 8px;
  }
  .searchBtn, .cartBtn{
    width:42px;
    height:42px;
  }
}


/* v21: search page */
.searchBar{ margin-top: 14px; }
.searchInput{
  width: 100%;
  max-width: 720px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.95);
  outline: none;
}
.searchInput::placeholder{ color: rgba(255,255,255,0.55); }
.searchInput:focus{
  border-color: rgba(255,255,255,0.30);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}
.resultCount{ margin-top: 12px; color: rgba(255,255,255,0.75); }
.resultsGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.resultCard{
  display:block;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  text-decoration:none;
  color: rgba(255,255,255,0.92);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.resultCard:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,0.30);
  border-color: rgba(255,255,255,0.18);
}
.resultTitle{ font-weight: 800; margin-bottom: 6px; }
.resultDesc{ color: rgba(255,255,255,0.70); font-size: 0.95rem; margin-bottom: 8px; }
.resultSnippet{ color: rgba(255,255,255,0.78); font-size: 0.95rem; line-height: 1.35; }
mark{
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.98);
  padding: 0 2px;
  border-radius: 4px;
}
@media (max-width: 980px){
  .resultsGrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px){
  .resultsGrid{ grid-template-columns: 1fr; }
}


/* v21a: Search icon placement desktop vs mobile */
.searchBtnDesktop{ display:flex; }
.searchBtnMobile{ display:none; }

@media (max-width: 820px){
  .searchBtnDesktop{ display:none; }
  .searchBtnMobile{ display:flex; }
}

/* Keep icon items at the far right with cart */
.navIconItem{ margin-left: 0; }

@media (max-width: 820px){
  .navControls{
    display:flex;
    align-items:center;
    justify-content:flex-end;
  }
  .burger{ order: 1; }
  .searchBtnMobile{ order: 2; }
  .cartBtnMobile{ order: 3; }
}



/* v23: Shards reward modal polish (smaller, cleaner, better close) */
.shardsReward .panel{
  width: min(720px, 100%);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.shardsReward .img{
  height: min(38vh, 320px);
  aspect-ratio: auto;
  background-size: cover;
}
.shardsReward .content{
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px 18px 16px;
  gap: 14px;
}
.shardsReward .title{
  font-size: 18px;
}
.shardsReward .bin{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.shardsReward .actions{
  display:flex;
  justify-content:flex-end;
  margin-top: 14px;
}
.shardsReward .closeBtnSecondary{
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.shardsReward .closeBtnSecondary:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}
.shardsReward .closeBtnSecondary:active{ transform: translateY(0) scale(0.98); }
.shardsReward .closeBtn{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 18px;
  line-height: 1;
}
@media (max-width: 780px){
  .shardsReward{ padding: 14px; }
  .shardsReward .panel{ max-height: 86vh; }
  .shardsReward .img{ height: min(30vh, 220px); }
  .shardsReward .content{ padding: 16px 16px 14px; }
  .shardsReward .actions{ justify-content: stretch; }
  .shardsReward .closeBtnSecondary{ width: 100%; }
}




/* Store (v25) */
.storeWrap{ margin-top: 6px; }
.storeHeader{ margin-bottom: 14px; }
.storeKicker{ color: rgba(255,255,255,0.72); font-weight: 700; letter-spacing: .2px; font-size: .9rem; }
.storeTitle{ margin: 6px 0 4px; font-size: 1.55rem; }
.storeSub{ color: rgba(255,255,255,0.75); margin: 0; }

.storeControls{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  display: grid;
  gap: 12px;
}
.storeSearch{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.78);
}
.storeSearch input{
  width:100%;
  background: transparent;
  border: 0;
  outline: none;
  color: rgba(255,255,255,0.78);
  font-weight: 600;
}
.storeSearch input:disabled{ opacity: .65; cursor: not-allowed; }
.storeChips{ display:flex; flex-wrap:wrap; gap: 8px; }
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.14);
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  font-size: .85rem;
}
.chip.isActive{ border-color: rgba(255,255,255,0.26); background: rgba(255,255,255,0.06); }
.chip:disabled{ opacity: .75; cursor:not-allowed; }

.storeMeta{ display:flex; flex-wrap:wrap; gap: 8px; }
.metaPill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  color: rgba(255,255,255,0.72);
  font-weight: 700;
  font-size: .82rem;
}

.storeGrid{ margin-top: 14px; }
.emptyStateCard{
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.16);
}
.emptyStateCard h3{ margin: 10px 0 6px; }
.emptyStateCard p{ margin: 0; color: rgba(255,255,255,0.76); }
.emptyIcon{
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
}

/* v28: executive headshot support */
.avatarPh.hasImg{ padding:0; overflow:hidden; }
.avatarPh.hasImg img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:22px; }

/* v28: executive photo avatars */
.avatarPh.hasImg{ padding:0; overflow:hidden; }
.avatarPh.hasImg img{ width:100%; height:100%; object-fit:cover; display:block; }


/* Cart / Checkout scaffold */
.checkoutCard .cardHeader { margin-bottom: 10px; }
.checkoutBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:16px;
}
.checkoutTotals{ display:flex; flex-direction:column; gap:6px; }
.totRow{ display:flex; align-items:center; justify-content:space-between; gap:18px; min-width:260px;}
.btn.disabled, a[aria-disabled="true"]{
  opacity:.45;
  pointer-events:none;
}
@media (max-width: 720px){
  .checkoutBar{ flex-direction:column; align-items:stretch; }
  .totRow{ min-width:0; }
}


/* v30 footer hotfix: keep socials proportional + prevent icon shrink overrides */
.footer .socialRow{gap:14px;align-items:center;}
.footer .socialIcon{width:46px;height:46px;border-radius:14px;}
.footer .socialIcon img{width:26px;height:26px;object-fit:contain;display:block;}
@media (max-width: 780px){
  .footer .socialIcon{width:44px;height:44px;border-radius:14px;}
  .footer .socialIcon img{width:24px;height:24px;}
}

/* v30 footer hotfix: ensure top alignment for all columns */
.footerCols > div{align-self:start;}

/* v30.6 patch: header spacing + footer polish + GitHub social */
@media (min-width: 821px){
  /* Move nav links slightly left and keep right controls aligned */
  .navRow{justify-content:flex-start;}
  .navMenu{order:2; margin-left:auto; margin-right:14px;}
  .navControls{order:3;}
}

/* Footer: remove extra bottom air while keeping breathing room */
.footer{padding-bottom:10px;}
.footerBottom{margin-top:12px; padding-top:10px;}

/* Footer layout: bring the middle column (Header Links) closer and reduce blank air */
@media (min-width: 921px){
  .footerCols{
    grid-template-columns: minmax(280px, 1.05fr) 1fr 1fr;
    gap: 14px 18px;
  }
}

/* Social tiles: match footer link pill proportions */
.footer .socialRow{gap:12px;}
.footer .socialIcon{width:42px;height:42px;border-radius:14px;}
.footer .socialIcon img{width:22px;height:22px;}

@media (max-width: 920px){
  .footer .socialIcon{width:40px;height:40px;}
  .footer .socialIcon img{width:21px;height:21px;}
}

/* v30.7: REAL footer tighten + alignment (shorter footer, less blank space) */
.footer{
  padding: 12px 0 8px !important;
}
.footerSlogan{margin-top:6px !important;}
.footerNav{margin-top:8px !important; gap:8px !important;}
.footerNav a{padding:6px 9px !important;}
.socialRow{margin-top:10px !important;}
.footerBottom{margin-top:10px !important; padding-top:8px !important;}

/* Bring the middle column (Header Links) closer to the brand block */
@media (min-width: 921px){
  .footerCols{
    grid-template-columns: minmax(240px, 0.95fr) 1.1fr 1fr !important;
    gap: 10px 14px !important;
  }
}

/* Ensure columns don't create extra vertical air */
.footerCols{align-content:start !important;}
.footerCols > div{padding-top:0 !important;}

/* v31: footer breathing room + subtle bottom-left accent */
.footer{
  padding-top: 18px !important; /* a little space so it doesn't feel glued to the section above */
  position: relative;
  overflow: hidden; /* keeps the accent clean within rounded casing */
}
.footer::after{
  content: "";
  position: absolute;
  left: -140px;
  bottom: -160px;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(255,255,255,0.11) 0%,
    rgba(255,255,255,0.05) 34%,
    rgba(255,255,255,0.00) 72%
  );
  pointer-events: none;
  z-index: 0;
}
.footer > *{position: relative; z-index: 1;}

@media (max-width: 780px){
  .footer::after{
    left: -160px;
    bottom: -200px;
    width: 520px;
    height: 520px;
  }
}

/* v31.2 footer line accent (bottom-left) + keep content unobstructed */
.footer{position:relative; overflow:hidden;}
.footer .container{position:relative; z-index:1;}

/* Subtle white line motif in the bottom-left corner */
.footer::before{
  content:"";
  position:absolute;
  left:-40px;
  bottom:-40px;
  width:260px;
  height:180px;
  pointer-events:none;
  z-index:0;
  opacity:0.22;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.55) 0px,
      rgba(255,255,255,0.55) 2px,
      rgba(255,255,255,0.0) 2px,
      rgba(255,255,255,0.0) 16px
    );
  mask-image: radial-gradient(circle at 30% 70%, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: radial-gradient(circle at 30% 70%, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 85%);
}

@media (max-width: 780px){
  .footer::before{
    width:200px;
    height:140px;
    left:-50px;
    bottom:-55px;
    opacity:0.18;
  }
}

/* =========================
   v31 (rebuild): fixes
   - remove footer line motif
   - add matching subtle white glow to header/topbar
   ========================= */

/* --- Global header reliability + mobile-safe layout (v31) ---
   Pin the header to the viewport on ALL pages so it cannot be pushed
   off-screen or hidden by page-specific stacking/overflow contexts.
   Add matching body padding so content never sits underneath it.
*/

:root{ --topbar-h: 72px; }

body{ padding-top: calc(var(--topbar-h) + env(safe-area-inset-top)); }

@media (max-width: 780px){
  :root{ --topbar-h: 92px; }
}

/* Mobile nav panel positioning must respect the fixed header height */
@media (max-width: 780px){
  .navMenu{
    top: calc(var(--topbar-h) + env(safe-area-inset-top) + 8px) !important;
    max-height: calc(100vh - (var(--topbar-h) + env(safe-area-inset-top) + 28px)) !important;
  }
}

/* Remove the bottom-left "line thing" accent in the footer */
.footer::before{
  content: none !important;
  display: none !important;
}

/* Add the same soft white glow treatment to the header */
/*
  Header visibility + glow (v31):
  - Force the header to be visible on every page (some pages were rendering it as if missing).
  - Apply the same soft white glow treatment used in the footer.
*/
.topbar{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 4000;
  /* IMPORTANT: must allow dropdowns to render outside the header */
  overflow: visible;
}

/* Soft white glow (match footer's glow style, but placed at the top-left) */
.topbar::before{
  content: "";
  position: absolute;
  left: -140px;
  top: -160px;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(255,255,255,0.11) 0%,
    rgba(255,255,255,0.05) 34%,
    rgba(255,255,255,0.00) 72%
  );
  pointer-events: none;
  z-index: 0;
  /* Clip the glow to the rounded header without clipping dropdown menus */
  clip-path: inset(0 0 0 0 round 0 0 26px 26px);
}

/* Keep header content above the glow */
.topbar > *{ position: relative; z-index: 1; }

@media (max-width: 780px){
  .topbar::before{
    left: -160px;
    top: -200px;
    width: 520px;
    height: 520px;
  }
}

/* Desktop hover polish (v31): make section titles + dropdown titles grow on hover */
@media (min-width: 781px){
  .navLink{ transform-origin: center; }
  .navLink:hover{ transform: translateY(-1px) scale(1.07); }

  .dropLink{
    transform-origin: left center;
    transition: background .14s ease, transform .14s ease;
  }
  .dropLink:hover{ transform: scale(1.05); }
}

/* --- v31 Mobile header spacing + alignment (ONLY mobile) --- */
@media (max-width: 780px){
  /* Ensure the header row stays balanced and controls sit comfortably right */
  .navRow{
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
  }

  /* Let the brand shrink a touch so icons don't crowd it */
  .brand{ min-width: 0; padding: 8px 8px !important; gap: 10px !important; }
  .brand img{ height: 30px !important; }
  .brand span{ font-size: 20px !important; }

  /* Push the icon group to the far right and add breathing room from the brand */
  .navControls{
    margin-left: auto !important;
    padding-left: 12px !important; /* this is the "move search over" */
    gap: 14px !important;
    align-items: center !important;
  }

  /* Enforce icon order: Search, Cart, Hamburger */
  .searchBtnMobile{ order: 1 !important; }
  .cartBtnMobile{ order: 2 !important; }
  .hamburgerBtn{ order: 3 !important; }

  /* Hamburger should match other icon buttons: no outline/border box */
  .hamburgerBtn{
    border: 1px solid transparent !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .hamburgerBtn:focus,
  .hamburgerBtn:focus-visible{
    outline: none !important;
    box-shadow: none !important;
  }
}

/* --- v31 Mobile footer height fix --- */
@media (max-width: 780px){
  /* Use a compact 2-column grid so the footer isn't insanely tall */
  .footerCols{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-areas:
      "brand brand"
      "header ciryx"
      "altyx store" !important;
    gap: 12px 14px !important;
  }

  /* Split the combined Store+Explore block into two side-by-side columns */
  .footerCols > div:nth-child(5){
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    column-gap: 14px !important;
    row-gap: 10px !important;
    align-items: start !important;
  }
  .footerCols > div:nth-child(5) > :nth-child(1),
  .footerCols > div:nth-child(5) > :nth-child(2){ grid-column: 1; }
  .footerCols > div:nth-child(5) > :nth-child(3),
  .footerCols > div:nth-child(5) > :nth-child(4){ grid-column: 2; }

  /* Reduce extra padding that makes the footer feel long */
  .footer{ padding-top: 18px !important; padding-bottom: 10px !important; }
  .footerBottom{ margin-top: 10px !important; padding-top: 10px !important; }
}

/* =============================
   v31 FINAL OVERRIDES (do not remove)
   - Mobile footer: prevent Explore squish
   - Dev modal: true center + no divider + centered logo
   ============================= */

/* Mobile footer: make the Store/Explore block span full width so each column
   has enough room (prevents Explore pills from being cramped). */
@media (max-width: 780px){
  .footerCols{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-areas:
      "brand brand"
      "header ciryx"
      "altyx ciryx"
      "store store" !important;
  }
  .footerCols > div:nth-child(5){
    column-gap: 18px !important;
  }
}

/* Dev modal: center perfectly in viewport and align content center.
   (Also removes the divider line between content and button.) */
.devModal{ position: fixed; inset: 0; z-index: 9999; }
.devModal.isOpen{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.devModal .devPanel{
  margin: 0 !important;
}
.devModal .devActions{
  border-top: none !important;
  padding-top: 10px !important;
}
.devModal .devTop{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px !important;
}
.devModal .devLogo{
  margin: 0 auto !important;
}

/* =============================
   v31 FINAL OVERRIDES (do not remove)
   - Mobile footer: prevent Explore squish
   - Dev modal: true center + no divider + centered logo
   ============================= */

@media (max-width: 780px){
  /* Store/Explore block spans full width so it doesn't get squeezed */
  .footerCols{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-areas:
      "brand brand"
      "header ciryx"
      "altyx ciryx"
      "store store" !important;
    gap: 12px 14px !important;
  }

  .footerCols > div:nth-child(5){
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    column-gap: 18px !important;
  }
}

/* Dev modal: force true viewport centering (fixes any margin-top rules) */
.devModal.isOpen{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.devModal .devPanel{
  margin: 0 !important;
}

/* Dev modal: centered logo above text + no divider line */
.devModal .devTop{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px !important;
}
.devModal .devLogo{ margin: 0 !important; }
.devModal .devTitle{ text-align: center !important; }
.devModal .devActions{
  border-top: none !important;
}

/* =============================
   v31 FINAL OVERRIDES (do not remove)
   - Mobile footer: prevent Explore squish
   - Dev modal: true center + no divider + centered logo
   ============================= */

@media (max-width: 780px){
  /* Store/Explore block spans full width so it doesn't get squeezed */
  .footerCols{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-areas:
      "brand brand"
      "header ciryx"
      "altyx ciryx"
      "store store" !important;
    gap: 12px 14px !important;
  }

  .footerCols > div:nth-child(5){
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    column-gap: 16px !important;
    row-gap: 10px !important;
  }

  /* Give the Explore column a bit more breathing room */
  .footerCols > div:nth-child(5) > :nth-child(3),
  .footerCols > div:nth-child(5) > :nth-child(4){
    padding-left: 2px !important;
  }
}

/* Dev modal: always centered in the viewport (both axes) */
.devModal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.devModal.isOpen{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.devModal .devPanel{
  margin: 0 !important;
}

/* Dev modal: center the logo above text */
.devModal .devTop{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px !important;
}

/* Remove divider between content and button */
.devModal .devActions{
  border-top: none !important;
  padding-top: 0 !important;
}


/* =============================
   v31 MOBILE FOOTER GRID (FINAL)
   - Clean 2-column layout on phones
   - Titles + link pills align in a consistent grid
   ============================= */
@media (max-width: 780px){
  .footerCols{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-areas:
      "brand brand"
      "header header"
      "ciryx altyx"
      "store explore" !important;
    gap: 12px 14px !important;
    align-items: start !important;
    align-content: start !important;
  }

  /* kill older Store/Explore inner-grid hacks */
  .footerCols > div:nth-child(5),
  .footerCols > div:nth-child(6){
    display: block !important;
  }
}

/* Very narrow phones: stack sections to avoid pill squish */
@media (max-width: 420px){
  .footerCols{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "header"
      "ciryx"
      "altyx"
      "store"
      "explore" !important;
  }
}

/* --- v31: unified hover animation for buttons + icon controls --- */
/* Applies broadly, but avoids affecting plain text links by targeting known button-like classes and actual <button> elements */
:where(button, .btn, .btnPrimary, .btnGhost, .pill, .metaPill, .shardBtn, .closeBtn, .closeBtnSecondary, .devBtn, .searchBtn, .cartBtn, .cartBtnTop, .searchBtnDesktop, .hamburgerBtn, .cartBtnMobile, .searchBtnMobile){
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease, filter 180ms ease;
  will-change: transform;
}

/* Default hover for buttons site-wide */
:where(button, .btn, .btnPrimary, .btnGhost, .pill, .metaPill, .shardBtn, .closeBtn, .closeBtnSecondary, .devBtn):hover{
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.04);
}

/* Keep click feedback consistent */
:where(button, .btn, .btnPrimary, .btnGhost, .pill, .metaPill, .shardBtn, .closeBtn, .closeBtnSecondary, .devBtn):active{
  transform: translateY(0) scale(0.99);
  filter: brightness(0.98);
}

/* Desktop: icon controls (Search/Cart) get the stronger "expand" hover */
@media (min-width: 900px){
  .searchBtn:hover,
  .cartBtn:hover,
  .cartBtnTop:hover,
  .searchBtnDesktop:hover{
    transform: translateY(-1px) scale(1.10) !important;
  }
  .searchBtn:active,
  .cartBtn:active,
  .cartBtnTop:active,
  .searchBtnDesktop:active{
    transform: translateY(0) scale(0.98) !important;
  }
}

/* --- v31 polished overview pages: Store + Explore --- */
.overviewHero{
  position: relative;
  overflow: hidden;
}
.overviewHero::after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-120px;
  top:-130px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 62%);
  pointer-events:none;
}
.overviewSection{
  padding-top: 28px;
}
.overviewStats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
.overviewStat{
  border:1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-radius:22px;
  padding:18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}
.overviewStat b{
  display:block;
  font-size: clamp(20px, 3vw, 34px);
  line-height:1.05;
}
.overviewStat span{
  display:block;
  color:rgba(255,255,255,0.66);
  margin-top:8px;
  font-size:14px;
}
.storeOverviewPanel{
  display:grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap:18px;
  align-items:stretch;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  border-radius:28px;
  padding:18px;
  overflow:hidden;
}
.storeOverviewCopy{
  border-radius:22px;
  background: rgba(0,0,0,0.18);
  padding:22px;
}
.storeOverviewCopy h2{
  margin:8px 0 10px;
  font-size: clamp(26px, 4vw, 46px);
}
.storeOverviewCopy p{
  color:rgba(255,255,255,0.76);
  line-height:1.75;
}
.productCarousel{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(210px, 1fr);
  gap:14px;
  overflow-x:auto;
  padding:2px 2px 10px;
  scroll-snap-type:x mandatory;
}
.productMiniCard{
  min-height:260px;
  scroll-snap-align:start;
  border-radius:24px;
  padding:16px;
  border:1px solid rgba(255,255,255,0.12);
  background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}
.productThumb{
  height:120px;
  border-radius:20px;
  margin-bottom:auto;
  display:grid;
  place-items:center;
  font-size:34px;
  font-weight:800;
  letter-spacing:0.06em;
  color:rgba(255,255,255,0.86);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
  border:1px solid rgba(255,255,255,0.10);
}
.productMiniCard h3{
  margin:16px 0 6px;
  font-size:20px;
}
.productMiniCard p{
  margin:0;
  color:rgba(255,255,255,0.66);
}
.exploreOverviewGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
}
.overviewInfoCard{
  border:1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.04));
  border-radius:26px;
  padding:22px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}
.overviewInfoCard h2{
  margin:0 0 8px;
  font-size:26px;
}
.overviewInfoCard p{
  color:rgba(255,255,255,0.74);
  line-height:1.75;
  min-height:84px;
}
@media (max-width: 780px){
  .overviewStats{
    grid-template-columns:1fr;
  }
  .storeOverviewPanel{
    grid-template-columns:1fr;
    padding:14px;
  }
  .productCarousel{
    grid-auto-columns:minmax(190px, 82%);
  }
  .exploreOverviewGrid{
    grid-template-columns:1fr;
  }
  .overviewInfoCard p{
    min-height:0;
  }
}

/* --- v32 overview refinements --- */
.altyxCountdown{
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 780px){
  .altyxCountdown{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
.productMiniCard p{
  line-height: 1.55;
}

/* --- v33 global footer fix + homepage redesign --- */
html, body{
  min-height: 100%;
}
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main{
  flex: 1 0 auto;
}
.footer{
  flex-shrink: 0;
  margin-top: auto;
}

/* Homepage v33 */
.homeHeroV33{
  position: relative;
  padding: 18px 0 36px;
  overflow: hidden;
}
.homeHeroV33::before{
  content:"";
  position:absolute;
  inset:-220px -120px auto auto;
  width:520px;
  height:520px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 62%);
  pointer-events:none;
}
.homeHeroGrid{
  display:grid;
  grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr);
  gap:28px;
  align-items:center;
}
.homeHeroCopy h1{
  margin: 16px 0 14px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .92;
  letter-spacing: -0.06em;
}
.homeHeroCopy p{
  max-width: 680px;
  color: rgba(255,255,255,0.76);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}
.homeFeatureCard{
  border:1px solid rgba(255,255,255,0.13);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-radius: 30px;
  padding: 16px;
  box-shadow: 0 26px 90px rgba(0,0,0,0.34);
}
.homeMiniStats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.homeMiniStats span{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
  border-radius:16px;
  padding:12px;
  color: rgba(255,255,255,0.68);
  font-size:13px;
}
.homeMiniStats b{
  display:block;
  color: rgba(255,255,255,0.95);
  font-size:20px;
  margin-bottom:3px;
}
.homeV33Section{
  padding-top: 34px;
}
.homeSectionHead{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:end;
  margin-bottom:16px;
}
.homeSectionHead p{
  max-width:420px;
  color:rgba(255,255,255,0.68);
  line-height:1.65;
  margin:0;
}
.homeCardsV33{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:14px;
}
.homeNavCard{
  display:block;
  text-decoration:none;
  color:inherit;
  min-height:240px;
  border:1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  border-radius:26px;
  padding:20px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.homeNavCard:hover{
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255,255,255,0.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.18), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045));
}
.homeCardCode{
  width:54px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,0.09);
  border:1px solid rgba(255,255,255,0.12);
  color:rgba(255,255,255,0.9);
  font-weight:800;
  letter-spacing:.04em;
  margin-bottom:34px;
}
.homeNavCard h3{
  margin:0 0 8px;
  font-size:26px;
}
.homeNavCard p{
  margin:0;
  color:rgba(255,255,255,0.68);
  line-height:1.6;
}
.homeSplit{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
}
.homePanel{
  border:1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.04));
  border-radius:28px;
  padding:24px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}
.homePanel h2{
  margin:12px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
}
.homePanel p{
  color:rgba(255,255,255,0.72);
  line-height:1.75;
}

/* Altyx countdown v33 */
.altyxHeroV33{
  padding-bottom: 34px;
}
.altyxCountdownPanel{
  margin-top:22px;
  max-width:860px;
  border:1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
  border-radius:28px;
  padding:16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.countdownIntro{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  color:rgba(255,255,255,0.68);
  font-size:14px;
}
.countdownIntro b{
  color:rgba(255,255,255,0.94);
  font-size:16px;
}
.countdownGridV33{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}
.countdownGridV33 .countdownBox{
  background: rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.14);
}

@media (max-width: 900px){
  .homeHeroGrid{
    grid-template-columns:1fr;
  }
  .homeCardsV33{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .homeSectionHead{
    align-items:start;
    flex-direction:column;
  }
}
@media (max-width: 620px){
  .homeHeroV33{
    padding: 48px 0 26px;
  }
  .homeCardsV33,
  .homeSplit{
    grid-template-columns:1fr;
  }
  .homeNavCard{
    min-height:190px;
  }
  .homeMiniStats{
    grid-template-columns:1fr;
  }
  .countdownGridV33{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .altyxCountdownPanel{
    padding:13px;
  }
}

/* --- v34 mobile dropdown fix: proportional tap-to-open hamburger menu --- */
@media (max-width: 780px){
  .topbar{
    overflow: visible !important;
  }

  .navRow{
    align-items: center !important;
    gap: 8px !important;
  }

  .brand{
    padding: 7px 8px !important;
    gap: 8px !important;
    max-width: calc(100vw - 172px) !important;
  }

  .brand img{
    height: 30px !important;
  }

  .brand span{
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .navControls{
    margin-left: auto !important;
    gap: 8px !important;
    padding-left: 10px !important;
    align-items: center !important;
  }

  .searchBtnMobile,
  .cartBtnMobile,
  .hamburgerBtn{
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    border-radius: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .searchBtnMobile svg,
  .cartBtnMobile svg{
    width: 20px !important;
    height: 20px !important;
  }

  .hamburgerBtn{
    border: 1px solid transparent !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .hamburgerBtn span{
    left: 11px !important;
    right: 11px !important;
    height: 2px !important;
  }

  .hamburgerBtn span:nth-child(1){ top: 13px !important; }
  .hamburgerBtn span:nth-child(2){ top: 20px !important; }
  .hamburgerBtn span:nth-child(3){ top: 27px !important; }

  body.navOpen .hamburgerBtn span:nth-child(1){ transform: translateY(7px) rotate(45deg) !important; }
  body.navOpen .hamburgerBtn span:nth-child(2){ opacity: 0 !important; transform: scaleX(0.2) !important; }
  body.navOpen .hamburgerBtn span:nth-child(3){ transform: translateY(-7px) rotate(-45deg) !important; }

  .navMenu{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 68px !important;
    max-height: calc(100dvh - 86px) !important;
    overflow: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px !important;
    margin: 0 !important;
    border-radius: 20px !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(255,255,255,0.12), transparent 34%),
      rgba(10,11,16,0.96) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: 0 18px 60px rgba(0,0,0,0.55) !important;
    z-index: 3600 !important;

    transform: translateY(-10px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .18s ease, transform .18s ease !important;
  }

  body.navOpen .navMenu{
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .navMenu .navItem{
    width: 100% !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.045) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    overflow: hidden !important;
  }

  .navMenu .navLink{
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 12px !important;
    border-radius: 16px !important;
    justify-content: space-between !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    background: rgba(255,255,255,0.045) !important;
    border: 0 !important;
    transform: none !important;
  }

  .navMenu .navLink::after{
    content: "";
    width: 8px !important;
    height: 8px !important;
    border: solid rgba(255,255,255,0.78) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    margin-top: -4px !important;
    transition: transform .16s ease !important;
  }

  .navMenu .navItem.open .navLink::after{
    transform: rotate(225deg) !important;
    margin-top: 2px !important;
  }

  .navMenu .dropdown,
  .navMenu .navItem:hover .dropdown,
  .navMenu .navItem:focus-within .dropdown{
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    translate: none !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 8px 8px !important;
    gap: 7px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .navMenu .navItem.open .dropdown{
    display: grid !important;
  }

  .navMenu .dropLink{
    border-radius: 13px !important;
    padding: 10px 11px !important;
    background: rgba(255,255,255,0.055) !important;
    color: rgba(255,255,255,0.92) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    transform: none !important;
    font-size: 14px !important;
  }

  .navMenu .dropLink span{
    color: rgba(255,255,255,0.62) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .navMenu .navIconItem,
  .navMenu .cartBtn{
    display: none !important;
  }

  .pageHero h1,
  .homeHeroCopy h1{
    font-size: clamp(38px, 12vw, 58px) !important;
    line-height: .95 !important;
  }

  .sectionTitle{
    font-size: clamp(28px, 8vw, 42px) !important;
  }

  .btn{
    max-width: 100%;
  }
}

@media (max-width: 430px){
  .brand span{
    font-size: 16px !important;
  }

  .brand img{
    height: 28px !important;
  }

  .navControls{
    gap: 6px !important;
    padding-left: 8px !important;
  }

  .searchBtnMobile,
  .cartBtnMobile,
  .hamburgerBtn{
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
  }

  .navMenu{
    left: 10px !important;
    right: 10px !important;
    top: 64px !important;
    max-height: calc(100dvh - 78px) !important;
    padding: 10px !important;
  }
}

/* --- v34 global mobile proportions + hamburger main-page access --- */

/* Hide direct section landing links on desktop; top-level nav already handles this on desktop */
.mobileMainLink{
  display: none !important;
}

@media (max-width: 780px){
  .mobileMainLink{
    display: block !important;
  }

  /* Global mobile type scale */
  body{
    font-size: 15px !important;
    overflow-x: hidden !important;
  }

  .container{
    width: 100% !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
  }

  .section{
    padding: 34px 0 !important;
  }

  .pageHero,
  .hero,
  .homeHeroV33{
    padding-top: 20px !important;
    padding-bottom: 30px !important;
  }

  .pageHero h1,
  .hero h1,
  .homeHeroCopy h1,
  .h1{
    font-size: clamp(38px, 11vw, 58px) !important;
    line-height: .96 !important;
    letter-spacing: -0.045em !important;
  }

  .pageHero p,
  .sub,
  .homeHeroCopy p{
    font-size: 15.5px !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
  }

  .sectionTitle{
    font-size: clamp(28px, 8vw, 42px) !important;
    line-height: 1.05 !important;
  }

  h2{
    font-size: clamp(24px, 7vw, 36px) !important;
    line-height: 1.1 !important;
  }

  h3{
    font-size: clamp(19px, 5.5vw, 26px) !important;
    line-height: 1.15 !important;
  }

  .card,
  .overviewInfoCard,
  .homePanel,
  .storeOverviewCopy,
  .storeOverviewPanel,
  .videoCard,
  .emptyStateCard{
    border-radius: 20px !important;
    padding: 16px !important;
  }

  .sectionGrid,
  .homeCardsV33,
  .homeSplit,
  .exploreOverviewGrid,
  .storeOverviewPanel,
  .heroInner,
  .homeHeroGrid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .overviewStats{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .overviewStat{
    padding: 15px !important;
    border-radius: 18px !important;
  }

  .overviewStat b{
    font-size: clamp(22px, 7vw, 32px) !important;
  }

  .productCarousel{
    grid-auto-columns: minmax(210px, 84%) !important;
    gap: 12px !important;
  }

  .productMiniCard{
    min-height: 220px !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .productThumb{
    height: 96px !important;
    border-radius: 16px !important;
    font-size: 28px !important;
  }

  .ctaRow{
    gap: 10px !important;
  }

  .btn,
  button{
    min-height: 42px;
    font-size: 14px !important;
  }

  .videoFrame,
  .heroVideoFrame{
    border-radius: 18px !important;
  }

  /* Mobile hamburger menu proportional layout */
  .navMenu{
    top: 64px !important;
    max-height: calc(100dvh - 78px) !important;
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 18px !important;
  }

  .navMenu .navLink{
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 15.5px !important;
    border-radius: 15px !important;
  }

  .navMenu .dropLink{
    padding: 10px 11px !important;
    font-size: 13.5px !important;
  }

  .navMenu .dropLink span{
    font-size: 11.5px !important;
  }

  .mobileMainLink{
    background: rgba(255,255,255,0.105) !important;
    border-color: rgba(255,255,255,0.14) !important;
    font-weight: 800 !important;
  }

  .mobileMainLink::before{
    content: "↗";
    margin-right: 8px;
    opacity: .75;
  }

  .footer{
    padding-top: 28px !important;
    padding-bottom: 18px !important;
  }

  .footerCols{
    gap: 12px 14px !important;
  }
}

@media (max-width: 430px){
  .container{
    padding-left: max(14px, env(safe-area-inset-left)) !important;
    padding-right: max(14px, env(safe-area-inset-right)) !important;
  }

  .pageHero h1,
  .hero h1,
  .homeHeroCopy h1,
  .h1{
    font-size: clamp(34px, 11vw, 48px) !important;
  }

  .section{
    padding: 28px 0 !important;
  }

  .card,
  .overviewInfoCard,
  .homePanel,
  .storeOverviewCopy,
  .storeOverviewPanel,
  .videoCard,
  .emptyStateCard{
    padding: 14px !important;
  }

  .productCarousel{
    grid-auto-columns: minmax(190px, 88%) !important;
  }
}

/* --- v34 mobile hamburger spacing fix: no header overlap + cleaner dropdown spacing --- */
@media (max-width: 780px){
  :root{
    --mobile-header-height: 58px;
    --mobile-menu-gap: 6px;
  }

  .topbar{
    position: sticky !important;
    top: 0 !important;
    z-index: 5000 !important;
  }

  .navMenu{
    top: calc(var(--mobile-header-height) + var(--mobile-menu-gap) + env(safe-area-inset-top)) !important;
    left: 12px !important;
    right: 12px !important;
    max-height: calc(100dvh - var(--mobile-header-height) - var(--mobile-menu-gap) - 18px - env(safe-area-inset-top)) !important;
    padding: 13px !important;
    gap: 12px !important;
    border-radius: 22px !important;
    scroll-padding-top: 12px !important;
  }

  .navMenu .navItem{
    margin: 0 !important;
    border-radius: 18px !important;
  }

  .navMenu .navLink{
    min-height: 46px !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
  }

  .navMenu .navItem.open .navLink{
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
  }

  .navMenu .dropdown,
  .navMenu .navItem.open .dropdown{
    padding: 10px 10px 12px !important;
    gap: 10px !important;
    row-gap: 10px !important;
  }

  .navMenu .dropLink{
    display: block !important;
    margin: 0 !important;
    padding: 12px 13px !important;
    border-radius: 15px !important;
    line-height: 1.25 !important;
  }

  .navMenu .dropLink + .dropLink{
    margin-top: 0 !important;
  }

  .navMenu .dropLink span{
    display: block !important;
    margin-top: 4px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 430px){
  :root{
    --mobile-header-height: 54px;
    --mobile-menu-gap: 6px;
  }

  .navMenu{
    left: 10px !important;
    right: 10px !important;
    padding: 11px !important;
    gap: 10px !important;
    border-radius: 20px !important;
  }

  .navMenu .dropdown,
  .navMenu .navItem.open .dropdown{
    padding: 9px 9px 11px !important;
    gap: 9px !important;
  }

  .navMenu .dropLink{
    padding: 11px 12px !important;
  }
}

/* --- v34 mobile header/topbar final fix + homepage-style hamburger dropdowns --- */
@media (max-width: 780px){
  html, body{
    margin: 0 !important;
    padding-top: 0 !important;
  }

  body{
    --mobile-topbar-height: 58px;
  }

  .topbar{
    position: sticky !important;
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: auto !important;
    z-index: 5000 !important;
  }

  .topbar > .container{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .navRow{
    min-height: var(--mobile-topbar-height) !important;
    height: var(--mobile-topbar-height) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
  }

  .brand{
    padding: 6px 7px !important;
    gap: 7px !important;
  }

  .brand img{
    height: 24px !important;
  }

  .brand span{
    font-size: 15px !important;
    line-height: 1 !important;
  }

  .navControls{
    gap: 7px !important;
    padding-left: 8px !important;
  }

  .searchBtnMobile,
  .cartBtnMobile,
  .hamburgerBtn{
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
  }

  .searchBtnMobile svg,
  .cartBtnMobile svg{
    width: 17px !important;
    height: 17px !important;
  }

  .hamburgerBtn{
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .hamburgerBtn span{
    left: 10px !important;
    right: 10px !important;
    height: 2px !important;
  }

  .hamburgerBtn span:nth-child(1){ top: 11px !important; }
  .hamburgerBtn span:nth-child(2){ top: 17px !important; }
  .hamburgerBtn span:nth-child(3){ top: 23px !important; }

  body.navOpen .hamburgerBtn span:nth-child(1){ transform: translateY(6px) rotate(45deg) !important; }
  body.navOpen .hamburgerBtn span:nth-child(2){ opacity: 0 !important; transform: scaleX(.2) !important; }
  body.navOpen .hamburgerBtn span:nth-child(3){ transform: translateY(-6px) rotate(-45deg) !important; }

  .navMenu{
    top: calc(var(--mobile-topbar-height) + 6px) !important;
    left: 10px !important;
    right: 10px !important;
    max-height: calc(100dvh - var(--mobile-topbar-height) - 18px) !important;
    padding: 10px !important;
    gap: 7px !important;
    border-radius: 18px !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(255,255,255,0.12), transparent 32%),
      rgba(10,11,16,0.96) !important;
  }

  /* Make hamburger sections look like the clean homepage cards */
  .navMenu .navItem{
    border-radius: 14px !important;
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .navMenu .navLink{
    min-height: 38px !important;
    padding: 9px 11px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)) !important;
    border: 0 !important;
    transform: none !important;
  }

  .navMenu .navLink::after{
    width: 7px !important;
    height: 7px !important;
    margin-top: -3px !important;
  }

  .navMenu .navItem.open .navLink::after{
    margin-top: 2px !important;
  }

  .navMenu .dropdown,
  .navMenu .navItem:hover .dropdown,
  .navMenu .navItem:focus-within .dropdown{
    display: none !important;
    padding: 7px !important;
    gap: 7px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  .navMenu .navItem.open .dropdown{
    display: grid !important;
  }

  .navMenu .dropLink{
    border-radius: 12px !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    transform: none !important;
  }

  .navMenu .dropLink span{
    display: block !important;
    margin-top: 3px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    opacity: .75 !important;
  }

  .mobileMainLink{
    background: rgba(255,255,255,0.10) !important;
    border-color: rgba(255,255,255,0.12) !important;
  }
}

@media (max-width: 430px){
  body{
    --mobile-topbar-height: 54px;
  }

  .brand img{
    height: 22px !important;
  }

  .brand span{
    font-size: 14px !important;
  }

  .searchBtnMobile,
  .cartBtnMobile,
  .hamburgerBtn{
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
  }

  .navMenu{
    top: calc(var(--mobile-topbar-height) + 5px) !important;
    left: 8px !important;
    right: 8px !important;
    padding: 8px !important;
    gap: 6px !important;
  }
}

/* --- v36 redesigned section pages, matching Cloudform glass style --- */
.v36Hero{
  position: relative;
  overflow: hidden;
}
.v36Hero::after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-120px;
  top:-130px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 62%);
  pointer-events:none;
}
.v36Section{
  padding-top: 28px;
}
.v36Grid,
.v36Pricing,
.v36GameGrid,
.v36NewsGrid,
.v36EventGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}
.v36GameGrid,
.v36NewsGrid{
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.v36EventGrid{
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.v36Card,
.v36PriceCard,
.v36GameCard,
.v36NewsCard,
.v36EventCard,
.v36Job,
.v36WidePanel,
.v36Timeline article{
  border:1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-radius:26px;
  padding:22px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
}
.v36Card,
.v36PriceCard,
.v36GameCard,
.v36NewsCard,
.v36EventCard{
  min-height: 250px;
}
.v36Card h2,
.v36PriceCard h2,
.v36GameCard h2,
.v36NewsCard h2,
.v36EventCard h2,
.v36WidePanel h2,
.v36Timeline h2,
.v36Job h2{
  margin:10px 0 8px;
  font-size: clamp(24px, 3vw, 38px);
  line-height:1.05;
}
.v36Card p,
.v36PriceCard p,
.v36GameCard p,
.v36NewsCard p,
.v36EventCard p,
.v36WidePanel p,
.v36Timeline p,
.v36Job p{
  color:rgba(255,255,255,0.72);
  line-height:1.7;
}
.v36Code,
.v36GameArt{
  width:64px;
  height:64px;
  border-radius:20px;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.24), transparent 36%),
    rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  font-weight:900;
  letter-spacing:.04em;
}
.v36GameArt{
  width:100%;
  height:140px;
  margin-bottom:16px;
  font-size:36px;
}
.v36WidePanel{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.v36PriceCard.featured{
  border-color: rgba(255,255,255,0.24);
  background:
    radial-gradient(circle at 18% 0%, rgba(124,92,255,0.22), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
}
.v36Price{
  font-size: clamp(28px, 4vw, 48px);
  margin:14px 0;
  color:rgba(255,255,255,0.95);
}
.v36PriceCard ul{
  margin:16px 0 0;
  padding-left:18px;
  color:rgba(255,255,255,0.72);
  line-height:1.85;
}
.v36Timeline{
  display:grid;
  gap:14px;
}
.v36Timeline article{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:18px;
  align-items:start;
}
.v36Timeline span{
  color:rgba(255,255,255,0.62);
  font-size:14px;
}
.v36About{
  display:grid;
  gap:16px;
}
.v36JobBoard{
  display:grid;
  gap:14px;
}
.v36Job{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.v36NewsCard .btn,
.v36EventCard .btn{
  margin-top:14px;
}
.v36Card:hover,
.v36PriceCard:hover,
.v36GameCard:hover,
.v36NewsCard:hover,
.v36EventCard:hover,
.v36Job:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.20);
}
.v36Card,
.v36PriceCard,
.v36GameCard,
.v36NewsCard,
.v36EventCard,
.v36Job{
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

@media (max-width: 980px){
  .v36Grid,
  .v36Pricing,
  .v36GameGrid,
  .v36NewsGrid,
  .v36EventGrid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 780px){
  .v36Grid,
  .v36Pricing,
  .v36GameGrid,
  .v36NewsGrid,
  .v36EventGrid{
    grid-template-columns:1fr;
    gap:14px;
  }
  .v36Card,
  .v36PriceCard,
  .v36GameCard,
  .v36NewsCard,
  .v36EventCard,
  .v36Job,
  .v36WidePanel,
  .v36Timeline article{
    padding:16px;
    border-radius:20px;
    min-height:auto;
  }
  .v36WidePanel,
  .v36Job{
    flex-direction:column;
    align-items:flex-start;
  }
  .v36Timeline article{
    grid-template-columns:1fr;
    gap:6px;
  }
  .v36GameArt{
    height:110px;
    font-size:30px;
  }
}

/* --- v36 page-within-page hubs + studio/developer blog layouts --- */
.pageHub{
  position: sticky;
  top: 72px;
  z-index: 90;
  padding: 10px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pageHubInner{
  display:flex;
  align-items:center;
  gap:16px;
  border:1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.14), transparent 30%),
    rgba(10,11,16,0.78);
  border-radius:22px;
  padding:10px;
  overflow:hidden;
}
.pageHubBrand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-radius:16px;
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.10);
  white-space:nowrap;
  font-weight:900;
}
.pageHubLogo,
.blogIcon{
  width:30px;
  height:30px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.10);
  font-size:12px;
}
.pageHubScroller,
.blogScroller{
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  scrollbar-width:none;
}
.pageHubScroller::-webkit-scrollbar,
.blogScroller::-webkit-scrollbar{display:none;}
.pageHubScroller a,
.blogScroller a{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  border-radius:16px;
  padding:10px 13px;
  background:rgba(255,255,255,0.055);
  border:1px solid rgba(255,255,255,0.09);
  color:rgba(255,255,255,0.84);
  transition:transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.pageHubScroller a:hover,
.blogScroller a:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,0.10);
  border-color:rgba(255,255,255,0.18);
}
.studioSection{
  margin-bottom:24px;
  border:1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  border-radius:28px;
  padding:20px;
}
.studioHeader{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:18px;
  margin-bottom:16px;
}
.studioHeader h2{
  margin:6px 0 4px;
  font-size:clamp(28px, 4vw, 52px);
}
.studioHeader p{
  color:rgba(255,255,255,0.70);
  line-height:1.65;
}
.studioCarousel{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(230px, 28%);
  gap:14px;
  overflow-x:auto;
  padding:2px 2px 10px;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
}
.studioGameCard{
  scroll-snap-align:start;
  min-height:260px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,0.12);
  background:linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  padding:16px;
  display:flex;
  flex-direction:column;
  box-shadow:0 18px 60px rgba(0,0,0,0.20);
}
.studioGameArt,
.devBlogArt{
  height:110px;
  border-radius:20px;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.22), transparent 38%),
    rgba(255,255,255,0.075);
  border:1px solid rgba(255,255,255,0.10);
  font-size:34px;
  font-weight:900;
  margin-bottom:14px;
}
.studioGameCard h3{
  margin:0 0 8px;
  font-size:24px;
}
.studioGameCard p{
  color:rgba(255,255,255,0.68);
  line-height:1.55;
  flex:1;
}
.emptySlot{
  opacity:.72;
}
.blogFilterRow{
  position:sticky;
  top:142px;
  z-index:80;
  padding:8px 0;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.blogScroller{
  border-bottom:1px solid rgba(255,255,255,0.10);
  padding:8px 0 12px;
}
.devBlogGrid{
  display:grid;
  gap:16px;
}
.devBlogCard{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:22px;
  align-items:center;
  border:1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 16% 0%, rgba(255,255,255,0.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-radius:28px;
  padding:20px;
  box-shadow:0 18px 60px rgba(0,0,0,0.20);
}
.devBlogArt{
  height:190px;
  margin:0;
  font-size:42px;
}
.devBlogCopy h2{
  margin:12px 0 8px;
  font-size:clamp(28px, 4vw, 52px);
}
.devBlogCopy p{
  color:rgba(255,255,255,0.72);
  line-height:1.7;
}

@media (max-width: 780px){
  .pageHub{
    position:sticky;
    top:58px;
    padding:7px 0;
  }
  .pageHubInner{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    border-radius:18px;
    padding:9px;
  }
  .pageHubBrand{
    justify-content:space-between;
    padding:8px 10px;
  }
  .pageHubBrand::after{
    content:"Sections";
    color:rgba(255,255,255,0.58);
    font-size:11px;
  }
  .pageHubScroller{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
    max-height:0;
    overflow:hidden;
    transition:max-height .18s ease;
  }
  .pageHubInner:focus-within .pageHubScroller,
  .pageHubInner:hover .pageHubScroller{
    max-height:360px;
  }
  .pageHubScroller a{
    padding:10px 11px;
    border-radius:13px;
  }
  .studioSection{
    border-radius:22px;
    padding:15px;
  }
  .studioCarousel{
    grid-auto-columns:minmax(210px, 86%);
    gap:12px;
  }
  .blogFilterRow{
    top:132px;
    position:sticky;
  }
  .blogScroller{
    gap:8px;
    padding-bottom:10px;
  }
  .blogScroller a{
    padding:9px 10px;
    font-size:12px;
  }
  .devBlogCard{
    grid-template-columns:1fr;
    gap:14px;
    border-radius:22px;
    padding:15px;
  }
  .devBlogArt{
    height:120px;
    font-size:34px;
  }
}

/* --- v36 section bars: desktop second top bars + mobile section dropdowns --- */

/* Main top bar is now direct section links, not dropdowns */
.navMenu > .navItem > .dropdown{
  display: none !important;
}
.navLink::after{
  display: none !important;
}
.navLink{
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
}
.navLink:hover{
  transform: translateY(-2px) scale(1.06) !important;
  background: rgba(255,255,255,0.075) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.navLink:active{
  transform: translateY(0) scale(.98) !important;
}

/* Section bars */
.pageHub{
  position: sticky;
  top: 74px;
  z-index: 120;
  padding: 10px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pageHubInner{
  display:flex;
  align-items:center;
  gap:14px;
  border:1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.14), transparent 30%),
    rgba(10,11,16,0.82);
  border-radius:22px;
  padding:10px;
  overflow:hidden;
  box-shadow:0 14px 50px rgba(0,0,0,0.24);
}
.pageHubBrand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 13px;
  border-radius:16px;
  background:rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.10);
  white-space:nowrap;
  font-weight:900;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.pageHubBrand:hover{
  transform: scale(1.06);
  background:rgba(255,255,255,0.11);
  box-shadow:0 12px 42px rgba(0,0,0,0.28);
}
.pageHubLogo{
  width:24px;
  height:24px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.10);
  font-size:12px;
  transition: transform 220ms ease;
}
.pageHubBrand:hover .pageHubLogo{
  transform: rotate(-6deg) scale(1.08);
}
.pageHubScroller{
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  scrollbar-width:none;
}
.pageHubScroller::-webkit-scrollbar{display:none;}
.pageHubScroller a{
  display:flex;
  align-items:center;
  white-space:nowrap;
  border-radius:16px;
  padding:10px 13px;
  background:rgba(255,255,255,0.055);
  border:1px solid rgba(255,255,255,0.09);
  color:rgba(255,255,255,0.84);
  transition:transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.pageHubScroller a:hover{
  transform:translateY(-2px) scale(1.04);
  background:rgba(255,255,255,0.10);
  border-color:rgba(255,255,255,0.18);
}

/* Mobile top hamburger: only direct main sections */
@media (max-width: 780px){
  .navMenu{
    top: 60px !important;
  }
  .navMenu .navItem{
    border-radius: 14px !important;
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    overflow: hidden !important;
  }
  .navMenu .navLink{
    min-height: 40px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    justify-content: flex-start !important;
    background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)) !important;
    transform: none !important;
  }
  .navMenu .navLink:hover{
    transform: none !important;
  }
  .navMenu .dropdown,
  .navMenu .navItem.open .dropdown{
    display:none !important;
  }

  /* Section bar becomes its own dropdown under the page hero */
  .pageHub{
    position: sticky;
    top: 60px;
    z-index: 115;
    padding: 7px 0;
  }
  .pageHubInner{
    display:block;
    border-radius:18px;
    padding:8px;
  }
  .pageHubBrand{
    width:100%;
    justify-content:space-between;
    padding:9px 11px;
    border-radius:15px;
  }
  .pageHubBrand::after{
    content:"Open pages";
    color:rgba(255,255,255,0.58);
    font-size:11px;
    font-weight:800;
  }
  .pageHubScroller{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
    max-height:0;
    opacity:0;
    overflow:hidden;
    transition:max-height .2s ease, opacity .2s ease, padding-top .2s ease;
    padding-top:0;
  }
  .pageHubInner:hover .pageHubScroller,
  .pageHubInner:focus-within .pageHubScroller{
    max-height:360px;
    opacity:1;
    padding-top:8px;
  }
  .pageHubScroller a{
    padding:10px 11px;
    border-radius:13px;
    font-size:13px;
  }
}

@media (max-width: 430px){
  .pageHub{
    top:54px;
  }
}

/* --- FINAL v36 section bar placement + mobile dropdown arrow fix --- */

/* Desktop: the section bar is the true second topbar directly below the main topbar */
@media (min-width: 781px){
  .pageHub{
    position: sticky !important;
    top: 58px !important;
    z-index: 4990 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    background: rgba(8,9,14,0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .pageHub .container{
    width: min(1160px, calc(100% - 40px)) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .pageHubInner{
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 5px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    overflow: visible !important;
  }

  .pageHubBrand{
    border-radius: 11px !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
  }

  .pageHubScroller{
    display: flex !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow-x: auto !important;
    padding: 0 !important;
  }
}

/* Mobile: section bar is compact and controlled by a real dropdown arrow */
@media (max-width: 780px){
  .pageHub{
    position: sticky !important;
    top: 52px !important;
    z-index: 4980 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(8,9,14,0.90) !important;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .pageHub .container{
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .pageHubInner{
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .pageHubBrand{
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 9px 11px !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,0.065) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    cursor: pointer !important;
  }

  .pageHubBrand::after{
    content: "" !important;
    width: 9px !important;
    height: 9px !important;
    border: solid rgba(255,255,255,0.78) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    margin-left: auto !important;
    transition: transform .18s ease, margin-top .18s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubBrand::after{
    transform: rotate(225deg) !important;
    margin-top: 5px !important;
  }

  .pageHubScroller{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: max-height .2s ease, opacity .2s ease, padding-top .2s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubScroller{
    max-height: 380px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
  }

  .pageHubScroller a{
    padding: 10px 11px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
  }

  .pageHubInner:hover .pageHubScroller,
  .pageHubInner:focus-within .pageHubScroller{
    /* JS controls open state on mobile. Prevent accidental hover/focus bugging out. */
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
  }

  .pageHubInner.sectionOpen:hover .pageHubScroller,
  .pageHubInner.sectionOpen:focus-within .pageHubScroller{
    max-height: 380px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
  }
}

@media (max-width: 430px){
  .pageHub{
    top: 48px !important;
  }
}

/* ==========================================
   DEVELOPER BLOGS PAGE - BIG GAMES INSPIRED
   ========================================== */

/* Blog filter tabs row */
.blogTabsRow {
  padding: 18px 0 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.blogTabsScroller {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0;
}
.blogTabsScroller::-webkit-scrollbar { display: none; }
.blogTab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px 10px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
  position: relative;
  bottom: -1px;
}
.blogTab:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
}
.blogTab.active {
  color: #fff;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.10);
  border-bottom-color: var(--bg, #07080c);
}
.blogTab .blogTabIcon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.10);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.blogTab.active .blogTabIcon {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
}
.blogTabAllIcon {
  font-size: 7px !important;
  letter-spacing: 0;
}

/* Featured blog hero card */
.blogFeaturedSection {
  padding: 36px 0 0;
}
.blogFeaturedCard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  min-height: 340px;
}
.blogFeaturedImg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1428, #0d1a2e);
  min-height: 280px;
}
.blogFeaturedImg .blogFeaturedPlaceholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(56,189,248,0.2));
}
.blogFeaturedImg .blogFeaturedPlaceholder svg {
  opacity: 0.25;
}
.blogFeaturedComingSoonBadge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.blogFeaturedCopy {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.blogFeaturedLabel {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent3);
  font-weight: 900;
}
.blogFeaturedTitle {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  margin: 0;
}
.blogFeaturedDesc {
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.blogFeaturedBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(56,189,248,0.3));
  border: 1px solid rgba(139,92,246,0.4);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  width: fit-content;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.blogFeaturedBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(139,92,246,0.35);
  background: linear-gradient(135deg, rgba(139,92,246,0.65), rgba(56,189,248,0.4));
}
.blogFeaturedBtn svg {
  transition: transform .15s ease;
}
.blogFeaturedBtn:hover svg {
  transform: translateX(4px);
}

/* Blog cards grid */
.blogCardsSection {
  padding: 40px 0 60px;
}
.blogSectionTitle {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 20px;
}
.blogCardsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.blogCard {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.blogCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.16);
}
.blogCardImg {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.blogCardImgInner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.18);
}
.blogCardBody {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blogCardGame {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent3);
  font-weight: 900;
}
.blogCardTitle {
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
  color: rgba(255,255,255,0.95);
}
.blogCardDesc {
  font-size: 13px;
  color: rgba(255,255,255,0.56);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.blogCardMeta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.blogCardPill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.6);
}

/* Coming soon overlay for blog cards */
.blogCard.comingSoon {
  position: relative;
}
.blogCard.comingSoon::after {
  content: 'Coming Soon';
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
}

/* Color gradients per game */
.blogCardImg.gradLJ { background: linear-gradient(135deg, #1a3a1a, #0d2e10, #142b14); }
.blogCardImg.gradJR { background: linear-gradient(135deg, #1a1a3a, #100d2e, #141428); }
.blogCardImg.gradJH { background: linear-gradient(135deg, #3a1a1a, #2e0d0d, #281414); }
.blogCardImg.gradIC { background: linear-gradient(135deg, #1a2a3a, #0d1e2e, #141e28); }
.blogCardImg.gradCF { background: linear-gradient(135deg, #1a0d2e, #0d0714, #1a1428); }

/* Blog page hero */
.blogsHero {
  padding: 14px 0 0;
}
.blogsHeroInner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blogsHeroKicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.blogsHeroTitle {
  font-size: clamp(36px, 5vw, 60px);
  margin: 0;
  line-height: 1.02;
}
.blogsHeroDesc {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  max-width: 520px;
  margin: 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .blogCardsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blogFeaturedCard {
    grid-template-columns: 1fr;
  }
  .blogFeaturedImg {
    min-height: 200px;
  }
}
@media (max-width: 600px) {
  .blogCardsGrid {
    grid-template-columns: 1fr;
  }
  .blogFeaturedCopy {
    padding: 24px 20px 28px;
  }
}

/* ==========================================
   NAV ACTIVE STATES
   ========================================== */
.navLink.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.pageHubScroller a.active {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.20) !important;
  color: #fff !important;
}

/* ==========================================
   MOBILE NAV MENU OPEN STATE
   ========================================== */
@media (max-width: 780px) {
  /* Mobile nav menu - controlled via body.navOpen class */
  .mobileBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5080;
    background: rgba(0,0,0,0.55);
  }
  .mobileBackdrop.open {
    display: block;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hamburger open animation */
.hamburgerBtn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburgerBtn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburgerBtn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   TOAST SHOW STATE
   ========================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(20,22,32,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 16px 44px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
  backdrop-filter: blur(12px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================
   SHARDS REWARD OPEN STATE
   ========================================== */
.shardsReward {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
.shardsReward.open {
  display: flex;
}

/* ==========================================
   SHARD COLLECTED STATE
   ========================================== */
.shardBtn.collected .shardIcon {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  box-shadow: 0 0 20px rgba(139,92,246,0.6);
}

/* ==========================================
   MAIN CONTENT: account for fixed + section bars
   ========================================== */
/* Pages with a pageHub get extra offset handled naturally 
   since pageHub is sticky. Pages without pageHub just need
   the topbar offset which is handled by padding-top on main. */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ==========================================
   FINAL POSITION OVERRIDES (topbar is fixed)
   ========================================== */

/* Desktop: navMenu is inline in topbar, no position:fixed needed */
@media (min-width: 781px) {
  .navMenu {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    max-height: none !important;
    overflow: visible !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* Mobile: navMenu dropdown sits just below the fixed topbar */
@media (max-width: 780px) {
  .navMenu {
    position: fixed !important;
    top: 62px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 5090 !important;
    max-height: calc(100dvh - 80px) !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
  }
}
@media (max-width: 430px) {
  .navMenu {
    top: 58px !important;
  }
}

/* ==========================================
   TOPBAR SPACER - pushes content below fixed topbar
   ========================================== */
.topbarSpacer {
  height: 58px;
  flex-shrink: 0;
}
@media (max-width: 780px) {
  .topbarSpacer {
    height: 52px;
  }
}
@media (max-width: 430px) {
  .topbarSpacer {
    height: 48px;
  }
}

/* ==========================================
   ABOUT PAGE STYLES
   ========================================== */
.aboutSection {
  padding: 28px 0 60px;
}
.aboutGrid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.aboutCard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  overflow: hidden;
}
.aboutCardHeader {
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.aboutCardTitle {
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 8px 0 0;
  line-height: 1.1;
}
.aboutCardBody {
  padding: 28px 32px;
}
.aboutImgWrap {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.aboutImgWrap img {
  width: 100%;
  height: auto;
  display: block;
}
.aboutCardText p {
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  margin: 0 0 14px;
}
.aboutCardText p:last-of-type { margin-bottom: 0; }

/* Timeline */
.aboutTimeline {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.aboutTimeline::before {
  content: '';
  position: absolute;
  left: 47px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--accent3));
  opacity: 0.35;
}
.timelineItem {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 20px;
  padding-bottom: 36px;
  position: relative;
}
.timelineItem:last-child { padding-bottom: 0; }
.timelineDot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(139,92,246,0.5);
  position: relative;
  z-index: 1;
}
.timelineDate {
  font-size: 12px;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timelineTitle {
  font-size: 18px;
  margin: 0 0 10px;
  color: rgba(255,255,255,0.95);
}
.timelineContent p {
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin: 0 0 10px;
  font-size: 14px;
}
.timelineContent p:last-child { margin-bottom: 0; }

@media (max-width: 780px) {
  .aboutCardHeader,
  .aboutCardBody,
  .aboutTimeline {
    padding-left: 18px;
    padding-right: 18px;
  }
  .aboutTimeline::before {
    left: 26px;
  }
}

/* ==========================================
   PAGEHUB LOGO IMAGE (Altyx / Ciryx real logos)
   ========================================== */
.pageHubLogoImg {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 220ms ease;
  /* White cloud logos on black bg - invert to show on dark */
  filter: brightness(1.1);
}
.pageHubBrand:hover .pageHubLogoImg {
  transform: rotate(-6deg) scale(1.12);
}

/* ==========================================
   FOOTER HEADING (replace inline style)
   ========================================== */
.footerHeading {
  color: rgba(255,255,255,0.80);
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* ==========================================
   NEWS PAGE
   ========================================== */
.newsSection { padding: 24px 0 60px; }

.newsFeatured {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(56,189,248,0.08));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.newsFeatured::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 70%);
  pointer-events: none;
}
.newsFeaturedLabel {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent3);
  margin-bottom: 10px;
}
.newsFeaturedTitle {
  font-size: clamp(26px, 3.5vw, 42px);
  margin: 0 0 12px;
  line-height: 1.08;
}
.newsFeaturedDesc {
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 0 20px;
}

.newsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.newsCard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.newsCard:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 16px 44px rgba(0,0,0,0.35);
}
.newsCardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.newsTag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
}
.newsTagAltyx { background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.35); color: #c4b5fd; }
.newsTagCiryx { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); color: #86efac; }
.newsDate { font-size: 11px; color: rgba(255,255,255,0.4); }
.newsCard h3 { margin: 0; font-size: 17px; line-height: 1.3; color: rgba(255,255,255,0.95); }
.newsCard p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; flex: 1; }
.newsCardLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent3);
  margin-top: 4px;
  transition: gap .14s ease;
}
.newsCardLink:hover { gap: 10px; }

/* ==========================================
   EVENTS PAGE
   ========================================== */
.eventsSection { padding: 24px 0 60px; }

.eventsFeatured {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(56,189,248,0.07));
  border: 1px solid rgba(34,197,94,0.22);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.eventsFeaturedMeta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.eventsTag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
}
.eventsTagFeatured { background: rgba(251,191,36,0.18); border-color: rgba(251,191,36,0.3); color: #fde68a; }
.eventsTagCiryx { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); color: #86efac; }
.eventsTagAltyx { background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.35); color: #c4b5fd; }

.eventsFeatured h2 { margin: 0 0 10px; font-size: clamp(24px,3vw,38px); line-height: 1.1; }
.eventsFeatured p { color: rgba(255,255,255,0.72); line-height: 1.7; max-width: 560px; margin: 0; }

.eventsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.eventCard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, border-color .16s ease;
}
.eventCard:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.16); }
.eventCardDate {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.eventCardMonth { font-size: 11px; letter-spacing: 1.5px; color: rgba(255,255,255,0.45); text-transform: uppercase; }
.eventCardDay { font-size: 28px; line-height: 1; color: rgba(255,255,255,0.9); }
.eventCardYear { font-size: 12px; color: rgba(255,255,255,0.4); }
.eventCardBody { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.eventCardBody h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.eventCardBody p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; flex: 1; }

/* ==========================================
   CAREERS PAGE
   ========================================== */
.careersSection { padding: 24px 0 60px; }

.careersBanner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 36px;
}
.careersBanner h2 { margin: 0 0 10px; font-size: clamp(22px,2.8vw,34px); }
.careersBanner p { color: rgba(255,255,255,0.68); line-height: 1.7; margin: 0; max-width: 520px; }
.careersBannerCta { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

.careersTeamGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.careersTeamCard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease;
}
.careersTeamCard:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.16); }
.careersTeamLogo {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.careersTeamLogo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}
.careersTeamBody { padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.careersTeamBody h3 { margin: 0; font-size: 18px; }
.careersTeamBody p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.62); line-height: 1.6; flex: 1; }

/* Career detail */
.careersDetailSection { padding: 24px 0 60px; }
.careersDetailHeader {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  margin-bottom: 28px;
}
.careersDetailLogo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(1.1);
}
.careersDetailInfo h2 { margin: 6px 0 6px; }
.careersDetailInfo p { color: rgba(255,255,255,0.6); margin: 0; }

.careersNoRoles {
  text-align: center;
  padding: 60px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 16px;
}
.careersNoRolesIcon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: grid; place-items: center;
  margin: 0 auto 20px;
  color: rgba(255,255,255,0.4);
}
.careersNoRoles h3 { margin: 0 0 10px; font-size: 20px; }
.careersNoRoles p { color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 440px; margin: 0 auto 20px; }
.careersNoRoles .ctaRow { justify-content: center; }

/* ==========================================
   RESPONSIVE BREAKPOINTS (news/events/careers)
   ========================================== */
@media (max-width: 900px) {
  .newsGrid, .eventsGrid, .careersTeamGrid { grid-template-columns: repeat(2,1fr); }
  .careersBanner { grid-template-columns: 1fr; }
  .careersBannerCta { flex-direction: row; }
}
@media (max-width: 600px) {
  .newsGrid, .eventsGrid, .careersTeamGrid { grid-template-columns: 1fr; }
  .newsFeatured, .eventsFeatured, .careersBanner { padding: 24px 20px; }
  .careersDetailHeader { flex-direction: column; text-align: center; }
}

/* ==========================================
   FIX BLOCK v37: second bar, hover, icons, hamburger
   ========================================== */

/* --- 1. Second bar flush against top bar (desktop) --- */
@media (min-width: 781px) {
  .topbar {
    position: fixed !important;
    top: 0 !important;
    border-radius: 0 !important; /* flat bottom so bar sits flush */
    box-shadow: 0 4px 24px rgba(0,0,0,0.40) !important;
  }
  .pageHub {
    position: sticky !important;
    top: 58px !important; /* exact navRow height */
    z-index: 4990 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(8,9,14,0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.09) !important;
  }
  .pageHub .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: min(1160px, calc(100% - 40px)) !important;
  }
  .pageHubInner {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: visible !important;
  }
  /* Topbar spacer must account for both bars */
  .topbarSpacer {
    height: 58px !important; /* only topbar; pageHub is sticky so it scrolls naturally */
  }
}

/* --- 2. pageHub buttons: hover matches topbar navLink hover --- */
.pageHubBrand,
.pageHubScroller a {
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
  text-decoration: none !important;
  color: rgba(255,255,255,0.88) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.pageHubBrand:hover,
.pageHubScroller a:hover {
  transform: translateY(-2px) scale(1.06) !important;
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: #fff !important;
}
.pageHubBrand:active,
.pageHubScroller a:active {
  transform: translateY(0) scale(.98) !important;
}
/* Active/current page link */
.pageHubScroller a.active {
  background: rgba(255,255,255,0.13) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: #fff !important;
}
@media (min-width: 781px) {
  .pageHubBrand {
    border-radius: 12px !important;
    padding: 6px 11px !important;
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    font-weight: 800 !important;
  }
  .pageHubScroller a {
    border-radius: 12px !important;
    padding: 6px 11px !important;
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
  }
}

/* --- 3. Store + Explore icons via SVG background --- */
/* Remove old text-based logos */
.pageHubLogo {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0 !important; /* hide "ST" / "EX" text */
  color: transparent !important;
  flex-shrink: 0 !important;
}
/* Store icon: shopping bag */
.pageHubStore .pageHubLogo::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.88)' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* Explore icon: compass */
.pageHubExplore .pageHubLogo::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.88)' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* --- 4. Hamburger fix: single source of truth for spans & X animation --- */

/* Base (shown on mobile via display:flex) */
.hamburgerBtn {
  position: relative !important;
  overflow: hidden !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 11px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
  display: none; /* hidden on desktop */
  align-items: center !important;
  justify-content: center !important;
}
@media (max-width: 780px) {
  .hamburgerBtn {
    display: flex !important;
  }
}

/* The three bars - positioned absolutely inside the button */
.hamburgerBtn span {
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  height: 2px !important;
  background: rgba(255,255,255,0.90) !important;
  border-radius: 4px !important;
  transition: top 0.18s ease 0.18s, transform 0.18s ease, opacity 0.14s ease !important;
}
.hamburgerBtn span:nth-child(1) { top: 11px !important; }
.hamburgerBtn span:nth-child(2) { top: 17px !important; }
.hamburgerBtn span:nth-child(3) { top: 23px !important; }

/* Open state → X (transition order: first move tops, then rotate) */
body.navOpen .hamburgerBtn span {
  transition: top 0.18s ease, transform 0.18s ease 0.18s, opacity 0.14s ease !important;
}
body.navOpen .hamburgerBtn span:nth-child(1) {
  top: 17px !important;
  transform: rotate(45deg) !important;
}
body.navOpen .hamburgerBtn span:nth-child(2) {
  opacity: 0 !important;
  transform: scaleX(0.2) !important;
}
body.navOpen .hamburgerBtn span:nth-child(3) {
  top: 17px !important;
  transform: rotate(-45deg) !important;
}

/* --- 5. Mobile: pageHub right below the sticky topbar --- */
@media (max-width: 780px) {
  .topbar {
    position: sticky !important;
    top: 0 !important;
    border-radius: 0 !important;
  }
  .pageHub {
    position: sticky !important;
    top: 58px !important;
    z-index: 4980 !important;
    background: rgba(8,9,14,0.92) !important;
    border-bottom: 1px solid rgba(255,255,255,0.09) !important;
  }
  .pageHub .container {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
}
@media (max-width: 430px) {
  .pageHub {
    top: 54px !important;
  }
}

/* --- v37B FINAL header + section bar lock --- */

/* Header remains rounded. Section bar sits directly below it with no gap. */
@media (min-width: 781px){
  :root{
    --cf-topbar-height: 74px;
  }

  .topbar{
    position: sticky !important;
    top: 0 !important;
    z-index: 6000 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0 0 28px 28px !important;
  }

  .topbar .container,
  .topbar > .container{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .navRow{
    min-height: var(--cf-topbar-height) !important;
    height: var(--cf-topbar-height) !important;
    align-items: center !important;
  }

  .pageHub{
    position: sticky !important;
    top: var(--cf-topbar-height) !important;
    z-index: 5900 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(8,9,14,0.88) !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  /* Kill any spacing between hero/header and bar */
  .pageHero + .pageHub,
  .overviewHero + .pageHub,
  .v36Hero + .pageHub{
    margin-top: 0 !important;
  }

  .pageHub .container{
    width: min(1160px, calc(100% - 40px)) !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .pageHubInner{
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .pageHubBrand{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    padding: 8px 12px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,0.065) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease !important;
  }

  .pageHubBrand:hover{
    transform: scale(1.06) !important;
    background: rgba(255,255,255,0.11) !important;
    box-shadow: 0 12px 42px rgba(0,0,0,0.28) !important;
  }

  .pageHubLogo,
  .pageHubLogoImg{
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
  }

  .pageHubScroller{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    max-height:none !important;
    opacity:1 !important;
    overflow-x:auto !important;
    padding:0 !important;
    scrollbar-width:none !important;
  }

  .pageHubScroller::-webkit-scrollbar{display:none !important;}

  .pageHubScroller a{
    display:flex !important;
    align-items:center !important;
    white-space:nowrap !important;
    border-radius: 14px !important;
    padding: 9px 12px !important;
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease !important;
  }

  .pageHubScroller a:hover{
    transform: translateY(-2px) scale(1.04) !important;
    background: rgba(255,255,255,0.10) !important;
    border-color: rgba(255,255,255,0.18) !important;
  }
}

/* Mobile: header tight to top, section bar directly below, arrow dropdown fixed */
@media (max-width: 780px){
  :root{
    --cf-mobile-topbar-height: 58px;
  }

  html, body{
    margin: 0 !important;
    padding-top: 0 !important;
  }

  .topbar{
    position: sticky !important;
    top: 0 !important;
    z-index: 6000 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 0 24px 24px !important;
  }

  .topbar .container,
  .topbar > .container{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .navRow{
    min-height: var(--cf-mobile-topbar-height) !important;
    height: var(--cf-mobile-topbar-height) !important;
    padding: 0 !important;
    align-items: center !important;
  }

  .pageHub{
    position: sticky !important;
    top: var(--cf-mobile-topbar-height) !important;
    z-index: 5900 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(8,9,14,0.90) !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  .pageHero + .pageHub,
  .overviewHero + .pageHub,
  .v36Hero + .pageHub{
    margin-top: 0 !important;
  }

  .pageHub .container{
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .pageHubInner{
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .pageHubBrand{
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 9px 11px !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,0.065) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    cursor: pointer !important;
  }

  .pageHubBrand::after{
    content: "" !important;
    width: 9px !important;
    height: 9px !important;
    border: solid rgba(255,255,255,0.78) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    margin-left: auto !important;
    transition: transform .18s ease, margin-top .18s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubBrand::after{
    transform: rotate(225deg) !important;
    margin-top: 5px !important;
  }

  .pageHubLogoImg{
    width: 26px !important;
    height: 26px !important;
    object-fit: contain !important;
  }

  .pageHubLogo{
    width: 26px !important;
    height: 26px !important;
    border-radius: 9px !important;
    display: grid !important;
    place-items: center !important;
  }

  .pageHubScroller{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: max-height .2s ease, opacity .2s ease, padding-top .2s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubScroller{
    max-height: 380px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
  }

  .pageHubScroller a{
    padding: 10px 11px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
  }

  .pageHubInner:hover .pageHubScroller,
  .pageHubInner:focus-within .pageHubScroller{
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
  }

  .pageHubInner.sectionOpen:hover .pageHubScroller,
  .pageHubInner.sectionOpen:focus-within .pageHubScroller{
    max-height: 380px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
  }
}

@media (max-width: 430px){
  :root{
    --cf-mobile-topbar-height: 54px;
  }
}

/* --- FINAL POLISH: header pinned top + compact rounded section bar --- */

/* Top header must sit at the very top */
.topbar{
  position: sticky !important;
  top: 0 !important;
  z-index: 7000 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  border-radius: 0 0 28px 28px !important;
}

.topbar > .container,
.topbar .container{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navRow{
  min-height: 72px !important;
  height: 72px !important;
  align-items: center !important;
}

/* Section bar directly under header, smaller, rounded, header-like */
.pageHub{
  position: sticky !important;
  top: 72px !important;
  z-index: 6900 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* kill any gap caused by previous rules */
.pageHero + .pageHub,
.overviewHero + .pageHub,
.v36Hero + .pageHub{
  margin-top: 0 !important;
}

.pageHub .container{
  width: min(1160px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pageHubInner{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 0 0 22px 22px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.12), transparent 34%),
    rgba(8,9,14,0.90) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-top: 0 !important;
  box-shadow: 0 12px 44px rgba(0,0,0,0.22) !important;
  overflow: hidden !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.pageHubBrand{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  padding: 7px 10px !important;
  border-radius: 14px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  white-space: nowrap !important;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease !important;
}

.pageHubBrand:hover{
  transform: scale(1.04) !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.pageHubBrand:active,
.pageHubBrand:focus-visible{
  border-color: rgba(255,255,255,0.16) !important;
  background: rgba(255,255,255,0.08) !important;
}

.pageHubLogo,
.pageHubLogoImg{
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  border-radius: 9px !important;
}

.pageHubScroller{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  max-height:none !important;
  opacity:1 !important;
  overflow-x:auto !important;
  padding:0 !important;
  scrollbar-width:none !important;
}

.pageHubScroller::-webkit-scrollbar{display:none !important;}

.pageHubScroller a{
  display:flex !important;
  align-items:center !important;
  white-space:nowrap !important;
  border-radius: 13px !important;
  padding: 7px 10px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: rgba(255,255,255,0.86) !important;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease !important;
}

.pageHubScroller a:hover{
  transform: translateY(-1px) scale(1.03) !important;
  background: rgba(255,255,255,0.055) !important;
  border-color: transparent !important;
}

.pageHubScroller a:active,
.pageHubScroller a:focus-visible,
.pageHubScroller a[aria-current="page"]{
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.16) !important;
}

/* Mobile header and section bar */
@media (max-width: 780px){
  :root{
    --cf-mobile-topbar-height: 56px;
  }

  html, body{
    margin: 0 !important;
    padding-top: 0 !important;
  }

  .topbar{
    top: 0 !important;
    border-radius: 0 0 22px 22px !important;
  }

  .navRow{
    min-height: var(--cf-mobile-topbar-height) !important;
    height: var(--cf-mobile-topbar-height) !important;
    padding: 0 !important;
  }

  .pageHub{
    top: var(--cf-mobile-topbar-height) !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .pageHub .container{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
  }

  .pageHubInner{
    display:block !important;
    height: auto !important;
    min-height: 42px !important;
    padding: 5px 8px !important;
    border-radius: 0 0 18px 18px !important;
  }

  .pageHubBrand{
    width:100% !important;
    justify-content:space-between !important;
    padding: 7px 9px !important;
    border-radius: 13px !important;
    cursor:pointer !important;
  }

  .pageHubBrand::after{
    content:"" !important;
    width:8px !important;
    height:8px !important;
    border: solid rgba(255,255,255,0.78) !important;
    border-width:0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    margin-left:auto !important;
    transition: transform .18s ease, margin-top .18s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubBrand::after{
    transform: rotate(225deg) !important;
    margin-top: 5px !important;
  }

  .pageHubScroller{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:6px !important;
    max-height:0 !important;
    opacity:0 !important;
    overflow:hidden !important;
    padding:0 !important;
    transition:max-height .2s ease, opacity .2s ease, padding-top .2s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubScroller{
    max-height:340px !important;
    opacity:1 !important;
    padding-top:7px !important;
  }

  .pageHubScroller a{
    padding:9px 10px !important;
    border-radius:12px !important;
    font-size:13px !important;
  }

  .pageHubInner:hover .pageHubScroller,
  .pageHubInner:focus-within .pageHubScroller{
    max-height:0 !important;
    opacity:0 !important;
    padding-top:0 !important;
  }

  .pageHubInner.sectionOpen:hover .pageHubScroller,
  .pageHubInner.sectionOpen:focus-within .pageHubScroller{
    max-height:340px !important;
    opacity:1 !important;
    padding-top:7px !important;
  }
}

@media (max-width: 430px){
  :root{
    --cf-mobile-topbar-height:54px;
  }

  .navRow{
    min-height: var(--cf-mobile-topbar-height) !important;
    height: var(--cf-mobile-topbar-height) !important;
  }
}

/* FORCE CONTENT TO START DIRECTLY UNDER HEADER */
main{
  margin-top:0 !important;
  padding-top:0 !important;
}

/* BIGGER LOGOS FOR ALTYX & CIRYX */
.pageHubLogoImg{
  width:36px !important;
  height:36px !important;
}

.pageHubBrand{
  gap:12px !important;
}

/* kill ALL possible top spacing sources */
main,
.pageHero,
.homeHeroV33,
.hero,
section,
section:first-of-type{
  margin-top:0 !important;
  padding-top:0 !important;
}

/* remove container spacing that causes gap */
.container{
  margin-top:0 !important;
  padding-top:0 !important;
}

/* remove any accidental spacer divs */
.spacer,
.headerSpacer{
  display:none !important;
}

/* --- 37F TRUE OFFSET FIX: no grey strip on any page --- */
:root{
  --cf-header-height: 72px;
  --cf-sectionbar-height: 52px;
}

html, body{
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body{
  padding-top: var(--cf-header-height) !important;
}

/* Header sits at the very top, no reserved grey area above it */
.topbar{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--cf-header-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9000 !important;
  border-radius: 0 0 28px 28px !important;
}

.topbar > .container,
.topbar .container{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navRow{
  height: var(--cf-header-height) !important;
  min-height: var(--cf-header-height) !important;
  padding: 0 !important;
  align-items: center !important;
}

/* If a page has a second bar, it attaches directly under the fixed header */
.pageHub{
  position: sticky !important;
  top: var(--cf-header-height) !important;
  z-index: 8500 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove the visual grey spacer caused by hero/top padding on secondary pages */
main{
  margin: 0 !important;
  padding-top: 0 !important;
}

main > .shardWrap{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Page heroes should start immediately after header/section bar. Keep internal spacing only inside content. */
.pageHero,
.overviewHero,
.v36Hero{
  margin-top: 0 !important;
}

/* On pages with a section bar after the hero, remove any gap around the bar */
.pageHero + .pageHub,
.overviewHero + .pageHub,
.v36Hero + .pageHub{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* The section bar itself gets the header-like background, no external grey strip */
.pageHubInner{
  margin-top: 0 !important;
}

/* Mobile version */
@media (max-width: 780px){
  :root{
    --cf-header-height: 56px;
    --cf-sectionbar-height: 46px;
  }

  body{
    padding-top: var(--cf-header-height) !important;
  }

  .topbar{
    height: var(--cf-header-height) !important;
    border-radius: 0 0 22px 22px !important;
  }

  .navRow{
    height: var(--cf-header-height) !important;
    min-height: var(--cf-header-height) !important;
  }

  .pageHub{
    top: var(--cf-header-height) !important;
  }
}

/* ==========================================
   v38 FIX BLOCK — three definitive fixes
   ========================================== */

/* ---- 1. LOGO + TEXT GAP (Altyx / Ciryx closer together) ---- */
.pageHubBrand {
  gap: 5px !important;
}
.pageHubLogoImg {
  width: 28px !important;
  height: 28px !important;
}

/* ---- 2. GREY AREA: hide the topbarSpacer div; body padding handles offset ---- */
.topbarSpacer {
  display: none !important;
}

/* Ensure body padding-top matches the fixed header exactly */
body {
  padding-top: 72px !important;
}
@media (max-width: 780px) {
  body {
    padding-top: 56px !important;
  }
}
@media (max-width: 430px) {
  body {
    padding-top: 54px !important;
  }
}

/* Restore section/hero/container internal spacing that was nuked by previous rules */
.pageHero,
.overviewHero,
.v36Hero {
  padding-top: 60px !important;
}
@media (max-width: 780px) {
  .pageHero,
  .overviewHero,
  .v36Hero {
    padding-top: 40px !important;
  }
}

/* Pages WITH a pageHub: the bar is inside main, so no body padding gap needed for it.
   The hero padding above restores the visual breathing room. */
.pageHub + .shardWrap .pageHero,
.pageHub ~ .shardWrap .pageHero,
section.pageHub ~ section.pageHero,
section.pageHub ~ .shardWrap section.pageHero {
  padding-top: 60px !important;
}

/* ---- 3. MOBILE DROPDOWN — definitive fix ---- */
/* On mobile, hide scroller by default; show only when .sectionOpen is set by JS */
@media (max-width: 780px) {
  /* Reset: scroller starts hidden */
  .pageHubScroller {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none !important;
    transition: max-height 0.22s ease, opacity 0.18s ease, padding-top 0.22s ease !important;
  }

  /* Force override any :hover/:focus-within that was re-opening it */
  .pageHubInner:hover .pageHubScroller,
  .pageHubInner:focus-within .pageHubScroller,
  .pageHub:hover .pageHubScroller,
  .pageHub:focus-within .pageHubScroller {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    pointer-events: none !important;
  }

  /* Open state: toggled by JS adding .sectionOpen to .pageHubInner */
  .pageHubInner.sectionOpen .pageHubScroller {
    max-height: 400px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
    pointer-events: auto !important;
  }

  /* Keep open even when hovered/focused */
  .pageHubInner.sectionOpen:hover .pageHubScroller,
  .pageHubInner.sectionOpen:focus-within .pageHubScroller {
    max-height: 400px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
    pointer-events: auto !important;
  }

  /* Arrow: points down by default, up when open */
  .pageHubBrand::after {
    content: "" !important;
    width: 8px !important;
    height: 8px !important;
    border: solid rgba(255,255,255,0.78) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    transition: transform 0.18s ease !important;
    display: block !important;
  }
  .pageHubInner.sectionOpen .pageHubBrand::after {
    transform: rotate(-135deg) !important;
    margin-top: 4px !important;
  }

  /* Brand button takes full width on mobile */
  .pageHubBrand {
    width: 100% !important;
    justify-content: space-between !important;
    cursor: pointer !important;
  }

  /* Scroller links styled for mobile list */
  .pageHubScroller a {
    display: flex !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    color: rgba(255,255,255,0.88) !important;
    white-space: normal !important;
  }

  /* pageHubInner becomes a block on mobile */
  .pageHubInner {
    display: block !important;
    height: auto !important;
    padding: 6px 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    min-height: auto !important;
  }
}

/* --- FINAL SPACING FIX: bars attached, content offset after second bar --- */
:root{
  --cf-header-height: 72px;
  --cf-content-gap-after-bars: 38px;
  --cf-home-content-drop: 34px;
}

html, body{
  margin: 0 !important;
}

body{
  padding-top: var(--cf-header-height) !important;
}

.topbar{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--cf-header-height) !important;
  margin: 0 !important;
  z-index: 9000 !important;
}

.navRow{
  height: var(--cf-header-height) !important;
  min-height: var(--cf-header-height) !important;
}

/* Section bar should sit immediately under top header */
.pageHub{
  position: sticky !important;
  top: var(--cf-header-height) !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  z-index: 8500 !important;
}

/* No space between first hero and page bar */
.pageHero + .pageHub,
.overviewHero + .pageHub,
.v36Hero + .pageHub{
  margin-top: 0 !important;
}

/* The offset belongs AFTER the page bar, before real page content */
.pageHub + .section,
.pageHub + .overviewSection,
.pageHub + .v36Section,
.pageHub + .blogFilterRow{
  margin-top: var(--cf-content-gap-after-bars) !important;
}

/* Some pages put content in the same following section/class chain */
.pageHub ~ .section:first-of-type,
.pageHub ~ .v36Section:first-of-type{
  margin-top: var(--cf-content-gap-after-bars) !important;
}

/* If the page hero is directly followed by content with no second bar, keep normal spacing */
main > .section:first-child{
  margin-top: 0 !important;
}

/* Homepage has no section bar, so lower the hero content slightly */
body:has(.homeHeroV33) .homeHeroV33,
body:has(.heroInner) .hero{
  padding-top: var(--cf-home-content-drop) !important;
}

/* Avoid old global rules from forcing every page section to zero spacing */
main,
.pageHero,
.overviewHero,
.v36Hero{
  padding-top: initial;
}

@media (max-width: 780px){
  :root{
    --cf-header-height: 56px;
    --cf-content-gap-after-bars: 24px;
    --cf-home-content-drop: 22px;
  }

  body{
    padding-top: var(--cf-header-height) !important;
  }

  .topbar{
    height: var(--cf-header-height) !important;
  }

  .navRow{
    height: var(--cf-header-height) !important;
    min-height: var(--cf-header-height) !important;
  }

  .pageHub{
    top: var(--cf-header-height) !important;
  }
}

/* --- ABSOLUTE FINAL SECOND BAR FIX --- */
:root{
  --cf-header-height: 72px;
  --cf-secondbar-gap: 0px;
  --cf-content-gap-after-bars: 34px;
}

html, body{
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body{
  padding-top: var(--cf-header-height) !important;
}

.topbar{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--cf-header-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9000 !important;
}

.topbar > .container,
.topbar .container{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navRow{
  height: var(--cf-header-height) !important;
  min-height: var(--cf-header-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

/* Page bar is now directly after header in HTML and visually attached under it */
body > .pageHub,
.pageHub{
  position: sticky !important;
  top: var(--cf-header-height) !important;
  z-index: 8500 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.pageHub .container{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pageHubInner{
  margin-top: 0 !important;
}

/* Main content starts after page bar spacing, not before it */
body > .pageHub + main{
  margin-top: var(--cf-content-gap-after-bars) !important;
}

main{
  padding-top: 0 !important;
}

main > .shardWrap{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Do NOT create a fake spacer above section pages anymore */
.pageHero,
.overviewHero,
.v36Hero{
  margin-top: 0 !important;
}

/* Home page has no pageHub, keep slight breathing room only there */
body:not(:has(> .pageHub)) main{
  margin-top: 24px !important;
}

@media (max-width: 780px){
  :root{
    --cf-header-height: 56px;
    --cf-content-gap-after-bars: 22px;
  }

  body{
    padding-top: var(--cf-header-height) !important;
  }

  .topbar{
    height: var(--cf-header-height) !important;
  }

  .navRow{
    height: var(--cf-header-height) !important;
    min-height: var(--cf-header-height) !important;
  }

  body > .pageHub,
  .pageHub{
    top: var(--cf-header-height) !important;
  }
}

@media (max-width: 430px){
  :root{
    --cf-header-height: 54px;
  }
}

/* --- TRUE FINAL HEADER + SECOND BAR FIX --- */

/* Use normal document flow so no fake grey spacer is created */
:root{
  --cf-header-height: 72px;
  --cf-pagebar-height: 48px;
  --cf-after-pagebar-gap: 34px;
}

html, body{
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* IMPORTANT: no body padding. This was causing the grey strip. */
body{
  padding-top: 0 !important;
}

/* Header sits at the top, stays sticky, and remains in document flow */
.topbar{
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  height: var(--cf-header-height) !important;
  min-height: var(--cf-header-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9000 !important;
  border-radius: 0 0 28px 28px !important;
  transform: none !important;
}

.topbar > .container,
.topbar .container{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navRow{
  height: var(--cf-header-height) !important;
  min-height: var(--cf-header-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

/* Second bar is directly under header in the HTML and sticks under it */
body > .pageHub,
.pageHub{
  position: sticky !important;
  top: var(--cf-header-height) !important;
  z-index: 8500 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  transform: none !important;
}

/* No gap between header and page bar */
.topbar + .pageHub{
  margin-top: 0 !important;
}

.pageHub .container{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pageHubInner{
  min-height: var(--cf-pagebar-height) !important;
  height: var(--cf-pagebar-height) !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 0 0 22px 22px !important;
}

/* Space goes after the second bar only */
body > .pageHub + main{
  margin-top: var(--cf-after-pagebar-gap) !important;
}

/* Homepage has no pageHub, so content just gets a small internal drop, not a grey spacer */
body:not(:has(> .pageHub)) main{
  margin-top: 0 !important;
}

body:not(:has(> .pageHub)) .homeHeroV33,
body:not(:has(> .pageHub)) .hero{
  padding-top: 34px !important;
}

/* Remove old fake offsets */
main,
main > .shardWrap,
.pageHero,
.overviewHero,
.v36Hero,
.homeHeroV33,
.hero{
  margin-top: 0 !important;
}

@media (max-width: 780px){
  :root{
    --cf-header-height: 56px;
    --cf-pagebar-height: 42px;
    --cf-after-pagebar-gap: 24px;
  }

  body{
    padding-top: 0 !important;
  }

  .topbar{
    height: var(--cf-header-height) !important;
    min-height: var(--cf-header-height) !important;
    border-radius: 0 0 22px 22px !important;
  }

  .navRow{
    height: var(--cf-header-height) !important;
    min-height: var(--cf-header-height) !important;
  }

  body > .pageHub,
  .pageHub{
    top: var(--cf-header-height) !important;
  }

  .pageHubInner{
    height: auto !important;
    min-height: var(--cf-pagebar-height) !important;
  }

  body:not(:has(> .pageHub)) .homeHeroV33,
  body:not(:has(> .pageHub)) .hero{
    padding-top: 22px !important;
  }
}

@media (max-width: 430px){
  :root{
    --cf-header-height: 54px;
  }
}

/* LOGO INLINE */
.inlineLogo{
  width:22px;
  height:22px;
  object-fit:contain;
  vertical-align:middle;
  margin:0 4px;
}

/* SECOND BAR BACKGROUND FIX */
.pageHub{
  background:transparent !important;
}

.pageHubInner{
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.08), transparent 40%),
    rgba(8,9,14,0.9) !important;
}

/* LOWER PAGE CONTENT FROM BARS */
.pageHub + main{
  margin-top:48px !important;
}

/* --- FINAL8: homepage logos, section content spacing, mobile bar dropdown blur --- */

/* Homepage inline logos */
.inlineLogo{
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  vertical-align: middle !important;
  display: block !important;
}

/* Lower content on pages with two bars */
body > .pageHub + main{
  margin-top: 56px !important;
}

@media (min-width: 781px){
  body > .pageHub + main{
    margin-top: 64px !important;
  }
}

/* Keep section bar visually attached to header */
.pageHub{
  margin-top: 0 !important;
}

/* Mobile blur backdrop for second-bar dropdown */
.pageHubBackdrop{
  display: none;
}

@media (max-width: 780px){
  .pageHubBackdrop{
    position: fixed;
    inset: 0;
    z-index: 8400;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  body.sectionBarOpen .pageHubBackdrop{
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .pageHub{
    z-index: 8600 !important;
  }

  .pageHubInner{
    position: relative;
    z-index: 8700;
  }

  .pageHubScroller{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: max-height .2s ease, opacity .2s ease, padding-top .2s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubScroller{
    max-height: 380px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
  }

  .pageHubInner:hover .pageHubScroller,
  .pageHubInner:focus-within .pageHubScroller{
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
  }

  .pageHubInner.sectionOpen:hover .pageHubScroller,
  .pageHubInner.sectionOpen:focus-within .pageHubScroller{
    max-height: 380px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
  }

  body > .pageHub + main{
    margin-top: 32px !important;
  }
}

/* --- FINAL9 mobile second-bar dropdown fix --- */
.pageHubHomeLink{
  display: flex !important;
}

@media (max-width: 780px){
  .pageHubBrand{
    cursor: pointer !important;
  }

  .pageHubBrand span,
  .pageHubBrand img{
    pointer-events: none !important;
  }

  .pageHubScroller{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: max-height .2s ease, opacity .2s ease, padding-top .2s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubScroller{
    max-height: 420px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
  }

  .pageHubInner:hover .pageHubScroller,
  .pageHubInner:focus-within .pageHubScroller{
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
  }

  .pageHubInner.sectionOpen:hover .pageHubScroller,
  .pageHubInner.sectionOpen:focus-within .pageHubScroller{
    max-height: 420px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
  }

  .pageHubHomeLink{
    background: rgba(255,255,255,0.105) !important;
    border-color: rgba(255,255,255,0.14) !important;
    font-weight: 900 !important;
  }

  .pageHubHomeLink::before{
    content: "↗";
    margin-right: 8px;
    opacity: .75;
  }

  .pageHubBackdrop{
    position: fixed !important;
    inset: 0 !important;
    z-index: 8400 !important;
    background: rgba(0,0,0,0.52) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .18s ease !important;
  }

  body.sectionBarOpen .pageHubBackdrop{
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* --- FINAL10 second-bar behavior, Home links, mobile dropdown, spacing --- */

/* More space between second bar and page content */
body > .pageHub + main{
  margin-top: 82px !important;
}

@media (min-width: 781px){
  body > .pageHub + main{
    margin-top: 86px !important;
  }
}

/* Brand/title is a button-like toggle, not a home link */
.pageHubBrand{
  cursor: pointer !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.pageHubBrand.pageHubPressed,
.pageHubBrand:active{
  transform: scale(0.96) !important;
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.16) !important;
}

.pageHubHomeLink{
  display: flex !important;
}

/* Home item should be the explicit home nav */
.pageHubHomeLink{
  background: rgba(255,255,255,0.085) !important;
  border-color: rgba(255,255,255,0.12) !important;
  font-weight: 900 !important;
}

/* Desktop: keep normal row visible, brand does not navigate */
@media (min-width: 781px){
  .pageHubScroller{
    display: flex !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow-x: auto !important;
    padding: 0 !important;
  }

  .pageHubBrand::after{
    display: none !important;
  }
}

/* Mobile: arrow toggles the page dropdown just like hamburger */
@media (max-width: 780px){
  body > .pageHub + main{
    margin-top: 48px !important;
  }

  .pageHub{
    z-index: 8600 !important;
  }

  .pageHubInner{
    position: relative !important;
    z-index: 8700 !important;
  }

  .pageHubBrand{
    width: 100% !important;
    justify-content: space-between !important;
    cursor: pointer !important;
  }

  .pageHubBrand span,
  .pageHubBrand img{
    pointer-events: none !important;
  }

  .pageHubBrand::after{
    content: "" !important;
    display: block !important;
    width: 9px !important;
    height: 9px !important;
    border: solid rgba(255,255,255,0.80) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    margin-left: auto !important;
    transition: transform .18s ease, margin-top .18s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubBrand::after{
    transform: rotate(225deg) !important;
    margin-top: 5px !important;
  }

  .pageHubScroller{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none !important;
    transition: max-height .2s ease, opacity .2s ease, padding-top .2s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubScroller{
    max-height: 460px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
    pointer-events: auto !important;
  }

  /* Disable accidental hover/focus opening on mobile. JS controls this. */
  .pageHubInner:hover .pageHubScroller,
  .pageHubInner:focus-within .pageHubScroller{
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    pointer-events: none !important;
  }

  .pageHubInner.sectionOpen:hover .pageHubScroller,
  .pageHubInner.sectionOpen:focus-within .pageHubScroller{
    max-height: 460px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
    pointer-events: auto !important;
  }

  .pageHubScroller a{
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
  }

  .pageHubBackdrop{
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 8400 !important;
    background: rgba(0,0,0,0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .18s ease !important;
  }

  body.sectionBarOpen .pageHubBackdrop{
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* --- FINAL11 second bar static titles, left alignment, mobile dropdown repair --- */

/* Align second-bar content left */
.pageHubInner{
  justify-content: flex-start !important;
}

.pageHubScroller{
  justify-content: flex-start !important;
  margin-left: 0 !important;
}

.pageHubBrand{
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}

/* Titles/brand in the second bar should NOT animate or change when pressed */
.pageHubBrand,
.pageHubBrand:hover,
.pageHubBrand:active,
.pageHubBrand:focus,
.pageHubBrand:focus-visible,
.pageHubBrand.pageHubPressed{
  transform: none !important;
  box-shadow: none !important;
}

.pageHubBrand{
  cursor: default !important;
}

/* Keep desktop section links left and normal */
@media (min-width: 781px){
  .pageHubScroller{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow-x: auto !important;
    pointer-events: auto !important;
    padding: 0 !important;
  }

  .pageHubBrand::after{
    display: none !important;
    content: none !important;
  }
}

/* Mobile dropdown works like hamburger */
@media (max-width: 780px){
  .pageHubBrand{
    cursor: pointer !important;
  }

  .pageHubBrand span,
  .pageHubBrand img{
    pointer-events: none !important;
  }

  .pageHubBrand::after{
    content: "" !important;
    display: block !important;
    width: 9px !important;
    height: 9px !important;
    border: solid rgba(255,255,255,0.80) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    margin-left: auto !important;
    transition: transform .18s ease, margin-top .18s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubBrand::after{
    transform: rotate(225deg) !important;
    margin-top: 5px !important;
  }

  .pageHubScroller{
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
    gap: 7px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none !important;
    transition: max-height .2s ease, opacity .2s ease, padding-top .2s ease !important;
  }

  .pageHubInner.sectionOpen .pageHubScroller{
    max-height: 460px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
    pointer-events: auto !important;
  }

  .pageHubInner:hover .pageHubScroller,
  .pageHubInner:focus-within .pageHubScroller{
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    pointer-events: none !important;
  }

  .pageHubInner.sectionOpen:hover .pageHubScroller,
  .pageHubInner.sectionOpen:focus-within .pageHubScroller{
    max-height: 460px !important;
    opacity: 1 !important;
    padding-top: 8px !important;
    pointer-events: auto !important;
  }

  .pageHubBackdrop{
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 8400 !important;
    background: rgba(0,0,0,0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .18s ease !important;
  }

  body.sectionBarOpen .pageHubBackdrop{
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* --- FINAL12 desktop left align + static titles + mobile current page label --- */

/* Desktop: align every second-bar page link to the left side */
@media (min-width: 781px){
  .pageHubInner{
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .pageHubScroller{
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    flex: 0 1 auto !important;
  }

  .pageHubScroller a{
    justify-content: flex-start !important;
  }

  /* Section title/logo is static on hover and press */
  .pageHubBrand,
  .pageHubBrand:hover,
  .pageHubBrand:active,
  .pageHubBrand:focus,
  .pageHubBrand:focus-visible{
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: default !important;
  }

  .pageHubBrand .pageHubLogoImg,
  .pageHubBrand .pageHubLogo{
    transform: none !important;
  }

  .pageHubCurrent{
    display: none !important;
  }
}

/* Mobile: show current page inside the second bar title */
@media (max-width: 780px){
  .pageHubBrand{
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .pageHubBrand::after{
    margin-left: auto !important;
  }

  .pageHubCurrent{
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 6px !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.085) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    color: rgba(255,255,255,0.72) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }
}

/* --- FINAL13 force desktop second-bar links left --- */
@media (min-width: 781px){
  .pageHubInner{
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .pageHubBrand{
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .pageHubScroller{
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
    transform: none !important;
  }

  .pageHubScroller a{
    flex: 0 0 auto !important;
  }
}



/* --- FINAL14 align second-bar links to RIGHT --- */
@media (min-width: 781px){
  .pageHubInner{
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .pageHubBrand{
    flex: 0 0 auto !important;
  }

  .pageHubScroller{
    margin-left: auto !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
  }

  .pageHubScroller a{
    flex: 0 0 auto !important;
  }
}

/* spacing under second bar after removing buttons */
body > .pageHub + main{
  margin-top: 90px !important;
}

/* --- FINAL: remove hero page buttons + repair Altyx countdown --- */
.pageHero > .container > .ctaRow,
.overviewHero > .container > .ctaRow,
.v36Hero > .container > .ctaRow{
  display: none !important;
}

.altyxCountdownPanel{
  margin-top: 24px !important;
  max-width: 860px !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045)) !important;
  border-radius: 28px !important;
  padding: 16px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28) !important;
}
.countdownIntro{
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  color: rgba(255,255,255,0.78) !important;
}
.countdownIntro b{
  color: rgba(255,255,255,0.95) !important;
}
.countdownGridV33{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 10px !important;
}
@media (max-width: 780px){
  .countdownGridV33{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

/* --- Search page repair --- */
.searchBoxWrap{
  margin-top: 18px;
  max-width: 720px;
}
.searchInput{
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.065);
  color: rgba(255,255,255,0.95);
  padding: 0 18px;
  font-size: 17px;
  outline: none;
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}
.searchInput::placeholder{
  color: rgba(255,255,255,0.46);
}
.searchInput:focus{
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.09);
}
.resultCount{
  margin-top: 14px;
  color: rgba(255,255,255,0.68);
}
.resultsGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.searchResultCard,
.searchEmpty{
  display: block;
  min-height: 210px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  padding: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.searchResultCard:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045));
}
.searchResultCard h2,
.searchEmpty h2{
  margin: 14px 0 8px;
  font-size: clamp(24px, 3vw, 36px);
}
.searchResultCard p,
.searchEmpty p{
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}
@media (max-width: 900px){
  .resultsGrid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 620px){
  .resultsGrid{
    grid-template-columns: 1fr;
  }
  .searchInput{
    min-height: 50px;
    font-size: 15px;
  }
}

/* --- v41 active page highlight in second bars --- */
.pageHubScroller a.activePage,
.pageHubScroller a[aria-current="page"]{
  border-color: rgba(255,255,255,0.26) !important;
  background: rgba(255,255,255,0.105) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 10px 32px rgba(0,0,0,0.20) !important;
  border-radius: 999px !important;
}

.pageHubScroller a.activePage:hover,
.pageHubScroller a[aria-current="page"]:hover{
  transform: translateY(-1px) scale(1.02) !important;
  background: rgba(255,255,255,0.13) !important;
}

@media (max-width: 780px){
  .pageHubScroller a.activePage,
  .pageHubScroller a[aria-current="page"]{
    border-radius: 14px !important;
  }
}
