* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f0fdf4;
  color: #1a1a1a;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
#app { min-height: 100vh; display: flex; flex-direction: column; }

.screen { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  background: #14532d;
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title { font-size: 16px; font-weight: 700; }
.back-btn {
  background: none; border: none; color: #86efac; font-size: 15px; font-weight: 700;
  cursor: pointer; padding: 4px 8px; margin-left: -8px;
}
.next-btn {
  background: none; border: none; color: white; font-size: 15px; font-weight: 700;
  cursor: pointer; padding: 4px 8px; margin-left: auto; margin-right: -8px;
}
.next-btn:disabled { opacity: 0.5; }

.content { flex: 1; padding: 16px; max-width: 480px; width: 100%; margin: 0 auto; }

.login-screen {
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.logo { font-size: 56px; margin-bottom: 4px; }
.login-screen h1 { color: #14532d; font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.subtitle { color: #166534; font-size: 14px; margin-bottom: 24px; }

.card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: left;
  width: 100%;
  max-width: 400px;
}
.card-title { font-size: 17px; font-weight: 800; color: #14532d; margin-bottom: 2px; }
.card-sub { font-size: 13px; color: #6b7280; }

form.card { display: flex; flex-direction: column; gap: 4px; }

label { font-size: 13px; font-weight: 600; color: #374151; margin-top: 10px; }
input[type=email], input[type=password], input[type=text], input[type=number] {
  font-size: 16px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-top: 4px;
  width: 100%;
}
input:focus { outline: none; border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.15); }

.btn-primary {
  background: #14532d;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  width: 100%;
}
.btn-primary:active { background: #166534; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.hint { font-size: 12px; color: #6b7280; margin-top: 14px; text-align: center; }
.error-text {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-top: 10px;
}
.success-box {
  background: #f0fdf4; border: 1px solid #86efac; color: #14532d;
  border-radius: 10px; padding: 14px; font-size: 14px; margin-top: 14px; line-height: 1.5;
}

.search-box { margin-bottom: 10px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; margin-top: 0; }
.btn-search {
  background: #14532d; color: white; border: none; border-radius: 8px;
  padding: 0 18px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-search:active { background: #166534; }

.list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.list-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font: inherit;
}
.list-item:active { background: #f0fdf4; border-color: #16a34a; }
.list-item-title { font-size: 15px; font-weight: 700; color: #14532d; }
.list-item-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }

.tee-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.15); }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.row:last-child { border-bottom: none; }
.row strong { color: #14532d; font-size: 16px; }

.hole-info-row {
  display: flex;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 24px;
  overflow: hidden;
}
.hole-info { flex: 1; text-align: center; padding: 14px 8px; border-right: 1px solid #f3f4f6; }
.hole-info:last-child { border-right: none; }
.hole-info-label { font-size: 12px; color: #6b7280; font-weight: 600; margin-bottom: 4px; }
.hole-info-value { font-size: 20px; font-weight: 800; color: #14532d; }

.stroke-label { text-align: center; font-size: 13px; font-weight: 700; color: #6b7280; margin-bottom: 12px; }

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.stepper-btn {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 2px solid #14532d;
  background: white;
  color: #14532d;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.stepper-btn:active { background: #f0fdf4; }
.stepper-value {
  font-size: 48px;
  font-weight: 900;
  color: #14532d;
  min-width: 70px;
  text-align: center;
}

.points-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}
.points-label { font-size: 12px; color: #6b7280; font-weight: 600; margin-bottom: 4px; }
.points-value { font-size: 32px; font-weight: 900; color: #16a34a; }

.btn-pickup {
  width: 100%;
  background: white;
  border: 1px solid #d1d5db;
  color: #6b7280;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-pickup.active { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
