html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "Courier New", monospace;
}

#c { display: block; width: 100vw; height: 100vh; }

#hud {
  position: fixed;
  right: 10px;
  top: 8px;
  z-index: 8;
  max-width: 340px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  overflow-x: hidden;
  color: rgba(255, 255, 255, 0.04);
  font: 8px/1.65 "Courier New", monospace;
  text-align: right;
  pointer-events: auto;
  white-space: pre;
  background: transparent;
  transition: color .6s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
#hud::-webkit-scrollbar { width: 4px; }
#hud::-webkit-scrollbar-track { background: transparent; }
#hud::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 2px; }
#hud:hover { color: rgba(255, 255, 255, 0.6); }
#hud:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); }

#controls {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 8;
  display: flex;
  gap: 6px;
}
#controls button, #donate {
  font: 8px "Courier New", monospace;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.3);
  padding: 6px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
}
#controls button:hover, #donate:hover {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.28);
}
#micBtn.on {
  background: rgba(30, 110, 40, 0.2);
  border-color: rgba(70, 180, 95, 0.55);
  color: rgba(170, 255, 190, 0.8);
}
#fsBtn.on {
  background: rgba(80, 45, 130, 0.18);
  border-color: rgba(155, 105, 255, 0.55);
  color: rgba(220, 190, 255, 0.85);
}

#donate {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  z-index: 8;
  opacity: 0.05;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  text-transform: none;
  letter-spacing: .12em;
}
#donate:hover { opacity: 0.28; }

#txWrap {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  width: min(76vw, 800px);
  text-align: center;
  pointer-events: none;
  z-index: 8;
}
#tx {
  font: italic 400 20px/1.6 Georgia, serif;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  transition: opacity 4s ease;
  text-wrap: balance;
}
#tx-line {
  margin: 16px auto 0;
  width: 120px;
  border-top: .5px solid rgba(255, 255, 255, .15);
  opacity: 0;
  transition: opacity 4s ease;
}

#loading {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: rgba(255, 255, 255, 0.22);
  font: 9px/1.4 "Courier New", monospace;
  letter-spacing: .22em;
  transition: opacity 2s ease;
}
#bar {
  width: 200px;
  height: .5px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
#barFill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.30);
  transition: width .35s steps(5, end);
}
