:root {
  color-scheme: dark;
  background: #0c0a09;
  color: #d6d3d1;
  font: 15px/1.6 Georgia, 'Times New Roman', serif;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  box-sizing: border-box;
}

#fire {
  width: min(80vw, 28rem);
  aspect-ratio: 1;
  object-fit: contain;
}

#add {
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid #57534e;
  border-radius: 999px;
  padding: 0.35rem 1.2rem;
  cursor: pointer;
  transition: opacity 0.3s, border-color 0.3s;
}
#add:hover:not(:disabled) {
  border-color: #c2410c;
}
#add:disabled {
  opacity: 0.25;
  cursor: default;
}

#events {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 9.6em;
  text-align: center;
  font-style: italic;
  color: #a8a29e;
}
#events li:nth-last-child(2) {
  opacity: 0.8;
}
#events li:nth-last-child(3) {
  opacity: 0.6;
}
#events li:nth-last-child(4) {
  opacity: 0.45;
}
#events li:nth-last-child(5) {
  opacity: 0.3;
}
#events li:nth-last-child(n+6) {
  opacity: 0.15;
}
