:root {
  --neon: #00f7ff;
  --neon2: #ff3aff;
  --bg-1: #03040a;
  --panel-bg: rgba(8, 8, 16, 0.95);
  --muted: #cfd8e3;
}

/* Base layout */
html,body {
  height: 100%;
  margin: 0;
}
body {
  font-family: Inter, sans-serif;
  background: var(--bg-1);
  color: #e9eef8;
  padding: 24px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

h1 {
  margin: 6px 0 12px;
  text-align: center;
  font-weight: 700;
}
p.lead {
  max-width: 900px;
  margin: 0 auto 18px;
  color: #bfc9d9;
  text-align: center;
}

/* SVG */
.svg-wrap {
  display: flex;
  justify-content: center;
}
svg#mixer-svg {
  width: 85%;
  max-width: 1400px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 30px rgba(0,255,255,0.03);
  background: (var(--bg-1));
}

/* Hotspots */
.hotspot {
  fill: transparent;
  cursor: pointer;
  transition: fill 120ms ease, stroke 120ms ease, filter 120ms ease;
}
.hotspot:hover {
  fill: rgba(0,255,255,0.06);
  stroke: var(--neon);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(0,255,255,0.55))
          drop-shadow(0 0 18px rgba(0,255,255,0.18));
}

/* Tooltip */
.tooltip {
  position: absolute;
  display: none;
  min-width: 180px;
  max-width: 360px;
  background: linear-gradient(180deg, rgba(10,10,12,0.8), rgba(5,5,8,0.95));
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.3;
  border: 1px solid rgba(0,255,255,0.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.6), 0 0 18px rgba(0,255,255,0.06);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.tooltip.visible {
  display: block;
  opacity: 1;
}
.tooltip .title {
  font-weight: 700;
  color: var(--neon);
  margin-bottom: 4px;
  font-size: 13px;
}
.tooltip .body {
  font-size: 12px;
  color: #e6f8fb;
}

/* Detail pane */
.detail-pane {
  position: fixed;
  top: 6vh;       /* standoff from top */
  left: 6vh;      /* standoff from left */
  right: 6vh;     /* standoff from right */
  bottom: auto;   /* not pinned to bottom */
  width: auto;    /* dynamic width */
  max-width: 30vw; /* cap width so it doesn’t eat whole screen */
  max-height: 80vh;
  padding: 16px;
  background: linear-gradient(180deg, rgba(10,10,12,0.92), rgba(5,5,8,0.96));
  color: #fff;
  border: 2px solid var(--neon);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(0,255,255,0.25), 0 8px 24px rgba(0,0,0,0.6);
  display: flex;               /* always flex — hidden with opacity */
  flex-direction: column;
  z-index: 9999;
  overflow-y: auto;            /* scroll if too much text */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.detail-pane.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);    /* smooth slide-in effect */
}

.detail-pane header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detail-pane h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--neon);
  text-shadow: 0 0 6px rgba(0,255,255,0.5);
}

.detail-pane .close-btn {
  background: none;
  border: 1px solid rgba(0,255,255,0.3);
  color: var(--neon);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.15s ease;
}
.detail-pane .close-btn:hover {
  background: rgba(0,255,255,0.1);
  box-shadow: 0 0 6px rgba(0,255,255,0.5);
}

.detail-body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-height: 56vh;
  overflow-y: auto;
}
/* Mixing guide container */
#mixing-guide {
  padding: 24px;
  border: 2px solid var(--neon);
  border-radius: 10px;
  background: var(--bg-1);     /* same as page background */
  color: var(--muted);
  font-size: 16px;             /* bigger text */
  line-height: 1.6;
  max-width: 1200px;
  margin: 24px auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 20px rgba(0,255,255,0.08);
}

/* Neon headers with softer glow */
#mixing-guide h1,
#mixing-guide h2,
#mixing-guide h3 {
  color: var(--neon);
  text-shadow: 0 0 4px rgba(0, 247, 255, 0.4); /* softer glow */
  margin-top: 20px;
  margin-bottom: 12px;
}

/* Lists inside the guide */
#mixing-guide ul,
#mixing-guide ol {
  margin: 10px 0 14px 1.4em;
  padding-left: 0;
  color: var(--muted);
}

#mixing-guide li {
  margin-bottom: 8px;
}

/* Inline code */
#mixing-guide code {
  background: rgba(0,255,255,0.05);
  color: var(--neon2);
  padding: 2px 4px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 15px;
}

/* Code blocks */
#mixing-guide pre {
  background: rgba(0,255,255,0.08);
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
  color: var(--neon2);
  font-size: 15px;
}
