#action-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--cor-tabuleiro);
  padding: 10px;
  border-radius: 8px;
  gap: 10px;
  flex-wrap: wrap;
}
#notification-area {
  font-size: 1em;
  font-weight: 500;
  flex-grow: 1;
  min-width: 200px;
}
#action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#trade-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
  font-style: italic;
  font-weight: 700;
  color: var(--cor-destaque);
  font-size: 0.85em;
}
.trade-item {
  background-color: var(--cor-fundo);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}
#vaca-trade-indicator {
  cursor: pointer;
  border: 2px solid var(--cor-destaque);
  transition: background-color 0.2s;
}
#vaca-trade-indicator:hover {
  background-color: #eaddc5;
}

/* --- Botões --- */
#action-buttons button {
  padding: 8px 15px;
  font-size: 0.9em;
  font-family: "Merriweather", serif;
  background-color: var(--cor-destaque);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}
#action-buttons button:hover {
  background-color: #a0522d;
}
#action-buttons button:disabled {
  background-color: #999;
  cursor: not-allowed;
}
#btn-desistir {
  background-color: #b22222;
  padding: 8px 12px;
  font-size: 0.8em;
  font-family: "Merriweather", serif;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}
#btn-desistir:hover {
  background-color: #8b0000;
}
#btn-reiniciar {
  background-color: #5a3a3a;
  padding: 8px 12px;
  font-size: 0.8em;
  font-family: "Merriweather", serif;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}
#btn-reiniciar:hover {
  background-color: #4a2c2a;
}
.info-button {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid var(--cor-destaque);
  background-color: var(--cor-fundo);
  color: var(--cor-destaque);
  font-size: 1em;
  font-weight: bold;
  font-family: "Merriweather", serif;
  cursor: pointer;
  transition: all 0.2s ease;
}
.info-button:hover {
  background-color: var(--cor-destaque);
  color: var(--cor-fundo);
}

/* --- Modais --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}
.modal-content {
  background-color: var(--cor-fundo);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--cor-destaque);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  min-width: 500px;
}
.modal-content h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-family: "Merriweather", serif;
  color: var(--cor-destaque);
}
.modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.modal-buttons button {
  padding: 10px 20px;
  font-size: 1em;
  font-family: "Merriweather", serif;
  background-color: var(--cor-destaque);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* --- Modal de Regras --- */
.regras-texto {
  text-align: left;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}
.regras-texto h4 {
  margin-top: 15px;
  margin-bottom: 5px;
}
.regras-texto ul {
  padding-left: 20px;
}
#regras-detalhadas {
  display: none;
}
.modal-content.mostrando-detalhes #regras-resumidas {
  display: none;
}
.modal-content.mostrando-detalhes #regras-detalhadas {
  display: block;
}
#btn-toggle-regras {
  background-color: #5a3a3a;
}

/* --- Modal Fim de Jogo --- */
.vencedor-texto {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--cor-destaque);
  margin-bottom: 15px;
}
#detalhes-rodadas {
  margin: 15px 0;
  width: 100%;
  border-collapse: collapse;
  display: table;
}
.rodada-resumo {
  display: table-row;
  font-size: 0.9em;
}
.rodada-resumo:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}
.rodada-resumo > div {
  display: table-cell;
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid #c8a780;
}
.rodada-header {
  display: table-header-group;
  font-weight: 700;
  color: var(--cor-destaque);
  font-family: "Merriweather", serif;
}

/* --- Slider de Dificuldade --- */
.difficulty-slider-container {
  margin: 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.difficulty-display {
  margin-bottom: 25px;
}
.difficulty-name {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Merriweather", serif;
  color: var(--cor-destaque);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}
.difficulty-description {
  font-size: 0.9rem;
  color: #666;
  min-height: 40px;
  transition: opacity 0.3s ease;
}
.slider-wrapper {
  position: relative;
  padding: 10px 0;
}
.difficulty-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    #27ae60 0%,
    #52c77b 20%,
    #f39c12 40%,
    #e67e22 60%,
    #c0392b 80%,
    #992d22 100%
  );
  outline: none;
  opacity: 0.9;
  transition: opacity 0.2s;
  cursor: pointer;
}
.difficulty-slider:hover {
  opacity: 1;
}
.difficulty-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--cor-destaque);
  transition: transform 0.2s ease;
}
.difficulty-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
.difficulty-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--cor-destaque);
  transition: transform 0.2s ease;
}
.difficulty-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}
.difficulty-markers {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  margin-top: 10px;
}
.marker {
  font-size: 0.75rem;
  color: #888;
  position: relative;
  transition: color 0.3s ease;
}
.marker.active {
  color: var(--cor-destaque);
  font-weight: 600;
}
.marker::before {
  content: "|";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0, 0, 0, 0.2);
}
.start-button {
  margin-top: 25px;
  padding: 12px 35px;
  font-size: 1.1rem;
  font-family: "Merriweather", serif;
  background: linear-gradient(135deg, var(--cor-destaque) 0%, #a0522d 100%);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}
.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}
.start-button.tutorial-mode {
  background: linear-gradient(
    135deg,
    var(--cor-tutorial) 0%,
    var(--cor-tutorial-light) 100%
  );
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}
.start-button.tutorial-mode:hover {
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* --- Outros Componentes --- */
#info-valores h3 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1rem;
}
#tabela-valores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.valor-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: var(--cor-fundo);
  padding: 3px 8px;
  border-radius: 15px;
  border: 2px solid var(--cor-destaque);
  font-weight: 700;
  font-size: 0.8em;
}
.valor-item-icon {
  font-size: 1.2em;
}
.valor-item-ponto {
  font-size: 1em;
  font-family: "Merriweather", serif;
}
#difficulty-display-header {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background-color 0.2s;
}
#difficulty-display-header:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
