body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: green;
  margin: 0;
  padding: 20px;
  color: white;
}

h1 {
  margin-bottom: 20px;
}

button {
  padding: 10px 20px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  color: #333;
  font-weight: bold;
}
button:hover {
  background: #ddd;
}

.hidden {
  display: none;
}

#field {
  position: relative;
  width: 600px;
  height: 300px;
  background: green;
  margin: 20px auto;
  border: 4px solid white;
  border-radius: 12px;
}

.goal {
  position: absolute;
  top: 100px;
  width: 20px;
  height: 100px;
  background: white;
}
#left-goal { left: 0; }
#right-goal { right: 0; }

.team {
  position: absolute;
  width: 60px;
  height: 60px;
}
#team1 { left: 50px; top: 120px; }
#team2 { right: 50px; top: 120px; }

#ball {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  top: 135px;
  left: 285px;
}

#scoreboard {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: bold;
  background: rgba(0,0,0,0.6);
  padding: 5px 15px;
  border-radius: 8px;
}

#final-screen {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#winner-logo {
  width: 150px;
  margin: 20px;
}

#trophy {
  width: 120px;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

canvas#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
