:root {
  --bg: #07060b;
  --ink: #fff3dc;
  --gold: #ffb43a;
  --dim: #a3957f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
}

#app, #app canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#app canvas { touch-action: none; cursor: grab; }
#app canvas:active { cursor: grabbing; }

#menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 16px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 60%, #3a1d05 0%, #07060b 70%);
  z-index: 10;
  transition: opacity .4s;
}
#menu.gone { opacity: 0; pointer-events: none; }

.kicker { letter-spacing: .35em; text-transform: uppercase; font-size: 12px; color: var(--dim); }

h1 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(96px, 22vw, 240px);
  line-height: .9;
  letter-spacing: .02em;
  background: linear-gradient(#fff6d8 10%, #ffc04a 55%, #b8621c 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(255, 150, 40, .35));
}

.buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

button {
  font: inherit;
  font-family: Anton, Impact, sans-serif;
  font-size: 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: #1b0d00;
  cursor: pointer;
}
button.ghost { background: transparent; color: var(--gold); }
button:disabled { opacity: .45; cursor: default; }
button:not(:disabled):hover { filter: brightness(1.12); }

.note { margin: 0; max-width: 34em; color: var(--dim); font-size: 14px; line-height: 1.5; }
.note.small { font-size: 12px; }
.note.warn { color: #ffb4a0; font-size: 14px; max-width: 30em; }
#lite { display: flex; gap: 8px; align-items: center; cursor: pointer; }
#lite[hidden] { display: none; }
#lite input { accent-color: var(--gold); width: 16px; height: 16px; }

#hint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255, 243, 220, .55);
  pointer-events: none;
  display: none;
  white-space: nowrap;
}
body.playing #hint { display: block; }

#debug {
  position: fixed;
  top: 8px;
  left: 8px;
  font: 12px/1.4 ui-monospace, Consolas, monospace;
  color: #9f9;
  background: rgba(0, 0, 0, .55);
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  display: none;
  white-space: pre;
}
body.debug #debug { display: block; }
