body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', Arial, sans-serif;
  background: black;
  color: white;
  margin: 0;
  height: 98vh;
  position: relative;
}

.container {
  text-align: center;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.rate-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 20px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  color: #ffffff;
  width: 100%;
  max-width: 90vw;
  flex-wrap: wrap;
  word-break: break-word;
  text-align: center;
  text-shadow: 0 0 50px rgba(255, 255, 255);
}

/* Адаптивные размеры шрифта */
.rate-display.adaptive {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.rate-display.adaptive-small {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.rate-display.adaptive-tiny {
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
}

.star-icon {
    width: clamp(30px, 6vw, 40px);
    height: clamp(30px, 6vw, 40px);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 30px rgba(242, 255, 0, 0.9)) drop-shadow(0 0 30px rgba(242, 255, 0, 0.2));
}



.rate-display.adaptive-small .star-icon {
    width: clamp(20px, 4vw, 25px);
    height: clamp(20px, 4vw,25px);
}

.rate-display.adaptive-tiny .star-icon {
    width: clamp(17px, 3vw, 20px);
    height: clamp(17px, 3vw, 20px);
}

.equals {
  padding: 0 0.2rem;
}


.input-container label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #aaa;
  border: 1px solid #ffffff; 
  border-radius: 1px; 
}

#stars-input {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
        padding: 0.7rem 1rem;
    font-size: 0.8rem;
    color: white;
    text-align: center;
    min-width: 180px;
    width: 50%;
    max-width: 300px;
    backdrop-filter: blur(10px);
    text-align: left;
    border: 1px solid rgb(255, 255, 255, 0.3);
}

.bottom-info {
  position: absolute;
  bottom: 1vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 0 1rem;
}

.course-info {
    color: #898989;
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
}

/* Loader */
.loader-container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.loader-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: #898989;
  border-radius: 3px;
  width: 0%;
  transition: width 1s linear;
}


@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.loading {
  animation: pulse 1.5s infinite;
}

.warning-plank {
    background: rgba(255, 68, 68, 0.1);
    color: rgb(255, 0, 0);
    border: 1px solid #ff0000; 
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    margin: 1rem auto;
    max-width: 500px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    width: 70%;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
    pointer-events: none;
}

.warning-plank.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.warning-text {
  display: block;
}
