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

html {
  width: 100%;
  height: 100%;
  height: -webkit-fill-available;
}

body {
  width: 100%;
  height: 100%;
  height: -webkit-fill-available;
  overflow: hidden;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bangers', 'Impact', sans-serif;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#game-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,87,34,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(255,215,0,0.1) 0%, transparent 60%),
    #0d1117;
}

#game {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  /* Prevent double-tap zoom while allowing single taps */
  touch-action: manipulation;
  cursor: pointer;
  border-radius: 4px;
  box-shadow:
    0 0 0 3px #FFD700,
    0 0 40px rgba(255,215,0,0.3),
    0 20px 60px rgba(0,0,0,0.8);
}

/* Portrait: fill screen edge-to-edge, drop the gold border chrome */
@media (orientation: portrait) {
  #game {
    border-radius: 0;
    box-shadow: none;
  }
}

/* Landscape hint — only shown on very short landscape (phone rotated),
   suggesting the user can play in portrait too */
#rotate-hint {
  display: none;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Bangers', 'Impact', sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

/* No scrollbar on any device */
::-webkit-scrollbar { display: none; }
