/* ─── EAT Strategy Player ─────────────────────────────── */
.eat-strategy-root {
  --es-bg:          #f0eeea;
  --es-card:        #f7f5f2;
  --es-primary:     #5f7c6e;
  --es-fg:          #2e3830;
  --es-muted:       #8a9a90;
  --es-border:      #ddd9d3;
  --es-yes-bg:      #2e3830;
  --es-yes-fg:      #f7f5f2;
  --es-no-bg:       #d96c4a;
  --es-no-fg:       #fff;
  --es-radius:      1rem;
  --es-font:        system-ui, -apple-system, "Segoe UI", sans-serif;

  font-family: var(--es-font);
  background: var(--es-bg);
  border-radius: var(--es-radius);
  padding: 2.5rem 2rem;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}

.eat-strategy-root * { box-sizing: border-box; }

/* states */
.es-loading,
.es-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  color: var(--es-muted);
  font-size: .9rem;
}

.es-spinner {
  width: 2rem; height: 2rem;
  border: 3px solid var(--es-border);
  border-top-color: var(--es-primary);
  border-radius: 50%;
  animation: es-spin .8s linear infinite;
}
@keyframes es-spin { to { transform: rotate(360deg); } }

.es-error { color: #b94a4a; }
.es-error svg { width: 2.5rem; height: 2.5rem; }

.es-retry {
  margin-top: .5rem;
  padding: .5rem 1.5rem;
  background: var(--es-primary);
  color: #fff;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  font-size: .875rem;
  font-family: var(--es-font);
  transition: opacity .2s;
}
.es-retry:hover { opacity: .85; }

/* player */
.es-player { display: flex; flex-direction: column; gap: 0; }

.es-header { text-align: center; margin-bottom: 2rem; }
.es-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--es-primary);
  opacity: .75;
  margin: 0 0 .5rem;
}
.es-title {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--es-fg);
  margin: 0;
  line-height: 1.3;
}

/* progress */
.es-progress-wrap { margin-bottom: 1.75rem; }
.es-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--es-border);
  cursor: pointer;
  outline: none;
  display: block;
}
.es-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--es-primary);
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.es-progress::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--es-primary);
  border-radius: 50%;
  border: none;
}
.es-times {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--es-muted);
  margin-top: .5rem;
  font-variant-numeric: tabular-nums;
}

/* play button */
.es-controls { display: flex; justify-content: center; }
.es-play-btn {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: var(--es-yes-bg);
  color: var(--es-yes-fg);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--es-font);
  transition: transform .2s, opacity .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.es-play-btn:hover { transform: scale(1.06); }
.es-play-btn:disabled { opacity: .45; cursor: default; transform: none; }
.es-play-btn svg { width: 2rem; height: 2rem; fill: currentColor; }
.es-play-btn .es-spinner {
  width: 1.75rem; height: 1.75rem;
  border-color: rgba(255,255,255,.3);
  border-top-color: #fff;
}

/* pause overlay — Checkpoint */
.es-pause-overlay {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem;
  animation: es-fade-in .4s ease;
}
@keyframes es-fade-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

.es-question {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--es-fg);
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.es-checkpoint-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.es-yes-btn, .es-no-btn {
  padding: .875rem 2rem;
  border: none;
  border-radius: 3rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  font-family: var(--es-font);
  transition: transform .2s, box-shadow .2s;
  min-width: 140px;
}

.es-yes-btn {
  background: var(--es-yes-bg);
  color: var(--es-yes-fg);
  box-shadow: 0 4px 16px rgba(46,56,48,.25);
}
.es-yes-btn:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(46,56,48,.32); }

.es-no-btn {
  background: var(--es-no-bg);
  color: var(--es-no-fg);
  box-shadow: 0 4px 16px rgba(217,108,74,.25);
}
.es-no-btn:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(217,108,74,.32); }

.es-voice-hint {
  font-size: .8rem;
  color: var(--es-muted);
  margin: 0;
  text-align: center;
}

.es-mic {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
}
.es-mic-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--es-primary);
  opacity: .18;
  animation: es-pulse 2s ease-in-out infinite;
}
@keyframes es-pulse {
  0%, 100% { transform: scale(1); opacity: .18; }
  50%       { transform: scale(1.6); opacity: .08; }
}
.es-mic-icon {
  position: relative; z-index: 1;
  background: var(--es-card);
  border: 1px solid rgba(95,124,110,.3);
  border-radius: 50%;
  padding: .55rem;
  color: var(--es-primary);
  display: flex;
}
