@import url('https://fonts.bunny.net/css?family=outfit:300,400,500,600,700');

@import 'tokens.css';
@import 'themes.css';
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--sky-1, #050816);
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    min-height: 100dvh;
    color: var(--chrome-100);
    background: transparent;
    overflow-x: hidden;
}

.hidden { display: none !important; }

#skyCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.views-stack {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 1rem 1rem calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 1rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
    z-index: 0;
}

.view.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.view.leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    body { transition: none; }
}
