/* IMPROVE — homepage-only layout corrections. 12.11.2026.
   Do not alter navigation, account or other pages outside this homepage. */

                                                                     
                                                                    
                                                                 
@media (min-width: 981px) {
  body[data-page="home-exact"] .topbar .topbar-inner .nav-tools {
    flex: 0 0 112px;
    width: 112px;
    min-width: 0;
    justify-content: flex-end;
  }
  body[data-page="home-exact"] .topbar .nav-tools .m-account-trigger .m-header-name {
    display: inline-block;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
}

/* The "ЛИСТАЙ" strip finishes exactly at the bottom of the visible
   browser viewport (directly above the OS taskbar when maximized).
   Account for the measured header + ticker height; do not subtract pixels. */
@media (min-width: 741px) {
  body[data-page="home-exact"] .hero.hero-forge {
    min-height: calc(100vh - var(--im-above-hero, 135px)) !important;
    min-height: calc(100dvh - var(--im-above-hero, 135px)) !important;
  }
}
body[data-page="home-exact"] .story-section--paths {
  border-top: 1px solid #593a2a;
}

body[data-page="home-exact"] .story-section .story-visual--forge img{object-position:53% calc(50% - 16px)}
@media(max-width:600px){body[data-page="home-exact"] .story-section .story-visual--forge img{object-position:57% calc(50% - 16px)}}

/* Mobile content can be taller than the viewport. Keep the cue in document flow
   after the complete scene/statistics instead of anchoring it to 100dvh. */
@media(max-width:740px){
  body[data-page="home-exact"] .hero.hero-forge>.im-hero-scroll{
    position:relative!important;inset:auto!important;transform:none!important;
    width:max-content;max-width:100%;margin:14px auto 52px!important;
  }
}
