.today-finished-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px;
}

.today-finished-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.today-finished-header h2 {
  margin: 0;
}

.today-finished-meta {
  font-size: 0.95rem;
  color: #4c5b4c;
}

.today-finished-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.today-finished-stat-card {
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf3 100%);
  border: 1px solid #d7dfd2;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  padding: 12px;
}

.today-finished-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: #1e321f;
}

.today-finished-stat-label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #5a6a5a;
}

.today-finished-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.today-finished-ball-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 10px;
  margin: 0 0 14px 0;
}

.today-finished-ball-stats-section {
  margin-top: 12px;
}

.today-finished-ball-stats-empty {
  border: 1px dashed #d3dccd;
  border-radius: 12px;
  background: #f9fbf7;
  color: #5b6b5b;
  padding: 12px;
  font-size: 0.9rem;
}

.today-finished-ball-stat-card {
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf4 100%);
  border: 1px solid #d7dfd2;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  padding: 11px 12px;
}

.today-finished-ball-stat-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5a6a5a;
}

.today-finished-ball-stat-winner {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #233323;
  line-height: 1.2;
}

.today-finished-ball-stat-detail {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #4d5c4d;
}

.today-finished-action-button {
  min-height: 2.8rem;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid #cfd9c9;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7f1 100%);
  color: #253325;
  box-shadow: 0 8px 18px rgba(24, 46, 28, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.today-finished-action-button:hover,
.today-finished-action-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(24, 46, 28, 0.12);
}

.today-finished-action-primary {
  background: linear-gradient(180deg, #2f7d42 0%, #276938 100%);
  border-color: #225b31;
  color: #fff;
}

.today-finished-action-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #edf3e8 100%);
  border-color: #c9d7c0;
  color: #203020;
}

.today-finished-action-accent {
  background: linear-gradient(180deg, #efe5bf 0%, #decf90 100%);
  border-color: #c6b26a;
  color: #3a2f11;
}

.today-finished-note {
  margin: 0 0 12px 0;
  color: #445444;
  font-size: 0.92rem;
}

.today-finished-admin-own-result {
  margin-top: 8px;
}

.today-finished-section-header {
  margin: 0 0 10px 0;
}

.today-finished-section-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #233323;
}

.today-finished-section-subtitle {
  margin-top: 4px;
  font-size: 0.84rem;
  color: #5a6a5a;
}

.today-finished-next-button {
  background: #2d6a4f;
  color: #fff;
  border-color: #1f4d39;
}

.today-finished-result {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 14px;
  overflow: hidden;
}

.today-finished-result > div {
  margin-bottom: 6px;
}

.today-finished-scale-target {
  display: inline-block;
  max-width: none;
}

.today-finished-result table {
  width: auto;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
}

.today-finished-result th,
.today-finished-result td {
  border: 1px solid #d7dfd2;
  padding: 3px 5px;
  text-align: center;
  white-space: normal;
}

.today-finished-result th {
  background: #edf5e9;
  font-size: 0.76rem;
}

.today-finished-result tr:nth-child(even) td {
  background: #fafcf8;
}

.today-finished-result .hole-meta {
  display: block;
  font-size: 0.66rem;
  color: #5f6d5f;
  line-height: 1.1;
}

.today-finished-result .score-meta {
  display: inline-block;
  margin-left: 1px;
  font-size: 0.82em;
  color: #5f6d5f;
}

.today-finished-result .summary-label-cell {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.today-finished-result .player-header-cell {
  min-width: 0;
}

.today-finished-result .player-name-full,
.today-finished-result .player-name-short,
.today-finished-result .player-hcp {
  display: block;
  line-height: 1.05;
}

.today-finished-result .player-name-full {
  font-size: 0.72rem;
  font-weight: 700;
}

.today-finished-result .player-name-short {
  display: none;
  font-size: 0.76rem;
  font-weight: 700;
}

.today-finished-result .player-hcp {
  font-size: 0.64rem;
  color: #5f6d5f;
}

.today-finished-result.prefer-short-names .player-name-full {
  display: none;
}

.today-finished-result.prefer-short-names .player-name-short {
  display: block;
}

@media (max-width: 700px) {
  .today-finished-wrapper {
    padding: 8px;
  }

  .today-finished-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .today-finished-result {
    padding: 10px;
  }

  .today-finished-stats,
  .today-finished-actions,
  .today-finished-ball-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-finished-stat-card {
    padding: 10px;
  }

  .today-finished-stat-value {
    font-size: 1.35rem;
  }

  .today-finished-ball-stat-card {
    padding: 10px;
  }

  .today-finished-ball-stat-winner {
    font-size: 0.92rem;
  }

  .today-finished-result table {
    font-size: 0.74rem;
  }

  .today-finished-result th,
  .today-finished-result td {
    padding: 3px 4px;
  }
}
