/* =============================================================================
   Home journey  (.hj-*)  —  pages/partials/home-journey.blade.php
   -----------------------------------------------------------------------------
   The one dark band on a light homepage, so it reads as a stop, not a strip.
   Brand tokens are the site's own (--bb-*, public/css/bounty-board.css); each
   door adds one accent , violet (learn), the monster's laser cyan (grow),
   coin gold (achieve), mint (get hired) , and the stage takes the accent of
   the door being read.

   Desktop (>= 1200px): a sticky stage (door rail, the gatekeeper in his gate,
   his speech bubble, the wallet chip) beside the scrolling chapters. Below
   that: no stage; every chapter carries its own speech bubble on a timeline.
   Without JS or with reduced motion: every chapter fully visible, no motion.
   Logical properties throughout, so /ar mirrors on its own.
   ========================================================================== */

.hj {
    --hj-learn: #9a9aff;
    --hj-grow: #27f2f8;
    --hj-achieve: #efc15a;
    --hj-hired: #4ade80;
    --hj-accent: var(--hj-learn);
    --hj-current: var(--hj-learn);
    --hj-ink: #0f0f45;
    --hj-text: rgba(255, 255, 255, .92);
    --hj-soft: rgba(255, 255, 255, .7);
    --hj-line: rgba(255, 255, 255, .13);
    --hj-glass: rgba(255, 255, 255, .055);
    --hj-spring: cubic-bezier(.2, .8, .2, 1);
    --hj-progress: 0;

    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-block: 112px 120px;
    color: var(--hj-text);
    background:
        radial-gradient(48% 38% at 86% 4%, rgba(112, 112, 255, .38), transparent 70%),
        radial-gradient(40% 30% at 6% 58%, rgba(39, 242, 248, .10), transparent 70%),
        radial-gradient(50% 30% at 50% 100%, rgba(66, 66, 214, .45), transparent 70%),
        linear-gradient(180deg, #111148 0%, #1c1c6e 46%, #14145a 100%);
}
.hj::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.3px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent 85%);
    mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent 85%);
}

.hj-accent--learn   { --hj-accent: var(--hj-learn); }
.hj-accent--grow    { --hj-accent: var(--hj-grow); }
.hj-accent--achieve { --hj-accent: var(--hj-achieve); }
.hj-accent--hired   { --hj-accent: var(--hj-hired); }
.hj[data-current="learn"]   { --hj-current: var(--hj-learn); }
.hj[data-current="grow"]    { --hj-current: var(--hj-grow); }
.hj[data-current="achieve"] { --hj-current: var(--hj-achieve); }
.hj[data-current="hired"]   { --hj-current: var(--hj-hired); }

/* ── Head ─────────────────────────────────────────────────────────────── */
.hj-head {
    max-inline-size: 860px;
    margin-inline: auto;
    text-align: center;
}
.hj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--hj-line);
    border-radius: 999px;
    background: var(--hj-glass);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}
.hj-eyebrow i { font-size: 17px; color: var(--hj-achieve); }
[dir="rtl"] .hj-eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }

.hj-title {
    margin: 22px 0 0;
    font-size: clamp(34px, 5.4vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.035em;
    color: #fff;
    text-wrap: balance;
}
.hj-title span { display: inline; }
.hj-title__gate {
    background: linear-gradient(92deg, var(--hj-learn) 0%, var(--hj-grow) 55%, var(--hj-achieve) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[dir="rtl"] .hj-title { letter-spacing: 0; line-height: 1.3; }

.hj-sub {
    max-inline-size: 58ch;
    margin: 20px auto 0;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.65;
    color: var(--hj-soft);
}

.hj-ask {
    margin: 40px 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.hj-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hj-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-block-size: 48px;
    padding-inline: 18px 20px;
    border: 1px solid var(--hj-line);
    border-radius: 999px;
    background: var(--hj-glass);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, transform .25s var(--hj-spring), color .2s;
}
.hj-chip i { font-size: 19px; color: var(--hj-accent); }
.hj-chip:hover {
    border-color: var(--hj-accent);
    background: color-mix(in srgb, var(--hj-accent) 16%, transparent);
    color: #fff;
    transform: translateY(-2px);
}
.hj-chip:focus-visible { outline: 3px solid var(--hj-accent); outline-offset: 3px; }

/* ── Body: stage + chapters ───────────────────────────────────────────── */
.hj-body {
    position: relative;
    margin-block-start: 72px;
}
.hj-stage { display: none; }

.hj-chapters {
    position: relative;
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
    padding-inline-start: 34px;
    list-style: none;
}
/* the timeline the doors hang on (below desktop) */
.hj-chapters::before {
    content: "";
    position: absolute;
    inset-block: 8px 8px;
    inset-inline-start: 9px;
    inline-size: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--hj-learn), var(--hj-grow), var(--hj-achieve), var(--hj-hired));
    opacity: .5;
}
.hj-chapter {
    position: relative;
    scroll-margin-block-start: 110px;
    outline: none;
}
.hj-chapter::before {
    content: "";
    position: absolute;
    inset-block-start: 34px;
    inset-inline-start: -32px;
    inline-size: 16px;
    block-size: 16px;
    border-radius: 50%;
    background: var(--hj-accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--hj-accent) 22%, transparent), 0 0 22px var(--hj-accent);
}

.hj-card {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--hj-line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
    box-shadow: 0 30px 70px -48px rgba(0, 0, 0, .8);
    transition: opacity .45s ease, transform .6s var(--hj-spring), border-color .45s, box-shadow .45s;
}
.hj-chapter:focus-visible .hj-card { border-color: var(--hj-accent); }

.hj-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hj-card__num {
    font-size: clamp(48px, 7vw, 84px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px color-mix(in srgb, var(--hj-accent) 70%, transparent);
    font-variant-numeric: tabular-nums;
}
.hj-card__door {
    padding: 6px 12px;
    border: 1px solid var(--hj-line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hj-soft);
}
[dir="rtl"] .hj-card__door { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* The gatekeeper's line, as a chat message (below desktop , on desktop the
   stage says it, and this copy stays for screen readers). */
.hj-say {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 22px 0 0;
}
.hj-say__face {
    flex: none;
    inline-size: 48px;
    block-size: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #2b2b8a, #10104a);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--hj-grow) 55%, transparent), 0 0 18px rgba(39, 242, 248, .35);
    object-fit: cover;
}
.hj-say__bubble {
    position: relative;
    padding: 12px 16px;
    border-radius: 18px;
    border-end-start-radius: 4px;
    background: #fff;
    font-size: 15px;
    line-height: 1.55;
    color: var(--hj-ink);
}
.hj-say__bubble b {
    display: block;
    margin-block-end: 2px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #4242d6;
}
[dir="rtl"] .hj-say__bubble b { letter-spacing: 0; text-transform: none; }

.hj-card__label {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-block-start: 26px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hj-accent);
}
.hj-card__label i { font-size: 20px; }
.hj-card__label em {
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--hj-soft);
}
.hj-card__label em::before { content: "·"; margin-inline-end: 8px; color: var(--hj-line); }
[dir="rtl"] .hj-card__label { letter-spacing: 0; }

.hj-card__title {
    margin: 10px 0 0;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    text-wrap: balance;
}
[dir="rtl"] .hj-card__title { letter-spacing: 0; line-height: 1.4; }

.hj-steps {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: hj-step;
}
.hj-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--hj-text);
    counter-increment: hj-step;
}
.hj-steps li::before {
    content: counter(hj-step);
    flex: none;
    display: grid;
    place-items: center;
    inline-size: 30px;
    block-size: 30px;
    margin-block-start: -2px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hj-accent) 18%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hj-accent) 45%, transparent);
    font-size: 14px;
    font-weight: 800;
    color: var(--hj-accent);
}

.hj-coin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    padding: 7px 14px 7px 8px;
    border: 1px solid rgba(239, 193, 90, .38);
    border-radius: 999px;
    background: rgba(239, 193, 90, .12);
    font-size: 14px;
    font-weight: 700;
    color: #f6d58a;
}
[dir="rtl"] .hj-coin { padding: 7px 8px 7px 14px; }
.hj-coin img { inline-size: 22px; block-size: 22px; }

.hj-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
    margin-block-start: 26px;
    padding-block-start: 22px;
    border-block-start: 1px dashed var(--hj-line);
}
.hj-proof {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    min-inline-size: 0;
}
.hj-proof strong {
    font-size: 40px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--hj-accent);
    font-variant-numeric: tabular-nums;
}
.hj-proof span { font-size: 15px; font-weight: 600; color: var(--hj-soft); }
.hj-proof__soon { display: inline-flex; align-items: center; gap: 8px; }
.hj-proof__soon i { font-size: 18px; color: var(--hj-accent); }

.hj-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}
.hj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-block-size: 50px;
    padding-inline: 24px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7);
    font-size: 15px;
    font-weight: 700;
    color: #1c1c6e;
    text-decoration: none;
    transition: background-color .2s, color .2s, transform .25s var(--hj-spring);
}
.hj-btn i { font-size: 17px; }
.hj-btn:hover { background: var(--hj-accent); color: var(--hj-ink); transform: translateY(-2px); }
.hj-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hj-link {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--hj-accent) 60%, transparent);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
.hj-link:hover { color: var(--hj-accent); }
.hj-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ── The loop ─────────────────────────────────────────────────────────── */
.hj-loop {
    display: grid;
    justify-items: center;
    gap: 36px;
    margin-block-start: 96px;
    padding: 40px 24px;
    border: 1px solid var(--hj-line);
    border-radius: 32px;
    background:
        radial-gradient(60% 80% at 20% 50%, rgba(39, 242, 248, .10), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    text-align: center;
}
.hj-loop__ring {
    --hj-ring: 230px;
    position: relative;
    inline-size: var(--hj-ring);
    block-size: var(--hj-ring);
    flex: none;
}
.hj-loop__track {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255, 255, 255, .22);
    border-radius: 50%;
}
.hj-loop__node {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    display: grid;
    place-items: center;
    inline-size: 52px;
    block-size: 52px;
    margin: -26px;
    border-radius: 50%;
    background: #16165c;
    box-shadow: inset 0 0 0 2px var(--hj-accent), 0 0 24px color-mix(in srgb, var(--hj-accent) 45%, transparent);
    font-size: 22px;
    color: var(--hj-accent);
    transform: rotate(var(--hj-angle)) translateY(calc(var(--hj-ring) / -2)) rotate(calc(var(--hj-angle) * -1));
}
.hj-loop__face {
    position: absolute;
    inset: 50% auto auto 50%;
    inline-size: 116px;
    block-size: 116px;
    margin: -58px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #2b2b8a, #10104a);
    box-shadow: 0 0 0 3px rgba(39, 242, 248, .45), 0 0 50px rgba(39, 242, 248, .35);
}
[dir="rtl"] .hj-loop__face { inset: 50% 50% auto auto; }
.hj-loop__say {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--hj-grow);
}
.hj-loop__title {
    margin: 8px 0 0;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
}
[dir="rtl"] .hj-loop__title { letter-spacing: 0; line-height: 1.35; }
.hj-loop__body {
    max-inline-size: 52ch;
    margin: 14px auto 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--hj-soft);
}
.hj-loop .hj-actions { justify-content: center; margin-block-start: 26px; }
.hj-loop .hj-btn:hover { background: var(--hj-achieve); }
.hj-loop .hj-link { text-decoration-color: rgba(39, 242, 248, .6); }

/* ── Tablet ───────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .hj-card { padding: 36px 40px; }
    .hj-steps li { font-size: 17px; }
    .hj-loop {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 56px;
        padding: 56px;
        text-align: start;
    }
    .hj-loop__body { margin-inline: 0; }
    .hj-loop .hj-actions { justify-content: flex-start; }
    .hj-loop__ring { --hj-ring: 260px; }
}

/* ── Desktop: the stage ───────────────────────────────────────────────── */
@media (min-width: 1200px) {
    .hj-body {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 64px;
        align-items: start;
    }

    .hj-stage {
        position: sticky;
        inset-block-start: 120px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 20px;
        block-size: min(680px, calc(100vh - 130px));
    }

    /* The door rail: one gate per chapter, filled to the one being read. */
    .hj-rail {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 34px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .hj-rail::before,
    .hj-rail::after {
        content: "";
        position: absolute;
        inset-block: 12% 12%;
        inset-inline-start: 23px;
        inline-size: 2px;
        border-radius: 2px;
        background: var(--hj-line);
    }
    .hj-rail::after {
        background: linear-gradient(180deg, var(--hj-learn), var(--hj-current));
        transform-origin: top;
        transform: scaleY(var(--hj-progress));
        transition: transform .6s var(--hj-spring);
    }
    .hj-rail__gate { position: relative; z-index: 1; }
    .hj-rail__gate a {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--hj-soft);
        text-decoration: none;
    }
    .hj-rail__dot {
        display: grid;
        place-items: center;
        inline-size: 48px;
        block-size: 48px;
        border-radius: 50%;
        background: #17175e;
        box-shadow: inset 0 0 0 1.5px var(--hj-line);
        font-size: 20px;
        color: var(--hj-soft);
        transition: background-color .35s, box-shadow .35s, color .35s, transform .45s var(--hj-spring);
    }
    .hj-rail__label {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        transition: color .35s;
    }
    [dir="rtl"] .hj-rail__label { letter-spacing: 0; text-transform: none; font-size: 14px; }
    .hj-rail__gate a:hover .hj-rail__dot { box-shadow: inset 0 0 0 1.5px var(--hj-accent); color: var(--hj-accent); }
    .hj-rail__gate.is-passed .hj-rail__dot { box-shadow: inset 0 0 0 1.5px var(--hj-accent); color: var(--hj-accent); }
    .hj-rail__gate.is-active .hj-rail__dot {
        background: var(--hj-accent);
        box-shadow: 0 0 0 6px color-mix(in srgb, var(--hj-accent) 22%, transparent), 0 0 30px var(--hj-accent);
        color: var(--hj-ink);
        transform: scale(1.08);
    }
    .hj-rail__gate.is-active .hj-rail__label { color: #fff; }

    /* The scene: the gatekeeper standing in his gate. */
    .hj-scene {
        position: relative;
        display: grid;
        place-items: end center;
        min-block-size: 0;
    }
    .hj-gate {
        position: absolute;
        inset-block-end: 22px;
        inset-inline-start: 50%;
        inline-size: min(360px, 86%);
        block-size: 78%;
        translate: -50% 0;
        border-radius: 999px 999px 28px 28px;
        background:
            radial-gradient(70% 55% at 50% 38%, color-mix(in srgb, var(--hj-current) 42%, transparent), transparent 72%),
            linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
        box-shadow:
            inset 0 0 0 2px color-mix(in srgb, var(--hj-current) 55%, transparent),
            0 0 60px -10px color-mix(in srgb, var(--hj-current) 55%, transparent);
        transition: background .7s ease, box-shadow .7s ease;
    }
    [dir="rtl"] .hj-gate { translate: 50% 0; }
    .hj-gate::before {
        content: "";
        position: absolute;
        inset: 14px;
        border-radius: inherit;
        border: 1.5px dashed color-mix(in srgb, var(--hj-current) 38%, transparent);
    }
    .hj-gate__glow {
        position: absolute;
        inset-inline: -10%;
        inset-block-end: -30px;
        block-size: 60px;
        border-radius: 50%;
        background: radial-gradient(closest-side, color-mix(in srgb, var(--hj-current) 55%, transparent), transparent);
        filter: blur(6px);
        transition: background .7s ease;
    }
    .hj-mascot {
        position: relative;
        z-index: 1;
        block-size: 86%;
        inline-size: auto;
        max-inline-size: 100%;
        object-fit: contain;
        filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .45));
        transform-origin: 50% 100%;
        scale: -1 1;

    }
    [dir="rtl"] .hj-mascot {
        scale: -1 1;
    }

    .hj-bubble {
        position: absolute;
        z-index: 3;
        inset-block-start: 0;
        inset-inline-start: 0;
        inline-size: min(330px, 92%);
        padding: 16px 18px 18px;
        border-radius: 22px;
        border-end-start-radius: 6px;
        background: #fff;
        box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .7);
        color: var(--hj-ink);
    }
    .hj-bubble::after {
        content: "";
        position: absolute;
        inset-block-end: -10px;
        inset-inline-start: 34px;
        inline-size: 20px;
        block-size: 20px;
        background: #fff;
        clip-path: polygon(0 0, 100% 0, 0 100%);
    }
    [dir="rtl"] .hj-bubble::after { clip-path: polygon(0 0, 100% 0, 100% 100%); }
    .hj-bubble__who {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
        color: #4242d6;
    }
    .hj-bubble__who::before {
        content: "";
        inline-size: 8px;
        block-size: 8px;
        border-radius: 50%;
        background: #22c55e;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, .22);
    }
    [dir="rtl"] .hj-bubble__who { letter-spacing: 0; text-transform: none; font-size: 13px; }
    .hj-bubble__text {
        min-block-size: 4.65em;
        margin: 8px 0 0;
        font-size: 17px;
        line-height: 1.55;
        font-weight: 600;
    }
    .hj-bubble__text.is-typing::after {
        content: "";
        display: inline-block;
        inline-size: 2px;
        block-size: 1.05em;
        margin-inline-start: 2px;
        vertical-align: -.15em;
        background: #4242d6;
        animation: hj-caret .8s steps(1) infinite;
    }

    .hj-wallet {
        position: absolute;
        z-index: 3;
        inset-block-end: 16%;
        inset-inline-end: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        max-inline-size: 230px;
        padding: 10px 16px 10px 10px;
        border: 1px solid rgba(239, 193, 90, .5);
        border-radius: 18px;
        background: rgba(20, 20, 80, .82);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8), 0 0 30px -12px rgba(239, 193, 90, .6);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
        color: #f6d58a;
    }
    [dir="rtl"] .hj-wallet { padding: 10px 10px 10px 16px; }
    .hj-wallet img { flex: none; inline-size: 34px; block-size: 34px; }
    .hj-wallet__copy { display: grid; gap: 6px; }
    .hj-wallet__copy b { font-size: 13px; font-weight: 800; }
    .hj-wallet__coins { display: flex; gap: 6px; }
    .hj-wallet__coins i {
        inline-size: 14px;
        block-size: 14px;
        border-radius: 50%;
        box-shadow: inset 0 0 0 1.5px rgba(239, 193, 90, .45);
        transition: background-color .35s, box-shadow .35s, scale .45s var(--hj-spring);
    }
    .hj-wallet__coins i.is-filled {
        background: radial-gradient(circle at 35% 30%, #fbe3a1, #efc15a 55%, #b77c1e);
        box-shadow: 0 0 10px rgba(239, 193, 90, .7);
        scale: 1.1;
    }

    /* Chapters: tall enough that each one gets the stage to itself. */
    .hj-chapters { gap: 0; padding-inline-start: 0; }
    .hj-chapters::before,
    .hj-chapter::before { display: none; }
    .hj-chapter {
        display: flex;
        align-items: center;
        min-block-size: 78vh;
        padding-block: 24px;
    }
    .hj-card { inline-size: 100%; }
    .hj-card__num { font-size: 96px; }

    /* The stage speaks the line; the chapter keeps it for screen readers. */
    .hj.is-enhanced .hj-say {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .hj.is-enhanced .hj-chapter:not(.is-active) .hj-card {
        opacity: .32;
        transform: scale(.97);
    }
    .hj.is-enhanced .hj-chapter.is-active .hj-card {
        border-color: color-mix(in srgb, var(--hj-accent) 45%, transparent);
        box-shadow: 0 40px 90px -50px color-mix(in srgb, var(--hj-accent) 70%, transparent);
    }

    .hj.is-live .hj-mascot { animation: hj-breathe 6s ease-in-out infinite; }
    [dir="rtl"] .hj.is-live .hj-mascot { animation-name: hj-breathe-rtl; }
    .hj.is-live .hj-wallet { animation: hj-bob 5s ease-in-out infinite; }
    .hj-wallet.is-pop { animation: hj-pop .55s var(--hj-spring), hj-bob 5s ease-in-out .55s infinite !important; }
}

.hj.is-live .hj-loop__track { animation: hj-spin 48s linear infinite; }

@keyframes hj-caret { 50% { opacity: 0; } }
@keyframes hj-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes hj-pop { 0% { scale: .86; } 60% { scale: 1.06; } 100% { scale: 1; } }
@keyframes hj-spin { to { rotate: 360deg; } }
@keyframes hj-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012) translateY(-4px); } }
@keyframes hj-breathe-rtl { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1.012) scaleY(1.012) translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
    .hj *,
    .hj *::before,
    .hj *::after {
        animation: none !important;
        transition: none !important;
    }
    .hj.is-enhanced .hj-chapter:not(.is-active) .hj-card { opacity: 1; transform: none; }
}
