body {
  font-family: sans-serif;
  background: #f4f4f4;
  padding: 10px;
  margin: auto;
  max-width: 900px;
}

h1, h2, h3 {
  text-align: center;
}

.section {
  margin: 10px 0;
  background: white;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="number"],
input[type="text"] {
  flex: 1;
  padding: 6px;
  font-size: 16px;
  min-width: 80px;
}

button {
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #eee;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

th, td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}

th {
  background: #eee;
}

.summary {
  margin-top: 10px;
  font-weight: bold;
}

.editable {
  cursor: pointer;
}

.highlight1 {
  background-color: #fff5ba;
}

.highlight2 {
  background-color: #ffcccb;
}

/* Responsive */
@media (max-width: 600px) {
  .player-row {
    flex-direction: column;
    align-items: flex-start;
  }

  input[type="number"], input[type="text"],
  button {
    width: 100%;
  }

  table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th, td {
    min-width: 60px;
  }

  .section {
    padding: 10px;
  }
}
