/* Базові скидання та налаштування */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ===== Шрифти ===== */
@font-face {
  font-family: 'Corbel Light';
  src: local('Corbel Light'),
       url('fonts/Corbel-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

/* ===== Основні стилі ===== */
body {
  font-family: 'Corbel Light', 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  height: 100vh;
  background: rgb(52,48,40);
  background: radial-gradient(circle, rgba(52,48,40,1) 0%, rgba(0,0,0,1) 100%);
  color: white;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Антизсув і антикопі*/
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-user-select: none; /* Для браузерів на основі WebKit (Chrome, Safari) */
  -moz-user-select: none; /* Для Firefox */
  -ms-user-select: none; /* Для Internet Explorer */
  user-select: none; /* Стандарт для всіх браузерів */
}

/* Вступна анімація */
#intro-animation {
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  color: white;
  font-size: 2rem;
  animation: fade-out 3s ease-in-out forwards;
  position: relative;
  height: 100vh; /* Висота контейнера для анімації падіння */
}

.image-container {
  position: absolute;
  width: 300px;
  height: 300px;
}

.image-container img {
  width: 100%;
  height: 100%;
  animation: zoom 4s infinite;
}

@keyframes zoom {
  0% { transform: scale(1); }
  25% { transform: scale(1.05); }
  50% { transform: scale(1.0); }
  75% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Приховування контейнера після анімації */
.story-container {
  display: none; /* Ховаємо слайди під час вступу */
}

.story-container.active {
  display: block; /* Показуємо слайди після вступу */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

/* Слайди */
.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: white;
  text-transform: uppercase;
  position: relative;
}

/* Прогрес-бари */
.progress-bar-container {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 10;
  height: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-bar-wrapper {
  display: flex;
  width: 100%;
  gap: 5px;
}

.progress-bar-segment {
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  flex-grow: 1;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar-segment.active::before {
  content: '';
  position: absolute;
  height: 100%;
  background: white;
  animation: progress-fill 5s linear forwards;
  width: 0;
}

.progress-bar-segment.completed {
  background: white;
}

.progress-bar-segment.active.paused::before {
  animation-play-state: paused !important;
}

.coin.paused {
  animation-play-state: paused !important;
}

@keyframes progress-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* Зони для кліків */
.clickable-area {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  height: 80%;
  cursor: pointer;
  -webkit-touch-callout: none; /* Отключает контекстное меню iOS */
  touch-action: manipulation; /* Оптимизирует обработку касаний */

}

.clickable-area.left { left: 0; }
.clickable-area.right { right: 0; }

#container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  opacity: 25%;
}

.coin {
  position: absolute;
  width: 40px;
  height: 40px;
  animation: fall linear;
  object-fit: contain;
  will-change: transform;
  image-rendering: crisp-edges;
}

@keyframes fall {
  to { transform: translateY(110vh); }
}


        .avatar {
            width: 125px;
            height: 125px;
            border-radius: 50%;
            border: 3px solid #f0ca81;
            object-fit: cover;
            background-color: #444;
        }

        .username {
            margin-top: 5px;
            font-size: 25px;
            color: #f0ca81;
        }
		
		 }
    
	#buttonstart {
  margin-top: 10px;
}

@media screen and (min-height: 600px) {
  #buttonstart {
    margin-top: 150px;
  }
}