/* --- Star Wars Crawl Overlay --- */
.star-wars-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
}

.star-wars-overlay.hidden {
    display: none;
}

.star-wars-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    color: #fff;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.2s, border-color 0.2s;
}

.star-wars-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.star-wars-fade {
    position: absolute;
    width: 100%;
    height: 30vh;
    top: 0;
    background-image: linear-gradient(0deg, transparent, #000 80%);
    z-index: 1;
}

.star-wars-container {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100vh;
    color: #ffe81f;
    /* Star wars yellow */
    font-family: 'Century Gothic', 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.6;
    perspective: 500px;
    text-align: justify;
    overflow: hidden;
}

.star-wars-crawl {
    position: relative;
    width: 95%;
    max-width: 1400px;
    top: 100%;
    transform-origin: 50% 100%;
    transform: rotateX(30deg) translateZ(0);
}

.star-wars-crawl h1,
.star-wars-crawl h2,
.star-wars-crawl h3 {
    text-align: center;
    color: #ffe81f;
    text-shadow: none;
    -webkit-text-fill-color: initial;
    background: none;
}

.star-wars-crawl p,
.star-wars-crawl ul {
    color: #ffe81f;
}

@keyframes scroll-crawl {
    0% {
        top: 100%;
        transform: rotateX(30deg) translateZ(0);
    }

    100% {
        top: -8000px;
        transform: rotateX(30deg) translateZ(-3500px);
    }
}