/* Metaphysics OS · Museum-grade celestial chrome · cinema-v1
   Additive. MCF compute, pillar IDs, tab-btn onclick, view-* panes unchanged. */
:root {
  --meta-void: #07050F;
  --meta-violet: #120A22;
  --meta-gold: #F0C14B;
  --meta-lilac: #A78BFA;
}

.meta-dim-nav {
  width: 100%;
}
.meta-dim-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 22px;
  background: rgba(18, 10, 34, 0.62);
  border: 1px solid rgba(167, 139, 250, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.28);
}
.meta-dim-kicker {
  font-family: "Cinzel Decorative", "Cinzel", "Noto Serif TC", serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--meta-gold);
  padding: 0.2rem 0.45rem 0.2rem 0.15rem;
  opacity: 0.9;
  flex: 0 0 auto;
}
.meta-dim-track .tab-btn {
  border: 1px solid rgba(167, 139, 250, 0.18);
  background: rgba(255, 255, 255, 0.03);
}
.meta-dim-track .tab-btn.active {
  color: #07050f;
  background: linear-gradient(180deg, #f5e6a8, #f0c14b 50%, #c9a227);
  border-color: #fceceb;
  box-shadow: 0 0 18px rgba(240, 193, 75, 0.4);
}

.meta-astrolabe-stage {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  margin: 0.5rem 0 1.25rem;
  padding: 1rem 0.5rem 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(167, 139, 250, 0.16), transparent 70%),
    rgba(7, 5, 15, 0.55);
  overflow: hidden;
}
.meta-astrolabe-svg {
  width: min(420px, 92%);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(240, 193, 75, 0.18));
}
.meta-astrolabe-ring {
  transform-origin: 200px 200px;
  animation: meta-astro-spin 80s linear infinite;
}
.meta-astrolabe-ring.slow { animation-duration: 140s; animation-direction: reverse; }
.meta-el-node {
  cursor: pointer;
  transition: transform 0.25s ease;
}
.meta-el-node:hover .meta-el-orb,
.meta-el-node.is-on .meta-el-orb {
  filter: url(#meta-glow);
}
.meta-el-node.is-on .meta-el-orb {
  stroke: #f0c14b;
  stroke-width: 2.4;
}
.meta-astro-caption {
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.78rem;
  color: #c4b5fd;
  min-height: 2.4em;
}
.meta-astro-caption strong {
  display: block;
  font-family: "Cinzel", "Noto Serif TC", serif;
  color: var(--meta-gold);
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

@keyframes meta-astro-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bazi-grid {
  align-items: end;
}
.bazi-pillar {
  position: relative;
  min-height: 168px;
  border-radius: 18px 18px 10px 10px !important;
  background:
    linear-gradient(180deg, rgba(167, 139, 250, 0.16) 0%, rgba(7, 5, 15, 0.72) 55%, rgba(18, 10, 34, 0.9) 100%) !important;
  border: 1px solid rgba(240, 193, 75, 0.22) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.bazi-pillar::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 8px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, transparent, #f0c14b, transparent);
  opacity: 0.7;
}
.bazi-pillar[data-hero="1"] {
  transform: translateY(-10px);
  border-color: rgba(240, 193, 75, 0.55) !important;
  box-shadow: 0 0 28px rgba(240, 193, 75, 0.22), 0 22px 50px rgba(0, 0, 0, 0.4);
}
.bazi-pillar .ff-crystal {
  filter: drop-shadow(0 0 8px rgba(240, 193, 75, 0.45));
}

.glass-panel {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 768px) {
  .meta-dim-track { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .meta-dim-track::-webkit-scrollbar { display: none; }
  .meta-dim-kicker { position: sticky; left: 0; background: rgba(18, 10, 34, 0.92); z-index: 1; }
  .bazi-pillar[data-hero="1"] { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .meta-astrolabe-ring { animation: none; }
}
