@media (max-width: 820px) {
  body {
    padding-bottom: calc(70px + max(10px, env(safe-area-inset-bottom, 0px)) + 12px) !important;
  }

  .view {
    padding-bottom: calc(70px + max(10px, env(safe-area-inset-bottom, 0px)) + 16px) !important;
  }

  .mobile-nav {
    inset-inline: 12px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: auto;
    height: 70px;
    padding: 5px 7px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    overflow: visible;
    border: 1px solid rgba(159, 190, 230, .15);
    border-radius: 23px;
    background: rgba(9, 19, 33, .92);
    box-shadow: 0 12px 38px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .045);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
  }

  .mobile-nav__btn {
    position: relative;
    min-height: 56px;
    gap: 3px;
    padding: 5px 2px 4px;
    color: rgba(190, 205, 225, .62);
    border-radius: 16px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }

  .mobile-nav__btn:active {
    transform: scale(.94);
  }

  .mobile-nav__btn:focus-visible {
    outline: 2px solid #78baff;
    outline-offset: -2px;
  }

  .mobile-nav__btn.active {
    color: #eaf4ff;
    background: rgba(72, 145, 255, .09);
  }

  .mobile-nav__btn.active::before {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #69adff;
    box-shadow: 0 0 12px rgba(80, 159, 255, .7);
    content: "";
    transform: translateX(-50%);
  }

  .mobile-nav__ico {
    width: 30px;
    height: 29px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    font-size: 17px;
    line-height: 1;
  }

  .mobile-nav__btn.active .mobile-nav__ico {
    border-color: rgba(105, 173, 255, .2);
    background: linear-gradient(145deg, rgba(58, 132, 242, .24), rgba(58, 132, 242, .09));
  }

  .mobile-nav__lbl {
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .015em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav__btn--center {
    z-index: 1;
    overflow: visible;
    background: transparent !important;
  }

  .mobile-nav__ico-center {
    width: 50px;
    height: 50px;
    margin: -12px 0 0;
    border: 4px solid #0b1727;
    background: linear-gradient(145deg, #ffb34f, #f47b23);
    color: #fff;
    font-size: 27px;
    font-weight: 500;
    box-shadow: 0 5px 17px rgba(245, 132, 41, .32), 0 0 0 1px rgba(255, 207, 139, .22);
  }

  #btnMore .mobile-nav__ico {
    font-size: 22px;
    font-weight: 800;
  }

  #moreMenu {
    inset-inline: 12px;
    bottom: calc(70px + max(10px, env(safe-area-inset-bottom, 0px)) + 14px);
    max-height: min(72dvh, 620px);
    border: 1px solid rgba(159, 190, 230, .15);
    border-radius: 24px;
    background: rgba(11, 22, 38, .97);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .48);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .more-menu__handle {
    width: 38px;
    height: 4px;
    margin: 11px auto 14px;
    background: rgba(190, 205, 225, .28);
  }

  #moreMenuList {
    gap: 5px;
    padding: 0 12px 12px;
  }

  #moreMenuList button {
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 15px;
    background: rgba(255, 255, 255, .025);
    color: rgba(237, 244, 255, .86);
    font-size: 14px;
  }

  #moreMenuList button:active {
    background: rgba(72, 145, 255, .12);
  }

  #moreMenuList button .mobile-nav__ico {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 11px;
    background: rgba(72, 145, 255, .1);
    font-size: 17px;
  }

  #moreMenuList .more-menu__group {
    margin: 0;
    list-style: none;
  }

  #moreMenuList .more-menu__group-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  #moreMenuList .more-menu__group-toggle .lbl {
    flex: 1;
    text-align: left;
  }

  #moreMenuList .more-menu__chevron {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: rgba(213, 226, 250, .66);
    font-size: 19px;
    line-height: 1;
    transition: transform .18s ease;
  }

  #moreMenuList .more-menu__group-toggle[aria-expanded="true"] .more-menu__chevron {
    transform: rotate(180deg);
  }

  #moreMenuList .more-menu__sublist {
    display: grid;
    gap: 5px;
    margin: 5px 0 2px 17px;
    padding: 0 0 0 11px;
    border-left: 1px solid rgba(139, 165, 227, .22);
    list-style: none;
  }

  #moreMenuList .more-menu__sublist[hidden] {
    display: none;
  }

  #moreMenuList .more-menu__sublist button {
    min-height: 46px;
    border-color: rgba(255, 255, 255, .035);
    background: rgba(255, 255, 255, .018);
    font-size: 13px;
  }

  .more-overlay {
    background: rgba(1, 7, 15, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
}

@media (max-width: 380px) {
  .mobile-nav {
    inset-inline: 8px;
    padding-inline: 4px;
  }

  .mobile-nav__lbl {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav__btn {
    transition: none;
  }
}

.orientation-notice {
  display: none;
}

@media screen and (orientation: landscape) and (pointer: coarse) and (min-width: 560px) and (max-width: 1024px) and (max-height: 600px) {
  body {
    overflow: hidden !important;
  }

  .orientation-notice {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #07101d;
    color: #f5f8ff;
    text-align: center;
  }

  .orientation-notice__card {
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 360px;
  }

  .orientation-notice__icon {
    display: block;
    margin-bottom: 5px;
    font-size: 2.5rem;
    transform: rotate(90deg);
  }

  .orientation-notice h1 {
    margin: 0;
    font-size: 1.35rem;
  }

  .orientation-notice p {
    margin: 0;
    color: #a7b4c7;
    line-height: 1.5;
  }
}
