html, body {
  margin: 0;
  height: 100%;
  background: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #8a86a0;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
#stage { height: 100%; display: flex; flex-direction: column; }
#view { flex: 1; min-height: 0; position: relative; touch-action: none; }
#view canvas { display: block; width: 100%; height: 100%; outline: none; }
#bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 10px 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
#count { font-variant-numeric: tabular-nums; color: #6f6890; font-weight: 600; }
.sep { width: 1px; height: 12px; background: #e3e0ec; }
kbd {
  font: inherit;
  font-size: 11px;
  border: 1px solid #ddd8ea;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 5px;
  color: #6f6890;
}
button, #flat {
  font: inherit;
  font-size: 12px;
  color: #6f6890;
  background: none;
  border: 1px solid #ddd8ea;
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
  text-decoration: none;
}
button:hover, #flat:hover { background: #f6f3fb; }
#msg {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
  max-width: 520px; padding: 16px 20px; border: 1px solid #e3e0ec; border-radius: 12px;
  background: #fff; color: #6f6890; font-size: 14px; line-height: 1.5;
}
