body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  overflow: hidden;
}

#game {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#scene-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: url('./assets/medieval_village.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#game-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#character {
  position: absolute;
  left: 20px;
  top: 20px;
}

#character svg {
  width: 100px;
  height: 100px;
  border: 2px solid #666;
  border-radius: 5px;
}

#dialogue {
  margin: 20px auto;
  text-align: center;
  position: relative;
}

#dialogue svg {
  width: 400px;
  height: 150px;
}

.dialogue-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  color: #000;
  font-size: 16px;
}

#choices {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 600px;
  z-index: 2;
}

#choices button {
  background: #B0B0B0; /* 灰色背景 */
  width: 180px;
  height: 50px;
  border: 2px solid #666;
  cursor: pointer;
  font-size: 14px;
  color: #000;
  text-align: center;
  line-height: 50px;
  border-radius: 10px;
  pointer-events: auto;
}

#decorations {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 1;
}

.decoration {
  width: 50px;
  height: auto;
}

#end-button {
  background: #808080; /* 较深的灰色 */
  border: 2px solid #666;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

/* 最终得分样式，与对话框类似 */
.final-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 150px;
  z-index: 3;
}

.final-score svg {
  width: 400px;
  height: 150px;
}