/* One account menu, anchored to the button rather than an old page-width formula. */
#app #player-profile.profile-sheet {
  box-sizing: border-box;
  position: fixed;
  inset: auto !important;
  top: var(--profile-menu-top, 80px) !important;
  left: var(--profile-menu-left, 12px) !important;
  width: var(--profile-menu-width, min(390px, calc(100vw - 24px))) !important;
  max-height: var(--profile-menu-maxHeight, calc(100dvh - 92px)) !important;
  margin: 0;
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--poster-ink) !important;
  border-radius: 0 !important;
  background: var(--poster-paper) !important;
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--poster-ink) 60%, transparent) !important;
  transform: none !important;
  animation: none !important;
}

#app #player-profile .profile-sheet-head {
  display: flex;
  flex-wrap: nowrap;
  min-height: 80px;
  gap: 14px;
  padding: 16px 18px;
  border: 0 !important;
  border-bottom: 2px solid var(--poster-ink) !important;
}

#app #player-profile .profile-lockup {
  flex: 1 1 auto;
  min-width: 0;
  gap: 12px;
}

#app #player-profile .profile-lockup .avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

#app #player-profile .profile-meta {
  min-width: 0;
}

#app #player-profile .profile-meta strong,
#app #player-profile .profile-meta span {
  overflow-wrap: anywhere;
}

#app #player-profile .profile-head-actions {
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
}

#app #player-profile .profile-close-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--poster-ink) !important;
  border-radius: 0 !important;
  color: var(--site-inverse) !important;
  background: var(--poster-ink) !important;
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--poster-ink) 35%, transparent) !important;
}

#app #player-profile .profile-sheet-actions {
  flex-shrink: 0;
  padding: 16px 18px 18px;
  border-top: 0;
}

#app #player-profile .profile-logout-button {
  border: 1px solid var(--poster-ink) !important;
  border-radius: 0 !important;
  color: var(--site-inverse) !important;
  background: var(--poster-ink) !important;
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--poster-ink) 35%, transparent) !important;
}

@media (max-width: 480px) {
  #app #player-profile .profile-sheet-head { padding: 14px; }
  #app #player-profile .profile-menu-body { padding: 0 14px; }
  #app #player-profile .profile-sheet-actions { padding: 14px; }
  #app #player-profile .profile-meta strong { font-size: 16px; }
}
