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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0806;
  font-family: 'Georgia', serif;
  color: #d4a87a;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#ui {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

#ui > * {
  pointer-events: auto;
}

#queue-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

#buffer-bar {
  width: 160px;
  height: 6px;
  border-radius: 3px;
  background: rgba(60, 40, 25, 0.5);
  overflow: hidden;
}

#buffer-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #8b5e3c, #d4a87a, #f0c88a);
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#buffer-count {
  font-size: 11px;
  opacity: 0.5;
}

#sync-btn {
  padding: 8px 28px;
  border: 1px solid rgba(180, 130, 80, 0.3);
  border-radius: 20px;
  background: rgba(40, 25, 15, 0.7);
  color: #d4a87a;
  font-family: 'Georgia', serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.5s ease;
  opacity: 0.4;
}

#sync-btn:enabled {
  opacity: 0.85;
  border-color: rgba(212, 168, 122, 0.5);
  box-shadow: 0 0 18px rgba(212, 168, 122, 0.15);
}

#sync-btn:enabled:hover {
  opacity: 1;
  background: rgba(60, 38, 22, 0.85);
  box-shadow: 0 0 28px rgba(212, 168, 122, 0.3);
}

#sync-btn:disabled {
  cursor: default;
}

#state-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.3;
  text-transform: uppercase;
}
