body {
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.5em;
}

#wrap {
  margin: 0 auto;
  width: fit-content;
}

#welcome-back {
  margin: 4rem 0 2rem;
}

button,
input {
  margin: 0.25rem 0;
  border: none;
  border-radius: 5px;
  padding: 0.4rem 0.8rem;
  width: 100%;
  font-size: 1rem;
}

#login {
  margin: 2rem auto;
  padding: 1rem;
  max-width: 500px;
}

#login-continue {
  margin: 2rem auto;
  padding: 1rem;
  max-width: 7rem;
}

button {
  cursor: pointer;
  background-color: var(--primary);
  color: var(--text);
}

.profile {
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.5) 0 0 15px 0;
  border-radius: 1rem;
  background-color: var(--elevated);
  padding-bottom: 1rem;
  max-width: 348px;
}

.profile-banner {
  display: block;
  z-index: 1;
  margin: 0 0.25rem;
  border: none;
  border-radius: 0.75rem 0.75rem 0 0;
  width: calc(100% - 0.5rem);
  height: 120px;
  object-fit: cover;
  object-position: center;
}

.profile-banner.single-color {
  margin: 0;
  width: 100%;
  height: 60px;
}

.profile-avatar {
  position: relative;
  z-index: 2;
  box-sizing: content-box;
  margin-top: -50px;
  margin-left: 1rem;
  border: 7px var(--elevated) solid;
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.profile-badge-wrapper {
  display: flex;
  position: absolute;
  right: 1rem;
  align-items: center;
  gap: 2px;
  translate: 0 -2rem;
  border-radius: 8px;
  background-color: var(--background);
  padding: 4px;
}

.profile-badge-wrapper:empty {
  display: none;
}

.profile-badge {
  display: block;
  position: relative;
}

.profile-badge:hover {
  cursor: pointer;
}

.profile-badge img {
  display: block;
  width: 22px;
  height: 22px;
}

.profile-badge:hover::before,
.profile-badge:hover::after {
  opacity: 1;
}

.profile-badge:hover::after {
  transform: scale(1);
}

.profile-badge::before {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: rotate(45deg);
  translate: -50% 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  background-color: var(--elevated-hover);
  width: 8px;
  height: 8px;
  pointer-events: none;
  content: "";
}

.profile-badge::after {
  --timing: 0.2s ease;
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: scale(0.9);
  transform-origin: bottom;
  translate: -50% 0;
  opacity: 0;
  z-index: 4664;
  transition:
    transform var(--timing),
    opacity var(--timing);
  border-radius: 4px;
  background-color: var(--elevated-hover);
  padding: 0.1rem 0.5rem;
  width: clamp(2rem, fit-content, 5rem);
  overflow: hidden;
  pointer-events: none;
  content: var(--tooltip-content, "Unknown");
  color: white;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info-wrapper {
  margin: 1rem 1rem 0 1rem;
  border-radius: 8px;
  background-color: var(--background);
  padding: 1rem;
}

.user-info-wrapper hr {
  margin: 0.5rem 0;
  border: none;
  background-color: rgba(78, 80, 88, 0.48);
  height: 1px;
}

.profile-name {
  font-size: 20px;
}

.profile-username {
  font-size: 14px;
}

.profile-pronouns {
  font-size: 14px;
}

.profile-bio-header {
  font-size: 12px;
}

.profile-bio {
  font-size: 14px;
}

.dialog-body {
  margin: auto;
  padding: 1rem;
}

dialog[open] {
  margin: auto;
  border-right-width: 0;
  border-left-width: 0;
  border-radius: 1rem;
  border-block-start-width: 0;
  border-block-end-width: 0;
  background-color: var(--elevated);
  padding: 1rem;
  color: var(--text);
}

dialog::backdrop {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.25);
}

dialog[open] button {
  float: right;
  margin-top: 1rem;
  width: 5rem;
}
