/* PUMPKIN PIT - full-window game page */
:root {
  --k: #0d0a12; --s: #2b1d33; --w: #f6e8d0; --o: #ff7a1a; --d: #a33d0c; --y: #ffd64a; --p: #8a4fd0;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--k); color: var(--w);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  overscroll-behavior: none;
}
canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
#stage {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--k);
}
#screen {
  position: relative;
  flex: 1 1 0; min-height: 0; width: 100%;
  overflow: hidden;
}
#game {
  position: absolute; left: 0; top: 0;
  display: block;
  outline: none;
  touch-action: none;
}
#bootmsg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--o); letter-spacing: 3px; pointer-events: none;
}

/* touch controls (phones / tablets) */
#touch { display: none; position: relative; width: 100%; height: 168px; flex: 0 0 168px; }
.tpad { position: absolute; bottom: 14px; display: flex; gap: 10px; align-items: flex-end; }
.tpad.left { left: 10px; }
.tpad.right { right: 10px; }
.tbtn {
  width: 76px; height: 76px;
  background: rgba(43,29,51,0.85);
  border: 3px solid var(--o); color: var(--w);
  font-family: inherit; font-weight: 800; font-size: 22px;
  border-radius: 14px; touch-action: none;
  box-shadow: 0 4px 0 var(--d);
}
.tbtn.big { width: 108px; height: 108px; border-radius: 54px; font-size: 14px; background: rgba(255,122,26,0.22); }
.tbtn.small { width: 70px; height: 56px; font-size: 12px; border-color: var(--p); box-shadow: 0 4px 0 #4b2a74; }
.tbtn.tiny { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 44px; height: 30px; font-size: 12px; border-radius: 8px; }
.tbtn.on { background: var(--o); color: var(--k); transform: translateY(2px); box-shadow: 0 2px 0 var(--d); }
.tbtn.tiny.on { transform: translateX(-50%) translateY(2px); }
body.touch #touch { display: block; }
#stage:fullscreen { width: 100vw; height: 100vh; }
