*{
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    font-family: var(--font-body, "Inter", sans-serif);
}
:root {
    --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-title: "Cinzel", serif;
    --font-input: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --background-body: #dbe1eb;
    --fundo-ficha: #ecf0f4;
    --cor-texto: #2a2e3b;
    --cor-texto-2: #4b5160;
    --texto-B-P: #2a2e3b;
    --cor-caixa: inset 2px 2px 3px rgba(14, 49, 99, 0.3);
    --cor-container: #e9ebf1;
    --cor-container-fundo: #dfe6f0; 
    --fundo-caixa: #d5d9dd;
    --line: #3e4041;
    --sombra: 
    6px 6px 6px #c8cacf,
   -6px -6px 6px #ffffff;
    --sombra-pequena:
       5px 5px 6px #c8cacf,
      -5px -5px 6px #ffffffce;
    --sombra-checkbox: 2px 2px 4px #a8a8a8,
             -2px -2px 4px #ffffff;
    --modificador-efeito: 5px 5px 10px #c8cacf, -5px -5px 8px #ffffffce,inset 2px 2px 3px rgba(14, 49, 99, 0.3), inset -2px -2px 5px #ffffff, -2px -2px 5px #ffffff;
    --nivel-efeito: inset 2px 2px 5px #bcbcbc, inset -2px -2px 5px #ffffff, 2px 2px 5px #bcbcbc, -2px -2px 5px #ffffff;
  }
.dark-theme {
  --background-body: #15171c;
  --fundo-ficha: #22252b;
  --cor-texto: #dddde6;
  --cor-texto-2: #868694;
  --texto-B-P: #dfe0e5;
  --cor-caixa: inset 2px 2px 3px #000000b6, inset -2px -2px 3px #40424574;
  --cor-container: #1a1c22;
  --cor-container-fundo: #121822;
  --fundo-caixa: #2a303e;
  --line: #888a9f;
  --sombra: 6px 6px 12px #101012, -6px -6px 12px #3e404382;
  --sombra-pequena: 5px 5px 10px #050509b3, -5px -5px 10px #3e40434b;
  --sombra-checkbox: 2px 2px 4px #0505099b, -2px -2px 4px #3e40434b;
  --modificador-efeito: 5px 5px 10px #111219, -5px -5px 8px #26293e32, inset 2px 2px 3px rgba(0, 0, 0, 0.6), inset -2px -2px 5px #3e404382, -2px -2px 5px #3e404382;
  --nivel-efeito: inset 2px 2px 5px #050509e2, inset -2px -2px 5px #404245af, 2px 2px 5px #0c0e11fe, -2px -2px 5px #3e4043dc;
}
/* COMEÇO DO MENU */
.menu-header {
  width: 100%;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  min-width: 1200px;
  color: var(--texto-B-P);
  position: relative;
  z-index: 50;
}

/* Layout interno do header */
.menu-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

/* Outros estilos permanecem */
.site-title {
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dark-mode-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* SVG pequeno e herdando cor do texto */
.dark-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: inline-block;
}
/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  cursor: pointer;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #2196f3;
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* Dropdown */
.dropdown {
  position: relative;
  box-shadow: var(--cor-caixa);
  padding: 5px;
  border-radius: 10px;
  background-color: var(--fundo-caixa);
}

.toggle-submenu {
  display: none;
}

.dropdown-button {
  cursor: pointer;
  padding: 0.4rem 1rem;
  border: 1px solid var(--text);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  user-select: none;
}

.submenu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--text);
  padding: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  min-width: 200px;
  z-index: 1000;
}

.toggle-submenu:checked + .dropdown-button + .submenu {
  display: block;
}

.submenu button {
  width: 100%;
  padding: 0.5rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.submenu button:hover {
  background: var(--accent-soft);
  color: var(--text-main);
}

.menu-ficha-inline .icon-btn {
  opacity: 0.5;
  transition: opacity 0.2s;
}
.menu-ficha-inline:hover .icon-btn {
  opacity: 1;
}
.menu-ficha-inline .btn-ficha {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1em;
  min-width: 100px;
}
.menu-ficha-inline {
  border-bottom: 1px solid #eee;
}
/* Responsivo */
@media (max-width: 600px) {
  .site-title {
    font-size: 0.95rem;
  }

  .dropdown-button {
    padding: 0.3rem 0.75rem;
    font-size: 0.9rem;
  }

  .submenu {
    min-width: 120px;
  }
}
/* FIM DO MENU */

body{
    background-color: var(--background-body);
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}
.wrapper {
    width: 100vw;
    height: 100vh;
}
.texto-center{
  text-align: center;
}
.background, .background-2{
    width: 1200px;
    height: auto;
    background-color: var(--fundo-ficha);
    border-radius: 18px;
    margin: 0 auto;
    padding: 20px;
}
.background-2{
  margin-top: 20px;
}
.header{
    display: flex; /* coloca os elementos lado a lado */
    gap: 20px; /* espaço entre os elementos (opcional) */
    margin: 0px 40px 20px;
    padding: 20px;
    background-color: var(--cor-container-fundo);
    border-radius: 10px;
    box-shadow: var(--sombra);
}
.container01 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    min-width: 40%;
}
.container01 h3,
.container02 h3,
.container03 h3,
.container04 h3 {
    color: var(--cor-texto);
    font-size: 12px;
    font-weight: 400;
}
.nome-container{
    grid-column: span 2 / span 2;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}

.caixa-texto{
    border: none;
    outline: none;
    border-radius: 15px;
    padding: 1em;
    width: 100%;
    height: 15px;
    background-color: var(--fundo-caixa);
    box-shadow: var(--cor-caixa);
    transition: 300ms ease-in-out;
}
#nv-texto{
    border-radius: 50%;
    font-size: 16px;
    width: 50px;
    height: 50px;
}
.antecede-container {
    grid-row-start: 2;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.classe-container{
    grid-row-start: 2;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.especie-container{
    grid-row-start: 3;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.subclasse-container{
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.container02{
    text-align: center;
    align-self: center;
    max-width: 100px;
    background-color: var(--cor-container);
    padding: 20px 15px;
    border-radius: 30px;
    box-shadow:  var(--sombra-pequena);
    border: 2px solid #edf4f7;
    box-shadow: var(--nivel-efeito);
}
#xp-texto{
    width: 60px;
    height: 25px;
    font-size: 10px;
    text-align: center;
}
.container03{
    text-align: center;
    align-self: center;
    max-width: 100px;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena);
}
#ca-texto{
    margin-top: 10px;
    margin-bottom: 5px;
    width: 100%;
    height: 100%;
    padding: 5%;
    font-size: 30px;
    text-align: center;
}
.checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}

.checkbox input {
  display: none;
}

.checkbox .checkmark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #2277cc 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}

.checkbox .checkmark::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}

.checkbox input:checked + .checkmark {
  background-color: #2277cc;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #2277cc 0px 0px 0px 2px inset, #2277cc 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox input:checked + .checkmark::after {
  background-color: white;
}

.checkbox .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}
.container04{
    text-align: center;
    align-self: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 8px;
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena);
}
.conteudo-vida{
    display: flex;
    flex-direction: row;
    gap: 5px;
}
#vida-texto{
    margin-top: 10px;
    margin-bottom: 5px;
    width: 55px;
    height: auto;
    padding: 2px;
    font-size: 30px;
    text-align: center;
}
.temp-container, .max-container{
  width: 50px;
}
#title{
    text-align: center;
    justify-self: center;
    margin-bottom: 10px;
}
.dado-de-vida{
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    grid-row: span 2 / span 2;
}
#gasto-texto{
    margin-top: 10px;
    width: 60%;
}
#max2-texto{
    width: 60%;
}
.salva-guarda{
    grid-row: span 2 / span 2;
}
.checks-sg{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 8px;
}
#sucess{
    margin-top: 10px;
    width: 50%;
}
#falha{
    width: 50%;
}
/* TESTES DE SUCESSO */
.checkbox-sg1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg1 input {
  display: none;
}
.checkbox-sg1 .checkmark-sg1 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #22cc66 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg1 .checkmark-sg1::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg1 input:checked + .checkmark-sg1 {
  background-color: #22cc66;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #22cc66 0px 0px 0px 2px inset, #22cc66 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg1 input:checked + .checkmark-sg1::after {
  background-color: white;
}
.checkbox-sg1 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-sg2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg2 input {
  display: none;
}
.checkbox-sg2 .checkmark-sg2 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #22cc66 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg2 .checkmark-sg2::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg2 input:checked + .checkmark-sg2 {
  background-color: #22cc66;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #22cc66 0px 0px 0px 2px inset, #22cc66 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg2 input:checked + .checkmark-sg2::after {
  background-color: white;
}
.checkbox-sg2 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-sg3 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg3 input {
  display: none;
}
.checkbox-sg3 .checkmark-sg3 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #22cc66 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg3 .checkmark-sg3::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg3 input:checked + .checkmark-sg3 {
  background-color: #22cc66;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #22cc66 0px 0px 0px 2px inset, #22cc66 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg3 input:checked + .checkmark-sg3::after {
  background-color: white;
}
.checkbox-sg3 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}
/* TESTES DE FALHA */
.checkbox-sg-f1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg-f1 input {
  display: none;
}
.checkbox-sg-f1 .checkmark-sg-f1 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #cc2222 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg-f1 .checkmark-sg-f1::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg-f1 input:checked + .checkmark-sg-f1 {
  background-color: #cc2222;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #cc2222 0px 0px 0px 2px inset, #cc2222 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg-f1 input:checked + .checkmark-sg-f1::after {
  background-color: white;
}
.checkbox-sg-f1 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-sg-f2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg-f2 input {
  display: none;
}
.checkbox-sg-f2 .checkmark-sg-f2 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #cc2222 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg-f2 .checkmark-sg-f2::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg-f2 input:checked + .checkmark-sg-f2 {
  background-color: #cc2222;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #cc2222 0px 0px 0px 2px inset, #cc2222 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg-f2 input:checked + .checkmark-sg-f2::after {
  background-color: white;
}
.checkbox-sg-f2 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-sg-f3 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-sg-f3 input {
  display: none;
}
.checkbox-sg-f3 .checkmark-sg-f3 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #cc2222 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-sg-f3 .checkmark-sg-f3::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-sg-f3 input:checked + .checkmark-sg-f3 {
  background-color: #cc2222;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #cc2222 0px 0px 0px 2px inset, #cc2222 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-sg-f3 input:checked + .checkmark-sg-f3::after {
  background-color: white;
}
.checkbox-sg-f3 .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}
/* FIM DO HEADER */

.logo-container {
  display: flex;
  justify-content: center;  /* Centraliza horizontalmente */
  align-items: center;      /* Centraliza verticalmente */
}
.logo{
  position: relative;
  align-self: center;
  align-items: center;
  justify-content: center;
  height: auto;
}
/* INICIO DO CONTEUDO DO MEIO DA FICHA */
.conteudo-meio {
  display: flex;
  gap: 8px;
  margin: 20px 40px 10px;
}
.conteudo-meio h3{
    color: var(--cor-texto);
    font-size: 12px;
    font-weight: 400;
}
.coluna-direita{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* INICIO DO ATRIBUTOS */
.atributos {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px 20px;
    text-align: center;
    align-self: center;
    background-color: var(--cor-container-fundo);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra);
    width: 400px;
    height: 1018px;
}
.atributos h3{
  font-size: 9px !important;
}
.proficiencia, .forca, .destreza, .constituicao, .inteligencia, .sabedoria, .carisma, .inspiracao{
  background-color: var(--cor-container);
  padding: 10px;
  border-radius: 10px;
  box-shadow:  var(--sombra-pequena)
}
.proficiencia h3, .inspiracao h3{
    margin-bottom: 10px; 
    border-bottom: 1px solid var(--line);
}
.inspiracao{
  border-radius: 5px 5px 40px 40px;
}
.proficiencia{
  height: 100px;
}
#prof, #att-for, #att-dez, #att-con, #att-int, #att-sab, #att-car{
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 28px;
  padding: 5px;
}
#prof{
  width: 50px;
  height: 50px;
}
#att-for, #att-dez, #att-con, #att-int, #att-sab, #att-car{
    box-shadow: var(--modificador-efeito);
    border: 1px solid #f9f9f9;
}

#mod-for, #mod-dez, #mod-con, #mod-int, #mod-sab, #mod-car{
  border-radius: 4px;
  padding: 2px;
  width: 40px;
  height: 40px;
  font-size: 20px;
}
.cont-att{
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  gap: 5px;
  margin-top: 10px;
}
.caixa-do-mod{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.checkbox-ih {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: black;
}
.checkbox-ih input {
  display: none;
}
.checkbox-ih .checkmark-ih {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background-color: #ffffff2b;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, rgba(0, 0, 0, 0.21) 0px 0px 0px 24px inset,
        #24e7d7 0px 0px 0px 0px inset, rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
  cursor: pointer;
  position: relative;
}
.checkbox-ih .checkmark-ih::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background-color: #e3e3e3;
  box-shadow: transparent 0px 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 6px 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
.checkbox-ih input:checked + .checkmark-ih {
  background-color: #24e7d7;
  box-shadow: rgba(0, 0, 0, 0.62) 0px 0px 5px inset, #24e7d7 0px 0px 0px 2px inset, #24e7d7 0px 0px 0px 24px inset,
        rgba(224, 224, 224, 0.45) 0px 1px 0px 0px;
}

.checkbox-ih input:checked + .checkmark-ih::after {
  background-color: white;
}
.checkbox-ih .label {
  margin-right: 10px;
  user-select: none;
  font-weight: 700;
  cursor: pointer;
}

/* CAIXA DE SELEÇÃO DOS ATRIBUTOS */ 
.check-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.check-container {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}
.checkbox-att {
  background-color: transparent;
  padding: 6px;
  border-radius: 4px;
  border: rgb(146, 147, 148) solid 2px;
  box-shadow: var(--sombra);
  outline: none;
}
.check-container input:checked ~ .checkbox-att {
  background-color: transparent;
}
.checkbox-att:after {
  content: "";
  position: absolute;
  display: none;
}
.check-container input:checked ~ .checkbox-att:after {
  display: block;
}
.check-container .checkbox-att:after {
  left: 0.32em;
  top: 0.14em;
  width: 0.25em;
  height: 0.5em;
  border: solid var(--cor-texto);
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(45deg);
}
/* fim da CAIXA DE SELEÇÃO DOS ATRIBUTOS */ 
.salvaguarda-container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0 8px;
  height: 40px;
  border-bottom: 1px ridge var(--line);
  border-top: 1px ridge var(--line);
  border-radius: 6px;
}
.pericias-container{
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding-left: 8px;
}
.caixa-texto-pericias{
    border: none;
    outline: none;
    text-align: center;
    border-radius: 8px;
    padding: 4px;
    width: 30px;
    height: 25px;
    background-color: var(--fundo-caixa);
    box-shadow: var(--cor-caixa);
    transition: 300ms ease-in-out;
}
/* FIM DO CONTAINER DO ATRIBUTOS */

/* COMEÇO DOS DETALHES */
.detalhes{
    background-color: var(--cor-container-fundo);
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 20px;
    padding: 10px;
    width: 100%;
    height: 100px;
    border-radius: 10px;
    box-shadow:  var(--sombra)
}
.detalhes h3{
    margin-bottom: 10px; 
    border-bottom: 1px solid var(--line);
}
#iniciativa, #deslocamento, #percepção{
  width: 50%;
  height: 50%;
  text-align: center;
}
#tamanho{
  width: 70%;
  height: 50%;
  text-align: center;
}
.iniciativa, .deslocamento, .tamanho, .percept-pass {
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
/* FIM DOS DETALHES */

/* INICIO DAS ARMAS E ATAQUE */
.armas {
    background-color: var(--cor-container-fundo);
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    box-shadow:  var(--sombra)
}
.arma-container{
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena);
    text-align: center;
}
.arma-container h3{
    margin-bottom: 10px; 
}
.nomes-armas{
  display: flex;
  gap: 150px;
}
.conteudo-armas{
  display: flex;
  gap: 10px;
  border-radius: 10px;
  box-shadow: var(--cor-caixa);
  width: 100%;
  height: 100%;
  padding: 10px;
}
.armas-caixas h3{
  margin-bottom: 0;
}
.armas-caixas{
  display: flex;
  text-align: start;
  flex-direction: column;
  gap: 10px;
}

#armas-caixa-nome{
  width: 180px;
}
#armas1, #armas-1a, #armas-1b, #armas-1c, #armas-1d, #armas-1e{
  width: 180px;
}

#armas-2, #armas-2a, #armas-2b, #armas-2c, #armas-2d, #armas-2e{
  text-align: center;
}
#armas-3{
  width: 120px;
}
#armas-4{
  width: 220px;
} 
/* FIM DAS ARMAS E ATAQUE */

/* INICIO DAS SKILLS */
.caracteristicas {
    text-align: center;
    align-self: center;
    background-color: var(--cor-container-fundo);
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    box-shadow:  var(--sombra)
}
.skill-container{
    background-color: var(--cor-container);
    padding: 10px;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena);
    text-align: center;
}
.skill-container h3{
  margin-bottom: 10px;
}
.selecao-alinhamento{
  margin-top: 10px;
}
.alinhamento-container{
  display: flex;
  gap: 8px;
}
.conteudo-skills{
  border-radius: 10px;
  background-color: var(--fundo-caixa);
  box-shadow: var(--cor-caixa);
  width: 100%;
  height: 497px;
  padding: 10px;
  display: inline-block;
  vertical-align: top;
}
.coluna-cards {
  height: 100%; /* altura máxima visível */
  overflow-y: auto; /* scroll vertical */
  overflow-x: hidden;
}
.coluna-cards::-webkit-scrollbar {
  width: 8px;
}
.coluna-cards::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}
.coluna-cards::-webkit-scrollbar-thumb:hover {
  background: #888;
}
.card {
  width: 100%;
  min-height: 60px;
  background-color: var(--cor-container);
  box-shadow: var(--cor-caixa);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 5px;
  position: relative;
  display: flex;
  font-size: 10px;
  color: var(--texto-B-P);
  text-align: start;
  outline: none;
  white-space: pre-wrap;
}

.drag-handle {
  width: 30px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: grab;
  flex-shrink: 0;
  align-self: center;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle::before {
  content: "⋮⋮";
  font-size: 24px;
  line-height: 1;
  color: #646464;
}

.card-content {
  flex: 1;
  white-space: pre-wrap;
  outline: none;
}
.coluna--highlight{
  background-color: #c3daf1;
  border: 1px solid #2277cc;
}

.add-card-btn {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  background-color: var(--cor-container);
  border: 1px dashed #999;
  border-radius: 6px;
  color: var(--texto-B-P);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-card-btn:hover {
  background-color: #d0d0d0;
}
/* FIM DAS SKILLS */

/* INICIO DO CONTEUDO DE BAIXO DA PRIMEIRA PARTE */
.conteudo-baixo{
  display: flex;
  gap: 8px;
  margin: 0px 40px;
}
.conteudo-baixo h3{
    color: var(--cor-texto);
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}
.treinamento-container, .tracos-talentos-container{
    display: flex;
    gap: 10px; 
    padding: 10px;
    background-color: var(--cor-container-fundo);
    border-radius: 10px;
    box-shadow: var(--sombra);
}
.treinamento-container{
  width: 400px;
}
.tracos-talentos-container{
  width: 672px;
}
.tracos-content, .talentos-content, .treinamento-content{
    background-color: var(--cor-container);
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.tracos-talentos-container h3, .title-treinamento{
    margin-bottom: 5px; 
    border-bottom: 1px solid var(--line);
}
#tracos, #talentos{
  width: 100%;
  height: 92%;
  resize: none;
}

.armaduras{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
#title-secundario{
  min-width: 80px !important;
  font-size: 8px !important;
  text-align: start;
}
#title-terciario{
  text-align: start;
}
/* INICIO DAS CHECKBOXS DA PROFICIENCIA */
.checkbox-prof {
  display: flex;
  align-items: center;
  margin: 5px;
  cursor: pointer;
}
.checkbox-prof input {
  display: none;
}
.checkmark-prof {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  border-radius: 4px;
  background-color: #ffffff2b;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6), inset 0 0 0 24px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
}
.checkmark-prof::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: #e3e3e3;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease-in-out;
}
input:checked + .checkmark-prof {
  background-color: #2277cc;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6), inset 0 0 0 24px #2277cc;
}
input:checked + .checkmark-prof::after {
  background-color: white;
}
/* FIM DAS CHECKBOXS DA PROFICIENCIA */
#armas-prof, #ferramentas-prof{
  height: 100px;
  resize: none;
}

/* COMEÇO DA SEGUNDA PAGINA */
.pagina-2{
  display: flex;
  margin: 0 40px;
  gap: 10px;
}
.pagina-2 h3, .circulos-grid label, .cabecalho{
    color: var(--cor-texto);
    font-size: 12px;
    font-weight: 400;
}
.cabecalho-pg-2, .magias, .historia, .idiomas, .equipamento, .moedas{
  display: flex;
  align-items: center;
  gap: 10px; 
  padding: 10px;
  background-color: var(--cor-container-fundo);
  border-radius: 10px;
  box-shadow: var(--sombra);
  height: 100%;
}
.aparencia, .historia, .idioma, .equipamento, .moedas{
  width: 330px;
}
.pg-2-coluna-esquerda, .pg-2-coluna-direita{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.conjuracao-content, .espacos-mg-content, .magias-content, .aparencia-content, .historia-content, .idioma-content, .equipamento-content, .moedas-content{
    background-color: var(--cor-container);
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    box-shadow:  var(--sombra-pequena)
}
.aparencia-content, .historia-content, .idioma-content, .equipamento-content, .moedas-content{
  height: 100%;
}
.caixa-selecao {
    width: 100%;
    height: 38px;
    padding: 2px;
    border-radius: 5px;
    background-color: transparent;
    border: 1px solid #ccc;
    color: var(--cor-texto-2);
    box-shadow: var(--cor-caixa);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 5px;
}
.selecao-conjuracao{
  text-align: center;
  margin-bottom: 10px; 
  border-bottom: 1px solid var(--line);
}
.resultado-conjuracao{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.resultado-conjuracao input{
  width: 60px;
  height: 40px;
  padding: 5px;
  font-size: 20px;
}
.resultado-conjuracao div{
  display: flex;
  gap: 8px;
  align-items: center;
}
.title-espacos-mg, .aparencia-title, .magias-title, .historia-title, .idioma-title, .equipamento-title, .moeda-title{
  text-align: center;
  margin-bottom: 10px; 
  border-bottom: 1px solid var(--line);
}
/* INICIO DO ESPAÇOS DE MAGIAS */
.forma-content{
  display: flex;
  gap: 10px;
  border-radius: 10px;
  box-shadow: var(--cor-caixa);
  width: 100%;
  height: 100%;
  padding: 10px;
}
.circulos-grid {
  display: flex;
  gap: 10px;
}
.coluna {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cabecalho {
  display: flex;
  gap: 30px;
  justify-content: center;
}
#cabecalho2{
  padding-left: 5px;
  gap: 16px;
}
#cabecalho3{
  gap: 16px;
  padding-left: 30px;
}
.linha {
  display: flex;
  align-items: center;
  gap: 5px;
}
.linha label{
  width: 34px;
}
.box{
  width: 40px;
}
.quadrados-checks {
  display: flex;
  flex-wrap: wrap;
}
/* INICIO DOS CHECKS DE MAGIAS */
.check-container-mg {
  display: inline-block;
  position: relative;
  cursor: pointer;
  user-select: none;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 16px;
}
.check-container-mg input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkbox-mg {
  width: 18px;
  height: 18px;
  background-color: transparent;
  border-radius: 4px;
  border: 2px solid rgb(146, 147, 148);
  box-shadow: var(--sombra-checkbox);
  position: relative;
  display: block;
}
.checkbox-mg::after {
  content: "";
  position: absolute;
  display: none;
  left: 30%;
  top: 15%;
  width: 25%;
  height: 50%;
  border: solid var(--cor-texto);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-container-mg input:checked ~ .checkbox-mg::after {
  display: block;
}
/* FIM DOS CHECKS DE MAGIAS */

/* INICIO DAS MAGIAS PREPARADAS */
.grid {
	display: grid;
  gap: 5px;
}
.grid-template-columns-4 {
	grid-template-columns: 35px auto 90px 80px auto auto;
}
.item{
  align-self: center;
}
.item input{
  border-radius: 5px;
}
.item-checks{
  display:flex;
  justify-content: space-around;
  align-items: center;
  color: var(--cor-texto);
  font-size: 12px;
  font-weight: 400;
}
.primeira-coluna{
  width: 50px;
}
.caixa-larga{
  width: 180px;
}

/* FIM DAS MAGIAS PREPARADAS */

/* INICIO DOS ITENS DA COLUNA DIREITA */

/* INICIO DOS APARENCIAS */
.content{
  display: none;
}
.content.show{
  display: flex;
}
.botoes-tab{
  display: flex;
}
.tab-button{
  width: 100%;
  font-size: 12px;
  border: 1px solid rgb(146, 147, 148);
  background-color: transparent;
  color: var(--cor-texto);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.tab-button.active{
  background-color: var(--cor-container-fundo);
}
.tab-button:hover{
  background-color: var(--cor-container-fundo);
}
#aparencia-descricao{
  border-radius: 0px 0px 15px 15px;
  height: 250px;
  resize: none;
}
.imagem-container{
    border: none;
    outline: none;
    border-radius: 0px 0px 15px 15px;
    padding: 5px;
    width: 100%;
    height: 250px;
    background-color: var(--fundo-caixa);
    box-shadow: var(--cor-caixa);
}

/* INICIO DOS CODIGO DE IMAGEM */
.upload-area {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #aaa;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  margin: auto;
  background-color: #f9f9f940;
  transition: border-color 0.3s ease;
}

.upload-area:hover {
  border-color: #555;
}

#fileInput {
  display: none;
}

.placeholder {
  width: 100%;
  height: 100%;
  color: var(--texto-B-P);
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.358);
  color: white;
  border: none;
  font-size: 0.9rem;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.remove-btn:hover {
  background: rgba(255,0,0,0.7);
}
/* FIM DO APARECIAS */

#historia{
  height: 71%;
  resize: none;
}
#equipamento{
  height: 60%;
  resize: none;
}
.itens-magicos-container{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.itens-magicos-container h3{
  margin: 5px 0;
}
.i-m-content{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* INICIO DOS IDIOMAS */
#idioma{
  height: 40px;
}

.grid-moedas{
  grid-template-columns: repeat(5, 1fr) ;
  text-align: center;
  gap: 10px;
}
.custom-form{
  text-align: center;
  height: 30px;
  padding: 2px;
  border-radius: 4px 4px 15px 15px;
}
.moedas{
  height: 150px;
}

.uploadarea{
  margin-top: 20px;
  cursor:pointer;
  padding:8px;
  color: var(--cor-texto);
  background:#eeeeee00;
  border-radius:4px;
  border: 1px solid var(--cor-texto);
}


/* ======== Modern Neo + Glass + Medieval accents (override layer) ======== */
:root{
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-title: "Cinzel", serif;

  /* Dark palette (profissional) */
  --bg-0: #0b0f14;
  --bg-1: #0f1620;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.14);
  --stroke-2: rgba(255,255,255,.08);

  --text-0: rgba(255,255,255,.92);
  --text-1: rgba(255,255,255,.74);
  --text-2: rgba(255,255,255,.56);

  --accent: #b38a3a; /* dourado medieval discreto */
  --accent-2: #6ad1ff; /* azul frio p/ contraste */

  /* Neo shadow */
  --neo-hi: rgba(255,255,255,.08);
  --neo-lo: rgba(0,0,0,.65);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 12px;
}

/* Tipografia */
body{
  font-family: var(--font-body) !important;
}
h1,h2,h3,.site-title{
  font-family: var(--font-title) !important;
  letter-spacing: .5px;
}

/* Dark theme base */
body.dark-theme{
  background: radial-gradient(1200px 600px at 30% 0%, rgba(179,138,58,.14), transparent 60%),
              radial-gradient(900px 520px at 90% 10%, rgba(106,209,255,.12), transparent 55%),
              linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--text-0);
}


/* Medieval accent border (sutil) */
body.dark-theme .background::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px dashed rgba(179,138,58,.35);
  pointer-events:none;
  mask: linear-gradient(#000, transparent 85%);
  opacity: .65;
}

/* Inputs */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select,
body.dark-theme .caixa-texto,
body.dark-theme .caixa-texto-pericias{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--stroke-2) !important;
  color: var(--text-0) !important;
  box-shadow:
    inset 5px 5px 10px rgba(0,0,0,.45),
    inset -5px -5px 10px rgba(255,255,255,.03);
}

body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus{
  outline: none;
  border-color: rgba(179,138,58,.55) !important;
  box-shadow:
    0 0 0 3px rgba(179,138,58,.18),
    inset 5px 5px 10px rgba(0,0,0,.45),
    inset -5px -5px 10px rgba(255,255,255,.03);
}

/* Buttons */
body.dark-theme button,
body.dark-theme .uploadarea{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: var(--text-0) !important;
  border-radius: var(--radius-md) !important;
  box-shadow:
    8px 8px 16px rgba(0,0,0,.40),
    -6px -6px 14px rgba(255,255,255,.03);
}

body.dark-theme button:hover{
  transform: translateY(-1px);
  border-color: rgba(179,138,58,.45) !important;
}

/* ===== Toasts ===== */
#toast-root{
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
  max-width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}
.toast{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(20,28,38,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255,255,255,.92);
  box-shadow: 10px 10px 18px rgba(0,0,0,.35);
  transform: translateY(6px);
  opacity: 0;
  animation: toastIn .18s ease forwards;
  pointer-events: auto;
}
.toast__icon{ font-size: 18px; opacity: .92; margin-top: 1px; }
.toast__text{ font-size: 14px; line-height: 1.35; flex: 1; }
.toast__close{
  background: transparent !important;
  border: 0 !important;
  padding: 4px 6px;
  margin-left: 6px;
  cursor:pointer;
  color: rgba(255,255,255,.72) !important;
  box-shadow: none !important;
}
.toast--success{ border-color: rgba(111, 255, 164, .25); }
.toast--error{ border-color: rgba(255, 112, 112, .25); }
.toast--warning{ border-color: rgba(255, 212, 112, .25); }
.toast--hide{ opacity: 0; transform: translateY(10px); transition: all .18s ease; }
@keyframes toastIn{ to { opacity: 1; transform: translateY(0);} }

/* ===== Imagens extras ===== */
.imagensArea__empty{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  color: rgba(255,255,255,.70);
}
.img-card{
  position: relative;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 10px 10px 18px rgba(0,0,0,.28);
  margin-bottom: 12px;
}
.img-card img{
  width: 100%;
  height: auto;
  display:block;
}
.img-card__actions{
  position:absolute;
  top: 8px;
  right: 8px;
  display:flex;
  gap: 8px;
}
.imagensArea__grid,
#imagensArea{
  display: grid;
  gap: 12px;
}
.btn-icon{
  width: 36px;
  height: 36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: rgba(0,0,0,.2) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: inherit;
}

/* ===== DnD states ===== */
.coluna--highlight{
  outline: 2px dashed rgba(179,138,58,.55);
  outline-offset: 6px;
}
.card--ghost{
  opacity: .92;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
}
body.dnd--dragging *{
  user-select: none;
}

/* ======== UI polish: icons, modal, glass (light theme) ======== */
:root{
  --glass-bg: rgba(255,255,255,.6);
  --glass-border: rgba(255,255,255,.7);
  --ornament-border: rgba(120, 96, 58, .35);
  --bg: var(--cor-container);
  --text: var(--cor-texto);
}
body.dark-theme{
  --glass-bg: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.14);
  --ornament-border: rgba(179, 138, 58, .35);
  --bg: var(--cor-container);
  --text: var(--texto-B-P);
}

/* ===== Unified Theme (Light + Dark) ===== */
:root{
  --surface-0: rgba(255,255,255,.75);
  --surface-1: rgba(255,255,255,.58);
  --surface-border: rgba(120, 96, 58, .28);
  --surface-shadow: 14px 14px 26px rgba(0,0,0,.10), -10px -10px 22px rgba(255,255,255,.7);
  --surface-inset: inset 4px 4px 8px rgba(0,0,0,.08), inset -4px -4px 8px rgba(255,255,255,.6);
  --text-main: #2a2e3b;
  --text-muted: #5b6170;
  --accent-main: #b38a3a;
  --accent-soft: rgba(179,138,58,.16);
}
body.dark-theme{
  --surface-0: rgba(255,255,255,.07);
  --surface-1: rgba(255,255,255,.05);
  --surface-border: rgba(255,255,255,.12);
  --surface-shadow: 14px 14px 26px rgba(0,0,0,.45), -10px -10px 22px rgba(255,255,255,.04);
  --surface-inset: inset 4px 4px 8px rgba(0,0,0,.5), inset -4px -4px 8px rgba(255,255,255,.03);
  --text-main: rgba(255,255,255,.92);
  --text-muted: rgba(255,255,255,.65);
  --accent-main: #b38a3a;
  --accent-soft: rgba(179,138,58,.18);
}

body{
  color: var(--text-main);
}

input, textarea, select, button,
.caixa-texto, .caixa-texto-pericias, .card-content{
  font-family: var(--font-input) !important;
  letter-spacing: .2px;
  font-weight: 500;
}
.conteudo-armas input, .tracos-content textarea, .talentos-content textarea{
  font-size: 10px;
}

.background,
.background-2,
.menu-header,
.header,
.atributos,
.proficiencia,
.forca,
.destreza,
.constituicao,
.inteligencia,
.sabedoria,
.carisma,
.inspiracao,
.skill-container,
.arma-container,
.caracteristicas,
.aparencia,
.magias,
.equipamentos,
.container02,
.container03,
.container04,
.moedas,
.conteudo-skills,
.card,
.upload-area,
.uploadarea,
.imagensArea__empty,
.imagem-container,
.historia,
.equipamento,
.submenu{
  background: linear-gradient(180deg, var(--surface-0), var(--surface-1)) !important;
  border: 1px solid var(--surface-border) !important;
  box-shadow: var(--surface-shadow) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card{
  color: var(--text-main) !important;
}

input, textarea, select,
.caixa-texto, .caixa-texto-pericias{
  background: var(--surface-1) !important;
  border: 1px solid var(--surface-border) !important;
  color: var(--text-main) !important;
  box-shadow: var(--surface-inset) !important;
}

input:focus, textarea:focus, select:focus{
  border-color: var(--accent-main) !important;
  box-shadow: 0 0 0 3px var(--accent-soft), var(--surface-inset) !important;
}

button, .add-card-btn{
  background: linear-gradient(180deg, var(--surface-0), var(--surface-1)) !important;
  border: 1px solid var(--surface-border) !important;
  color: var(--text-main) !important;
  border-radius: 12px !important;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
button:hover, .add-card-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(179,138,58,.55) !important;
}

.tab-button{
  border-radius: 10px 10px 0 0;
}
.tab-button.active{
  border-color: rgba(179,138,58,.55);
}

body:not(.dark-theme){
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(179,138,58,.10), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(73,121,214,.10), transparent 55%),
    linear-gradient(180deg, #e9edf3, #dbe1eb);
}

.dark-icon{
  font-size: 18px;
  opacity: .85;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dropdown-button{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
  background: linear-gradient(180deg, var(--surface-0), var(--surface-1)) !important;
  border: 1px solid var(--surface-border) !important;
  color: var(--text-main) !important;
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
}
.dropdown-button .menu-label{
  flex: 1;
}
.dropdown-button:hover{
  border-color: rgba(179,138,58,.55);
}

.background,
.background-2,
.header{
  position: relative;
  z-index: 1;
}
.background::after,
.background-2::after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid var(--ornament-border);
  pointer-events: none;
  opacity: .6;
}

.menu-header,
.header,
.atributos,
.skill-container,
.arma-container,
.caracteristicas,
.aparencia,
.magias,
.equipamentos,
.container02,
.container03,
.container04{
  background: linear-gradient(180deg, var(--glass-bg), rgba(255,255,255,.35));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-ficha-inline{
  display:flex;
  align-items:center;
  gap:6px;
  padding: 4px;
  border-radius: 8px;
}
.menu-ficha-inline.is-active{
  border: 1px solid rgba(179,138,58,.35);
  background: rgba(179,138,58,.08);
}
.menu-ficha-inline .btn-ficha{
  font-family: var(--font-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-ficha-inline .icon-btn{
  width: 28px;
  height: 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 8px;
  background: transparent !important;
  border: 1px solid transparent !important;
}
.menu-ficha-inline .icon-btn:hover{
  background: rgba(179,138,58,.12);
}

.drag-handle{
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.drag-handle i{
  font-size: 16px;
  opacity: .7;
}
.drag-handle::before{
  content: none !important;
}
.card.dragging{
  opacity: .9;
  cursor: grabbing;
}
.card--placeholder{
  border: 1px dashed rgba(179,138,58,.45);
  background: rgba(179,138,58,.08);
  box-shadow: none;
}

.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
.modal.is-open{
  display: flex;
}
.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.modal__card{
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, var(--glass-bg), rgba(255,255,255,.35));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 14px 14px 28px rgba(0,0,0,.35);
}
.modal__card p{
  margin-top: 6px;
  color: var(--cor-texto);
}
.modal__label{
  display:block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--cor-texto);
}
.modal__input{
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
}
.modal__actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  justify-content: flex-end;
}
.btn.primary{
  border: 1px solid rgba(179,138,58,.55);
}
.btn.ghost{
  background: transparent;
}

.upload-area,
.uploadarea,
.imagensArea__empty{
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, var(--glass-bg), rgba(255,255,255,.35));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.upload-area.dragover{
  border-color: rgba(179,138,58,.55);
  box-shadow: 0 0 0 3px rgba(179,138,58,.18);
}
.imagensArea__empty{
  color: var(--cor-texto);
}
body.dark-theme .imagensArea__empty{
  color: rgba(255,255,255,.70);
}

.menu-ficha-list{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0;
}

.submenu{
  background: linear-gradient(180deg, var(--glass-bg), rgba(255,255,255,.35)) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#containerUpload.dragover .uploadarea,
#containerUpload.dragover #imagensArea{
  border-color: rgba(179,138,58,.55);
  box-shadow: 0 0 0 3px rgba(179,138,58,.18);
}


/* =======================================================================
   FINAL THEME OVERRIDE (Neo + Medieval)  — remove GLASSMORPHISM everywhere
   Coloque este bloco no FINAL do CSS (ele precisa ser o último).
   ======================================================================= */

/* 1) Tipografia consistente */
:root{
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-title: "Cinzel", serif;

  /* Escala (ajusta “tamanhos misturados”) */
  --fs-title: 18px;
  --fs-section: 13px;
  --fs-label: 11.5px;
  --fs-small: 12px;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Neo + medieval (claro) */
  --paper: #dbe1eb;
  --sheet: #ecf0f4;
  --surface: #e9ebf1;
  --surface-2: #dfe6f0;
  --well: #d5d9dd;

  --text-main: #2a2e3b;
  --text-muted: #4b5160;

  --edge: rgba(120, 96, 58, .22);
  --edge-strong: rgba(120, 96, 58, .32);
  --accent: #b38a3a;
  --accent-soft: rgba(179,138,58,.16);

  /* Neo shadows (claro) */
  --shadow-raise: 6px 6px 12px rgba(0,0,0,.10), -6px -6px 12px rgba(255,255,255,.70);
  --shadow-raise-sm: 4px 4px 6px rgba(0,0,0,.09), -4px -4px 6px rgba(255,255,255,.65);
  --shadow-inset: inset 4px 4px 8px rgba(0,0,0,.08), inset -4px -4px 8px rgba(255,255,255,.60);
}

body.dark-theme{
  /* Neo + medieval (escuro) */
  --paper: #15171c;
  --sheet: #22252b;
  --surface: #1a1c22;
  --surface-2: #121822;
  --well: #2a303e;

  --text-main: rgba(255,255,255,.92);
  --text-muted: rgba(255,255,255,.64);

  --edge: rgba(255,255,255,.12);
  --edge-strong: rgba(255,255,255,.18);
  --accent: #b38a3a;
  --accent-soft: rgba(179,138,58,.18);

  --shadow-raise: 10px 10px 22px rgba(0,0,0,.50), -10px -10px 22px rgba(255,255,255,.04);
  --shadow-raise-sm: 6px 6px 14px rgba(0,0,0,.48), -6px -6px 14px rgba(255,255,255,.03);
  --shadow-inset: inset 4px 4px 10px rgba(0,0,0,.55), inset -4px -4px 10px rgba(255,255,255,.03);
}

/* Fontes */
*{ font-family: var(--font-body) !important; }
h1,h2,.site-title{ font-family: var(--font-title) !important; letter-spacing: .6px; }
h3{ font-family: var(--font-title) !important; letter-spacing: .4px; }

/* Tamanhos base (mantém “número grande” onde já existe) */
.site-title{ font-size: var(--fs-title) !important; }
.container01 h3,
.container02 h3,
.container03 h3,
.container04 h3,
.conteudo-baixo h3,
.pagina-2 h3,
.circulos-grid label,
.cabecalho{
  font-size: var(--fs-label) !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
}

/* 2) Remover GLASS: desativa blur e fundos transparentes */
.background, .background-2, .menu-header, .header,
.atributos, .detalhes, .armas, .caracteristicas,
.cabecalho-pg-2, .magias, .aparencia, .historia, .idiomas, .equipamento, .moedas,
.container01, .container02, .container03, .container04,
.proficiencia, .forca, .destreza, .constituicao, .inteligencia, .sabedoria, .carisma, .inspiracao,
.skill-container, .arma-container, .conteudo-skills, .card,
.submenu, .modal__card, .upload-area, .uploadarea, .imagensArea__empty, .imagem-container,
.toast{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 3) Superfícies padronizadas (todos os “cards/containers”) */
.background, .background-2{
  background: var(--sheet) !important;
  border: 1px solid var(--edge) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-raise) !important;
}
.menu-header{
  background: var(--surface) !important;
  border: 1px solid var(--edge) !important;
  box-shadow: var(--shadow-raise-sm) !important;
}

.header,
.atributos,
.detalhes,
.armas,
.caracteristicas,
.cabecalho-pg-2, .magias, .aparencia, .historia, .idiomas, .equipamento, .moedas,
.treinamento-container, .tracos-talentos-container,
.pagina-2 > div{
  background: var(--surface-2) !important;
  border: 1px solid var(--edge) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-raise) !important;
}

.nome-container, .antecede-container, .classe-container, .especie-container, .subclasse-container,
.container02, .container03, .container04,
.proficiencia, .forca, .destreza, .constituicao, .inteligencia, .sabedoria, .carisma, .inspiracao,
.iniciativa, .deslocamento, .tamanho, .percept-pass,
.arma-container, .skill-container,
.tracos-content, .talentos-content, .treinamento-content,
.conjuracao-content, .espacos-mg-content, .magias-content,
.aparencia-content, .historia-content, .idioma-content, .equipamento-content, .moedas-content,
.card,
.submenu,
.modal__card,
.upload-area, .imagensArea__empty{
  background: var(--surface) !important;
  border: 1px solid var(--edge) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-raise-sm) !important;
}

/* Ornamentação medieval sutil (sem “vidro”) */
.background::after,
.background-2::after{
  border: 1px solid rgba(179,138,58,.22) !important;
  opacity: .55 !important;
}

/* 4) Inputs/Select/Textareas (todos os campos no novo design) */
input, textarea, select,
.caixa-texto, .caixa-texto-pericias, .caixa-selecao,
.custom-form{
  background: var(--well) !important;
  border: 1px solid var(--edge) !important;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-inset) !important;
  border-radius: 12px !important;
}

input::placeholder,
textarea::placeholder{
  color: color-mix(in srgb, var(--text-muted) 70%, transparent) !important;
}

input:focus, textarea:focus, select:focus{
  outline: none !important;
  border-color: color-mix(in srgb, var(--accent) 70%, var(--edge-strong)) !important;
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-inset) !important;
}

/* 5) Botões e hovers (evita “hover quebrar design”) */
button, .add-card-btn, .tab-button, .submenu button, .uploadarea{
  background: var(--surface) !important;
  border: 1px solid var(--edge) !important;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-raise-sm) !important;
  border-radius: 12px !important;
  font-size: var(--fs-small) !important;
  transition: transform .15s ease, border-color .18s ease, filter .18s ease !important;
}
button:hover, .add-card-btn:hover, .tab-button:hover, .submenu button:hover, .uploadarea:hover{
  transform: translateY(-1px);
  border-color: rgba(179,138,58,.55) !important;
  filter: brightness(1.02);
}
button:active, .add-card-btn:active{
  transform: translateY(0);
  box-shadow: var(--shadow-inset) !important;
}

/* Tabs */
.tab-button.active{
  border-color: rgba(179,138,58,.55) !important;
  box-shadow: var(--shadow-raise-sm) !important;
}

/* Dropdown submenu (remove var --bg/--text antigo e padroniza) */
.submenu, .submenu button{
  color: var(--text-main) !important;
}

/* 6) Modais/Toasts sem glass e com correção de rgba inválido */
.modal__backdrop{ background: rgba(0,0,0,.45) !important; }
.toast{
  background: var(--surface) !important;
  border: 1px solid var(--edge) !important;
  box-shadow: var(--shadow-raise-sm) !important;
  color: var(--text-main) !important;
}
.toast__close{ color: var(--text-muted) !important; }

/* 7) Ajustes de contraste em labels (algumas labels estavam “preto fixo”) */
.checkbox, .checkbox-sg1, .checkbox-sg2, .checkbox-sg3,
.checkbox-sg-f1, .checkbox-sg-f2, .checkbox-sg-f3,
.checkbox-ih{
  color: var(--text-main) !important;
}

/* 8) Fundo do body (limpo + medieval discreto) */
body{
  background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--paper) 85%, #000 15%)) !important;
  color: var(--text-main) !important;
}
body:not(.dark-theme){
  background:
    radial-gradient(1100px 650px at 22% 0%, rgba(179,138,58,.10), transparent 60%),
    radial-gradient(900px 520px at 88% 8%, rgba(73,121,214,.08), transparent 55%),
    linear-gradient(180deg, #e9edf3, var(--paper)) !important;
}
body.dark-theme{
  background:
    radial-gradient(1100px 650px at 22% 0%, rgba(179,138,58,.14), transparent 60%),
    radial-gradient(900px 520px at 88% 8%, rgba(73,121,214,.10), transparent 55%),
    linear-gradient(180deg, var(--paper), #0f1620) !important;
}

/* 9) Valores “gigantes” só onde faz sentido */
#ca-texto, #vida-texto{ font-size: 30px !important; }
#prof{ font-size: 22px !important; }
#nv-texto{ font-size: 16px !important; }

/* 10) Pequena coerência em títulos com divisória */
.proficiencia h3, .inspiracao h3,
.detalhes h3, .skill-container h3, .arma-container h3,
.title-espacos-mg, .aparencia-title, .magias-title, .historia-title, .idioma-title, .equipamento-title, .moeda-title,
.tracos-talentos-container h3, .title-treinamento{
  border-bottom: 1px solid var(--edge) !important;
  color: var(--text-main) !important;
}

/* ===========================
   FIX GLOBAL – FONT AWESOME
   =========================== */

.fa,
.fa-solid,
.fa-regular,
.fa-brands,
.fas,
.far,
.fab,
[class^="fa-"],
[class*=" fa-"] {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important; /* necessário p/ solid */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit; /* herda corretamente do tema */
}

/* ícones dentro de botões */
button i,
.tab-button i,
.submenu i {
  font-size: 0.95em;
  line-height: 1;
}

/* ícones decorativos (ex: títulos) */
h3 i,
h2 i {
  margin-left: 6px;
  opacity: 0.85;
}

/* hover não quebra */
button:hover i,
.tab-button:hover i {
  filter: brightness(1.1);
}
