html, body {
    background-color: #1e1e1e;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: 10px;
    box-sizing: border-box;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
}

.top-bar img {
    height: 25px;
    object-fit: contain;
}

.custom-button {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.custom-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
}

/* Fallback for Safari < 15.4 */
@supports not (height: 100svh) {
    .video-container {
        height: 100vh;
    }
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.text-container {
    position: relative;
    width: 100%;
    padding: 20px 16px;
    text-align: center;
    background-color: #1e1e1e;
}

.fade-text {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    font-size: 24px;
}

.fade-in {
    opacity: 1;
}

/* Mobile */
@media screen and (max-width: 480px) {
    .top-bar img {
        height: 18px;
    }

    .custom-button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .fade-text {
        font-size: 18px;
    }
}

/* Portrait: tuck SIWA button next to logo */
@media screen and (max-width: 480px) and (orientation: portrait) {
    .top-bar {
        justify-content: flex-start;
        gap: 10px;
    }

    .top-bar img {
        max-width: 55%;
        height: auto;
    }

    .custom-button {
        flex-shrink: 0;
    }
}
