/* Fight Together (slice 12): picture pings in the emote row, and the friend's face arrow they put on everyone's screen
   (game/pings.js). Loaded before style.css; phone overrides of existing selectors stay in style.css's phone HUD block. */

/* The four pings sit together on their own line after the emotes, warmer than the emotes, each with a little arrow. */
.ping-picks { display:flex; flex-basis:100%; justify-content:inherit; gap:inherit; }
.emote-pick.ping-pick { position:relative; background:linear-gradient(180deg,#d98a2b,#9b4f12); border-color:#ffd782; }
.emote-pick.ping-pick::after { content:"➤"; position:absolute; right:-5px; bottom:-5px; width:20px; height:20px; border-radius:50%;
  display:grid; place-items:center; font-size:11px; line-height:1; color:#3a2306; background:#ffd782; box-shadow:0 2px 0 rgba(0,0,0,.35); }

/* A friend's ping: their face in a round bubble with the ping's picture, and a pointer towards them. The outer element
   is only positioned (left/top from pings.js); the inner box animates (CLAUDE.md gotcha 3). Above the Explore HUD (12),
   below the touch controls (20), and it never takes a tap. */
.ping-arrow { position:absolute; left:0; top:0; width:0; height:0; z-index:13; pointer-events:none; }
.ping-box { position:absolute; left:-33px; top:-33px; width:66px; height:66px; border-radius:50%; display:grid; place-items:center;
  background:#122332f2; border:3px solid #ffd782; box-shadow:0 0 0 3px rgba(0,0,0,.25), 0 0 18px 4px rgba(255,215,130,.55);
  animation:pingPop .35s cubic-bezier(.2,1.5,.4,1), pingPulse 1.2s ease-in-out .35s infinite; }
.ping-help .ping-box { border-color:#ff6b5e; box-shadow:0 0 0 3px rgba(0,0,0,.25), 0 0 20px 6px rgba(255,90,80,.7); }
.ping-box .ping-face { width:46px; height:46px; border-radius:50%; image-rendering:pixelated; object-fit:cover; display:grid; place-items:center; font-size:30px; line-height:1; }
.ping-icon { position:absolute; right:-12px; top:-12px; font-size:26px; line-height:1; filter:drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.ping-name { position:absolute; left:50%; top:100%; margin-top:4px; transform:translateX(-50%); white-space:nowrap; font:900 13px/1.2 Nunito, system-ui, sans-serif;
  color:#fff; text-shadow:0 2px 0 #000, 0 0 4px #000; }
/* The pointer: a triangle turned towards the friend (pings.js sets its rotation inline; nothing animates it). */
.ping-point { position:absolute; left:50%; top:50%; width:0; height:0; margin:-11px 0 0 -11px; border:11px solid transparent; transform-origin:11px 11px; }
.ping-point::before { content:""; position:absolute; left:28px; top:-11px; border-style:solid; border-width:11px 0 11px 16px; border-color:transparent transparent transparent #ffd782; }
.ping-help .ping-point::before { border-left-color:#ff6b5e; }
@keyframes pingPop { from { transform:scale(.2); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes pingPulse { 50% { transform:scale(1.08); } }
.game-paused .ping-arrow, .quiz-open .ping-arrow { visibility:hidden; }
#explore-hud[style*="none"] ~ .ping-arrow { display:none; }
@media (max-width:700px), (max-height:600px) {
  .ping-box { left:-26px; top:-26px; width:52px; height:52px; }
  .ping-box .ping-face { width:36px; height:36px; font-size:24px; }
  .ping-icon { font-size:21px; right:-10px; top:-10px; }
}
