/* === Общие стили === */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f9f9f9, #eaeaea);
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 42px;
  margin: 55px 0 20px;
  color: #000;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* === Кнопка звука в правом верхнем углу === */
#soundToggle {
  position: fixed;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 36px;
  cursor: pointer;
  z-index: 1001;
}

#soundToggle:hover {
  transform: scale(1.1);
  background: #f5f5f5;
}

/* === Слоты === */
.slot-machine {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  max-width: 100%;
  padding: 0 10px;
}

.slot {
  width: 280px;
  height: 280px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.slot:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  padding: 10px;
  box-sizing: border-box;
  margin: 10px;
}

/* === Кнопки управления === */
.buttons {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 50px;
  padding: 0 20px;
}

button {
  font-size: 20px;
  padding: 16px;
  border: none;
  background: linear-gradient(145deg, #ff5f5f, #ff2a2a);
  color: white;
  border-radius: 12px;
  box-shadow: 0 6px #bb0000;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

button:hover {
  background: linear-gradient(145deg, #ff3a3a, #ff1010);
  transform: scale(1.03);
}

button:active {
  box-shadow: 0 2px #770000;
  transform: scale(0.97);
}

.hidden {
  display: none;
}

/* === Адаптация для планшетов === */
@media (max-width: 1024px) {
  .slot {
    width: 180px;
    height: 180px;
  }

  h1 {
    font-size: 36px;
  }

  button {
    font-size: 18px;
    padding: 14px;
  }

  #soundToggle {
    font-size: 26px;
    width: 46px;
    height: 46px;
  }
}

/* === Адаптация для смартфонов === */
@media (max-width: 600px) {
  .slot-machine {
    flex-direction: column;
    align-items: center;
  }

  .slot {
    width: 160px;
    height: 160px;
  }

  h1 {
    font-size: 28px;
  }

  button {
    font-size: 16px;
    padding: 12px;
  }

  #soundToggle {
    font-size: 24px;
    width: 44px;
    height: 44px;
    top: 10px;
    right: 30px; /* обновлено здесь */
  }
}
