/* ════════════════════════════════════════════════════════════════
   SGC SHIP TURNTABLE — modal preview 3D vaisseau
   ════════════════════════════════════════════════════════════════ */

.sht-overlay {
  position: fixed; inset: 0; z-index:var(--z-overlay-faction);
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(8px);
  animation: shtFadeIn 0.22s ease-out;
}
@keyframes shtFadeIn { from { opacity: 0; } to { opacity: 1; } }

.sht-modal {
  position: relative;
  width: min(960px, 96vw);
  height: min(540px, 80vh);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  background: linear-gradient(135deg, rgba(8, 14, 26, 0.96), rgba(4, 10, 22, 0.98));
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 36px rgba(var(--accent-rgb), 0.12);
  overflow: hidden;
  animation: shtSlideIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes shtSlideIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.sht-canvas-host {
  position: relative;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%),
              linear-gradient(135deg, #050810 0%, #020408 100%);
  overflow: hidden;
}
.sht-canvas-host::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
}

.sht-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--textbright); cursor: pointer;
  font-size: 16px; font-weight: 700;
  transition: all 0.18s;
}
.sht-close:hover { background: rgba(255, 80, 80, 0.30); border-color: rgba(255, 80, 80, 0.6); transform: scale(1.05); }

.sht-info {
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.4), rgba(4, 10, 22, 0.7));
  border-left: 1px solid rgba(var(--accent-rgb), 0.18);
  overflow-y: auto;
}

.sht-head { display: flex; align-items: center; gap: 16px; }
.sht-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.20), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.40);
  border-radius: 12px;
  font-size: 32px;
}
.sht-icon img { max-width: 40px; max-height: 40px; object-fit: contain; }
.sht-name {
  font-family:var(--font-display); font-size: 22px; font-weight: 800;
  color: var(--textbright); letter-spacing: 2px; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
  line-height: 1.1;
}
.sht-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.sht-meta-faction {
  font-family:var(--font-mono); font-size: 11px;
  color: var(--textsoft); letter-spacing: 2px;
}
.sht-badge {
  font-family:var(--font-display); font-size: 9px; font-weight: 800;
  letter-spacing: 1.5px; padding: 3px 8px; border-radius: 10px;
}
.sht-badge-glb {
  background: rgba(46, 204, 113, 0.20); color: var(--success);
  border: 1px solid rgba(46, 204, 113, 0.45);
}
.sht-badge-proc {
  background: rgba(212, 146, 10, 0.18); color: var(--gold2);
  border: 1px solid rgba(212, 146, 10, 0.40);
}

.sht-desc {
  font-family:var(--font-mono); font-size: 13px;
  color: var(--textmid); line-height: 1.55;
  padding: 12px 14px; border-left: 2px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(255, 255, 255, 0.025); border-radius: 4px;
}

.sht-stats { display: flex; flex-direction: column; gap: 6px; }
.sht-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 6px;
}
.sht-stat-lbl {
  font-family:var(--font-mono); font-size: 12px;
  color: var(--textsoft); letter-spacing: 1px; text-transform: uppercase;
}
.sht-stat-val {
  font-family:var(--font-display); font-size: 16px; font-weight: 700;
}
.sht-stat-empty {
  text-align: center; padding: 20px; color: var(--textsoft);
  font-family:var(--font-mono); font-size: 13px;
}

.sht-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sht-btn-credits {
  font-family:var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; padding: 7px 14px; cursor: pointer;
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 6px; color: var(--accent2);
  transition: all 0.18s;
}
.sht-btn-credits:hover {
  background: rgba(var(--accent-rgb), 0.22);
  border-color: rgba(var(--accent-rgb), 0.55);
}
.sht-hint { font-family:var(--font-mono); font-size: 11px; color: var(--textsoft); }

/* ── Credits modal ── */
.sht-modal-creds {
  height: auto; min-height: 380px; max-height: 70vh;
  width: min(560px, 96vw);
  grid-template-columns: 1fr;
  padding: 32px 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.sht-cred-title {
  font-family:var(--font-display); font-size: 18px; font-weight: 900;
  color: var(--gold); letter-spacing: 4px; text-align: center;
  text-shadow: 0 0 12px rgba(212, 146, 10, 0.4);
}
.sht-cred-intro {
  font-family:var(--font-mono); font-size: 13px;
  color: var(--textmid); text-align: center; line-height: 1.5;
}
.sht-cred-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; padding: 4px 2px; }
.sht-cred-row {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}
.sht-cred-name {
  font-family:var(--font-body); font-size: 15px; font-weight: 700;
  color: var(--textbright);
}
.sht-cred-meta {
  font-family:var(--font-mono); font-size: 12px;
  color: var(--textsoft); margin-top: 3px;
}
.sht-cred-lic { color: var(--gold2); font-weight: 700; }
.sht-cred-empty { padding: 24px; text-align: center; color: var(--textsoft); }
.sht-cred-foot {
  font-family:var(--font-mono); font-size: 12px;
  color: var(--textsoft); text-align: center; margin-top: auto;
}
.sht-cred-link { color: var(--accent2); text-decoration: none; }
.sht-cred-link:hover { color: var(--accent); text-decoration: underline; }

/* ── Pill clickable hint ── */
.fms-pill {
  cursor: pointer; transition: transform 0.15s, box-shadow 0.18s;
}
.fms-pill:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.25);
}
.fms-pill::after {
  content: '🔍'; margin-left: 4px; opacity: 0; font-size: 10px;
  transition: opacity 0.18s;
}
.fms-pill:hover::after { opacity: 0.6; }

/* ── Mobile ── */
@media (max-width: 720px) {
  .sht-modal {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 1fr) auto;
    height: min(640px, 92vh);
  }
  .sht-info { border-left: none; border-top: 1px solid rgba(var(--accent-rgb), 0.18); padding: 18px 20px; }
  .sht-name { font-size: 18px; }
  .sht-modal-creds { padding: 22px 20px; }
}
