/* player.css — owned by the characters lane. */
#player { position: fixed; z-index: 2; left: 27vw; bottom: calc(100% - var(--ground)); pointer-events: none; opacity: 0; }
body.ready #player { animation: drop .75s 2.4s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-55vh); } 1% { opacity: 1; } 100% { opacity: 1; transform: none; } }
#player .pf { display: none; transform: scaleX(var(--dir, 1)); }
#player .pf.active { display: block; }
#player:not([data-f]) .pf0 { display: block; }
.bubble {
  position: absolute; left: calc(var(--p) * 16); bottom: calc(var(--p) * 22); white-space: nowrap;
  font: 600 15px/1 var(--f-pixel); color: var(--ink); background: var(--mint); padding: 8px 12px 9px;
  transform: rotate(-4deg) scale(.8); transform-origin: left bottom; opacity: 0; transition: opacity .2s, transform .2s;
  clip-path: polygon(0 6%, 3% 0, 97% 4%, 100% 0, 98% 94%, 100% 100%, 4% 96%, 0 100%);
}
.bubble.show { opacity: 1; transform: rotate(-4deg); }


@media (max-width: 760px) {
  #player { left: 16vw; }
}

@media (prefers-reduced-motion: reduce) {
  #player { opacity: 1; }
}

/* A local Easter-egg whisper, beside Byte only in Meet the Builders. */
.byte-secret { position: absolute; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 10px; border: 0; border-bottom: 1px dashed #92c9a880; background: #07100be8; color: #b8d2c1; font: 500 13px/1.2 var(--f-mono); white-space: nowrap; cursor: pointer; pointer-events: auto; }
.byte-secret::after { content: ''; position: absolute; left: 50%; top: 100%; height: 9px; border-left: 1px dashed #92c9a860; }
.byte-secret kbd { display: grid; place-items: center; min-width: 21px; min-height: 23px; border: 1px solid #6c9075; font: 700 12px/1 var(--f-mono); color: #ddf7e7; }
.byte-secret-touch { display: none; }
.byte-secret:hover { color: #e3ffed; border-color: #b6ebcb; }
.byte-secret:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.byte-disco { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
body.byte-party #player .pf, body.byte-party #player .bubble { visibility: hidden; }
.byte-dance-cue { position: absolute; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 12px; max-width: calc(100vw - 24px); padding: 8px 13px; background: #091619ee; border: 1px solid #7899a6; color: #e1fff2; font: 600 14px/1.2 var(--f-mono); white-space: nowrap; pointer-events: none; box-shadow: 0 0 25px #5de6d51a; }
.byte-dance-invite { color: #9bddbd; font-size: 12px; }
@media (max-width: 760px) {
  .byte-secret { font-size: 12px; }
  .byte-dance-cue { gap: 8px; font-size: 12px; }
  .byte-dance-invite { font-size: 10px; }
}
@media (hover: none) and (pointer: coarse) {
  .byte-secret-keyboard, .byte-secret kbd { display: none; }
  .byte-secret-touch { display: inline; }
}
