body {
  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
  user-select: none;         /* Estándar */
}

#dashboard-lore {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

.game-choice {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.game-choice:hover {
    transform: scale(1.05);
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
}

.game-logo {
    width: 70%;
    margin: 1rem;
}

.souls-red {
color: #b22222;
}

.souls-panel {
background-color: #1a1a1a;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.player-box {
background-color: #1f1f1f;
border: 1px solid #333;
border-radius: 8px;
padding: 1rem;
margin-bottom: 1rem;
}

.status {
font-size: 0.9em;
color: #888;
}

.navbar {
    background-color: #181818 !important;
}

.navbar-brand span {
color: #e3c9b1;
letter-spacing: 1px;
}

.navbar strong {
color: #ff4f4f;
}

.panel {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    color: #ccc;
    min-height: 140px;
  }
  
  .panel h6 {
    font-size: 0.9rem;
    font-weight: bold;
    color: #e3b1a3;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
  }
  
  .panel p {
    font-size: 0.85rem;
    margin: 0;
  }
  
  ul li {
    margin-bottom: 0.25rem;
  }

  .health-control {
    width: 100%;
  }
  
  .health-pill {
    background: #1e1e1e;
    border: 0px solid #550000;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
  }
  
  .health-pill:hover {
    background: #292929;
  }
  
  .health-pill button:focus {
    outline: none;
    box-shadow: none;
  }

  .health-block {
    width: 18px;
    height: 24px;
    background-color: #2c2c2c;
    border: 0px solid #550000;
    border-radius: 2px;
    transition: 0.2s;
  }
  
  .health-block.filled {
    background-color: #AA2C22;
  }

  .you-died-overlay {
    position: fixed;
    flex-direction: column;
    gap: 2rem;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 1s ease-in;
  }
  
  .you-died-text {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: #8b0000;
    text-shadow: 0 0 20px #ff0000;
    animation: fadePop 1.5s ease-in-out forwards;
  }
  
  @keyframes fadePop {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }
    40% {
      transform: scale(1.2);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  @keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
  }

  .pulse-life {
    animation: pulseScale 0.4s ease-in-out;
  }
  
  @keyframes pulseScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }


  .damage-flash {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(150, 0, 0, 0.25);
    z-index: 8888;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 99999 !important;
  }
  
  .damage-flash.active {
    opacity: 1;
  }

  .rotate-warning {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #111;
    color: #ffcc00;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
  }
  
  .rotate-warning .inner {
    background: #222;
    padding: 2rem;
    border: 2px dashed #ffcc00;
    border-radius: 8px;
  }


  @media (max-width: 1068px) {
    body {
      font-size: 11px!important;
    }
  
    h1 { font-size: 0.4rem!important; }
    h2 { font-size: 0.5rem!important; }
    h3 { font-size: 0.5rem!important; }
    h4, h5, h6 { font-size: 0.7rem!important; }
  
    .you-died-text {
      font-size: 2rem!important;
    }
  
    /* Contenido dentro de la ficha del personaje */
    .character-slot,
    .character-slot .slot-title,
    .character-slot .slot-content,
    .character-info,
    .character-name,
    .character-description,
    .character-origin,
    .character-attribute,
    .character-passive,
    .character-passive-title,
    .character-attribute-title {
      font-size: 0.45rem !important;
    }
  
    /* Títulos/secciones dentro de la ficha */
    .character-section-title,
    .character-attribute-label,
    .character-section-heading {
      font-size: 0.6rem !important;
    }
  
    /* Paddings más reducidos */
    .character-slot {
      padding: 0.3rem!important;
    }
  
    /* Espacio entre columnas de jugadores y ficha */
    #players-list .card {
      font-size: 0.8rem;
      padding: 0.5rem;
    }
  
    .health-pill button {
      font-size: 1rem;
      padding: 0.25rem 0.6rem;
    }
  
    .health-block {
      width: 12px;
      height: 16px;
    }
  
    .rotate-warning .inner {
      font-size: 0.95rem;
      padding: 1.5rem;
    }

    .renderedSlot div img {
      max-width:70px!important;
    }

    .characterSkill p {
      font-size:11px!important;
    }
  }


  .weapon-btn {
    border: 2px solid #333;
    padding: 8px;
    width: 120px;
    text-align: center;
    transition: all 0.2s ease-in-out;
  }
  
  .weapon-btn:hover {
    border-color: #aaa;
    background-color: #1a1a1a;
  }
  
  .weapon-btn.selected {
    background-color: #800000 !important; /* Rojo oscuro estilo Souls */
    border: 2px solid crimson;
    box-shadow: 0 0 10px crimson;
  }

  .slot img {
    border: 2px solid #222;
    background-color: #111;
    padding: 4px;
    transition: all 0.2s ease-in-out;
  }
  
  .slot img:hover {
    border-color: crimson;
    box-shadow: 0 0 6px crimson;
  }


  .stamina-control {
    width: 100%;
  }
  
  .stamina-pill {
    background: #1e1e1e;
    border: 0px solid #0d5500;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
  }
  
  .stamina-pill:hover {
    background: #292929;
  }
  
  .stamina-pill button:focus {
    outline: none;
    box-shadow: none;
  }

  .stamina-block {
    width: 18px;
    height: 24px;
    background-color: #2c2c2c;
    border: 0px solid #0d5500;
    border-radius: 2px;
    transition: 0.2s;
  }
  
  .stamina-block.filled {
    background-color: #508C45;
    
  }

.stamina-bar,
.health-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
}

.stamina-block,
.health-block {
  width: 16px;
  height: 24px;
  background-color: #333;
  border-radius: 2px;
}

.enemy-health-indicator.damage-flash {
  animation: flashDamage 0.4s ease;
}

@keyframes flashDamage {
  0% { background-color: rgba(255, 0, 0, 0.3); }
  100% { background-color: transparent; }
}

#enemy-dead-overlay img {
  max-width: 120px;
}

@keyframes zoomFade {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  30% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

#environment-phase-overlay .scale-up {
  animation: zoomFade 3s ease-out forwards;
}

#player-phase-overlay .scale-up {
  animation: zoomFade 3s ease-out forwards;
}

.minimized-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #444;
  color: white;
  padding: 8px 16px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  z-index: 1060; /* Justo encima del juego */
  display: none;
}

#fog-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url('https://soulsbornegame.com/assets/images/tiles/fog_layer_v2.png') repeat;
  background-size: 1667px 1167px; /* Ajuste mejor para el tamaño que tienes (1667x1167) */
  background-position: center center;
  animation: moveFog 90s linear infinite;
  opacity: 0.22;
  z-index: 5;
}

@keyframes moveFog {
  0% { background-position: 0 0; }
  50% { background-position: 400px 100px; }
  100% { background-position: 0 0; }
}

.revive-block {
  width: 30px;
  height: 30px;
  margin: 4px;
  background-color: #2e3d4a;
  border: 2px solid #6D8FA5;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.revive-block.filled {
  background-color: #6D8FA5;
}

.bg-boss {
  background-color: #290b0b !important;
  border: 1px solid #572323;
  box-shadow: 0 0 15px #491d1d;
}

#boss-drop-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.boss-drop-card {
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 12px;
  width: 160px;
  text-align: center;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

.boss-drop-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}

.boss-drop-card .attack {
  font-size: 12px;
  color: #ccc;
  margin-top: 4px;
}


.text-garamond {
  font-family: 'Garamond', sans-serif;
  font-weight: 500;
  font-size:1.2em!important;                             
}

#zone-title-overlay {
  animation: fadeInOut 6s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

#zone-title-text {
  opacity: 0;
  font-family: 'Garamond', sans-serif;
  font-size:64px;
  margin-top:-30px;
  transition: opacity 2s ease;
}

#zone-title-image {
  opacity: 0;
  transition: opacity 2s ease;
}

#zone-title-overlay.show .zone-title-fade {
  opacity: 1;
}

.zone-title-fade {
  opacity: 0;
  transition: opacity 1.5s ease;
}

#zone-title-overlay {
  opacity: 1;
  transition: opacity 1s ease;
}

#zone-title-overlay.show #zone-title-image {
  width:350px;
  opacity: 0.1;
}

.objective-block img {
    max-height: 50px;
    width: auto;
    margin-right: 12px;
}

.pending-objective {
    background-color: #2a2a2a;
    color: #ccc;
    border: none;
}

.completed-objective {
    background-color: rgb(10, 65, 28)!important;
    color: #fff;
    font-weight: bold;
    border: none;
    animation: objectiveFlash 1s ease-in-out;
}

@keyframes objectiveFlash {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


.nightreign-navbar {
  background-color: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 0px solid #333;
}

.nightreign-navbar .btn {
  font-size: 13px;
  border-radius: 6px;
}

.nightreign-navbar .navbar-brand img {
  opacity: 0.95;
  transition: 0.3s ease;
}

@media (max-width: 768px) {
  .nightreign-navbar .btn {
    padding: 4px 8px;
  }

  .nightreign-navbar .navbar-brand img {
    width: 30px;
    height: 30px;
  }

  .nightreign-navbar .text-light.small {
    font-size: 12px;
  }
}

.souls-panel input[type="radio"]:checked + strong {
  color: #00bfff;
}

/* Estado base */
.scenario-option {
  background-color: #0b111d;
  border: 1px solid #334455;
  opacity: 0.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.scenario-option:hover {
  opacity: 0.75;
}

/* Estado seleccionado */
.scenario-radio:checked + .scenario-option {
  box-shadow: 0 0 10px #00bfff, 0 0 25px #00bfff;
  border-color: #00bfff;
  opacity: 1;
}


@media (min-width: 768px) {
  .auth-wrapper .left-section-wrapper {
    position: sticky!important;
    top: 0!important;
    height: 100vh;
    overflow: hidden;
  }
}

.inventory-notify {
  background: rgba(50, 50, 50, 0.95);
  color: #fff;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  animation: fadeInSlide 0.5s ease forwards;
}

.inventory-notify img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bonus por armas duales: solo estilo visual */
.attack-stamina.dual-bonus {
  color: #22c55e !important; /* verde claro legible */
  font-weight: 700;
}

.badge-dual {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34,197,94,0.35);
  color: #22c55e;
  font-weight: 700;
  font-size: .75rem;
  padding: .15rem .35rem;
  border-radius: .25rem;
  margin-left: .35rem;
}