body {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  color: #222;
  background: #eafce2;
  overflow-x: hidden;
}

.grass-bg {
  background: linear-gradient(#d4f8b2, #a6e57e);
  min-height: 100vh;
  padding-bottom: 4rem;
}

header {
  background: #4CAF50;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

header h1 {
  margin: 0;
  font-size: 3rem;
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
}

.btn {
  background: #60c94a;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  display: inline-block;
  margin-top: 1rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}

.btn:hover {
  background: #4eac3c;
}

section {
  text-align: center;
  padding: 2rem 1rem;
}

#potAmount {
  font-size: 2.5rem;
  font-weight: bold;
  color: #388e3c;
}

.leaderboard ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 400px;
}

.leaderboard li {
  background: #ffffffb0;
  margin: 0.5rem auto;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rules ol {
  text-align: left;
  display: inline-block;
  max-width: 500px;
  margin: 0 auto;
  padding-left: 1.2rem;
  font-size: 1.1rem;
}

footer {
  background: #c2f0b2;
  text-align: center;
  padding: 1rem;
  color: #2e7d32;
  font-size: 0.9rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

.animation-area {
  position: relative;
  height: 120px;
  margin: 2rem 0;
  overflow: hidden;
}

.golf-ball {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, white 70%, #ccc);
  border-radius: 50%;
  position: absolute;
  left: -50px;
  bottom: 10px;
  animation: roll 6s linear infinite;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hole {
  width: 60px;
  height: 12px;
  background: radial-gradient(ellipse at center, #111 60%, transparent 70%);
  border-radius: 50%;
  position: absolute;
  right: 10px;
  bottom: 12px;
}

@keyframes roll {
  0% { left: -50px; transform: rotate(0deg); }
  100% { left: calc(100% - 60px); transform: rotate(720deg); }
}
