@keyframes shimmerScroll {
    0% {
        background-position: center 0%;
    }

    100% {
        background-position: center 200%;
    }
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes listSlideDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

@keyframes listSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }

    to {
        opacity: 0;
        transform: translateY(-25px);
        max-height: 0;
    }
}

@keyframes expandSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes collapseSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
    user-select: none;
}

input, textarea {
    user-select: text;
}

.hidden {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    background: no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: -1;
    pointer-events: none;
}

#bg-overlay {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -2;
    pointer-events: none;
}

main {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    -webkit-perspective: 1500px;
    padding: 20px;
    z-index: 10;
    opacity: 1;
    transition: opacity .5s ease-in-out;
}

body.is-loading main {
    opacity: 0;
}

#tilt-container {
    width: 90%;
    max-width: 800px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition:
        transform .4s cubic-bezier(.25, 1, .5, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.header-container {
    opacity: 0;
    display: none;
    width: 100%;
    height: 100px;
    margin-bottom: 16px;
    flex-shrink: 0;
    transform: translateZ(20px);
}

.header-container.active,
.header-container.exit {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container.active {
    animation:
        slideFadeIn .35s cubic-bezier(.34, 1.56, .64, 1)
        forwards;
}

.header-container.exit {
    animation:
        slideFadeOut .25s cubic-bezier(.4, 0, 1, 1)
        forwards;
}

.title-img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
}

.shimmer-text {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: 4px;
    color: #fff;
    text-shadow:
        0 4px 12px rgba(0, 0, 0, .6);
    text-transform: uppercase;
}

.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 20px;
    flex-shrink: 0;
    min-height: 50px;
    transform: translateZ(30px);
    position: relative;
    z-index: 50;
}

.nav-btn {
    display: block;
    background: rgba(20, 20, 20, .8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border:
        1px solid rgba(255, 255, 255, .12);
    color:
        rgba(255, 255, 255, .7);
    padding: 12px 0;
    width: 140px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, .3);
    animation:
        slideFadeIn .35s cubic-bezier(.34, 1.56, .64, 1)
        forwards;
    transition:
        background .3s,
        border-color .3s,
        color .3s,
        box-shadow .3s,
        transform .2s;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(30, 30, 30, .85);
    border-color: rgba(255, 255, 255, .3);
}

.nav-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .4);
}

.nav-btn:active {
    transform: scale(.96);
}

#box {
    width: 100%;
    flex-grow: 1;
    min-height: 0;
    background: rgba(20, 20, 20, .8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    border:
        1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, .6);
    padding:
        30px 40px 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.scroll-wrapper {
    position: relative;
    width: 100%;
    flex-grow: 1;
    min-height: 0;
    overflow: hidden;
    mask-image:
        linear-gradient(
            to bottom,
            transparent 0%,
            black 3%,
            black 97%,
            transparent 100%
        );
}

.scrollable {
    height: 100%;
    overflow-y: auto;
    padding:
        20px 5px 45px;
    display: flex;
    flex-direction: column;
}

.scrollable::-webkit-scrollbar {
    width: 6px;
}

.scrollable::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            #fff 0%,
            #a3a3a3 50%,
            #fff 100%
        );
    background-size: 100% 200%;
    animation:
        shimmerScroll 4s linear infinite;
    border-radius: 10px;
}

.tab-content {
    display: none;
    opacity: 0;
    width: 100%;
}

.tab-content.active,
.tab-content.exit {
    display: block;
}

.tab-content.active {
    animation: none;
    opacity: 1;
    transform: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tab-content.exit {
    animation:
        slideFadeOut .25s cubic-bezier(.4, 0, 1, 1)
        forwards;
}