/* V65 — Home final lock: floating nav restore, central width balance, live podium glow */

/* Restore the floating menu to the earlier diamond/line model and keep it always clickable */
html body .v53-section-nav{
  position:fixed!important;
  right:34px!important;
  top:50%!important;
  bottom:auto!important;
  transform:translateY(-50%)!important;
  width:176px!important;
  max-height:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:0!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  z-index:99990!important;
  pointer-events:auto!important;
}
html body .v53-section-nav:before{
  content:""!important;
  position:absolute!important;
  top:10px!important;
  bottom:10px!important;
  right:7px!important;
  width:1px!important;
  display:block!important;
  background:linear-gradient(180deg,transparent,rgba(255,239,211,.34) 12%,rgba(255,239,211,.34) 88%,transparent)!important;
  pointer-events:none!important;
  opacity:.95!important;
}
html body .v53-section-nav,
html body .v53-section-nav *{box-sizing:border-box!important;}
html body .v53-section-nav__item{
  position:relative!important;
  display:grid!important;
  grid-template-columns:1fr 45px 14px!important;
  align-items:center!important;
  min-height:45px!important;
  margin:0 0 10px!important;
  padding:0!important;
  color:rgba(255,244,226,.46)!important;
  text-align:right!important;
  text-decoration:none!important;
  background:transparent!important;
  border:0!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  isolation:isolate!important;
}
html body .v53-section-nav__text{display:block!important;pointer-events:none!important;}
html body .v53-section-nav__text strong{
  display:block!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
  color:inherit!important;
  text-shadow:0 8px 24px rgba(0,0,0,.45)!important;
  white-space:nowrap!important;
}
html body .v53-section-nav__text small{
  display:block!important;
  margin-top:3px!important;
  font-size:9px!important;
  line-height:1!important;
  color:rgba(255,239,211,.40)!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
  white-space:nowrap!important;
}
html body .v53-section-nav__line{
  display:block!important;
  width:30px!important;
  height:1px!important;
  justify-self:end!important;
  background:rgba(255,239,211,.48)!important;
  pointer-events:none!important;
  transition:width .22s ease,background .22s ease,box-shadow .22s ease!important;
}
html body .v53-section-nav__diamond{
  display:block!important;
  width:12px!important;
  height:12px!important;
  transform:rotate(45deg)!important;
  border:2px solid rgba(255,239,211,.62)!important;
  background:rgba(10,12,16,.78)!important;
  box-shadow:0 0 0 3px rgba(0,0,0,.24)!important;
  pointer-events:none!important;
  transition:border-color .22s ease,background .22s ease,box-shadow .22s ease,transform .22s ease!important;
}
html body .v53-section-nav__item:hover,
html body .v53-section-nav__item.is-active{
  color:#fff2bf!important;
  transform:translateX(-5px)!important;
}
html body .v53-section-nav__item:hover small,
html body .v53-section-nav__item.is-active small{color:#d9ae57!important;}
html body .v53-section-nav__item:hover .v53-section-nav__line,
html body .v53-section-nav__item.is-active .v53-section-nav__line{
  width:44px!important;
  background:#f7c75d!important;
  box-shadow:0 0 18px rgba(247,199,93,.48)!important;
}
html body .v53-section-nav__item:hover .v53-section-nav__diamond,
html body .v53-section-nav__item.is-active .v53-section-nav__diamond{
  border-color:#f7c75d!important;
  background:#120d05!important;
  box-shadow:0 0 0 4px rgba(247,199,93,.08),0 0 24px rgba(247,199,93,.55)!important;
  transform:rotate(45deg) scale(1.08)!important;
}

/* Keep the central block larger, but reserve safe space for the floating menu */
html body #home-updates.v53-home-hub{
  padding-top:72px!important;
  padding-bottom:72px!important;
}
html body #home-updates.v53-home-hub .content-area{
  width:min(1340px,calc(100vw - 320px))!important;
  max-width:1340px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  position:relative!important;
  left:-24px!important;
}
html body .v53-home-hub__panel{
  width:100%!important;
  padding:34px 36px 32px!important;
  border-radius:22px!important;
}
html body .v53-section-head{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:22px!important;
  margin-bottom:24px!important;
}
html body .v53-section-head .pro-title{
  font-size:clamp(34px,2.35vw,48px)!important;
  line-height:1.05!important;
  max-width:820px!important;
}
html body .v53-head-actions{min-width:300px!important;align-self:center!important;justify-content:flex-end!important;}
html body .v59-central-grid{gap:16px!important;}
html body .v59-group-title{margin-bottom:12px!important;}
html body .v59-news-grid{
  grid-template-columns:minmax(0,1.1fr) minmax(0,.95fr)!important;
  grid-template-rows:126px 126px!important;
  gap:12px!important;
}
html body .v59-card--hero{min-height:264px!important;}
html body .v59-events-grid{
  grid-template-columns:minmax(0,1.08fr) minmax(0,.78fr) minmax(0,.78fr)!important;
  grid-template-rows:132px 132px!important;
  gap:12px!important;
}
html body .v59-event-card--main{min-height:276px!important;}
html body .v59-card-content{padding:13px 16px!important;}
html body .v59-card--hero .v59-card-content,
html body .v59-event-card--main .v59-card-content{padding:20px 22px!important;}
html body .v59-card-content h3{
  font-size:clamp(18px,1.12vw,23px)!important;
  line-height:1.08!important;
  letter-spacing:.02em!important;
  max-width:100%!important;
  overflow:visible!important;
}
html body .v59-card--hero .v59-card-content h3,
html body .v59-event-card--main .v59-card-content h3{
  font-size:clamp(27px,1.8vw,36px)!important;
  line-height:1.06!important;
}
html body .v59-card-content p{
  font-size:12.5px!important;
  line-height:1.32!important;
  max-height:38px!important;
  overflow:hidden!important;
}
html body .v59-event-row{margin-top:8px!important;gap:8px!important;flex-wrap:wrap!important;}
html body .v59-event-row strong,
html body .v59-event-row span{height:28px!important;font-size:10px!important;min-width:72px!important;}
html body .v59-card-tag{height:24px!important;padding:0 13px!important;font-size:9px!important;}

/* Make the ranking preview feel live instead of looking like a flat screenshot */
@keyframes rankDustV65{from{background-position:0 0;}to{background-position:92px -92px;}}
@keyframes thunderPulseV65{0%,100%{opacity:.24;transform:translateX(-1%) scale(1);}45%{opacity:.62;transform:translateX(1%) scale(1.02);}50%{opacity:.9;}55%{opacity:.34;}}
@keyframes windFlowV65{from{transform:translateX(-30%);}to{transform:translateX(30%);}}
@keyframes fireRiseV65{0%,100%{opacity:.42;transform:translateY(2%);}50%{opacity:.78;transform:translateY(-2%);}}
@keyframes homeRankGlowV65{0%,100%{filter:brightness(1);box-shadow:0 22px 78px rgba(255,203,70,.20),0 0 80px rgba(88,200,255,.10),inset 0 1px 0 rgba(255,255,255,.12);}50%{filter:brightness(1.12);box-shadow:0 28px 92px rgba(255,203,70,.36),0 0 105px rgba(88,200,255,.22),inset 0 1px 0 rgba(255,255,255,.16);}}

html body #ranking-preview .ranking-home-v64-podium:after{
  animation:rankDustV65 14s linear infinite!important;
}
html body #ranking-preview .ranking-home-v64-podium .rank-card{
  transform:translateZ(0)!important;
  will-change:transform,filter!important;
}
html body #ranking-preview .ranking-home-v64-podium .rank-first{
  animation:homeRankGlowV65 3.2s ease-in-out infinite!important;
}
html body #ranking-preview .ranking-home-v64-podium .rank-first:after{
  animation:thunderPulseV65 2.8s ease-in-out infinite!important;
  mix-blend-mode:screen!important;
}
html body #ranking-preview .ranking-home-v64-podium .rank-second:after{
  animation:windFlowV65 5.6s linear infinite!important;
  mix-blend-mode:screen!important;
}
html body #ranking-preview .ranking-home-v64-podium .rank-third:after{
  animation:fireRiseV65 3.4s ease-in-out infinite!important;
  mix-blend-mode:screen!important;
}
html body #ranking-preview .ranking-home-v64-podium .rank-card:before,
html body #ranking-preview .ranking-home-v64-podium .avatar,
html body #ranking-preview .ranking-home-v64-podium .score{
  z-index:5!important;
}

/* Better section anchoring without hiding the floating menu */
html body #home-top,
html body #home-updates,
html body #ranking-preview,
html body #home-features,
html body #home-resources,
html body #home-community,
html body #home-media{scroll-margin-top:0!important;}
html body #home-features,
html body #home-resources,
html body #home-community,
html body #home-media{position:relative!important;z-index:1!important;}

@media(max-width:1380px){
  html body .v53-section-nav{right:18px!important;transform:translateY(-50%) scale(.90)!important;transform-origin:right center!important;}
  html body #home-updates.v53-home-hub .content-area{width:min(1180px,calc(100vw - 265px))!important;left:-16px!important;}
  html body .v53-home-hub__panel{padding:30px 28px!important;}
  html body .v59-card--hero .v59-card-content h3,
  html body .v59-event-card--main .v59-card-content h3{font-size:clamp(24px,1.65vw,31px)!important;}
}
@media(max-width:980px){
  html body .v53-section-nav{display:none!important;}
  html body #home-updates.v53-home-hub .content-area{width:calc(100% - 28px)!important;left:0!important;}
  html body .v53-section-head{grid-template-columns:1fr!important;}
  html body .v53-head-actions{min-width:0!important;justify-content:flex-start!important;}
  html body .v59-news-grid,
  html body .v59-events-grid{grid-template-columns:1fr!important;grid-template-rows:auto!important;}
  html body .v59-card--hero,
  html body .v59-event-card--main,
  html body .v59-event-card--guild{min-height:210px!important;}
}
