* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  padding-bottom: 70px;
}

.content {
  padding: 16px;
  max-width: 700px;
  margin: 0 auto;
}

h1 { font-size: 22px; margin: 0 0 12px; }
h2 { font-size: 18px; margin: 16px 0 8px; }
h3 { font-size: 16px; margin: 16px 0 6px; }

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: white;
  border-top: 1px solid #ddd;
  padding: 4px 0;
}

.tabbar .tab {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #444;
  font-size: 20px;
  padding: 6px 2px;
}

.tabbar .tab span {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.tabbar .tab img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
}

.btn, .btn-small {
  font-size: 16px;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: #2d6a4f;
  color: white;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-small {
  padding: 8px 12px;
  font-size: 13px;
  background: #b3261e;
}

.grid-wrapper {
  overflow-x: auto;
}

.signup-grid {
  border-collapse: collapse;
  width: 100%;
}

.signup-grid th, .signup-grid td {
  padding: 6px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
}

.signup-grid .name-col {
  text-align: left;
  min-width: 90px;
  font-weight: 600;
}

.check-btn {
  border: none;
  background: none;
  font-size: 22px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}

.day-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.day-tab {
  padding: 8px 12px;
  border-radius: 8px;
  background: #e0e0e0;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.day-tab.active {
  background: #2d6a4f;
  color: white;
}

.round-block {
  background: white;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.matchup {
  padding: 6px 0;
  font-size: 15px;
}

.matchup-link {
  display: block;
  background: white;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 15px;
}

.vs {
  color: #888;
  font-size: 12px;
  margin: 0 4px;
}

.nav-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.sub-form, .add-form, .score-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
  padding: 14px;
  border-radius: 8px;
  margin-top: 10px;
  max-width: 320px;
}

.sub-form select, .sub-form input, .add-form input, .score-form input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.standings-table th, .standings-table td {
  padding: 10px;
  text-align: right;
  border-bottom: 1px solid #eee;
}

.standings-table th:first-child, .standings-table td:first-child {
  text-align: left;
}

.player-list {
  list-style: none;
  padding: 0;
}

.player-list li {
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.error {
  color: #b3261e;
  font-weight: 600;
}
