.home-return {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px 0 10px;
  color: #fff4dc;
  font-family: "Gill Sans", "Avenir Next", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 246, 220, 0.16), rgba(255, 246, 220, 0.04)),
    rgba(29, 22, 17, 0.86);
  border: 1px solid rgba(232, 198, 124, 0.46);
  border-radius: 8px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.home-return:hover,
.home-return:focus-visible {
  transform: translateY(-1px);
  color: #fff8e8;
  background:
    linear-gradient(180deg, rgba(255, 246, 220, 0.24), rgba(255, 246, 220, 0.06)),
    rgba(31, 24, 18, 0.92);
  border-color: rgba(242, 211, 139, 0.72);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(177, 138, 74, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  outline: none;
}

.home-return--fixed {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  z-index: 18;
}

.home-return--game {
  right: auto;
  left: calc(env(safe-area-inset-left, 0px) + 12px);
  z-index: 30;
  background:
    linear-gradient(180deg, rgba(255, 246, 220, 0.18), rgba(255, 246, 220, 0.04)),
    rgba(10, 10, 10, 0.78);
}

.home-return-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #251a11;
  background: linear-gradient(180deg, #f4dc94, #c39a52);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.home-return-label {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .home-return {
    width: 42px;
    padding: 0;
    gap: 0;
  }

  .home-return-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-return {
    transition-duration: 1ms !important;
  }
}
