.corner-hud .topbar {
  padding: max(16px, env(safe-area-inset-top)) 20px;
  align-items: flex-start;
}
.hud-identity {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.hud-level-column {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.hud-level,
.hud-settings {
  color: #e5edf0;
  border: 1px solid #a4b0b5;
  background: radial-gradient(circle at 35% 25%, #304859, #0a1119 75%);
}
.hud-level {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 0;
  gap: 0;
  box-shadow:
    inset 0 0 0 3px #243943,
    2px 0 7px #53bfff,
    0 3px 8px #000;
}
.hud-level #level-badge {
  position: static;
  font-size: 25px;
  line-height: 27px;
  color: #eef8ff;
}
.hud-level small {
  font-size: 8px;
  letter-spacing: 1px;
}
.hud-settings {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px #141e25,
    0 3px 8px #0008;
}
.hud-settings svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.hud-place {
  padding: 8px 15px 9px 0;
  text-shadow: 0 2px 4px #000;
  background: linear-gradient(90deg, #0a1016aa, transparent);
  border-radius: 8px;
}
#hud-location {
  font:
    bold 23px Georgia,
    serif;
}
.corner-hud .top-actions,
.corner-hud .bottom-bar .location {
  display: none;
}
.corner-hud #mobile-menu {
  transform: none;
  box-shadow: none;
  left: 16px;
  right: 16px;
  width: auto;
  bottom: max(12px, env(safe-area-inset-bottom));
  height: 82px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}
.corner-hud #mobile-menu button {
  pointer-events: auto;
  background: linear-gradient(145deg, #28333bd9, #080e15f5);
  border: 1px solid #9ca8b0;
  box-shadow:
    inset 0 0 0 3px #121c24,
    0 3px 10px #0009;
  color: #e1e8ec;
  width: 59px;
  height: 53px;
}
.corner-hud #mobile-menu #quick-gather {
  background: linear-gradient(#28495d, #0e2535) !important;
  color: #e4f4ff !important;
}
.corner-hud #mobile-menu #show-map {
  position: absolute;
  bottom: 0;
  width: 78px;
  height: 82px;
  border-radius: 19px 19px 14px 14px;
  font-family: Georgia, serif;
  font-size: 14px;
  gap: 0;
}
.corner-hud #show-map {
  right: 0;
}
.hud-object-icon {
  width: 65px;
  height: 49px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #000);
}
.corner-hud #interaction {
  bottom: 110px;
}
.settings-actions,
.map-routes {
  display: grid;
  gap: 12px;
}
.settings-actions button {
  width: 100%;
  height: auto;
  min-height: 48px;
  border-radius: 10px;
}
#journal-settings #sound::before {
  content: "Sound · ";
}
.map-routes {
  padding: 16px;
  border: 1px solid #63727c;
  border-radius: 12px;
  background: radial-gradient(ellipse at top, #2a3945, #10171e);
}
.map-destination {
  min-height: 54px;
  padding: 12px;
  border: 1px solid #8a989e;
  border-radius: 9px;
  background: #101b24de;
  color: #dce7ed;
  text-align: left;
}
.map-destination:disabled {
  opacity: 0.5;
}
@media (max-width: 600px) {
  .corner-hud .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hud-identity {
    gap: 11px;
  }
  #hud-location {
    font-size: 19px;
  }
  .hud-level {
    width: 52px;
    height: 52px;
  }
  .corner-hud #mobile-menu {
    left: 12px;
    right: 12px;
    height: 72px;
  }
  .corner-hud #mobile-menu #show-map {
    width: 68px;
    height: 72px;
  }
  .hud-object-icon {
    width: 57px;
    height: 43px;
  }
}
@media (max-height: 450px) and (orientation: landscape) {
  .hud-level-column {
    display: flex;
    align-items: center;
  }
  .hud-place {
    padding-top: 0;
  }
  .corner-hud #mobile-menu #show-map {
    height: 66px;
  }
  .hud-object-icon {
    height: 36px;
  }
  .corner-hud #interaction {
    bottom: 90px;
  }
}
