/* === Стандартные стили, которые у тебя уже есть === */
.game-container {
  display: inline-block;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  margin-top: 55px;
}

.gamewrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

canvas {
  border: 2px solid #e8e8e8;
  border-radius: 15px;
  background: #fff;
  display: block;
  margin: auto;
}

button {
  padding: 10px 50px;
  font-size: 20px;
  font-weight: 700;
  background: #ff6e13;
  border: none;
  color: #fff;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #e46c21;
}

.stats {
  font-size: 18px;
  margin-top: 10px;
}

.gamerules {
  font-size: 18px;
  font-weight: 600;
  margin-top: 5px;
}

.gamerules ul li {
  font-size: 18px;
  font-weight: 500;
  margin-top: 10px;
}

.game-form {
  display:none; 
  margin-top:20px;
    font-size: 18px;
  font-weight: 600;
  margin-top: 5px;
}

.game-form input {
  border: 1px solid #e8e8e8;
    border-radius: 30px;
    padding: 7px 19px;
    margin: 10px 0;
}

.game-form button {
      background-color: #ffc27a;
    color: #fff;
    padding: 15px 25px;
    border-radius: 30px;
}

#gameOver {
  color: #ea7583;
  font-weight: 700;
  margin-top: 15px;
  font-size: 20px;
}

#basketWrapper {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    pointer-events: none;
}

#basket {
    width: 100%;
    height: 100%;
}

/* === Мобильные стрелки управления корзиной === */
#hintArrowsWrapper {
  display: none; /* по умолчанию скрыто */
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  width: 100%;
}

#hintArrows {
  display: flex;
  justify-content: center;
  gap: 20px;
}

#hintArrows button {
  background: none;
  border: none;
  padding: 0;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: transform 0.1s, filter 0.1s;
}

#hintArrows button:active {
  transform: scale(0.9);
  filter: brightness(0.8);
}

#hintArrows button:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.gameconditions-desc {
  font-size: 17px;
  font-weight: 400;
  line-height: 23px;
}

.gameconditions-title {
  font-size: 18px;
  font-weight: 400;
  line-height: 23px;
  margin-bottom: 10px;
}

.gameconditions-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 23px;
  margin-bottom: 5px;
}

.gameconditions-mob {
  display: none;
}

/* === Адаптивка === */
@media (max-width: 1024px) {
  .gamewrapper {
    grid-template-columns: 1fr;
  }

  .item1 { order: 2; }
  .item2 { order: 1; }
  .item3 { order: 3; }
}

@media (max-width: 768px) {
  button { width: 50%; }
  #hintArrowsWrapper { display: flex; }

  .gameconditions-desc {
    display: none;
  }

  .gameconditions-mob {
    display: block;
  }
}

@media (max-width: 430.98px) {
  button { width: 100%; }
  .game-container { width: 100%; }
  canvas { width: 100%; }
}
