body {
    margin: 0;
    overflow: hidden;
    background-color: #111111;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

#unity-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#unity-canvas {
    display: block;
    background-color: #111111;
}
#loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 20px;
    background-color: #ffffff10;
    border-radius: 10px;
    overflow: hidden;
}

#loading-bar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 10px;
    padding: 2px; /* Glow thickness */
    background: linear-gradient(90deg, transparent, #FFAA00, #FF7700, transparent);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: itemGlowAnimation 1.5s linear infinite;
    pointer-events: none;
}

#loading-fill {
    width: 0%;
    height: 100%;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(90deg, #FFAA00, #FF7700);
    transition: width 0.2s ease-out;
}

#loading-text {
    position: absolute;
    left: 50%; 
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    background: linear-gradient(90deg, rgb(252, 252, 251), rgb(252, 252, 251), rgb(252, 252, 251));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 4px rgba(255,170,0,0.5);
    animation: itemGlowAnimation 1.5s linear infinite;
}

#loading-label {
    position: absolute;
    left: 50%;
    top: calc(50% + 30px);
    transform: translateX(-50%);
    font-size: clamp(14px, 3vw, 23px);
    font-weight: bold;
    z-index: 1000;
    text-align: center;
    background: linear-gradient(90deg, #FFAA00, #FF7700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(255,170,0,0.6);
    animation: loadingLabelPulseAnimation 3s linear infinite;
    max-width: 90%;
    line-height: 1.2;
}

#disclaimer-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    font-weight: bold;
    font-size: clamp(10px, 2vw, 16px);
    text-align: center;
    background: linear-gradient(90deg, rgb(252, 252, 251), rgb(252, 252, 251), rgb(252, 252, 251));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 4px rgba(255,170,0,0.5);
    animation: itemGlowAnimation 1.5s linear infinite;
    max-width: 100%;
    line-height: 1.2;
}

@keyframes itemGlowAnimation {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes loadingLabelPulseAnimation {
  0%, 100% {
    text-shadow: 0 0 1px #FFAA00, 0 0 4px #FF7700;
  }
  50% {
    text-shadow: 0 0 5px #FF7700, 0 0 7px #FFAA00;
  }
}
