:root {
  --bg: #050706;
  --panel: #0b100d;
  --panel-soft: #101611;
  --line: rgba(80, 165, 116, 0.22);
  --line-strong: rgba(80, 165, 116, 0.34);
  --ink: #f6faf7;
  --muted: #a9b5ad;
  --green: #50a574;
  --green-soft: rgba(80, 165, 116, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(80, 165, 116, 0.14), transparent 24%),
    linear-gradient(180deg, #0a0d0b 0%, #050706 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 86%);
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.app-header,
.progress-rail,
.screen-card,
.meta-pill {
  border: 1px solid var(--line);
  background: rgba(11, 16, 13, 0.94);
  box-shadow: var(--shadow);
}

.app-header,
.hole-nav,
.section-head,
.screen-actions,
.split-actions,
.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-header {
  border-radius: 24px;
  padding: 18px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8de0ad 0%, #327754 100%);
  color: #031008;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow,
.hole-section span,
.meta-pill span,
.stat-card span {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: #9ccdaf;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 0.95;
}

h3 {
  font-size: 1.6rem;
}

.progress-rail {
  margin-top: 14px;
  border-radius: 18px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.progress-step {
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  border: 1px solid transparent;
}

.progress-step.is-active {
  color: var(--ink);
  background: var(--green-soft);
  border-color: var(--line-strong);
}

.screen-stack {
  margin-top: 16px;
}

.screen {
  display: none;
  gap: 16px;
}

.screen.is-active {
  display: grid;
}

.screen-card {
  border-radius: 24px;
  padding: 18px;
}

.hero-card {
  background:
    radial-gradient(circle at 85% 15%, rgba(80, 165, 116, 0.1), transparent 18%),
    rgba(11, 16, 13, 0.96);
}

.screen-copy,
.helper-copy,
.summary-copy,
.hole-section p,
.empty-state,
small {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.screen-grid,
.summary-grid,
.club-list,
.hole-meta-grid {
  display: grid;
  gap: 16px;
}

.screen-grid {
  grid-template-columns: 1fr;
}

.summary-grid,
.hole-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-grid {
  grid-template-columns: 1fr;
}

.form-card {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(80, 165, 116, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
}

input[type="range"] {
  padding: 0;
}

textarea {
  resize: vertical;
  min-height: 180px;
}

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.toggle-row input {
  width: 18px;
  height: 18px;
}

.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  border: none;
  color: #041008;
  background: linear-gradient(135deg, #87dbab 0%, #3f8d5d 100%);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(80, 165, 116, 0.08);
}

.pill {
  margin: 0;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(80, 165, 116, 0.08);
  color: var(--ink);
}

.club-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid rgba(80, 165, 116, 0.14);
}

.club-row,
.club-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.club-name {
  font-weight: 800;
}

.club-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.screen-actions {
  justify-content: flex-end;
}

.split-actions {
  justify-content: space-between;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
}

.summary-note-card {
  background:
    linear-gradient(180deg, rgba(80, 165, 116, 0.08), transparent 140px),
    rgba(11, 16, 13, 0.96);
}

.outlook-card h3 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.outlook-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.outlook-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(80, 165, 116, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.outlook-line span {
  color: var(--muted);
}

.outlook-line strong {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  color: var(--ink);
}

.hole-plan-card {
  display: grid;
  gap: 18px;
}

.hole-nav {
  align-items: center;
}

.hole-nav-copy {
  flex: 1;
  text-align: center;
}

.hole-title {
  margin: 6px 0 0;
  font-size: 1.25rem;
  color: var(--ink);
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(80, 165, 116, 0.24);
  background: rgba(80, 165, 116, 0.04);
}

.is-hidden {
  display: none;
}

.meta-pill {
  border-radius: 18px;
  padding: 14px;
}

.meta-pill strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.hole-detail {
  display: grid;
  gap: 16px;
}

.hole-section {
  display: grid;
  gap: 8px;
}

.hole-section p {
  margin: 0;
}

.comments-placeholder {
  border-top: 1px solid rgba(80, 165, 116, 0.14);
  padding-top: 16px;
}

@media (max-width: 560px) {
  .progress-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid,
  .hole-meta-grid {
    grid-template-columns: 1fr;
  }

  .outlook-line {
    align-items: start;
    flex-direction: column;
  }

  .app-header,
  .hole-nav,
  .screen-actions,
  .split-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .screen-actions .primary-button,
  .screen-actions .secondary-button,
  .button-row .primary-button,
  .button-row .secondary-button,
  .hole-nav .primary-button,
  .hole-nav .secondary-button {
    width: 100%;
  }
}
