/* zcrisis.com /map: the quest map (queststudio.js) and the cinematic editor (cinestudio.js). Bobsta 2026-11-11: simple enough for a
   5-year-old: big buttons with a picture and one word, one colour per stage, everything on the map. Endless animations use
   transform/opacity only (site rule). */
.zqs { --zg: #f2c14e; --zg2: #ffdf8a; --zink: #14110b; --zpanel: rgba(20, 17, 11, .92); --zline: rgba(242, 193, 78, .35); --zok: #6fd08c; --zbad: #ff6a5a;
  position: fixed; inset: 0; z-index: 1200; pointer-events: none; font: 15px/1.3 system-ui, "Segoe UI", sans-serif; color: #f4eedf; }
.zqs[hidden] { display: none; }
.zqs > * { pointer-events: auto; }
body.zqs-on .mp-hud, body.zqs-on .mp-bar, body.zqs-on .zc-nav, body.zqs-on .leaflet-marker-pane, body.zqs-on .leaflet-overlay-pane,
body.zqs-on .leaflet-tooltip-pane > :not(.zqs-tip), body.zqs-on .leaflet-shadow-pane, body.zqs-on .leaflet-control-container { display: none !important; }
body.zqs-on .leaflet-tooltip-pane { display: block !important; }
.zqs-b { appearance: none; border: 1px solid var(--zline); background: rgba(255, 255, 255, .06); color: inherit; font: 600 15px/1 inherit; padding: 9px 13px; border-radius: 12px; cursor: pointer; white-space: nowrap; }
.zqs-b:hover { background: rgba(242, 193, 78, .16); }
.zqs-b.on { background: rgba(242, 193, 78, .28); border-color: var(--zg); }
.zqs-b.go { background: linear-gradient(#4f8f5b, #376b41); border-color: #7fc48c; }
.zqs-b.gold { background: linear-gradient(#e9b949, #b9861f); border-color: var(--zg2); color: #1b1406; }
.zqs-b.bad { background: rgba(255, 106, 90, .18); border-color: var(--zbad); }
.zqs-b:disabled { opacity: .45; cursor: default; }
.zqs-x { appearance: none; border: 0; background: none; color: #c9bfa6; font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.zqs-x:hover { background: rgba(255, 106, 90, .25); color: #fff; }
.zqs-grow { flex: 1; }
.zqs-dim { color: #b9b09a; font-size: 13px; }

/* top bar */
.zqs-top { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: var(--zpanel);
  border: 1px solid var(--zline); border-radius: 18px; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); flex-wrap: wrap; }
.zqs-title { flex: 0 1 360px; min-width: 180px; font: 800 20px/1.1 inherit; color: var(--zg2); background: rgba(0, 0, 0, .3); border: 2px solid transparent; border-radius: 12px; padding: 8px 12px; }
.zqs-title:focus { outline: none; border-color: var(--zg); }
.zqs-title::placeholder { color: #8c836c; }
.zqs-state { font-size: 13px; color: #c9bfa6; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.zqs-state.pub { color: #bff2c8; background: rgba(111, 208, 140, .18); }

/* stages */
.zqs-stages { position: absolute; left: 12px; top: 84px; bottom: 178px; width: 236px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 4px 10px 2px; scrollbar-width: thin; }
.zqs-start, .zqs-end { background: var(--zpanel); border: 1px dashed var(--zline); border-radius: 14px; padding: 10px 12px; cursor: pointer; font-weight: 700; }
.zqs-start.empty { border-color: var(--zg); color: var(--zg2); animation: zqsNudge 2.4s ease-in-out infinite; }
.zqs-end small { display: block; font-weight: 400; color: #c9bfa6; margin-top: 2px; }
.zqs-stage { background: var(--zpanel); border: 2px solid color-mix(in srgb, var(--c) 35%, transparent); border-left: 8px solid var(--c); border-radius: 14px; padding: 8px 10px; cursor: pointer; transition: transform .15s; }
.zqs-stage.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 8px 24px rgba(0, 0, 0, .4); transform: translateX(4px); }
.zqs-stage.bad { border-color: var(--zbad); }
.zqs-sh { display: flex; align-items: center; gap: 6px; }
.zqs-sh b { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: var(--zink); display: grid; place-items: center; font-weight: 900; flex: none; }
.zqs-sh input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 700 15px inherit; padding: 4px; border-radius: 8px; }
.zqs-sh input:focus { outline: 2px solid var(--c); background: rgba(0, 0, 0, .3); }
.zqs-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.zqs-chip { border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .07); border-radius: 10px; font-size: 18px; width: 34px; height: 32px; cursor: pointer; }
.zqs-chip.obj { border-color: var(--c); }
.zqs-srow { display: flex; gap: 4px; margin-top: 6px; }
.zqs-srow button { flex: 1; border: 1px solid var(--zline); background: rgba(255, 255, 255, .05); color: inherit; border-radius: 10px; padding: 5px; cursor: pointer; }
.zqs-add { border: 2px dashed var(--zline); background: rgba(20, 17, 11, .7); color: var(--zg2); font: 800 16px inherit; border-radius: 14px; padding: 10px; cursor: pointer; }

/* tools */
.zqs-tools { position: absolute; left: 12px; right: 12px; bottom: 10px; background: var(--zpanel); border: 1px solid var(--zline); border-radius: 18px; padding: 8px 10px; box-shadow: 0 -6px 30px rgba(0, 0, 0, .4);
  border-top: 4px solid var(--c, var(--zg)); }
.zqs-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 2px 0; }
.zqs-row + .zqs-row { margin-top: 6px; }
.zqs-row > b { flex: none; width: 112px; font-size: 13px; color: #c9bfa6; text-transform: uppercase; letter-spacing: .04em; }
.zqs-row.do > b { color: var(--zg2); }
.zqs-row.hap > b { color: #9fd3ff; }
.zqs-tool { flex: none; width: 92px; height: 66px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transition: transform .12s, background .12s; }
.zqs-tool i { font-style: normal; font-size: 27px; line-height: 1; }
.zqs-tool span { font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.05; }
.zqs-tool:hover { transform: translateY(-3px); background: rgba(242, 193, 78, .14); }
.zqs-row.do .zqs-tool { border-color: rgba(242, 193, 78, .3); }
.zqs-row.hap .zqs-tool { border-color: rgba(120, 190, 255, .28); }
.zqs-tool.on { background: rgba(242, 193, 78, .3); border-color: var(--zg); transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 3px rgba(242, 193, 78, .25); }
.zqs-hint { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); background: #1d1708; border: 2px solid var(--zg); border-radius: 999px; padding: 10px 18px; font-size: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5); pointer-events: none; animation: zqsNudge 1.8s ease-in-out infinite; }

/* map pins */
.zqs-pin > div { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.zqs-pin > div::before { content: ""; position: absolute; inset: 2px 4px 8px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: #1b1406; border: 3px solid var(--c, var(--zg)); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.zqs-pin.obj > div::before { background: color-mix(in srgb, var(--c) 30%, #1b1406); }
.zqs-pin i { position: relative; font-style: normal; font-size: 20px; margin-bottom: 6px; }
.zqs-pin b { position: absolute; right: -2px; top: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--c); color: #1b1406; font: 900 11px/18px system-ui; text-align: center; }
.zqs-pin.faded { opacity: .55; filter: saturate(.6); }
.zqs-pin.sel > div { animation: zqsBob 1s ease-in-out infinite; }
.zqs-pin.sel > div::before { border-color: #fff; }
.zqs-pin.bad > div::before { border-color: #ff6a5a; }
.zqs-pin.bad > div::after { content: "!"; position: absolute; left: -4px; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: #ff6a5a; color: #fff; font: 900 12px/18px system-ui; text-align: center; }
.zqs-pin.start > div::before { --c: #fff; background: #3d2a0d; }
.zqs-handle div { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #1b1406; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); cursor: ew-resize; }
.zqs-gpslab span { display: inline-block; background: rgba(20, 17, 11, .9); border: 1px solid var(--c); color: #fff; font: 700 12px/1 system-ui; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.zqs-gps { animation: zqsDash 1.2s linear infinite; }
.zqs-token div { font-size: 26px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .7)); animation: zqsBob .5s ease-in-out infinite; }

/* bubble (Leaflet popup) */
.zqs-pop .leaflet-popup-content-wrapper { background: #1b1609; color: #f4eedf; border: 2px solid var(--zg, #f2c14e); border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.zqs-pop .leaflet-popup-tip { background: #1b1609; border: 2px solid #f2c14e; }
.zqs-pop .leaflet-popup-content { margin: 12px 14px; }
.zqs-bubble { font: 14px/1.3 system-ui, "Segoe UI", sans-serif; display: flex; flex-direction: column; gap: 9px; }
.zqs-bh { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.zqs-bh i { font-style: normal; font-size: 28px; }
.zqs-f { display: flex; flex-direction: column; gap: 5px; }
.zqs-f > span:first-child { font-size: 12.5px; font-weight: 700; color: #d8c79a; }
.zqs-in { width: 100%; box-sizing: border-box; background: rgba(0, 0, 0, .35); color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 8px 10px; font: 15px inherit; }
.zqs-in:focus { outline: 2px solid #f2c14e; }
.zqs-step { display: inline-flex; align-items: center; gap: 10px; }
.zqs-step button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #f2c14e; background: rgba(242, 193, 78, .14); color: #fff; font: 900 20px/1 system-ui; cursor: pointer; }
.zqs-step b { min-width: 44px; text-align: center; font-size: 18px; }
.zqs-chips2 { display: flex; flex-wrap: wrap; gap: 5px; }
.zqs-chips2 button { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #f4eedf; border-radius: 999px; padding: 7px 11px; font: 600 13.5px inherit; cursor: pointer; }
.zqs-chips2 button.on { background: #f2c14e; color: #1b1406; border-color: #ffdf8a; }
.zqs-chips2 button.pick { outline: 2px dashed #fff; }
.zqs-ck { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.zqs-ck input { width: 20px; height: 20px; accent-color: #f2c14e; }
.zqs-brow { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.zqs-big { border: 2px solid #f2c14e; background: linear-gradient(#e9b949, #b9861f); color: #1b1406; font: 800 16px inherit; border-radius: 14px; padding: 12px; cursor: pointer; }
.zqs-big.alt { background: rgba(242, 193, 78, .12); color: #ffdf8a; }
.zqs-bubble input[type=range] { width: 100%; accent-color: #f2c14e; }
.zqs-rv { font-size: 13px; color: #d8c79a; }

/* menu, modal */
.zqs-menu { position: fixed; min-width: 240px; background: #1b1609; border: 2px solid var(--zg); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); z-index: 1300; }
.zqs-menu[hidden] { display: none; }
.zqs-menu b { padding: 6px 10px; color: var(--zg2); }
.zqs-menu i { font-style: normal; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: #a89f86; padding: 6px 10px 2px; }
.zqs-menu button { text-align: left; border: 0; background: none; color: #f4eedf; font: 15px inherit; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.zqs-menu button:hover { background: rgba(242, 193, 78, .18); }
.zqs-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 1250; }
.zqs-modal[hidden] { display: none; }
.zqs-card { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 60px); overflow: auto; background: #1b1609; border: 2px solid var(--zg); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.zqs-card h3 { margin: 0; font-size: 22px; color: var(--zg2); }
.zqs-prob { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: rgba(255, 106, 90, .1); border: 1px solid rgba(255, 106, 90, .45); border-radius: 12px; padding: 8px 10px; }
.zqs-prob.dim { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); color: #c9bfa6; }
.zqs-endrow { display: flex; gap: 8px; align-items: center; }
.zqs-endrow > i { font-style: normal; font-size: 24px; }
.zqs-launch { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); background: #1b1609; border: 3px solid var(--zg); border-radius: 24px; padding: 22px 34px; text-align: center; font: 900 30px inherit; color: var(--zg2); animation: zqsPop .5s ease-out; }
.zqs-launch small { display: block; font: 15px inherit; color: #c9bfa6; margin-top: 6px; }

/* ▶ try it */
.zqs.zqs-trying .zqs-stages, .zqs.zqs-trying .zqs-tools { opacity: .25; pointer-events: none; }
.zqs-trycard { position: absolute; right: 90px; top: 90px; width: 300px; background: rgba(0, 0, 0, .55); border-left: 3px solid var(--zg); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.zqs-trycard b { color: var(--zg2); font-size: 17px; }
.zqs-trycard small { color: #eee; }
.zqs-trycard small.done { color: #9fdca9; }
.zqs-tryst { color: var(--c); font-weight: 800; font-size: 13px; }
/* the end plate, as in game (ZCQuestBannerOk.png + the title growing into place + a light sweep) */
.zqs-plate { position: fixed; left: 50%; top: 13%; width: min(90vw, 1024px); aspect-ratio: 1024 / 192; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: url("/map/questart/ZCQuestBannerOk.png") center / 100% 100% no-repeat; animation: zqsPlateIn .45s cubic-bezier(.2, .9, .3, 1), zqsPlateOut .8s ease-in 4.4s forwards; overflow: hidden; pointer-events: none; }
.zqs-plate.fail { background-image: url("/map/questart/ZCQuestBannerFail.png"); }
.zqs-plate .t { font: 900 clamp(26px, 4vw, 46px)/1 Georgia, serif; letter-spacing: .08em; color: #f2cc66; text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); animation: zqsTitle .6s cubic-bezier(.2, .9, .3, 1); }
.zqs-plate.fail .t { color: #eb5c4c; }
.zqs-plate .s { margin-top: 8px; font: 600 clamp(14px, 1.6vw, 19px)/1.2 system-ui; color: #f1ecdf; opacity: 0; animation: zqsFade .4s ease-out .35s forwards; }
.zqs-plate::after { content: ""; position: absolute; top: 20%; bottom: 20%; width: 40px; left: -60px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: zqsSweep .9s ease-out .5s 1 forwards; }

/* cinematic editor */
.zcs { position: fixed; left: 12px; right: 12px; bottom: 10px; height: min(46vh, 420px); z-index: 1260; background: #17130a; border: 2px solid #f2c14e; border-radius: 18px; display: flex; flex-direction: column;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .55); font: 14px/1.3 system-ui, "Segoe UI", sans-serif; color: #f4eedf; }
.zcs[hidden] { display: none; }
body.zcs-on .zqs-tools, body.zcs-on .zqs-stages { visibility: hidden; }
.zcs-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(242, 193, 78, .3); flex-wrap: wrap; }
.zcs-top > b { font-size: 17px; color: #ffdf8a; }
.zcs-playbtn { font-size: 17px; padding: 10px 18px; }
.zcs-time { font: 600 13px ui-monospace, monospace; color: #c9bfa6; }
.zcs-body { flex: 1; min-height: 0; display: flex; }
.zcs-tlwrap { flex: 1; min-width: 0; overflow: auto; position: relative; scrollbar-width: thin; }
.zcs-tl { position: relative; padding-left: 128px; min-height: 100%; }
.zcs-ruler { position: relative; height: 26px; border-bottom: 1px solid rgba(255, 255, 255, .15); cursor: ew-resize; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 35px); }
.zcs-ruler span { position: absolute; top: 5px; font: 11px ui-monospace, monospace; color: #a89f86; transform: translateX(3px); }
.zcs-track { display: flex; height: 52px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.zcs-lab { position: absolute; left: 0; width: 120px; height: 52px; display: flex; align-items: center; gap: 6px; padding: 0 6px; background: #1d180c; z-index: 2; }
.zcs-lab i { font-style: normal; font-size: 20px; }
.zcs-lab span { flex: 1; font-weight: 700; font-size: 13px; }
.zcs-lab button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #f2c14e; background: rgba(242, 193, 78, .15); color: #fff; font: 900 16px/1 system-ui; cursor: pointer; }
.zcs-lane { position: relative; height: 52px; }
.zcs-blk { position: absolute; top: 7px; height: 38px; border-radius: 10px; background: #3d6f9e; border: 2px solid #7fb6e6; box-sizing: border-box; padding: 0 12px 0 8px; display: flex; align-items: center; cursor: grab; overflow: hidden; touch-action: none; }
.zcs-blk.title { background: #8a6a1f; border-color: #f2c14e; }
.zcs-blk.black { background: #050505; border-color: #9a9a9a; }
.zcs-blk.cam { background: #5a3d7a; border-color: #c49bf0; }   /* camera block (1.12.0): the light part is the move, the rest the hold */
.zcs-blk .zcs-mv { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,.06)); pointer-events: none; }
.zcs-blk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 13px; pointer-events: none; }
.zcs-blk i { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; background: rgba(255, 255, 255, .25); }
.zcs-blk.sel, .zcs-key.sel { outline: 3px solid #fff; z-index: 3; }
.zcs-key { position: absolute; top: 6px; transform: translateX(-20px); display: flex; flex-direction: column; align-items: center; cursor: grab; touch-action: none; }
.zcs-key i { font-style: normal; width: 34px; height: 34px; display: grid; place-items: center; font-size: 18px; border-radius: 10px; background: #2a2416; border: 2px solid #f2c14e; transform: rotate(0); }
.zcs-key.snd i { border-color: #7fe0a8; }
.zcs-key.act i { border-color: #ff8a5a; }
.zcs-key span { font-size: 10.5px; color: #d8c79a; white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.zcs-head { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff5a4a; margin-left: 128px; pointer-events: none; z-index: 4; }
.zcs-head::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top-color: #ff5a4a; }
.zcs-insp { width: 320px; flex: none; border-left: 1px solid rgba(242, 193, 78, .25); padding: 10px 12px; overflow: auto; display: flex; flex-direction: column; gap: 9px; }
.zcs-ih { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.zcs-ih b { flex: 1; }
.zcs-empty { color: #c9bfa6; font-size: 14px; line-height: 1.45; }

/* ▶ preview, on the map */
.zcp { position: fixed; inset: 0; z-index: 1400; pointer-events: auto; cursor: pointer; }
.zcp.fade::before { content: ""; position: absolute; inset: 0; background: #000; opacity: 1; transition: opacity .9s; }
.zcp.fade.in::before { opacity: 0; }
.zcp-bar { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.zcp-bar.t { top: 0; } .zcp-bar.b { bottom: 0; }
.zcp.bars.in .zcp-bar { height: 12vh; }
.zcp-black { position: absolute; inset: 0; background: #000; color: #e6e6e6; display: grid; place-items: center; font: 600 34px Georgia, serif; opacity: 0; transition: opacity .3s; }
.zcp-black.on { opacity: 1; }
.zcp-title { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font: 900 clamp(30px, 5vw, 60px) Georgia, serif; color: #f2cc66; text-shadow: 3px 3px 0 rgba(0, 0, 0, .7); }
.zcp-sub { position: absolute; left: 10%; right: 10%; bottom: 3.5vh; text-align: center; font: 600 clamp(17px, 2vw, 24px) system-ui; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .8); }
.zcp-snd { position: absolute; left: 24px; top: 14vh; background: rgba(0, 0, 0, .7); border: 1px solid #7fe0a8; color: #dff7e6; padding: 8px 12px; border-radius: 999px; font: 700 15px system-ui; opacity: 0; }
.zcp-snd.on { animation: zcpSnd 2.2s ease-out; }
.zcp-skip { position: absolute; right: 14px; bottom: 6px; color: rgba(255, 255, 255, .6); font: 12px system-ui; z-index: 2; }
.zcp-pop div { font-size: 34px; text-align: center; animation: zqsPop .45s cubic-bezier(.2, 1.4, .4, 1); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .7)); }
.zcp-pop small { display: block; font: 800 12px system-ui; color: #fff; background: rgba(0, 0, 0, .7); border-radius: 8px; padding: 2px 6px; }
body.zcp-on .zqs-top, body.zcp-on .zcs, body.zcp-on .zqs-tools, body.zcp-on .zqs-stages { visibility: hidden; }

@keyframes zqsNudge { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-3px); } }
.zqs-start.empty { animation-name: zqsNudgeS; }
@keyframes zqsNudgeS { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
@keyframes zqsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes zqsDash { to { stroke-dashoffset: -36; } }
@keyframes zqsPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes zqsPlateIn { from { transform: translate(-50%, -50%) scaleX(.35); opacity: 0; } to { transform: translate(-50%, -50%) scaleX(1); opacity: 1; } }
@keyframes zqsPlateOut { to { transform: translate(-50%, calc(-50% - 40px)); opacity: 0; } }
@keyframes zqsTitle { from { transform: scale(1.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes zqsFade { to { opacity: 1; } }
@keyframes zqsSweep { from { transform: translateX(0); } to { transform: translateX(calc(min(90vw, 1024px) + 120px)); } }
@keyframes zcpSnd { 0% { opacity: 0; transform: translateY(8px); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .zqs *, .zcp * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }
@media (max-width: 760px) {
  .zqs-stages { width: 170px; bottom: 210px; }
  .zqs-tool { width: 76px; height: 60px; }
  .zqs-row > b { width: 70px; font-size: 11px; }
  .zcs-insp { width: 220px; }
}

/* the quest map takes the whole screen; a tool in the hand places through pins */
body.zqs-on #map { inset: 0 !important; }
body.zqs-on .leaflet-container:focus, body.zqs-on .leaflet-container:focus-visible { outline: none !important; }
body[data-armed] .leaflet-zqsPins-pane > * { pointer-events: none !important; }
.zqs-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zqs.zqs-trying .zqs-top { opacity: .25; pointer-events: none; }
body.zcp-on .leaflet-zqsPins-pane, body.zcp-on .leaflet-zqsArea-pane { opacity: 0; transition: opacity .4s; }
body.zcp-on .zc-chat, body.zqs-on .zc-chat-fab { visibility: hidden; }
.zqs-warn { margin: 4px 0 8px; padding: 6px 10px; border-radius: 8px; background: rgba(242, 120, 60, .15); border: 1px solid #f2783c; font-size: 12.5px; }
