/* ==========================================================================
   The journey page (/foodtest-eletut/, /en/foodtest-journey/): public/js/journey.js.
   Loaded on this page only, on top of site.css and its tokens. The script sets --p (0…1,
   scroll progress) on [data-jr-scene] and the state classes; without it (.jr-js missing) and
   under reduced motion every step is simply shown in order, nothing is pinned.
   The station map sticks flush under the collapsed header: journey.js sets --jr-map-top to the
   header's measured bottom edge (--sticky-top is the looser offset for cards, with a gap).
   ========================================================================== */
.jr{--jr-map-top:var(--sticky-top,72px);--jr-map-h:64px;--jr-pin-top:calc(var(--jr-map-top) + var(--jr-map-h));--jr-line:var(--line-strong);--jr-done:var(--cta);--jr-now:var(--test)}
.jr h2{text-wrap:balance}
.jr p{text-wrap:pretty}
.jr-note{font-size:15px;color:var(--muted);margin-top:18px}

/* Hero: copy left, the package box and the report phone as two planes right. */
.jr-hero{background:var(--surface);padding-block:clamp(28px,5vw,64px) clamp(20px,3vw,40px);overflow:hidden}
.jr-hero-grid{display:grid;gap:28px;align-items:center}
.jr-hero h1{font-size:clamp(34px,5.4vw,60px);letter-spacing:-.03em;margin-bottom:.35em}
.jr-hero .lead{max-width:56ch}
.jr-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 18px}
.jr-hero-facts{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:14.5px;font-weight:600;color:var(--ink-soft)}
.jr-hero-facts li{display:flex;align-items:center;gap:6px}
.jr-hero-facts .icon{color:var(--success);width:16px;height:16px}
/* The story game: a quiet link under the hero facts and a small card under the closing buttons,
   so it is easy to find but never competes with the package and quiz buttons. */
.jr-play-icon{flex:none;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--food-tint);color:var(--food-text)}
.jr-play-icon::before{content:"";margin-left:3px;border-left:9px solid currentColor;border-block:6px solid transparent}
.jr-play-link{display:inline-flex;align-items:center;gap:10px;margin-top:16px;padding:6px 14px 6px 6px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink-soft);font-size:14.5px;text-decoration:none;max-width:100%}
.jr-play-link strong{color:var(--heading)}
.jr-play-link:hover{border-color:var(--line-strong);background:var(--food-tint)}
.jr-hero-art{position:relative;height:clamp(260px,62vw,440px);max-width:520px;width:100%;margin-inline:auto}
.jr-hero-box{position:absolute;left:0;bottom:6%;width:72%;border-radius:var(--radius-lg);border:1px solid var(--line);transform:translate3d(0,calc(var(--p,0) * 40px),0)}
.jr-hero-phone{position:absolute;right:2%;top:0;height:100%;width:auto;filter:drop-shadow(0 18px 30px rgba(16,40,50,.22));transform:translate3d(0,calc(var(--p,0) * -60px),0)}
.jr-hero-mascot{position:absolute;left:58%;bottom:0;transform:translate3d(-50%,calc(var(--p,0) * -20px),0)}
@media (min-width:960px){
  .jr-hero-grid{grid-template-columns:1.05fr .95fr;gap:40px}
  .jr-hero-art{height:460px}
}

/* Station map: sticky under the header, numbered stops, a bar that fills with the scroll. */
.jr-map{position:sticky;top:var(--jr-map-top);z-index:20;background:var(--header-bg);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.jr-map .container{position:relative}
.jr-map-list{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding-block:10px;scroll-snap-type:x proximity}
.jr-map-list::-webkit-scrollbar{display:none}
/* Narrower screens: the strip runs to the screen edges and fades there, so a stop that scrolls out is
   not cut off by the content edge with a hard line. */
@media (max-width:1099px){.jr-map-list{margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);scroll-padding-inline:var(--gutter);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 var(--gutter),#000 calc(100% - var(--gutter)),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 var(--gutter),#000 calc(100% - var(--gutter)),transparent 100%)}}
.jr-map-list li{flex:1 0 auto;scroll-snap-align:start}
.jr-map-list a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:4px 10px;border-radius:999px;color:var(--muted);font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;transition:background-color .2s ease,color .2s ease}
.jr-map-list a:hover{background:var(--bg);color:var(--heading)}
.jr-map-dot{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:2px solid var(--line-strong);font-size:12.5px;background:var(--surface);transition:background-color .25s ease,border-color .25s ease,color .25s ease}
.jr-map-list a.is-done .jr-map-dot{background:var(--jr-done);border-color:var(--jr-done);color:#fff}
.jr-map-list a.is-current{color:var(--heading);background:var(--test-tint)}
.jr-map-list a.is-current .jr-map-dot{border-color:var(--jr-now);color:var(--jr-now)}
.jr-map-bar{position:absolute;left:var(--gutter);right:var(--gutter);bottom:-1px;height:3px;border-radius:3px;overflow:hidden}
.jr-map-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--food),var(--test));transform-origin:0 50%;transform:scaleX(var(--jr-progress,0))}
@media (max-width:719px){
  .jr-map-label{display:none}
  .jr-map-list a.is-current .jr-map-label{display:inline}
  .jr-map-list li{flex:0 0 auto}
}

/* The road: a rail beside the stops; the tube mascot rides it (sticky) while its fill grows. */
.jr-road{position:relative;display:grid;grid-template-columns:minmax(0,1fr)}
.jr-rail{display:none}
@media (min-width:720px){
  .jr-road{grid-template-columns:64px minmax(0,1fr);column-gap:clamp(12px,2vw,28px)}
  .jr-rail{display:block;position:relative;grid-row:1 / span 8}
  .jr-rail::before,.jr-rail-fill{content:"";position:absolute;left:50%;top:40px;bottom:40px;width:6px;margin-left:-3px;border-radius:6px}
  .jr-rail::before{background:repeating-linear-gradient(180deg,var(--jr-line) 0 14px,transparent 14px 26px)}
  .jr-rail-fill{background:linear-gradient(180deg,var(--food),var(--test));transform-origin:50% 0;transform:scaleY(var(--jr-progress,0))}
  .jr-rider{position:sticky;top:calc(50vh - 35px);display:flex;justify-content:center;margin-top:24px}
  .jr-stop{grid-column:2}
}
.jr-rider .ft-tube{filter:drop-shadow(0 6px 10px rgba(16,40,50,.18))}

/* A stop: generous space at the boundary, the number badge, the head copy. */
.jr-stop{padding-block:clamp(48px,7vw,96px) clamp(24px,3vw,40px);border-bottom:1px solid var(--line);min-width:0}
.jr-stop:last-of-type{border-bottom:0}
.jr-stop-head{max-width:720px;margin-bottom:var(--space-head)}
.jr-stop-head h2{font-size:clamp(26px,3.4vw,42px);letter-spacing:-.025em}
.jr-stop-num{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--test-tint);color:var(--test-dark);font-weight:800;margin-bottom:14px;transition:background-color .3s ease,color .3s ease}
.jr-stop.is-reached .jr-stop-num{background:var(--cta);color:#fff}

/* 1. Choosing */
.jr-picks{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.jr-pick{-webkit-appearance:none;appearance:none;border:1.5px solid var(--line-strong);background:var(--surface);border-radius:999px;padding:10px 18px;min-height:44px;font-size:15px;font-weight:600;cursor:pointer;color:var(--ink);transition:border-color .15s ease,background-color .15s ease,color .15s ease}
.jr-pick:hover{border-color:var(--test-dark)}
.jr-pick[aria-pressed="true"]{background:var(--test-dark);border-color:var(--test-dark);color:#fff}
.jr-choices{display:grid;gap:14px}
.jr-picked{margin:-8px 0 18px;font-size:15px;color:var(--muted)}
.jr-picked strong{color:var(--heading)}
.jr-picked span{display:block;font-size:13.5px}
/* Phones: the cards are a sideways row; a choice brings its card to the middle (journey.js). */
@media (max-width:639px){
  .jr-choices{grid-auto-flow:column;grid-auto-columns:84%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:calc(-1 * var(--gutter));padding:6px var(--gutter) 12px;scroll-padding-inline:var(--gutter)}
  .jr-choices::-webkit-scrollbar{display:none}
  .jr-choice{scroll-snap-align:center}
}
@media (min-width:640px){.jr-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:960px){.jr-choices{grid-template-columns:repeat(4,minmax(0,1fr))}}
.jr-choice{display:flex;flex-direction:column;padding:22px;background:var(--surface);border:1.5px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);transition:border-color .25s ease,box-shadow .25s ease,opacity .25s ease,transform .25s var(--ease)}
.jr-choice h3{font-size:19px;margin-bottom:10px}
.jr-choice-list{font-size:14.5px;color:var(--ink-soft);display:grid;gap:6px;margin-bottom:16px}
.jr-choice-list li{padding-left:24px;background:var(--ok-icon) 0 3px/16px no-repeat}
.jr-choice-foot{margin:auto 0 0;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.jr-choice-foot .price{font-size:21px}
.jr-choices.has-pick .jr-choice{opacity:.55}
.jr-choices.has-pick .jr-choice.is-picked{opacity:1;border-color:var(--cta)}

/* 2 & 4 & 7: pinned scenes. The section is tall and its .jr-pin sticks under the station map while
   journey.js scrubs --p with the scroll (the e-mails, the chip, the diet track). The phone and the chip
   scenes pin on phones too; the sideways diet track only on wide screens. Every other stop scrolls freely. */
.jr-pin{display:grid;gap:28px;align-items:center}
@media (min-width:960px){
  .jr-stop-pin .jr-pin{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:48px}
}
@media (min-height:560px) and (prefers-reduced-motion:no-preference){
  .jr-js .jr-stop-pin{height:240vh;padding-block:0;border-bottom:0}
  .jr-js .jr-stop-pin .jr-pin{position:sticky;top:var(--jr-pin-top);min-height:calc(100vh - var(--jr-pin-top));min-height:calc(100svh - var(--jr-pin-top));align-content:center;padding-block:16px}
}
@media (max-width:959px) and (min-height:560px) and (prefers-reduced-motion:no-preference){
  .jr-js .jr-stop-pin .jr-pin{gap:12px}
  .jr-js .jr-stop-pin .jr-stop-head{margin-bottom:0}
  .jr-js .jr-stop-pin .jr-stop-head p{font-size:14.5px;line-height:1.45;margin-bottom:8px}
}
/* journey.js sets --jr-fit (<1) on the picture of a pinned scene that would not fit the screen whole:
   it is scaled from its top and the space it gives back is taken out of the layout. */
.jr-phone,.jr-chip-wrap{transform:scale(var(--jr-fit,1));transform-origin:50% 0}
.jr-js .jr-phone[style*="--jr-fit"],.jr-js .jr-chip-wrap[style*="--jr-fit"]{margin-bottom:calc((var(--jr-fit,1) - 1) * var(--jr-art-h,0px))}

/* 2. The phone collecting the e-mails. The screen's contents scale with the phone (cqi), capped at the
   desktop sizes, so all six e-mails fit whatever size the phone is drawn at. */
.jr-phone{justify-self:center;width:min(100%,330px,calc((100vh - var(--jr-pin-top,140px) - 64px) * 9 / 17));aspect-ratio:9/17;border-radius:44px;padding:12px;background:#1c262b;box-shadow:var(--shadow-lg);container-type:inline-size}
.jr-phone-screen{height:100%;border-radius:34px;padding:5.3cqi 3.5cqi;background:linear-gradient(170deg,#e3f1f7 0%,#eef6e6 100%);overflow:hidden}
.jr-phone-time{text-align:center;font-size:min(11.4cqi,44px);font-weight:300;letter-spacing:-.02em;color:#123f50;margin:0 0 3.5cqi}
.jr-notes{display:grid;gap:min(2.6cqi,8px)}
.jr-notif{background:rgba(255,255,255,.88);border-radius:min(5.3cqi,16px);padding:min(2.6cqi,9px) min(3.9cqi,12px);box-shadow:0 4px 12px rgba(16,40,50,.08);font-size:min(5.26cqi,13.5px);line-height:1.25;color:#1f2d33}
.jr-notif strong{display:block;font-weight:700}
.jr-notif-app{display:block;font-size:min(4.6cqi,11.5px);color:#5d6b71;font-weight:600;margin-bottom:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jr-js .jr-notif{opacity:0;transform:translate3d(0,-10px,0) scale(.97);transition:opacity .35s ease,transform .45s var(--ease)}
.jr-js .jr-notif.is-on{opacity:1;transform:none}

/* 3. The fork, its tabs, the steps, the drop game */
.jr-fork{max-width:600px;margin:0 auto 22px}
.jr-fork-art{display:block;width:100%;height:auto;margin-bottom:-6px}
.jr-fork-art path{fill:none;stroke-width:8;stroke-linecap:round;transition:stroke .3s ease,opacity .3s ease}
.jr-fork-base{stroke:var(--cta)}
.jr-fork-lane{stroke:var(--jr-line);stroke-dasharray:14 12;opacity:.7}
.jr-fork[data-choice="home"] .jr-fork-lane.is-home,.jr-fork[data-choice="lab"] .jr-fork-lane.is-lab{stroke:var(--cta);stroke-dasharray:none;opacity:1}
.jr-fork-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jr-fork-tab{-webkit-appearance:none;appearance:none;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:10px 14px;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--surface);font-weight:700;font-size:15px;color:var(--ink);cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.jr-fork-tab[aria-selected="true"]{background:var(--cta);border-color:var(--cta);color:#fff}
.jr-fork-tab:not([aria-selected="true"]):hover{border-color:var(--cta);color:var(--accent)}
.jr-fork-tabs:not(.is-ready){display:none}
.jr-panel+.jr-panel{margin-top:32px}
.jr-js .jr-panel+.jr-panel{margin-top:0}
.jr-steps{display:grid;gap:14px;counter-reset:jr-step}
@media (min-width:720px){.jr-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1180px){.jr-steps{grid-template-columns:repeat(4,minmax(0,1fr))}}
.jr-steps li{position:relative;padding:20px 20px 18px;border-radius:var(--radius);background:var(--bg);counter-increment:jr-step}
.jr-steps li::before{content:counter(jr-step);display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--surface);color:var(--accent);font-weight:800;font-size:14px;margin-bottom:10px;box-shadow:var(--shadow-sm)}
.jr-steps h3{font-size:17px;margin-bottom:6px}
.jr-steps p{font-size:14.5px;color:var(--ink-soft);margin:0}
.jr-game{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:18px;align-items:center;padding:22px;border-radius:var(--radius-lg);background:var(--food-tint);border:1.5px solid var(--success-line)}
.jr-game h3{margin-bottom:6px}
.jr-game p{font-size:15px}
.jr-game-msg{font-weight:700;color:var(--heading);min-height:1.6em}
.jr-game-note{font-size:13px;color:var(--muted);margin:12px 0 0}
.jr-game [data-jr-game-btn]{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.jr-game [data-jr-game-btn].is-holding{transform:scale(.97)}
.jr-game-tube{width:96px;height:auto}
.jr-game-glass{fill:#f3f9fb}
.jr-game-cap{fill:var(--test)}
.jr-game-zone{fill:var(--food);opacity:.35}
.jr-game-blood{fill:#c8303d}
.jr-game-outline{fill:none;stroke:var(--test-deep);stroke-width:4;stroke-linejoin:round}
@media (min-width:720px){.jr-game{grid-template-columns:minmax(0,1fr) 120px}.jr-game-tube{width:120px}}
/* The game is the last card of the home sampling steps: no step number, its own colours; a full row
   on tablets, a column beside the steps on desktop, the last swipe on phones. */
.jr-steps li.jr-game{counter-increment:none;background:var(--food-tint);border:1.5px solid var(--success-line);padding:20px}
.jr-steps li.jr-game::before{content:none}
@media (min-width:720px) and (max-width:959px){.jr-steps>.jr-game{grid-column:1 / -1}}

/* 4. The protein chip */
.jr-chip-wrap{justify-self:center;width:min(100%,440px)}
.jr-chip{display:grid;grid-template-columns:repeat(20,1fr);gap:5px;padding:18px;border-radius:var(--radius-lg);background:linear-gradient(160deg,#18323d,#0f2129);box-shadow:var(--shadow-lg)}
.jr-chip i{display:block;aspect-ratio:1;border-radius:50%;background:rgba(255,255,255,.12);transition:background-color .3s ease,transform .3s ease}
.jr-chip i.is-on{background:#7fcf55}
.jr-chip i.is-on.is-mid{background:#f2b33d}
.jr-chip i.is-on.is-high{background:#ef6a5a;transform:scale(1.15)}
.jr-days{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:16px 0 0;color:var(--heading);font-weight:700}
.jr-days b{font-size:44px;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;min-width:1.3em;text-align:right}

/* 5. The report: the peak. The phone wipes up while the stop scrolls in. */
.jr-stop-peak{padding-block:clamp(64px,9vw,128px) clamp(32px,4vw,56px)}
.jr-report{display:grid;gap:32px;align-items:start}
@media (min-width:960px){.jr-report{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:56px}}
.jr-report-art{position:relative;justify-self:center;max-width:360px;width:80%}
.jr-report-art img{width:100%;height:auto}
.jr-js .jr-report-art img{clip-path:inset(calc((1 - clamp(0,var(--p,1) * 2.4,1)) * 100%) 0 0 0);transform:translate3d(0,calc((1 - clamp(0,var(--p,1) * 2.4,1)) * 40px),0)}
.jr-foods{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.jr-food{-webkit-appearance:none;appearance:none;min-height:44px;padding:8px 16px;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--surface);font-weight:600;font-size:15px;color:var(--ink);cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}
.jr-food:hover{border-color:var(--test-dark)}
.jr-food.is-revealed[data-jr-food="ok"]{background:var(--success-tint);border-color:var(--success-line);color:var(--success-text)}
.jr-food.is-revealed[data-jr-food="mid"]{background:var(--warn-tint);border-color:#f1c98f;color:var(--warn-text)}
.jr-food.is-revealed[data-jr-food="high"],.jr-food.is-revealed[data-jr-food="qualifying"]{background:var(--danger-tint);border-color:var(--danger-line);color:var(--danger-text)}
.jr-food[aria-pressed="true"]{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--test)}
.jr-food-out{min-height:72px;padding:14px 16px;border-radius:var(--radius);background:var(--bg);margin-bottom:22px}
.jr-food-out p{margin:0;font-size:15px}
.jr-food-out:not(:has(p:not([hidden])))::before{content:attr(data-empty);color:var(--muted);font-size:15px}
.jr-level{display:inline-block;padding:2px 10px;border-radius:999px;font-size:13.5px;margin-right:6px}
.jr-level.is-ok{background:var(--success-tint);color:var(--success-text)}
.jr-level.is-mid{background:var(--warn-tint);color:var(--warn-text)}
.jr-level.is-high{background:var(--danger-tint);color:var(--danger-text)}
.jr-ticks{display:grid;gap:8px;font-size:15px;margin-bottom:16px}
.jr-ticks li{padding-left:26px;background:var(--ok-icon) 0 4px/17px no-repeat}
.jr-report-copy h3{font-size:20px}

/* 6. Evaluation lanes, each a chain of small steps */
.jr-lanes{display:grid;gap:16px}
@media (min-width:960px){.jr-lanes{grid-template-columns:repeat(3,minmax(0,1fr))}}
.jr-lane{padding:24px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm)}
.jr-lane h3{font-size:19px}
.jr-lane>p{font-size:15px;color:var(--ink-soft)}
.jr-chain{display:grid;gap:0;margin:16px 0}
.jr-chain li{position:relative;padding:0 0 16px 30px;font-size:15px;font-weight:600;color:var(--heading)}
.jr-chain li::before{content:"";position:absolute;left:4px;top:5px;width:12px;height:12px;border-radius:50%;border:3px solid var(--test);background:var(--surface)}
.jr-chain li:not(:last-child)::after{content:"";position:absolute;left:9px;top:21px;bottom:2px;width:2px;background:var(--test-line)}
.jr-chain li:last-child{padding-bottom:0}
.jr-chain li:last-child::before{border-color:var(--cta);background:var(--cta)}

/* 7. Diet phases: a list, two across; a sideways track while pinned on wide screens. */
.jr-phases{display:grid;gap:14px}
.jr-phase{padding:24px;border-radius:var(--radius-lg);background:var(--food-tint);border:1px solid var(--success-line)}
.jr-phase:nth-child(2){background:var(--warn-tint);border-color:#f1d5ae}
.jr-phase:nth-child(3){background:var(--test-tint);border-color:var(--test-line)}
.jr-phase h3{font-size:20px;margin-bottom:8px}
.jr-phase p{margin:0;color:var(--ink-soft);font-size:15.5px}
.jr-phase-when{display:inline-block;font-size:13.5px;font-weight:700;color:var(--success-text);margin-bottom:8px}
@media (min-width:720px){.jr-phases{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:960px) and (min-height:620px) and (prefers-reduced-motion:no-preference){
  .jr-js .jr-stop-pan{height:260vh;padding-block:0;border-bottom:0}
  .jr-js .jr-stop-pan .jr-pin{position:sticky;top:var(--jr-pin-top);min-height:calc(100vh - var(--jr-pin-top));align-content:center;padding-block:24px;overflow:hidden;grid-template-columns:minmax(0,1fr)}
  .jr-js .jr-phases{display:flex;gap:18px;width:max-content;transform:translate3d(calc(var(--p,0) * var(--jr-pan,0px) * -1),0,0);will-change:transform}
  .jr-js .jr-phase{width:min(380px,32vw);min-height:250px}
}

/* 8. Follow-up touches: a timeline that lights up as each one scrolls in. */
.jr-touches{position:relative;display:grid;gap:14px;max-width:760px}
.jr-touches::before{content:"";position:absolute;left:11px;top:10px;bottom:10px;width:2px;background:var(--test-line)}
.jr-touch{position:relative;padding:0 0 0 40px}
.jr-touch::before{content:"";position:absolute;left:3px;top:4px;width:18px;height:18px;border-radius:50%;background:var(--surface);border:3px solid var(--test)}
.jr-touch:last-child::before{border-color:var(--cta);background:var(--cta)}
.jr-touch-when{display:block;font-weight:600;color:var(--heading);font-size:16.5px;margin-bottom:2px}
.jr-touch p{margin:0;color:var(--ink-soft)}

/* Close: the resolved ending, mascot and the one action. */
.jr-close{padding-block:clamp(32px,5vw,64px)}
.jr-close-card{display:grid;gap:20px;align-items:center;padding:clamp(24px,4vw,44px);border-radius:var(--radius-lg);background:var(--bg);border:1px solid var(--line);margin-bottom:24px}
.jr-close-card .ft-tube{justify-self:center}
.jr-close-card h2{font-size:clamp(26px,3.4vw,40px);margin-bottom:.3em}
.jr-close-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
@media (min-width:720px){.jr-close-card{grid-template-columns:auto minmax(0,1fr);gap:36px}}
.jr-play{display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink-soft);text-decoration:none;max-width:560px}
.jr-play:hover{border-color:var(--line-strong)}
.jr-play .jr-play-icon{width:40px;height:40px}
.jr-play-copy{display:grid;gap:2px;min-width:0;font-size:14.5px;line-height:1.4}
.jr-play-copy strong{color:var(--heading);font-size:16px}
.jr-play-go{flex:none;display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--link)}
.jr-play-go .icon{width:16px;height:16px}
@media (max-width:479px){.jr-play-go{display:none}}

/* Entry reveals: the head and the cards of a stop rise in once, when the stop enters. */
.jr-js .jr-stop .jr-stop-head,.jr-js .jr-choice,.jr-js .jr-lane,.jr-js .jr-touch,.jr-js .jr-steps li{opacity:0;transform:translate3d(0,18px,0);transition:opacity .5s ease,transform .6s var(--ease)}
.jr-js .jr-stop.is-in .jr-stop-head,.jr-js .jr-stop.is-in .jr-choice,.jr-js .jr-stop.is-in .jr-lane,.jr-js .jr-stop.is-in .jr-touch,.jr-js .jr-stop.is-in .jr-steps li{opacity:1;transform:none}
.jr-js .jr-stop.is-in .jr-choices.has-pick .jr-choice:not(.is-picked){opacity:.55}
.jr-js .jr-stop.is-in :is(.jr-choice,.jr-lane,.jr-touch,.jr-steps li):nth-child(2){transition-delay:.08s}
.jr-js .jr-stop.is-in :is(.jr-choice,.jr-lane,.jr-touch,.jr-steps li):nth-child(3){transition-delay:.16s}
.jr-js .jr-stop.is-in :is(.jr-choice,.jr-lane,.jr-touch,.jr-steps li):nth-child(4){transition-delay:.24s}

/* Map links and the automatic step after a choice land the stop's head just under the station map. */
.jr-stop{scroll-margin-top:calc(var(--jr-pin-top) - 96px + 12px)}

/* Desktop: the number sits beside the heading,
   the sampling panel puts the game next to the steps, the report column is tighter. */
@media (min-width:960px){
  .jr-stop-head{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:center}
  .jr-stop-head>*{grid-column:1 / -1}
  .jr-stop-head>.jr-stop-num{grid-column:1;margin:0}
  .jr-stop-head>h2{grid-column:2;margin:0}
  .jr-stop-head>h2+*{margin-top:14px}
  .jr-picks{margin-bottom:14px}
  .jr-choice{padding:18px}
  .jr-choice h3{font-size:17.5px;margin-bottom:8px}
  .jr-choice-list{font-size:14px;gap:4px;margin-bottom:12px}
  .jr-fork{margin-bottom:16px}
  .jr-fork-art{max-width:420px;margin-inline:auto;height:60px}
  .jr-steps:has(.jr-game){grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.15fr);gap:12px}
  .jr-steps>.jr-game{grid-column:3;grid-row:1 / span 2;grid-template-columns:minmax(0,1fr) 84px;padding:18px}
  .jr-steps>.jr-game .jr-game-tube{width:84px}
  .jr-panel .jr-note{margin-top:12px;font-size:14px}
  .jr-steps li{padding:16px 18px 14px}
  .jr-steps li::before{width:26px;height:26px;margin-bottom:6px}
  .jr-report{gap:40px;align-items:center}
  .jr-report-art{max-width:280px}
  .jr-report-copy h3{font-size:18px;margin-bottom:8px}
  .jr-food-out{margin-bottom:16px;min-height:0}
  .jr-ticks{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;font-size:14px;margin-bottom:10px}
}

/* Phones: every row stacks into one column (no sideways swiping); the phone and the report picture are smaller. */
/* Short phones: the decorative fork drawing goes, the game and the leads tighten. */
@media (max-width:719px) and (max-height:800px){
  .jr-fork-art{display:none}
  .jr-fork{margin-bottom:12px}
  .jr-stop-head .lead{font-size:14.5px;margin-bottom:8px}
  .jr-steps li.jr-game{padding:12px 14px;grid-template-columns:minmax(0,1fr) 44px}
  .jr-game-tube{width:44px}
  .jr-game p{font-size:13.5px}
  .jr-game-note{margin-top:6px}
  .jr-steps li p{font-size:14px}
}
@media (min-width:720px) and (max-width:959px){
  .jr-report{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:28px;align-items:center}
  .jr-ticks{font-size:14.5px}
}
@media (max-width:719px){
  .jr-choices,.jr-steps,.jr-lanes,.jr-phases{gap:12px}
  .jr-picks{gap:8px;margin-bottom:14px}
  .jr-pick{padding:8px 14px;font-size:14.5px}
  .jr-stop-head h2{font-size:clamp(23px,6.4vw,28px)}
  .jr-stop-head .lead{font-size:15.5px}
  .jr-stop-num{width:34px;height:34px;margin-bottom:10px}
  .jr-choice{padding:16px}
  .jr-choice h3{font-size:17px}
  .jr-choice-list{font-size:14px;gap:4px;margin-bottom:12px}
  .jr-fork-art{height:44px}
  .jr-fork-tab{min-height:46px;font-size:14px;padding:8px 10px}
  .jr-steps li{padding:16px}
  .jr-steps li.jr-game{padding:16px;grid-template-columns:minmax(0,1fr) 56px;gap:10px}
  .jr-game p{font-size:14px;margin-bottom:6px}
  .jr-game-tube{width:56px}
  .jr-phone{width:min(100%,240px,calc((100vh - 380px) * .6));width:min(100%,240px,calc((100svh - 380px) * .6));min-width:150px;border-radius:36px;padding:10px}
  .jr-phone-screen{border-radius:28px}
  .jr-report{gap:12px}
  .jr-report-art{width:110px}
  .jr-report-copy h3{font-size:17px;margin-bottom:6px}
  .jr-report-copy>p{font-size:14.5px;margin-bottom:10px}
  .jr-food-out{margin-bottom:14px;padding:10px 12px}
  .jr-food{min-height:40px;padding:6px 13px;font-size:14px}
  .jr-ticks{font-size:14px;gap:5px}
  .jr-lane{padding:18px}
  .jr-phase{padding:18px}
  .jr-touches{gap:10px}
}

/* Your path: the chosen package travels along (label in the map), and the stops it changes adapt. */
.jr-map .container{display:flex;align-items:center;gap:12px}
.jr-map-list{flex:1;min-width:0}
.jr-path{flex:none;margin:0;font-size:13.5px;color:var(--muted);white-space:nowrap}
.jr-path strong{color:var(--heading)}
.jr-path a{margin-left:4px;font-weight:700}
/* Below 1100px there is no room beside the stations: the line under the picks shows the choice instead. */
@media (max-width:1099px){.jr-path{display:none}}
.jr-choice{cursor:pointer}
.jr-choice-select{-webkit-appearance:none;appearance:none;display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;margin:0 0 14px;padding:8px 14px;border-radius:999px;border:1.5px dashed var(--line-strong);background:transparent;color:var(--ink);font-weight:700;font-size:14.5px;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.jr-choice-select:hover{border-color:var(--cta);color:var(--accent)}
.jr-choice-select[aria-pressed="true"]{border-style:solid;border-color:var(--cta);background:var(--cta);color:#fff}
.jr-choice-select .jr-select-on,.jr-choice-select[aria-pressed="true"] .jr-select-off{display:none}
.jr-choice-select[aria-pressed="true"] .jr-select-on{display:inline}
.jr-choice-select[aria-pressed="true"] .jr-select-on::before{content:"✓ "}
.jr [data-jr-show]{display:none}
.jr[data-jr-path="basic"] [data-jr-show~="basic"],.jr[data-jr-path="full"] [data-jr-show~="full"],.jr[data-jr-path="targeted"] [data-jr-show~="targeted"],.jr[data-jr-path="counselling"] [data-jr-show~="counselling"]{display:revert}
.jr[data-jr-path] .jr-close-actions [data-jr-show]{display:none}
.jr[data-jr-path="basic"] .jr-close-actions [data-jr-show="basic"],.jr[data-jr-path="full"] .jr-close-actions [data-jr-show="full"],.jr[data-jr-path="targeted"] .jr-close-actions [data-jr-show="targeted"],.jr[data-jr-path="counselling"] .jr-close-actions [data-jr-show="counselling"]{display:inline-flex}
.jr[data-jr-path] .jr-close-actions .button-primary{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}
.jr-yours-note{padding:10px 14px;border-radius:var(--radius-sm);background:var(--cta-tint);border:1px solid var(--success-line);color:var(--success-text);font-size:15px;font-weight:600}
.jr-yours{display:none;align-self:flex-start;margin-bottom:10px;padding:3px 12px;border-radius:999px;background:var(--cta);color:#fff;font-size:13px;font-weight:700}
.jr-lane{display:flex;flex-direction:column}
.jr[data-jr-path="basic"] .jr-lane[data-jr-for~="basic"],.jr[data-jr-path="full"] .jr-lane[data-jr-for~="full"],.jr[data-jr-path="targeted"] .jr-lane[data-jr-for~="targeted"],.jr[data-jr-path="counselling"] .jr-lane[data-jr-for~="counselling"]{border-color:var(--cta);box-shadow:var(--shadow);outline:2px solid var(--cta);outline-offset:-1px}
.jr[data-jr-path="basic"] .jr-lane[data-jr-for~="basic"] .jr-yours,.jr[data-jr-path="full"] .jr-lane[data-jr-for~="full"] .jr-yours,.jr[data-jr-path="targeted"] .jr-lane[data-jr-for~="targeted"] .jr-yours,.jr[data-jr-path="counselling"] .jr-lane[data-jr-for~="counselling"] .jr-yours{display:inline-block}

@media (prefers-reduced-motion:reduce){
  .jr-hero-box,.jr-hero-phone,.jr-hero-mascot{transform:none}
  .jr-js .jr-notif,.jr-js .jr-stop .jr-stop-head,.jr-js .jr-choice,.jr-js .jr-lane,.jr-js .jr-touch,.jr-js .jr-steps li{opacity:1;transform:none}
  .jr-js .jr-report-art img{clip-path:none;transform:none}
  .jr-rider{display:none}
}

/* Dark theme: the phone and chip keep their own light/dark surfaces; the game tube glass dims. */
:root[data-theme="dark"] .jr-game-glass{fill:#1d2a30}
:root[data-theme="dark"] .jr-game-outline{stroke:#a8dcf2}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .jr-game-glass{fill:#1d2a30}
  :root:not([data-theme="light"]) .jr-game-outline{stroke:#a8dcf2}
}
