:root {
  --app-width: 440px;
  --bottom-nav-height: 73px;
  --bottom-safe-area: env(safe-area-inset-bottom, 0px);
  --page-bottom-clearance: calc(var(--bottom-nav-height) + 23px + var(--bottom-safe-area));
  /* Keep viewport-fixed navigation aligned on pages with and without overflow. */
  scrollbar-gutter: stable;
}

/* The outer shell accounts for the safe area when sizing its content frame. */
:root[data-zuno-page] {
  --bottom-safe-area: 0px;
}

.app-shell,
.activity-app,
.app,
.wallet-app,
.account-app {
  box-sizing: border-box;
  width: min(100%, var(--app-width));
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
}

.app-shell > .main,
.activity-app,
.app,
.wallet-app,
.account-app {
  padding-bottom: var(--page-bottom-clearance);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  box-sizing: border-box;
  width: min(100%, var(--app-width));
  height: calc(var(--bottom-nav-height) + var(--bottom-safe-area));
  padding-bottom: var(--bottom-safe-area);
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 -2px 12px #1111110b;
  font: 12px Arial, Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav > .nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  color: #9da6b9;
  text-decoration: none;
}

.bottom-nav > .nav-item[aria-current="page"] {
  color: #ff5d65;
}

.bottom-nav svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav .promotion-icon {
  position: absolute;
  bottom: 25px;
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  border-radius: 50%;
  background: #ff676b;
  box-shadow: 0 0 0 5px #f5f6fc;
}

.bottom-nav .promotion-icon svg {
  width: 31px;
  height: 31px;
  color: #fff;
}

.bottom-nav > .promotion > span:last-child {
  position: absolute;
  bottom: 9px;
}
