/* Bare game board: 1-bit screen scaled up on a dark backdrop */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: #4a4a4a;
  overflow: hidden;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

#screenwrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#screen {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #b1afa8;
}

/* Touch controls (shown only on touch devices) */
#touchpad {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events: none;
}
#touchpad[hidden] { display: none; }

.tp-group { display: flex; gap: 12px; }

.tp {
  pointer-events: auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1px solid #444;
  background: rgba(40,40,44,0.85);
  color: #ddd;
  font-size: 24px;
  font-family: inherit;
}
.tp.wide {
  width: 96px; height: 62px;
  border-radius: 31px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffc500;
}
.tp:active { background: #ffc500; color: #1c1c1e; }
