* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #050506;
  touch-action: none;
  user-select: none;
}
body[data-theme="paper"] { background: #f2f2f2; }

#portrait { position: fixed; inset: 0; display: block; cursor: crosshair; }

#welcome {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  font: 15px/1.6 ui-monospace, Menlo, monospace;
  color: #e9e9e9;
}
#welcome[hidden], #toast[hidden] { display: none; }
#welcome h1 { font-size: 28px; letter-spacing: 0.08em; }
#welcome .small { color: #888; font-size: 13px; }
.button {
  margin-top: 8px;
  padding: 10px 22px;
  border: 1px solid #e9e9e9;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: #e9e9e9; color: #000; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(640px, 92vw);
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.88);
  color: #eee;
  font: 13px/1.5 ui-monospace, Menlo, monospace;
}
#toast pre { margin-top: 8px; padding: 8px; background: #000; border-radius: 6px; white-space: pre-wrap; user-select: text; }
