.phone-panel {
  position: fixed;
  left: 50%;
  bottom: -110%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 420px;
  height: 85vh;
  background: rgba(0, 20, 40, 0.95);
  color: var(--text-color);
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: bottom 0.5s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.phone-panel.active {
  bottom: 0;
}
.phone-contacts {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.phone-contact {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.phone-chat {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.phone-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 80%;
  align-self: flex-start;
}
.phone-msg.from-player {
  align-self: flex-end;
  align-items: flex-end;
}
.phone-msg .bubble {
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.1);
  width: fit-content;
  max-width: 100%;
}
.phone-msg.from-player .bubble {
  background: rgba(0,170,255,0.2);
}

.phone-msg .ticks {
  display: block;
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.7;
  margin-top: 2px;
  color: var(--accent-color);
}
.phone-msg .sender-name {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 2px;
}
.typing {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
}
.typing-name {
  font-size: 0.8rem;
  opacity: 0.7;
}
.dots {
  display: flex;
  gap: 2px;
}
.dots span {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: typingDots 1s infinite ease-in-out;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDots {
  0% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0.2; transform: translateY(0); }
}
.phone-choices {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.phone-choice {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text-color);
  padding: 0.4rem;
  border-radius: 0.4rem;
  cursor: pointer;
}
#phone-btn {
  position: relative;
}
.phone-alert {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5555;
  display: none;
}
