/* ==========================================
   1. TEMA SOMBRIO ZOMBICIDE (MOBILE FIRST)
   ========================================== */
* {
    box-sizing: border-box;
}

body {
    background-color: #121214;
    color: #e1e1e6;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

header {
    background: #1a1a1e;
    border-bottom: 2px solid #b32d2e; /* Tom vermelho sangue/zumbi */
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#site-title {
    font-size: 1.3em;
    margin: 0;
    color: #f1f1f1;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Botões do Cabeçalho e Ações */
button {
    background: #28282d;
    color: #e1e1e6;
    border: 1px solid #44444c;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover, button:active {
    background: #b32d2e;
    border-color: #d43839;
    color: #ffffff;
}

/* Menu de Início e Botões Principais no Celular */
.view-section {
    padding: 16px;
    max-width: 650px;
    margin: 0 auto;
}

.menu-botoes, .character-controls, .search-controls-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-acao {
    width: 100%;
    padding: 14px;
    font-size: 1.05em;
    text-align: center;
    background: #202024;
    border-color: #383840;
}

/* Campos de Busca (Touch-friendly) */
input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #383840;
    background: #1a1a1e;
    color: #fff;
    font-size: 1em;
    outline: none;
}

input[type="text"]:focus {
    border-color: #b32d2e;
    box-shadow: 0 0 0 2px rgba(179, 45, 46, 0.3);
}

/* ==========================================
   2. LISTA CLICÁVEL (ACORDEÃO / GAVETA)
   ========================================== */
.card-habilidade-resumo, .sugestao-personagem, .item-sobrevivente-lista {
    background: #1a1a1e;
    border: 1px solid #2d2d34;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.card-habilidade-resumo:hover, .sugestao-personagem:hover, .item-sobrevivente-lista:hover {
    background: #25252b;
    border-color: #44444c;
}

.titulo-hab-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05em;
}

.subtitulo-en {
    color: #8c8c9a;
    font-style: italic;
    font-size: 0.85em;
    margin-top: 4px;
}

/* Corpo da habilidade que expande ao clicar */
.desc-gaveta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #383840;
    color: #cccccc;
    font-size: 0.95em;
    line-height: 1.6;
}

/* ==========================================
   FICHA DO SOBREVIVENTE (TEMA ESCURO DETALHADO)
   ========================================== */
.ficha-sobrevivente {
    background: #1a1a1e;
    border: 1px solid #383840;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.ficha-cabecalho h2 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    border-bottom: 1px solid #383840;
    padding-bottom: 10px;
    color: #ffffff;
}

.divisor-caixa {
    color: #555560;
    margin: 0 6px;
}

.texto-caixa {
    font-size: 0.75em;
    color: #9e9ea8;
    font-weight: normal;
}

.sobrevivente-imagem-container {
    width: 100%;
    margin-bottom: 15px;
    border: 2px solid #2d2d34;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background-color: #0d0d0f;
}

.sobrevivente-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.niveis-container {
    margin-top: 20px;
}

.linha-habilidade {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    background: #131316;
    border: 1px solid #28282d;
    border-radius: 6px;
    padding: 12px;
}

.coluna-cor {
    font-weight: 700;
    width: 80px;
    text-transform: uppercase;
    font-size: 0.85em;
    flex-shrink: 0;
}

.coluna-divisor {
    color: #383840;
    margin: 0 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.coluna-texto {
    flex-grow: 1;
}

.coluna-texto strong {
    color: #ffffff;
    font-size: 1.05em;
}

/* Cores das faixas ajustadas para brilhar no fundo preto */
.cor-azul { color: #4da6ff; }
.cor-amarelo { color: #ffcc00; }
.cor-laranja { color: #ff8800; }
.cor-vermelho { color: #ff4747; }


/* ==========================================
   4. MENU LATERAL E CABEÇALHO
   ========================================== */
header {
    justify-content: flex-start; /* Alinha itens pelo começo */
    gap: 15px;
}
#menu-btn {
    background: transparent;
    border: none;
    font-size: 1.6em;
    padding: 0;
    color: #e1e1e6;
}
#btn-language {
    margin-left: auto; /* Joga o botão de idioma para o canto direito */
}

/* Sidebar Oculta */
.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: -250px; /* Escondido por padrão */
    background-color: #1a1a1e;
    border-right: 2px solid #b32d2e;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
}
.sidebar.aberto {
    left: 0;
}
.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.1em;
    color: #e1e1e6;
    display: block;
    transition: 0.2s;
    border-bottom: 1px solid #28282d;
}
.sidebar a:hover {
    background-color: #b32d2e;
    color: #fff;
}
.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    background: transparent;
    border: none;
    color: #e1e1e6;
}
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1500;
}
.text-center { text-align: center; }

/* ==========================================
   5. DROPDOWN (AUTOCOMPLETAR ACOPLADO)
   ========================================== */
.input-container {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #1a1a1e;
    border: 1px solid #b32d2e;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

.item-sugestao-lista {
    padding: 12px 16px;
    border-bottom: 1px solid #2d2d34;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.item-sugestao-lista:last-child {
    border-bottom: none;
}
.item-sugestao-lista:hover {
    background: #28282f;
}
/* Destaque visual quando uma CAIXA é sugerida no dropdown */
.destaque-caixa {
    background: #25252b;
    border-left: 4px solid #ff4747;
    color: #ff4747;
}
.destaque-caixa:hover {
    background: #ff4747;
    color: #fff;
}
/* Container da Imagem do Sobrevivente */
.sobrevivente-imagem-container {
    width: 100%;
    margin-bottom: 12px;
    border: 2px solid #2d2d34; 
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background-color: #0d0d0f; 
}

.sobrevivente-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Caixa do Equipamento (Body) */
.sobrevivente-body-container {
    width: 100%;
    background-color: #1a1a1e;
    border: 1px solid #383840;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 15px;
    text-align: center;
    color: #e0e0e0;
    font-size: 0.95em;
    box-sizing: border-box; 
}

.label-body {
    font-weight: bold;
    color: #888; 
    font-size: 0.85em;
    text-transform: uppercase;
    margin-right: 5px;
}
/* ==========================================
   TELA DE INIMIGOS
   ========================================== */
.ficha-inimigo {
    background-color: #121214;
    border: 1px solid #2d2d34;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #e0e0e0;
}

.inimigo-cabecalho {
    text-align: center;
    margin-bottom: 15px;
}

.inimigo-cabecalho h2 {
    color: #ff4747;
    margin: 0 0 5px 0;
    font-size: 1.6em;
}

.inimigo-subtitulo {
    font-size: 0.85em;
    color: #9e9ea8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inimigo-imagem-container {
    width: 100%;
    margin-bottom: 15px;
    border: 2px solid #2d2d34;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background-color: #0d0d0f;
}

.inimigo-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tabela de Atributos (CSS Grid perfeito para mobile) */
.inimigo-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas no celular */
    gap: 10px;
    background-color: #1a1a1e;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #383840;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.65em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-valor {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}

.inimigo-regras {
    font-size: 0.95em;
    line-height: 1.5;
    color: #d1d1d6;
    text-align: justify;
    padding-top: 10px;
    border-top: 1px dashed #383840;
}
/* ==========================================
   TELA DE EQUIPAMENTOS
   ========================================== */
.ficha-equipamento {
    background-color: #121214;
    border: 1px solid #2d2d34;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #e0e0e0;
}

.equipamento-cabecalho {
    text-align: center;
    margin-bottom: 15px;
}

.equipamento-cabecalho h2 {
    color: #4da6ff; /* Cor azul claro para diferenciar dos inimigos (vermelho) */
    margin: 0 0 5px 0;
    font-size: 1.6em;
}

.equipamento-set {
    font-size: 0.85em;
    color: #9e9ea8;
    margin-bottom: 5px;
}

.equipamento-tags {
    font-size: 0.8em;
    color: #d1d1d6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.equipamento-imagem-container {
    width: 100%;
    margin-bottom: 15px;
    border: 2px solid #2d2d34;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background-color: #0d0d0f;
}

.equipamento-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grids de Atributos com 4 colunas (Range, Dice, Accuracy, Damage etc) */
.equipamento-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background-color: #1a1a1e;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #383840;
    margin-bottom: 10px;
}

.equipamento-texto {
    font-size: 0.95em;
    line-height: 1.5;
    color: #d1d1d6;
    text-align: justify;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px dashed #383840;
}
/* ==========================================
   TELA DE PRIORIDADES
   ========================================== */
.toggle-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-toggle {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.btn-ativo {
    background-color: #ff4747; /* Vermelho temático do Zombicide */
    color: #fff;
}

.btn-inativo {
    background-color: #2d2d34;
    color: #9e9ea8;
}

.tabela-prioridade {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9em;
    background-color: #121214;
    border-radius: 8px;
    overflow: hidden;
}

.tabela-prioridade thead tr {
    background-color: #1a1a1e;
    color: #888;
}

.tabela-prioridade th {
    padding: 12px 10px;
    border-bottom: 1px solid #383840;
    text-transform: uppercase;
    font-size: 0.85em;
}

.tabela-prioridade td {
    padding: 12px 10px;
    border-bottom: 1px solid #2d2d34;
    color: #d1d1d6;
}

/* Deixa linhas alternadas com fundo diferente */
.tabela-prioridade tr:nth-child(even) {
    background-color: #161619;
}

.tabela-prioridade .coluna-destaque {
    font-weight: bold;
    color: #ff4747;
    font-size: 1.1em;
}

.tabela-prioridade .coluna-alvo-header {
    text-align: left;
}

.tabela-prioridade .coluna-alvo {
    text-align: left;
    color: #e0e0e0;
    text-transform: capitalize;
}
/* ==========================================
   SELETOR DE IDIOMA
   ========================================== */
.lang-container {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #1a1a1e;
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid #383840;
}

.lang-container span {
    font-size: 0.9em;
}

#lang-selector {
    background: transparent;
    color: #e0e0e0;
    border: none;
    font-size: 0.9em;
    font-weight: bold;
    outline: none;
    cursor: pointer;
    /* Remove a setinha padrão em alguns navegadores para ficar mais limpo */
    appearance: none; 
    -webkit-appearance: none;
    padding-right: 5px;
}

/* Cor de fundo das opções quando o menu é aberto */
#lang-selector option {
    background-color: #121214;
    color: #e0e0e0;
}
/* ==========================================
   TELA DE SOBREVIVENTES - ELEMENTOS NOVOS
   ========================================== */
.sobrevivente-imagem-container {
    width: 100%;
    margin-bottom: 15px;
    border: 2px solid #2d2d34;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background-color: #0d0d0f;
}

.sobrevivente-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sobrevivente-body-container {
    background-color: #1a1a1e;
    border: 1px dashed #383840;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 20px;
    text-align: center;
}

.body-label {
    font-size: 0.85em;
    color: #9e9ea8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 8px;
}

.body-valor {
    font-size: 1em;
    color: #e0e0e0;
    font-weight: bold;
    text-transform: capitalize;
}


.hab-item {
    display: inline-block;
    margin: 0 5px;
}
/* ==========================================
   CLASSE UTILITÁRIA DE OCULTAÇÃO
   ========================================== */
.hidden {
    display: none !important;
}
/* ==========================================
   FILTROS DINÂMICOS (SOBREVIVENTES, INIMIGOS, EQUIPAMENTOS)
   ========================================== */
.filtro-section {
    margin-bottom: 15px;
}

.filtro-linha {
    margin-bottom: 12px;
}

.filtro-linha:last-child {
    margin-bottom: 0;
}

.filtro-label {
    display: block;
    font-size: 0.85em;
    color: #9e9ea8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: bold;
}

.filtro-container {
    display: flex;
    flex-wrap: wrap; /* Esta é a mágica que joga os botões para a linha de baixo */
    gap: 8px;
    padding-bottom: 8px;
}

/* Você pode apagar as regras .filtro-container::-webkit-scrollbar que estavam aqui, 
   pois como não há mais barra de rolagem, elas não são mais necessárias! */

.btn-filtro {
    background-color: #2d2d34;
    color: #e1e1e6;
    border: 1px solid #383840;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.9em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filtro:hover {
    background-color: #44444c;
}

.btn-filtro.ativo {
    background-color: #ff4747;
    color: #ffffff;
    border-color: #ff4747;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(255, 71, 71, 0.4);
}
/* ==========================================
   TELA DE HABILIDADES (CARDS DE RESULTADO)
   ========================================== */
.card-foco-habilidade {
    background-color: #1a1a1e;
    border: 1px solid #2d2d34;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.card-foco-habilidade h3 {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-size: 1.2em;
}

.desc-foco {
    margin-top: 10px;
    color: #d1d1d6;
    line-height: 1.5;
    font-size: 0.95em;
}
/* ==========================================
   HABILIDADES CLICÁVEIS (EFEITO HOVER)
   ========================================== */
.habilidade-clicavel {
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, background-color 0.15s;
}

.habilidade-clicavel:hover, .habilidade-clicavel:active {
    border-color: #4da6ff;
    background-color: #25252b;
    transform: translateX(4px);
}
/* ==========================================
   MENU RETRÁTIL (FILTRO DE CAIXAS)
   ========================================== */
.filtro-caixa-wrapper {
    margin-bottom: 15px;
}

.filtro-caixa-header {
    background-color: #2d2d34;
    color: #e1e1e6;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.2s;
    user-select: none;
}

.filtro-caixa-header:hover {
    background-color: #383840;
}

.filtro-caixa-header.aberto {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #383840;
}

.filtro-caixa-body {
    display: none;
    padding: 12px;
    background-color: #1a1a1e;
    border: 1px solid #383840;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.filtro-caixa-body.aberto {
    display: block;
}
/* ==========================================
   AJUSTE DE ROLAGEM (COMPENSAÇÃO DO HEADER FIXO)
   ========================================== */
#skills-results-foco, 
#characters-results-foco, 
#enemies-results-foco, 
#equipment-results-foco {
    scroll-margin-top: 80px;
}
/* ==========================================
   TELA DE CONTADOR DE AÇÕES (COMPLETO)
   ========================================== */
.tracker-item-selecionado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1e;
    border: 1px solid #383840;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.btn-remover-tracker {
    background: transparent;
    border: none;
    color: #ff4747;
    font-weight: bold;
    font-size: 1.2em;
    padding: 0;
}

.tracker-card {
    background-color: #1a1a1e;
    border: 1px solid #2d2d34;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Cabeçalho com o botão + */
.tracker-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #383840;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.header-info-personagem {
    display: flex;
    align-items: center;
}

/* ESSENCIAL: Controle do tamanho da imagem (Impede que fique gigante) */
.tracker-avatar {
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid #383840; 
    margin-right: 12px;
    background-color: #121214;
}

.tracker-name { 
    font-size: 1.2em; 
    font-weight: bold; 
    color: #ffffff; 
}

/* Novo Botão Discreto de Adicionar (+) */
.btn-add-mini {
    background-color: #2d2d34;
    color: #e1e1e6;
    border: 1px solid #44444c;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    font-weight: bold;
}
.btn-add-mini:hover {
    background-color: #4da6ff;
    color: #121214;
}

/* Menu Flutuante Oculto de Seleção de Ação */
.add-action-menu-container {
    position: relative;
}
.add-action-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a1a1e;
    border: 1px solid #44444c;
    border-radius: 6px;
    padding: 8px 0;
    width: 160px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    display: none;
    margin-top: 8px;
}
.add-action-menu.aberto {
    display: block;
}
.add-action-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.85em;
    color: #e1e1e6;
    transition: background 0.2s;
}
.add-action-item:hover {
    background-color: #2d2d34;
    color: #4da6ff;
}

/* ESSENCIAL: Grid horizontal para emparelhar as ações lado a lado */
.tracker-actions-grid {
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 15px;
}

/* Container que abriga os botões + e - lado a lado */
.tracker-header-actions {
    display: flex;
    gap: 10px;
}

/* Novo Botão Discreto de Remover (-) */
.btn-remove-mini {
    background-color: #2d2d34;
    color: #e1e1e6;
    border: 1px solid #44444c;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    font-weight: bold;
}
.btn-remove-mini:hover {
    background-color: #ff4747;
    color: #ffffff;
}

/* Indicador de botão de remover ativo */
.btn-remove-mini.ativo {
    background-color: #ff4747;
    color: #fff;
    border-color: #ff4747;
}

/* Caixas de Ação 100% Padronizadas e com Posicionamento Relativo */
.action-box {
    position: relative; /* Permite posicionar o 'x' solto na caixa */
    background-color: #121214; 
    border: 1px solid #2d2d34; 
    border-radius: 6px; 
    padding: 8px 6px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start;
    flex: 0 0 auto; 
    width: 86px;  
    height: 96px; 
}

/* Botão Flutuante de Exclusão (X) */
.btn-delete-action {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4747;
    color: #fff;
    border: 1px solid #1a1a1e;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.6);
    z-index: 10;
    transition: 0.1s;
}

.btn-delete-action:hover {
    transform: scale(1.15);
}

.action-label {
    font-size: 0.55em; 
    text-transform: uppercase; 
    font-weight: bold; 
    margin-bottom: 8px; 
    text-align: center; 
    color: #9e9ea8;
    letter-spacing: 0.5px;
    white-space: pre-wrap;
    line-height: 1.2;
    height: 2.4em; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.action-circle {
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    border: 2px solid transparent; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

/* Estado de ação gasta */
.action-circle.usada {
    background-color: #25252b !important; 
    border-color: #1a1a1e !important; 
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.4) !important;
}

.action-circle.usada::after {
    content: '✓'; 
    color: #555560; 
    font-size: 1.5em; 
    font-weight: bold;
}

.tracker-controls {
    display: flex; 
    gap: 10px; 
    margin-top: 15px; 
    border-top: 1px dashed #383840; 
    padding-top: 15px; 
    flex-wrap: wrap;
}

.btn-tracker-control {
    flex: 1 1 45%; 
    padding: 10px; 
    border-radius: 6px; 
    font-weight: bold; 
    border: none; 
    cursor: pointer; 
    font-size: 0.9em;
}
.btn-undo { background-color: #383840; color: #e1e1e6; }
.btn-end-turn { background-color: #b32d2e; color: #fff; }

/* ESSENCIAL: Cores das Ações no Painel */
.color-free { background-color: #4da6ff; box-shadow: 0 0 10px rgba(77, 166, 255, 0.4); }
.color-move { background-color: #ffcc00; box-shadow: 0 0 10px rgba(255, 204, 0, 0.4); }
.color-melee { background-color: #ff8800; box-shadow: 0 0 10px rgba(255, 136, 0, 0.4); }
.color-magic { background-color: #9933cc; box-shadow: 0 0 10px rgba(153, 51, 204, 0.4); }
.color-ranged { background-color: #4caf50; box-shadow: 0 0 10px rgba(76, 175, 80, 0.4); }
.color-combat { background-color: #ff4747; box-shadow: 0 0 10px rgba(255, 71, 71, 0.4); }
.color-enchantment { background-color: #cba6ff; box-shadow: 0 0 10px rgba(203, 166, 255, 0.4); }
.color-guard_action { background-color: #8d6e63; box-shadow: 0 0 10px rgba(141, 110, 99, 0.4); }
.color-skill { background-color: #00bcd4; box-shadow: 0 0 10px rgba(0, 188, 212, 0.4); }
.color-search { background-color: #e0e0e0; box-shadow: 0 0 10px rgba(224, 224, 224, 0.4); }