/* premiumCelebrate.css */
.pc-emote { position: fixed; left: 0; top: 0; z-index: 100002; font-size: 40px; line-height: 40px; width: 40px; text-align: center; pointer-events: none; }
.pc-emote.pc-splat { animation: pc-splat 0.9s ease-out forwards; }
@keyframes pc-splat { 0% { scale: 1.3; opacity: 1; } 30% { scale: 2; opacity: 1; } 100% { scale: 2.6; opacity: 0; } }
.pc-hit { animation: pc-shake 0.45s ease-in-out; }
@keyframes pc-shake { 0%,100% { translate: 0 0; } 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 4px 0; } }
body.pc-aiming [data-player-username] { outline: 2px dashed #f472b6; outline-offset: 3px; cursor: crosshair; }
#pc-aim-banner {
    position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); z-index: 100003;
    background: #4c1d95; color: #fff; border: 1px solid #c4b5fd; border-radius: 999px; padding: 6px 8px 6px 14px;
    display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 0.85rem; box-shadow: 0 6px 18px rgba(0,0,0,0.6); white-space: nowrap;
}
#pc-aim-banner button { border-radius: 999px; border: 1px solid #c4b5fd; background: transparent; color: #fff; padding: 4px 10px; font-weight: 700; cursor: pointer; }
#pc-throw-btn { background: transparent; border: none; border-left: 1px solid rgba(251,191,36,0.4); font-size: 1.2rem; padding: 3px 6px 3px 9px; cursor: pointer; line-height: 1; }
#pc-emote-pop {
    position: fixed; top: 118px; left: 50%; transform: translateX(-50%); z-index: 9600;
    background: rgba(30, 16, 60, 0.97); border: 1.5px solid #a78bfa; border-radius: 14px; padding: 8px 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}
#pc-emote-pop .pc-ep-h { color: #e9d5ff; font-weight: 800; font-size: 0.78rem; text-align: center; margin-bottom: 4px; }
#pc-emote-pop .pc-ep-g { display: grid; grid-template-columns: repeat(6, 38px); gap: 4px; }
#pc-emote-pop button { font-size: 1.45rem; background: transparent; border: none; cursor: pointer; padding: 2px; line-height: 1.2; }

/* dance styles (body[data-cel-dance] set per celebration). Part names come from celebration.js:
   tw-body (whole figure) · tw-upper · tw-hips · tw-knees · tw-arm-l/r (upper arm) · dl-fore-l/r · dl-head · dl-leg-l/r */
body[data-cel-dance] .cel-dancer * { animation-delay: 0s !important; }

/* DISCO: point to the sky, hand on hip, step and sway */
body[data-cel-dance="disco"] .cel-dancer .tw-body   { animation: dc-bounce .55s ease-in-out infinite alternate !important; }
body[data-cel-dance="disco"] .cel-dancer .tw-upper  { animation: dc-lean 1.1s ease-in-out infinite alternate !important; }
body[data-cel-dance="disco"] .cel-dancer .tw-hips   { animation: dc-hips 1.1s ease-in-out infinite alternate !important; }
body[data-cel-dance="disco"] .cel-dancer .tw-arm-r  { animation: dc-point 1.1s cubic-bezier(.6,0,.4,1) infinite alternate !important; }
body[data-cel-dance="disco"] .cel-dancer .dl-fore-r { animation: none !important; transform: rotate(-12deg); }
body[data-cel-dance="disco"] .cel-dancer .tw-arm-l  { animation: none !important; transform: rotate(-78deg); }
body[data-cel-dance="disco"] .cel-dancer .dl-fore-l { animation: none !important; transform: rotate(-123deg); }
body[data-cel-dance="disco"] .cel-dancer .tw-knees  { animation: none !important; }
body[data-cel-dance="disco"] .cel-dancer .dl-leg-r  { animation: dc-step 1.1s ease-in-out infinite alternate !important; }
body[data-cel-dance="disco"] .cel-dancer .dl-leg-l  { animation: dc-step2 1.1s ease-in-out infinite alternate !important; }
body[data-cel-dance="disco"] .cel-dancer .dl-head   { animation: dc-head .55s ease-in-out infinite alternate !important; }
@keyframes dc-bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-3px); } }
@keyframes dc-lean   { 0% { transform: rotate(-7deg); } 100% { transform: rotate(5deg); } }
@keyframes dc-hips   { 0% { transform: translateX(-3px) rotate(-6deg); } 100% { transform: translateX(3px) rotate(6deg); } }
@keyframes dc-point  { 0% { transform: rotate(-8deg); } 100% { transform: rotate(118deg); } }
@keyframes dc-step   { 0% { transform: rotate(0deg); } 100% { transform: rotate(-22deg); } }
@keyframes dc-step2  { 0% { transform: rotate(6deg); } 100% { transform: rotate(0deg); } }
@keyframes dc-head   { 0% { transform: rotate(-6deg); } 100% { transform: rotate(4deg); } }

/* ROBOT: stiff, snapping poses */
body[data-cel-dance="robot"] .cel-dancer .tw-hips, body[data-cel-dance="robot"] .cel-dancer .tw-knees { animation: none !important; }
body[data-cel-dance="robot"] .cel-dancer .tw-body   { animation: rb-body 1.6s steps(1, end) infinite !important; }
body[data-cel-dance="robot"] .cel-dancer .tw-upper  { animation: rb-upper 1.6s steps(1, end) infinite !important; }
body[data-cel-dance="robot"] .cel-dancer .tw-arm-l  { animation: rb-arm-l 1.6s steps(1, end) infinite !important; }
body[data-cel-dance="robot"] .cel-dancer .dl-fore-l { animation: rb-fore-l 1.6s steps(1, end) infinite !important; }
body[data-cel-dance="robot"] .cel-dancer .tw-arm-r  { animation: rb-arm-r 1.6s steps(1, end) infinite !important; }
body[data-cel-dance="robot"] .cel-dancer .dl-fore-r { animation: rb-fore-r 1.6s steps(1, end) infinite !important; }
body[data-cel-dance="robot"] .cel-dancer .dl-head   { animation: rb-head 1.6s steps(1, end) infinite !important; }
body[data-cel-dance="robot"] .cel-dancer .dl-leg-l  { animation: rb-leg-l 1.6s steps(1, end) infinite !important; }
body[data-cel-dance="robot"] .cel-dancer .dl-leg-r  { animation: rb-leg-r 1.6s steps(1, end) infinite !important; }
@keyframes rb-body   { 0%,50% { transform: translateY(0); } 25%,75% { transform: translateY(-2px); } }
@keyframes rb-upper  { 0% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 50% { transform: rotate(0); } 75% { transform: rotate(5deg); } }
@keyframes rb-arm-l  { 0% { transform: rotate(-55deg); } 25% { transform: rotate(-95deg); } 50% { transform: rotate(-55deg); } 75% { transform: rotate(-15deg); } }
@keyframes rb-fore-l { 0% { transform: rotate(80deg); } 25% { transform: rotate(0deg); } 50% { transform: rotate(-80deg); } 75% { transform: rotate(80deg); } }
@keyframes rb-arm-r  { 0% { transform: rotate(55deg); } 25% { transform: rotate(15deg); } 50% { transform: rotate(55deg); } 75% { transform: rotate(95deg); } }
@keyframes rb-fore-r { 0% { transform: rotate(-80deg); } 25% { transform: rotate(-80deg); } 50% { transform: rotate(80deg); } 75% { transform: rotate(0deg); } }
@keyframes rb-head   { 0% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(0); } 75% { transform: rotate(12deg); } }
@keyframes rb-leg-l  { 0%,50%,75% { transform: rotate(0); } 25% { transform: rotate(12deg) translateY(-3px); } }
@keyframes rb-leg-r  { 0%,25%,50% { transform: rotate(0); } 75% { transform: rotate(-12deg) translateY(-3px); } }
/* got hit: the emote fills your screen */
.pc-hitme { position: fixed; inset: 0; z-index: 100003; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pc-hitme-emote { font-size: min(46vw, 260px); line-height: 1; animation: pc-hitme 1.6s ease-out forwards; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.pc-hitme-from { margin-top: 6px; padding: 5px 14px; border-radius: 999px; background: rgba(15,23,42,.85); color: #fbbf24; font-weight: 900; font-size: 1rem; animation: pc-hitme-txt 1.6s ease-out forwards; }
@keyframes pc-hitme { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 18% { transform: scale(1.15) rotate(6deg); opacity: 1; } 30% { transform: scale(1) rotate(0); } 75% { opacity: 1; } 100% { transform: scale(1.35) translateY(40px); opacity: 0; } }
@keyframes pc-hitme-txt { 0%, 15% { opacity: 0; } 25%, 75% { opacity: 1; } 100% { opacity: 0; } }
body.pc-shake #game-view { animation: pc-screenshake .5s linear; }
@keyframes pc-screenshake { 0%,100% { transform: translate(0,0); } 15% { transform: translate(-9px,4px); } 30% { transform: translate(8px,-5px); } 45% { transform: translate(-6px,3px); } 60% { transform: translate(5px,-2px); } 75% { transform: translate(-3px,1px); } }
@media (prefers-reduced-motion: reduce) { .pc-emote, .pc-hit, .pc-hitme-emote, .pc-hitme-from { animation: none !important; } body.pc-shake #game-view { animation: none !important; } }

/* picture throwables (img:<name>) sized like the emoji ones */
.pc-img { width: 1em; height: 1em; object-fit: contain; vertical-align: -0.12em; pointer-events: none; -webkit-user-drag: none; }
.pc-hitme-emote .pc-img { width: 1em; height: 1em; }
#pc-aim-banner .pc-img { width: 1.3em; height: 1.3em; }
