* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    position: fixed;
    inset: 0;
    font-family: sans-serif;
}

#app {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: none;
    opacity: 0;
    /* Critical iOS rendering hacks to force hardware composite repaints instead of skipping frames */
    visibility: hidden;
    transform: scale(1.01);
    -webkit-transform: scale(1.01);
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    /* Let clicks pass through to app wrapper securely */
}

video.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    -webkit-transform: scale(1);
    pointer-events: auto;
}

.loader {
    position: absolute;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.overlay-btn {
    position: absolute;
    z-index: 200;
    color: white;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 18px 50px;
    border-radius: 60px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    cursor: pointer;
    animation: pulse 2s infinite;
}

.message {
    position: absolute;
    bottom: 30px;
    z-index: 200;
    pointer-events: none;
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 30px;
    text-align: center;
    max-width: 80%;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}