html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
}

canvas {
    display: block;
}

body {
    margin: 0;
}

#unity-container {
    width: 100%;
    height: 100%;
    position: relative;
}

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

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#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;
        border-radius: 50%;
    }

#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);
    }
}

/* сам контейнер — абсолютный, 15 % высоты, растягивается по ширине */
#tip-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15vh; /* или height: 15%; */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* клики «проскальзывают» на игру */
  
  /* градиент: от плотного чёрного внизу к прозрачному наверху */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 100; /* чтобы был поверх канвы */
}

/* сам текст подсказки */
#tip-text {
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 0 10px;
  line-height: 1.4;
  max-width: 80%;
  /* чтобы на любой картинке читалось */
  text-shadow:
    1px 1px 2px rgba(0,0,0,0.8),
   -1px -1px 2px rgba(0,0,0,0.8);
}


.loading-text {
  color: white;
  font-size: 14px;
  margin-top: 4px;
  text-align: center;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
   -1px -1px 2px rgba(0, 0, 0, 0.8),
    1px -1px 2px rgba(0, 0, 0, 0.8),
   -1px  1px 2px rgba(0, 0, 0, 0.8);
}
.light .loading-text {
  color: black;
}



.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;
}
