html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
	touch-action: none;
}

canvas {
    display: block;
}

body {
    margin: 0;
}

#unity-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Desktop active field stays within 2:1 while filling at least one viewport axis. */
#unity-container.unity-desktop {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(100vw, 200vh);
    height: min(100vh, 200vw);
}

/* Phones/tablets keep the complete available viewport in either orientation. */
#unity-container.unity-mobile {
    width: 100%;
    height: 100%;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #1F1F20;
	touch-action: none;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at 50% 35%, #f8f9eb, #b5ded1) !important;
    color: #1b2f40;
}

.egg-brand { display:flex; flex-direction:column; align-items:center; gap:20px; font:700 clamp(20px,5vw,36px)/1.2 system-ui,sans-serif; letter-spacing:.1em; margin-bottom:20px; }
.egg-brand img { width:clamp(96px,20vw,168px); height:auto; }
#unity-progress-bar-empty { max-width:320px; min-width:180px; border:0 !important; border-radius:20px; background:#e2ebe3; height:14px !important; overflow:hidden; padding:0 !important; }
#unity-progress-bar-full { background:#12847e !important; border-radius:20px; }
.spinner { border-color:rgba(18,132,126,.15) !important; border-left-color:#12847e !important; font-size:5px !important; }

#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#unity-logo {
    text-align: center;
    pointer-events: none;
}

    #unity-logo img {
        max-width: 80%;
        max-height: 80%;
        pointer-events: none;
    }

#unity-progress-bar-empty {
    width: 30%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
    transition: width 0.5s ease;
}

.light #unity-progress-bar-empty {
    border-color: black;
}

.light #unity-progress-bar-full {
    background: black;
}

.spinner,
.spinner:after {
    border-radius: 50%;
    width: 5em;
    height: 5em;
}

.spinner {
    margin: 10px;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



#unity-canvas {
    background: linear-gradient(140deg, rgba(6, 19, 40, 1) 0%, rgba(10, 71, 117, 1) 100%);
}



.spinner {
    border-top: 1.1em solid rgba(255, 211, 37, 0.2);
    border-right: 1.1em solid rgba(255, 211, 37, 0.2);
    border-bottom: 1.1em solid rgba(255, 211, 37, 0.2);
    border-left: 1.1em solid rgba(63, 162, 255, 1);
}

#unity-progress-bar-empty {
    border-color: rgba(255, 211, 37, 0.7);
    width: 30%;
}

#unity-progress-bar-full {
    background: rgba(63, 162, 255, 1);
}

.light #unity-progress-bar-empty {
    border-color: rgba(255, 211, 37, 0.7);
}

.light #unity-progress-bar-full {
    background: rgba(63, 162, 255, 1);
}



#unity-progress-bar-empty {
    height: 24px;
}


#unity-progress-bar-empty {
    border-radius: 12px;
}

#unity-progress-bar-full {
    border-radius: 10px;
    transition: width 0.5s ease;
}
