@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--arena-accent);
  outline-offset: 2px;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  height: 64px;
  background: rgba(15, 17, 23, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--arena-border);
  padding-inline: var(--sp-2);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--arena-text-muted);
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 700;
  border: none;
  background: transparent;
  cursor: pointer;

  &.active {
    color: var(--arena-violet);
  }
}

.offcanvas-arena {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: min(300px, 86vw);
  height: 100vh;
  background: var(--arena-surface-01);
  border-inline-end: 1px solid var(--arena-border);
  z-index: calc(var(--z-modal) + 2);
  transform: translateX(-105%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;

  &.open {
    transform: translateX(0);
  }
}

[dir='rtl'] .offcanvas-arena {
  transform: translateX(105%);

  &.open {
    transform: translateX(0);
  }
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  background: var(--arena-surface-02);
  color: var(--arena-text-secondary);
  border-radius: var(--r-sm);
  cursor: pointer;
}

@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: flex;
  }
}
