/* WaterBlocker interactive add-ons: animated explainers (.wbx) + "where is the water?" finder (.spot).
   Uses the blue site's variables when present; falls back to the same values. */
.wbx,.spot{--wb-blue:var(--blue,#1450a3);--wb-yellow:var(--yellow,#ffcc1f);--wb-yink:var(--yellow-ink,#1b1400);--wb-panel:var(--panel,#152233);--wb-line:var(--line,#26364a);--wb-ink:var(--ink,#e8eef5);--wb-soft:var(--soft,#a9b6c4);--wb-bg:var(--bg,#0e1622)}
.wbx{background:var(--wb-panel);border:1px solid var(--wb-line);border-radius:14px;padding:12px;position:relative;color:var(--wb-ink)}
.wbx-svg{width:100%;height:auto;display:block;border-radius:10px;background:#0a2c5e}
.wbx-bar{display:flex;gap:12px;align-items:center;margin:10px 4px 6px}
.wbx-play{width:48px;height:48px;flex:0 0 48px;border-radius:50%;background:var(--wb-yellow);color:var(--wb-yink);border:0;font-size:1rem;cursor:pointer}
.wbx-scrub{flex:1;padding:0;border:0;accent-color:var(--wb-yellow);background:none}
.wbx-time{font-variant-numeric:tabular-nums;font-weight:700;color:var(--wb-soft);min-width:2.6em}
.wbx-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px}
.wbx-chips button{font:inherit;font-size:.85rem;font-weight:600;border:1px solid var(--wb-line);background:var(--wb-bg);color:var(--wb-ink);border-radius:999px;padding:6px 12px;cursor:pointer}
.wbx-chips button.on{background:var(--wb-yellow);color:var(--wb-yink);border-color:var(--wb-yellow)}
.wbx-try{background:var(--wb-bg);border:1px solid var(--wb-line);border-radius:12px;padding:14px 18px;margin-top:12px}
.wbx-try h3{margin:0 0 2px}.wbx-try .small{margin:0 0 6px;color:var(--wb-soft);font-size:.9rem}
.wbx-ctl{display:flex;align-items:center;gap:10px;font-weight:600;margin:10px 0}
.wbx-ctl.range{flex-direction:column;align-items:stretch;gap:2px}
.wbx-ctl input[type=checkbox]{width:24px;height:24px;flex:0 0 24px;accent-color:var(--wb-yellow)}
.wbx-ctl input[type=range]{padding:0;border:0;accent-color:var(--wb-yellow);background:none}
.wbx-msg{font-weight:700;color:var(--wb-yellow);margin:8px 0 0;min-height:1.6em}
.wbx-live{position:absolute;left:-9999px}
.wbx-cap{background:#0b2c5c;border-top:3px solid var(--wb-yellow);color:#fff;font-weight:700;margin:6px 0 0;padding:10px 14px;border-radius:0 0 10px 10px;min-height:3.2em;font-size:.98rem}
.wbx-cap:empty{visibility:hidden}
@media(min-width:900px){.wbx-wide{display:grid;grid-template-columns:1.7fr 1fr;gap:16px;align-items:start}.wbx-wide .wbx-try{margin-top:0}}
.spot{background:var(--wb-panel);border:1px solid var(--wb-line);border-radius:14px;padding:14px;color:var(--wb-ink)}
.spot svg{width:100%;height:auto;display:block;border-radius:10px}
.spot .hs{cursor:pointer;outline:none}
.spot .hs circle.ring{fill:var(--wb-yellow);opacity:.3;transform-box:fill-box;transform-origin:center;animation:wbpulse 1.8s ease-out infinite}
.spot .hs:hover circle.dot,.spot .hs:focus circle.dot,.spot .hs.on circle.dot{fill:#fff}
.spot .hs:focus-visible circle.dot{stroke:var(--wb-blue);stroke-width:5}
@keyframes wbpulse{0%{transform:scale(.6);opacity:.5}100%{transform:scale(1.5);opacity:0}}
@media(prefers-reduced-motion:reduce){.spot .hs circle.ring{animation:none}}
.spot-out{margin-top:14px;min-height:110px}
.spot-out .res{background:var(--wb-bg);border:1px solid var(--wb-line);border-radius:12px;padding:16px 18px}
.spot-out h3{margin:0 0 6px}
.spot-out .acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.spot-out a.b{display:inline-block;border-radius:10px;padding:12px 16px;font-weight:800;text-decoration:none}
.spot-out a.b.y{background:var(--wb-yellow);color:var(--wb-yink)}
.spot-out a.b.g{border:2px solid currentColor;color:var(--wb-ink)}
