@import url('https://googleapis.com');

/* Configuração Geral e Cursor */
* {
  cursor: url('/cursor.png') 16 0, auto;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
  color: #c4b4a3;
  font-family: 'Jacquard 12', system-ui, serif;
}

/* Cenário do Quarto Sacrificial */
#vn-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url('/sacrificial%20room/sacrificialroomBG.png') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  z-index: 0; /* CORRIGIDO: Inicia a base tridimensional controlada */
}

/* Camada de Penumbra Inicial Separada (Garante que não afeta a caixa de diálogo) */
#shadow-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.92); 
  z-index: 1; /* CORRIGIDO: Recuado para trás dos elementos da interface */
  transition: opacity 2.5s ease-in-out;
  pointer-events: none;
}

/* Brilho da Bandeja de Prata */
#silver-flash {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 65%);
  opacity: 0;
  z-index: 5; /* Fica logo acima do cenário e da sombra */
  pointer-events: none;
  transition: opacity 0.4s ease-out;
}

/* Container do Bloco de Diálogo */
#vn-container-wrapper {
  width: 85%;
  max-width: 850px;
  margin-bottom: 50px;
  z-index: 10; /* CORRIGIDO: Pula para a frente absoluta da sombra, recebendo os cliques nativos */
  display: flex;
  flex-direction: column;
}

/* Barra de Sistemas com fundo protetor */
#vn-system-bar {
  display: flex;
  gap: 25px;
  margin-bottom: 8px;
  justify-content: flex-end;
  padding-right: 15px;
}
.sys-btn {
  background: rgba(10, 10, 10, 0.75); 
  border: 1px solid #33221a;
  padding: 4px 12px;
  border-radius: 2px;
  color: #a38f7d;
  font-family: 'Jacquard 12', serif; 
  font-size: 1.3rem;
  letter-spacing: 1px; 
  transition: all 0.2s;
  cursor: pointer;
}
.sys-btn:hover, .sys-btn.active {
  color: #d94141; 
  background: #140b0b;
  border-color: #5a1a1a;
  text-shadow: 0 0 5px rgba(217,65,65,0.6);
}

/* Caixa de Diálogo Minimalista (Fina Borda Branca) */
#vn-box {
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(10, 10, 10, 0.95); 
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  padding: 25px 35px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.95);
  position: relative;
}

#vn-text {
  min-height: 75px;
  font-size: 1.6rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #e6ded5;
}

/* Modais Universais (Log e Save) */
.vn-system-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 20000;
  display: none;
  justify-content: center;
  align-items: center;
}
.vn-modal-box {
  width: 80%;
  max-width: 750px;
  height: 65vh;
  box-sizing: border-box;
  background: rgba(12, 12, 12, 0.98);
  border: 1px solid #4a1313;
  padding: 25px;
  box-shadow: 0 0 25px #000;
  display: flex;
  flex-direction: column;
}
.vn-modal-title {
  color: #6e5541; font-style: italic; text-align: center; margin-bottom: 20px; font-size: 1.3rem;
}

#vn-history-box {
  overflow-y: auto; flex-grow: 1; display: flex; flex-direction: column; gap: 12px;
}
#vn-history-box p {
  margin: 0; font-size: 1.4rem; border-bottom: 1px solid #1c1111; padding-bottom: 6px;
}

#vn-slots-container {
  display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex-grow: 1; padding-right: 5px;
}
.save-slot {
  display: flex; justify-content: space-between; align-items: center; background: #141414; border: 1px solid #3d2d23; padding: 12px 20px; transition: all 0.2s;
}
.save-slot:hover { border-color: #8a2a2a; background: #1c1212; }
.slot-info { font-size: 1.4rem; color: #a39587; }
.slot-info.empty { color: #544337; font-style: italic; }
.slot-action-btn { background: #241515; border: 1px solid #5a1a1a; color: #94795d; font-family: 'Jacquard 12', serif; font-size: 1.2rem; padding: 4px 15px; cursor: pointer; }
.slot-action-btn:hover { color: #e65353; border-color: #a83232; background: #331515; }

#vn-choices { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.choice-btn { background: #121212; border: 1px solid #4a3c31; color: #94795d; font-family: 'Jacquard 12', serif; font-size: 1.5rem; padding: 10px 20px; text-align: left; transition: all 0.3s; }
.choice-btn:hover { background: #221111; border-color: #8a2a2a; color: #e65353; }

/* Posicionamento e transição de Fade do Retrato Central Corrigido */
#vn-lamb-portrait {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 65vh; 
  width: auto;
  z-index: 2; /* CORRIGIDO: Acima da sombra escura, mas abaixo da caixa de diálogo */
  opacity: 0;
  display: block;
  pointer-events: none; 
  transition: opacity 1.2s ease-in-out; 
}

/* Classe ativada via JS para fazer o Fade In */
#vn-lamb-portrait.fade-in {
  opacity: 1 !important;
}
