* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #0b0b0b;
  color: #f1f1f1;
  margin: 0;
  padding: 0;
}

.App {
  max-width: 1100px;
  margin: auto;
  padding: 30px 20px;
}

/* ===== TÍTULOS ===== */
h1 {
  text-align: center;
  color: #f68338;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ===== SEÇÕES ===== */
.rules,
.instructions {
  background: #fcfcfc;
  color: #333;
  padding: 25px;
  border-radius: 10px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.rules h2,
.instructions h2 {
  color: #f68338;
  margin-bottom: 10px;
}

.rules ul {
  padding-left: 20px;
  list-style-type: none;
  counter-reset: item;
}

.rules li {
  margin-bottom: 10px;
  counter-increment: item;
}

.rules li:before {
  content: counters(item, '.') '. ';
}

/* ===== WRAPPER ===== */
.wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 40px 0;
}

@media (min-width: 1024px) {
  .wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* ===== TOTAL ACUMULADO ===== */
.total-value {
  width: 100%;
  text-align: center;
  background: #f68338;
  color: #000;
  font-weight: bold;
  font-size: 2rem;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .total-value {
    width: fit-content;
    min-width: 280px;
    align-self: center;
  }
}

/* ===== FORMULÁRIO ===== */
.form {
  background: #1e1e1e;
  padding: 25px;
  border-radius: 10px;
  width: 100%;
}

.form label {
  display: block;
  margin-bottom: 15px;
}

.form strong {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #f68338;
}

.form input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  background: #2e2e2e;
  color: white;
  font-size: 1rem;
}

/* ===== CONFERÊNCIAS ===== */
.conferences {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.conference {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
}

@media (min-width: 768px) {
  .conference {
    width: calc(50% - 20px);
  }
}

.conference h3 {
  color: #f68338;
  margin-bottom: 10px;
  text-align: center;
}

.conference ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.conference li {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #252525;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.conference input {
  width: 45px;
  text-align: center;
  font-weight: bold;
  padding: 6px;
  border-radius: 5px;
  border: none;
  background: #333;
  color: #fff;
  font-size: 0.95rem;
}

.conference img {
  width: 30px;
  height: 30px;
}

.conference span {
  flex: 1;
  text-align: left;
  font-size: 0.95rem;
  word-wrap: break-word;
}

/* ===== BOTÕES ===== */
button {
  display: block;
  margin: 25px auto;
  padding: 12px 25px;
  font-size: 1rem;
  background-color: #f68338;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  transform: scale(1.05);
  background: #ffcb3b;
}

/* ===== RESULTADOS ===== */
.results {
  background: #1e1e1e;
  padding: 25px;
  border-radius: 10px;
  margin-top: 40px;
}

.results details summary {
  cursor: pointer;
  color: #f68338;
  font-weight: bold;
  margin: 10px 0;
}

.results ul {
  list-style: none;
  padding-left: 10px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }

  .rules,
  .instructions {
    padding: 20px;
  }

  .conference li {
    flex-direction: row;
    gap: 10px;
    padding: 8px;
  }

  .conference img {
    width: 26px;
    height: 26px;
  }

  .conference input {
    width: 40px;
  }

  .total-value {
    font-size: 1.6rem;
  }

  button {
    width: 90%;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .App {
    padding: 20px 10px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .rules,
  .instructions {
    padding: 15px;
    font-size: 0.9rem;
  }

  .conference span {
    font-size: 0.85rem;
  }

  .conference li {
    gap: 8px;
  }

  .conference input {
    width: 36px;
    font-size: 0.9rem;
  }

  button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}
