/* Portrait Solitaire — 414×896 logical, scale to fit */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1a1a;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

#wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Scale to fit: portrait 414:896 */
  --logical-width: 414;
  --logical-height: 896;
}

#game {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -webkit-image-rendering: pixelated;
  -webkit-image-rendering: crisp-edges;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  pointer-events: auto;
}

#three-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  pointer-events: none;
}

#three-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
