/* ...existing code... */
/* Dish */
.dish {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.dish-text {
  display: flex;
  flex-direction: column;
}

.dish-text strong {
  font-size: 1.15rem;
}

.dish-text small {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* keep image positioned but avoid extremely high z-index that may block overlays */
.dish img {
  position: relative;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish img:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.dish span {
  font-size: 1.1rem;
}

.cover-btn {
  border-radius: 30px;
}

/* Controles */
.controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 50px;
}

.controls button {
  padding: 14px 26px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  cursor: pointer;

  background: linear-gradient(135deg, #ffe89a, #cfe3a1);
  color: #4a5a2a;

  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

.controls button:hover:not(:disabled) {
  transform: scale(1.05);
}

.controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.cover {
  text-align: center;
}

.cover h1 {
  font-size: 32px;
  color: #4a5f2a;
}

.cover .subtitle {
  margin: 15px 0 30px;
  font-size: 18px;
  color: #6b7a3a;
}

.start-btn {
  position: sticky;    
  top: 20px;
  margin: 20px auto;
  display: block;

  padding: 12px 24px;
  font-size: 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;

  background: #ffb703;
  color: #222;
  z-index: 20;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* ensure modal sits above images */
}

.modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.modal .close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10001;
}

/* контейнер */
.coffee-sticker {
  position: absolute;
  bottom: 12px;
  left: 500px;
  right: 30px;
  width: 100px;
  height: 85px;
  z-index: 9999;
}

/* сама чашка */
.cup {
  width: 100px;
  height: 60px;
  background: #fff;
  border: 6px solid #333;
  border-radius: 0 0 20px 20px;
  position: relative;
}

/* ручка чашки */
.cup::after {
  content: '';
  position: absolute;
  right: -18px;       /* отступ от края чашки */
  top: 2px;          /* чуть ниже верха чашки */
  width: 20px;        /* ширина ручки меньше, чтобы не заходила внутрь */
  height: 30px;/* высота ручки */
  left: 88px;
  border: 4px solid #333;
  border-left: none;
  border-radius: 0 15px 15px 0; /* закругление только с внешней стороны */
}

.eyes {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.eye {
  width: 8px;
  height: 8px;
  background: black;
  border-radius: 50%;
  animation: blink 4s infinite;
}


/* Анимация моргания */
@keyframes blink {
  0%, 90%, 100% { height: 8px; }
  95% { height: 1px; }
}

/* steam */
.steam {
  position: absolute;
  bottom: 100%;       /* стартует над чашкой */
  width: 6px;
  height: 20px;
  background: black;  /* черные полоски */
  border-radius: 3px;
  animation: rise 3s infinite ease-in-out;
}

.steam1 { left: 25%; animation-delay: 0s; }
.steam2 { left: 40%; animation-delay: 0.3s; }
.steam3 { left: 55%; animation-delay: 0.6s; }

@keyframes rise {
  0%   { transform: translateY(0) scaleY(1); opacity: 0; }
  20%  { opacity: 0.5; }
  50%  { transform: translateY(-25px) scaleY(1.2); opacity: 1; }
  80%  { opacity: 0.5; }
  100% { transform: translateY(-50px) scaleY(1.4); opacity: 0; }
}

.smile {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 10px;
  border-bottom: 3px solid black;
  border-radius: 0 0 20px 20px;
}

.cheeks {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  display: flex;
  justify-content: space-between;
}

/* Сами щёчки */
.cheek {
  width: 10px;
  height: 6px;
  background: pink;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(1px); /* мягкость */
}


.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: sans-serif;
}

/* Кнопка */
.chat-toggle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: #ffb703;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Окно чата */
.chat-window {
  display: none;
  flex-direction: column;
  width: 300px;
  height: 400px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin-bottom: 10px;
}

.chat-header {
  background: #ffb703;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

.chat-input {
  display: flex;
  border-top: 1px solid #eee;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 8px;
  outline: none;
}

.send-btn {
  border: none;
  background: #ffb703;
  padding: 8px 12px;
  cursor: pointer;
}

.typing {
  font-style: italic;
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.typing::after {
  content: "...";
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
}
