:root {
  --bg: #000;
  --fg: #f5f0df;
  --accent: #d9d2bd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: Consolas, "Courier New", monospace;
  overflow: hidden;
}

/* Hidden video element: visual stays offscreen while audio plays */
#audio {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(1.25) contrast(1.1);
  z-index: 0;
  background: #000;
}

canvas#view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  filter: brightness(1.6) drop-shadow(0 0 3px rgba(255, 248, 210, 0.6));
}

#bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  z-index: 5;
}

button {
  background: #111;
  color: var(--fg);
  border: 1px solid #444;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

input[type="range"] {
  flex: 1;
  min-width: 120px;
  accent-color: var(--accent);
}

#time {
  font-size: 12px;
  opacity: 0.7;
  min-width: 90px;
}

#hint {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 4px;
  z-index: 6;
  display: none;
  max-width: 92vw;
  text-align: center;
}
