* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: #060609;
  color: #cfd3dc;
  font-family: "Courier New", ui-monospace, monospace;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}
header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid #1b2130;
  flex-wrap: wrap;
}
.brand { font-weight: bold; letter-spacing: 2px; color: #e0577f; font-size: 15px; }
.brand span { color: #fff; }
.brand em { font-style: normal; color: #5c6474; font-size: 11px; margin-left: 6px; letter-spacing: 0; }
.btns { margin-left: auto; display: flex; gap: 6px; }
.btns button, #dots button {
  background: #12161f;
  border: 1px solid #2a3245;
  color: #cfd3dc;
  font-family: inherit;
  font-size: 14px;
  width: 32px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
}
.btns button:hover { background: #1b2230; border-color: #3c4763; }
#dots { display: flex; gap: 4px; flex-wrap: wrap; }
#dots button {
  width: 26px; height: 22px; font-size: 10px;
  color: #8a93a5;
}
#dots button.cur { background: #e0577f; border-color: #e0577f; color: #fff; font-weight: bold; }
#dots button.lock { opacity: 0.3; cursor: default; }
main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; min-height: 0; }
#stage { position: relative; }
canvas {
  image-rendering: pixelated;
  border: 2px solid #1b2130;
  border-radius: 4px;
  background: #08080c;
  display: block;
}
#overlay {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 6, 10, 0.82);
  cursor: pointer;
  border-radius: 4px;
}
#overlay .big {
  color: #ede285;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 4px;
  animation: pop 0.4s ease;
  text-align: center;
}
#overlay .small { margin-top: 14px; color: #cfd3dc; font-size: 14px; text-align: center; }
#overlay .dim { color: #6b7385; margin-top: 4px; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#title { color: #8a93a5; font-size: 14px; letter-spacing: 2px; }
footer { color: #565e6e; font-size: 12px; padding: 10px; text-align: center; letter-spacing: 1px; }
