/* Mobile back-to-top — CSS chevron, no emoji arrows */
.to-top {
  display: none !important;
}

@media (max-width: 900px) {
  .to-top {
    position: fixed !important;
    right: max(14px, env(safe-area-inset-right, 0px)) !important;
    bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 60 !important;
    display: none !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(230, 200, 120, .45) !important;
    border-radius: 2px !important;
    background: rgba(23, 20, 17, .92) !important;
    color: #fffaf4 !important;
    -webkit-text-fill-color: #fffaf4 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28) !important;
    cursor: pointer !important;
  }

  .to-top.is-on {
    display: grid !important;
  }

  .to-top-arr {
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    margin-top: 4px !important;
    border-left: 2px solid currentColor !important;
    border-top: 2px solid currentColor !important;
    transform: rotate(45deg) !important;
  }

  .to-top:focus-visible {
    outline: 2px solid #e6c878 !important;
    outline-offset: 3px !important;
  }
}
