
body {
    min-height: 100dvh;
    background: var(--theme-color, #1E1E1E);
}

body:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12rem;
    background: linear-gradient(180deg, var(--theme-color, #1E1E1E) 0.11%, #343434 99.89%);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    z-index: 3;
    opacity: var(--bottom-fade, 0);
}

.nav {
    position: fixed;
    width: 100%;
    background: var(--neutral-700);
    min-height: 2.5rem;
    padding: calc(0.75rem + env(safe-area-inset-top)) 1.5rem 0.75rem 1.5rem;
    z-index: 99;
}

.nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: var(--max-width-screen);
    margin: 0 auto;
}

.nav__back {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    user-select: none;

}

.nav__back-text {
    color: var(--brand-300);
    line-height: 1;
}

.nav__title {
    grid-column: 2;
    color: var(--neutral-00);
    font-weight: 600;
    text-align: center;
}

.main {
    position: relative;
    height: calc(100dvh - 4.5rem);
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.page {
    position: relative;
    width: 100%;
    min-height: 100%;
    max-width: var(--max-width-screen);
    padding: calc(4.5rem + env(safe-area-inset-top)) 1.5rem 1.5rem 1.5rem;
    margin: 0 auto;
    overflow: visible;
    z-index: 3;
}


.page--with-top-nav {
    padding: calc(1.5rem + env(safe-area-inset-top)) 1.5rem 4rem 1.5rem;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 4.5rem;
    background: var(--footer-bg);
    padding: 0 1.5rem calc(0.75rem + env(safe-area-inset-bottom)) 1.5rem;
    z-index: 4;
}

.footer__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: var(--max-width-screen);
    margin: 0 auto;
}

.footer__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 3.75rem;
    padding-top: 0.75rem;
    gap: 0.25rem;
    color: var(--neutral-200);
    cursor: pointer;
    text-decoration: none;
    border-top: 2px solid transparent;
}

.footer__item:hover {
    color: var(--brand-500);
}

.footer__item--active {
    color: var(--brand-400);
    border-top: 2px solid var(--brand-500);
}

.footer__text {
    color: var(--neutral-50);
}

.footer__item:hover .footer__text {
    color: var(--brand-400);
}

.footer__item--active .footer__text {
    color: var(--brand-300);
}

.footer__icon {
    color: inherit;
}
