/* Shared inner-page hero ----------------------------------------------------
 * Loaded after page-specific styles so every public panel page uses one
 * stable banner composition, title scale and mobile treatment.
 */

body.wok-3d-shell .gmr-page-hero,
body.wok-3d-shell .title-header,
body.wok-3d-shell .guide-hero,
body.wok-3d-shell .wok-download__hero,
body.wok-3d-shell .gmr-account-hero,
body.wok-3d-shell .gmr-clan-hero,
body.wok-3d-shell .wok-store-hero {
    position: relative !important;
    isolation: isolate;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: none !important;
    min-height: 250px !important;
    margin: 0 calc(50% - 50vw) 38px !important;
    padding: 42px 28px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        linear-gradient(90deg, rgba(2, 2, 2, .20), rgba(2, 2, 2, .57) 34%, rgba(2, 2, 2, .64) 50%, rgba(2, 2, 2, .57) 66%, rgba(2, 2, 2, .20)),
        linear-gradient(180deg, rgba(1, 1, 1, .10), rgba(1, 1, 1, .18) 54%, rgba(0, 0, 0, .62)),
        url('/assets/images/gmr-inner-hero-v1.jpg') center / cover no-repeat !important;
    box-shadow: none !important;
    text-align: center !important;
    transform: none !important;
    animation: none !important;
}

/* Route-level guard: page styles previously reset the image and margins on
 * News/Ranking. These selectors keep every banner centered on the viewport. */
body.wok-3d-shell.route-news .news-list-container > .title-header,
body.wok-3d-shell.route-ranking .ranking-container > .title-header,
body.wok-3d-shell.route-ranking-job .ranking-container > .title-header,
body.wok-3d-shell.route-guide .guide-hero,
body.wok-3d-shell.route-download .wok-download > .wok-download__hero,
body.wok-3d-shell.route-user-account .gmr-account-hero,
body.wok-3d-shell.route-clan-ranking .gmr-clan-ranking > .gmr-clan-hero,
body.wok-3d-shell.route-store .wok-store > .wok-store-hero {
    width: 100vw !important;
    max-width: none !important;
    margin-top: 0 !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 38px !important;
    margin-left: calc(50% - 50vw) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        linear-gradient(90deg, rgba(2, 2, 2, .20), rgba(2, 2, 2, .57) 34%, rgba(2, 2, 2, .64) 50%, rgba(2, 2, 2, .57) 66%, rgba(2, 2, 2, .20)),
        linear-gradient(180deg, rgba(1, 1, 1, .10), rgba(1, 1, 1, .18) 54%, rgba(0, 0, 0, .62)),
        url('/assets/images/gmr-inner-hero-v1.jpg') center / cover no-repeat !important;
    background-color: #060504 !important;
    box-shadow: none !important;
}

body.wok-3d-shell .gmr-page-hero::before,
body.wok-3d-shell .title-header::before,
body.wok-3d-shell .guide-hero::before,
body.wok-3d-shell .wok-download__hero::before,
body.wok-3d-shell .gmr-account-hero::before,
body.wok-3d-shell .gmr-clan-hero::before,
body.wok-3d-shell .wok-store-hero::before {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    inset: 0 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, rgba(219, 166, 71, .13), transparent 38%),
        linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 20%, transparent 80%, rgba(0, 0, 0, .12)) !important;
    box-shadow: inset 0 0 70px rgba(0, 0, 0, .22) !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

body.wok-3d-shell .gmr-page-hero::after,
body.wok-3d-shell .title-header::after,
body.wok-3d-shell .guide-hero::after,
body.wok-3d-shell .wok-download__hero::after,
body.wok-3d-shell .gmr-account-hero::after,
body.wok-3d-shell .gmr-clan-hero::after,
body.wok-3d-shell .wok-store-hero::after {
    content: none !important;
    display: none !important;
}

body.wok-3d-shell .gmr-page-hero > *,
body.wok-3d-shell .title-header > *,
body.wok-3d-shell .guide-hero > *,
body.wok-3d-shell .wok-download__hero > *,
body.wok-3d-shell .gmr-account-hero > *,
body.wok-3d-shell .gmr-clan-hero > *,
body.wok-3d-shell .wok-store-hero > * {
    position: relative !important;
    z-index: 2 !important;
}

body.wok-3d-shell .page-title,
body.wok-3d-shell .guide-hero h1,
body.wok-3d-shell .guide-hero-title,
body.wok-3d-shell h1.wok-download__title,
body.wok-3d-shell .gmr-page-hero__title,
body.wok-3d-shell .gmr-account-hero__title,
body.wok-3d-shell .gmr-clan-hero h1,
body.wok-3d-shell .wok-store-hero h1 {
    margin: 0 !important;
    padding: 0 !important;
    color: #f3dfb1 !important;
    background: linear-gradient(105deg, #c79849 0%, #f2d79b 22%, #fff7dd 48%, #e7c477 72%, #ad7627 100%) !important;
    background-size: 220% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(38px, 4vw, 58px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: .045em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
    filter:
        drop-shadow(0 2px 0 rgba(72, 43, 8, .88))
        drop-shadow(0 8px 18px rgba(0, 0, 0, .82)) !important;
    animation: gmrUnifiedHeroTitle 8s ease-in-out infinite !important;
}

body.wok-3d-shell .gmr-page-hero__eyebrow,
body.wok-3d-shell .gmr-account-hero__eyebrow,
body.wok-3d-shell .gmr-clan-hero__eyebrow,
body.wok-3d-shell .wok-store-hero .gmr-page-hero__eyebrow {
    display: block !important;
    margin: 0 0 12px !important;
    color: #e2b95f !important;
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
    letter-spacing: .28em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .92) !important;
    animation: none !important;
}

body.wok-3d-shell .gmr-page-hero__subtitle,
body.wok-3d-shell .guide-hero-subtitle,
body.wok-3d-shell .wok-download__subtitle,
body.wok-3d-shell .gmr-account-hero__subtitle,
body.wok-3d-shell .gmr-clan-hero p,
body.wok-3d-shell .wok-store-hero p {
    width: min(100%, 700px) !important;
    max-width: 700px !important;
    margin: 16px auto 0 !important;
    color: rgba(232, 224, 210, .74) !important;
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    letter-spacing: .012em !important;
    text-align: center !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .96) !important;
}

@keyframes gmrUnifiedHeroTitle {
    0%, 100% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
}

@media (max-width: 760px) {
    body.wok-3d-shell .gmr-page-hero,
    body.wok-3d-shell .title-header,
    body.wok-3d-shell .guide-hero,
    body.wok-3d-shell .wok-download__hero,
    body.wok-3d-shell .gmr-account-hero,
    body.wok-3d-shell .gmr-clan-hero,
    body.wok-3d-shell .wok-store-hero {
        min-height: 190px !important;
        margin-bottom: 24px !important;
        padding: 34px 16px !important;
        border-radius: 0 !important;
    }

    body.wok-3d-shell.route-news .news-list-container > .title-header,
    body.wok-3d-shell.route-ranking .ranking-container > .title-header,
    body.wok-3d-shell.route-ranking-job .ranking-container > .title-header,
    body.wok-3d-shell.route-guide .guide-hero,
    body.wok-3d-shell.route-download .wok-download > .wok-download__hero,
    body.wok-3d-shell.route-user-account .gmr-account-hero,
    body.wok-3d-shell.route-clan-ranking .gmr-clan-ranking > .gmr-clan-hero,
    body.wok-3d-shell.route-store .wok-store > .wok-store-hero {
        margin-bottom: 24px !important;
    }

    body.wok-3d-shell .page-title,
    body.wok-3d-shell .guide-hero h1,
    body.wok-3d-shell .guide-hero-title,
    body.wok-3d-shell h1.wok-download__title,
    body.wok-3d-shell .gmr-page-hero__title,
    body.wok-3d-shell .gmr-account-hero__title,
    body.wok-3d-shell .gmr-clan-hero h1,
    body.wok-3d-shell .wok-store-hero h1 {
        font-size: clamp(29px, 8.7vw, 40px) !important;
        line-height: 1.14 !important;
        letter-spacing: .025em !important;
    }

    body.wok-3d-shell .gmr-page-hero__subtitle,
    body.wok-3d-shell .guide-hero-subtitle,
    body.wok-3d-shell .wok-download__subtitle,
    body.wok-3d-shell .gmr-account-hero__subtitle,
    body.wok-3d-shell .gmr-clan-hero p,
    body.wok-3d-shell .wok-store-hero p {
        margin-top: 12px !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.wok-3d-shell .page-title,
    body.wok-3d-shell .guide-hero h1,
    body.wok-3d-shell .guide-hero-title,
    body.wok-3d-shell h1.wok-download__title,
    body.wok-3d-shell .gmr-page-hero__title,
    body.wok-3d-shell .gmr-account-hero__title,
    body.wok-3d-shell .gmr-clan-hero h1,
    body.wok-3d-shell .wok-store-hero h1 {
        animation: none !important;
    }
}
