/* Pokemon Game Boy Personal Website */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #1a1a2e;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  font-family: monospace;
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#game {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: 640px;
  height: 576px;
  border: 4px solid #0F380F;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(155, 188, 15, 0.15);
}

#hint {
  color: #9BBC0F;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.5;
}

#credit {
  color: #9BBC0F;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.4;
  margin-top: -4px;
}

/* Mobile touch controls */
#controls {
  display: flex;
  justify-content: space-between;
  width: 320px;
  padding: 10px 0;
}

#controls.hidden {
  display: none;
}

#dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dpad-row {
  display: flex;
  gap: 2px;
}

.dpad-btn {
  width: 48px;
  height: 48px;
  background: #0F380F;
  color: #9BBC0F;
  border: 2px solid #306230;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.dpad-btn:active {
  background: #306230;
}

#action-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-btn {
  width: 56px;
  height: 56px;
  background: #0F380F;
  color: #9BBC0F;
  border: 2px solid #306230;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.action-btn:active {
  background: #306230;
}

/* Responsive canvas scaling */
@media (max-width: 680px) {
  #game {
    width: calc(100vw - 16px);
    height: calc((100vw - 16px) * 0.9);
  }
  #controls {
    display: flex !important;
    width: calc(100vw - 32px);
  }
  #controls.hidden {
    display: flex !important;
  }
  #hint {
    display: none;
  }
}
