* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.game-container {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  text-align: center;
  margin-bottom: 10px;
}

.game-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-weight: bold;
}

.scene {
  position: relative;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
}

#scene-img {
  width: 100%;
  border-radius: 15px;
  display: block;
}

#scene-canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#item-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  padding: 0;
  justify-content: center;
}

#item-list li {
  background: #eaf6ff;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid #bcdcf5;
  transition: 0.3s;
}

#item-list li.found {
  background: #b5ffba;
  text-decoration: line-through;
}

footer {
  display: flex;
  gap: 10px;
}

button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #0056b3;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none;
}

.overlay-content {
  background: white;
  padding: 30px 50px;
  border-radius: 15px;
  text-align: center;
}
