/* أدوات تفاعلية — افحص وجبتك + لعبة الطيبات */
.mt-meal-tool,
.mt-game-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.mt-meal-tool textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
  font-family: inherit;
}
.mt-meal-tool textarea:focus {
  outline: 2px solid rgba(27, 67, 50, 0.35);
  border-color: #1b4332;
}
.mt-meal-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.mt-meal-result {
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(27, 67, 50, 0.1);
}
.mt-meal-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  gap: 10px;
}
.mt-meal-score__ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#1b4332 calc(var(--pct, 0) * 1%), #e2e8f0 0);
  position: relative;
}
.mt-meal-score__ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}
.mt-meal-score__num {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1b4332;
}
.mt-meal-group {
  margin-top: 18px;
}
.mt-meal-group h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: #1b4332;
}
.mt-meal-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mt-meal-group li {
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  line-height: 1.6;
}
.mt-meal-alts {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #f0fdf4;
}
.mt-meal-disclaimer {
  margin-top: 16px;
  color: #64748b;
}
.mt-meal-empty {
  color: #64748b;
  text-align: center;
}

/* لعبة الطيبات */
.mt-game-card {
  background: #fff;
  border: 1px solid rgba(27, 67, 50, 0.12);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(15, 41, 25, 0.08);
}
.mt-game-emoji {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 12px;
}
.mt-game-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 16px;
}
.mt-game-food {
  font-size: 4rem;
  margin: 8px 0;
}
.mt-game-food-name {
  font-size: 1.5rem;
  color: #1b4332;
  margin: 0 0 8px;
}
.mt-game-prompt {
  color: #64748b;
  margin-bottom: 20px;
}
.mt-game-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}
.mt-game-choice--no {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.mt-game-feedback {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  text-align: right;
  line-height: 1.7;
}
.mt-game-feedback--ok {
  background: #d1fae5;
  color: #065f46;
}
.mt-game-feedback--no {
  background: #fee2e2;
  color: #991b1b;
}
.mt-game-score-final {
  font-size: 2rem;
  font-weight: 800;
  color: #1b4332;
}
.mt-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
html[data-theme="dark"] .mt-meal-result,
html[data-theme="dark"] .mt-game-card {
  background: var(--clr-surface, #0f172a);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .mt-meal-score__ring::after {
  background: var(--clr-surface, #0f172a);
}
