* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f7f2;
  color: #1f1f1f;
}

header {
  background: #1f4d3a;
  color: white;
  padding: 16px 20px;
}

header h1 {
  margin: 0;
  font-size: 24px;
}

nav {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.22);
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

h2 {
  margin-top: 0;
  color: #1f4d3a;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-block;
  text-align: center;
  background: #1f4d3a;
  color: white;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: bold;
}

.button:hover {
  background: #16392b;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  font-size: 16px;
}

button {
  background: #1f4d3a;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #16392b;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #e5e5e5;
}

th {
  background: #eef4f1;
  color: #1f4d3a;
}

.small-text {
  color: #666;
  font-size: 14px;
}

@media (min-width: 700px) {
  .button-group {
    flex-direction: row;
  }

  .button-group .button {
    flex: 1;
  }
}
.history-item {
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fcfcfa;
}

.history-item h3 {
  margin: 0 0 8px 0;
  color: #1f4d3a;
  font-size: 18px;
}

.history-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.history-score {
  font-weight: bold;
  margin-top: 8px;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .score-row {
    grid-template-columns: 1fr;
  }
}

.profile-header {
  margin-bottom: 20px;
}

.profile-header h2 {
  margin-bottom: 8px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.profile-stat {
  background: #fcfcfa;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 14px;
}

.profile-stat-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.profile-stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #1f4d3a;
}

.player-link {
  color: #1f4d3a;
  text-decoration: none;
  font-weight: bold;
}

.player-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .profile-stats {
    grid-template-columns: 1fr;
  }
}