/* ===== Victory Tour · journey component (scoped to .victory-game and existing adapter classes) ===== */
[hidden]{display:none!important}
.route-choice.main-routes{margin:0 0 18px;padding:6px;background:#dcecf1;min-height:52px}.main-routes button{font-weight:bold;font-size:14px}
.victory-game{--vj-sky:#0eb1de;--vj-ink:#173f4d;--vj-cream:#fffaf0;--vj-teal:#0a8f9f;--vj-sun:#f2b544;--vj-font:system-ui,"SF Arabic","Geeza Pro","Noto Sans Arabic","Segoe UI",Tahoma,sans-serif;
 font-family:var(--vj-font);color:var(--vj-ink);border:1px solid #d6e7ea;border-radius:24px;overflow:hidden;background:var(--vj-cream);box-shadow:0 20px 50px #1f3e4c1f}
.victory-game button{font-family:inherit}

/* HUD */
.vj-hud{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 14px;padding:14px 20px;background:linear-gradient(135deg,#0eb1de,#0a98c4);color:#fff}
.vj-hud-title span{display:block;font-size:12px;opacity:.9}.vj-hud-title strong{display:block;font-size:20px;margin-top:3px}
.vj-counters{display:flex;flex-wrap:wrap;gap:6px;margin:0;justify-content:flex-end;min-width:0}
.vj-counters>div{background:#ffffff26;border:1px solid #ffffff3a;border-radius:12px;padding:5px 10px;min-width:74px}
.vj-counters dt{font-size:10px;opacity:.85}.vj-counters dd{margin:2px 0 0;font-size:14px;font-weight:700;white-space:nowrap}
.vj-counters .vj-score{background:#fff3c4;color:#6a4b06;border-color:#fff3c4}
.vj-counters bdi,.vj-map-distance bdi,.vj-summary bdi{direction:ltr;unicode-bidi:isolate}

/* Stage and world: a 16:9 world that covers the stage, anchored at the ground line */
.vj-stage{position:relative;width:100%;min-width:0;aspect-ratio:16/9;min-height:440px;overflow:hidden;isolation:isolate;direction:ltr;container-type:size;background:linear-gradient(#9fdcf0,#d9f1f4 55%,#fff3dc)}
.vj-camera{position:absolute;inset:0;transform-origin:50% 82%;will-change:transform}
.vj-world{position:absolute;left:50%;bottom:0;width:100%;aspect-ratio:16/9;translate:-50% 0}
@supports (width:1cqw){.vj-world{width:max(100cqw,min(177.78cqh,175cqw))}}
.vj-scenery,.vj-scenery>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}

/* Bus */
.vj-bus{position:absolute;left:23.5%;width:40%;bottom:13.5%;aspect-ratio:480/236;z-index:2}
.vj-bus>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.vj-bus-glass{z-index:2;pointer-events:none}.vj-passengers{position:absolute;inset:0;z-index:1;pointer-events:none}
/* Axle groups own translation; only the inner wheel rotates about its local origin. */
.vj-wheel{transform-box:view-box;transform-origin:0px 0px}
.vj-door-l,.vj-door-r{transform-box:fill-box;transition:transform .32s cubic-bezier(.4,0,.2,1)}.vj-door-l{transform-origin:left center}.vj-door-r{transform-origin:right center}
.door-open .vj-door-l,.door-open .vj-door-r{transform:scaleX(.14)}
.vj-passenger{position:absolute;overflow:hidden;border-radius:11px;transition:opacity .25s}
.vj-passenger>.vj-kid{position:absolute;height:175%;aspect-ratio:230/332;left:50%;top:3%;translate:-50% 0}
.vj-crowded .vj-mini{border-radius:0;overflow:visible}.vj-crowded .vj-mini>.vj-kid{height:150%;top:0;clip-path:inset(0 0 38% 0)}
.vj-driving .vj-passenger>.vj-kid{animation:vj-ride .42s ease-in-out infinite alternate}
.vj-driving .vj-passenger:nth-child(2n)>.vj-kid{animation-delay:-.2s}

/* Children in the world */
.vj-kid{position:relative;display:block}.vj-kid>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.vj-kid-mini{display:inline-block;width:100%;height:100%}
.vj-kid-name{position:absolute;left:50%;top:-12%;translate:-50% 0;white-space:nowrap;background:#fff;color:var(--vj-ink);border-radius:999px;padding:3px 11px;font:700 clamp(10px,1.4cqh,14px)/1.4 var(--vj-font);box-shadow:0 3px 10px #1b4a5a26;direction:rtl}
.vj-actor{position:absolute;bottom:9%;height:24%;aspect-ratio:230/332;translate:-50% 0;z-index:4;left:60%;opacity:0}
.vj-actor>.vj-kid{width:100%;height:100%}
.vj-crowd{position:absolute;inset:0;z-index:3;pointer-events:none}
.vj-walker{position:absolute;bottom:9%;height:24%;aspect-ratio:230/332;translate:-50% 0}.vj-walker>.vj-kid{width:100%;height:100%}
.vj-walker-mini{height:14%}.vj-celebrate.vj-walker-mini>.vj-kid{animation:vj-hop .5s ease-in-out infinite alternate}
.vj-celebrate.vj-walker-mini:nth-child(3n)>.vj-kid{animation-delay:-.25s}

/* Road sign passing by (Moroccan colours: blue motorway, green national, white regional) */
.vj-sign{position:absolute;top:24%;left:108%;width:13%;min-width:96px;padding:.6em .7em;border-radius:.5em;border:.22em solid #fff;color:#fff;background:#3f8f5c;box-shadow:0 .3em .8em #1c3d4a33;text-align:center;font:600 clamp(10px,1.35cqh,17px)/1.25 var(--vj-font);direction:rtl;z-index:1;display:flex;flex-direction:column;gap:.2em}
.vj-sign:before,.vj-sign:after{content:'';position:absolute;top:100%;width:.45em;height:9.5em;background:#9aa7a6;z-index:-1}.vj-sign:before{left:22%}.vj-sign:after{right:22%}
.vj-sign.motorway{background:#1f6fb2}.vj-sign.national{background:#2f7d55}
.vj-sign b{font-size:1.25em}.vj-sign span{font-size:.8em;opacity:.95}.vj-sign small{font-size:.85em}
.vj-sign-code{align-self:center;background:#fff;color:#1f6fb2;border-radius:.3em;padding:0 .5em;font-weight:800}
.vj-sign.national .vj-sign-code{color:#c4473a}
.vj-stage[data-shot=close] .vj-sign,.vj-stage[data-shot=question] .vj-sign,.vj-stage[data-shot=arrival] .vj-sign{opacity:0}

/* Cinematic caption */
.vj-caption{position:absolute;left:50%;top:6%;translate:-50% -14px;opacity:0;z-index:5;text-align:center;direction:rtl;background:#fffffff2;border-radius:18px;padding:12px 26px;box-shadow:0 12px 30px #1b4a5a29;transition:opacity .45s,translate .45s;pointer-events:none;max-width:86%}
.vj-caption.show{opacity:1;translate:-50% 0}.vj-caption strong{display:block;font-size:clamp(17px,3.4cqh,30px);color:#0a6f82}.vj-caption span{display:block;font-size:clamp(11px,1.8cqh,15px);color:#5b7f86;margin-top:2px}
.vj-stage[data-shot=question] .vj-caption{opacity:0}

/* Question card: sits in the sky opened by the question camera */
.vj-question{position:absolute;top:3%;right:6%;left:6%;max-height:52%;overflow:auto;text-align:center;background:#ffffffef;border:1px solid #fff;border-radius:22px;padding:14px 20px;box-shadow:0 14px 34px #2c5f6c26;z-index:6;direction:rtl;backdrop-filter:blur(6px)}
.vj-question .vj-turn{font-size:12px;color:#3f8c96;margin:0 0 4px;font-weight:600}
.vj-question h2{font-size:clamp(17px,3.3cqh,26px);margin:4px 0 12px;color:#163f4c;line-height:1.5}
.vj-answers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:9px}
.vj-answers button{border:2px solid #b5dfe5;background:#e3f5f6;border-radius:14px;min-height:50px;padding:9px;color:#163f4c;font-size:clamp(15px,2.4cqh,19px);font-weight:700;cursor:pointer;transition:transform .15s,box-shadow .15s}
.vj-answers button:nth-child(2){background:#fff2cc;border-color:#efdca8}.vj-answers button:nth-child(3){background:#f5e7f3;border-color:#e2cbe0}.vj-answers button:nth-child(4){background:#e3eaff;border-color:#c7d3f0}
.vj-answers button:hover:enabled{transform:translateY(-2px);box-shadow:0 5px 12px #1b52651f}
.vj-answers button:focus-visible{outline:3px solid #075d8a;outline-offset:2px}
.vj-feedback{margin:10px 0 0;font-size:15px;font-weight:700;color:#1d8270}.vj-feedback.retry{color:#b06c1a}
.vj-fact{position:absolute;bottom:4%;right:4%;max-width:44%;padding:10px 16px;border-radius:14px;background:#fff6d9f2;color:#5d5434;direction:rtl;font-size:clamp(12px,1.9cqh,15px);line-height:1.6;z-index:5;box-shadow:0 6px 16px #6a5a2522}
.vj-fact b{color:#a46a0e}

/* Map */
.vj-map{position:absolute;inset:0;z-index:7;background:#bfe6ef;animation:vj-in .35s ease-out}
.vj-map>svg{width:100%;height:100%;display:block}
.vj-map-svg text{font-family:var(--vj-font);paint-order:stroke}
.vj-region{stroke:#fff;fill-rule:evenodd;stroke-linejoin:round}.vj-region.vj-highlight{stroke:#076c80}
.vj-province{stroke:#fff;fill-rule:evenodd;stroke-linejoin:round}
.vj-route-casing{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;opacity:.95}
.vj-route{fill:none;stroke:#8fb0b3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:.1 0}.vj-route.complete{stroke:#0eb1de}
.vj-trace{fill:none;stroke:#f2a33a;stroke-linecap:round;stroke-linejoin:round}
.vj-pulse{animation:vj-pulse 1.4s ease-out infinite;transform-box:fill-box;transform-origin:center}
.vj-map-bus-pulse{animation:vj-pulse 1.2s ease-out infinite;transform-box:fill-box;transform-origin:center}
.vj-map-title{position:absolute;right:18px;top:16px;direction:rtl;background:#fffffff0;border-radius:14px;padding:10px 16px;box-shadow:0 6px 18px #2d5c6a22}
.vj-map-title strong{display:block;font-size:17px;color:#0b5f70}.vj-map-title small{display:block;font-size:10.5px;color:#6b8a8f;margin-top:4px}
.vj-map-distance{position:absolute;left:18px;bottom:18px;min-width:220px;background:#fff;border-radius:16px;padding:12px 16px;box-shadow:0 8px 22px #2d5c6a2b;direction:rtl}
.vj-map-distance span{display:block;font-size:12px;color:#40656d}.vj-map-distance b{display:block;font-size:24px;color:#078fa0;margin:2px 0}.vj-map-distance small{font-size:11px;color:#6b8a8f}
.vj-leg-bar{height:7px;border-radius:9px;background:#e5f0f1;margin-top:8px;overflow:hidden;direction:ltr}.vj-leg-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#0eb1de,#f2a33a);border-radius:9px}
.vj-map-scale{position:absolute;right:18px;bottom:18px;direction:ltr;font-size:11px;color:#2f5560;background:#ffffffd9;border-radius:8px;padding:5px 8px;display:flex;flex-direction:column;gap:3px}
.vj-map-scale i{display:block;height:6px;border:2px solid #2f5560;border-top:0}
.vj-map-out{animation:none}

/* Summary */
.vj-summary{position:absolute;z-index:8;right:4%;top:7%;width:44%;max-height:86%;overflow-y:auto;padding:20px 22px;background:#fffdf3f4;border:1px solid #fff;border-radius:22px;box-shadow:0 14px 40px #2d5c6a30;direction:rtl}
.vj-summary>span{font-size:12px;color:#0e93a3;font-weight:700}.vj-summary h2{font-size:22px;margin:8px 0 12px}
.vj-summary-stats{display:flex;gap:10px;flex-wrap:wrap}.vj-summary-stats strong{flex:1;min-width:90px;background:#eaf7f8;border-radius:14px;padding:10px;font-size:24px;color:#0b8695;text-align:center}
.vj-summary small{display:block;font-size:11px;color:#6b8a8f;font-weight:500}
.vj-summary-route{font-size:12px;line-height:2;color:#47686f}
.vj-summary-players{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.vj-summary-players li{display:flex;justify-content:space-between;gap:8px;background:#fff;border:1px solid #e3eeee;border-radius:10px;padding:6px 10px;font-size:12px}
.vj-summary-players b{color:#0b8695;white-space:nowrap}
.vj-stage[data-shot=finished] .vj-map svg{width:54%;margin-right:auto}.vj-stage[data-shot=finished] .vj-map-title,.vj-stage[data-shot=finished] .vj-map-scale{display:none}

/* Confetti */
.vj-confetti{position:absolute;inset:0;pointer-events:none;z-index:9;overflow:hidden}
.vj-confetti i{position:absolute;width:8px;height:12px;border-radius:2px;background:var(--color);left:calc(var(--i)/var(--n)*100%);top:-16px;animation:vj-fall 2.6s calc(var(--i)*-.07s) ease-in 2 forwards}

/* Footer, stops, riders, data */
.vj-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:60px;padding:10px 20px;background:#1e3d48;color:#e9f6f3}
.vj-footer>span{font-size:14px;font-weight:600}.vj-footer>div{display:flex;gap:8px}
.vj-footer button{padding:10px 15px;border-radius:10px;border:0;background:#3f636c;color:#fff;min-height:44px;font-size:13px;cursor:pointer}
.vj-footer button:focus-visible{outline:3px solid #9fe3f3;outline-offset:2px}
.vj-footer [data-vj-skip]{background:#f6ebcf;color:#2f5560}
.vj-footer [data-vj-sound][aria-pressed=true]{background:#0eb1de}
.vj-stops{display:flex;direction:rtl;padding:14px 12px;gap:4px;justify-content:space-between;background:#fffbf1;overflow-x:auto;align-items:start}
.vj-stops span{font-size:11px;color:#7c918c;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:62px;text-align:center;position:relative}
.vj-stops span:not(:last-child):after{content:'';position:absolute;top:13px;left:-50%;width:100%;height:2px;background:#e1e9e1;z-index:0}
.vj-stops i{position:relative;z-index:1;display:grid;place-items:center;border:2px solid #dbe6dd;border-radius:50%;height:26px;width:26px;font-style:normal;background:#f2f6ee;font-weight:700}
.vj-stops .current{font-weight:700;color:#08909f}.vj-stops .current i{background:#0eb1de;border-color:#0eb1de;color:#fff;box-shadow:0 0 0 4px #0eb1de33}
.vj-stops .visited i{background:#cfeedb;border-color:#a9dcbd;color:#257a64}
.vj-riders{display:flex;flex-wrap:wrap;gap:6px;align-items:center;direction:rtl;padding:10px 16px;border-top:1px solid #eef1e8;background:#fff}
.vj-riders>b{font-size:12px;margin-inline-end:6px}.vj-riders span{display:flex;align-items:center;gap:6px;background:#eef7f8;border-radius:999px;padding:3px 10px 3px 4px;font-size:12px}
.vj-riders span.current{background:#dff3fb;outline:2px solid #0eb1de}.vj-riders i{width:26px;height:34px;overflow:hidden;border-radius:50%}.vj-riders i svg{width:100%;height:auto}
.vj-riders small{color:#4f8a92;font-weight:700}
.vj-data{font-size:11px;padding:14px 20px;border-top:1px solid #e3e8dc;color:#6d8580;line-height:1.9;direction:rtl}.vj-data summary{cursor:pointer}
.vj-data table{width:100%;text-align:right;border-collapse:collapse}.vj-data td,.vj-data th{border-bottom:1px solid #dce8df;padding:6px}.vj-data a{color:#008e9b}

@keyframes vj-ride{to{translate:-50% 2.5%}}
@keyframes vj-hop{to{translate:0 -10%}}
@keyframes vj-fall{to{top:110%;rotate:540deg;translate:40px 0}}
@keyframes vj-pulse{from{transform:scale(.6);opacity:.55}to{transform:scale(1.6);opacity:0}}
@keyframes vj-in{from{opacity:0}to{opacity:1}}

@media(max-width:700px){
 .vj-hud{flex-direction:column;align-items:stretch;padding:12px}.vj-hud-title strong{font-size:16px}
 .vj-counters{justify-content:flex-start;display:grid;grid-template-columns:repeat(3,1fr)}.vj-counters>div{min-width:0;padding:4px 7px}.vj-counters dd{font-size:12px;white-space:normal}
 .vj-stage{aspect-ratio:9/14;min-height:520px}
 .vj-question{top:2%;left:3%;right:3%;padding:12px;max-height:50%}.vj-answers{grid-template-columns:1fr 1fr}
 .vj-fact{left:4%;right:4%;max-width:none}
 .vj-map-title{right:10px;top:10px;padding:8px 12px}.vj-map-title strong{font-size:14px}
 .vj-map-distance{left:10px;right:10px;bottom:10px;min-width:0}.vj-map-scale{bottom:auto;top:76px;right:10px}
 .vj-summary{width:92%;right:4%;top:4%;max-height:62%;padding:14px}.vj-summary h2{font-size:18px}
 .vj-stage[data-shot=finished] .vj-map svg{width:100%;height:42%;position:absolute;bottom:0;left:0}
 .vj-footer{flex-wrap:wrap;padding:10px 12px}.vj-footer>span{width:100%;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.victory-game *{animation:none!important;transition:none!important}}

/* ===== Existing setup, live adapter and lobby styles (unchanged contract) ===== */
.tour-setup{padding:26px;background:#fffaf0;border:1px solid #d8e7e2;border-radius:16px;margin-bottom:20px;text-align:center}.tour-setup h2{margin:0 0 8px;font-size:24px}.tour-setup p{font-size:13px;color:#688580;line-height:1.8}
.tour-party{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:18px}.tour-party label{font-size:12px;display:flex;flex-direction:column;gap:6px;color:#49717a}
.tour-party select{padding:10px;border:1px solid #c2dadd;background:white;border-radius:9px;min-height:44px;font:inherit;color:#214854}
.tour-setup button,#restartTour{padding:13px 25px;background:#09a9cb;color:white;border-radius:9px;font-weight:bold;min-height:48px}#restartTour{margin:18px 0}.tour-error{color:#b15142;font-size:14px}
.vj-live{position:relative;direction:rtl}.vj-live-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:15px;background:#203d48;color:white;border-radius:12px;margin-bottom:12px}.vj-live-toolbar button{padding:10px 16px;border-radius:8px;background:#0aa9ce;color:white}.vj-live-toolbar span{margin-inline-end:auto}
.vj-live-roster{margin-top:14px;padding:15px;border-radius:12px;background:#fff}.vj-live-roster summary{cursor:pointer}.vj-roster-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:12px}.vj-roster-grid>div{display:flex;gap:5px;align-items:center;background:#edf6f8;padding:8px;border-radius:8px;font-size:12px}.vj-roster-grid .kid-character{width:30px;height:40px;flex-shrink:0}.vj-roster-grid .current{outline:2px solid #08a9c3}
.vj-live-paused{position:absolute;inset:70px 0 0;display:grid;place-items:center;background:#17394c77;z-index:20;pointer-events:none;color:#fff;font-size:26px}.vj-live [data-game-error]{color:#9f2828;background:#fff}
.vj-live .vj-question h2{font-size:clamp(15px,2vw,23px)}.vj-live .vj-answers button:disabled{opacity:.8}.vj-live .vj-answers .vj-correct{border-color:#199763;background:#daf4e6}.vj-live .vj-answers .vj-wrong{border-color:#d48e44;background:#fff0d5}.vj-region-choice{padding:10px 15px;max-width:100%}
.vj-tour-lobby{text-align:center;padding:25px;background:#edf7f4}.vj-lobby-bus{max-width:560px;margin:10px auto}.climb-game[data-route=tour] .theme-carousel{display:none}.climb-game[data-route=tour] .climb-settings>p{display:none}
.vj-live .vj-stage{aspect-ratio:auto;height:clamp(420px,calc(100dvh - 410px),650px);min-height:420px}
.climb-game[data-route=tour] .climb-audio-controls{display:none}

/* v2: arrival card while the bus rests on the map, crew markers, team livery */
.vj-map-stop{position:absolute;top:16px;right:18px;max-width:min(360px,70%);background:#fff;border-radius:18px;padding:14px 18px;box-shadow:0 12px 30px #1b4a5a33;direction:rtl;border-top:6px solid #f2a33a;animation:vj-in .4s ease-out}
.vj-map-stop span{display:block;font-size:12px;color:#5b7f86}.vj-map-stop b{display:block;font-size:26px;color:#0a6f82;line-height:1.3}.vj-map-stop small{display:block;font-size:13px;color:#40656d}.vj-map-stop p{margin:8px 0 0;font-size:14px;line-height:1.7;color:#4c5a3a;background:#fff6d9;border-radius:10px;padding:8px 10px}
.vj-stage[data-shot=mapStop] .vj-map-title{display:none}.vj-stage[data-shot=mapStop] .vj-caption{opacity:0}
.vj-crew text{font-family:var(--vj-font)}
.projector .vj-map-title{display:none}
@media(max-width:700px){.vj-map-stop{left:10px;right:10px;max-width:none;top:10px}.vj-map-stop b{font-size:21px}}

/* Steady HUD: fixed-width digits and fixed cell height, so changing numbers never reflow the page. */
.vj-counters dd,.vj-map-distance b,.vj-map-distance bdi{font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vj-counters>div{min-height:46px;contain:layout paint}
.vj-map-distance b{min-height:1.4em;display:block}
.vj-bus-body{will-change:transform}.vj-map-bus{will-change:transform}
@media(max-width:700px){.vj-counters>div{min-height:42px}.vj-counters dd{font-size:12px}}
/* City facts chosen for a stop: a large readable card */
.vj-fact.vj-fact-big{top:14%;bottom:auto;left:6%;right:6%;max-width:none;font-size:clamp(15px,2.6cqh,22px);line-height:1.7;padding:16px 20px;box-shadow:0 10px 30px #0002;animation:vjFactIn .4s ease-out}
.vj-fact.vj-fact-big b{display:block;font-size:.8em;margin-bottom:4px}
@keyframes vjFactIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.vj-fact.vj-fact-big{animation:none}}
/* Facts about the city ahead, read during the ride: big, centred, one card at a time (hidden on the map and at the questions). */
.vj-ride-info{position:absolute;top:13%;left:50%;width:min(860px,86%);transform:translateX(-50%);z-index:6;direction:rtl;text-align:center;background:#fffdf6;color:#173f4d;border:4px solid #f0a12b;border-radius:24px;padding:clamp(12px,2.4cqh,26px) clamp(16px,3cqw,34px);box-shadow:0 14px 40px #07364a33}
.vj-ride-info header{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-bottom:.4em}
.vj-ride-info header b{font-size:clamp(14px,2.6cqh,22px);color:#b86f00;background:#fff3dc;padding:2px 14px;border-radius:99px}
.vj-ride-info p{margin:0;font-size:clamp(17px,4.4cqh,34px);line-height:1.55;font-weight:700}
.vj-ride-info small{display:block;margin-top:.6em;font-size:clamp(11px,1.9cqh,15px);color:#5f7f86}
.vj-ride-dots{display:inline-flex;gap:6px}.vj-ride-dots i{width:10px;height:10px;border-radius:50%;background:#e3ecee}.vj-ride-dots i.on{background:#f0a12b}
.vj-ride-info.vj-ride-in{animation:vjRideIn .45s cubic-bezier(.2,1.3,.4,1)}
@keyframes vjRideIn{from{opacity:0;transform:translate(-50%,16px) scale(.96)}}
@container (max-width: 560px){.vj-ride-info{top:10%;width:92%;border-width:3px}.vj-ride-info p{font-size:clamp(16px,5.4cqw,24px)}}
@media (prefers-reduced-motion: reduce){.vj-ride-info.vj-ride-in{animation:none}}
/* Phones: the trip header is one thin line (place, stop, points) so the moving scene stays on screen;
   the full counters open as a quick pop-up from the (i) button and close on tap or after 5 s. */
.vj-hud-mini,.vj-hud-more{display:none}
@media(max-width:700px){
 .vj-hud{position:relative;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;padding:8px 12px;z-index:30}
 .vj-hud-title{flex:1;min-width:0}.vj-hud-title span{display:none}
 .vj-hud-title strong{font-size:15px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .vj-hud-mini{display:flex;gap:6px;margin:0;font-size:12px;white-space:nowrap}
 .vj-hud-mini span{background:#ffffff2e;border-radius:99px;padding:2px 8px}.vj-hud-mini span+span{background:#fff3c4;color:#6a4b06;font-weight:700}
 .vj-hud-more{display:grid;place-items:center;flex:none;width:30px;height:30px;min-height:0;padding:0;border-radius:50%;background:#ffffff33;border:1.5px solid #ffffff99;color:#fff;font:700 15px/1 Georgia,serif}
 .vj-hud-open .vj-hud-more{background:#fff;color:#0a98c4}
 .vj-hud .vj-counters{display:none}
 .vj-hud.vj-hud-open .vj-counters{display:grid;position:absolute;top:calc(100% + 6px);left:8px;right:8px;padding:10px;border-radius:16px;background:#0a7fa5f2;box-shadow:0 14px 30px #07364a55;animation:vjHudIn .2s ease-out}
}
@keyframes vjHudIn{from{opacity:0;transform:translateY(-6px)}}
/* Phones: the whole game is exactly one screen (no scrolling): thin header, the scene filling the rest,
   a thin controls bar and the stop dots. Riders list and data sources stay on larger screens. */
@media(max-width:700px){
 body.play main:has(.victory-game){padding:0}
 .victory-game{display:flex;flex-direction:column;height:100svh;margin:0;border-radius:0;overflow:hidden}
 .victory-game .vj-stage{flex:1 1 auto;aspect-ratio:auto;height:auto;min-height:0}
 .vj-footer{flex-wrap:nowrap;min-height:0;padding:6px 10px;gap:8px}
 .vj-footer>span{width:auto;flex:1;min-width:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .vj-footer button{min-height:34px;padding:6px 10px;font-size:12px}
 .vj-stops{padding:6px 10px;flex:none}
 .vj-stops span{font-size:0;min-width:24px;gap:0}.vj-stops span:not(:last-child):after{top:10px}
 .vj-stops i{height:20px;width:20px;font-size:10px}
 .vj-riders,.vj-data{display:none}
}

/* Street-level detail packs (OpenStreetMap): strokes keep their screen width at any zoom. */
.vj-detail path{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.vj-road,.vj-road-casing,.vj-line0,.vj-line1,.vj-arr{fill:none}
.vj-detail .vj-d-areas path{stroke:none}
.vj-road-casing{stroke:#cdbf98}
.vj-road{stroke:#fffdf7}
.vj-road-casing.vj-r5{stroke-width:2.6px}.vj-road.vj-r5{stroke-width:1.4px}
.vj-road-casing.vj-r4{stroke-width:4.2px}.vj-road.vj-r4{stroke-width:2.8px}
.vj-road-casing.vj-r3{stroke-width:5px}.vj-road.vj-r3{stroke-width:3.4px}
.vj-road-casing.vj-r2{stroke-width:6px;stroke:#e0b55f}.vj-road.vj-r2{stroke-width:4.2px;stroke:#ffe7a8}
.vj-road-casing.vj-r1{stroke-width:6.6px;stroke:#d99b45}.vj-road.vj-r1{stroke-width:4.6px;stroke:#ffd98a}
.vj-road-casing.vj-r0{stroke-width:7.4px;stroke:#c8812d}.vj-road.vj-r0{stroke-width:5.2px;stroke:#f7b955}
.vj-line0{stroke:#7d7f86;stroke-width:2px;stroke-dasharray:6 4}
.vj-line1{stroke:#0aa5bd;stroke-width:2.2px}
.vj-arr{stroke:#8a6bc2;stroke-width:2px;stroke-dasharray:7 5;opacity:.75}
.vj-arr-name{fill:#7a5ab0;opacity:.45;font-weight:800;paint-order:stroke;stroke:#fff;stroke-width:.04em}
.vj-place{fill:#6b5a8e;font-weight:700;paint-order:stroke;stroke:#fffaf0;stroke-width:.25em;stroke-linejoin:round}
.vj-street-name{fill:#4a4232;font-weight:600;paint-order:stroke;stroke:#fffdf7;stroke-width:.3em;stroke-linejoin:round}
.vj-poi circle{fill:#e2483f;stroke:#fff;stroke-width:1.5px;vector-effect:non-scaling-stroke}
.vj-poi text{fill:#7a2e28;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:.3em;stroke-linejoin:round}
.vj-leg-road.vj-where{font-weight:700;color:#0a5f70}
