:root {
  --bg: #0c0d10;
  --panel: #16181d;
  --ink: #e7e9ee;
  --muted: #8b909c;
  --line: #23262d;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: radial-gradient(120% 80% at 50% -10%, #1a1d24 0%, var(--bg) 60%);
  color: var(--ink);
  font-family: var(--mono), sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
}

header {
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

h1 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

.hint {
  font-size: 12px;
  color: var(--muted);
}

.hint a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.hint a:hover {
  color: var(--ink);
}

.stage {
  width: 100%;
  max-width: 1280px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  line-height: 0;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: grab;
  touch-action: none;
}

canvas:active {
  cursor: grabbing;
}

#status {
  width: 100%;
  max-width: 1280px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* lil-gui overrides */
.lil-gui {
  --width: 240px;
}
