* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b3d24;
  color: #ffffff;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.screen {
  display: none;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  min-height: 100vh;
  flex-direction: column;
}
.screen.active { display: flex; }

h1 { font-size: 28px; margin: 10px 0; }
.subtle { color: #b7d9c5; margin-bottom: 30px; }

.big-btn {
  background: #ffffff;
  color: #0b3d24;
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-size: 20px;
  font-weight: 700;
  margin-top: 16px;
  width: 100%;
}
.secondary-btn {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff55;
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  margin-top: 12px;
  width: 100%;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.hole-label { font-size: 20px; font-weight: 700; }
.icon-btn {
  background: #ffffff22;
  border: none;
  color: #fff;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.gps-status {
  text-align: center;
  font-size: 13px;
  color: #b7d9c5;
  margin-bottom: 10px;
}
.gps-status.ok { color: #8ce29a; }
.gps-status.warn { color: #ffd479; }

.distance-panel {
  background: #ffffff11;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
}
.distance-value { font-size: 64px; font-weight: 800; line-height: 1; }
.distance-label { font-size: 14px; color: #b7d9c5; margin-top: 4px; }
.distance-row { display: flex; justify-content: space-around; margin-top: 14px; }
.distance-value-small { font-size: 28px; font-weight: 700; }

.hole-diagram {
  width: 100%;
  flex: 1;
  min-height: 220px;
  background: #ffffff08;
  border-radius: 18px;
  margin-bottom: 12px;
}

.score-panel {
  background: #ffffff11;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
}
.score-label { font-size: 13px; color: #b7d9c5; margin-bottom: 8px; }
.score-stepper { display: flex; align-items: center; justify-content: center; gap: 24px; }
.stepper-btn {
  width: 48px; height: 48px;
  border-radius: 24px;
  border: none;
  background: #ffffff22;
  color: #fff;
  font-size: 26px;
}
.score-value { font-size: 40px; font-weight: 800; min-width: 50px; }

.scorecard-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.scorecard-table th, .scorecard-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ffffff22;
}
.total-row { font-size: 18px; font-weight: 700; margin-bottom: 10px; }

.history-list { flex: 1; }
.history-item {
  background: #ffffff11;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.history-item .h-course { font-weight: 700; font-size: 16px; }
.history-item .h-meta { color: #b7d9c5; font-size: 13px; margin-top: 2px; }
