* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background: #231c2b;
  color: #f6f0e6;
  font-family: system-ui, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: max(6px, env(safe-area-inset-top)) 6px max(8px, env(safe-area-inset-bottom));
}
header { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; color: #c8bfd0; }
header b { display: block; font-size: 18px; color: #f6f0e6; }
header button { width: 44px; height: 44px; font-size: 18px; }
main { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
canvas { display: block; border-radius: 6px; }
button { font: inherit; color: inherit; border: 0; border-radius: 10px; background: #4a3d59; cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }

#menu { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 10, 20, 0.7); }
.panel { width: min(320px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 10px; text-align: center; padding: 18px 16px; border-radius: 16px; background: #2f2639; }
h1 { font-size: 28px; }
#note:empty { display: none; }
#go { min-height: 54px; font-size: 20px; font-weight: 700; background: #d9633f; }
