/* Stili Modalità Avventura SCUMM */
#adventure-view {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  color: #fff;
  font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

#game-stage {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  overflow: hidden;
  cursor: crosshair;
}

#game-container {
  position: relative;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 2752 / 1536;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#subtitles {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
  z-index: 100;
  pointer-events: none;
  width: 80%;
  min-height: 40px;
  transition: opacity 0.3s;
}

/* Rimosse classi personaggio e fg-layer per modalità prima persona */

/* Hotspots */
#hotspots-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  /* border: 1px solid rgba(255,0,0,0.5); /* Scommentare per debug */
}

/* Context Menu */
#context-menu {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid #ffb800;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  box-shadow: 0 4px 8px rgba(0,0,0,0.8);
  transform: translate(-50%, -50%); /* Centra il menu rispetto al mouse */
}

#context-menu.hidden {
  display: none;
}

.context-btn {
  background: transparent;
  border: 1px solid #555;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
  text-align: center;
  transition: all 0.2s;
}

.context-btn:hover {
  background-color: #ffb800;
  color: #000;
  border-color: #ffb800;
}

/* Debug Hotspots */
.debug-hotspots .hotspot {
  border: 2px dashed rgba(255, 0, 0, 0.8);
  background-color: rgba(255, 0, 0, 0.2);
}

.adventure-btn {
  background-color: #ffb800;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 15px;
  font-family: inherit;
}

.adventure-btn:hover {
  background-color: #ffd040;
}

/* Interfaccia Dialoghi a Scelta Multipla */
#dialog-ui {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-top: 4px solid #ffb800;
  padding: 15px 10%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 300;
}

#dialog-ui.hidden {
  display: none;
}

#dialog-text {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 10px;
}

#dialog-choices {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#dialog-choices li {
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.2s;
}

#dialog-choices li:hover {
  color: #ffb800;
}
