#achievements-menu {
  z-index: 25;
}

#achievements-menu-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #5a4a7a 0%, #3a3a5a 100%);
  overflow-y: auto;
}

#achievements-menu-header {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2cqh 3cqh;
  z-index: 10;
}

#achievements-ribbon {
  position: relative;
  width: 85%;
  margin: 3cqh auto 0 auto;
  text-align: center;
  z-index: 5;
}

#achievements-ribbon img {
  width: 100%;
  display: block;
}

#achievements-ribbon span {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5cqh;
  font-weight: 700;
  color: white;
}

#achievements-list-container {
  position: absolute;
  top: 15cqh;
  bottom: 12cqh;
  left: 0;
  right: 0;
  overflow-y: auto;
  padding: 2cqh 4cqh;
}

#achievements-list {
  display: flex;
  flex-direction: column;
  gap: 2cqh;
}

.achievement-card {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #4a3a6a 0%, #3a2a5a 100%);
  border-radius: 1cqh;
  padding: 2cqh 3cqh;
  position: relative;
  overflow: hidden;
}

.achievement-card-locked {
}

.achievement-card-content {
  flex: 1;
  min-width: 0;
}

.achievement-card-title {
  font-size: 3cqh;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5cqh;
}

.achievement-card-description {
  font-size: 2cqh;
  color: #aaa;
}

.achievement-card-icon {
  width: 8cqh;
  height: 8cqh;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2cqh;
  flex-shrink: 0;
}

.achievement-card-icon img {
  width: 5cqh;
  height: 5cqh;
}

.achievement-card-icon-earth {
  background-color: var(--earth-color);
}

.achievement-card-icon-air {
  background-color: var(--air-color);
}

.achievement-card-icon-water {
  background-color: var(--water-color);
}

.achievement-card-icon-fire {
  background-color: var(--fire-color);
}

.achievement-card-icon-default {
  background-color: #888;
}

.achievement-card-icon-locked {
  background-color: #444;
}

.achievement-lock-icon {
  width: 4cqh;
  height: 4cqh;
  fill: #888;
}

.achievement-card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.5cqh;
  background-color: #e720b8;
}

.achievement-card-progress-partial {
  background-color: #e720b8;
}

.achievement-card-progress-text {
  position: absolute;
  bottom: 1cqh;
  right: 1.5cqh;
  font-size: 1.5cqh;
  color: white;
}

#achievements-menu-back {
  position: absolute;
  bottom: 3cqh;
  left: 3cqh;
  z-index: 10;
  fill: white;
}

#achievements-menu-back img,
#achievements-menu-back svg {
  height: 6cqh;
}

#quests-menu {
  display: none;
}

.quests-window-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

.quests-window-background-close {
  position: fixed;
  background-color: #000a;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 101;
}

.quests-menu {
  position: relative;
  top: 20%;
  height: 60%;
  left: 0;
  right: 0;
  width: 80%;
  margin: auto;
  background-color: #181b46;
  z-index: 102;
}

.quests-menu-body {
  position: relative;
  top: 1.5cqh;
  margin: 1.5cqh;
  padding: 1.5cqh;
  width: calc(100% - 6.4cqh);
  height: calc(100% - 6.4cqh);
  border: solid 0.2cqh white;
}

.quests-menu-heading {
  font-size: 5cqh;
}

.quests-menu-back-button {
  top: 82%;
  right: 10%;
}

.quests-list-container {
  position: absolute;
  height: 80%;
  overflow-y: scroll;
  top: 20%;
  margin-left: 3cqh;
  width: calc(100% - 6cqh);
}

.quest-item {
  border-bottom: 1px solid white;
  padding: 2cqh 0;
  font-size: 3cqh;
}

.quest-redeem-button {
  width: 40%;
  padding: 1cqh 0;
  font-size: 3cqh;
  position: absolute;
  right: 0;
}

.quest-progress {
  position: absolute;
  right: 0;
}

#audio-menu {
  display: none;
}

#audio-menu-container {
  height: 70%;
  width: 100%;
  max-width: 75vh;
  top: 20%;
  padding: 3cqh;
  position: fixed;
}

.audio-menu-window-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

.audio-menu-window-background-close {
  position: fixed;
  background-color: #000a;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 101;
}

.audio-menu-window {
  position: relative;
  top: 20%;
  height: 60%;
  left: 0;
  right: 0;
  width: 80%;
  margin: auto;
  background-color: #181b46;
  z-index: 102;
}

.audio-menu-window-body {
  position: relative;
  top: 1.5cqh;
  margin: 1.5cqh;
  padding: 1.5cqh;
  width: calc(100% - 6.4cqh);
  height: calc(100% - 6.4cqh);
  border: solid 0.2cqh white;
}

.audio-menu-window-heading {
  font-size: 5cqh;
}

.audio-menu-back-button {
  top: 82%;
  right: 10%;
}

.audio-menu-slider {
  -webkit-appearance: none;
  width: 90%;
  height: 4cqh;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
  padding: 0 !important;
}

.audio-menu-slider:hover {
  opacity: 1;
}

.audio-menu-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 4cqh;
  height: 4cqh;
  background: #04aa6d;
  cursor: pointer;
}

.audio-menu-slider::-moz-range-thumb {
  width: 4cqh;
  height: 4cqh;
  background: #04aa6d;
  cursor: pointer;
}

.audio-menu-option-heading {
  font-size: 4cqh;
  margin: 2cqh 0;
}

#friends-menu-header {
  height: 10%;
  width: 100%;
  max-width: 75vh;
  top: 10%;
  position: fixed;

  font-size: 6cqh;
  font-weight: bold;
  unicode-bidi: isolate;
}

.friends-menu-button {
  position: absolute;
  display: block;
  width: 8cqh;
  height: 8cqh;
  background-color: #0000;
  border: none;
  font-size: 3%;
  color: white;
  text-align: center;

  top: 11cqh;
  right: 2cqh;
  z-index: 100;
}

.friends-window-subheading {
  font-size: 5cqh;
  font-weight: bold;
  opacity: 0.8;
  margin-bottom: 2cqh;
}

.add-friend-button {
  display: block;
  position: absolute;
  z-index: 10;
  right: 2cqh;
  &:hover {
    cursor: pointer;
  }
}

.friends-menu-block {
  display: block;
  font-size: 3cqh;
  padding: 2cqh;
  border-bottom: 1px solid white;
  &:last-child {
    border-bottom: none;
  }
}

.friend-list-row {
  margin: 1cqh 0;
  background-color: #fff0;
  padding: 1cqh;
  transition: background-color 0.3s;

  &:hover {
    cursor: pointer;
    background-color: #fff3;

    .friend-list-row-action {
      opacity: 1;
    }
  }
}

.friend-list-name {
  display: inline-block;
  font-size: 3.5cqh;
}

.friend-list-row-action {
  display: inline-block;
  position: absolute;
  right: 3cqh;
  opacity: 0;
  transition: opacity 0.3s;
}

#friends-window {
  position: absolute;
  width: 80%;
