:root {
  --card-width: 370px;
  --card-height: 126px;
  --card-width-classic: 386px;
  --card-height-classic: 104px;
  --card-scale: 1; /* Variável de escala global */
}

/* Temas */
.card--theme-dark {
  --text-color: #fff;
  --bg-color: #222;
}

.card--theme-light {
  --text-color: #000;
  --bg-color: #fff;
}

.card--effect-none {
  filter: none;
}

.card--effect-glow {
  filter: drop-shadow(0 0 5px #ff0);
}

.card--effect-shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}


.card-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  width: var(--card-width);
  height: var(--card-height);
  color: var(--text-color);
  background-color: var(--bg-color);
  background: url('../images/backgrounds/sannin/4.png') no-repeat center/cover;
  transform: scale(var(--card-scale));
  transform-origin: top center;
  transition: background-image 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 10px #000;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card--sannin {
  width: var(--card-width);
  height: var(--card-height);
  padding: 7px 7px 0 7px;
}

/* Estilo clássico */
.card--classic {
  width: var(--card-width-classic);
  height: var(--card-height-classic);
  border-radius: 10px;
  padding: 5px; /* Padding especial */
}


/* Box padrão */
.box {
  width: calc(195px / var(--card-scale));
  height: calc(97px / var(--card-scale));
  background: #fff;
  border: 1px solid #000;
  display: flex;
  color: #000;
  font-size: calc(10px / var(--card-scale));
  text-transform: uppercase;
}

.box--sannin {
  width: calc(195px / var(--card-scale));
  height: calc(97px / var(--card-scale));
}

/* Box para layout clássico */
.box--classic {
  width: calc(210px / var(--card-scale));
  height: calc(102px / var(--card-scale)); /* Ajustado para incluir level bar */
}

/* Avatar */

.avatar {
  position: relative;
  width: calc(75px / var(--card-scale));
  height: calc(75px / var(--card-scale));
}

.avatar--classic {
  width: calc(90px / var(--card-scale));
  height: calc(90px / var(--card-scale));
}

.avatar img {
  width: calc(75px / var(--card-scale));
  height: calc(75px / var(--card-scale));
  border: 1px solid #000;
  border-left: none;
}

/* Barra de nível */

.level-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(10px / var(--card-scale));
  background: #333;
  border: 1px solid #000;
}

.level-bar--classic {
  height: calc(12px / var(--card-scale));
}

.level-fill {
  height: 100%;
  background: #f90;
  transition: width 0.5s ease-in-out;
}

.level-bar.level-bar--classic {
  display: none;
}

.level-text {
  position: absolute;
  top: 0;
  right: calc(5px / var(--card-scale));
  color: #fff;
  font-weight: bold;
  font-size: calc(8px / var(--card-scale));
  text-shadow: 0 0 2px #000;
  z-index: 2;
}

/* Informações */
.info div {
  line-height: 1.3em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.info {
  flex: 1;
  max-width: calc(120px / var(--card-scale)); /* Limita para não escapar */
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-classic {
  position: relative; /* Garante que a shuriken seja posicionada em relação ao .info-classic */
  padding: 5px;
  max-width: calc(120px / var(--card-scale));
  line-height: 1.2em;
}

.info-default {
  max-width: calc(110px / var(--card-scale));
  padding: 7px;
  line-height: 1.3em;
}

.info, .info-default, .info-classic {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* Impede quebras de linha */
}

.shuriken-icon {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: calc(20px / var(--card-scale));
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(5px / var(--card-scale));
  font-size: calc(10px / var(--card-scale));
  margin-top: calc(2px / var(--card-scale)); /* Pequeno distanciamento */
  color: #fff;
  text-shadow: 0 0 2px #000;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.footer--hidden {
  opacity: 0;
  display: none;
}

.footer-content {
  display: inline-flex;
  gap: calc(10px / var(--card-scale));
}

.footer--sannin {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid #444;
}

.footer--classic {
  background: rgba(255, 255, 255, 0.2);
  border-top: 1px solid #ccc;
  font-size: calc(8px / var(--card-scale));
  text-align: center;
  display: none;
}

.footer-site {
  font-weight: bold;
}

.footer-tagline {
  font-style: italic;
}


