body {
  margin: 0;
  background: #0b0f1a;
}

#game-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 40px auto 0;
  flex-direction: column;
  align-items: center;
  color: #d7e4ff;
  background: #0b0f1a;
  min-height: 100svh;
  padding-bottom: 24px;
}

#game-stage {
  position: relative;
  width: 400px;
  height: 600px;
  max-width: 92vw;
  max-height: 70vh;
  aspect-ratio: 2 / 3;
}

@media (max-width: 600px) {
  #game-wrapper {
    margin: 0;
    padding-bottom: 0;
    min-height: 100svh;
  }
  #game-stage {
    width: 100vw;
    height: 100svh;
    max-width: 100vw;
    max-height: 100svh;
    aspect-ratio: auto;
  }
  .game-hud {
    font-size: 12px;
  }
  #levelToast {
    top: 46px;
  }
  #gameCanvas {
    border-radius: 0;
  }
  #deathScreen,
  #startScreen {
    border-radius: 0;
  }
}

.game-hud {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  font-family: monospace;
  color: #d7e4ff;
  font-size: 14px;
  align-items: center;
}

#levelToast {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #e6f2ff;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#levelToast.show {
  opacity: 1;
}

#gameCanvas {
  background: #0b0f1c;
  border-radius: 8px;
  display: block;
  width: 100%;
  height: 100%;
  box-shadow: 0 16px 40px rgba(2, 10, 26, 0.45);
}

#deathScreen {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.88);
  color: #ffffff;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: monospace;
  z-index: 10;
}

#startScreen {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.88);
  color: #ffffff;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: monospace;
  z-index: 10;
}

#deathScreen button {
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  background: #1e2a3f;
  border: 1px solid rgba(140, 180, 255, 0.35);
  color: #e8f2ff;
  border-radius: 6px;
}

#limitMessage {
  margin: 6px 0 10px;
  font-size: 14px;
  text-align: center;
}

#storeList {
  margin-top: 10px;
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.store-item button {
  padding: 6px 10px;
  font-size: 14px;
}

#startScreen button {
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  background: #1e2a3f;
  border: 1px solid rgba(140, 180, 255, 0.35);
  color: #e8f2ff;
  border-radius: 6px;
}

#startScreen .wallet-hint {
  margin: 6px 0 10px;
  font-size: 13px;
  opacity: 0.8;
  text-align: center;
}

#startScreen .tagline {
  margin: 6px 0;
  font-size: 14px;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

#muteBtn {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(15, 22, 36, 0.8);
  border: 1px solid rgba(115, 140, 185, 0.4);
  color: #d7e4ff;
  border-radius: 999px;
  cursor: pointer;
}
