:root {
  --navigation-height: 74px;
  --navigation-padding: var(--safe-bottom);
  --navigation-total: calc(var(--navigation-height) + var(--navigation-padding));
}

@layer base {
  .navigation {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    max-width: 500px;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    margin: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    overflow: hidden;
  }

  .bar {
    width: 54px;
    border-radius: 27px 27px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: var(--navigation-padding);
    cursor: pointer;
  }

  .safeContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    margin-top: -10px;
  }

  .icon {
    width: 40px;
    height: 40px;
    margin-bottom: -6px;
  }

  .label {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    -webkit-text-stroke: 1px #331b01;
    text-shadow: 0px 2px 2px #0000008c;
    line-height: 1;
    color: white;
  }

  .active .label {
    color: #ffbd42;
  }

  .menuOverlay {
    position: absolute;
    right: 0;
    bottom: calc(var(--navigation-total) + 16px);
    z-index: 9;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    overflow: hidden;
    pointer-events: none;
  }

  .menuOverlay > * {
    pointer-events: auto;
  }

  .menuBar {
    height: 54px;
    width: 94px;
    border-radius: 27px 0 0 27px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-right: 20px;
    padding-left: 20px;
    cursor: pointer;
  }

  .menuBarContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 100%;
    margin-left: -10px;
  }
}
