body, 
html {
  margin: 0;
  width: 100%;
  height: 100%;
}

.mesa {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('img/mesa.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 0;
}

.livro-perso {
  background-image: url('img/livro 2.1-1.png(1).png');
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 95vh;
  display: flex;
  align-items: center;
  gap: 0%;
  box-sizing: border-box;
  margin-top: 0%;
  
}

.tela {
  position: relative;
  z-index: 2;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: transparent;
  position: absolute;
}

.interface {
  height: 483px;
  width: 153px;
  margin-top: 56px;
  display: row;
  z-index: 20;
  background-color: transparent;
  margin-left: 3.3%;
  }

.quadro1 {
  height: 50%;
  width: 50%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #000000;
  color: rgb(255, 255, 255);
  padding-top: 20px;
}

.quadro2 {
  height: 50%;
  width: 50%;
  position: fixed;
  top: 0;
  left: 50%;
  background-color: #ff0000;
  color: white;
  padding-top: 20px;
}

.quadro3 {
  height: 50%;
  width: 50%;
  position: fixed;
  top: 50%;
  left: 50%;
  background-color: #00fe6e;
  color: white;
  padding-top: 20px;
}

.quadro4 {
  height: 50%;
  width: 50%;
  position: fixed;
  top: 50%;
  left: 0%;
  background-color: #1100ff;
  color: white;
  padding-top: 20px;
}

.home {
  height: 98px;
  width: 150px;
  margin-top: 0%;
}

.historia {
  height: 100px;
  width: 150px;
  margin-top: -20px;
}

.persona {
  height: 100px;
  width: 150px;
  margin-top: -25px;
}

.mobs {
  height: 100px;
  width: 150px;
  margin-top: -25px;
}

.ir {
    height: 75px;
    width: 150px;
    margin-top: -25px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.volta {
    height: 75px;
    width: 150px;
    margin-top: -30px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.ir:disabled,
.volta:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.icone {
  height: 75%;
  width: 75%;
  background-color: transparent;
  margin-top: 0%;
}

.mob {
  height: 70%;
  width: 70%;
  align-content: center;
}

.livro {
  background-image: url('img/livro 2.1-1.png(1).png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.pagina-esquerda {
  width: 30%;
  height: 67vh;
  padding: 0;
  box-sizing: border-box;
  margin-top: 2.3%;
  margin-left: 16.3%;
  align-items: top;
  justify-content: center;
  border: 5px solid #d7b594;
  display: row;
  position: absolute;
}

.pagina-direita {
  width: 30%;
  height: 67vh;
  box-sizing: border-box;
  margin-top: 2.3%;
  border: 5px solid #d7b594;
  margin-left: 75px;
  position: absolute;
  right: 18.3%;
  display: row;
}

.pagina .conteudo {
  width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: justify;
  line-height: 1.5;
  color: #111;
  font-size: 1rem;
  margin-top: -6%;
  margin-left: -110px;
}

.pagina .atributo1 {
  width: 100%;
  height: 75vh;
}

.pagina .atributo2 {
  width: 100%;
  height: 75vh;
}

.pagina-esquerda-perso {
  width: 30%;
  height: 67vh;
  padding: 0;
  box-sizing: border-box;
  margin-top: 2.3%;
  margin-left: 16.3%;
  align-items: top;
  justify-content: center;
  border: 5px solid #d7b594;
  display: row;
  position: absolute;
}

.pagina-direita-perso {
  width: 30%;
  height: 67vh;
  box-sizing: border-box;
  margin-top: 2.3%;
  border: 5px solid #d7b594;
  margin-left: 75px;
  position: absolute;
  right: 18.3%;
  display: flex;
}

.atributo1 {
  height: 100%;
  width: 150%;
  margin-left: 0%;
  margin-top: 0%;
  justify-content: center;
  align-items: center;
}

.atributo2 {
  height: 100%;
  width: 100%;
  justify-content: center;
  margin-top:10px;
}

.progress-container {
  display: flex;
  background-color: transparent;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  margin-top:10px;
}

.icon {
  width: 130px;
  height: 25px;
  display: flex;
  justify-content: left;
  align-items: center;
  font-size: x-small;
  border: 3px solid #c09473;
  background: #d7b594;
}

.progress-bar {
  width: 300px;
  height: 25px;
  overflow: hidden;
  position: relative;
  border: 3px solid #c09473;
  background: #d7b594;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: #009a1f;
  background: linear-gradient(90deg, , );
  transition: width 0.3s ease;
  align-items: center;
}

.progress-text {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: bold;
}

.label {
  margin-left: 10px;
  font-size: 1px;
}

button {
  padding: ;
  margin-left: 7px;
  margin-right: 5px;
  margin-top: 5.5px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  position: relative;
  bottom: px;
}

/* foco temporário aplicado por clique via JS */
button.clicado {
  outline: none;
  transform: translateY(-1px);
  /* sombra sutil ao clicar */
  box-shadow:
    4px 0 rgb(0, 0, 0),
    -4px 0 rgb(0, 0, 0),
    0 4px rgb(0, 0, 0),
    0 -4px rgb(0, 0, 0),
    4px 4px rgb(0, 0, 0),
    -4px -4px rgb(0, 0, 0),
    -4px 4px rgb(0, 0, 0),
    4px -4px rgb(0, 0, 0),
    6px 0 rgb(0, 0, 0) -6px 0 rgb(0, 0, 0),
    0 6px rgb(0, 0, 0),
    0 -6px rgb(0, 0, 0);
}

.add {
  background: rgb(0, 100, 0);
  color: #fff;
  border: 1px solid rgb(0, 100, 0);
  border-radius: 0;
  padding: 2px 4px;
  font-family: monospace;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;

  box-shadow:
    2px 0 rgb(0, 100, 0),
    -2px 0 rgb(0, 100, 0),
    0 2px rgb(0, 100, 0),
    0 -2px rgb(0, 100, 0),
    2px 2px rgb(0, 100, 0),
    -2px -2px rgb(0, 100, 0),
    -2px 2px rgb(0, 100, 0),
    2px -2px rgb(0, 100, 0),
    4px 0 rgb(0, 100, 0),
    -4px 0 rgb(0, 100, 0),
    0 4px rgb(0, 100, 0),
    0 -4px rgb(0, 100, 0);
}

.remove {
  background: rgb(92, 0, 0);
  color: #fff;
  border: 1px solid rgb(92, 0, 0);
  border-radius: 0;
  padding: 2px 4px;
  font-family: monospace;
  margin-left: 3.6%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;


  box-shadow:
    2px 0 rgb(92, 0, 0),
    -2px 0 rgb(92, 0, 0),
    0 2px rgb(92, 0, 0),
    0 -2px rgb(92, 0, 0),
    2px 2px rgb(92, 0, 0),
    -2px -2px rgb(92, 0, 0),
    -2px 2px rgb(92, 0, 0),
    2px -2px rgb(92, 0, 0),
    4px 0 rgb(92, 0, 0),
    -4px 0 rgb(92, 0, 0),
    0 4px rgb(92, 0, 0),
    0 -4px rgb(92, 0, 0);
}

.set {
  background: #06f;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.guardando {
  box-shadow: 0 0 10px #8a7f6b;
  background: #e7d5b3;
}

.barra {
  margin-top: 10px;
}

.cabeca {
  height: 30%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  position: relative;
  background-color: ;
  border-bottom: 5px solid #d7b594;
}

.perfil {
  height: 100%;
  width: 35%;

  display: flex;
  justify-content: center;
  align-items: center;
}

.descricaoperso {
  height: 100%;
  width: 60%;
  display: flex;
  border-left: 5px solid #d7b594;
  border-right: 5px solid #d7b594;
}

.ombro {
  height: 70%;
  width: 100%;
  display: row;
  justify-content: center;
  align-items: center;
  gap: 0px;
  background-color: transparent;
  position: relative;
  z-index: 21;

}

.inventario {
  height: 100%;
  width: 100%;
  display: flex;
  background-color: transparent;
  position: relative;
  z-index: 21;
  margin-top: auto;
}

.input-estilizado {
  width: 100%;
  max-width: 50px;
  padding: 0;
  border: 2px solid #c09473;
  border-radius: 0px;
  background: #d7b594;
  color: #222;
  font-size: 14px;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-align: center;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Remover setas de inputs number para melhor alinhamento */
input[type="number"].input-estilizado::-webkit-outer-spin-button,
input[type="number"].input-estilizado::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"].input-estilizado {
  -moz-appearance: textfield;
  appearance: textfield;
}

.input-estilizado:focus {
  border-color: #7a5a3e;
  box-shadow: 0 0 0 4px rgba(193, 148, 115, 0.18);
  transform: translateY(-1px);
}

.input-estilizado::placeholder {
  color: #000000;
  opacity: 1;
}
.btn-seta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: #d7b594;
  color: #7a5a3e;
  border: solid #7a5a3e;
  border-radius: 0px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
  right: -68.2%;
  margin-top: -10%;
}

.btn-seta:hover {
  background-color: #d7b594;
}

.seta {
  border: solid #7a5a3e;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 5px;
}

.seta-direita {
  transform: rotate(-45deg);
}
.botaum{
width: 100%;

}
.foto{
  width: 100%;
  height: 100%;
}
.texto{
  text-overflow: clip;
  size: 10px;
}
.stat-row{

  display:flex;
  
  justify-content:space-between;
  
  padding:6px 10px;
  
  font-size:15px;
  
  }
  
  .stat-row strong{
  
  font-size:16px;
  
  color:#1d1d1d;
  
  }
  
  #stats-content{
  
  padding:8px;
  
  }