:root {
  --bg-top: #0c2236;
  --bg-bottom: #071522;
  --card: rgba(255, 255, 255, 0.06);
  --card-active: rgba(255, 255, 255, 0.13);
  --text: #f3f5f7;
  --muted: #a9b8c6;
  --accent: #e4b766;

  /* Scales with the narrow column and with screen height, whichever is tighter */
  --q-size: clamp(15px, min(6.6vw, 3.1vh), 48px);
  --gutter: clamp(16px, 5vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.panel {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--gutter) * 1.4) var(--gutter);
  gap: clamp(14px, 3vh, 40px);
}

.eyebrow {
  color: var(--accent);
  font-size: calc(var(--q-size) * 0.5);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-top: 0.3em;
  font-size: calc(var(--q-size) * 1.65);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hint {
  margin-top: 0.7em;
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: var(--muted);
  font-size: calc(var(--q-size) * 0.62);
}

.mic {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  fill: var(--accent);
}

.questions {
  flex: 1;
  min-height: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(8px, 1.4vh, 20px);
}

.questions li {
  position: relative;
  padding: 0.6em 0.75em 0.6em 1em;
  background: var(--card);
  border-radius: 0.45em;
  font-size: var(--q-size);
  font-weight: 600;
  line-height: 1.22;
  text-wrap: balance;
  transition: background-color 0.6s ease, transform 0.6s ease;
}

.questions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  bottom: 0.55em;
  width: 0.16em;
  border-radius: 0.1em;
  background: var(--accent);
  opacity: 0.35;
  transition: opacity 0.6s ease;
}

.questions li.active {
  background: var(--card-active);
  transform: translateX(0.25em);
}

.questions li.active::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .questions li, .questions li::before { transition: none; }
  .questions li.active { transform: none; }
}
