/* =============================================================
   Gamification — Progress UI styles
   Phase 1B.1: progress summary, visited button, reset control
   Phase 1B.2: mission cards (sidebar)
   Phase 1B.2A: homepage mission section
   Phase 1B.2B: mission detail, HUD, active mission
   Phase 1B.3.1: mission flow and selos visibility polish
   ============================================================= */

/* ------------ Homepage missions section ---------------------- */
.missions-home {
  padding: 48px 24px 40px;
  background: linear-gradient(180deg, #fafbfd 0%, #f0f3f8 100%);
  border-top: 1px solid var(--border, #e0e0e0);
  border-bottom: 1px solid var(--border, #e0e0e0);
}

.missions-home-inner {
  max-width: 780px;
  margin: 0 auto;
}

.missions-home-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold, #C9922A);
  margin: 0 0 8px;
}

.missions-home-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--azulejo, #003DA5);
  margin: 0 0 8px;
  letter-spacing: 0.3px;
}

.missions-home-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted, #666);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ------------ Featured mission card -------------------------- */
.mh-featured {
  background: white;
  border: 1px solid var(--border, #e0e0e0);
  border-left: 4px solid var(--azulejo, #003DA5);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.mh-featured-done {
  border-left-color: var(--gold, #C9922A);
  text-align: center;
  padding: 28px 24px;
}

.mh-featured-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--azulejo, #003DA5);
  opacity: 0.7;
}

.mh-featured-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text, #1a1a1a);
  margin: 6px 0 6px;
}

.mh-featured-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted, #666);
  margin: 0 0 12px;
  line-height: 1.5;
}

.mh-featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mh-featured-collection {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted, #666);
}

.mh-featured-status {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--azulejo, #003DA5);
}

.mh-featured-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.mh-bar-wrap {
  flex: 1;
  height: 5px;
  background: var(--border, #e0e0e0);
  border-radius: 3px;
  overflow: hidden;
}

.mh-bar-fill {
  height: 100%;
  background: var(--gold, #C9922A);
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 0;
}

.mh-featured-count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted, #666);
  white-space: nowrap;
}

.mh-featured-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 6px;
  border: 1.5px solid var(--azulejo, #003DA5);
  background: transparent;
  color: var(--azulejo, #003DA5);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.mh-featured-btn:hover {
  background: var(--azulejo, #003DA5);
  color: white;
}

/* ------------ Suggested missions row ------------------------- */
.mh-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.mh-suggestion {
  background: white;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.mh-suggestion.is-completed {
  border-color: var(--gold, #C9922A);
  background: #fffdf5;
}

.mh-suggestion-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1a1a1a);
  margin: 0 0 4px;
  line-height: 1.3;
}

.mh-suggestion-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted, #666);
  margin: 0 0 10px;
  line-height: 1.4;
}

.mh-suggestion-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mh-suggestion-collection {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-muted, #666);
  opacity: 0.8;
}

.mh-suggestion-status {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted, #666);
}

.mh-suggestion-status.is-completed {
  color: var(--gold, #C9922A);
  font-weight: 600;
}

.mh-suggestion-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mh-suggestion-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted, #666);
  white-space: nowrap;
  min-width: 28px;
  text-align: right;
}

/* ------------ Journey summary -------------------------------- */
.mh-summary {
  text-align: center;
  padding: 16px 0 0;
}

.mh-summary-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--azulejo, #003DA5);
  margin: 0 0 8px;
}

.mh-summary-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.mh-summary-stat {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted, #666);
}

.mh-summary-stat strong {
  color: var(--text, #1a1a1a);
  font-weight: 600;
}

.mh-summary-divider {
  width: 1px;
  height: 16px;
  background: var(--border, #e0e0e0);
}

/* ------------ Homepage missions dark mode -------------------- */
[data-theme="dark"] .missions-home {
  background: linear-gradient(180deg, #14141e 0%, #1a1a2a 100%);
  border-color: var(--border-dark, #333);
}

[data-theme="dark"] .missions-home-title {
  color: var(--azulejo-light, #6b9eff);
}

[data-theme="dark"] .missions-home-subtitle {
  color: var(--text-muted-dark, #aaa);
}

[data-theme="dark"] .mh-featured {
  background: var(--bg-dark, #121212);
  border-color: var(--border-dark, #333);
  border-left-color: var(--azulejo-light, #6b9eff);
}

[data-theme="dark"] .mh-featured-done {
  border-left-color: var(--gold, #C9922A);
}

[data-theme="dark"] .mh-featured-badge {
  color: var(--azulejo-light, #6b9eff);
}

[data-theme="dark"] .mh-featured-title {
  color: var(--text-dark, #e0e0e0);
}

[data-theme="dark"] .mh-featured-desc {
  color: var(--text-muted-dark, #aaa);
}

[data-theme="dark"] .mh-featured-collection,
[data-theme="dark"] .mh-featured-count {
  color: var(--text-muted-dark, #aaa);
}

[data-theme="dark"] .mh-featured-status {
  color: var(--azulejo-light, #6b9eff);
}

[data-theme="dark"] .mh-bar-wrap {
  background: var(--border-dark, #333);
}

[data-theme="dark"] .mh-featured-btn {
  background: var(--azulejo-light, #6b9eff);
  border-color: var(--azulejo-light, #6b9eff);
  color: var(--bg-dark, #121212);
}

[data-theme="dark"] .mh-suggestion {
  background: var(--bg-dark, #121212);
  border-color: var(--border-dark, #333);
}

[data-theme="dark"] .mh-suggestion.is-completed {
  border-color: var(--gold, #C9922A);
  background: #1a1812;
}

[data-theme="dark"] .mh-suggestion-title {
  color: var(--text-dark, #e0e0e0);
}

[data-theme="dark"] .mh-suggestion-desc,
[data-theme="dark"] .mh-suggestion-collection,
[data-theme="dark"] .mh-suggestion-count {
  color: var(--text-muted-dark, #aaa);
}

[data-theme="dark"] .mh-suggestion-status {
  color: var(--text-muted-dark, #aaa);
}

[data-theme="dark"] .mh-suggestion-status.is-completed {
  color: var(--gold, #C9922A);
}

[data-theme="dark"] .mh-summary-title {
  color: var(--azulejo-light, #6b9eff);
}

[data-theme="dark"] .mh-summary-stat {
  color: var(--text-muted-dark, #aaa);
}

[data-theme="dark"] .mh-summary-stat strong {
  color: var(--text-dark, #e0e0e0);
}

[data-theme="dark"] .mh-summary-divider {
  background: var(--border-dark, #333);
}

/* ------------ Progress summary (sidebar) ---------------------- */
.progress-summary {
  display: none;
  padding: 12px 14px;
  margin: 8px 0 4px;
  border-radius: 8px;
  background: var(--surface, #f5f5f5);
  border: 1px solid var(--border, #e0e0e0);
}

.progress-summary.is-visible {
  display: block;
}

.progress-summary-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--azulejo, #003DA5);
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}

.progress-summary-count {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted, #666);
  margin: 0 0 8px;
}

.progress-summary-count strong {
  color: var(--text, #1a1a1a);
}

.progress-bar-wrap {
  height: 6px;
  background: var(--border, #e0e0e0);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold, #C9922A);
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 0;
}

.progress-reset-wrap {
  margin-top: 8px;
  text-align: right;
}

.progress-reset-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted, #666);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.progress-reset-btn:hover {
  opacity: 1;
  color: var(--danger, #c0392b);
}

/* ------------ Visited button (detail panel) ------------------- */
.progress-visited-wrap {
  margin: 16px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.progress-visited-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1.5px solid var(--azulejo, #003DA5);
  background: white;
  color: var(--azulejo, #003DA5);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progress-visited-btn:hover {
  background: var(--azulejo, #003DA5);
  color: white;
}

.progress-visited-btn.is-visited {
  background: var(--azulejo, #003DA5);
  color: white;
  border-color: var(--azulejo, #003DA5);
  cursor: default;
}

.progress-visited-btn.is-visited:hover {
  opacity: 0.85;
  cursor: pointer;
}

.progress-visited-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted, #666);
  font-style: italic;
}

/* ------------ Dark mode --------------------------------------- */
[data-theme="dark"] .progress-summary {
  background: var(--surface-dark, #1e1e2e);
  border-color: var(--border-dark, #333);
}

[data-theme="dark"] .progress-summary-title {
  color: var(--azulejo-light, #6b9eff);
}

[data-theme="dark"] .progress-summary-count {
  color: var(--text-muted-dark, #aaa);
}

[data-theme="dark"] .progress-summary-count strong {
  color: var(--text-dark, #e0e0e0);
}

[data-theme="dark"] .progress-bar-wrap {
  background: var(--border-dark, #333);
}

[data-theme="dark"] .progress-reset-btn {
  color: var(--text-muted-dark, #aaa);
}

[data-theme="dark"] .progress-visited-btn {
  background: transparent;
  color: var(--azulejo-light, #6b9eff);
  border-color: var(--azulejo-light, #6b9eff);
}

[data-theme="dark"] .progress-visited-btn:hover {
  background: var(--azulejo-light, #6b9eff);
  color: var(--bg-dark, #121212);
}

[data-theme="dark"] .progress-visited-btn.is-visited {
  background: var(--azulejo-light, #6b9eff);
  color: var(--bg-dark, #121212);
  border-color: var(--azulejo-light, #6b9eff);
}

[data-theme="dark"] .progress-visited-hint {
  color: var(--text-muted-dark, #aaa);
}

/* ------------ Mission detail panel (slide-in) ---------------- */
.mission-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 27, 94, 0.3);
  backdrop-filter: blur(3px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.mission-detail-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.mission-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  background: var(--bg, #fff);
  border-left: 1px solid var(--border, #c8d6e8);
  box-shadow: -8px 0 40px rgba(0, 27, 94, 0.15);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.32, 1);
  z-index: 1150;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  outline: none;
}

.mission-detail-panel.is-open {
  transform: translateX(0);
}

.mission-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border, #c8d6e8);
  background: var(--bg, #fff);
  color: var(--ink, #1a1a1a);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}

.mission-detail-close:hover {
  background: var(--light-blue, #e8f0fc);
}

.mission-detail-content {
  padding: 48px 32px 0;
}

/* ------------ Mission detail body elements ------------------- */
.md-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 12px;
}

.md-collection {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold, #C9922A);
  margin-bottom: 6px;
}

.md-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--azulejo, #003DA5);
  margin: 0 0 20px;
  line-height: 1.25;
}

.md-section {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border, #c8d6e8);
}

.md-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.md-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted, #666);
  margin: 0 0 8px;
}

.md-objective {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink, #1a1a1a);
  margin: 0 0 12px;
  line-height: 1.55;
}

/* ------------ Step preview list ------------------------------ */
.md-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.md-steps li {
  counter-increment: step;
  position: relative;
  padding: 8px 0 8px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink, #1a1a1a);
  line-height: 1.4;
  border-bottom: 1px solid var(--border-light, #e0e8f4);
}

.md-steps li:last-child {
  border-bottom: 0;
}

.md-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-blue, #e8f0fc);
  color: var(--azulejo, #003DA5);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.md-steps li.is-done {
  color: var(--text-muted, #666);
  text-decoration: line-through;
  text-decoration-color: var(--border, #c8d6e8);
}

.md-steps li.is-done::before {
  background: var(--gold, #C9922A);
  color: white;
  content: '\2713';
}

.md-step-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted, #666);
  margin-top: 3px;
  line-height: 1.45;
  text-decoration: none;
}

/* ------------ Detail progress bar ---------------------------- */
.md-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.md-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--border, #c8d6e8);
  border-radius: 3px;
  overflow: hidden;
}

.md-bar-fill {
  height: 100%;
  background: var(--gold, #C9922A);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.md-count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted, #666);
  white-space: nowrap;
}

.md-time {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted, #666);
  margin: 0 0 20px;
}

/* ------------ Detail action buttons -------------------------- */
.md-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg, #fff) 22%);
  padding: 28px 32px 24px;
  margin: 0 -32px;
  z-index: 2;
}

.md-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  border: 1.5px solid transparent;
  text-align: center;
}

.md-btn-primary {
  background: var(--azulejo, #003DA5);
  color: white;
  border-color: var(--azulejo, #003DA5);
}

.md-btn-primary:hover {
  opacity: 0.88;
}

.md-btn-ghost {
  background: transparent;
  color: var(--text-muted, #666);
  border-color: var(--border, #c8d6e8);
}

.md-btn-ghost:hover {
  border-color: var(--azulejo, #003DA5);
  color: var(--azulejo, #003DA5);
}

.md-completed-badge {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold, #C9922A);
  background: #fffdf5;
  border: 1.5px solid var(--gold, #C9922A);
  border-radius: 6px;
  padding: 10px 20px;
  text-align: center;
}

/* ------------ Mission HUD (above map) ------------------------ */
.mission-hud {
  background: linear-gradient(135deg, #001B5E 0%, var(--azulejo, #003DA5) 100%);
  border-radius: 0 0 10px 10px;
  padding: 0;
  margin: 0;
  z-index: 10;
}

.hud-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.hud-completed {
  background: linear-gradient(135deg, #3a2a00 0%, #5a4200 100%);
  border-radius: 0 0 10px 10px;
}

.hud-text {
  flex: 1;
  min-width: 200px;
}

.hud-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold, #C9922A);
  margin: 0 0 2px;
}

.hud-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.3;
}

.hud-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 0;
  line-height: 1.4;
}

.hud-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.hud-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.hud-bar-fill {
  height: 100%;
  background: var(--gold, #C9922A);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.hud-count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.hud-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hud-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.2s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.hud-btn-primary {
  background: var(--gold, #C9922A);
  color: #001B5E;
  border-color: var(--gold, #C9922A);
}

.hud-btn-primary:hover {
  opacity: 0.88;
}

.hud-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

.hud-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

/* ------------ Sidebar compact status ------------------------- */
.mission-sidebar-status {
  display: none;
  padding: 10px 14px;
  margin: 4px 0;
  border-radius: 8px;
  background: var(--surface, #f5f5f5);
  border: 1px solid var(--border, #e0e0e0);
  border-left: 3px solid var(--azulejo, #003DA5);
}

.mission-sidebar-status.is-visible {
  display: block;
}

.msb-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msb-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold, #C9922A);
  margin: 0;
}

.msb-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #1a1a1a);
  margin: 0;
  line-height: 1.3;
}

.msb-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.msb-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted, #666);
  white-space: nowrap;
}

/* ------------ Homepage featured actions (two buttons) --------- */
.mh-featured-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mh-featured-btn-start {
  background: var(--azulejo, #003DA5);
  color: white;
  border-color: var(--azulejo, #003DA5);
  font-weight: 600;
}

.mh-featured-btn-start:hover {
  opacity: 0.88;
}

.mh-featured-btn-view {
  background: transparent;
  color: var(--azulejo, #003DA5);
  border-color: var(--azulejo, #003DA5);
}

.mh-featured-btn-view:hover {
  background: var(--azulejo, #003DA5);
  color: white;
}

/* ------------ Homepage suggestion actions --------------------- */
.mh-suggestion-actions {
  margin-top: 10px;
}

.mh-suggestion-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 5px;
  border: 1.5px solid var(--azulejo, #003DA5);
  background: transparent;
  color: var(--azulejo, #003DA5);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mh-suggestion-btn:hover {
  background: var(--azulejo, #003DA5);
  color: white;
}

/* ------------ Seal promise on mission cards (Phase 1B.3.1) ---- */
.mh-featured-seal {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.mh-featured-seal-icon {
  color: var(--gold, #C9922A);
  opacity: 0.7;
  flex-shrink: 0;
  display: flex;
}

.mh-featured-seal-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold, #C9922A);
}

.mh-suggestion-seal {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold, #C9922A);
  margin: 6px 0 0;
}

/* ------------ HUD text-only button (Phase 1B.2D) ------------- */
.hud-btn-text {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border-color: transparent;
  font-size: 11px;
  padding: 5px 10px;
}

.hud-btn-text:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

/* ------------ HUD resume pill (Phase 1B.2D) ------------------ */
.hud-resume-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #001B5E 0%, var(--azulejo, #003DA5) 100%);
  border-radius: 0 0 10px 10px;
}

.hud-resume-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-resume-text strong {
  color: white;
  font-weight: 600;
}

.hud-resume-btn {
  flex-shrink: 0;
}

/* ------------ Sidebar resume button (Phase 1B.2D) ------------ */
.msb-resume-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 5px;
  border: 1.5px solid var(--azulejo, #003DA5);
  background: var(--azulejo, #003DA5);
  color: white;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 6px;
  width: 100%;
  text-align: center;
}

.msb-resume-btn:hover {
  opacity: 0.88;
}

/* ------------ Exit confirmation overlay (Phase 1B.2D) -------- */
.mission-exit-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 27, 94, 0.35);
  backdrop-filter: blur(3px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mission-exit-confirm-box {
  background: var(--bg, #fff);
  border-radius: 12px;
  padding: 28px 24px 24px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 27, 94, 0.2);
}

.mec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--azulejo, #003DA5);
  margin: 0 0 8px;
  line-height: 1.3;
}

.mec-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted, #666);
  margin: 0 0 20px;
  line-height: 1.5;
}

.mec-actions {
  display: flex;
  gap: 10px;
}

.mec-btn {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  border: 1.5px solid transparent;
  text-align: center;
}

.mec-btn-cancel {
  background: transparent;
  color: var(--text-muted, #666);
  border-color: var(--border, #c8d6e8);
}

.mec-btn-cancel:hover {
  border-color: var(--azulejo, #003DA5);
  color: var(--azulejo, #003DA5);
}

.mec-btn-confirm {
  background: #c0392b;
  color: white;
  border-color: #c0392b;
}

.mec-btn-confirm:hover {
  opacity: 0.88;
}

/* ------------ Mission completion overlay ---------------------- */
.mission-completion-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 60, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10100;
  padding: 24px;
}

.mission-completion-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 20, 60, 0.22);
}

.mco-icon {
  font-size: 36px;
  color: var(--gold, #C9922A);
  margin-bottom: 8px;
  line-height: 1;
}

.mco-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink, #1a1a1a);
  margin: 0 0 12px;
}

.mco-message {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink, #1a1a1a);
  margin: 0 0 8px;
  line-height: 1.5;
}

.mco-summary {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted, #666);
  margin: 0 0 24px;
  line-height: 1.5;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.mco-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mco-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.mco-btn:hover {
  opacity: 0.88;
}

.mco-btn-primary {
  background: var(--azulejo, #003DA5);
  color: #fff;
}

.mco-btn-secondary {
  background: var(--light-blue, #e8f0fc);
  color: var(--azulejo, #003DA5);
}

.mco-btn-text {
  background: transparent;
  color: var(--text-muted, #666);
  font-weight: 500;
  padding: 8px 20px;
}

/* ------------ HUD step list (Phase 1B.2C) -------------------- */
.hud-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hud-step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  padding: 2px 0;
}

.hud-step-icon {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-size: 11px;
}

.hud-step-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-step-item.is-done {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

.hud-step-item.is-done .hud-step-icon {
  color: var(--gold, #C9922A);
}

.hud-step-item.is-current {
  color: white;
  font-weight: 600;
}

.hud-step-item.is-current .hud-step-icon {
  color: var(--gold, #C9922A);
}

/* ------------ Mission context in detail panel (Phase 1B.2C) -- */
.mission-context {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: var(--azulejo, #003DA5);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.mc-step {
  font-weight: 600;
  white-space: nowrap;
}

.mc-divider {
  opacity: 0.5;
}

.mc-mission {
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-context-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e0e0e0);
}

.mc-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  background: var(--azulejo, #003DA5);
  color: white;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
  justify-content: center;
}

.mc-btn:hover {
  opacity: 0.88;
}

/* ------------ Mission context hint (Phase 1G.1) --------------- */
.mission-context-hint {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted, #666);
  font-style: italic;
  padding: 6px 12px;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* ------------ Mission detail editorial intro (Phase 1G.1) ----- */
.md-intro {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted, #666);
  font-style: italic;
  line-height: 1.55;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.md-compact-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted, #666);
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.md-step-hint {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted, #666);
  margin: 0 0 8px;
}

/* ------------ Completion emotion (Phase 1G.1) ----------------- */
.mco-emotion {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-style: italic;
  color: var(--gold, #C9922A);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* ------------ HUD sublabel (Phase 1G.1) ----------------------- */
.hud-sublabel {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.3;
}

/* ------------ Badges / Selos (Phase 1B.3) ---------------------- */

/* Badge in completion overlay */
.mco-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  padding: 12px 16px;
  animation: sealReveal 0.4s ease-out;
}

@keyframes sealReveal {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.mco-badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold, #C9922A);
  background: linear-gradient(135deg, #fffdf5 0%, #fff8e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #C9922A);
  margin-bottom: 12px;
  box-shadow: 0 0 24px rgba(201, 146, 42, 0.25);
}

.mco-badge-unlock {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold, #C9922A);
  margin: 0 0 6px;
}

.mco-badge-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin: 0;
}

.mco-badge-reward {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted, #5a6a7e);
  margin: 8px 0 0;
  text-align: center;
  max-width: 320px;
}

/* Badge in mission detail */
.md-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.md-badge-locked {
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fffdf5;
  border: 1.5px dashed var(--gold, #C9922A);
  gap: 6px;
  padding: 18px 16px;
}

.md-badge-unlocked {
  background: #fffdf5;
  border: 1px solid var(--gold, #C9922A);
}

.md-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border, #c8d6e8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.md-badge-locked .md-badge-icon {
  color: var(--gold, #C9922A);
  opacity: 0.55;
  border-color: var(--gold, #C9922A);
}

.md-badge-unlocked .md-badge-icon {
  border-color: var(--gold, #C9922A);
  color: var(--gold, #C9922A);
  background: #fffdf5;
}

.md-badge-text {
  min-width: 0;
}

.md-badge-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold, #C9922A);
  margin: 0 0 2px;
}

.md-badge-unlocked .md-badge-label {
  color: var(--gold, #C9922A);
}

.md-badge-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin: 0;
}

.md-badge-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted, #666);
  margin: 4px 0 0;
  line-height: 1.4;
}

/* Mini-badges in journey summary */
.mh-badges-section {
  margin-top: 18px;
  text-align: center;
}

.mh-badges-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin: 0 0 2px;
}

.mh-badges-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted, #5a6a7e);
  margin: 0 0 10px;
}

.mh-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  flex-wrap: wrap;
}

.mh-badge-mini {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, opacity 0.3s;
}

.mh-badge-mini.is-locked {
  color: var(--text-muted, #666);
  opacity: 0.3;
  background: var(--surface, #f5f5f5);
}

.mh-badge-mini.is-unlocked {
  color: var(--gold, #C9922A);
  border-color: var(--gold, #C9922A);
  background: #fffdf5;
}

/* ------------ Badge dark mode (Phase 1B.3) ---------------------- */
[data-theme="dark"] .mco-badge-icon {
  background: linear-gradient(135deg, #1a1812 0%, #252010 100%);
  border-color: var(--gold, #dba94d);
  color: var(--gold, #dba94d);
  box-shadow: 0 0 24px rgba(219, 169, 77, 0.2);
}

[data-theme="dark"] .mco-badge-unlock {
  color: var(--gold, #dba94d);
}

[data-theme="dark"] .mco-badge-name {
  color: var(--text, #c8d4e8);
}

[data-theme="dark"] .mco-badge-reward {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .md-badge-locked {
  background: #1a1812;
  border-color: var(--gold, #dba94d);
}

[data-theme="dark"] .md-badge-unlocked {
  background: #1a1812;
  border-color: var(--gold, #dba94d);
}

[data-theme="dark"] .md-badge-locked .md-badge-icon {
  color: var(--gold, #dba94d);
  border-color: var(--gold, #dba94d);
  opacity: 0.55;
}

[data-theme="dark"] .md-badge-unlocked .md-badge-icon {
  border-color: var(--gold, #dba94d);
  color: var(--gold, #dba94d);
  background: #1a1812;
}

[data-theme="dark"] .md-badge-label {
  color: var(--gold, #dba94d);
}

[data-theme="dark"] .md-compact-meta {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .md-actions {
  background: linear-gradient(to bottom, transparent 0%, var(--bg, #0a0e1a) 22%);
}

[data-theme="dark"] .mh-featured-seal-icon {
  color: var(--gold, #dba94d);
}

[data-theme="dark"] .mh-featured-seal-text {
  color: var(--gold, #dba94d);
}

[data-theme="dark"] .mh-suggestion-seal {
  color: var(--gold, #dba94d);
}

[data-theme="dark"] .md-badge-unlocked .md-badge-label {
  color: var(--gold, #dba94d);
}

[data-theme="dark"] .md-badge-name {
  color: var(--text, #c8d4e8);
}

[data-theme="dark"] .md-badge-desc {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .mh-badges-title {
  color: var(--text, #c8d4e8);
}

[data-theme="dark"] .mh-badges-subtitle {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .mh-badge-mini.is-locked {
  color: var(--text-muted, #7a88a8);
  background: var(--surface, #0f1528);
  border-color: var(--border, #243052);
}

[data-theme="dark"] .mh-badge-mini.is-unlocked {
  color: var(--gold, #dba94d);
  border-color: var(--gold, #dba94d);
  background: #1a1812;
}

/* ------------ Phase 1B.2B dark mode --------------------------- */
[data-theme="dark"] .mission-detail-panel {
  background: var(--surface, #0f1528);
  border-color: var(--border, #243052);
}

[data-theme="dark"] .mission-detail-close {
  background: var(--surface, #0f1528);
  border-color: var(--border, #243052);
  color: var(--text, #c8d4e8);
}

[data-theme="dark"] .mission-detail-close:hover {
  background: var(--surface-2, #151d36);
}

[data-theme="dark"] .mission-detail-overlay {
  background: rgba(0, 10, 40, 0.5);
}

[data-theme="dark"] .md-title {
  color: var(--azulejo, #5a8aff);
}

[data-theme="dark"] .md-objective {
  color: var(--text, #c8d4e8);
}

[data-theme="dark"] .md-section {
  border-color: var(--border, #243052);
}

[data-theme="dark"] .md-section-label {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .md-steps li {
  color: var(--text, #c8d4e8);
  border-color: var(--border-light, #1c2844);
}

[data-theme="dark"] .md-steps li::before {
  background: var(--surface-2, #151d36);
  color: var(--azulejo, #5a8aff);
}

[data-theme="dark"] .md-steps li.is-done {
  color: var(--text-muted, #7a88a8);
  text-decoration-color: var(--border, #243052);
}

[data-theme="dark"] .md-step-subtitle {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .md-bar-wrap {
  background: var(--border, #243052);
}

[data-theme="dark"] .md-count,
[data-theme="dark"] .md-time {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .md-btn-primary {
  background: var(--azulejo, #5a8aff);
  border-color: var(--azulejo, #5a8aff);
  color: #0a0f1e;
}

[data-theme="dark"] .md-btn-ghost {
  color: var(--text-muted, #7a88a8);
  border-color: var(--border, #243052);
}

[data-theme="dark"] .md-btn-ghost:hover {
  border-color: var(--azulejo, #5a8aff);
  color: var(--azulejo, #5a8aff);
}

[data-theme="dark"] .md-completed-badge {
  background: #1a1812;
  border-color: var(--gold, #e8ab3a);
  color: var(--gold, #e8ab3a);
}

[data-theme="dark"] .mission-sidebar-status {
  background: var(--surface, #0f1528);
  border-color: var(--border, #243052);
  border-left-color: var(--azulejo, #5a8aff);
}

[data-theme="dark"] .msb-title {
  color: var(--text, #c8d4e8);
}

[data-theme="dark"] .msb-count {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .mh-featured-btn-start {
  background: var(--azulejo, #5a8aff);
  color: #0a0f1e;
  border-color: var(--azulejo, #5a8aff);
}

[data-theme="dark"] .mh-featured-btn-start:hover {
  opacity: 0.88;
}

[data-theme="dark"] .mh-featured-btn-view {
  color: var(--azulejo, #5a8aff);
  border-color: var(--azulejo, #5a8aff);
}

[data-theme="dark"] .mh-featured-btn-view:hover {
  background: var(--azulejo, #5a8aff);
  color: #0a0f1e;
}

[data-theme="dark"] .mh-suggestion-btn {
  color: var(--azulejo, #5a8aff);
  border-color: var(--azulejo, #5a8aff);
}

[data-theme="dark"] .mh-suggestion-btn:hover {
  background: var(--azulejo, #5a8aff);
  color: #0a0f1e;
}

[data-theme="dark"] .mission-context {
  background: var(--azulejo, #5a8aff);
  color: #0a0f1e;
}

[data-theme="dark"] .mc-mission {
  opacity: 0.75;
}

[data-theme="dark"] .mission-context-actions {
  border-color: var(--border, #243052);
}

[data-theme="dark"] .mc-btn {
  background: var(--azulejo, #5a8aff);
  color: #0a0f1e;
}

/* ------------ Phase 1B.2D dark mode --------------------------- */
[data-theme="dark"] .mission-exit-confirm-overlay {
  background: rgba(0, 10, 40, 0.5);
}

[data-theme="dark"] .mission-exit-confirm-box {
  background: var(--surface, #0f1528);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .mec-title {
  color: var(--azulejo, #5a8aff);
}

[data-theme="dark"] .mec-desc {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .mec-btn-cancel {
  color: var(--text-muted, #7a88a8);
  border-color: var(--border, #243052);
}

[data-theme="dark"] .mec-btn-cancel:hover {
  border-color: var(--azulejo, #5a8aff);
  color: var(--azulejo, #5a8aff);
}

[data-theme="dark"] .msb-resume-btn {
  background: var(--azulejo, #5a8aff);
  border-color: var(--azulejo, #5a8aff);
  color: #0a0f1e;
}

/* ------------ Phase 1B.2E dark mode — completion overlay ----- */
[data-theme="dark"] .mission-completion-overlay {
  background: rgba(0, 10, 40, 0.5);
}

[data-theme="dark"] .mission-completion-box {
  background: var(--surface, #0f1528);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .mco-title {
  color: var(--gold, #dba94d);
}

[data-theme="dark"] .mco-message {
  color: var(--text, #c8d4e8);
}

[data-theme="dark"] .mco-summary {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .mco-emotion {
  color: var(--gold, #dba94d);
}

[data-theme="dark"] .md-intro {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .md-step-hint {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .mission-context-hint {
  color: var(--text-muted, #7a88a8);
}

[data-theme="dark"] .mco-btn-primary {
  background: var(--azulejo, #5a8aff);
  color: #0a0f1e;
}

[data-theme="dark"] .mco-btn-secondary {
  background: var(--surface-2, #151d36);
  color: var(--azulejo, #5a8aff);
}

[data-theme="dark"] .mco-btn-text {
  color: var(--text-muted, #7a88a8);
}

/* ------------ Mobile ------------------------------------------ */
@media (max-width: 768px) {
  .progress-summary {
    padding: 10px 12px;
    margin: 6px 0;
  }

  .progress-visited-btn {
    font-size: 12px;
    padding: 7px 14px;
  }

  .missions-home {
    padding: 32px 16px 28px;
  }

  .missions-home-title {
    font-size: 22px;
  }

  .missions-home-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .mh-featured {
    padding: 16px 18px;
  }

  .mh-featured-title {
    font-size: 18px;
  }

  .mh-featured-actions {
    flex-direction: column;
    gap: 8px;
  }

  .mh-featured-actions .mh-featured-btn {
    width: 100%;
    text-align: center;
  }

  .mh-suggestions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mh-suggestion {
    padding: 14px 16px;
  }

  .mh-summary-stats {
    flex-direction: column;
    gap: 6px;
  }

  .mh-summary-divider {
    display: none;
  }

  .mission-detail-content {
    padding: 56px 24px 0;
  }

  .mission-detail-close {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
    font-size: 24px;
  }

  .mission-detail-panel {
    width: 100vw;
    max-width: 100vw;
    border-left: none;
  }

  .md-title {
    font-size: 22px;
  }

  .md-steps li {
    font-size: 12px;
    padding-left: 32px;
  }

  .md-steps li::before {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .hud-inner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    align-items: stretch;
  }

  .hud-text {
    min-width: 0;
  }

  .hud-desc {
    display: none;
  }

  .hud-progress {
    min-width: 0;
  }

  .hud-actions {
    justify-content: flex-end;
  }

  .hud-step-list {
    display: none;
  }

  .hud-sublabel {
    font-size: 10px;
  }

  .mission-context {
    font-size: 11px;
    padding: 6px 10px;
  }

  .mission-context-hint {
    font-size: 11px;
    padding: 4px 10px;
  }

  .mc-btn {
    font-size: 12px;
    padding: 8px 16px;
    min-height: 44px;
  }

  .hud-resume-pill {
    padding: 8px 16px;
    gap: 10px;
  }

  .hud-resume-text {
    font-size: 12px;
  }

  .hud-btn {
    min-height: 44px;
  }

  .mission-exit-confirm-box {
    padding: 24px 20px 20px;
  }

  .mec-title {
    font-size: 18px;
  }

  .mec-btn {
    min-height: 44px;
  }

  .mec-actions {
    flex-direction: column;
  }

  .mission-completion-box {
    padding: 28px 20px 24px;
  }

  .mco-title {
    font-size: 20px;
  }

  .mco-message {
    font-size: 14px;
  }

  .mco-btn {
    min-height: 44px;
  }

  .md-btn {
    min-height: 44px;
  }

  .mco-badge-icon {
    width: 80px;
    height: 80px;
  }

  .mco-badge-name {
    font-size: 18px;
  }

  .mco-badge-reward {
    font-size: 12px;
    max-width: 280px;
  }

  .md-badge {
    gap: 8px;
    padding: 14px 14px;
  }

  .md-badge-locked {
    padding: 14px 12px;
  }

  .md-badge-icon {
    width: 38px;
    height: 38px;
  }

  .mh-badges {
    gap: 8px;
  }

  .mh-badge-mini {
    width: 38px;
    height: 38px;
  }

  .md-actions {
    padding: 24px 24px 20px;
    margin: 0 -24px;
  }
}
