body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    font-family: "Myriad Pro", Myriad, "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;
    overscroll-behavior: none;
}

#unity-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#unity-canvas {
    width: 100%;
    height: 100%;
}

#unity-fullscreen-button {
    position: absolute;
    z-index: 1;
    bottom: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    background-color: transparent;
    background-image: url("fullscreen-button-out.png");
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.333;
}

#unity-fullscreen-button:hover {
    opacity: 1;
}

#unity-warning {
    position: absolute;
    z-index: 200;
    top: 5%;
    left: 50%;
    display: none;
    padding: 10px;
    transform: translateX(-50%);
    background: #ffffff;
}

#custom-splash {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: #000000;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.splash-logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.splash-logo-four {
    width: auto;
    height: min(16vw, 110px);
    opacity: 0;
    filter: brightness(.9);
    animation: fourFlicker 1.9s ease forwards;
}

.splash-logo-friends {
    width: auto;
    height: min(7vw, 56px);
    opacity: 0;
    transform: translateX(-8px);
    animation: friendsReveal .9s ease 1.7s forwards;
}

#progress-bar {
    box-sizing: border-box;
    width: min(72vw, 420px);
    height: 18px;
    padding: 2px;
    overflow: hidden;
    background: #ffffff;
}

#progress-fill {
    width: 0;
    height: 100%;
    background: #000000;
    transition: width 0.1s linear;
}

#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 {
    from { opacity: 1; }
    to { opacity: 0; }
}
