:root{
  --bg:#111827;
  --card:#1f2937;
  --accent:#22c55e;
  --text:#f9fafb;
  --muted:#9ca3af;
  --danger:#ef4444;
}

*{
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  display:flex;
  justify-content:center;
  padding:20px;
}

.app{
  width:100%;
  max-width:460px;
}

.card{
  background:var(--card);
  border-radius:20px;
  padding:20px;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

h1,h2{
  text-align:center;
}

label{
  display:block;
  margin-bottom:8px;
  color:var(--muted);
}

input[type="number"]{
  width:100%;
  padding:14px;
  border:none;
  border-radius:14px;
  font-size:22px;
  background:#374151;
  color:white;
  margin-bottom:18px;
}

.counter{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  margin-bottom:25px;
}

.counter button{
  width:60px;
  height:60px;
  border:none;
  border-radius:50%;
  font-size:28px;
  background:var(--accent);
  color:white;
  cursor:pointer;
}

.counter-value{
  font-size:48px;
  min-width:70px;
  text-align:center;
}

.main-btn{
  width:100%;
  padding:16px;
  border:none;
  border-radius:16px;
  background:var(--accent);
  color:white;
  font-size:20px;
  font-weight:bold;
  cursor:pointer;
  margin-top:12px;
}

.secondary-btn{
  width:100%;
  padding:14px;
  border:none;
  border-radius:16px;
  background:#374151;
  color:white;
  font-size:18px;
  cursor:pointer;
  margin-top:12px;
}

.row{
  display:flex;
  gap:10px;
}

.row button{
  flex:1;
}

.summary{
  background:#111827;
  padding:16px;
  border-radius:16px;
  margin-top:20px;
}

.summary p{
  margin:10px 0;
  font-size:18px;
}

.hole-indicator{
  text-align:center;
  color:var(--muted);
  margin-bottom:10px;
}

.hidden{
  display:none;
}

.final-score{
  font-size:60px;
  text-align:center;
  font-weight:bold;
  color:var(--accent);
}

.final-score.over{
  color:var(--danger);
}

.chart-wrap{
  margin-top:20px;
  background:#111827;
  padding:10px;
  border-radius:16px;
}
