body {
  font-family: "Arial Black", sans-serif;
  background: url('img/bg_street.png?v=5') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow-x: hidden;
}

#game {
  padding: 10px;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Клиентская сцена */
#clientScene {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
}

.speech-bubble {
  position: absolute;
  top: 50px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  background: #fff8d4;
  border: 2px solid #3e2800;
  border-radius: 18px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  display: flex;
  flex-direction: column; /* 👈 добавляем */
  align-items: center;
  justify-content: center;
  gap: 6px; /* можно чуть меньше */
}

.speech-bubble img {
  width: 38px;
  height: auto;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 14px solid #fff8d4;
  filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.2));
}



/* Изображение клиента */
#clientImage {
  top: 70px;
  width: 250px;
  height: auto;
  z-index: -3;
  position: relative;
}

/* Изображение клиента */
#tableImage {
  top: -155px;
  right: 10px;
  width: 300px;
  height: auto;
  z-index: -2;
  position: relative;
}


/* Стол и зона сборки */
#tableZone {
  position: relative;
  width: 90vw;
  max-width: 280px;
  aspect-ratio: 500 / 445;
  margin-top: 100px;
  z-index: 3;
}

#table {
  width: 100%;
}

/* Слой с ингредиентами */
#wrapStack {
  position: absolute;
  bottom: -30px;
  width: 100%;
  height: 120px;
  z-index: 4;
}

#wrapStack img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
}

#lowerZone {
  position: absolute;
  top: 290px;
  left: 0;
  right: 0;
}

/* Ингредиенты */
#ingredients {
  margin-top: 10px;
}

#ingredients button {
  margin: 4px;
  padding: 4px;
  background: #fff7dc;
  border: 2px solid black;
  border-radius: 6px;
}

#ingredients img {
  width: 40px;
}

/* Кнопки */
.main-btn {
  font-weight: bold;
  background-color: #fff7dc;
  border: 2px solid #222;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 5px;
  font-size: 14px;
  font-family: 'Arial Black', sans-serif;
  box-shadow: 2px 2px 0 #000;
}

/* Модалки */
.modal {
  position: fixed;
  top: 20%;
  left: 10%;
  width: 80%;
  background: #fff7dc;
  border: 2px solid black;
  padding: 16px;
  z-index: 10;
}

.hidden {
  display: none;
}

/* Текущий счёт */
#scoreDisplay {
  font-size: 14px;
  margin-top: 6px;
  background: #fff7dc;
  border: 2px solid black;
}

#clientSpeech {
  font-size: 14px;
  font-weight: bold;
  color: #3e2800;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.2;
}

#orderIcons {
  display: flex;
  gap: 6px;
  justify-content: center;
}
