/* Warm cream base, matches the game's flat background. */
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #fdf0dc;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
  user-select: none;
}

/* Live tuning panel (debug/sandbox). */
.tuning {
  position: fixed;
  top: 0;
  right: 0;
  width: 236px;
  max-height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 8px 10px 10px;
  background: rgba(253, 240, 220, 0.92);
  border-left: 2px solid #3a3a48;
  font: 12px/1.3 system-ui, sans-serif;
  color: #2c2c38;
}
.tuning h3 { margin: 0 0 6px; font-size: 13px; }
.tp-row { display: flex; gap: 4px; margin: 6px 0; }
.tp-btn {
  flex: 1;
  padding: 4px 2px;
  font: inherit;
  background: #f3d9a8;
  border: 2px solid #3a3a48;
  border-radius: 6px;
  cursor: pointer;
}
.tp-btn:hover { background: #ffe6b8; }
.tp-slider { display: block; margin: 5px 0; }
.tp-top { display: flex; justify-content: space-between; }
.tp-slider input { width: 100%; margin: 2px 0 0; }
.tp-check { display: block; margin: 4px 0; }
.tp-help { margin: 8px 0 0; font-size: 11px; opacity: 0.75; }

/* Stress-test results page (?stress=1). */
.stress { position: fixed; inset: 0; overflow: auto; padding: 16px 20px; background: #fdf0dc; font: 13px/1.4 system-ui, sans-serif; color: #2c2c38; }
.stress h2 { margin: 0 0 4px; }
.stress table { border-collapse: collapse; width: 100%; max-width: 1100px; }
.stress td { padding: 6px 8px; border-bottom: 1px solid #e3d3b4; vertical-align: top; }
.stress .st { font-weight: 700; width: 44px; }
.stress .ok .st { color: #2f8a3a; }
.stress .bad .st { color: #c0392b; }
.stress .nm { width: 130px; font-family: ui-monospace, Consolas, monospace; }
.stress .desc { opacity: 0.7; }
.tp-select { width: 100%; margin: 2px 0 6px; padding: 4px; font: inherit; border: 2px solid #3a3a48; border-radius: 6px; background: #fff6e4; }
