@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #111;
  color: #eee;
  overflow: hidden;
}

#centeredBodyWrapper {
  position: absolute;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 800px;
  width: 512px;
  min-height: 500px;
  height: 512px;
  background-color: #d0d0d0;
  background-image: linear-gradient(to right, black 1px, transparent 1px),
                    linear-gradient(to bottom, black 1px, transparent 1px);
  background-size: 32px 32px;
}

#statsWrapper {
  position: absolute;
  top: 6px;
  left: 10px;
  z-index: 10000;
  padding: 8px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  font-weight: 600;
  color: #000;
}

.posAbs { position: absolute; }

#characterSprite {
  position: absolute;
  width: 32px;
  height: 32px;
  z-index: 1000;

}

.map-tile { position: absolute; width: 32px; height: 32px; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}
.toast.show { opacity: 1; }
/* Layer ordering – background < grass < bushes < player */
#layerBackground { position: absolute; top: 0; left: 0; z-index: 1; }
#layerBushes    { position: absolute; top: 0; left: 0; z-index: 2; }
#layerSprites   { position: absolute; top: 0; left: 0; z-index: 3; }

/* Bush/overlay sprites */
.bush-tile { position: absolute; width: 32px; height: 32px; }

