<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
  color: #333;
  min-height: 100vh;
  touch-action: manipulation;
}

/* App Container */
#app {
  max-width: 414px;
  margin: 0 auto;
  min-height: 100vh;
  background: white;
  position: relative;
  overflow: hidden;
}

/* Screen Management */
.screen {
  display: none;
  padding: 20px;
  min-height: 100vh;
  animation: slideIn 0.3s ease-out;
}

.screen.active {
  display: block;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Headers */
.header,
.game-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  position: relative;
}

.header h1 {
  color: #2c5530;
  font-size: 2.2em;
  font-weight: bold;
}

.header .version {
  font-size: 0.6em;
  color: #666;
  font-weight: normal;
}

/* Refresh Button */
.refresh-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2em;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: #f0f0f0;
  transform: rotate(180deg);
}

.refresh-btn:active {
  transform: scale(0.95) rotate(180deg);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hole-info h2 {
  color: #2c5530;
  font-size: 1.8em;
  margin-bottom: 5px;
}

.hole-details {
  display: flex;
  gap: 15px;
  color: #666;
  font-size: 0.9em;
}

#menu-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #666;
  padding: 10px;
  cursor: pointer;
}

/* Setup Section */
.setup-section {
  margin-bottom: 30px;
}

.setup-section h2 {
  color: #2c5530;
  margin-bottom: 15px;
  font-size: 1.3em;
}

/* Game Type Buttons */
.game-type-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.game-type-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s;
}

.game-type-btn.active {
  background: #2c5530;
  color: white;
  border-color: #2c5530;
}

/* Player Count */
.player-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.player-count button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #2c5530;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  transition: transform 0.1s;
}

.player-count button:active {
  transform: scale(0.95);
}

#player-count {
  font-size: 2em;
  font-weight: bold;
  color: #2c5530;
  min-width: 50px;
  text-align: center;
}

/* Player Inputs */
.player-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

.player-input input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
}

.player-input input[type="number"] {
  width: 80px;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  text-align: center;
}

.player-input label {
  font-size: 0.9em;
  color: #666;
  min-width: 40px;
}

/* Scoring Rules */
.scoring-rules {
  display: grid;
  gap: 15px;
}

.rule-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rule-input label {
  font-weight: 500;
  color: #333;
}

.rule-input input[type="number"] {
  width: 80px;
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 6px;
  text-align: center;
}

.checkbox-input {
  align-items: center;
  gap: 10px;
}

.checkbox-input input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Buttons */
.primary-btn,
.secondary-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.primary-btn {
  background: #2c5530;
  color: white;
}

.primary-btn:hover {
  background: #1e3d22;
}

.secondary-btn {
  background: #f5f5f5;
  color: #333;
  border: 2px solid #ddd;
}

.secondary-btn:hover {
  background: #e8e8e8;
}

/* Leaderboard */
.leaderboard {
  margin-bottom: 30px;
}

.player-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #ddd;
}

.player-score.leader {
  background: #e8f5e8;
  border-left-color: #2c5530;
}

.player-score.hot-streak {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.player-info {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.player-status {
  font-size: 0.8em;
  color: #666;
}

.player-points {
  font-size: 1.3em;
  font-weight: bold;
  color: #2c5530;
}

/* Score Input */
.score-input-section {
  margin-bottom: 30px;
}

.score-input-section h3 {
  margin-bottom: 20px;
  color: #2c5530;
  text-align: center;
}

.score-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.score-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.score-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.1s;
}

.score-btn.minus {
  background: #dc3545;
  color: white;
}

.score-btn.plus {
  background: #28a745;
  color: white;
}

.score-btn:active {
  transform: scale(0.9);
}

.score-display {
  min-width: 60px;
  text-align: center;
  font-size: 1.3em;
  font-weight: bold;
}

.par-indicator {
  font-size: 0.9em;
  color: #666;
  margin-top: 2px;
}

/* Hole Controls */
.hole-controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hole-controls button {
  flex: 1;
}

/* Live Stats */
.live-stats {
  margin-top: 20px;
}

.hole-result {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
}

.hole-result h4 {
  color: #2c5530;
  margin-bottom: 10px;
}

.result-breakdown {
  display: grid;
  gap: 8px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 300px;
}

.modal-content h3 {
  margin-bottom: 20px;
  text-align: center;
  color: #2c5530;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: none;
  background: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
}

.modal-content button:hover {
  background: #e8e8e8;
}

/* Scorecard Modal */
.scorecard-modal-content {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  padding: 20px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #666;
  cursor: pointer;
  padding: 5px;
  width: auto !important;
  margin: 0 !important;
}

.scorecard-header {
  text-align: center;
  margin-bottom: 20px;
}

.scorecard-course {
  color: #666;
  font-size: 0.9em;
}

.scorecard-table {
  overflow-x: auto;
  max-height: 60vh;
  overflow-y: auto;
}

.scorecard-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8em;
}

.scorecard-table th,
.scorecard-table td {
  padding: 8px 4px;
  text-align: center;
  border: 1px solid #ddd;
  min-width: 40px;
}

.scorecard-table th {
  background: #f8f9fa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.scorecard-table .current-hole {
  background: #fff3cd;
}

.scorecard-table .total-row {
  background: #f8f9fa;
  font-weight: 600;
}

.scorecard-table .final-total {
  background: #e8f5e8;
  border-top: 2px solid #2c5530;
}

.scorecard-table .points-row {
  background: #2c5530;
  color: white;
}

.scorecard-table .under-par {
  background: #d4edda;
  color: #155724;
}

.scorecard-table .over-par {
  background: #f8d7da;
  color: #721c24;
}

/* Responsive Design */
@media (max-width: 320px) {
  .player-input {
    flex-direction: column;
    gap: 8px;
  }

  .score-controls {
    gap: 10px;
  }

  .score-btn {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

  .scorecard-table {
    font-size: 0.7em;
  }

  .scorecard-table th,
  .scorecard-table td {
    padding: 6px 2px;
    min-width: 35px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1a2f1d 0%, #2c4530 100%);
  }

  #app {
    background: #1e1e1e;
    color: #e0e0e0;
  }

  .player-score {
    background: #2a2a2a;
    color: #e0e0e0;
  }

  .score-input {
    background: #2a2a2a;
    color: #e0e0e0;
  }

  .modal-content {
    background: #2a2a2a;
    color: #e0e0e0;
  }

  .scorecard-table th {
    background: #3a3a3a;
    color: #e0e0e0;
  }
}
</pre></body></html>