/* V4.13: a masked layer over the original art; never a transform on the map. */
.dx-tide{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block;pointer-events:none;opacity:0;transition:opacity .3s linear;mask-image:var(--shore-mask);-webkit-mask-image:var(--shore-mask);mask-size:100% 100%;-webkit-mask-size:100% 100%}
#dx-library{--shore-mask:url("shore/motion-mask-wide.png")}
#dx-library.shore-running .dx-tide,#dx-library.shore-running .dx-edge-loop{opacity:1}
.dx-water-tiles{z-index:2}
#dx .dx-sound{position:absolute;z-index:5;right:max(14px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));border:1px solid #fff2d39c;border-radius:24px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 15px;background:#073846ed;color:#fffaf0;font:600 11px/1.2 Montserrat,Arial,sans-serif;box-shadow:0 2px 8px #00293244;cursor:pointer;touch-action:manipulation}
#dx .dx-sound:hover{background:#054557}
#dx .dx-sound:focus-visible{outline:3px solid #fff6d0;outline-offset:3px}
.dx-sound svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.dx-sound[aria-pressed="false"] .sound-on-icon,.dx-sound[aria-pressed="true"] .sound-off-icon{display:none}
.dx-sound[aria-pressed="true"] svg{color:#d8f6ed}
.dx-volume{position:absolute;z-index:5;right:max(128px,calc(env(safe-area-inset-right) + 126px));bottom:max(12px,env(safe-area-inset-bottom));box-sizing:border-box;min-height:44px;display:flex;align-items:center;gap:10px;border:1px solid #fff2d39c;border-radius:24px;background:#073846ed;color:#fffaf0;padding:0 13px;font:600 11px/1.2 Montserrat,Arial,sans-serif;box-shadow:0 2px 8px #00293244}
.dx-volume output{min-width:4ch;text-align:right;font-variant-numeric:tabular-nums}
.dx-volume input{width:clamp(70px,8vw,118px);height:34px;accent-color:#e3ca94;cursor:pointer;margin:0;touch-action:pan-y}
@media(max-width:620px){.dx-volume{right:max(14px,env(safe-area-inset-right));bottom:calc(max(12px,env(safe-area-inset-bottom)) + 50px);min-height:40px;gap:8px}.dx-volume input{width:76px}}
.dx-water-edge{position:relative}.dx-edge-loop{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .3s linear;mask-image:var(--shore-mask);-webkit-mask-image:var(--shore-mask);mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}
.dx-water-edge.w .dx-edge-loop,.dx-water-edge.e .dx-edge-loop{mask-size:3100% 100%;-webkit-mask-size:3100% 100%}
.dx-water-edge.w .dx-edge-loop{mask-position:left center;-webkit-mask-position:left center}
.dx-water-edge.e .dx-edge-loop{mask-position:right center;-webkit-mask-position:right center}
@media(max-aspect-ratio:1/1){#dx-library{--shore-mask:url("shore/motion-mask-portrait.png")}}
@media(prefers-reduced-motion:reduce){.dx-tide,.dx-edge-loop{display:none!important;transition:none}}
