/* Shared hero language — based on the quizzes page. */
:root {
    --hf-ink: #193d57;
    --hf-accent: #df566b;
    --hf-cream: #fff8ec;
    --hf-gold: #edc55b;
    --hf-muted: #727d85;
}

.hm-page .home-hero,
.qp-page .qp-hero,
.games-page .games-hero-wrap,
.stories-static-page .stories-wrap,
.cs-page .cs-hero,
.oh-app .oh-landing-hero,
.story01-static .story01-hero,
.discovery-landing-hero,
.landing-hero {
    background-color: var(--hf-cream) !important;
    background-image:
        radial-gradient(circle at 94% 2%, rgba(223, 86, 107, .055) 0 14rem, transparent 14.2rem),
        radial-gradient(circle at 3% 100%, rgba(237, 197, 91, .10) 0 17rem, transparent 17.2rem) !important;
    color: var(--hf-ink) !important;
}

.hm-page .home-hero,
.qp-page .qp-hero,
.games-page .games-hero-new,
.stories-static-page .stories-hero-new,
.cs-page .cs-hero,
.oh-app .oh-landing-hero,
.story01-static .story01-hero-grid,
.discovery-landing-hero,
.landing-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(30px, 4vw, 64px) !important;
    min-height: 620px;
    padding: 65px max(5vw, 24px) 90px !important;
    font-family: 'Tajawal', sans-serif !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.games-page .games-hero-wrap,
.stories-static-page .stories-wrap,
.story01-static .story01-hero {
    padding: 0 !important;
}

.games-page .games-container,
.stories-static-page .stories-wrap,
.story01-static .story01-shell {
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin-inline: auto !important;
}

.games-page .games-hero-new,
.stories-static-page .stories-hero-new,
.story01-static .story01-hero-grid {
    width: 100% !important;
}

.stories-static-page .stories-hero-new,
.oh-app .oh-landing-hero {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hm-page .hero-copy,
.qp-page .qp-hero-copy,
.games-page .games-hero-copy,
.stories-static-page .stories-hero-copy,
.cs-page .cs-hero-copy,
.oh-app .oh-gate-copy,
.story01-static .story01-hero-copy,
.discovery-landing-copy,
.landing-copy {
    direction: rtl;
    text-align: right !important;
    position: relative;
    z-index: 2;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.hm-page .hero-copy h1,
.qp-page .qp-hero h1,
.games-page .games-hero-copy h1,
.stories-static-page .stories-hero-new h1,
.cs-page .cs-hero h1,
.oh-app .oh-gate-copy h1,
.story01-static .story01-hero-copy h1,
.discovery-landing-copy h1,
.landing-copy h1 {
    margin: 24px 0 28px !important;
    color: var(--hf-ink) !important;
    font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif !important;
    font-size: clamp(43px, 5.5vw, 79px) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
    max-width: 100% !important;
    overflow-wrap: anywhere;
}

.hm-page .hero-copy h1 em,
.qp-page .qp-hero h1 em,
.games-page .games-hero-copy h1 span,
.stories-static-page .stories-hero-new h1 span,
.cs-page .cs-hero h1 em,
.oh-app .oh-gate-copy h1 em,
.story01-static .story01-hero-copy h1 span,
.discovery-landing-copy h1 em,
.landing-copy h1 span {
    display: block;
    color: var(--hf-accent) !important;
    font: inherit !important;
}

.hm-page .hero-copy > p,
.qp-page .qp-hero-copy > p,
.games-page .games-hero-copy > p,
.stories-static-page .stories-hero-copy > p,
.cs-page .cs-hero-copy > p,
.oh-app .oh-gate-copy > p,
.story01-static .story01-description,
.discovery-landing-copy > p,
.landing-copy > p {
    width: auto !important;
    max-width: 540px !important;
    margin: 0 0 28px !important;
    color: var(--hf-muted) !important;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.95 !important;
}

.hm-page .hero-copy > .eyebrow,
.qp-page .qp-hero-copy > .qp-eyebrow,
.games-page .games-kicker,
.stories-static-page .stories-eyebrow,
.cs-page .cs-hero-copy > .cs-eyebrow,
.oh-app .oh-kicker,
.story01-static .story01-eyebrow,
.discovery-landing-eyebrow,
.landing-eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    padding: 10px 18px !important;
    border: 1px solid rgba(223, 86, 107, .18) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .72) !important;
    color: var(--hf-accent) !important;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.hm-page .character-stage,
.qp-page .qp-hero-art,
.games-page .games-hero-visual,
.stories-static-page .stories-hero-art,
.cs-page .cs-art,
.oh-app .oh-door-stage,
.story01-static .story01-frame,
.discovery-landing-art,
.landing-art {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 650px !important;
    margin-inline: auto !important;
    justify-self: center !important;
}

.hm-page .actions,
.qp-page .qp-actions,
.games-page .games-hero-actions,
.stories-static-page .stories-hero-actions,
.cs-page .cs-actions,
.oh-app .oh-gate-actions,
.discovery-landing-actions,
.landing-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
}

.hm-page .actions a,
.qp-page .qp-actions a,
.qp-page .qp-actions button,
.games-page .games-hero-actions a,
.stories-static-page .stories-hero-actions a,
.cs-page .cs-actions a,
.oh-app .oh-gate-actions button,
.discovery-landing-actions button,
.landing-actions button {
    min-height: 52px;
    border-radius: 15px !important;
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800 !important;
}

.oh-app .oh-landing-hero {
    direction: ltr !important;
    grid-template-areas: 'art copy' !important;
}

.oh-app .oh-gate-copy { grid-area: copy; }
.oh-app .oh-door-stage { grid-area: art; }

.hm-page .hero-copy { grid-column: 2; }
.hm-page .character-stage { grid-column: 1; grid-row: 1; }

.story01-static .story01-wave { fill: var(--hf-cream) !important; }

/* Stories and creator follow the games hero geometry exactly on desktop. */
.stories-static-page {
    padding-top: 0 !important;
}

@media (min-width: 701px) {
    .stories-static-page .stories-wrap {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .stories-static-page .stories-hero-new,
    .cs-page .cs-hero {
        width: min(1180px, calc(100% - 48px)) !important;
        min-height: 623px !important;
        margin: 0 auto !important;
        padding: 65px 64px 90px !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 51.2px !important;
    }

    .stories-static-page .stories-hero-art,
    .cs-page .cs-art {
        width: 100% !important;
        max-width: 500px !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .stories-static-page .stories-hero-frame,
    .cs-page .cs-art > img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 16 / 9 !important;
        border: 0 !important;
        border-radius: 28px !important;
        box-shadow: none !important;
        object-fit: cover !important;
    }

    .stories-static-page .stories-hero-frame img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .cs-page {
        background-color: var(--hf-cream) !important;
    }
}

@media (max-width: 1000px) {
    .hm-page .home-hero,
    .qp-page .qp-hero,
    .games-page .games-hero-new,
    .stories-static-page .stories-hero-new,
    .cs-page .cs-hero,
    .oh-app .oh-landing-hero,
    .story01-static .story01-hero-grid,
    .discovery-landing-hero,
    .landing-hero {
        gap: 28px !important;
        min-height: 560px;
        padding-inline: 30px !important;
    }
}

@media (max-width: 700px) {
    .hm-page .home-hero,
    .qp-page .qp-hero,
    .games-page .games-hero-new,
    .stories-static-page .stories-hero-new,
    .cs-page .cs-hero,
    .oh-app .oh-landing-hero,
    .story01-static .story01-hero-grid,
    .discovery-landing-hero,
    .landing-hero {
        grid-template-columns: 1fr !important;
        grid-template-areas: 'copy' 'art' !important;
        gap: 36px !important;
        min-height: auto !important;
        padding: 45px 22px 65px !important;
    }

    .hm-page .hero-copy,
    .qp-page .qp-hero-copy,
    .games-page .games-hero-copy,
    .stories-static-page .stories-hero-copy,
    .cs-page .cs-hero-copy,
    .oh-app .oh-gate-copy,
    .story01-static .story01-hero-copy,
    .discovery-landing-copy,
    .landing-copy {
        grid-area: copy !important;
        grid-column: auto !important;
        text-align: center !important;
    }

    .hm-page .character-stage,
    .qp-page .qp-hero-art,
    .games-page .games-hero-visual,
    .stories-static-page .stories-hero-art,
    .cs-page .cs-art,
    .oh-app .oh-door-stage,
    .story01-static .story01-frame,
    .discovery-landing-art,
    .landing-art {
        grid-area: art !important;
        grid-column: auto !important;
        grid-row: auto !important;
        max-width: 480px !important;
        min-width: 0 !important;
    }

    .stories-static-page .stories-hero-art,
    .cs-page .cs-art {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        transform: none !important;
    }

    .stories-static-page .stories-hero-frame,
    .cs-page .cs-art > img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 16 / 9 !important;
        border: 0 !important;
        border-radius: 24px !important;
        box-shadow: none !important;
        object-fit: cover !important;
    }

    .stories-static-page .stories-hero-frame img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .hm-page .hero-copy h1,
    .qp-page .qp-hero h1,
    .games-page .games-hero-copy h1,
    .stories-static-page .stories-hero-new h1,
    .cs-page .cs-hero h1,
    .oh-app .oh-gate-copy h1,
    .story01-static .story01-hero-copy h1,
    .discovery-landing-copy h1,
    .landing-copy h1 {
        font-size: clamp(40px, 12vw, 52px) !important;
        line-height: 1.2 !important;
    }

    .hm-page .hero-copy > p,
    .qp-page .qp-hero-copy > p,
    .games-page .games-hero-copy > p,
    .stories-static-page .stories-hero-copy > p,
    .cs-page .cs-hero-copy > p,
    .oh-app .oh-gate-copy > p,
    .story01-static .story01-description,
    .discovery-landing-copy > p,
    .landing-copy > p {
        margin-inline: auto !important;
        font-size: 16px !important;
    }

    .hm-page .hero-copy > .eyebrow,
    .qp-page .qp-hero-copy > .qp-eyebrow,
    .games-page .games-kicker,
    .stories-static-page .stories-eyebrow,
    .cs-page .cs-hero-copy > .cs-eyebrow,
    .oh-app .oh-kicker,
    .story01-static .story01-eyebrow,
    .discovery-landing-eyebrow,
    .landing-eyebrow {
        margin-inline: auto !important;
    }

    .hm-page .actions,
    .qp-page .qp-actions,
    .games-page .games-hero-actions,
    .stories-static-page .stories-hero-actions,
    .cs-page .cs-actions,
    .oh-app .oh-gate-actions,
    .discovery-landing-actions,
    .landing-actions {
        justify-content: center !important;
    }

    .games-page .games-container,
    .stories-static-page .stories-wrap,
    .story01-static .story01-shell {
        width: 100% !important;
    }
}
