/* Voyage: the climb map (the game's sky, neon trail and planets), preview dialog, level bar, result card, win card and the world
   overlay. Colours come from the custom properties of style.css :root and from the tokens below. No external images, no
   filters on the map. Every selector starts with .camp- or #camp. Motion is transform and opacity only, behind
   prefers-reduced-motion and the game's Calm setting (.camp-calm on the map). */

/* ---------- tokens: the map sheet (light, then dark) ---------- */
#campSheet {
  --camp-star: #E0A21A; --camp-star-off: rgba(85, 82, 122, 0.45);
  --camp-plate: rgba(13, 11, 30, 0.78); --camp-plate-text: #FFFFFF;
  --camp-shade: rgba(226, 222, 243, 0.84);
  --camp-dot: rgba(85, 82, 122, 0.55);
  --camp-spark: rgba(106, 114, 160, 0.55);
  --camp-panel: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(232, 229, 244, 0.86));
  --camp-fade: rgba(242, 240, 250, 0.94); --camp-fade-b: rgba(227, 223, 243, 0.94);
  --w-accent: #0B7578;
}
.camp-w1 { --w-accent: #0B7578; --w-core: #0B7578; --w-glow: rgba(11, 117, 120, 0.16); --w-neb-a: rgba(143, 214, 207, 0.36); --w-neb-b: rgba(156, 196, 242, 0.34); }
.camp-w2 { --w-accent: #5B3FD0; --w-core: #5B3FD0; --w-glow: rgba(91, 63, 208, 0.16); --w-neb-a: rgba(185, 163, 255, 0.36); --w-neb-b: rgba(255, 190, 220, 0.30); }
.camp-w3 { --w-accent: #B4431F; --w-core: #B4431F; --w-glow: rgba(180, 67, 31, 0.16); --w-neb-a: rgba(255, 184, 107, 0.32); --w-neb-b: rgba(255, 158, 138, 0.24); }
.camp-w4 { --w-accent: #B4380F; --w-core: #B4380F; --w-glow: rgba(180, 56, 15, 0.16); --w-neb-a: rgba(255, 170, 120, 0.32); --w-neb-b: rgba(255, 120, 90, 0.24); }
.camp-w5 { --w-accent: #0E6F94; --w-core: #0E6F94; --w-glow: rgba(14, 111, 148, 0.16); --w-neb-a: rgba(150, 220, 240, 0.36); --w-neb-b: rgba(190, 230, 255, 0.34); }
.camp-w6 { --w-accent: #8A2C8F; --w-core: #8A2C8F; --w-glow: rgba(138, 44, 143, 0.16); --w-neb-a: rgba(230, 170, 240, 0.34); --w-neb-b: rgba(160, 200, 255, 0.30); }
.camp-w7 { --w-accent: #6A5210; --w-core: #6A5210; --w-glow: rgba(106, 82, 16, 0.16); --w-neb-a: rgba(240, 210, 130, 0.32); --w-neb-b: rgba(200, 180, 150, 0.24); }
@media (prefers-color-scheme: dark) {
  #campSheet {
    --camp-star: #FFD36B; --camp-star-off: rgba(171, 167, 208, 0.42);
    --camp-shade: rgba(13, 11, 30, 0.80);
    --camp-dot: rgba(171, 167, 208, 0.50);
    --camp-spark: rgba(255, 255, 255, 0.80);
    --camp-panel: linear-gradient(160deg, rgba(32, 28, 66, 0.92), rgba(23, 20, 51, 0.82));
    --camp-fade: rgba(13, 11, 30, 0.94); --camp-fade-b: rgba(23, 20, 51, 0.94);
    --w-accent: #3FD8C6;
  }
  .camp-w1 { --w-accent: #3FD8C6; --w-core: #E3FFFB; --w-glow: rgba(63, 216, 198, 0.30); --w-neb-a: rgba(47, 134, 214, 0.20); --w-neb-b: rgba(63, 216, 198, 0.11); }
  .camp-w2 { --w-accent: #B6A9FF; --w-core: #F4F1FF; --w-glow: rgba(182, 169, 255, 0.32); --w-neb-a: rgba(107, 79, 216, 0.24); --w-neb-b: rgba(214, 120, 200, 0.10); }
  .camp-w3 { --w-accent: #FF9E7A; --w-core: #FFEFE8; --w-glow: rgba(255, 143, 112, 0.30); --w-neb-a: rgba(226, 87, 58, 0.17); --w-neb-b: rgba(255, 184, 107, 0.10); }
  .camp-w4 { --w-accent: #FF8A4C; --w-core: #FFE2D0; --w-glow: rgba(255, 138, 76, 0.30); --w-neb-a: rgba(226, 87, 58, 0.18); --w-neb-b: rgba(255, 170, 90, 0.10); }
  .camp-w5 { --w-accent: #7FD8F5; --w-core: #E6F9FF; --w-glow: rgba(127, 216, 245, 0.30); --w-neb-a: rgba(47, 134, 214, 0.20); --w-neb-b: rgba(160, 230, 255, 0.10); }
  .camp-w6 { --w-accent: #E59BF0; --w-core: #FBEFFD; --w-glow: rgba(229, 155, 240, 0.30); --w-neb-a: rgba(107, 79, 216, 0.22); --w-neb-b: rgba(80, 200, 220, 0.10); }
  .camp-w7 { --w-accent: #F2D27A; --w-core: #FFF8E0; --w-glow: rgba(242, 210, 122, 0.30); --w-neb-a: rgba(180, 140, 60, 0.18); --w-neb-b: rgba(255, 220, 150, 0.10); }
}

/* ---------- level bar (during a level) ---------- */
.camp-bar {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; min-width: 0;
  padding: 8px 10px; border-radius: 14px; background: var(--surface); color: var(--text);
  box-shadow: 0 4px 12px var(--shadow); font-size: 14px; font-weight: 700;
}
.camp-bar[hidden], .camp-bar [hidden] { display: none !important; }
.camp-bar-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.camp-bar-title { font-weight: 900; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.camp-bar-status { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.camp-bar-btns { display: flex; gap: 8px; margin-top: 2px; }
.camp-bar-btns .btn { flex: 1 1 0; min-height: 44px; min-width: 44px; padding: 6px 12px; font-size: 15px; }

/* ---------- the sheet in map view: the game's sky shows through (the same star image as the page) ---------- */
#campSheet.camp-mapview-on { background: var(--bgimg, none) 0 0 / 100% 100% no-repeat, linear-gradient(180deg, var(--bg), var(--bg2)); backdrop-filter: none; padding: env(safe-area-inset-top) 0 0; overflow: hidden; }
#campSheet.camp-mapview-on .screen-inner { width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; text-align: left; }
#campCard.camp-card-map { height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; display: flex; flex-direction: column; min-height: 0; }
.camp-mapview { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; color: var(--text); font-family: var(--font); text-align: left; }
.camp-mapview [hidden] { display: none !important; }
.camp-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header: sky coloured, no border; a 20 px fade under it softens the scroll edge (92 px tall) ---------- */
.camp-top { position: relative; z-index: 4; flex: 0 0 auto; padding: 0 12px; background: var(--camp-fade); }
.camp-top::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 20px; background: linear-gradient(180deg, var(--camp-fade), transparent); pointer-events: none; }
.camp-top > * { max-width: 536px; margin-left: auto; margin-right: auto; }
.camp-top-row { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.camp-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--glass); border-radius: 50%; background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px var(--shadow); cursor: pointer; }
.camp-title { flex: 1 1 auto; min-width: 0; }
.camp-h2 { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }
.camp-sub { margin: 1px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.camp-shop { flex: 0 0 auto; height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 14px 0 12px; border: 1.5px solid var(--glass); border-radius: 22px; background: var(--surface); color: var(--text); font: inherit; font-weight: 800; font-size: 15px; box-shadow: 0 2px 8px var(--shadow); cursor: pointer; }
.camp-shop-n { font-weight: 900; font-variant-numeric: tabular-nums; }
.camp-shop-word { color: var(--muted); padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line); }
.camp-worlds { display: flex; gap: 0; height: 38px; margin-top: 0; margin-bottom: 6px; padding: 3px; box-sizing: border-box; border-radius: 19px; background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--line); }
.camp-wbtn { flex: 1 1 0; min-width: 0; height: 30px; padding: 0 6px; border: 0; border-radius: 15px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.camp-wbtn-ico { flex: 0 0 auto; width: 16px; height: 16px; display: block; }
.camp-wbtn-name { color: var(--muted); }
.camp-wbtn-sub { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0.85; }
.camp-wbtn.camp-wbtn-on { flex: 4 1 0; background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--w-accent); }
.camp-wbtn.camp-wbtn-on .camp-wbtn-name { color: var(--text); }
.camp-wbtn-locked .camp-wbtn-ico { opacity: 0.45; }
/* seven worlds in one row (flex: the active button is four times as wide): only the active button shows its name and count
   (aria-label carries the full text) */
.camp-wbtn:not(.camp-wbtn-on) .camp-wbtn-name, .camp-wbtn:not(.camp-wbtn-on) .camp-wbtn-sub { display: none; }

/* ---------- scroller, canvas, centred column ---------- */
.camp-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.camp-canvas { position: relative; contain: layout paint; }
.camp-col { position: absolute; top: 0; height: 100%; }
.camp-svg { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.camp-levels { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; padding: 0; list-style: none; z-index: 3; pointer-events: none; }

/* ---------- world zones: nebula tint and sparkles only. No sky fill, no horizon, no body: the fixed sky shows through ---------- */
.camp-zone { position: absolute; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(circle 340px at 86% 26%, var(--w-neb-a), transparent 100%),
    radial-gradient(circle 300px at 8% 50%, var(--w-neb-b), transparent 100%),
    radial-gradient(circle 320px at 90% 74%, var(--w-neb-a), transparent 100%); }
.camp-land .camp-zone {
  background:
    radial-gradient(circle 300px at 18% 20%, var(--w-neb-a), transparent 100%),
    radial-gradient(circle 280px at 52% 96%, var(--w-neb-b), transparent 100%),
    radial-gradient(circle 300px at 82% 10%, var(--w-neb-a), transparent 100%); }
.camp-spark { position: absolute; display: block; pointer-events: none; }
.camp-spark polygon { fill: var(--camp-spark); }

/* ---------- world title card (a soft gradient panel, as the game's cards); the trail runs under it ---------- */
.camp-banner { position: absolute; z-index: 2; box-sizing: border-box; padding: 14px 14px 4px; display: flex; align-items: center; }
.camp-banner-card { position: relative; flex: 1 1 auto; min-width: 0; box-sizing: border-box; padding: 11px 16px 12px; border-radius: 22px; background: var(--camp-panel); border: 1px solid var(--line); box-shadow: 0 10px 28px var(--shadow); }
.camp-banner-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.camp-overline { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-accent); }
.camp-banner-h { margin: 0; font-size: 25px; font-weight: 900; line-height: 1.08; letter-spacing: -0.01em; color: var(--text); font-family: inherit; }
.camp-counts { margin: 0 0 3px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 12px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.camp-counts span { display: inline-flex; align-items: center; gap: 4px; }
.camp-counts .camp-count-dim { color: var(--muted); font-weight: 700; }
.camp-counts .camp-star-row { gap: 1px; }
.camp-blurb { margin: 4px 0 0; font-size: 12.5px; line-height: 1.25; font-weight: 700; color: var(--muted); }
.camp-meter { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.camp-meter-fill { height: 100%; border-radius: 2px; background: var(--w-accent); }
.camp-foot { position: absolute; z-index: 2; margin: 0; padding: 0 20px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.camp-land .camp-banner { padding: 8px 10px; }
.camp-land .camp-banner-card { padding: 10px 12px; }
.camp-land .camp-banner-head { flex-direction: column; align-items: flex-start; gap: 2px; }
.camp-land .camp-counts { align-items: flex-start; margin: 4px 0 0; }
.camp-land .camp-banner-h { font-size: 21px; }
.camp-land .camp-blurb { font-size: 12px; }
@media (max-width: 379px) { .camp-port .camp-blurb { display: none; } }

/* ---------- trail: the jar's neon tube recipe (soft glow, colour, light core). Dots while unplayed. No filters ---------- */
.camp-seg { fill: none; stroke-linecap: round; }
.camp-seg-dot { stroke: var(--camp-dot); stroke-width: 2.4; stroke-dasharray: 0.1 10; }
.camp-seg-glow { stroke: var(--w-glow); stroke-width: 8; }
.camp-seg-tube { stroke: var(--w-accent); stroke-width: 3; }
.camp-seg-core { stroke: var(--w-core); stroke-width: 1.2; }
.camp-seg-glow, .camp-seg-tube, .camp-seg-core { display: none; }
.camp-seg-on .camp-seg-glow, .camp-seg-on .camp-seg-tube, .camp-seg-on .camp-seg-core { display: inline; }
.camp-seg-on .camp-seg-dot { display: none; }
.camp-draw .camp-seg-dot { display: inline; }

/* ---------- nodes: the game's own planet sprites, one canvas per node ---------- */
.camp-level { position: absolute; left: 0; top: 0; width: 0; height: 0; margin: 0; padding: 0; list-style: none; }
.camp-node { position: absolute; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); font: inherit; cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.camp-planet { position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d); margin: calc(var(--d) * -0.5) 0 0 calc(var(--d) * -0.5); display: block; border-radius: 50%; }
.camp-shade { position: absolute; left: 50%; top: 50%; width: calc(var(--d) + 2px); height: calc(var(--d) + 2px); margin: calc(var(--d) * -0.5 - 1px) 0 0 calc(var(--d) * -0.5 - 1px); border-radius: 50%; background: var(--camp-shade); box-shadow: inset 0 0 0 1.5px var(--camp-dot); pointer-events: none; }
.camp-num { position: absolute; left: 50%; top: calc(50% + var(--d) * 0.5 - 13px); transform: translateX(-50%); min-width: 26px; height: 21px; box-sizing: border-box; padding: 0 7px; border-radius: 11px; background: var(--camp-plate); color: var(--camp-plate-text); font-size: 14px; font-weight: 900; line-height: 21px; text-align: center; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; pointer-events: none; }
.camp-num .camp-ico { width: 11px; height: 11px; flex: 0 0 auto; }
.camp-s-locked .camp-num { background: var(--surface2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.camp-s-skipped .camp-num { background: var(--surface2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.camp-s-current .camp-num { height: 24px; min-width: 30px; line-height: 24px; font-size: 16px; border-radius: 12px; top: calc(50% + var(--d) * 0.5 - 14px); }
.camp-boss .camp-num { height: 24px; min-width: 32px; line-height: 24px; font-size: 16px; border-radius: 12px; top: calc(50% + var(--d) * 0.5 - 15px); }
.camp-node-stars { position: absolute; left: 50%; top: calc(50% + var(--d) * 0.5 + 10px); transform: translateX(-50%); display: block; pointer-events: none; }
.camp-boss .camp-node-stars { top: calc(50% + var(--d) * 0.5 + 12px); }
.camp-star-row { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.camp-star-svg { display: block; width: 12px; height: 12px; }
.camp-star-svg polygon { fill: none; stroke: var(--camp-star-off); stroke-width: 1.6; stroke-linejoin: round; }
.camp-star-svg.camp-star-on polygon { fill: var(--camp-star); stroke: var(--camp-star); stroke-width: 1; }
.camp-s-skipped .camp-planet { opacity: 0.55; }
/* the living body (map-life.js): one canvas per node, centred and maybe larger than the button (rings, moons, tails) */
.camp-body { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; pointer-events: none; }
.camp-off .camp-body, .camp-off .camp-planet { visibility: hidden; }
.camp-s-locked .camp-body { opacity: 0.5; filter: saturate(0.35) brightness(0.8); }
.camp-s-skipped .camp-body { opacity: 0.6; }
/* level 45: the planet's own ring is the mark, the thin boss orbit is hidden */
.camp-boss-ring .camp-orbit { display: none; }
/* current: the ring the game draws around the NEXT piece, plus one slow pulse */
.camp-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--d) + 14px); height: calc(var(--d) + 14px); margin: calc(var(--d) * -0.5 - 7px) 0 0 calc(var(--d) * -0.5 - 7px); box-sizing: border-box; border-radius: 50%; border: 2.5px solid var(--w-accent); box-shadow: 0 0 14px var(--w-glow), inset 0 0 10px var(--w-glow); pointer-events: none; }
.camp-ring::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--w-accent); opacity: 0; }
/* boss: a thin tilted orbit with one small moon */
.camp-orbit { position: absolute; left: 50%; top: 50%; width: calc(var(--d) * 1.62); height: calc(var(--d) * 0.5); margin: calc(var(--d) * -0.25) 0 0 calc(var(--d) * -0.81); transform: rotate(-16deg); overflow: visible; pointer-events: none; }
.camp-orbit ellipse, .camp-orbit path { fill: none; stroke: var(--w-accent); stroke-width: 1.4; opacity: 0.75; }
.camp-orbit circle { fill: var(--w-core); stroke: var(--w-accent); stroke-width: 1.2; }
.camp-s-locked .camp-orbit { opacity: 0.4; }
.camp-node:focus-visible, .camp-pv button:focus-visible, .camp-mapview button:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* ---------- labels: plain type on the sky; only the current level gets a card ---------- */
.camp-label { position: absolute; top: 0; width: max-content; box-sizing: border-box; padding: 0 2px; color: var(--text); text-align: left; pointer-events: none; min-width: 0; text-shadow: 0 1px 3px var(--camp-fade), 0 0 8px var(--camp-fade); }
.camp-port .camp-label { transform: translateY(-50%); }
.camp-label.camp-side-l { text-align: right; }
.camp-label-over { display: block; font-size: 10.5px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-accent); margin-bottom: 1px; }
.camp-label-title { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* whole facts drop when they do not fit (wrapped lines are clipped): no cut words, no ellipsis */
.camp-label-meta { display: flex; flex-wrap: wrap; height: 15px; margin-top: 2px; font-size: 12px; font-weight: 700; line-height: 15px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.camp-side-l .camp-label-meta { justify-content: flex-end; }
.camp-land .camp-label-meta { justify-content: center; }
.camp-meta-bit { display: inline-flex; align-items: center; flex: 0 0 auto; }
.camp-label-meta .camp-ico { width: 12px; height: 12px; margin-right: 4px; flex: 0 0 auto; }
.camp-meta-bit + .camp-meta-bit::before { content: '\00B7'; margin: 0 5px; color: var(--muted); font-weight: 900; }
.camp-meta-mod { color: var(--w-accent); }
.camp-label-locked .camp-label-title { color: var(--muted); font-weight: 700; }
.camp-label-locked .camp-label-meta { opacity: 0.7; }
.camp-label-current { padding: 8px 12px 9px; border-radius: 16px; background: var(--camp-panel); border: 1px solid var(--line); box-shadow: 0 8px 22px var(--shadow); text-shadow: none; }
.camp-label-current .camp-label-title { font-size: 15px; font-weight: 900; }
.camp-port .camp-label-current .camp-label-title { white-space: normal; }
.camp-port .camp-label-current .camp-label-meta { height: auto; flex-direction: column; flex-wrap: nowrap; }
.camp-port .camp-label-current .camp-meta-bit + .camp-meta-bit::before { content: none; }
.camp-land .camp-label { text-align: center; width: 104px; }
.camp-land .camp-label-title { font-size: 12.5px; }
.camp-land .camp-label-meta { font-size: 11px; }
/* landscape: no card and no overline (the row is short); the current title takes the world accent */
.camp-land .camp-label-current { padding: 0 2px; border: 0; border-radius: 0; background: none; box-shadow: none; text-shadow: 0 1px 3px var(--camp-fade), 0 0 8px var(--camp-fade); }
.camp-land .camp-label-current .camp-label-title { font-size: 13px; color: var(--w-accent); }
.camp-land .camp-label-over { display: none; }
.camp-land .camp-meta-bit + .camp-meta-bit { display: none; }

/* ---------- bottom: floats on the sky (portrait: a row under the scroller; landscape: bottom right) ---------- */
.camp-bottom { position: relative; z-index: 4; flex: 0 0 auto; display: flex; justify-content: center; box-sizing: border-box; min-height: 64px; padding: 4px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--camp-fade-b); }
.camp-bottom::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; background: linear-gradient(0deg, var(--camp-fade-b), transparent); pointer-events: none; }
.camp-bottom-in { flex: 1 1 auto; max-width: 536px; display: flex; align-items: center; gap: 10px; }
.camp-locate { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--glass); border-radius: 50%; background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px var(--shadow); cursor: pointer; }
#campCard .camp-bottom .camp-primary { flex: 1 1 auto; min-width: 0; height: 50px; margin: 0; padding: 0 18px; border: 0; border-radius: 26px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 16px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 18px var(--accent-glow); cursor: pointer; }
.camp-primary-k { font-weight: 700; opacity: 0.8; margin-right: 6px; }
#campCard .camp-bottom .camp-done-msg { flex: 1 1 auto; margin: 0; text-align: center; font-size: 15px; font-weight: 900; color: var(--text); }
.camp-land .camp-bottom { position: absolute; left: auto; right: 0; bottom: 0; width: auto; min-height: 0; padding: 0 calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) 0; background: none; }
.camp-land .camp-bottom::before { display: none; }
.camp-land .camp-locate { flex-basis: 44px; width: 44px; height: 44px; }
#campSheet.camp-land .camp-bottom .camp-primary { height: 44px; font-size: 14px; padding: 0 16px; }
/* landscape: the button is Continue alone (the level name stays in its aria-label), so it covers the fewest map labels */
#campSheet.camp-land .camp-bottom .camp-primary > span:not(.camp-primary-k) { display: none; }

/* landscape header: one row, 48 px */
.camp-land .camp-top { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 10px; }
.camp-land .camp-top > * { margin: 0; max-width: none; }
.camp-land .camp-top-row { display: contents; }
.camp-land .camp-close { width: 40px; height: 40px; flex-basis: 40px; }
.camp-land .camp-title { flex: 0 0 auto; }
.camp-land .camp-sub { display: none; }
.camp-land .camp-worlds { order: 2; width: 420px; margin: 0 0 0 auto; height: 36px; }
.camp-land .camp-wbtn { height: 28px; padding: 0 3px; }
.camp-land .camp-wbtn.camp-wbtn-on { flex-grow: 6; }
.camp-land .camp-shop { order: 3; height: 40px; }
.camp-land .camp-scroll { overflow-x: auto; overflow-y: hidden; }

/* ---------- preview dialog: bottom sheet (portrait), right panel (landscape) ---------- */
.camp-preview { position: fixed; left: 0; right: 0; bottom: 0; top: auto; margin: 0 auto; width: 100%; max-width: 420px; max-height: 70vh; max-height: 70dvh; height: auto; box-sizing: border-box; padding: 0; border: 1px solid var(--line); border-radius: 26px 26px 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -8px 30px var(--shadow); overflow-y: auto; overscroll-behavior: contain; }
.camp-preview::backdrop { background: rgba(0, 0, 0, 0.35); }
.camp-land .camp-preview { left: auto; right: 0; top: 0; bottom: 0; margin: 0; width: 276px; max-width: 276px; max-height: none; height: 100%; border-radius: 26px 0 0 26px; }
/* landscape: the panel is compact, so its title, goal rows and Play and Skip fit a 360 px high screen (the facts below scroll inside it) */
.camp-land .camp-pv { padding: 10px 12px; }
.camp-land .camp-pv-title { margin: 4px 0; font-size: 18px; }
.camp-land .camp-pv-planet { width: 32px; height: 32px; }
.camp-land .camp-goal { margin: 4px 0; padding: 6px 10px; gap: 8px; }
.camp-land .camp-goal-ico { width: 18px; height: 18px; }
.camp-land .camp-goal-k { font-size: 10px; }
.camp-land .camp-goal-v { font-size: 13px; }
.camp-land .camp-pv-actions { margin: auto -12px 0; padding: 8px 12px calc(6px + env(safe-area-inset-bottom)); }
/* landscape: the stars-left line repeats the goal ladder (its Next row), so it is left out to keep the panel on one screen */
.camp-land .camp-pv > .camp-strong { display: none; }
#campSheet.camp-land .camp-pv-actions .btn { min-height: 44px; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .camp-preview[open] { animation: camp-sheet-up 220ms ease-out; }
  .camp-land .camp-preview[open] { animation: camp-sheet-left 220ms ease-out; }
}
@keyframes camp-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes camp-sheet-left { from { transform: translateX(100%); } to { transform: translateX(0); } }
.camp-pv { box-sizing: border-box; padding: 16px 16px calc(12px + env(safe-area-inset-bottom)); min-height: 100%; display: flex; flex-direction: column; }
.camp-pv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.camp-pv-headl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.camp-pv-planet { flex: 0 0 auto; width: 40px; height: 40px; display: block; border-radius: 50%; }
.camp-pv-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface2); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.camp-pv-title { margin: 8px 0 6px; font-size: 22px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; color: var(--text); font-family: inherit; }
.camp-pv .camp-chip { font-size: 12px; line-height: 22px; padding: 0 9px; border-radius: 11px; }
.camp-chip { display: inline-flex; align-items: center; gap: 3px; flex: 0 1 auto; min-width: 0; max-width: 100%; padding: 0 6px; border-radius: 9px; background: var(--surface2); color: var(--muted); font-size: 11px; font-weight: 800; line-height: 18px; white-space: nowrap; }
.camp-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.camp-chip .camp-ico { width: 12px; height: 12px; flex: 0 0 auto; }
.camp-chip-world { background: var(--w-accent); color: var(--surface); }
.camp-chip-skip { background: transparent; border: 1px dashed var(--muted); }
.camp-chip-mod { color: var(--w-accent); }
.camp-chip-goal { color: var(--text); }
.camp-goal { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 10px 12px; border-radius: 14px; background: var(--surface2); border-left: 4px solid var(--w-accent); }
.camp-goal-ico { flex: 0 0 auto; width: 22px; height: 22px; color: var(--w-accent); }
.camp-goal-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.camp-goal-k { font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.camp-goal-v { font-size: 15px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.camp-ladder { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.camp-rung { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; box-sizing: border-box; border-radius: 12px; background: var(--surface2); color: var(--muted); font-size: 14px; font-weight: 700; }
.camp-rung-earned { color: var(--text); }
.camp-rung-next { background: var(--surface); color: var(--text); font-weight: 900; box-shadow: inset 3px 0 0 var(--w-accent), 0 0 0 1px var(--line); }
.camp-rung-stars { flex: 0 0 auto; width: 58px; }
.camp-rung-text { flex: 1 1 auto; min-width: 0; }
.camp-rung-tag { flex: 0 0 auto; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 900; line-height: 22px; color: var(--muted); }
.camp-rung-next .camp-rung-tag { background: var(--w-accent); color: var(--surface); }
.camp-rung-earned .camp-rung-tag { color: var(--muted); }
.camp-strong { margin: 6px 0; font-size: 14px; font-weight: 800; color: var(--text); }
.camp-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.camp-teach { margin: 6px 0; font-size: 14px; font-weight: 700; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.camp-small { margin: 4px 0; font-size: 13px; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.camp-pv-actions { position: sticky; bottom: 0; z-index: 1; display: flex; gap: 10px; margin: auto -16px 0; padding: 10px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); }
#campSheet .camp-pv-actions .btn { min-height: 48px; margin: 0; font-size: 16px; }
#campSheet .camp-pv-play { flex: 1 1 auto; background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 6px 18px var(--accent-glow); }
#campSheet .camp-pv-skip { flex: 0 0 auto; }
@media (max-width: 340px) {
  .camp-h2 { font-size: 19px; }
  .camp-label-title { font-size: 12px; }
  .camp-wbtn-name { font-size: 12px; }
}

/* ---------- result card (sheet, not the map) ---------- */
#campCard .camp-h { margin: 4px 0 6px; font-size: 24px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; color: var(--text); }
#campCard .camp-text { margin: 4px 0; font-size: 15px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
#campCard .camp-result-stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0 10px; }
#campCard .camp-result-stars .camp-star-svg { width: 24px; height: 24px; }
#campCard > .btn { display: block; width: 100%; margin-top: 10px; }
#campCard > .btn.primary { margin-top: 14px; }

/* ---------- win toast (on the map after a won level): card recipe, Next level pill, dismiss ---------- */
/* the Level complete pill: a compact strip at the top of the map that fades after about 2 s (JS adds camp-toast-fade), so it
   never sits over the nodes for long; once faded it takes no taps */
.camp-toast { position: absolute; z-index: 5; left: 12px; right: 12px; top: 96px; max-width: 420px; margin: 0 auto; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 24px; background: var(--camp-panel); border: 1px solid var(--line); box-shadow: 0 8px 22px var(--shadow); transition: opacity 360ms ease; }
.camp-toast[hidden] { display: none; }
.camp-toast.camp-toast-fade { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .camp-toast { transition: none; } }
.camp-nope { animation: campNope 360ms ease-in-out; }
@keyframes campNope { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .camp-nope { animation: none; } }
.camp-land .camp-toast { top: 60px; left: 12px; right: auto; width: 440px; max-width: 440px; }
.camp-toast-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.camp-toast-h { margin: 0; font-size: 14px; font-weight: 900; line-height: 1.2; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-toast-stars .camp-star-svg { width: 13px; height: 13px; }
#campCard .camp-toast .camp-toast-next { flex: 0 0 auto; height: 44px; min-height: 44px; margin: 0; padding: 0 14px; border: 0; border-radius: 22px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 14px; font-weight: 900; box-shadow: 0 6px 18px var(--accent-glow); }
#campCard .camp-toast .camp-toast-next[hidden] { display: none; }
.camp-toast-x { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface2); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* the map's bottom room: the last card of the map (world 1) and the world cards clear the Continue bar by this much (portrait only) */
.camp-port .camp-scroll::after { content: ''; display: block; height: 20px; }

/* ---------- world overlay (full bleed, new world unlocked): the planet in its orbit ---------- */
.camp-wo { position: absolute; inset: 0; z-index: 6; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px; overflow: hidden; background: radial-gradient(circle 420px at 50% 40%, var(--w-neb-a), transparent 100%), var(--bgimg, none) 0 0 / 100% 100% no-repeat, linear-gradient(180deg, var(--bg), var(--bg2)); color: var(--text); text-align: center; }
.camp-wo-stage { position: relative; width: 210px; height: 210px; flex: 0 0 auto; }
.camp-wo-planet { position: absolute; left: 25px; top: 25px; width: 160px; height: 160px; display: block; border-radius: 50%; }
.camp-wo-ring { position: absolute; left: -40px; top: 55px; width: 290px; height: 100px; transform: rotate(-16deg); overflow: visible; pointer-events: none; }
.camp-wo-ring ellipse, .camp-wo-ring path { fill: none; stroke: var(--w-accent); stroke-width: 1.6; }
.camp-wo-ring .camp-wo-ring-glow { stroke: var(--w-glow); stroke-width: 7; }
.camp-wo-ring circle { fill: var(--w-core); stroke: var(--w-accent); stroke-width: 1.4; }
.camp-wo-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.camp-wo-h { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--w-accent); }
.camp-wo-name { margin: 0; font-size: 44px; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; color: var(--text); overflow-wrap: anywhere; }
.camp-wo-blurb { margin: 4px 0 0; max-width: 300px; font-size: 14px; font-weight: 700; color: var(--muted); }
.camp-wo-tap { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); margin: 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.camp-wo:focus { outline: none; }
.camp-wo:focus-visible { outline: 2px solid var(--w-accent); outline-offset: -8px; }
.camp-wo.camp-wo-out { pointer-events: none; }

/* ---------- win card (after a won level, before the map) ---------- */
#campCard .camp-win { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 100%; box-sizing: border-box; padding: 8px 0 4px; text-align: center; }
#campCard .camp-win-head { display: flex; flex-direction: column; align-items: center; gap: 2px; }
#campCard .camp-win-over { margin: 0; font-size: 13px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
#campCard .camp-win-word { margin: 0; font-size: 44px; font-weight: 900; line-height: 1; color: var(--text); }
#campCard .camp-win-title { margin: 0; font-size: 16px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
#campCard .camp-win-stars { display: flex; justify-content: center; gap: 10px; margin: 8px 0; }
#campCard .camp-win-stars .camp-star-svg { width: 44px; height: 44px; }
#campCard .camp-win-score { margin: 0; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--text); }
#campCard .camp-win-line { margin: 0; font-size: 15px; font-weight: 800; color: var(--muted); }
#campCard .camp-win-best { margin: 4px 0 0; padding: 0 14px; border-radius: 999px; background: var(--w-accent); color: var(--surface); font-size: 14px; font-weight: 900; line-height: 24px; }
#campCard .camp-win-actions { display: flex; gap: 10px; width: 100%; margin-top: auto; padding-top: 12px; }
#campCard .camp-win-actions .btn { flex: 1 1 0; min-height: 48px; margin: 0; font-size: 16px; }
@media (max-height: 360px) {
  #campCard .camp-win { gap: 2px; padding: 0; }
  #campCard .camp-win-over { font-size: 12px; }
  #campCard .camp-win-word { font-size: 28px; }
  #campCard .camp-win-title { font-size: 14px; }
  #campCard .camp-win-stars { margin: 0; gap: 8px; }
  #campCard .camp-win-stars .camp-star-svg { width: 28px; height: 28px; }
  #campCard .camp-win-score { font-size: 16px; }
  #campCard .camp-win-line { font-size: 13px; }
  #campCard .camp-win-actions { padding-top: 6px; }
  #campCard .camp-win-actions .btn { min-height: 44px; font-size: 15px; }
}

/* the star flying from the win toast into its slot under the cleared node (positioned in code; transform and opacity animate) */
.camp-fly { position: absolute; z-index: 7; width: 18px; height: 18px; margin: 0; pointer-events: none; }
.camp-fly .camp-star-svg { width: 18px; height: 18px; }

/* ---------- motion: transform and opacity only, never more than three things at once; off for reduced motion and Calm ---------- */
@media (prefers-reduced-motion: no-preference) {
  .camp-mapview:not(.camp-calm) .camp-ring::after { animation: camp-pulse 2.2s ease-out infinite; }
  .camp-mapview:not(.camp-calm) .camp-spark { animation: camp-twinkle 4.6s ease-in-out infinite; }
  .camp-mapview:not(.camp-calm) .camp-zone-idle .camp-spark { animation: none; }
  .camp-mapview.camp-preview-open .camp-ring::after, .camp-mapview.camp-preview-open .camp-spark { animation-play-state: paused; }
  .camp-mapview:not(.camp-calm) .camp-draw .camp-seg-glow,
  .camp-mapview:not(.camp-calm) .camp-draw .camp-seg-tube,
  .camp-mapview:not(.camp-calm) .camp-draw .camp-seg-core { stroke-dasharray: 1; stroke-dashoffset: 1; animation: camp-draw 1800ms ease-in-out forwards; }
  .camp-mapview:not(.camp-calm) .camp-dissolve .camp-shade,
  .camp-mapview:not(.camp-calm) .camp-dissolve .camp-num .camp-ico { animation: camp-fade-out 300ms ease-out forwards; }
  .camp-mapview:not(.camp-calm) .camp-unlock .camp-planet { animation: camp-unlock-in 1000ms cubic-bezier(0.22, 0.8, 0.3, 1) both; transform-origin: 50% 50%; }
  .camp-mapview:not(.camp-calm) .camp-unlock .camp-body { animation: camp-unlock-in-body 1000ms cubic-bezier(0.22, 0.8, 0.3, 1) both; }
  .camp-mapview:not(.camp-calm) .camp-unlock .camp-ring::after { animation: camp-ring 700ms ease-out both; }
  .camp-mapview:not(.camp-calm) .camp-wo { animation: camp-wo-in 380ms ease-out both; }
  .camp-mapview:not(.camp-calm) .camp-wo-planet { animation: camp-wo-planet 520ms cubic-bezier(0.2, 1.4, 0.4, 1) both; }
  .camp-mapview:not(.camp-calm) .camp-wo-ring-front path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: camp-draw 700ms ease-out 200ms forwards; }
  .camp-mapview:not(.camp-calm) .camp-wo-text { animation: camp-wo-up 480ms ease-out 120ms both; }
  .camp-mapview:not(.camp-calm) .camp-wo-tap { animation: camp-wo-in 300ms ease-out 900ms both, camp-wo-pulse 2400ms ease-in-out 1200ms infinite; }
  .camp-mapview:not(.camp-calm) .camp-wo.camp-wo-out { animation: camp-wo-fade 250ms ease-in both; }
}
@media (prefers-reduced-motion: no-preference) { .camp-pop { animation: camp-pop 180ms ease-out both; } }
@keyframes camp-pulse { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.32); opacity: 0; } }
@keyframes camp-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes camp-draw { to { stroke-dashoffset: 0; } }
@keyframes camp-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes camp-fade-out { to { opacity: 0; } }
@keyframes camp-unlock-in { 0% { transform: scale(0.84); } 45% { transform: scale(1.1); } 100% { transform: scale(1); } }
/* the body canvas is centred with translate(-50%, -50%): the scale must keep it, or the planet jumps to the corner while it grows */
@keyframes camp-unlock-in-body { 0% { transform: translate(-50%, -50%) scale(0.84); } 45% { transform: translate(-50%, -50%) scale(1.1); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes camp-ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.8); opacity: 0; } }
@keyframes camp-wo-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes camp-wo-up { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes camp-wo-planet { from { transform: scale(0.6); } to { transform: scale(1); } }
/* the "Tap to continue" hint breathes while the card waits for one tap (opacity only; still under reduced motion it is steady) */
@keyframes camp-wo-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes camp-wo-fade { to { opacity: 0; } }

/* ---------- forced colours: nodes, numbers, the trail and the current state stay distinguishable ---------- */
@media (forced-colors: active) {
  .camp-zone { background: none; }
  .camp-spark { display: none; }
  .camp-shade { background: Canvas; box-shadow: inset 0 0 0 2px GrayText; }
  .camp-body { forced-color-adjust: none; }
  .camp-num, .camp-s-current .camp-num { background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; }
  .camp-ring { border-color: Highlight; box-shadow: none; }
  .camp-ring::after { display: none; }
  .camp-orbit ellipse, .camp-orbit path, .camp-orbit circle { stroke: CanvasText; fill: none; }
  .camp-seg-dot, .camp-seg-tube { stroke: CanvasText; }
  .camp-seg-glow, .camp-seg-core { display: none; }
  .camp-star-svg polygon, .camp-star-svg.camp-star-on polygon { fill: currentColor; stroke: currentColor; }
  .camp-label-current { background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; }
  .camp-chip { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .camp-toast { border: 1px solid CanvasText; box-shadow: none; }
  #campSheet .camp-wo { background: Canvas; border: 2px solid CanvasText; }
  #campSheet .camp-wo-name { color: CanvasText; }
  .camp-wbtn.camp-wbtn-on { outline: 2px solid Highlight; }
}

/* a small puff of mist and sparks when the next planet lights up: soft grey-white clouds and a few warm sparks drifting outwards */
.camp-puff { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
.camp-puff-smoke, .camp-puff-spark { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; opacity: 0; }
.camp-puff-smoke { background: radial-gradient(circle, rgba(235, 240, 255, 0.55), rgba(235, 240, 255, 0) 70%); }
.camp-puff-spark { left: -3px; top: -3px; width: 6px; height: 6px; background: #ffe9a8; box-shadow: 0 0 8px 2px rgba(255, 214, 120, 0.7); }
@media (prefers-reduced-motion: no-preference) {
  .camp-mapview:not(.camp-calm) .camp-puff-smoke { animation: camp-puff-smoke 1300ms ease-out both; }
  .camp-mapview:not(.camp-calm) .camp-puff-spark { animation: camp-puff-spark 1100ms ease-out both; }
}
@keyframes camp-puff-smoke { 0% { opacity: 0; transform: translate(0, 0) scale(0.4); } 25% { opacity: 0.9; } 100% { opacity: 0; transform: translate(calc(var(--dx) * 46px), calc(var(--dy) * 46px)) scale(2.2); } }
@keyframes camp-puff-spark { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--dx) * 70px), calc(var(--dy) * 70px)) scale(0.2); } }
.camp-puff-glow { position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgba(255, 244, 214, 0.85), rgba(255, 226, 160, 0.35) 40%, rgba(255, 226, 160, 0) 70%); }
@media (prefers-reduced-motion: no-preference) {
  .camp-mapview:not(.camp-calm) .camp-puff-glow { animation: camp-puff-glow 1000ms ease-out both; }
}
@keyframes camp-puff-glow { 0% { opacity: 0; transform: scale(0.6); } 35% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.5); } }
