* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow: hidden;
    background: #000;
    cursor: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    touch-action: manipulation;
}

html:-webkit-full-screen {
    width: 100%;
    height: 100%;
}

html:-moz-full-screen {
    width: 100%;
    height: 100%;
}

html:fullscreen {
    width: 100%;
    height: 100%;
}

html {
    height: -webkit-fill-available;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bgVideo.active {
    opacity: 1;
    z-index: 1;
}

#tapOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    z-index: 999;
    background: transparent;
    cursor: none;
    touch-action: manipulation;
}

#tapOverlay:-webkit-full-screen {
    width: 100%;
    height: 100%;
}

#tapOverlay:fullscreen {
    width: 100%;
    height: 100%;
}

.bgVideo::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.bgVideo::-webkit-media-controls-enclosure {
    display: none !important;
    opacity: 0 !important;
}

.bgVideo::-webkit-media-controls-panel {
    display: none !important;
    opacity: 0 !important;
}

.bgVideo::-webkit-media-controls-play-button {
    display: none !important;
    opacity: 0 !important;
}

.bgVideo::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
}

.bgVideo::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}

.bgVideo::-webkit-media-controls-timeline {
    display: none !important;
}

.bgVideo::-webkit-media-controls-current-time-display {
    display: none !important;
}

.bgVideo::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.bgVideo::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.bgVideo::-webkit-media-controls-toggle-closed-captions-button {
    display: none !important;
}

video {
    outline: none !important;
}

video:focus {
    outline: none !important;
}

video::cue {
    display: none !important;
}

@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loadingScreen.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.loadingText {
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    margin-top: 20px;
    letter-spacing: 1px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

