:root {
  --bg: #ffffff;
  --fg: #000000;
  --accent1: #00ffff; /* cyan */
  --accent2: #ff0050; /* hot pink */
  --accent3: #ffdd00; /* yellow */
  --shadow: rgba(0,0,0,0.1);
  color-scheme: light only;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Helvetica, Arial, sans-serif;
  overscroll-behavior: none;
  height: 100%;
}

canvas {
  display: block;
  position: fixed;
  inset: 0;     /* full viewport */
  z-index: 0;   /* keep it behind UI/footer */
}


/* Gate */
#gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 10;
}
.gate-box {
  text-align: center;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--fg);
  box-shadow: 0 10px 30px var(--shadow);
}
.gate-box h1 {
  margin: 0 0 0.25rem 0;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  font-weight: 800;
}
.gate-box p {
  margin: 0 0 1rem 0;
  opacity: 0.75;
}
#startBtn {
  appearance: none;
  border: 2px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* UI */
#ui {
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 5;
  font-size: 12px;
}
#ui details {
  background: rgba(255,255,255,0.92);
  border: 1px solid #000;
  padding: 6px 8px;
}
#ui summary {
  cursor: pointer;
  font-weight: 700;
  outline: none;
  list-style: none;
}
#ui summary::-webkit-details-marker { display: none; }
.control { display: grid; gap: 6px; margin-top: 8px; }
.grid-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
input[type="range"] { width: 180px; }
.readout { opacity: 0.8; }
button#togglePalette {
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
}

/* Sticky footer notice that sits above the canvas/UI until hidden */
#micNotice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: #444;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  margin: 0;
  z-index: 20;          /* <- higher than #gate */
  pointer-events: none; /* clicks pass through to the Start button */
}
#micNotice p { margin: 0; }


