.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 60px; }
.top h1 { font-family: var(--head); font-size: 28px; margin: 6px 0 18px; }
h2 { font-family: var(--head); font-size: 19px; margin: 0 0 4px; }
.card + .card { margin-top: 14px; }
.row { display: flex; gap: 10px; margin-top: 12px; }
.row input { flex: 1; min-width: 0; }
.code-input { text-transform: uppercase; letter-spacing: .2em; }
.small { font-size: 14px; }
.lead { margin: 16px 2px 12px; }

.team { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 4px solid var(--amber); }
.team-name { font-family: var(--head); font-weight: 700; font-size: 20px; word-break: break-word; }
.code { color: var(--amber); font-weight: 700; letter-spacing: .12em; }
.team-score { font-family: var(--head); font-weight: 700; font-size: 40px; color: var(--amber); white-space: nowrap; }
.team-score small { font-size: 18px; color: var(--muted); margin-left: 2px; }

.hole { background: var(--bg2); border-radius: 14px; margin-bottom: 10px; border: 1px solid transparent; overflow: hidden; }
.hole.open { border-color: var(--blue); }
.hole-head {
  width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0;
  padding: 14px 16px; cursor: pointer; text-align: left;
}
.hole-pts {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg3); color: var(--amber); font-family: var(--head); font-weight: 700; font-size: 17px;
}
.hole-text { flex: 1; min-width: 0; }
.hole-name { font-weight: 700; font-size: 17px; }
.hole-hint { color: var(--muted); font-size: 14px; }
.hole-status { flex: none; font-size: 13px; font-family: var(--mono); color: var(--muted); }
.hole.done .hole-pts { background: var(--green); color: var(--bg); }
.hole.done .hole-status { color: var(--green); }
.hole.partial .hole-pts { background: var(--blue); color: #fff; }
.hole.partial .hole-status { color: var(--blue-text); }

.hole-form { padding: 0 16px 16px; display: grid; gap: 8px; }
.hole-form label { font-size: 14px; color: var(--muted); }
.hole-form label b { color: var(--text); }

.switch { margin-top: 24px; width: 100%; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--green); color: var(--bg); font-weight: 700; padding: 14px 22px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); text-align: center;
  animation: pop .35s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
