/* Don't Touch My Soda - pixel-perfect responsive layout */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  /* Arcade cabinet backdrop: deep purple radial like the cover sky, with a
     subtle vignette so the canvas pops out as the focal point. */
  background:
    radial-gradient(ellipse at 50% 35%, #2a1a55 0%, #120a28 55%, #050410 100%);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  font-family: monospace;
  color: #fff;
}

#app {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Arcade marquee above the canvas - hidden on touch devices where the canvas
   fills the screen. */
#stage::before {
  content: "DON'T TOUCH MY SODA";
  font-family: monospace;
  font-weight: 900;
  letter-spacing: 4px;
  font-size: 14px;
  color: #ffd400;
  text-shadow:
    2px 2px 0 #000,
    0 0 8px rgba(255, 212, 0, 0.5);
  padding: 4px 18px;
  background: linear-gradient(180deg, #5a2a8c, #2a134e);
  border: 2px solid #ffd400;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #1a0a2a, 0 4px 18px rgba(0, 0, 0, 0.6);
}

@media (pointer: coarse) {
  #stage::before {
    display: none;
  }
  #stage {
    width: 100%;
    height: 100%;
  }
}

#game {
  display: block;
  background: #000;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  touch-action: none;
  /* Cabinet-style frame: gold trim, dark wood-tone shadow, dramatic glow. */
  border: 4px solid #ffd400;
  outline: 2px solid #1a0a2a;
  box-shadow:
    0 0 0 6px #2a134e,
    0 8px 30px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(120, 80, 200, 0.25);
  border-radius: 2px;
}

@media (pointer: coarse) {
  #game {
    border: 2px solid #ffd400;
    outline: 1px solid #1a0a2a;
    box-shadow: 0 0 0 3px #1a1a2a, 0 0 24px rgba(0, 0, 0, 0.6);
  }
}

#loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 4px;
  color: #ffcc00;
  text-shadow: 2px 2px 0 #000;
  pointer-events: none;
  background: #0a0a14;
  z-index: 10;
}

#loading.hidden {
  display: none;
}

/* Optional: a thin keyboard hint shown on desktop only, fades after a few seconds */
.kb-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
  pointer-events: none;
  text-shadow: 1px 1px 0 #000;
  transition: opacity 1.2s ease;
  z-index: 5;
}

.kb-hint.faded {
  opacity: 0;
}

@media (pointer: coarse) {
  .kb-hint {
    display: none;
  }
}
