/* Hero cosmos — simulation HERE at top */
.hero--cosmos {
  position: relative;
  overflow: hidden;
}

.hero-cosmos-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}

#hero-cosmos {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-cosmos-label {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  font-family: var(--guide-font);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--green);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.hero--cosmos > *:not(.hero-cosmos-wrap) {
  position: relative;
  z-index: 1;
}

.hero--cosmos::before {
  opacity: 0.06 !important;
  z-index: 0;
}

.hero--cosmos {
  min-height: 420px;
}

.hero-cosmos-wrap {
  min-height: 100%;
}

.universe-section {
  position: relative;
  z-index: 1;
}

.universe-hero-text {
  margin-bottom: 1rem;
}

.universe-stage {
  position: relative;
  border: 2px solid var(--green);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(66, 232, 133, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at center, #0a1520 0%, #020408 75%);
  box-shadow:
    var(--glow),
    0 0 60px rgba(66, 232, 133, 0.12),
    inset 0 0 100px rgba(66, 232, 133, 0.05);
  min-height: 520px;
  height: min(72vh, 720px);
}

.universe-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 30% 20%, rgba(232, 93, 4, 0.04) 0%, transparent 50%);
  border-radius: inherit;
}

#universe-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#universe-canvas:active {
  cursor: grabbing;
}

.universe-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(4, 10, 8, 0.92), transparent);
  pointer-events: none;
}

.universe-hud > * {
  pointer-events: auto;
}

.universe-hud.hidden {
  display: none;
}

.universe-status {
  font-family: var(--guide-font);
  font-size: 0.75rem;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.universe-status--ok {
  color: var(--green-bright);
}

.universe-status--error {
  color: var(--panic-bright);
}

.universe-hud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.universe-detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 40%;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  background: linear-gradient(0deg, rgba(4, 10, 8, 0.96), rgba(4, 10, 8, 0.85), transparent);
  border-top: 1px solid var(--border);
  pointer-events: auto;
}

.universe-detail.hidden {
  display: none;
}

.universe-detail h4 {
  font-family: "Orbitron", var(--guide-font);
  color: var(--green-bright);
  margin-bottom: 0.35rem;
}

.universe-detail-type {
  font-family: var(--guide-font);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vogon);
  margin-bottom: 0.5rem;
}

.universe-detail-addr {
  font-family: var(--mono);
  font-size: 0.75rem;
  word-break: break-all;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.universe-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.universe-legend-item {
  padding: 0.65rem 0.85rem;
  font-family: var(--guide-font);
  font-size: 0.75rem;
}

.universe-legend-item strong {
  color: var(--green-bright);
  display: block;
  margin-bottom: 0.2rem;
}

.universe-wallets-panel {
  margin-top: 1.25rem;
}

.universe-wallets-list {
  list-style: none;
  font-family: var(--guide-font);
  font-size: 0.8rem;
  max-height: 200px;
  overflow-y: auto;
}

.universe-wallets-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.universe-backend-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--border);
  font-family: var(--guide-font);
  font-size: 0.78rem;
  color: var(--muted);
}

.universe-backend-note code {
  color: var(--green-bright);
}

.universe-label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.planet-hud {
  font-family: var(--guide-font);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #c8e6d4;
  background: rgba(4, 12, 10, 0.88);
  border: 1px solid rgba(66, 232, 133, 0.35);
  border-radius: 6px;
  padding: 4px 6px;
  min-width: 88px;
  box-shadow: 0 0 12px rgba(66, 232, 133, 0.15);
  transform: translate(-50%, -100%);
  white-space: nowrap;
}

.planet-hud__title {
  font-weight: 700;
  color: var(--green-bright);
  text-align: center;
  margin-bottom: 3px;
  font-size: 10px;
}

.planet-hud__row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0;
}

.planet-hud__icon {
  font-size: 8px;
  width: 12px;
  text-align: center;
}

.planet-hud__bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.planet-hud__fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.planet-hud__fill--pop {
  background: linear-gradient(90deg, #2a8f5a, #42e885);
  box-shadow: 0 0 6px rgba(66, 232, 133, 0.5);
}

.planet-hud__fill--mcap {
  background: linear-gradient(90deg, #6b4a12, #e8c04a);
}

.planet-hud__val {
  font-size: 8px;
  color: #9ab0a4;
  min-width: 28px;
  text-align: right;
}

.planet-hud__mood {
  text-align: center;
  font-size: 8px;
  margin-top: 2px;
  font-weight: 600;
}

.planet-hud__mood--up {
  color: #42e885;
}

.planet-hud__mood--down {
  color: #e85d04;
}

.universe-stat-bars {
  margin: 0.5rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.universe-stat-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.stat-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar__fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.stat-bar__fill--pop {
  background: linear-gradient(90deg, #1a6b42, #42e885);
}

.stat-bar__fill--mcap {
  background: linear-gradient(90deg, #665500, #ffd700);
}

.stat-bar--up {
  background: linear-gradient(90deg, #2a5a3a, #42e885);
}

.stat-bar--down {
  background: linear-gradient(90deg, #5a2010, #e85d04);
}

.helios-holders {
  color: var(--green-bright);
  font-variant-numeric: tabular-nums;
}
