/* ============================================================
   POKEMON JAUNE REMASTER
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #0d0d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
}

#gameWrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gameCanvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 3px solid #2a2a4a;
  box-shadow:
    0 0 0 1px #3a3a6a,
    0 0 60px rgba(100,100,255,.15),
    0 20px 80px rgba(0,0,0,.8);
}

/* ============================================================
   MOBILE CONTROLS
   ============================================================ */
#mobileControls {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 12px 24px;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

@media (max-width: 800px), (pointer: coarse) {
  #mobileControls { display: flex; }
}

#dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: all;
}

.dRow {
  display: flex;
  align-items: center;
}

.dpCenter {
  width: 32px; height: 32px;
  background: #1a1a1a;
  border: 1px solid #333;
}

.dpBtn {
  width: 32px; height: 32px;
  background: rgba(30,30,50,.9);
  border: 1px solid rgba(100,100,200,.4);
  color: rgba(200,200,255,.7);
  font-size: .7rem;
  cursor: pointer;
  outline: none;
  display: flex; align-items: center; justify-content: center;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.dpBtn:active { background: rgba(60,60,120,.9); color: #fff; }

#abButtons {
  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: all;
  transform: rotate(-15deg);
}

.abBtn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  font-family: 'Press Start 2P', monospace;
  font-size: .6rem;
  cursor: pointer;
  outline: none;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btnA {
  background: radial-gradient(circle at 40% 35%, #e03030, #801010);
  color: #ffcccc;
  box-shadow: 0 4px 0 #400000;
}
.btnB {
  background: radial-gradient(circle at 40% 35%, #303030, #101010);
  color: #888;
  box-shadow: 0 4px 0 #000;
}
.abBtn:active { transform: translateY(3px); box-shadow: none; }
