:root {
  --bg-void: #000001;
  --neon-cyan: #00f0ff;
  --neon-blue: #0066ff;
  --neon-violet: #8a2be2;
  --text-main: #e0f2fe;
  --text-dim: #7dd3fc;
  --panel-bg: rgba(4, 9, 16, 0.65);
  --panel-border: rgba(0, 240, 255, 0.15);
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-void);
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
}

#swarm-container {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 15%, var(--bg-void) 120%),
    radial-gradient(circle at 45% 42%, rgba(0, 15, 30, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 2;
}

#info-panel {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 4;
  width: 360px;
  color: var(--text-main);
  border-radius: 6px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.9),
    inset 0 0 32px rgba(0, 100, 255, 0.05);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

#info-panel.expanded {
  width: 440px;
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(0, 150, 255, 0.1),
    inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}

.info-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-blue), transparent);
  opacity: 0.5;
}

.info-kicker {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 6px;
  font-weight: 600;
}

#info-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

#info-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.05);
  color: var(--neon-cyan);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 300;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#info-toggle:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

#info-body {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, transform 0.5s ease;
}

#info-panel.expanded #info-body {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

#info-copy {
  margin: 0;
  padding: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.info-grid {
  display: grid;
  gap: 12px;
  padding: 0 20px 24px 20px;
}

.info-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  border-left: 2px solid var(--neon-blue);
}

.info-row span {
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 9px;
  font-weight: 600;
  opacity: 0.8;
}

.info-row strong {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

#nav-container {
  position: absolute;
  bottom: 40px;
  left: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border-radius: 6px;
  background: var(--panel-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--panel-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--neon-cyan);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  transition: transform 0.3s ease;
}

.nav-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

#btn-prev:hover svg { transform: translateX(-4px); }
#btn-next:hover svg { transform: translateX(4px); }

.nav-btn:active { transform: scale(0.95); }

.nav-label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  color: var(--text-dim);
  padding: 0 8px;
  font-weight: 500;
  user-select: none;
}

@media (max-width: 640px) {
  #info-panel, #info-panel.expanded {
    top: 16px;
    left: 16px;
    width: calc(100vw - 32px);
  }
  #nav-container {
    bottom: 24px;
    left: 16px;
  }
}