/* ══ ORBIT MARKERS ══════════════════════════════════════════════════════ */
.mc-orbit-wrap {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mc-orbit-node {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; position: relative;
  background: color-mix(in srgb, var(--mc-color) 15%, transparent);
  border: 2px solid var(--mc-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: mcOrbitFloat 2.8s ease-in-out infinite;
  transition: box-shadow 0.3s, transform 0.2s;
}
.mc-orbit-inner {
  position: relative; z-index: 1; line-height: 1;
}
.mc-orbit-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--mc-color);
  animation: mcOrbitPulseRing 1.4s ease-out infinite;
  pointer-events: none;
}
.mc-orbit-wrap.far .mc-orbit-node {
  opacity: 0.5; filter: grayscale(0.4);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.mc-orbit-wrap.near .mc-orbit-node {
  box-shadow: 0 0 0 3px white, 0 0 0 6px color-mix(in srgb, var(--mc-color) 40%, transparent), 0 4px 16px rgba(0,0,0,0.25);
}
.mc-orbit-label {
  margin-top: 3px; font-size: 9px; font-weight: 700;
  color: white; text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.5); padding: 2px 6px;
  border-radius: 99px; white-space: nowrap;
  max-width: 70px; overflow: hidden; text-overflow: ellipsis;
  opacity: 0.75;
}
.mc-orbit-label.near-label {
  opacity: 1; color: #fff;
  background: var(--accent);
  text-shadow: none;
}

/* Glow ring on partner when objects nearby */
.mc-glow-ring {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px dashed rgba(255,107,74,0.25);
  background: rgba(255,107,74,0.04);
  animation: mcGlowRingPulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mcOrbitFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes mcOrbitPulseRing { 0%{transform:scale(1);opacity:0.8} 100%{transform:scale(2.2);opacity:0} }
@keyframes mcGlowRingPulse { 0%,100%{opacity:0.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }

/* Flight + burst (shared with old system) */
.mc-flight-token {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.mc-burst {
  position: fixed; pointer-events: none; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%,-50%);
}
.mc-burst-ring {
  position: absolute; width: 52px; height: 52px;
  border-radius: 50%; border: 3px solid var(--accent);
  animation: mcBurstRing 0.6s ease-out forwards;
}
.mc-burst-ring:nth-child(2){animation-delay:.1s;border-color:#fbbf24;}
.mc-burst-ring:nth-child(3){animation-delay:.2s;border-color:white;}
@keyframes mcBurstRing{0%{transform:scale(1);opacity:1}100%{transform:scale(4);opacity:0}}

/* Collect confirm toast */
.mc-confirm {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  z-index: 9997; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px; min-width: 280px; max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: mcConfirmIn 0.35s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes mcConfirmIn{from{transform:translateX(-50%) translateY(20px);opacity:0}to{transform:translateX(-50%) translateY(0);opacity:1}}
.mc-confirm-header{display:flex;align-items:center;gap:10px;margin-bottom:8px;}
.mc-confirm-emoji{font-size:24px;}
.mc-confirm-title{font-size:14px;font-weight:800;color:var(--text);}
.mc-confirm-sub{font-size:12px;color:var(--text3);margin-top:1px;}
.mc-confirm-progress{display:flex;gap:6px;margin-top:10px;align-items:center;}
.mc-confirm-pip{width:22px;height:5px;border-radius:3px;background:var(--border);}
.mc-confirm-pip.filled{background:var(--accent);}
.mc-confirm-progress-label{font-size:11px;color:var(--text3);margin-left:4px;}

/* ══ OBJECT DETAIL SHEET ════════════════════════════════════════════════ */
#objectDetailSheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 4000;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(.32,1,.56,1);
  pointer-events: none;
}
#objectDetailSheet.open {
  transform: translateY(0);
  pointer-events: all;
}
.ods-backdrop {
  position: fixed; inset: 0; z-index: 3999;
  background: rgba(0,0,0,0); pointer-events: none;
  transition: background 0.3s;
}
.ods-backdrop.open {
  background: rgba(0,0,0,0.35); pointer-events: all;
}
.ods-inner {
  background: var(--bg); border-radius: 22px 22px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.2);
  overflow: hidden;
}
.ods-handle-bar {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 10px auto 0;
}

/* Hero section */
.ods-hero {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; padding: 20px 20px 16px; gap: 10px;
  position: relative;
}
.ods-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ods-color) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.ods-hero-icon {
  font-size: 52px; line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  animation: mcOrbitFloat 2.8s ease-in-out infinite;
}
.ods-status-badge {
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 99px;
}
.ods-status-badge.in-range { background: rgba(255,107,74,0.1); color: var(--accent); }
.ods-status-badge.far      { background: var(--surface2); color: var(--text3); }
.ods-status-badge.collected{ background: rgba(74,222,128,0.1); color: #16a34a; }
.ods-status-badge.unknown  { background: var(--surface2); color: var(--text3); }

/* Body */
.ods-body { padding: 0 20px 20px; }
.ods-name { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.ods-meta { font-size: 12px; color: var(--text3); margin-bottom: 2px; }
.ods-divider { height: 1px; background: var(--border); margin: 14px 0; }

/* Stats */
.ods-stats { display: flex; gap: 0; }
.ods-stat { flex: 1; text-align: center; }
.ods-stat-val { font-size: 22px; font-weight: 900; color: var(--text); }
.ods-stat-label { font-size: 10px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* Progress */
.ods-progress-section { }
.ods-section-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 10px; }
.ods-pips { display: flex; gap: 6px; margin-bottom: 8px; }
.ods-pip { flex: 1; height: 8px; border-radius: 4px; background: var(--surface2); transition: background 0.3s; }
.ods-pip.filled { background: var(--pip-color, var(--accent)); }
.ods-progress-note { font-size: 12px; color: var(--text3); line-height: 1.5; }

/* Distance */
.ods-distance-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.ods-distance-icon { font-size: 16px; }
.ods-distance-text { font-size: 14px; font-weight: 700; color: var(--text); flex: 1; }
.ods-radius-note { font-size: 11px; color: var(--text3); }

/* CTA */
.ods-cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 15px; border-radius: 14px;
  font-size: 16px; font-weight: 800; border: none;
  font-family: inherit; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.ods-cta:active { transform: scale(0.97); }
.ods-cta.available { background: var(--accent); color: white; }
.ods-cta.far       { background: var(--surface2); color: var(--text3); cursor: default; font-size: 14px; }
.ods-cta.collected { background: rgba(74,222,128,0.1); color: #16a34a; cursor: default; font-size: 14px; }
