/* THE POCKET IS THE BUTTON — js/phone-tap-only.js
   (selectors carry .floating-phone: the beat's own injected pb-buzzing
   rule comes later in the page and would win a tie)
   The phone beats (a message, Hank, a ringing call) used to put a chip
   (▸ READ IT / ▸ WRITE TO HANK / ▸ ANSWER IT) in the middle of the screen
   after 7–8 s, and that is what got clicked. No chip now: the corner
   phone itself keeps calling — gold glow, its screen lit, a short shake
   every few seconds — until it is picked up. */

#pbPickupChip { display: none !important; }

#floatingPhone.floating-phone.pto-call {
  animation: ptoCall 2.4s ease-in-out infinite;
}
@keyframes ptoCall {
  0%, 100% { transform: rotate(-9deg) translate(0, 0);
             filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 4px rgba(196, 168, 122, 0.35)); }
  4%  { transform: rotate(-12deg) translate(-2px, 1px); }
  8%  { transform: rotate(-6deg) translate(2px, -1px); }
  12% { transform: rotate(-11deg) translate(-2px, 0); }
  16% { transform: rotate(-7deg) translate(2px, 1px); }
  20% { transform: rotate(-9deg) translate(0, 0); }
  50% { transform: rotate(-9deg) translate(0, 0);
        filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 14px rgba(196, 168, 122, 0.95)); }
}
#floatingPhone.floating-phone.pto-call .floating-phone-screen {
  background-image: none;
  animation: ptoScreen 2.4s ease-in-out infinite;
}
@keyframes ptoScreen {
  0%, 100% { background-color: #0a0805; box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.9), inset 0 0 0 1px #1a120c; }
  50%      { background-color: #7a6442; box-shadow: inset 0 0 16px rgba(232, 208, 160, 0.9), inset 0 0 0 1px #c4a87a; }
}

/* over the PC the HUD slides the corner phone away — while it calls it
   stays where he can reach it */
body.pc-hud-hidden #floatingPhone.floating-phone.pto-call {
  transform: rotate(-9deg) translate(0, 0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  #floatingPhone.floating-phone.pto-call {
    animation: none;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(196, 168, 122, 0.85));
  }
  #floatingPhone.floating-phone.pto-call .floating-phone-screen { animation: none; background: #4a3c26; box-shadow: inset 0 0 12px rgba(196, 168, 122, 0.8); }
}
