* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Halvar Breitschrift';
  src: url('fonts/halvar_breitschrift.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Intro';
  src: url('fonts/intro.otf') format('opentype'); /* Убедитесь, что путь правильный */
}

body {
  background-color: #1d2b4b; 
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.game-logo {
  width: 300px;
  margin-bottom: -200px;
}

.scroll-container {
  width: 100%;
  height: 60%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.game-area {
  display: flex;
  align-items: flex-end;
  height: 100%;
  width: max-content;
  position: relative;
  padding: 20px;
}


.chicken {
  position: absolute;
  width: 70px;
  height: 70px;
  transform-origin: center bottom;
  transition: transform 0.3s ease-in-out, left 0.3s ease-in-out;
  bottom: 110px;
  transform: translateX(+5%);
}


.multiplier-circle {
  position: relative;
  width: 100px;
  height: 100px;
  margin-right: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #626eb2 40%, #4f5794 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  color: #ffffff95;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  box-shadow:
    0 0 0 6px #222845,
    inset 0 0 0 5px #3a3f6a,
    inset 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 2;
}

.multiplier-circle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    #717dd0 0deg 30deg,
    transparent 30deg 70deg,
    #4e558c 70deg 100deg,
    transparent 100deg 140deg,
    #717dd0 140deg 170deg,
    transparent 170deg 360deg
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

.multiplier-circle span {
  position: relative;
  z-index: 2;
}

.buttons {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.play-btn {
  background-image: linear-gradient(to right, #4CAF50, #388E3C);
  color: white;
  padding: 18px 46px; /* было 24px 60px → уменьшено примерно на 1.3 */
  border: none;
  border-radius: 25px; /* было 60px */
  font-size: 28px; /* было 36px → уменьшено */
  cursor: pointer;
  font-family: 'Halvar Breitschrift', sans-serif;
  font-weight: bolder;
  transition: background-position 0.5s, box-shadow 0.5s;
  position: relative;
  overflow: hidden;
}

.play-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: left 0.5s;
}

.play-btn:hover::after {
  left: 100%;
}

.play-btn:hover {
  background-position: right center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.timer-display {
  font-family: 'Halvar Breitschrift', sans-serif;
  text-align: center;
  color: #ffffff;
  margin-top: 10px;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}


.win-popup {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.1); /* почти прозрачный фон */
  padding: 28px 42px; /* уменьшен padding */
  border: 3px solid rgba(255, 255, 255, 0.1); /* уменьшена рамка */
  border-radius: 15px; /* уменьшен border-radius */
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3); /* уменьшена тень */
  text-align: center;
  z-index: 9999;
  backdrop-filter: blur(10px); /* размытость фона */
}

.win-popup h2 {
  font-family: 'Halvar Breitschrift', sans-serif;
  font-size: 36px; /* уменьшен размер шрифта */
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6); /* тень */
}

.win-popup p {
  font-family: 'Intro', sans-serif;
  color: yellow; /* второй текст желтый */
  font-size: 50px; /* уменьшен размер шрифта */
  margin: 10px 0; /* уменьшены отступы */
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.5); /* тень */
}

@keyframes shake {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  25% { transform: translate(-50%, -50%) rotate(3deg); }
  50% { transform: translate(-50%, -50%) rotate(-3deg); }
  75% { transform: translate(-50%, -50%) rotate(2deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

.win-popup.shake {
  animation: shake 0.5s ease;
}

/* 🔽 Адаптивность */
@media (max-width: 768px) {
  .multiplier-circle {
    width: 100px;
    height: 100px;
    font-size: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 480px) {
  .multiplier-circle {
    width: 80px;
    height: 80px;
    font-size: 16px;
    margin-right: 15px;
  }
}
.tab {
  position: fixed;
  bottom: 15px;
  z-index: 10;
  /* width: 100%; */
  display: flex;
  justify-content: center;
  border-radius: 50px;
  height: 70px; 
}

.tab button {
  background-image: linear-gradient(to right, #ee1346, #e01249);
  color: white;
  padding: 18px 46px; /* было 24px 60px → уменьшено примерно на 1.3 */
  border: none;
  border-radius: 25px; /* было 60px */
  font-size: 28px; /* было 36px → уменьшено */
  cursor: pointer;
  font-family: 'Halvar Breitschrift', sans-serif;
  font-weight: bolder;
  transition: background-position 0.5s, box-shadow 0.5s;
  position: relative;
  overflow: hidden;
}

.tab button img {
  max-width: 38px;
  height: 38px;
}

.tab button:hover {
  background-color: #555;
  transform: translateY(-2px);
}

.tab button.active {
  background-color: #666;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Медиазапросы для адаптации на мобильных устройствах */
@media (max-width: 768px) {
  .tab {
      height: 70px; /* Фиксированная высота для планшетов */
  }

  /* .tab button {
      margin: 0 5px;
      padding: 10px 15px;
      font-size: 14px;
  } */

}