/* V26 code-only fixes: login menu match, download polish, ranking compact QA */

/* LOGIN: force the same menu geometry used by account-panel.php */
html body.account-body .header.inner,
html body.account-body .header.inner .nav{
  height:var(--roi-menu-height,80px)!important;
  min-height:var(--roi-menu-height,80px)!important;
  margin:0!important;
  padding:0!important;
  background:var(--roi-menu-bg,rgba(3,8,15,.94))!important;
  border-bottom:1px solid var(--roi-menu-line,rgba(196,145,45,.16))!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html body.account-body .header.inner .nav .content-area{
  width:calc(100% - 80px)!important;
  max-width:var(--roi-menu-width,1460px)!important;
  min-width:0!important;
  height:var(--roi-menu-height,80px)!important;
  min-height:var(--roi-menu-height,80px)!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:0!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
html body.account-body .header.inner .nav__logo{
  width:74px!important;
  min-width:74px!important;
  flex:0 0 74px!important;
  height:var(--roi-menu-height,80px)!important;
  margin:0 26px 0 0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
html body.account-body .header.inner .nav__logo img{width:64px!important;max-width:64px!important;max-height:64px!important;height:auto!important;object-fit:contain!important;display:block!important;}
html body.account-body .header.inner .nav__links{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  height:var(--roi-menu-height,80px)!important;
  min-height:var(--roi-menu-height,80px)!important;
  margin:0!important;
  padding:0!important;
  gap:clamp(19px,1.55vw,36px)!important;
  flex-wrap:nowrap!important;
  overflow:visible!important;
}
html body.account-body .header.inner .nav__links-item,
html body.account-body .header.inner .nav__links-item:not(:last-child){
  width:auto!important;height:var(--roi-menu-height,80px)!important;min-height:var(--roi-menu-height,80px)!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;position:relative!important;white-space:nowrap!important;
}
html body.account-body .header.inner .nav__links-item a{
  height:var(--roi-menu-height,80px)!important;min-height:var(--roi-menu-height,80px)!important;line-height:var(--roi-menu-height,80px)!important;padding:0 2px!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;font-size:14px!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase!important;color:#efe8dc!important;transform:none!important;transition:color .22s ease,text-shadow .22s ease!important;
}
html body.account-body .header.inner .nav__langs{flex:0 0 auto!important;margin-left:auto!important;margin-right:16px!important;height:var(--roi-menu-height,80px)!important;min-height:var(--roi-menu-height,80px)!important;display:flex!important;align-items:center!important;justify-content:center!important;}
html body.account-body .header.inner .nav .button{flex:0 0 auto!important;min-width:144px!important;width:144px!important;height:42px!important;min-height:42px!important;margin:0 0 0 16px!important;padding:0 20px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
html body.account-body .header.inner .nav .button span{font-size:13px!important;letter-spacing:.16em!important;white-space:nowrap!important;}
html body.account-body .header.inner .nav .button img{width:18px!important;height:18px!important;margin-right:8px!important;}

/* DOWNLOAD: reorganized premium three-step layout */
.download-clean-page{
  position:relative!important;
  padding:86px 0 96px!important;
  min-height:calc(100vh - 80px)!important;
  background:
    radial-gradient(circle at 50% 0,rgba(255,184,49,.10),transparent 28%),
    linear-gradient(180deg,rgba(5,10,18,.72),rgba(5,8,13,.96) 55%,#05070b 100%),
    url('../images/alucard-v26-menu-download-ranking-fix-icarus-maintenance.webp') center top/cover no-repeat fixed!important;
  overflow:hidden!important;
}
.download-clean-page:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.18;
  background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(180deg,transparent,black 16%,black 76%,transparent);
}
.download-clean-page .section__title{position:relative;z-index:1;margin-bottom:46px!important;}
.download-clean-page .section__title-center-big{font-size:clamp(34px,3.2vw,56px)!important;letter-spacing:.16em!important;text-shadow:0 8px 28px rgba(0,0,0,.65),0 0 22px rgba(255,189,74,.18)!important;}
.download-clean-page .section__title-small{font-size:15px!important;letter-spacing:.16em!important;color:#e7d7b7!important;margin-top:10px!important;}
.download-clean-page .content-area{position:relative;z-index:1;max-width:1380px!important;}
.download-layout{display:grid!important;grid-template-columns:.92fr 1.28fr .92fr!important;gap:28px!important;align-items:stretch!important;}
.download-step{position:relative!important;border:1px solid rgba(226,176,70,.26)!important;border-radius:22px!important;background:linear-gradient(180deg,rgba(15,16,18,.88),rgba(6,8,12,.94))!important;box-shadow:0 26px 72px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.05)!important;overflow:hidden!important;min-height:420px!important;padding:34px 34px 30px!important;}
.download-step:before{content:attr(data-step);position:absolute;right:24px;top:0;height:38px;min-width:116px;padding:0 18px;border-radius:0 0 12px 12px;background:#f2a313;color:#0d0905;display:flex;align-items:center;justify-content:center;font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:12px;box-shadow:0 10px 26px rgba(242,163,19,.24);}
.download-step:after{content:"";position:absolute;inset:auto -40px -80px auto;width:220px;height:220px;border-radius:50%;background:rgba(255,179,49,.07);filter:blur(3px);pointer-events:none;}
.download-step__head{display:flex!important;align-items:center!important;gap:22px!important;margin-bottom:26px!important;}
.download-step__number{width:62px!important;height:62px!important;border-radius:50%!important;border:1px solid rgba(255,176,49,.58)!important;background:rgba(8,10,14,.7)!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#ffbe42!important;font-weight:900!important;font-size:20px!important;letter-spacing:.04em!important;flex:0 0 auto!important;}
.download-step__eyebrow{font-size:12px!important;letter-spacing:.22em!important;text-transform:uppercase!important;color:#f0a81f!important;font-weight:900!important;margin-bottom:8px!important;}
.download-step h2{font-size:clamp(20px,1.35vw,27px)!important;line-height:1.14!important;letter-spacing:.04em!important;color:#fff0cf!important;margin:0!important;}
.download-step__body p{font-size:15px!important;line-height:1.8!important;color:#c9c4bb!important;margin:0 0 24px!important;}
.download-actions{display:flex!important;gap:12px!important;flex-wrap:wrap!important;align-items:center!important;}
.download-actions .button,.download-db-card .button{height:44px!important;min-width:150px!important;border-radius:999px!important;letter-spacing:.10em!important;font-size:12px!important;font-weight:900!important;}
.download-step--files{min-height:500px!important;}
.download-db-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
.download-db-card{position:relative!important;min-height:150px!important;padding:22px 18px 18px!important;border-radius:16px!important;border:1px solid rgba(226,176,70,.20)!important;background:linear-gradient(180deg,rgba(7,11,18,.94),rgba(4,6,10,.96))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;}
.download-db-card h3{font-size:19px!important;color:#fff0cf!important;margin:0 0 8px!important;line-height:1.2!important;}
.download-db-card p{font-size:13px!important;line-height:1.5!important;margin:0 0 18px!important;color:#bfc3c9!important;min-height:36px!important;}
.download-step--play .download-actions .button{min-width:170px!important;}
@media(max-width:1180px){.download-layout{grid-template-columns:1fr!important}.download-step,.download-step--files{min-height:auto!important}.download-db-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){.download-clean-page{padding:46px 0 78px!important}.download-db-grid{grid-template-columns:1fr!important}.download-step{padding:28px 22px!important}.download-step__head{align-items:flex-start!important}.download-actions .button{width:100%!important}}

/* RANKING: compact PVP/LVL/Tower proportions, keep Guild readable */
.rank-game-page{padding:26px min(4vw,64px) 80px!important;min-height:calc(100vh - 80px)!important;}
.rank-game-shell{max-width:1320px!important;margin:0 auto!important;}
.rank-page-heading{margin:0 auto 18px!important;}
.rank-page-heading h1{font-size:clamp(52px,6.1vw,92px)!important;line-height:.82!important;letter-spacing:.14em!important;margin:0!important;}
.rank-page-heading p{font-size:15px!important;margin:10px auto 0!important;}
.rank-game-window{border-radius:18px!important;}
.rank-game-content{grid-template-columns:170px minmax(0,1fr)!important;min-height:0!important;gap:22px!important;align-items:start!important;}
.rank-game-sidebar{gap:10px!important;padding:16px!important;position:sticky!important;top:96px!important;}
.rank-game-sidebar button{height:56px!important;font-size:15px!important;border-radius:12px!important;padding:0 15px!important;letter-spacing:.08em!important;}
.rank-game-main{padding:0!important;min-width:0!important;}
.rank-game-tabs{height:52px!important;margin-bottom:18px!important;border-radius:999px!important;}
.rank-game-tabs button{font-size:13px!important;letter-spacing:.12em!important;}
.rank-game-board{grid-template-columns:minmax(520px,.95fr) minmax(390px,.82fr)!important;gap:18px!important;align-items:start!important;}
.rank-game-podium{min-height:405px!important;padding:22px 22px 28px!important;gap:14px!important;}
.rank-card{min-height:210px!important;padding:16px!important;border-radius:14px!important;}
.rank-first{min-height:285px!important;}
.rank-card:before{width:74px!important;height:70px!important;font-size:34px!important;margin:-36px auto 14px!important;border-radius:0 0 22px 22px!important;}
.rank-card .avatar{width:74px!important;height:74px!important;font-size:34px!important;margin-bottom:10px!important;border-width:3px!important;}
.rank-first .avatar{width:92px!important;height:92px!important;}
.rank-card .role{font-size:12px!important;letter-spacing:.12em!important;}
.rank-card h3{font-size:20px!important;margin:0 0 8px!important;line-height:1.1!important;}
.rank-card p{font-size:13px!important;margin:0 0 10px!important;}
.rank-card .score{font-size:24px!important;min-width:128px!important;padding:8px 12px!important;}
.rank-card small{font-size:13px!important;margin-top:10px!important;}
.rank-game-list{padding:10px!important;gap:7px!important;min-height:405px!important;}
.rank-row{height:56px!important;grid-template-columns:48px 48px minmax(0,1fr) 104px!important;gap:8px!important;padding:0 12px!important;border-radius:9px!important;}
.rank-row .pos{font-size:22px!important;}
.rank-row .mini{width:38px!important;height:38px!important;font-size:18px!important;}
.rank-row h4{font-size:16px!important;line-height:1.1!important;}
.rank-row p{font-size:12px!important;line-height:1.1!important;}
.rank-row strong{font-size:22px!important;padding:7px 10px!important;}
.rank-game-note{margin-top:16px!important;font-size:15px!important;}
.rank-game-note button{width:46px!important;height:46px!important;font-size:26px!important;border-width:2px!important;}
@media(max-width:1180px){.rank-game-content{grid-template-columns:1fr!important}.rank-game-sidebar{position:relative!important;top:auto!important;grid-template-columns:repeat(4,1fr)!important}.rank-game-board{grid-template-columns:1fr!important}.rank-game-podium,.rank-game-list{min-height:auto!important}}
@media(max-width:760px){.rank-game-page{padding:22px 12px 70px!important}.rank-page-heading h1{font-size:38px!important}.rank-game-podium{grid-template-columns:1fr!important}.rank-first,.rank-second,.rank-third{order:initial!important}.rank-row{height:auto!important;grid-template-columns:42px 42px 1fr!important;padding:10px!important}.rank-row strong{grid-column:1/-1!important;text-align:left!important}}
