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

:root {
  --accent: #F4C400;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: #111110;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* The composition IS the page — edge to edge. */
#canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

/* Minimal floating chrome that fades away, so it reads as a page not a player. */
.ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.ui.faded { opacity: 0; }

.ui .back,
.ui .controls {
  position: fixed;
  pointer-events: auto;
}

.ui .back {
  top: 1rem;
  left: 1.15rem;
  color: #111110;
  background: rgba(244, 241, 233, 0.82);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  backdrop-filter: blur(2px);
}
.ui .back:hover { background: rgba(244, 241, 233, 0.96); }

.ui .controls {
  bottom: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.controls button {
  appearance: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
button#play { background: var(--accent); color: #111110; }
button#new { background: rgba(17, 17, 16, 0.82); color: #F4F1E9; }
.controls button:hover { filter: brightness(1.08); }
.controls button:disabled { opacity: 0.5; cursor: default; }
