/* ============================================================================
   casino.css — layout and color only.
   No icons, no gradients, no CSS-drawn art: every visible pixel is canvas art
   produced by px.js + casino.js + the machine pages. This file only positions
   canvases and keeps the room dark.
   ============================================================================ */

:root {
  --bg: #0b0c10;
  --bg-deep: #060709;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* the deck: one canvas, integer-scaled, cursor replaced by a drawn sigil */
#scene {
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  flex: none;
}

/* ---------------- the machine viewer ---------------- */
#player {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transition: opacity 160ms steps(3);
  z-index: 10;
}
#player[hidden] { display: none !important; }
#player.fading { opacity: 0; }

#pbar {
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  flex: none;
}

#stage {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  background: var(--bg);
}

#stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
  color-scheme: dark;
}
