/* Dinky Doo Max — estilos bases. Toda la pantalla es la zona de juego. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: #0a0710; overflow: hidden;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  touch-action: none; user-select: none;
}
#app {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, #24162e 0%, #0a0710 70%);
}
#game {
  display: block; max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%; object-fit: contain;
  image-rendering: auto; touch-action: none;
}
/* Controles táctiles: se muestran sólo en pantallas táctiles. */
#touch { display: none; position: absolute; inset: 0; pointer-events: none; }
body.touch #touch { display: block; }
.pad { position: absolute; left: 3vw; bottom: 4vh; width: 156px; height: 156px; }
.actions { position: absolute; right: 3vw; bottom: 4vh; display: flex; gap: 10px; }
.tbtn {
  pointer-events: auto; position: absolute; width: 52px; height: 52px;
  border: 2px solid rgba(255,214,120,.75); border-radius: 14px;
  background: rgba(40,20,52,.55); color: #ffd67a; font-size: 20px; font-weight: bold;
  box-shadow: 0 0 12px rgba(255,170,60,.25), inset 0 0 10px rgba(255,255,255,.08);
  backdrop-filter: blur(3px);
}
.tbtn:active { background: rgba(255,170,60,.55); color: #fff; transform: scale(.94); }
.tbtn.up    { left: 52px; top: 0; }
.tbtn.left  { left: 0; top: 52px; }
.tbtn.down  { left: 52px; top: 104px; }
.tbtn.right { left: 104px; top: 52px; }
.actions .tbtn { position: relative; width: 62px; height: 44px; font-size: 12px; }
@media (max-width: 700px), (pointer: coarse) {
  .pad { transform: scale(.85); transform-origin: bottom left; }
}
