@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');

/* ── Wrapper — fixed top-right corner ───────────────────────────────────── */
.pa-wrap {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  /* Hidden during gameplay — only shown when main menu is visible */
}

/* ── Circle ─────────────────────────────────────────────────────────────── */
.pa-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 2.5px solid rgba(0,220,255,0.55);
  box-shadow: 0 0 14px rgba(0,220,255,0.25), inset 0 0 10px rgba(0,220,255,0.07);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #00dcff;
  background-size: cover;
  background-position: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  user-select: none;
  backdrop-filter: blur(6px);
}
.pa-circle:hover {
  border-color: #00dcff;
  box-shadow: 0 0 22px rgba(0,220,255,0.5), inset 0 0 14px rgba(0,220,255,0.12);
  transform: scale(1.07);
}

/* ── Panel ───────────────────────────────────────────────────────────────── */
.pa-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 230px;
  background: rgba(4,10,24,0.96);
  border: 1px solid rgba(0,220,255,0.18);
  border-radius: 16px;
  padding: 0 0 14px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,220,255,0.08);
  backdrop-filter: blur(16px);
}
.pa-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.pa-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px 16px;
  background: linear-gradient(160deg, rgba(0,220,255,0.07) 0%, transparent 70%);
  border-bottom: 1px solid rgba(0,220,255,0.1);
  margin-bottom: 14px;
}

.pa-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid rgba(0,220,255,0.5);
  box-shadow: 0 0 18px rgba(0,220,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #00dcff;
  background: rgba(0,220,255,0.07);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.pa-name {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-email {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.pa-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 14px 14px;
}

.pa-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.pa-stat-val {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 900;
  color: #00dcff;
  text-shadow: 0 0 10px rgba(0,220,255,0.5);
}

.pa-stat-lbl {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.pa-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(0,220,255,0.15);
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.pa-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,220,255,0.2), transparent);
  margin: 0 14px 12px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.pa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: calc(100% - 28px);
  margin: 0 14px 8px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pa-btn:last-child { margin-bottom: 0; }

.pa-btn-img {
  background: rgba(0,220,255,0.07);
  border: 1px solid rgba(0,220,255,0.25);
  color: rgba(0,220,255,0.85);
}
.pa-btn-img:hover {
  background: rgba(0,220,255,0.15);
  border-color: rgba(0,220,255,0.6);
  color: #00dcff;
}

.pa-btn-out {
  background: rgba(255,55,55,0.07);
  border: 1px solid rgba(255,55,55,0.22);
  color: rgba(255,90,90,0.85);
}
.pa-btn-out:hover {
  background: rgba(255,55,55,0.16);
  border-color: rgba(255,90,90,0.5);
  color: #ff6060;
}

/* ── Hide during gameplay (when .menus has no active main menu) ─────────── */
.menu--main:not(.menu--active):not([style*="display:flex"]) ~ * .pa-wrap,
body.playing .pa-wrap {
  display: none;
}
