* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #0a0a14;
  color: #fff;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#hud {
  display: flex;
  gap: 24px;
  align-items: center;
  height: 70px;
  font-size: 20px;
}
#hud b { color: #ffd93b; font-variant-numeric: tabular-nums; }
#hint { color: #9fe8ff; min-width: 220px; }
.keyicon { font-size: 15px; font-weight: bold; color: #111; background: var(--c); padding: 3px 9px; border-radius: 10px; opacity: 0.3; margin-right: 4px; }
.keyicon.has { opacity: 1; filter: drop-shadow(0 0 6px var(--c)); }
canvas { border-radius: 8px; box-shadow: 0 0 30px #4a4aff55; }
.screen {
  position: fixed;
  inset: 0;
  background: #0a0a14ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 20px;
}
.screen h1 { font-size: clamp(30px, 6vw, 56px); color: #ffd93b; margin: 0 0 12px; }
.screen p { font-size: 20px; margin: 4px; }
.screen .small { font-size: 16px; opacity: 0.8; }
.hidden { display: none; }
button {
  font-size: 26px;
  padding: 12px 40px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: #ffd93b;
  color: #222;
  cursor: pointer;
}
button:hover { background: #fff07a; }
