/* Module "ping" (pings into the stream, src/modules.js): styles, moved out of voodoo.css in 2.78.8. Pages only get this
   file when the module is on (src/routes/pages.js appends it to <head>, after voodoo.css/altar.css). */

/* pings into the stream (2.76.0, public/js/modules/ping/stream-ping.js): entry in the emote menu, target mode on the streams, ring with name */
.react-ping { justify-content: flex-start; width: 100%; }
body.ping-mode :is(.tile, .screen).ping-target, body.ping-mode :is(.tile, .screen).ping-target * { cursor: crosshair !important; }
:is(.tile, .screen).ping-target { outline: 2px dashed var(--gold); outline-offset: -2px; }
/* 2.107.1: with the YouTube controls on, the click catcher is off and the iframe swallows every click - in ping mode it
   comes back over the video so the click reaches the page */
.screen.ping-target .shield.off { display: block; }
:is(.tile, .screen).ping-target::after { content: attr(data-ping-info); position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 6;
  padding: 3px 10px; border-radius: 10px; background: rgba(8, 5, 13, .88); border: 1px solid rgba(232, 195, 122, .5); color: var(--gold);
  font: 600 .74rem/1.4 var(--data); pointer-events: none; white-space: nowrap; }
.stream-ping { position: absolute; z-index: 7; width: 0; height: 0; pointer-events: none; }
.stream-ping-ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--gold);
  box-shadow: 0 0 10px rgba(232, 195, 122, .8), inset 0 0 6px rgba(232, 195, 122, .6); animation: stream-ping 1.2s ease-out 3 both; }
.stream-ping-ring + .stream-ping-ring { animation-delay: .4s; }
.stream-ping::before { content: ''; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px var(--gold); animation: stream-ping-dot 4s ease-in forwards; }
.stream-ping-name { position: absolute; left: 0; top: 26px; transform: translateX(-50%); padding: 2px 8px; border-radius: 8px; white-space: nowrap;
  background: rgba(8, 5, 13, .88); color: var(--gold); font: 600 .74rem/1.4 var(--display); animation: stream-ping-dot 4s ease-in forwards; }
@keyframes stream-ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes stream-ping-dot { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stream-ping-ring { animation: none; opacity: .9; } }
.send-ping-gap input { width: 100%; }


/* ping mode (2.78.1): nothing lies above the picture - name, buttons, title, "All streams", camera window hidden */
body.ping-mode .tile :is(.tile-head, .tile-tools, .tile-ton, .tile-title, .cam-box, .cam-reopen),
body.ping-mode .stream-chips { visibility: hidden !important; }
