/* public/css/game.css — In-game UI styles */

/* ── Recipe Intro ─────────────────────────────────────────── */
.recipe-intro-card { margin-top: 16px; }

/* Header row: text left, image placeholder right */
.ri-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.ri-header-text { flex: 1; }

.ri-recipe-img-placeholder {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--color-bg-mid);
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  overflow: hidden;
}
.ri-recipe-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Stage cards flow */
.ri-stages-wrap { margin-bottom: 24px; }

.ri-stages-sequential {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.ri-stages-parallel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.ri-stage-card {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  width: 100%;
}

.ri-stages-sequential .ri-stage-card {
  flex: 1;
  min-width: 100px;
}

.ri-stage-img-placeholder {
  background: var(--color-bg-mid);
  border-bottom: 1px solid var(--color-border);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-text-dim);
  overflow: hidden;
}
.ri-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ri-stage-card-body {
  padding: 10px 14px 12px;
  text-align: center;
}
.ri-stage-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 4px;
}
.ri-stage-actions {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

/* Arrow between sequential stages */
.ri-stage-arrow {
  font-size: 1.3rem;
  color: var(--color-primary-light);
  padding: 0 6px;
  flex-shrink: 0;
  user-select: none;
  align-self: center;
}

.recipe-intro-body { padding: 20px 28px 32px; }

.recipe-new-badge {
  display: inline-block;
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.recipe-repeat-badge {
  display: inline-block;
  background: #f0eeff;
  border: 1px solid #c4b5fd;
  color: var(--color-primary);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.recipe-intro-name    { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.recipe-intro-tagline { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 16px; }

.recipe-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.recipe-badge {
  display: inline-flex; align-items: center;
  border-radius: 99px; padding: 4px 12px;
  font-size: 0.78rem; font-weight: 700;
}
.badge-sequential { background: #fff1f2; border: 1px solid #fecdd3; color: #dc2626; }
.badge-parallel   { background: #ecfeff; border: 1px solid #a5f3fc; color: #0891b2; }
.badge-stages     { background: #f0eeff; border: 1px solid #c4b5fd; color: var(--color-primary); }
.badge-points     { background: #fefce8; border: 1px solid #fde68a; color: #92400e; }


.recipe-warning {
  background: #fff1f2; border: 1px solid #fecdd3;
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 0.85rem; color: #dc2626; margin-bottom: 16px;
}
.recipe-info-box {
  background: #ecfeff; border: 1px solid #a5f3fc;
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 0.85rem; color: #0891b2; margin-bottom: 16px;
}

/* ── Stage Bank ───────────────────────────────────────────── */
.stage-bank-card-wrap { padding: 24px; margin-top: 16px; }
.stage-bank-header { margin-bottom: 20px; }
.stage-bank-dish-img-wrap {
  width: 100%; height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--color-bg-mid);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.stage-bank-dish-img {
  width: 100%; height: 100%; object-fit: cover;
}
.stage-bank-dish-img-fallback {
  font-size: 3.5rem;
}
.stage-bank-title-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  margin-bottom: 4px;
}
.stage-bank-title-row h2 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; }
.stage-bank-recipe-btn { padding: 6px 14px; font-size: 0.82rem; flex-shrink: 0; }
.stage-bank-sub { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 4px; }

/* Serve section */
.stage-bank-serve {
  margin-top: 20px;
  background: #f8f9fb;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-align: center;
}
.stage-bank-serve-ready {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.stage-bank-serve-msg {
  font-size: 0.88rem; font-weight: 600;
  color: #16a34a; margin-bottom: 12px;
}
.stage-bank-serve-warn { color: #b45309; }

/* Recipe modal */
.recipe-modal-box { max-width: 340px; text-align: left; }
.recipe-modal-stages { display: flex; flex-direction: column; align-items: center; }
.recipe-modal-stage {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 16px; width: 100%;
}
.recipe-modal-num {
  background: var(--color-primary); color: #fff;
  border-radius: 50%; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.82rem; flex-shrink: 0;
}
.recipe-modal-name    { font-weight: 700; font-size: 0.9rem; }
.recipe-modal-actions { font-size: 0.75rem; color: var(--color-text-dim); }
.recipe-modal-arrow   { font-size: 1.1rem; color: var(--color-primary-light); padding: 2px 0; }

/* Progress modal */
.progress-modal-box   { max-width: 360px; text-align: left; }
.progress-modal-steps { display: flex; flex-direction: column; align-items: center; width: 100%; }
.progress-modal-step {
  display: flex; align-items: center; gap: 12px;
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 14px; width: 100%;
}
.progress-modal-step-num {
  background: var(--color-primary); color: #fff;
  border-radius: 50%; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.82rem; flex-shrink: 0;
}
.progress-modal-step-thumb {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
}
.progress-modal-img        { width: 100%; height: 100%; object-fit: cover; }
.progress-modal-img-fallback { font-size: 1.4rem; }
.progress-modal-step-name  { font-weight: 700; font-size: 0.9rem; }
.progress-modal-step-actions { font-size: 0.75rem; color: var(--color-text-dim); }
.progress-modal-arrow      { font-size: 1.1rem; color: var(--color-primary-light); padding: 2px 0; }
.progress-modal-empty      { color: var(--color-text-muted); font-style: italic; font-size: 0.9rem; padding: 12px 0; }
.progress-modal-done       { color: var(--color-success, #16a34a); font-weight: 600; font-size: 0.85rem; margin-top: 10px; }
.progress-modal-remain     { color: var(--color-text-dim); font-size: 0.82rem; margin-top: 10px; }

/* Stage bank title button group */
.stage-bank-title-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Distractor stage groups */
.stage-bank-distractor-group {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}
.stage-bank-distractor-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.stage-card-foreign {
  opacity: 0.65;
  cursor: pointer;
  border-color: #e5e7eb;
  background: #fafafa;
}
.stage-card-foreign:hover {
  opacity: 1;
  background: #fff7ed;
  border-color: #fbbf24;
  transform: translateX(4px);
}
.stage-card-foreign-done {
  opacity: 0.45;
  border-color: #e5e7eb;
  background: #fafafa;
}
.stage-card-recipe-tag {
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 4px;
}

/* Foreign stage warning in cooking */
.cooking-foreign-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 16px;
}
.cooking-stage-foreign {
  font-size: 0.75rem;
  color: #b45309;
  font-weight: 600;
  margin-left: 8px;
  background: #fef3c7;
  border-radius: 4px;
  padding: 1px 6px;
}

/* Violation banner on result screen */
.result-violation {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.result-violation-icon { font-size: 1.3rem; flex-shrink: 0; }
.result-violation-detail { color: var(--color-text-muted); margin-top: 4px; line-height: 1.5; }

.result-perfect {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #15803d;
}

/* Per-stage mistake tags */
.result-stage-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.result-stage-tag {
  font-size: 0.72rem; font-weight: 700;
  border-radius: 99px; padding: 2px 8px;
  white-space: nowrap; flex-shrink: 0;
}
.tag-missing { background: #fee2e2; color: #b91c1c; }
.tag-order   { background: #fff7ed; color: #c2410c; }
.tag-foreign { background: #ede9fe; color: #6d28d9; }
.result-stage-foreign-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--color-text-muted);
  margin: 10px 0 6px;
}
.result-stage-row-foreign { opacity: 0.85; }

/* 4×3 stage bank grid */
.stage-bank-grid-4x3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stage-bank-card {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.18s;
  position: relative;
}

/* Grid card layout: image top, name below */
.stage-bank-card-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  gap: 6px;
  text-align: center;
  cursor: default;
}

.stage-grid-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-mid);
  display: flex; align-items: center; justify-content: center;
}
.stage-grid-img { width: 100%; height: 100%; object-fit: cover; }
.stage-grid-img-fallback { font-size: 1.8rem; }
.stage-grid-name  { font-weight: 700; font-size: 0.8rem; color: var(--color-text); }
.stage-grid-score { font-weight: 800; font-size: 0.78rem; color: var(--color-success); }
.stage-grid-done-badge {
  position: absolute; top: 4px; right: 4px;
  font-size: 0.85rem; line-height: 1;
}

/* Card state variants */
.stage-card-available {
  border-color: var(--color-primary-light);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(108,71,217,0.1);
}
.stage-card-available:hover {
  background: #f0eeff;
  transform: scale(1.03);
}
.stage-card-done {
  opacity: 0.65;
  border-color: rgba(34,197,94,0.4);
}
.stage-card-foreign {
  opacity: 0.45;
  cursor: pointer;
}
.stage-card-foreign:hover { opacity: 0.7; }
.stage-card-foreign-done { opacity: 0.35; }
.stage-card-locked { opacity: 0.35; cursor: not-allowed; }


/* ── Cooking Interface ───────────────────────────────────── */
.cooking-card { padding: 24px; margin-top: 16px; }

/* Header: graphic placeholder + text */
.cooking-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.cooking-stage-img-placeholder {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-bg-mid);
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  overflow: hidden;
}
.cooking-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.cooking-header-text { flex: 1; }
.cooking-recipe-name { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 600; margin-bottom: 3px; }
.cooking-stage-name  { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.cooking-stage-num   { font-size: 0.8rem; font-weight: 500; color: var(--color-text-dim); margin-left: 8px; }

/* Progress bar section (toggled) */
.meter-bar-section { margin-bottom: 18px; }
.meter-label { font-size: 0.75rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.meter-bar-outer {
  position: relative;
  background: #e5e7eb;
  border-radius: 99px;
  height: 22px;
  overflow: visible;
  border: 1px solid #d1d5db;
  margin-bottom: 0;
}

/* Feedback row: color left, barometer right */
.feedback-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.feedback-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.feedback-panel {
  background: var(--color-bg-mid);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.feedback-panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.feedback-right {
  flex-shrink: 0;
}
.meter-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1), background 0.35s;
  min-width: 0;
}
.meter-target-line {
  position: absolute; top: -4px; bottom: -4px;
  width: 3px; background: rgba(30,27,46,0.5);
  border-radius: 2px;
  transform: translateX(-50%);
}
.meter-color-square {
  width: 80px; height: 80px; border-radius: var(--radius-md);
  transition: background 0.35s;
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.meter-numeric { text-align: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.meter-target-label { text-align: center; font-size: 0.78rem; color: var(--color-text-muted); }

/* Barometer */
.barometer-wrap {
  background: #f8f9fb;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  text-align: center;
}
.barometer-label {
  font-size: 0.72rem; font-weight: 700;
  color: var(--color-text-muted); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 6px;
}
.barometer-dial { position: relative; display: inline-block; width: 120px; }
.barometer-svg  { width: 100%; display: block; }
.barometer-reading {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  font-size: 0.95rem; font-weight: 800; min-width: 50px; text-align: center;
}
.reading-active { color: var(--color-primary); font-weight: 800; }
.reading-idle   { color: var(--color-text-dim); }
.barometer-hint { font-size: 0.7rem; color: var(--color-text-dim); margin-top: 4px; }

/* Action buttons */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.action-grid:has(.action-examine) {
  grid-template-columns: 1fr 1fr 1fr;
}

.action-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--color-text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.action-btn:active { transform: translateY(0); }

.action-a:hover     { border-color: #60a5fa; background: #eff6ff; }
.action-b:hover     { border-color: #f87171; background: #fff1f2; }
.action-examine:hover { border-color: #fbbf24; background: #fefce8; }

.action-btn-icon { font-size: 1.6rem; }
.action-btn-name { font-weight: 700; font-size: 0.9rem; text-align: center; }
.action-btn-sub  { font-size: 0.72rem; color: var(--color-text-muted); text-align: center; }

/* Action log */
.action-log {
  background: #f0eeff;
  border: 1px solid #ddd6fe;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.83rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  min-height: 40px;
  display: flex; align-items: center; gap: 8px;
}
.action-log-prefix { color: var(--color-primary-dark); font-weight: 700; }

/* Cooking controls */
.cooking-controls {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}
.cooking-controls-left { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Dish Result ─────────────────────────────────────────── */
.result-card { margin-top: 16px; overflow: hidden; }

.result-header {
  padding: 24px 20px;
}

/* Three-column header row */
.result-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Shared image box styles */
.result-dish-img-wrap,
.result-zyx-img-wrap {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.4);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  position: relative;
}
.result-dish-img,
.result-zyx-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.result-dish-placeholder,
.result-zyx-placeholder {
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.15);
  display: none; align-items: center; justify-content: center;
  font-size: 3.2rem;
  position: absolute; inset: 0;
}

/* Middle column */
.result-center {
  flex: 1;
  text-align: center;
}

.result-emoji    { font-size: 2rem; margin-bottom: 4px; }
.result-reaction { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; color: #fff; }
.result-score    { font-size: 2rem; font-weight: 900; margin-bottom: 4px; color: #fff; }
.result-stars    { font-size: 1.3rem; letter-spacing: 4px; }

.result-body { padding: 24px 28px 32px; }

.result-customer-wrap {
  margin-bottom: 20px;
}
.result-speech-bubble {
  background: #f8f9fb;
  border: 1px solid var(--color-border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 14px 18px;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  flex: 1;
}

.result-stage-breakdown h3 {
  font-family: var(--font-head); font-size: 1rem;
  font-weight: 700; margin-bottom: 14px; color: var(--color-primary-light);
}
.result-stage-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.result-stage-row  { display: flex; align-items: center; gap: 12px; }
.result-stage-name { width: 90px; font-size: 0.83rem; font-weight: 600; flex-shrink: 0; }
.result-stage-bar-outer {
  flex: 1; background: #e5e7eb;
  border-radius: 99px; height: 10px; overflow: hidden;
}
.result-stage-bar-fill { height: 100%; border-radius: 99px; transition: width 0.5s; }
.result-stage-pct { width: 38px; text-align: right; font-size: 0.83rem; font-weight: 700; }

/* ── Choice Phase ─────────────────────────────────────────── */
.choice-card { padding: 24px; margin-top: 16px; }
.choice-header { text-align: center; margin-bottom: 24px; }
.choice-header h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; }
.choice-header p  { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 6px; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.choice-recipe-card {
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.choice-recipe-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(108,71,217,0.15);
}
.choice-recipe-img-wrap {
  width: 100%; height: 110px;
  overflow: hidden;
  background: var(--color-bg-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.choice-recipe-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.2s;
}
.choice-recipe-img-fallback { font-size: 2.8rem; }
.choice-recipe-card:hover .choice-recipe-img { transform: scale(1.04); }
.choice-recipe-body { padding: 14px; }
.choice-recipe-emoji { font-size: 1.5rem; margin-bottom: 4px; }
.choice-recipe-name  { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.choice-recipe-meta  { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Transition Screen ───────────────────────────────────── */
.transition-card { padding: 60px 32px; margin-top: 16px; }
.transition-inner { text-align: center; }
.transition-icon  { font-size: 3.5rem; margin-bottom: 16px; }
.transition-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.transition-sub   { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.6; max-width: 480px; margin: 0 auto; }

/* ── World State Ambience ─────────────────────────────────── */
body.world-surge::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(251,146,60,0.08) 0%, transparent 70%);
  animation: surge-pulse 2s ease-in-out infinite alternate;
}
@keyframes surge-pulse {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}
body.world-calm::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(96,165,250,0.07) 0%, transparent 70%);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .cooking-card, .stage-bank-card-wrap, .recipe-intro-body { padding: 16px; }
  .action-grid, .action-grid:has(.action-examine) { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .result-score { font-size: 2rem; }
  .ri-header { flex-direction: column-reverse; align-items: flex-start; }
  .ri-recipe-img-placeholder { width: 80px; height: 80px; font-size: 2rem; }
  .ri-stages-parallel { grid-template-columns: repeat(2, 1fr); }
  .feedback-row { flex-direction: column; }
  .feedback-right { width: 100%; }
  .barometer-dial { width: 100px; }
  .result-header-row { flex-direction: column; }
  .result-dish-img-wrap, .result-zyx-img-wrap { width: 100px; height: 100px; }
}
