html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0d0f1a;
  font-family: Palatino, Georgia, serif;
}

#c {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #c9c4b8;
  background: #0d0f1a;
  transition: opacity 1.2s ease;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#end {
  background: #000;
  transition: opacity 5s ease;
}

#endline {
  font-size: 1.4rem;
  font-style: italic;
  opacity: 0;
  transition: opacity 2s ease;
}

#end.showline #endline {
  opacity: 1;
}

h1 {
  font-size: 2.2rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  margin: 0 0 0.2em;
}

.quiet {
  opacity: 0.6;
  font-size: 0.95rem;
  margin: 0.4em 0;
}

#lengths, #palettes {
  display: flex;
  gap: 16px;
  margin: 1.2em 0 0.3em;
}

#palettes {
  margin-top: 2em;
}

#palettes.hidden {
  display: none;
}

button {
  min-width: 64px;
  min-height: 56px;
  font-family: inherit;
  font-size: 1.3rem;
  color: #c9c4b8;
  background: transparent;
  border: 1px solid rgba(201, 196, 184, 0.4);
  border-radius: 8px;
  cursor: pointer;
}

button.chosen {
  border-color: #c9a25e;
  color: #c9a25e;
}

#palettes button {
  font-size: 0.95rem;
  min-height: 44px;
}
