/* Year 2 rewards: the mountain trail and the "you earned" panel (J-20261110-01). Script: js/rewards/trail.js */
.rwt{background:linear-gradient(180deg,#2F7C88,#1F5664);color:#fff;border-radius:24px;padding:20px 20px 16px;margin:16px 0 24px;display:flex;flex-direction:column;gap:12px;min-width:0}
.rwt h2{margin:0;color:#fff;font-family:var(--display);font-weight:800}
.rwt-name{margin:0;font-weight:700}
.rwt-chips{display:flex;flex-wrap:wrap;gap:8px}
.rwt-chip{min-height:44px;padding:8px 16px;border-radius:999px;border:0;background:rgba(255,255,255,.18);color:#fff;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.rwt-chip[aria-pressed=true]{background:#fff;color:#1F5664}   /* teal for every year (Deb, 10 Nov 2026) */
.rwt-chip:focus-visible{outline:3px solid var(--sunny);outline-offset:2px}
.rwt-scroll{max-height:min(85vh,900px);overflow-y:auto;border-radius:16px;background:#7FB6F0;overscroll-behavior:contain}
.rwt-map{display:block;width:100%;height:auto}
.rwt-path{fill:none;stroke:#fff;stroke-opacity:.85;stroke-width:8;stroke-dasharray:0 16;stroke-linecap:round}   /* 0-length dashes with round caps: perfect round dots */
.rwt-done{fill:none;stroke:var(--sunny);stroke-width:9;stroke-dasharray:0 16;stroke-linecap:round}
.rwt-stop{cursor:pointer;outline:none;color:#fff}
.rwt-hit{fill:transparent}
.rwt-dot{stroke:#fff;stroke-width:3}
.rwt-stop.is-done .rwt-dot{fill:#fff;stroke:#1F5F6B}
.rwt-stop.is-next .rwt-dot{fill:var(--sunny);stroke:#111827}
.rwt-stop.is-up .rwt-dot{fill:#1F5F6B;stroke-dasharray:5 5}
.rwt-num{font-family:var(--display);font-weight:800;font-size:17px;fill:#fff;pointer-events:none}
.rwt-stop.is-done .rwt-num{fill:#1F5F6B}
.rwt-stop.is-next .rwt-num{fill:#111827}
.rwt-lbl{font-family:var(--body);font-weight:800;font-size:15px;fill:#0B1B3A;pointer-events:none}
.rwt-tag{fill:#fff;fill-opacity:.94;stroke:#0B1B3A;stroke-opacity:.15;stroke-width:1;pointer-events:none}
.rwt-stop:hover .rwt-dot,.rwt-stop:focus-visible .rwt-dot{stroke-width:5}
.rwt-stop:focus-visible .rwt-hit{stroke:var(--sunny);stroke-width:4;stroke-dasharray:none}
.rwt-pulse{fill:none;stroke:var(--sunny);stroke-width:4;transform-box:fill-box;transform-origin:center;animation:rwt-pulse 2.4s ease-out infinite}
@keyframes rwt-pulse{from{transform:scale(1);opacity:.9}to{transform:scale(1.6);opacity:0}}
/* the heading and how far to the top share one row (Deb, 10 Nov 2026); on a narrow screen the note drops under the heading */
.rwt-top{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
body.app-ui #app p.rwt-sign{display:flex;gap:10px;align-items:center;margin:0;background:rgba(255,255,255,.16);border-radius:999px;padding:8px 16px 8px 12px;font-size:16px}
.rwt-sign svg,.rwt-signmedal{flex:0 0 auto}
.rwt-signmedal{width:22px;height:auto}
@media (max-width:620px){.rwt-scroll{max-height:none;overflow:visible}.rwt{padding:16px 12px 12px;margin-left:-4px;margin-right:-4px}}

/* Years 5 and 6 (Deb, 10 Nov 2026, from her Gemini redesign): soft hills, a curving sandy path, 3D puck stops, white labels */
.rwt-hills .rwt-scroll{background:#B7D3A0}
.rwt-older .rwt-bg{filter:blur(.6px)}
.rwt-sand{fill:none;stroke:var(--sand,#E8D2A2);stroke-width:24;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 3px 0 var(--sand-edge,#B9945A))}
/* the path's colour for each scene, so it stands out from the ground */
.rwt-s-snow{--sand:#A9C8E4;--sand-edge:#4F7193}
.rwt-s-outback{--sand:#F1D9A8;--sand-edge:#8E3B1C}
.rwt-s-beach{--sand:#FFF7E6;--sand-edge:#C08A3E}
.rwt-s-rainforest{--sand:#EEDDB2;--sand-edge:#5E3F24}
.rwt-s-autumn{--sand:#F7EAD0;--sand-edge:#8A5A2E}
.rwt-s-canyon{--sand:#F5E2C2;--sand-edge:#6E3F26}
.rwt-older .rwt-path{stroke:none}
.rwt-older .rwt-done{stroke:#E9A400;stroke-width:8;stroke-dasharray:0 14}
.rwt-older .rwt-puck{fill:#174F56}
.rwt-older .rwt-dot{fill:#2B8A92;stroke:#7FD1D6;stroke-width:2;stroke-dasharray:none}
.rwt-older .rwt-stop.is-up .rwt-dot{fill:#2B8A92;stroke-dasharray:none}
.rwt-older .rwt-stop.is-done .rwt-dot{fill:#fff;stroke:#2B8A92}
.rwt-older .rwt-stop.is-done .rwt-num{fill:#1E5F66}
.rwt-older .rwt-stop.is-next .rwt-puck{fill:#12708F}
.rwt-older .rwt-stop.is-next .rwt-dot{fill:#29ABE2;stroke:#fff;stroke-width:3;filter:drop-shadow(0 0 10px #7FE3FF)}
.rwt-older .rwt-stop.is-next .rwt-num{fill:#fff}
.rwt-older .rwt-num{font-size:18px}
.rwt-older .rwt-pulse{stroke:#7FE3FF;stroke-width:5}
.rwt-older .rwt-lbl{fill:#fff;font-size:15px;stroke:#17353A;stroke-width:2.6px;stroke-linejoin:round;paint-order:stroke fill;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}
.rwt-older .rwt-stop:hover .rwt-dot,.rwt-older .rwt-stop:focus-visible .rwt-dot{stroke:#fff;stroke-width:3}

/* the "you earned" panel on the lesson-finished and results screens */
.rwe{background:#fff;color:var(--ink);border:2px solid var(--line);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:14px;text-align:left}
.rwe-got{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.rwe-stars{display:flex;gap:6px}
body.app-ui #app .rwe p.rwe-coins{display:flex;align-items:center;gap:8px;margin:0;font-family:var(--display);font-weight:800;font-size:30px;color:var(--ink)}
.rwe-prize{display:flex;gap:14px;align-items:center;background:var(--panel);border-radius:16px;padding:12px}
.rwe-prize > div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rwe-pic{width:64px;height:64px;object-fit:contain;flex:0 0 auto}
.rwe-lbl{font-size:14px;font-weight:700;color:var(--muted)}
.rwe-prize b{font-family:var(--display);font-size:19px}
.rwe-bar{height:10px;border-radius:99px;background:var(--line);overflow:hidden;margin-top:6px}
.rwe-bar i{display:block;height:100%;background:var(--sunny);border-radius:99px}
.rwe .rwe-free{align-self:flex-start;background:var(--sunny);color:var(--ink);box-shadow:0 var(--lip) 0 #C79200}
body.app-ui #app .rwe p.rwe-lock{display:flex;gap:10px;align-items:center;margin:0;color:var(--muted);font-weight:700}
.rwe-lock svg{flex:0 0 auto}
/* first showing: stars pop in one by one, the coins count up (trail.js), then the coin row gives one small bounce */
.rwe.anim .rwe-stars .lit{animation:rwe-star .45s ease-out both;animation-delay:var(--d)}
@keyframes rwe-star{from{transform:scale(.3);opacity:0}70%{transform:scale(1.15)}to{transform:scale(1);opacity:1}}
.rwe-coins.bump{animation:rwe-bump .4s ease-out}
@keyframes rwe-bump{50%{transform:translateY(-6px)}}
@media (prefers-reduced-motion:reduce){.rwt-pulse,.rwe *{animation:none!important}}
.rwt-go{font-size:15px;letter-spacing:.5px}
@media (max-width:620px){.rwt-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-12px;padding-right:12px}.rwt-chips::-webkit-scrollbar{display:none}.rwt-chip{flex:none}}
.rwt-bg{filter:blur(1.5px) saturate(1.05)}   /* the mountain is a small 1280x720 picture: softening hides its compression grain once the trail scales it up */
