/* Клиентский Mini App — поверх shared.css */

.hidden { display: none !important; }
.mb12 { margin-bottom: 12px; }

/* карточка товара */
.prod-card {
  background: var(--card);
  border-radius: 20px;
  padding: 12px 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prod-emoji {
  width: 100%;
  height: 88px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  line-height: 1;
}
.prod-name { font-weight: 600; font-size: 14px; line-height: 1.25; min-height: 35px; display: flex; align-items: flex-start; }
.prod-price { font-weight: 700; }
.prod-stock { font-size: 12px; color: var(--warm); }
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.stepper button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.stepper button:active { transform: scale(.9); }
.stepper .qty { font-weight: 700; min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper .qty.zero { color: var(--text2); }

/* строки корзины */
.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F0F0F0;
}
.cart-row:last-child { border-bottom: none; }

/* корзина: маленький тайл */
.cart-row .prod-emoji { width: 44px; height: 44px; flex: none; font-size: 24px; border-radius: 12px; }

/* пустые состояния — компактнее */
.empty { padding: 28px 20px; }
.empty .btn { min-height: 46px; max-width: 230px; margin: 14px auto 0; font-size: 15px; }

/* статусная линия заказа */
.status-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.step {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--border);
  color: var(--text2);
}
.step.done { background: var(--accent-soft); color: var(--accent-text); }
.step.now { background: var(--dark); color: #fff; }

/* фейк-карта оплаты */
.pay-card {
  position: relative;
  max-width: 300px;
  margin: 10px auto 0;
  aspect-ratio: 1.6;
  border-radius: 20px;
  background: linear-gradient(135deg, #232D28, #1C2421 60%, #2A3A30);
  color: #fff;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  animation: popIn .35s ease;
}
.pay-chip {
  width: 40px; height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, #E8B86D, #C79A4B);
}
.pay-num { margin-top: 26px; font-size: 18px; letter-spacing: 2px; font-weight: 600; }
.pay-exp { margin-top: 8px; font-size: 12px; opacity: .65; letter-spacing: 1px; }
.pay-dots { display: flex; gap: 8px; justify-content: center; }
.pay-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  animation: bounce 1s infinite;
}
.pay-dots span:nth-child(2) { animation-delay: .15s; }
.pay-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,100% { transform: translateY(0); opacity:.5 } 50% { transform: translateY(-7px); opacity:1 } }

/* мини-игра */
.game-hud {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px calc(14px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.hud-item { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hud-goal { font-size: 13px; color: var(--text2); font-weight: 600; }
.hud-label { margin-right: 4px; }
.hud-item.ok { color: var(--accent-text); }
#gameQuitBtn { margin-left: auto; }
.game-wrap { position: relative; flex: 1; overflow: hidden; background: #DFEDE0; }
#gameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.game-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(242, 243, 245, .92);
  text-align: center;
  padding: 30px;
}
.game-msg .big { font-size: 56px; animation: popIn .4s ease; }
.game-msg .title { font-size: 22px; font-weight: 700; }

/* карта трекинга в заказе */
.track-map { position: relative; }
.track-eta {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 99px;
  box-shadow: var(--shadow-lg);
}
