/* Faqeeh i — free interactive journeys (uses landing.css tokens) */
.jr-body { background: var(--teal-25); }
.jr-body .ph-duotone, .jr-body .ph-fill, .jr-body .ph-bold { direction: ltr; }
.jr-app[dir="ltr"] .ph-arrow-left, .jr-app[dir="ltr"] .ph-arrow-right { transform: scaleX(-1); }
.jr-noscroll { overflow: hidden; }
/* inside a journey the journey bar is the sticky nav, not the site header */
.jr-body .nav { position: relative; }
.jr-app { padding-bottom: 72px; min-height: 60vh; }
.jr-app [hidden], .jr-lightbox[hidden], .jr-bar[hidden] { display: none !important; }

.jr-preview {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--gold-50); color: #7a5500; font-weight: 700; font-size: .92rem; padding: 10px 16px;
    border-bottom: 1px solid #f1dfae;
}

/* ---------- sticky bar ---------- */
.jr-bar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.jr-bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.jr-bar-title { font-weight: 800; color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28ch; }
.jr-tabs { display: flex; gap: 4px; margin-inline: auto; }
.jr-tabs a {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
    color: var(--muted); font-weight: 700; font-size: .92rem; transition: background .2s, color .2s;
}
.jr-tabs a i { font-size: 1.15rem; }
.jr-tabs a:hover { background: var(--teal-50); color: var(--deep); }
.jr-tabs a.active { background: var(--deep); color: #fff; }
.jr-bar-progress { display: flex; align-items: center; gap: 10px; }
.jr-gems { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-600); font-weight: 800; }
.jr-gems i { font-size: 1.1rem; }
.jr-meter { width: 110px; height: 8px; border-radius: 99px; background: var(--teal-50); overflow: hidden; }
.jr-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .6s ease; }
.jr-pct { font-size: .9rem; color: var(--deep); min-width: 3ch; }

/* ---------- intro ---------- */
.jr-intro {
    position: relative; overflow: hidden;
    background:
        repeating-linear-gradient(135deg, rgba(0,136,151,.045) 0 2px, transparent 2px 16px),
        linear-gradient(180deg, #fff 0%, var(--teal-25) 100%);
    padding-block: 40px 8px;
}
.jr-intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.jr-intro .crumbs { color: var(--muted); }
.jr-intro .crumbs a:hover { color: var(--teal-700); }
.jr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.jr-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px;
    background: var(--teal-50); color: var(--teal-700); font-weight: 700; font-size: .85rem;
}
.jr-chip.gold { background: var(--gold-50); color: #8a6420; }
.jr-intro h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.3; font-weight: 800; color: var(--deep); text-wrap: balance; }
.jr-sub { margin-top: 10px; font-size: 1.2rem; font-weight: 700; color: var(--teal-700); }
.jr-desc { margin-top: 12px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.jr-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.jr-facts li {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px;
    background: #fff; border: 1px solid var(--line); font-size: .92rem; color: var(--muted);
}
.jr-facts i { color: var(--teal); font-size: 1.2rem; }
.jr-facts b { color: var(--deep); font-size: 1.05rem; }
.jr-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 28px; }
.jr-share { display: inline-flex; align-items: center; gap: 8px; }
.jr-share-label { font-size: .88rem; color: var(--muted); font-weight: 700; }
.jr-share-btn {
    width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center;
    background: #fff; border: 1px solid var(--line); color: var(--deep); font-size: 1.25rem;
    transition: transform .2s, background .2s, color .2s;
}
.jr-share-btn:hover { transform: translateY(-2px); background: var(--teal); color: #fff; border-color: var(--teal); }
.jr-share-btn.wa:hover { background: #1fa855; border-color: #1fa855; }
.jr-intro-art .lp-art { width: 100%; height: auto; max-width: 520px; margin-inline: auto; display: block; }
.jr-cover { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--teal-50); }
.jr-cover img { width: 100%; height: 100%; object-fit: cover; }

.jr-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; counter-reset: how; }
.jr-how li {
    position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 18px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.jr-how li::after {
    counter-increment: how; content: counter(how);
    position: absolute; inset-inline-end: 14px; top: 10px; font-weight: 800; font-size: 1.6rem; color: var(--teal-50);
}
.jr-how .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); font-size: 1.5rem; }
.jr-how li:nth-child(even) .ic { background: var(--gold-50); color: var(--gold-600); }
.jr-how b { color: var(--deep); font-size: 1.02rem; }
.jr-how p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-top: 2px; }

.jr-outline { margin-top: 34px; padding: 22px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.jr-outline h2 { font-size: 1.15rem; color: var(--deep); margin-bottom: 12px; }
.jr-outline ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.jr-outline li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink); font-weight: 600; }
.jr-outline .n { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--deep); color: #fff; font-size: .85rem; }
.jr-outline li i { color: var(--gold-600); font-size: 1.2rem; }

/* ---------- map ---------- */
.jr-map-head, .jr-me-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-block: 36px 18px; flex-wrap: wrap; }
.jr-map-head h2, .jr-me-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--deep); font-weight: 800; }
.jr-map-head p { color: var(--muted); margin-top: 4px; }
.jr-me-head { display: block; }
.jr-map-stat { text-align: center; padding: 12px 20px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.jr-map-stat b { display: block; font-size: 1.5rem; color: var(--deep); }
.jr-map-stat span { font-size: .85rem; color: var(--muted); }

.jr-road {
    position: relative; padding: 30px 4% 40px; border-radius: 28px;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.9), transparent 70%),
        repeating-linear-gradient(135deg, rgba(0,136,151,.05) 0 2px, transparent 2px 18px),
        linear-gradient(180deg, #eef7f8, #e3f1f2);
    border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 34px;
}
.jr-road-svg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.jr-road-svg path { fill: none; stroke-linecap: round; }
.jr-road-svg .bed { stroke: #fff; stroke-width: 22; }
.jr-road-svg .lane { stroke: #b9d6da; stroke-width: 3; stroke-dasharray: 2 12; }
.jr-road-svg .gold { stroke: var(--gold); stroke-width: 6; }

/* stops zig-zag along a wave */
.jr-stop {
    --off: 0%;
    position: relative; z-index: 1; display: flex; align-items: center; gap: 16px;
    width: min(460px, 78%); margin-inline-start: var(--off);
}
.jr-stop:nth-child(4n + 2) { --off: 4%; }
.jr-stop:nth-child(4n + 3) { --off: 26%; }
.jr-stop:nth-child(4n + 4) { --off: 48%; }
.jr-stop:nth-child(4n + 5) { --off: 26%; }
.jr-stop-dot {
    flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
    font-size: 2rem; background: #fff; color: #8fb3b8; border: 3px solid #cfe2e5;
    box-shadow: 0 10px 22px -12px rgba(7, 60, 70, .45);
    transition: transform .25s ease;
}
.jr-stop-card {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
    padding: 12px 16px; background: #fff; border-radius: 16px; border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(7,60,70,.05);
}
.jr-stop-card small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.jr-stop-card b { color: var(--deep); font-size: 1.05rem; line-height: 1.5; }
.jr-stop-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.jr-state { font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 99px; background: var(--teal-25); color: var(--muted); }
.jr-state.done { background: var(--gold-50); color: #8a6420; }
.jr-state.open { background: var(--teal); color: #fff; }
.jr-kinds { display: inline-flex; gap: 6px; color: var(--teal-700); font-size: 1rem; opacity: .75; }
.jr-stop.done .jr-stop-dot { background: linear-gradient(180deg, #f4c85a, #d9960f); color: #fff; border-color: #fff4d6; font-size: 1.9rem; }
.jr-stop.open .jr-stop-dot { background: linear-gradient(135deg, #0a8f9c, #073c46); color: #f4c85a; border-color: #fff; }
.jr-stop.current .jr-stop-dot { animation: jr-pulse 1.8s ease-out infinite; }
.jr-stop.locked { opacity: .72; }
.jr-stop.locked .jr-stop-card { background: rgba(255,255,255,.7); }
a.jr-stop:hover .jr-stop-dot { transform: scale(1.07); }
a.jr-stop:hover .jr-stop-card { border-color: var(--teal); }
.jr-stop.finish .jr-stop-dot { border-radius: 24px; }
.jr-stop.finish.done .jr-stop-dot { background: linear-gradient(135deg, #0a8f9c, #073c46); color: #f4c85a; }
@keyframes jr-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 136, 151, .45), 0 10px 22px -12px rgba(7,60,70,.45); }
    70% { box-shadow: 0 0 0 18px rgba(0, 136, 151, 0), 0 10px 22px -12px rgba(7,60,70,.45); }
    100% { box-shadow: 0 0 0 0 rgba(0, 136, 151, 0), 0 10px 22px -12px rgba(7,60,70,.45); }
}

/* ---------- stage ---------- */
.jr-stage-head { display: flex; align-items: center; gap: 18px; padding-block: 28px 18px; flex-wrap: wrap; }
.jr-back {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px;
    background: #fff; border: 1px solid var(--line); color: var(--deep); font-weight: 700; font-size: .9rem;
}
.jr-back:hover { border-color: var(--teal); }
.jr-stage-title { display: flex; align-items: center; gap: 14px; }
.jr-stage-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: linear-gradient(135deg, #0a8f9c, #073c46); color: #f4c85a; }
.jr-stage-title small { color: var(--muted); font-weight: 700; }
.jr-stage-title h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--deep); font-weight: 800; line-height: 1.4; }

.jr-steps {
    display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin-bottom: 16px;
    background: #fff; border-radius: 16px; border: 1px solid var(--line);
    scrollbar-width: thin;
}
.jr-steps li { flex: 1 0 auto; }
.jr-steps button {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px;
    border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 700; font-size: .88rem; white-space: nowrap;
    transition: background .2s, color .2s;
}
.jr-steps .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-25); font-size: 1rem; }
.jr-steps li.ok button { color: var(--teal-700); }
.jr-steps li.ok .ic { background: var(--gold-50); color: var(--gold-600); }
.jr-steps li.active button { background: var(--deep); color: #fff; }
.jr-steps li.active .ic { background: rgba(255,255,255,.15); color: #f4c85a; }
.jr-steps li.locked button { opacity: .45; cursor: not-allowed; }
.jr-steps button:not(:disabled):hover { background: var(--teal-50); }
.jr-steps li.active button:hover { background: var(--deep); }

.jr-panel {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 32px);
    box-shadow: var(--shadow); min-height: 280px;
}
.jr-step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.jr-step-nav .btn:disabled { background: var(--teal-50); color: var(--muted); cursor: not-allowed; }
.jr-nav-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; font-weight: 600; text-align: center; }

.jr-intro-step { display: flex; gap: 18px; align-items: flex-start; max-width: 70ch; margin-inline: auto; padding-block: 18px; }
.jr-intro-step > i { flex: none; font-size: 2.4rem; color: var(--gold-600); }
.jr-intro-step p { font-size: 1.15rem; line-height: 2; white-space: pre-line; }

.jr-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b2b31; }
.jr-video iframe, .jr-video > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jr-video-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.jr-video-status > span { display: inline-flex; align-items: center; gap: 6px; }
.jr-video-status .ok { color: #13795b; }

.jr-info { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--teal-25); border-radius: 18px; overflow: hidden; cursor: zoom-in; }
.jr-info img { width: 100%; max-height: 72vh; object-fit: contain; margin-inline: auto; }
.jr-zoom {
    position: absolute; inset-inline-end: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 10px; background: rgba(7,60,70,.82); color: #fff; font-weight: 700; font-size: .85rem;
}
.jr-lightbox { position: fixed; inset: 0; z-index: 2100; background: rgba(4, 30, 35, .92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.jr-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.jr-lightbox-close { position: absolute; top: 16px; inset-inline-end: 16px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: #fff; color: var(--deep); font-size: 1.4rem; display: grid; place-items: center; }

/* activities */
.jr-act-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.jr-act-ic { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.6rem; background: var(--gold-50); color: var(--gold-600); }
.jr-act-head small { color: var(--teal-700); font-weight: 800; font-size: .8rem; }
.jr-act-head h3 { font-size: 1.3rem; color: var(--deep); font-weight: 800; line-height: 1.5; }
.jr-act-head p { color: var(--muted); margin-top: 2px; }
.jr-help { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.jr-row-end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.jr-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--teal-700); font-weight: 700; padding: 6px 8px; border-radius: 8px; }
.jr-link:hover { background: var(--teal-50); }
.jr-done-note {
    display: flex; align-items: center; gap: 8px; margin: 14px 0; padding: 12px 16px; border-radius: 14px;
    background: #e9f7f1; color: #13795b; font-weight: 700;
}
.jr-done-note i { font-size: 1.4rem; }
.jr-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; font-weight: 700; }
.jr-feedback:empty { display: none; }
.jr-feedback p { flex-basis: 100%; font-weight: 500; color: var(--ink); }
.jr-feedback.ok { background: #e9f7f1; color: #13795b; }
.jr-feedback.no { background: #fdf0ee; color: #b03a2e; }

/* quiz */
.jr-quiz-top { display: flex; align-items: center; gap: 14px; color: var(--muted); font-weight: 700; font-size: .88rem; }
.jr-quiz-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--teal-50); overflow: hidden; }
.jr-quiz-bar span { display: block; height: 100%; background: var(--teal); border-radius: inherit; transition: width .4s; }
.jr-q { font-size: 1.25rem; font-weight: 800; color: var(--deep); margin: 16px 0 14px; line-height: 1.7; }
.jr-options { display: grid; gap: 10px; }
.jr-option {
    display: flex; align-items: center; gap: 12px; text-align: start; padding: 14px 16px; border-radius: 14px;
    border: 2px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 1.02rem;
    transition: border-color .2s, background .2s, transform .15s;
}
.jr-option .l { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-25); color: var(--teal-700); font-weight: 800; font-size: .9rem; }
.jr-option:not(:disabled):hover { border-color: var(--teal); background: var(--teal-25); }
.jr-option:not(:disabled):active { transform: scale(.99); }
.jr-option:disabled { cursor: default; }
.jr-option.right { border-color: #1f9d74; background: #e9f7f1; }
.jr-option.right .l { background: #1f9d74; color: #fff; }
.jr-option.wrong { border-color: #d9534f; background: #fdf0ee; }
.jr-option.wrong .l { background: #d9534f; color: #fff; }
.jr-result { text-align: center; padding: 16px 0; }
.jr-result h4 { font-size: 1.3rem; color: var(--deep); margin-top: 14px; }
.jr-result p { color: var(--muted); margin: 4px 0 14px; }
.jr-ring {
    --p: 0; width: 130px; height: 130px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--c, var(--teal)) calc(var(--p) * 1%), var(--teal-50) 0);
}
.jr-result.ok .jr-ring { --c: var(--gold); }
.jr-result.no .jr-ring { --c: #d9534f; }
.jr-ring b { width: 102px; height: 102px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.7rem; color: var(--deep); }

/* memory */
.jr-game-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 14px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.jr-game-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.jr-game-stats .jr-link { margin-inline-start: auto; }
.jr-memory { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 12px; perspective: 1000px; }
.jr-card { aspect-ratio: 4 / 3; border: 0; padding: 0; background: none; perspective: 900px; }
.jr-card-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.3,1.2); }
.jr-card.flip .jr-card-inner, .jr-card.matched .jr-card-inner { transform: rotateY(180deg); }
.jr-card-back, .jr-card-front {
    position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    padding: 10px; text-align: center; font-weight: 800; line-height: 1.5;
}
.jr-card-back {
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 12px),
        linear-gradient(135deg, #0a8f9c, #073c46);
    box-shadow: inset 0 0 0 3px rgba(244, 200, 90, .5);
}
.jr-card-back i { font-size: 2.2rem; color: #f4c85a; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.jr-card-front { transform: rotateY(180deg); background: #fff; border: 2px solid var(--line); color: var(--deep); font-size: 1.05rem; }
.jr-card-front.b { background: var(--gold-50); border-color: #f1dfae; color: #6f4f12; }
.jr-card.matched .jr-card-front { border-color: #1f9d74; box-shadow: 0 0 0 3px rgba(31,157,116,.18); }
.jr-card:not(.flip):not(.matched):hover .jr-card-inner { transform: translateY(-3px); }

/* match */
.jr-match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
.jr-col { display: grid; gap: 10px; }
.jr-match-mid { align-self: center; color: var(--line); font-size: 1.6rem; }
.jr-tile {
    padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink);
    font-weight: 700; text-align: center; line-height: 1.5; transition: border-color .2s, background .2s, transform .15s;
}
.jr-tile:not(:disabled):hover { border-color: var(--teal); }
.jr-tile.picked { border-color: var(--teal); background: var(--teal-50); transform: scale(1.02); }
.jr-tile.ok { cursor: default; color: var(--deep); }
.jr-tile.c1 { border-color: #1f9d74; background: #e9f7f1; }
.jr-tile.c2 { border-color: #e0a21b; background: #fdf5e1; }
.jr-tile.c3 { border-color: #008897; background: #e8f4f5; }
.jr-tile.c4 { border-color: #7a5cc2; background: #f1edfa; }
.jr-tile.c5 { border-color: #d0608a; background: #fcedf3; }
.jr-tile.c6 { border-color: #3b7dd8; background: #ecf3fd; }
.jr-tile.c7 { border-color: #8a6420; background: #f6efe2; }
.jr-tile.c8 { border-color: #4f8a3a; background: #eef6ea; }
.jr-tile.shake { animation: jr-shake .45s; border-color: #d9534f; }
@keyframes jr-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* order */
.jr-order { display: grid; gap: 8px; counter-reset: ord; }
.jr-order li {
    counter-increment: ord; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
    background: #fff; border: 2px solid var(--line); font-weight: 700; color: var(--ink);
}
.jr-order li::before { content: counter(ord); flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-25); color: var(--teal-700); font-size: .9rem; }
.jr-order .grip { color: #9fb6ba; cursor: grab; font-size: 1.2rem; }
.jr-order .tx { flex: 1; cursor: grab; line-height: 1.6; }
.jr-order .arrows { display: inline-flex; gap: 4px; }
.jr-order .arrows button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--deep); display: grid; place-items: center; }
.jr-order .arrows button:hover { background: var(--teal-50); }
.jr-order li.ok { border-color: #1f9d74; background: #e9f7f1; }
.jr-order li.ok::before { background: #1f9d74; color: #fff; }
.jr-order li.no { border-color: #e7a09d; background: #fdf6f5; }
.jr-order li.sortable-ghost { opacity: .4; }
.jr-order li.sortable-chosen { box-shadow: var(--shadow); }

/* tasks */
.jr-tasks-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.jr-tasks-count { padding: 4px 12px; border-radius: 99px; background: var(--gold-50); color: #8a6420; font-weight: 800; font-size: .88rem; }
.jr-tasks { display: grid; gap: 10px; }
.jr-tasks input { position: absolute; opacity: 0; pointer-events: none; }
.jr-tasks label {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer;
    border: 2px solid var(--line); background: #fff; transition: border-color .2s, background .2s;
}
.jr-tasks .box { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2px solid #b9d6da; display: grid; place-items: center; color: transparent; transition: all .2s; }
.jr-tasks .n { flex: none; font-weight: 800; color: var(--gold-600); min-width: 1.4em; }
.jr-tasks .tx { display: flex; flex-direction: column; }
.jr-tasks .tx b { color: var(--deep); }
.jr-tasks .tx small { color: var(--muted); font-size: .88rem; }
.jr-tasks input:checked + label { border-color: #1f9d74; background: #e9f7f1; }
.jr-tasks input:checked + label .box { background: #1f9d74; border-color: #1f9d74; color: #fff; }
.jr-tasks input:checked + label .tx b { text-decoration: line-through; text-decoration-color: rgba(19,121,91,.5); }
.jr-tasks input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

/* stage complete */
.jr-win { position: relative; text-align: center; padding: 26px 0 10px; }
.jr-win-gem {
    width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 32px; display: grid; place-items: center;
    background: linear-gradient(135deg, #0a8f9c, #073c46); color: #f4c85a; font-size: 3.4rem;
    box-shadow: 0 18px 40px -18px rgba(7,60,70,.7); animation: jr-pop .6s cubic-bezier(.2,.8,.3,1.4);
}
.jr-win h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--deep); font-weight: 800; text-wrap: balance; }
.jr-win p { color: var(--muted); margin-top: 6px; font-size: 1.05rem; }
.jr-win-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@keyframes jr-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.jr-confetti { position: absolute; inset: -40px 0 0; pointer-events: none; overflow: hidden; }
.jr-confetti i {
    position: absolute; top: -12px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; background: var(--c);
    transform: rotate(var(--r)); animation: jr-fall 2.4s var(--d) ease-in forwards; opacity: 0;
}
@keyframes jr-fall { 0% { opacity: 1; transform: translateY(0) rotate(var(--r)); } 100% { opacity: 0; transform: translateY(420px) rotate(calc(var(--r) + 540deg)); } }

/* ---------- achievements ---------- */
.jr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.jr-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.jr-stat i { font-size: 1.9rem; color: var(--gold-600); }
.jr-stat b { font-size: 1.5rem; color: var(--deep); }
.jr-stat span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.jr-sub-title { font-size: 1.25rem; color: var(--deep); font-weight: 800; margin: 34px 0 14px; }
.jr-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.jr-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 12px; background: #fff; border-radius: var(--radius); border: 1px dashed #c7dcdf; }
.jr-badge .ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: var(--teal-25); color: #9fb6ba; margin-bottom: 6px; }
.jr-badge b { color: var(--deep); }
.jr-badge small { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.jr-badge .st { margin-top: 6px; font-size: .75rem; font-weight: 800; color: var(--muted); }
.jr-badge.on { border-style: solid; border-color: #f1dfae; background: linear-gradient(180deg, #fffdf6, #fff); }
.jr-badge.on .ic { background: linear-gradient(180deg, #f4c85a, #d9960f); color: #fff; box-shadow: 0 8px 18px -10px rgba(217,150,15,.8); }
.jr-badge.on .st { color: #13795b; }

.jr-cert-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.jr-cert-tools input { flex: 1 1 260px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--line); font: inherit; font-weight: 700; background: #fff; }
.jr-cert-tools input:focus { outline: none; border-color: var(--teal); }
.jr-cert-tools .btn:disabled { background: var(--teal-50); color: var(--muted); cursor: not-allowed; }
.jr-cert {
    position: relative; padding: 14px; border-radius: 22px;
    background: linear-gradient(135deg, #0a8f9c, #073c46);
    box-shadow: var(--shadow);
}
.jr-cert-frame {
    position: relative; text-align: center; padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 56px);
    border-radius: 14px; background:
        radial-gradient(circle at 0 0, rgba(224,162,27,.14) 0 90px, transparent 91px),
        radial-gradient(circle at 100% 100%, rgba(0,136,151,.1) 0 110px, transparent 111px),
        #fffdf7;
    outline: 2px solid #e7d7ad; outline-offset: -12px;
}
.jr-cert-logo { width: 88px; height: 88px; margin: 0 auto 6px; }
.jr-cert-kicker { color: var(--gold-600); font-weight: 800; letter-spacing: .04em; }
.jr-cert h3 { font-family: 'Amiri', 'Cairo', serif; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--deep); margin: 4px 0 10px; }
.jr-cert p { color: var(--muted); font-size: 1.05rem; }
.jr-cert p b { color: var(--deep); }
.jr-cert-name { font-family: 'Amiri', 'Cairo', serif; font-size: clamp(1.8rem, 4.2vw, 2.8rem); color: var(--teal-700); margin: 6px auto 8px; padding-bottom: 6px; border-bottom: 2px dashed #e7d7ad; max-width: 520px; line-height: 1.5; }
.jr-cert-rank { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 16px; border-radius: 99px; background: var(--gold-50); color: #8a6420; font-weight: 800; }
.jr-cert-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.jr-cert-foot > div { display: flex; flex-direction: column; min-width: 120px; }
.jr-cert-foot small { color: var(--muted); }
.jr-cert-foot b { color: var(--deep); }
.jr-cert-seal { font-size: 3.2rem; color: var(--gold); min-width: 0 !important; }
.jr-cert.locked .jr-cert-frame { filter: grayscale(.7) blur(1.5px); opacity: .6; }
.jr-cert-lock {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: #fff; font-weight: 800; font-size: 1.1rem; text-align: center; padding: 20px;
}
.jr-cert-lock i { font-size: 2.6rem; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(7,60,70,.85); }
.jr-cert-lock span { background: rgba(7,60,70,.85); padding: 6px 16px; border-radius: 12px; }

.jr-after { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 34px; }
.jr-after-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.jr-after-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--teal-50); color: var(--teal-700); }
.jr-after-card.more { background: linear-gradient(135deg, #0a8f9c, #073c46); color: #fff; border: 0; }
.jr-after-card.more .ic { background: rgba(255,255,255,.12); color: #f4c85a; }
.jr-after-card b { font-size: 1.1rem; color: var(--deep); }
.jr-after-card.more b { color: #fff; }
.jr-after-card p { color: var(--muted); margin-top: 4px; font-size: .95rem; }
.jr-after-card.more p { color: rgba(255,255,255,.8); }
.jr-after-card .btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.jr-after-card.more .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.jr-after-card.more .btn-outline:hover { background: rgba(255,255,255,.1); }

.jr-toast {
    position: fixed; bottom: 24px; left: 50%; z-index: 2200; transform: translate(-50%, 30px); opacity: 0;
    padding: 10px 18px; border-radius: 12px; background: var(--deep); color: #fff; font-weight: 700;
    transition: all .3s; pointer-events: none;
}
.jr-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- journeys list + home cards ---------- */
.jr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.jr-item {
    display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
    border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.jr-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.jr-item-media { position: relative; aspect-ratio: 16 / 10; background: var(--teal-50); overflow: hidden; }
.jr-item-media img { width: 100%; height: 100%; object-fit: cover; }
.jr-item-media .lp-art { width: 100%; height: 100%; object-fit: cover; }
.jr-item-free { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 99px; background: var(--gold); color: var(--deep); font-weight: 800; font-size: .8rem; }
.jr-item-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.jr-item-body h3 { font-size: 1.2rem; color: var(--deep); font-weight: 800; line-height: 1.5; }
.jr-item-body p { color: var(--muted); font-size: .95rem; }
.jr-item-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .88rem; font-weight: 700; margin-top: auto; padding-top: 8px; }
.jr-item-meta span { display: inline-flex; align-items: center; gap: 5px; }
.jr-item-meta i { color: var(--teal); }
.jr-item .btn { margin-top: 12px; }
.jr-list-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.jr-list-empty i { font-size: 3rem; color: var(--teal); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .jr-intro-grid { grid-template-columns: 1fr; }
    .jr-intro-art { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
    .jr-how { grid-template-columns: repeat(2, 1fr); }
    .jr-bar-title { display: none; }
    .jr-tabs { margin-inline: 0; }
    .jr-bar .wrap { justify-content: space-between; }
}
@media (max-width: 640px) {
    .jr-intro { padding-top: 18px; }
    .jr-how { grid-template-columns: 1fr; }
    .jr-tabs a span { display: none; }
    .jr-tabs a { padding: 8px 12px; }
    .jr-meter { width: 70px; }
    .jr-road { padding: 20px 12px 28px; gap: 26px; }
    .jr-stop { width: 88%; }
    .jr-stop:nth-child(4n + 3), .jr-stop:nth-child(4n + 5) { --off: 6%; }
    .jr-stop:nth-child(4n + 4) { --off: 12%; }
    .jr-stop-dot { width: 60px; height: 60px; font-size: 1.6rem; }
    .jr-steps .tx { display: none; }
    .jr-steps li.active .tx { display: inline; }
    .jr-memory { --cols: 3 !important; gap: 8px; }
    .jr-card-front { font-size: .92rem; padding: 6px; }
    .jr-match { grid-template-columns: 1fr 1fr; gap: 10px; }
    .jr-match-mid { display: none; }
    .jr-tile { padding: 12px 10px; font-size: .92rem; }
    .jr-step-nav .jr-nav-hint { display: none; }
    .jr-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .jr-stat { padding: 14px 8px; }
    .jr-badges { grid-template-columns: 1fr 1fr; gap: 10px; }
    .jr-cert-foot { flex-direction: column; gap: 10px; }
    .jr-cert-foot > div { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    .jr-stop.current .jr-stop-dot, .jr-win-gem, .jr-confetti i { animation: none; }
    .jr-card-inner { transition: none; }
}

/* ---------- print: only the certificate ---------- */
@media print {
    @page { size: A4 landscape; margin: 10mm; }
    body.jr-body { background: #fff; }
    body.jr-body * { visibility: hidden; }
    .jr-cert, .jr-cert * { visibility: visible; }
    .jr-cert { position: fixed; inset: 0; margin: auto; width: 100%; height: fit-content; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .fab-wa, .jr-bar, .topbar, .nav { display: none !important; }
}

/* home page section */
.jr-home {
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(224,162,27,.10), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(0,136,151,.08), transparent 60%),
        #fffdf7;
    border-block: 1px solid #f1e7cf;
}
.jr-list-hero { padding-bottom: 24px; }
