.discovery-page > .home-catalog {
    margin-top: 86px;
    border-top-color: rgba(216, 185, 131, .2);
    padding: 0 0 12px;
    background: transparent;
}

#customMentorLibrary {
    display: contents;
}

.route-library-create {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 14px;
    border: 1px dashed rgba(216, 176, 106, .55);
    padding: 12px;
    color: var(--paper);
    text-decoration: none;
}

.route-library-create > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: rgba(216, 176, 106, .12);
    color: var(--gold-bright);
}

.route-library-create b,
.route-library-create small {
    display: block;
}

.route-library-create small,
.route-library-empty {
    color: var(--text-muted);
    font-size: 11px;
}

.route-library-empty {
    margin: 0;
    padding: 10px 4px 16px;
}

.discovery-hero #gameTitle {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.18;
}

.discovery-hero #gameTitle br {
    display: block;
}

.home-hero-description {
    max-width: 760px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.discovery-hero > .home-hero-description {
    color: var(--muted);
    letter-spacing: .02em;
}

/* Brief optimization: make the product experience visible before the catalog. */
html,
.home-chat-style {
    overflow-x: clip;
}

.home-experience-hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - 76px);
    align-content: center;
    justify-items: start;
    overflow: hidden;
    margin: -38px calc(clamp(24px, 2.5vw, 50px) * -1) 68px;
    padding: clamp(72px, 9vw, 132px) clamp(28px, 6vw, 100px);
    background: #090a0e;
    text-align: left;
}

.home-experience-hero__image,
.home-experience-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-experience-hero__image {
    z-index: -3;
    object-fit: cover;
    object-position: center;
    filter: saturate(.84) brightness(.72);
    animation: home-hero-image-in 1.1s var(--ease) both;
}

.home-experience-hero__shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 7, 11, .97) 0%, rgba(5, 7, 11, .91) 30%, rgba(5, 7, 11, .58) 53%, rgba(5, 7, 11, .12) 78%),
        linear-gradient(0deg, rgba(5, 7, 11, .84), transparent 38%, rgba(5, 7, 11, .2));
}

.home-experience-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 185, 131, .54), transparent);
    content: "";
}

.home-experience-hero__content {
    width: min(640px, 60%);
    animation: home-hero-copy-in .82s .08s var(--ease) both;
}

.home-experience-hero__content > p:first-child {
    margin: 0 0 20px;
    color: var(--gold-bright);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
}

.home-experience-hero #gameTitle {
    max-width: 680px;
    margin: 0;
    color: #f7f1e8;
    font-size: clamp(46px, 4.6vw, 72px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.home-experience-hero #gameTitle br {
    display: block;
}

.home-experience-hero .home-hero-description {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(247, 241, 232, .76);
    font-size: 17px;
    line-height: 1.85;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.home-hero-primary,
.home-hero-secondary {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 22px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .22s var(--ease), border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.home-hero-primary {
    border: 1px solid #d8b983;
    background: linear-gradient(135deg, #9a6a36, #c49a5c);
    box-shadow: 0 14px 40px rgba(170, 118, 57, .24);
}

.home-hero-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 18px 46px rgba(170, 118, 57, .34);
}

.home-hero-primary i {
    transition: transform .22s ease;
}

.home-hero-primary:hover i {
    transform: translateX(4px);
}

.home-hero-secondary {
    border: 1px solid rgba(247, 241, 232, .28);
    background: rgba(7, 9, 13, .46);
    backdrop-filter: blur(10px);
}

.home-hero-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 185, 131, .72);
    background: rgba(7, 9, 13, .72);
    color: #fff;
}

.home-hero-primary:focus-visible,
.home-hero-secondary:focus-visible {
    outline: 2px solid #f0d69d;
    outline-offset: 4px;
}

.home-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    color: rgba(247, 241, 232, .72);
    font-size: 14px;
    list-style: none;
}

.home-hero-proof li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-hero-proof i {
    color: var(--gold-bright);
}

.home-hero-scroll {
    position: absolute;
    bottom: 28px;
    left: clamp(28px, 6vw, 100px);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(247, 241, 232, .52);
    font-size: 12px;
    letter-spacing: .12em;
}

.home-hero-scroll i {
    animation: home-hero-arrow 1.8s ease-in-out infinite;
}

@keyframes home-hero-image-in {
    from { opacity: 0; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes home-hero-copy-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes home-hero-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@media (max-width: 991.98px) {
    .home-experience-hero {
        min-height: min(760px, calc(100svh - 76px));
        margin: -34px -24px 58px;
        padding: 76px 52px;
    }

    .home-experience-hero__content {
        width: min(590px, 64%);
    }

    .home-experience-hero #gameTitle {
        font-size: clamp(44px, 7vw, 64px);
    }

    .home-hero-scroll {
        left: 52px;
    }
}

@media (max-width: 767.98px) {
    .home-chat-style .discovery-sidebar {
        width: 100%;
        min-width: 0;
        overflow: hidden;
        padding: 8px 10px;
    }

    .home-chat-style .home-site-navigation {
        display: flex !important;
        width: 100%;
        min-width: 0;
        grid-template-columns: none !important;
        gap: 6px !important;
        overflow-x: auto;
        margin: 0 !important;
        padding: 0 0 3px;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .home-chat-style .home-site-navigation::-webkit-scrollbar {
        display: none;
    }

    .home-chat-style .home-site-navigation a {
        min-height: 48px;
        flex: 0 0 auto;
        justify-content: center;
        border-bottom: 2px solid transparent;
        border-left: 0;
        padding: 8px 13px;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .home-chat-style .home-site-navigation a:hover,
    .home-chat-style .home-site-navigation a.is-active {
        border-bottom-color: var(--gold-bright);
        border-left-color: transparent;
    }

    .home-experience-hero {
        min-height: 660px;
        align-content: end;
        margin: -28px -15px 48px;
        padding: 180px 20px 54px;
    }

    .home-experience-hero__image {
        object-position: 78% center;
    }

    .home-experience-hero__shade {
        background:
            linear-gradient(0deg, rgba(5, 7, 11, .98) 0%, rgba(5, 7, 11, .88) 45%, rgba(5, 7, 11, .18) 82%),
            linear-gradient(90deg, rgba(5, 7, 11, .55), rgba(5, 7, 11, .08));
    }

    .home-experience-hero__content {
        width: 100%;
    }

    .home-experience-hero__content > p:first-child {
        margin-bottom: 13px;
        font-size: 12px;
        letter-spacing: .12em;
    }

    .home-experience-hero #gameTitle {
        max-width: 520px;
        font-size: clamp(38px, 11.5vw, 52px);
        line-height: 1.16;
    }

    .home-experience-hero .home-hero-description {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.72;
    }

    .home-hero-actions {
        margin-top: 24px;
    }

    .home-hero-primary,
    .home-hero-secondary {
        min-height: 50px;
        flex: 1 1 180px;
        padding: 12px 16px;
    }

    .home-hero-proof {
        gap: 8px 16px;
        margin-top: 20px;
        font-size: 13px;
    }

    .home-hero-scroll {
        display: none;
    }
}

@media (max-width: 399.98px) {
    .home-experience-hero {
        margin-right: -12px;
        margin-left: -12px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .home-experience-hero #gameTitle {
        font-size: 38px;
    }

    .home-hero-proof li:last-child {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-experience-hero__image,
    .home-experience-hero__content,
    .home-hero-scroll i {
        animation: none;
    }
}

.home-destiny-figure {
    display: grid;
    place-items: center;
    background: #130d14;
    overflow: hidden;
}

.home-destiny-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.82) brightness(.86);
    transition: transform .35s ease, filter .35s ease;
}

.home-destiny-offering:hover .home-destiny-figure img {
    transform: scale(1.04);
    filter: saturate(1) brightness(1);
}

/* Keep mentor copy attached to the portrait instead of stretching to the row height. */
.discovery-grid {
    align-items: start;
}

.discovery-grid .character-card {
    align-self: start;
    grid-template-rows: auto 124px;
}

.discovery-grid .character-card > span {
    height: 124px;
    min-height: 0;
    justify-content: flex-start;
    padding: 12px 15px 14px;
}

@media (max-width: 767.98px) {
    .discovery-hero #gameTitle { font-size: 34px; }
    .home-hero-description { font-size: 14px; line-height: 1.75; }

    .discovery-grid .character-card {
        grid-template-rows: auto 112px;
    }

    .discovery-grid .character-card > span {
        height: 112px;
        padding: 10px 12px 12px;
    }
}
