body {
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    background-color: #004c3d;
    font-family: "Myriad Pro", Myriad, "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;
    overscroll-behavior: none;
}

#unity-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#unity-canvas {
    width: 100%;
    height: 100%;
}

#unity-loading-bar {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #b8d4c8;
    z-index: 100;
}

#splash {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(70vw, 400px);
}

#progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background-color: #ffffff;
    border-radius: 4px;
    transition: width 0.1s linear;
}

#unity-fullscreen-button {
    height: 32px;
    width: 32px;
    position: absolute;
    z-index: 1;
    bottom: 10px;
    left: 10px;
    background-color: transparent;
    background-image: url("fullscreen-button-out.png");
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    opacity: 0.333;
}

#unity-fullscreen-button:hover {
    opacity: 1.0;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
    z-index: 200;
}

/* --- Splash Screen --- */
#custom-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splash-logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.splash-logo-four {
    height: min(16vw, 110px);
    width: auto;
    opacity: 0;
    filter: brightness(.9);
    animation: fourFlicker 1.9s ease forwards;
}

.splash-logo-friends {
    height: min(7vw, 56px);
    width: auto;
    opacity: 0;
    transform: translateX(-8px);
    animation: friendsReveal .9s ease forwards;
    animation-delay: 1.7s;
}

#custom-splash.fade-out {
    pointer-events: none;
    animation: splashFadeOut 0.8s ease-in-out forwards;
}

@keyframes fourFlicker {
    0%   { opacity: 0;   filter: brightness(.1)  drop-shadow(0 0 0   rgba(200,242,90,0)) }
    8%   { opacity: .18 }
    14%  { opacity: .04 }
    22%  { opacity: .45 }
    28%  { opacity: .16 }
    40%  { opacity: .72; filter: brightness(1.05) drop-shadow(0 0 8px  rgba(200,242,90,.25)) }
    52%  { opacity: .28 }
    66%  { opacity: .92; filter: brightness(1.15) drop-shadow(0 0 22px rgba(200,242,90,.45)) }
    78%  { opacity: .76 }
    100% { opacity: 1;   filter: brightness(1.2)  drop-shadow(0 0 26px rgba(200,242,90,.55)) }
}

@keyframes friendsReveal {
    from { opacity: 0; transform: translateX(-10px) }
    to   { opacity: 1; transform: none }
}

@keyframes splashFadeOut {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}
