*, *:before, *:after {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: #0c1022;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: radial-gradient(circle at 50% 50%, rgba(13, 17, 36, 0.4) 0%, rgba(6, 9, 20, 0.85) 100%), url('../gameBackground.png');
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
}

#unity-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#unity-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    background: none;
    touch-action: none;
    cursor: default;
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    text-align: center;
    z-index: 10;
}

#unity-logo {
    --unity-loading-progress: 0%;
    position: relative;
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.4));
}

#unity-logo-base,
#unity-logo-fill {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-image: url('prime-logo-mask.png');
}

#unity-logo-base {
    opacity: 0.18;
}

#unity-logo-fill {
    background-image: none;
    background: linear-gradient(180deg, #00f0ff 0%, #9d4edd 50%, #f72585 100%);
    -webkit-mask-image: url('prime-logo-mask.png');
    mask-image: url('prime-logo-mask.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-size: contain;
    mask-size: contain;
    clip-path: inset(calc(100% - var(--unity-loading-progress)) 0 0 0);
    transition: clip-path 120ms linear;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.7));
}

/* Mobile responsive scaling */
@media (max-width: 600px), (max-height: 600px) {
    #unity-logo {
        width: 130px;
        height: 130px;
    }
}
