/* Resize Wrecker — full-screen brick wall with physics */

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

html, body {
  height: 100%;
  overflow: hidden;
  /* Dark charcoal background behind the wall/canvas */
  background: #181818;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Canvas container fills viewport; canvas is sized by JS to match */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#physics-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Optional: subtle screen shake when many bricks detach (applied by JS to #canvas-container) */
.canvas-shake {
  animation: shake 0.4s ease-out;
}

@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-4px, 2px); }
  30% { transform: translate(4px, -2px); }
  45% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 2px); }
  75% { transform: translate(-2px, 3px); }
}

@media (prefers-reduced-motion: reduce) {
  .canvas-shake {
    animation: none;
  }
}
