.putt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr);
  gap: 1.25rem;
  padding: clamp(.85rem, 2.4vw, 1.5rem);
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: .82rem;
  background: var(--paper);
}
.putt p { color: var(--muted); }
.putt label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 650; }
.putt output { color: var(--accent); }
.putt input { width: 100%; min-height: 32px; margin: .08rem 0 .38rem; accent-color: var(--accent); }
.putt button { margin-top: .35rem; background: var(--accent); color: white; }
.putt button:disabled { opacity: .65; cursor: wait; }
.putting-green {
  position: relative;
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  width: min(100%, 320px);
  overflow: hidden;
  border: 1px solid #596e42;
  border-radius: 22% 37% 24% 20%;
  background: repeating-linear-gradient(170deg, #608d51 0 9%, #6a985b 9% 18%);
}
.putting-green::after {
  content: '';
  position: absolute;
  left: 48%;
  top: 83%;
  width: 0;
  height: 18%;
  border-left: 2px dotted #fff8;
  transform-origin: bottom center;
  transform: translateY(-100%) rotate(var(--aim, 0deg));
}
.cup, .ball { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.cup { left: 66%; top: 31%; width: 5%; aspect-ratio: 1; background: #192c20; border: 2px solid #f7f0db; }
.cup::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 50%;
  height: clamp(24px, 7vw, 42px);
  border-left: 2px solid #f7f0db;
}
.cup::after {
  content: '';
  position: absolute;
  left: calc(50% + 1px);
  bottom: calc(50% + clamp(14px, 5vw, 29px));
  width: 18px;
  height: 13px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: #ffe7a9;
}
.ball {
  z-index: 1;
  left: 48%;
  top: 83%;
  width: 3.6%;
  aspect-ratio: 1;
  background: #fffdf5;
  box-shadow: 1px 2px 3px #1d392a80;
}
@media (max-width: 640px) {
  .putt { grid-template-columns: minmax(0, 1fr); }
}
