:root {
  --ss-forest: #123D2B;
  --ss-forest-deep: #0C3022;
  --ss-green: #2F6845;
  --ss-pine: var(--ss-forest);
  --ss-fairway: var(--ss-green);
  --ss-sage: #7FAE6E;
  --ss-mist: #E8EDE1;
  --ss-cream: #F4EFE3;
  --ss-cream-soft: #FAF7EF;
  --ss-off-white: var(--ss-cream-soft);
  --ss-line: rgba(18, 61, 43, 0.16);
  --ss-ink: var(--ss-forest-deep);
  --ss-bg: var(--ss-off-white);
  --ss-surface: var(--ss-cream-soft);
  --ss-surface-warm: var(--ss-cream);
  --ss-text: var(--ss-pine);
  --ss-muted: #657469;
  --ss-border: rgba(18, 61, 43, 0.16);
  --ss-shadow: rgba(12, 48, 34, 0.08);
  --ss-primary: var(--ss-pine);
  --ss-primary-hover: var(--ss-forest-deep);
  --ss-accent: var(--ss-sage);
  --ss-radius-card: 20px;
  --ss-radius-pill: 999px;
  --ss-shadow-soft: 0 12px 28px var(--ss-shadow);
  --ink: var(--ss-forest-deep);
  --forest: var(--ss-forest);
  --fairway: var(--ss-green);
  --fairway-light: var(--ss-sage);
  --rough: #2f4d34;
  --green: var(--ss-sage);
  --sand: #e4d2aa;
  --sand-deep: #c7ab77;
  --paper: var(--ss-cream);
  --paper-deep: #e5dccb;
  --line: var(--ss-border);
  --line-strong: rgba(18, 61, 43, 0.26);
  --text-soft: var(--ss-muted);
  --white: var(--ss-surface);
  --success: #2c6a3d;
  --danger: #8a4132;
  --shadow: 0 12px 28px var(--ss-shadow);
  --ui-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --label-font: var(--ui-font);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ss-bg);
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
  color: var(--ink);
  font-family: var(--ui-font);
  background:
    linear-gradient(180deg, var(--ss-cream-soft) 0%, var(--ss-cream) 58%, var(--ss-mist) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 61, 43, 0.045), transparent 18%);
}

button,
select,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: var(--forest);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform 120ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  outline: 3px solid var(--fairway-light);
  outline-offset: 3px;
  transform: translateY(0);
}

.range-shell [hidden] {
  display: none !important;
}

.range-shell {
  width: min(1120px, calc(100% - 2rem));
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.range-hero,
.coach-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.range-hero {
  padding: clamp(1rem, 2.2vw, 1.45rem);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.8), rgba(242, 237, 227, 0.94));
  border: 1px solid rgba(24, 64, 43, 0.12);
}

.range-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 64, 43, 0.06), transparent 24%);
  pointer-events: none;
}

.coach-panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(244, 238, 223, 0.98));
  border: 1px solid rgba(24, 64, 43, 0.1);
}

.coach-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(127, 174, 110, 0.08), transparent 18%);
}

.hero-grid,
.voice-toolbar,
.coach-layout,
.coach-main-layout,
.result-controls,
.shot-details,
.decision-grid,
.session-metrics,
.sidebar-metrics,
.club-breakdown-list,
.session-scorecard-scroll,
.session-scorecard-grid {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  grid-template-areas: "copy panel";
  gap: 1rem 1.25rem;
  align-items: start;
}

.hero-copy-block {
  grid-area: copy;
  display: grid;
  gap: 0.62rem;
  max-width: 34rem;
  padding: 0.45rem 0 0;
  align-content: start;
}

.brand-masthead {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
  line-height: 1;
  text-decoration: none;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  line-height: 1;
  text-decoration: none;
}

.site-logo__picture {
  display: block;
  max-width: 100%;
}

.site-logo img,
.site-logo svg,
.brand-lockup {
  display: block;
  width: auto;
  height: 2.125rem;
  max-width: 11.75rem;
  filter: none;
  box-shadow: none;
  text-shadow: none;
}

.brand-masthead-compact {
  flex: 1 1 auto;
}

.brand-mark {
  display: block;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
}

.hero-setup-panel {
  grid-area: panel;
  display: grid;
  gap: 0.82rem;
  align-content: start;
  padding: clamp(0.9rem, 2vw, 1.18rem);
  border-radius: 18px;
  background: rgba(250, 247, 239, 0.82);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-setup-heading {
  display: grid;
  gap: 0.45rem;
}

.hero-setup-heading .panel-label {
  display: none;
}

.preview-voice-button svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-setup-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: clamp(1.22rem, 1.8vw, 1.52rem);
  font-weight: 750;
  line-height: 1.1;
}

.setup-helper {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.38;
}

.eyebrow,
.panel-label,
.picker-label,
.scene-kicker,
.detail-label,
.focus-label,
.hero-ritual-list span,
.shot-step {
  margin: 0;
  color: var(--forest);
  font-family: var(--label-font);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.range-hero h1,
.coach-panel h2,
.shot-card h3 {
  margin: 0;
  line-height: 1.02;
}

.range-hero .hero-headline {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2rem, 3.9vw, 3.65rem);
  line-height: 1;
  text-wrap: balance;
}

.hero-headline span {
  display: block;
}

.hero-copy-mobile {
  display: none;
}

.hero-copy-block::after {
  content: "";
  display: block;
  width: min(100%, 36rem);
  height: 1px;
  margin-top: 0.18rem;
  background: linear-gradient(90deg, rgba(18, 61, 43, 0.28), rgba(18, 61, 43, 0.04));
}

.hero-copy,
.scene-copy,
.setup-line,
.panel-note,
.feedback-copy,
.shot-details dd,
.voice-note,
.setup-feedback,
.club-note,
.shot-card p,
.detail-copy,
.focus-copy,
.hero-ritual-list p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-copy {
  margin: 0;
  max-width: 31rem;
}

.hero-support-line {
  margin: 0.1rem 0 0;
  color: var(--ss-fairway);
  font-family: var(--label-font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-sidecar {
  display: grid;
}

.hero-hole-card {
  padding: 1.2rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(245, 239, 223, 0.92), rgba(232, 215, 180, 0.58));
  border: 1px solid rgba(199, 171, 119, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-hole-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-hole-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(22, 49, 38, 0.12);
  color: var(--forest);
  font-family: var(--label-font);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-hole-visual {
  position: relative;
  margin-top: 1rem;
  height: 240px;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #31563a 0%, #456d46 35%, #5b8652 70%, #8db17d 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-hole-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 26px, rgba(255, 255, 255, 0) 26px 52px),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.15), transparent 24%);
}

.hole-tee,
.hole-fairway,
.hole-bunker,
.hole-green,
.hole-pin,
.hole-landing-ring {
  position: absolute;
}

.hole-tee {
  left: 50%;
  bottom: 22px;
  width: 82px;
  height: 18px;
  margin-left: -41px;
  border-radius: 999px;
  background: #214736;
  box-shadow: 0 0 0 4px rgba(255, 253, 248, 0.18);
}

.hole-fairway {
  left: 50%;
  bottom: 30px;
  width: 132px;
  height: 188px;
  margin-left: -66px;
  border-radius: 55% 55% 42% 42% / 38% 38% 62% 62%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 16px, rgba(255, 255, 255, 0) 16px 32px),
    linear-gradient(180deg, #8fb477 0%, #7ba068 30%, #688c58 60%, #5a7d4d 100%);
  transform: translateX(-50%);
}

.hole-bunker {
  width: 74px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eddcb9, #cfb07b);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35);
}

.hole-bunker-left {
  left: 56px;
  top: 78px;
  transform: rotate(-18deg);
}

.hole-bunker-right {
  right: 48px;
  top: 118px;
  transform: rotate(16deg);
}

.hole-green {
  left: 50%;
  top: 18px;
  width: 148px;
  height: 88px;
  margin-left: -74px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #b7d2a2, #9dbc89);
  border: 2px solid rgba(255, 253, 248, 0.48);
}

.hole-pin {
  left: 50%;
  top: 26px;
  width: 3px;
  height: 62px;
  margin-left: -1px;
  background: var(--white);
}

.hole-pin::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 28px;
  height: 18px;
  clip-path: polygon(0 0, 100% 30%, 0 100%);
  background: #1e5f33;
}

.hole-landing-ring {
  left: 50%;
  top: 104px;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 253, 248, 0.58);
}

.hero-ritual-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.hero-ritual-list li {
  padding: 0.95rem 1rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.58), rgba(247, 241, 227, 0.5));
  box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.06);
}

.hero-ritual-list p {
  margin: 0.4rem 0 0;
}

.shot-count-picker {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.handedness-picker {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.handedness-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.handedness-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.handedness-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.handedness-option-copy {
  display: flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 227, 0.72);
  color: var(--forest);
  font-family: var(--label-font);
  font-size: 0.9rem;
  font-weight: 720;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.handedness-option:hover .handedness-option-copy {
  transform: translateY(-1px);
  background: rgba(246, 243, 235, 0.98);
}

.handedness-option input:checked + .handedness-option-copy {
  background: #f0f7ec;
  border-color: rgba(22, 49, 38, 0.72);
  box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.5);
}

.handedness-option input:focus-visible + .handedness-option-copy {
  outline: none;
  border-color: rgba(93, 128, 86, 0.42);
  box-shadow: 0 0 0 4px rgba(175, 196, 154, 0.28);
}

.shot-count-entry {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.58rem;
}

.shot-count-entry-copy,
.shot-count-note {
  margin: 0;
  color: var(--text-soft);
}

.shot-count-entry-copy {
  font-family: var(--display-font);
  font-size: 0.92rem;
  line-height: 1.45;
}

.shot-count-input {
  width: 100%;
  min-height: 3.05rem;
  padding: 0.68rem 0.88rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 227, 0.72);
  color: var(--ink);
  font-family: var(--label-font);
  font-size: 1rem;
  font-weight: 720;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
  box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.04);
}

.shot-count-input::placeholder {
  color: rgba(22, 49, 38, 0.28);
}

.shot-count-input::-webkit-outer-spin-button,
.shot-count-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.shot-count-input[type="number"] {
  -moz-appearance: textfield;
}

.shot-count-input:hover {
  transform: translateY(-1px);
  background: rgba(246, 243, 235, 0.98);
}

.shot-count-input:focus {
  outline: none;
  border-color: rgba(93, 128, 86, 0.42);
  box-shadow: 0 0 0 4px rgba(175, 196, 154, 0.28);
}

.shot-count-input:invalid {
  border-color: rgba(138, 65, 50, 0.4);
}

.shot-count-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.input-shell {
  position: relative;
  display: block;
}

.input-shell .shot-count-input {
  padding-right: 4rem;
}

.input-shell-badge {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.08);
  color: rgba(22, 49, 38, 0.68);
  font-family: var(--label-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.setup-feedback,
.feedback-copy {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(22, 49, 38, 0.12);
}

.setup-feedback {
  position: relative;
  min-height: 5.4rem;
  padding: 1.1rem 1.25rem 1.1rem 3.5rem;
  background: rgba(240, 236, 226, 0.96);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.05);
}

.setup-feedback::before {
  content: "i";
  position: absolute;
  top: 1.25rem;
  left: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(22, 49, 38, 0.65);
  color: rgba(22, 49, 38, 0.78);
  font-family: var(--label-font);
  font-size: 0.88rem;
  font-weight: 700;
}

.feedback-copy {
  background:
    linear-gradient(90deg, rgba(63, 106, 71, 0.08), rgba(255, 253, 248, 0.88));
  color: var(--ink);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.58rem;
  margin-top: 0.35rem;
}

.hero-setup-panel .hero-actions {
  margin-top: 0.25rem;
}

.hero-setup-panel .primary-button {
  width: 100%;
}

.hero-start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.28rem;
  padding: 0.78rem 1.12rem;
  font-family: var(--label-font);
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.hero-start-button::after {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.club-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 280px) auto 1fr;
  align-items: end;
  gap: 0.9rem 1rem;
}

.voice-picker-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.2rem;
  align-items: end;
  gap: 0.62rem;
}

.club-toolbar {
  margin-top: 1.2rem;
}

.voice-picker,
.club-picker {
  display: grid;
  gap: 0.58rem;
}

.voice-select,
.club-select {
  width: 100%;
  min-height: 3.05rem;
  padding: 0.68rem 2.6rem 0.68rem 0.88rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 227, 0.72);
  color: var(--ink);
  font-family: var(--label-font);
  font-size: 1rem;
  font-weight: 720;
  box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.04);
}

.voice-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(22, 49, 38, 0.58) 50%),
    linear-gradient(135deg, rgba(22, 49, 38, 0.58) 50%, transparent 50%);
  background-position:
    calc(100% - 1.55rem) calc(50% - 0.18rem),
    calc(100% - 1.1rem) calc(50% - 0.18rem);
  background-size: 0.55rem 0.55rem;
  background-repeat: no-repeat;
}

.voice-select:hover,
.club-select:hover {
  background-color: rgba(246, 243, 235, 0.98);
}

.voice-select:focus,
.club-select:focus {
  outline: none;
  border-color: rgba(93, 128, 86, 0.42);
  box-shadow: 0 0 0 4px rgba(175, 196, 154, 0.28);
}

.voice-note,
.club-note {
  margin: 0;
}

.voice-note {
  min-height: 1.7em;
  color: var(--forest);
  font-size: 0.96rem;
}

.hero-setup-panel .voice-note {
  display: none;
}

.club-note {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(241, 235, 222, 0.72));
  box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.06);
}

.primary-button,
.ghost-button,
.success-button,
.danger-button {
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0.95rem 1.35rem;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.primary-button {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(18, 61, 43, 0.14);
}

.ghost-button {
  background: rgba(255, 253, 248, 0.82);
  color: var(--forest);
  border-color: rgba(22, 49, 38, 0.14);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.05rem;
  padding: 0;
  border-radius: 12px;
  background: rgba(232, 237, 225, 0.95);
  color: var(--forest);
  border-color: rgba(143, 173, 122, 0.4);
  box-shadow: none;
}

.success-button {
  background: rgba(44, 106, 61, 0.08);
  border-color: rgba(44, 106, 61, 0.18);
  color: var(--success);
}

.danger-button {
  background: rgba(138, 65, 50, 0.08);
  border-color: rgba(138, 65, 50, 0.16);
  color: var(--danger);
}

.danger-button-penalty {
  background: rgba(125, 80, 36, 0.1);
  border-color: rgba(125, 80, 36, 0.18);
  color: #7d5024;
}

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

.icon-button:hover {
  box-shadow: 0 12px 24px rgba(22, 49, 38, 0.08);
}

.primary-button:focus-visible,
.ghost-button:focus-visible,
.success-button:focus-visible,
.danger-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(175, 196, 154, 0.28);
}

.primary-button:hover {
  box-shadow: 0 14px 28px rgba(33, 71, 54, 0.22);
}

.primary-button:disabled,
.ghost-button:disabled,
.success-button:disabled,
.danger-button:disabled,
.shot-count-input:disabled,
.club-select:disabled,
.voice-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.coach-layout {
  display: grid;
  margin-top: 0.85rem;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

.coach-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.coach-panel {
  padding: 1rem;
}

.session-scorecard-panel {
  padding: 1.2rem 1.25rem 1.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 22px;
  border: 1px solid rgba(22, 49, 38, 0.12);
  background:
    linear-gradient(180deg, rgba(247, 241, 227, 0.92), rgba(239, 232, 218, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.session-scorecard-scroll {
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.session-scorecard-grid {
  --scorecard-columns: 1;
  display: grid;
  gap: 0.5rem;
  min-width: max-content;
}

.session-scorecard-row {
  display: grid;
  grid-template-columns: 88px repeat(var(--scorecard-columns), minmax(72px, 1fr));
  gap: 0.35rem;
  min-width: max-content;
}

.session-scorecard-label,
.session-scorecard-cell {
  min-height: 62px;
  padding: 0.55rem 0.4rem;
  border-radius: 16px;
  border: 1px solid rgba(22, 49, 38, 0.12);
}

.session-scorecard-label {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(236, 227, 202, 0.9), rgba(244, 238, 223, 0.94));
  color: var(--forest);
  font-family: var(--label-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 1px 0 0 rgba(22, 49, 38, 0.08);
}

.session-scorecard-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(242, 236, 223, 0.86));
  color: var(--ink);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.session-scorecard-cell.is-shots {
  min-height: 72px;
}

.session-scorecard-cell.is-result {
  min-height: 50px;
}

.session-scorecard-cell.is-current {
  background:
    linear-gradient(180deg, rgba(224, 236, 208, 0.98), rgba(247, 243, 232, 0.96));
  box-shadow: inset 0 0 0 1px rgba(63, 106, 71, 0.14);
}

.session-scorecard-cell.is-great {
  background:
    linear-gradient(180deg, rgba(221, 239, 221, 0.96), rgba(247, 250, 244, 0.95));
  box-shadow: inset 0 0 0 1px rgba(44, 106, 61, 0.14);
}

.session-scorecard-cell.is-playable {
  background:
    linear-gradient(180deg, rgba(234, 240, 221, 0.96), rgba(249, 250, 244, 0.95));
  box-shadow: inset 0 0 0 1px rgba(109, 137, 64, 0.14);
}

.session-scorecard-cell.is-miss {
  background:
    linear-gradient(180deg, rgba(245, 233, 228, 0.96), rgba(252, 247, 245, 0.95));
  box-shadow: inset 0 0 0 1px rgba(138, 65, 50, 0.1);
}

.session-scorecard-cell.is-penalty {
  background:
    linear-gradient(180deg, rgba(246, 238, 224, 0.96), rgba(251, 247, 241, 0.95));
  box-shadow: inset 0 0 0 1px rgba(125, 80, 36, 0.12);
}

.session-scorecard-cell.is-pending {
  color: rgba(22, 49, 38, 0.78);
}

.session-scorecard-shot-number,
.session-scorecard-club,
.session-scorecard-result {
  font-family: var(--label-font);
}

.session-scorecard-shot-meta {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
}

.session-scorecard-shot-number {
  font-size: 0.88rem;
  font-weight: 700;
}

.session-scorecard-yardage {
  color: var(--forest);
  font-family: var(--label-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.session-scorecard-club {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.05;
}

.session-scorecard-result {
  min-height: 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
}

.scorecard-panel {
  position: sticky;
  top: 1rem;
  align-self: start;
  background:
    linear-gradient(180deg, rgba(245, 239, 223, 0.98), rgba(229, 221, 200, 0.96));
}

.ledger-stripe {
  height: 10px;
  margin-top: 1rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--rough) 0 16%, var(--fairway) 16% 34%, var(--green) 34% 52%, var(--sand) 52% 68%, var(--fairway-light) 68% 100%);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-heading-copy {
  max-width: 40ch;
  min-width: 0;
}

.panel-heading-tight {
  margin-bottom: 0.9rem;
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.panel-note {
  margin: 0.28rem 0 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  background: rgba(63, 106, 71, 0.1);
  border: 1px solid rgba(63, 106, 71, 0.18);
  color: var(--forest);
  font-family: var(--label-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.inline-ghost-button {
  padding: 0.68rem 1rem;
}

.session-stepbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.status-pill-subtle {
  background: rgba(255, 253, 248, 0.88);
  border-color: rgba(22, 49, 38, 0.12);
}

.shot-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  margin-top: 0.15rem;
  min-width: 0;
}

.shot-hud-copy {
  display: grid;
  gap: 0.42rem;
  max-width: 62ch;
  min-width: 0;
}

.game-state-panel {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 0.58rem 0 0.62rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.shot-count-strip {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2rem;
  margin: 0;
  color: var(--forest);
  font-family: var(--label-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wind-visual,
.elevation-visual {
  position: absolute;
  left: 0.82rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  max-width: calc(100% - 1.64rem);
  padding: 0.24rem 0.34rem;
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.62), rgba(237, 231, 215, 0.36));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 12px 30px rgba(22, 49, 38, 0.14);
  backdrop-filter: blur(16px) saturate(1.24);
}

.wind-visual {
  bottom: 0.82rem;
}

.elevation-visual {
  bottom: 3.1rem;
}

.wind-arrow,
.elevation-mark {
  --wind-arrow-turn: 0deg;
  position: relative;
  display: inline-block;
  width: 1.12rem;
  height: 1.12rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.72), rgba(255, 253, 248, 0.3) 54%, rgba(237, 231, 215, 0.2));
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 248, 0.34),
    inset 0 -5px 10px rgba(22, 49, 38, 0.08);
}

.wind-arrow::before,
.elevation-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.64rem;
  height: 0.64rem;
  background: var(--forest);
  clip-path: polygon(50% 0, 92% 42%, 67% 42%, 67% 100%, 33% 100%, 33% 42%, 8% 42%);
}

.wind-arrow::before {
  transform: translate(-50%, -50%) rotate(var(--wind-arrow-turn));
  transform-origin: 50% 50%;
}

.elevation-mark::before {
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.elevation-visual[data-elevation-direction="down"] .elevation-mark::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

.elevation-visual[data-elevation-direction="level"] .elevation-mark::before {
  width: 0.62rem;
  height: 0.18rem;
  border-radius: 999px;
  clip-path: none;
}

.wind-copy,
.elevation-copy {
  display: block;
  min-width: 0;
}

.wind-speed,
.elevation-label {
  display: block;
  white-space: nowrap;
  color: var(--forest);
  font-family: var(--display-font);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.shot-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(22, 49, 38, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(237, 231, 215, 0.78));
}

.shot-visual.is-pending-image {
  display: grid;
  min-height: 220px;
  place-items: center;
}

.shot-visual.is-pending-image::before {
  content: "Image pending";
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shot-visual-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  object-fit: cover;
  object-position: center;
}

.shot-visual.is-pending-image .shot-visual-image,
.shot-visual.is-pending-image .wind-visual,
.shot-visual.is-pending-image .elevation-visual {
  display: none;
}

.shot-readout,
.shot-readout-detail {
  margin: 0;
}

.shot-readout {
  color: var(--forest);
  font-family: var(--display-font);
  font-size: clamp(1.12rem, 1.62vw, 1.42rem);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shot-readout-detail {
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.current-shot-panel .scene-copy {
  margin-top: 0;
  max-width: 58ch;
  padding: 0.62rem 0.72rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(250, 247, 239, 0.72);
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.45;
}

.scene-copy:empty {
  display: none;
}

.current-shot-title {
  margin: 0.18rem 0 0;
  color: var(--forest);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.round-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0;
  min-width: 0;
  max-width: 100%;
}

.round-progress-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  min-height: 2.05rem;
  padding: 0.44rem 0.62rem;
  border-radius: 999px;
  background: rgba(33, 71, 54, 0.08);
  border: 1px solid rgba(33, 71, 54, 0.14);
  color: var(--forest);
  font-family: var(--label-font);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.round-topbar-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.round-menu {
  position: relative;
}

.round-menu-button {
  width: 2.55rem;
  min-height: 2.35rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
}

.round-menu-button:disabled {
  display: none;
}

.round-menu-icon,
.round-menu-icon::before,
.round-menu-icon::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.round-menu-icon {
  position: relative;
}

.round-menu-icon::before,
.round-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.round-menu-icon::before {
  top: -0.36rem;
}

.round-menu-icon::after {
  top: 0.36rem;
}

.round-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 4;
  width: min(14rem, calc(100vw - 1.5rem));
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 12px 26px rgba(18, 61, 43, 0.14);
}

.round-exit-button {
  min-height: 2.9rem;
  width: 100%;
}

.end-game-prompt {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(138, 65, 50, 0.14);
  background:
    linear-gradient(180deg, rgba(252, 247, 245, 0.98), rgba(244, 234, 229, 0.94));
}

.end-game-copy {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.end-game-actions,
.transport-controls {
  min-width: 0;
  max-width: 100%;
}

.end-game-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.live-round-stack,
.summary-panel {
  display: grid;
  gap: 0.68rem;
  margin-top: 0.72rem;
  min-width: 0;
  max-width: 100%;
}

.transport-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(250, 247, 239, 0.78);
  box-shadow: none;
}

.transport-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  align-items: stretch;
}

.transport-primary-button {
  position: relative;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.58rem 0.86rem 0.58rem 3.15rem;
  text-align: left;
  font-family: var(--label-font);
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  background: var(--forest);
}

.transport-primary-button::before {
  content: "↺";
  position: absolute;
  left: 0.58rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.16);
  border: 1px solid rgba(255, 253, 248, 0.22);
  color: var(--white);
  font-family: var(--label-font);
  font-size: 1rem;
  font-weight: 700;
}

.transport-primary-button::after {
  content: "Ready on demand";
  display: block;
  margin-top: 0.18rem;
  color: rgba(255, 253, 248, 0.78);
  font-family: var(--label-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.transport-primary-button.is-playing::before {
  content: "II";
}

.transport-primary-button.is-playing::after {
  content: "Audio playing";
}

.transport-primary-button.is-paused::before {
  content: "▶";
}

.transport-primary-button.is-paused::after {
  content: "Audio paused";
}

.transport-primary-button.is-loading::before {
  content: "…";
  animation: transport-pulse 900ms ease-in-out infinite;
}

@keyframes transport-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.club-decision-panel,
.shot-log-panel,
.summary-panel,
.club-breakdown-item,
.session-metrics div {
  border-radius: 16px;
  border: 1px solid var(--line);
}

.club-decision-panel,
.shot-log-panel,
.summary-panel {
  padding: 0.7rem;
  box-shadow: none;
}

.club-decision-panel {
  background: rgba(250, 247, 239, 0.78);
}

.shot-log-panel {
  background: rgba(250, 247, 239, 0.78);
}

.summary-panel {
  background: rgba(250, 247, 239, 0.78);
}

.summary-round-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.55rem);
  border-radius: 18px;
  background: var(--forest);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 253, 248, 0.18),
    0 12px 28px rgba(12, 48, 34, 0.12);
}

.summary-round-card .panel-label,
.summary-round-card .summary-title,
.summary-round-card .summary-copy {
  color: var(--white);
}

.summary-round-card .panel-label,
.summary-score-label,
.summary-stat-grid dt {
  color: rgba(255, 253, 248, 0.78);
}

.summary-round-card .summary-title {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.06;
}

.summary-round-card .summary-copy {
  max-width: 58ch;
  color: rgba(255, 253, 248, 0.82);
}

.summary-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.summary-score-main,
.summary-score-notes,
.summary-stat-grid div {
  min-width: 0;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.12);
}

.summary-score-main {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 1rem;
}

.summary-score-label {
  margin: 0;
  font-family: var(--label-font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-score {
  margin: 0.1rem 0 0;
  color: var(--white);
  font-family: var(--label-font);
  font-size: clamp(3.25rem, 10vw, 6.3rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
}

.summary-score-notes {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  padding: 1rem;
}

.summary-verdict,
.summary-next-cue {
  margin: 0;
  overflow-wrap: anywhere;
}

.summary-verdict {
  color: var(--white);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.2;
}

.summary-next-cue {
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.98rem;
  line-height: 1.5;
}

.summary-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.summary-stat-grid div {
  padding: 0.85rem;
}

.summary-stat-grid dt {
  margin-bottom: 0.35rem;
  font-family: var(--label-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-stat-grid dd {
  margin: 0;
  color: var(--white);
  font-family: var(--label-font);
  font-size: clamp(0.98rem, 2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.summary-actions {
  display: flex;
  justify-content: flex-start;
}

.summary-play-again-button {
  min-width: min(100%, 12rem);
  min-height: 3.1rem;
  background:
    linear-gradient(180deg, #fffdf8, #e8d7b4);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(17, 31, 23, 0.14);
}

.current-shot-panel .club-toolbar {
  margin-top: 0;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.8rem;
  min-width: 0;
  max-width: 100%;
}

.current-shot-panel .club-note {
  font-size: 0.96rem;
  padding-top: 0.1rem;
}

.summary-intro {
  display: grid;
  gap: 0.35rem;
}

.summary-title {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  line-height: 1.16;
}

.summary-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.scene-copy {
  margin: 0;
  max-width: 55ch;
  overflow-wrap: anywhere;
}

.session-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0;
}

.session-metrics div,
.club-breakdown-item {
  padding: 1rem;
  background: rgba(255, 253, 248, 0.82);
}

.session-metrics dt {
  margin-bottom: 0.35rem;
  color: var(--text-soft);
  font-family: var(--label-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-metrics dd {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.result-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.shot-log-groups {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.shot-log-group {
  display: grid;
  gap: 0.25rem;
}

.next-shot-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(22, 49, 38, 0.1);
  background: rgba(248, 245, 237, 0.92);
}

.next-shot-button {
  width: 100%;
  min-height: auto;
  padding-block: 0.75rem;
}

.result-controls-assessment {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot-log-group-label {
  margin: 0;
  color: var(--forest);
  font-family: var(--label-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assessment-button {
  --assessment-accent: var(--forest);
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 4.8rem;
  padding: 0.8rem 0.85rem;
  font-weight: 700;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(242, 236, 223, 0.92));
  border-color: rgba(22, 49, 38, 0.12);
  color: var(--forest);
  border-radius: 20px;
}

.assessment-button[data-range-coach-assessment-field="result"][data-range-coach-assessment-value="great"] {
  --assessment-accent: var(--success);
}

.assessment-button[data-range-coach-assessment-field="result"][data-range-coach-assessment-value="playable"] {
  --assessment-accent: var(--fairway);
}

.assessment-button[data-range-coach-assessment-field="result"][data-range-coach-assessment-value="miss"] {
  --assessment-accent: #8f6a2d;
}

.assessment-button[data-range-coach-assessment-field="result"][data-range-coach-assessment-value="penalty"] {
  --assessment-accent: var(--danger);
}

.assessment-mark {
  position: relative;
  display: block;
  width: 3.2rem;
  height: 2.7rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(232, 224, 205, 0.72));
  border: 1px solid rgba(22, 49, 38, 0.1);
  overflow: hidden;
  color: var(--assessment-accent);
}

.assessment-mark::before,
.assessment-mark::after {
  content: "";
  position: absolute;
}

.assessment-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.assessment-label,
.assessment-note {
  display: block;
  overflow-wrap: anywhere;
}

.assessment-label {
  color: var(--forest);
  font-size: 1.06rem;
  line-height: 1.05;
}

.assessment-note {
  color: rgba(22, 49, 38, 0.62);
  font-family: var(--label-font);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.assessment-button[data-range-coach-assessment-field="shape"] .assessment-mark,
.assessment-button[data-range-coach-assessment-field="strike"] .assessment-mark {
  background:
    linear-gradient(180deg, rgba(245, 239, 223, 0.84), rgba(255, 253, 248, 0.78));
}

.result-controls-target {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.shot-result-selector {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.shot-result-selector__option {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 0.24rem;
  min-height: 5.55rem;
  padding: 0.6rem 0.42rem 0.55rem;
  border-radius: 14px;
  background: var(--white);
  border-color: rgba(22, 49, 38, 0.16);
  color: var(--forest);
  text-align: center;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.shot-result-selector__option:hover {
  transform: none;
  box-shadow: none;
}

.shot-result-selector__option.is-selected {
  background: #f0f7ec;
  border-color: rgba(22, 49, 38, 0.72);
  box-shadow: none;
}

.shot-result-selector__icon {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  background: currentColor;
  color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.shot-result-selector__icon--great {
  mask-image: url("/assets/result_great-ba25271e.svg");
  -webkit-mask-image: url("/assets/result_great-ba25271e.svg");
}

.shot-result-selector__icon--playable {
  mask-image: url("/assets/result_playable-101e081a.svg");
  -webkit-mask-image: url("/assets/result_playable-101e081a.svg");
}

.shot-result-selector__icon--miss {
  mask-image: url("/assets/result_miss-83b33db1.svg");
  -webkit-mask-image: url("/assets/result_miss-83b33db1.svg");
}

.shot-result-selector__icon--penalty {
  mask-image: url("/assets/result_penalty-48e6a2cd.svg");
  -webkit-mask-image: url("/assets/result_penalty-48e6a2cd.svg");
}

.shot-result-selector__label {
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1;
  overflow-wrap: anywhere;
}

.target-result-selector__option {
  --assessment-accent: var(--forest);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  gap: 0.2rem;
  min-height: 4.25rem;
  padding: 0.48rem 0.35rem;
  border-radius: 14px;
  background: var(--white);
  border-color: rgba(22, 49, 38, 0.16);
  color: #111;
  text-align: center;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.target-result-selector__option:hover {
  transform: none;
  box-shadow: none;
}

.target-result-selector__option.is-selected {
  background: #f0f7ec;
  border-color: rgba(22, 49, 38, 0.72);
  box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.5);
}

.target-result-selector__icon {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  background: currentColor;
  color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.target-result-selector__label {
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

.target-result-selector__icon--long-left {
  mask-image: url("/assets/target_result_long_left-ff96be2a.svg");
  -webkit-mask-image: url("/assets/target_result_long_left-ff96be2a.svg");
}

.target-result-selector__icon--long {
  mask-image: url("/assets/target_result_long-a2eab4aa.svg");
  -webkit-mask-image: url("/assets/target_result_long-a2eab4aa.svg");
}

.target-result-selector__icon--long-right {
  mask-image: url("/assets/target_result_long_right-8e7878ff.svg");
  -webkit-mask-image: url("/assets/target_result_long_right-8e7878ff.svg");
}

.target-result-selector__icon--left {
  mask-image: url("/assets/target_result_left-8013d059.svg");
  -webkit-mask-image: url("/assets/target_result_left-8013d059.svg");
}

.target-result-selector__icon--on-target {
  mask-image: url("/assets/target_result_on_target-6161062e.svg");
  -webkit-mask-image: url("/assets/target_result_on_target-6161062e.svg");
}

.target-result-selector__icon--right {
  mask-image: url("/assets/target_result_right-bc7249b0.svg");
  -webkit-mask-image: url("/assets/target_result_right-bc7249b0.svg");
}

.target-result-selector__icon--short-left {
  mask-image: url("/assets/target_result_short_left-9da91a44.svg");
  -webkit-mask-image: url("/assets/target_result_short_left-9da91a44.svg");
}

.target-result-selector__icon--short {
  mask-image: url("/assets/target_result_short-61a1d5de.svg");
  -webkit-mask-image: url("/assets/target_result_short-61a1d5de.svg");
}

.target-result-selector__icon--short-right {
  mask-image: url("/assets/target_result_short_right-06d282a8.svg");
  -webkit-mask-image: url("/assets/target_result_short_right-06d282a8.svg");
}

.shot-shape-selector {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.shot-shape-selector__option {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.18rem;
  min-height: 4.1rem;
  padding: 0.42rem 0.25rem 0.45rem;
  border-radius: 14px;
  background: var(--white);
  border-color: rgba(22, 49, 38, 0.16);
  color: #111;
  text-align: center;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.shot-shape-selector__option:hover {
  transform: none;
  box-shadow: none;
}

.shot-shape-selector__option.is-selected {
  background: #f0f7ec;
  border-color: rgba(22, 49, 38, 0.72);
  box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.5);
}

.shot-shape-selector__icon-wrap {
  display: grid;
  place-items: center;
  width: 2.95rem;
  height: 2.95rem;
}

.shot-shape-selector__icon {
  display: block;
  width: 2.875rem;
  height: 2.875rem;
  object-fit: contain;
}

.range-shell.is-left-handed .shot-shape-selector__icon {
  transform: scaleX(-1);
}

.shot-shape-selector__label {
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

.strike-pattern-selector {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.strike-pattern-selector__option {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  gap: 0.16rem;
  min-height: 4.85rem;
  padding: 0.42rem 0.32rem 0.48rem;
  border-radius: 14px;
  background: var(--white);
  border-color: rgba(22, 49, 38, 0.16);
  color: #111;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.strike-pattern-selector__option:hover {
  transform: none;
  box-shadow: none;
}

.strike-pattern-selector__option.is-selected {
  background: #f0f7ec;
  border-color: rgba(22, 49, 38, 0.72);
  box-shadow: inset 0 0 0 1px rgba(22, 49, 38, 0.5);
}

.strike-pattern-selector__icon {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  color: currentColor;
}

.strike-pattern-selector__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.range-shell.is-left-handed .strike-pattern-selector__icon img {
  transform: scaleX(-1);
}

.strike-pattern-selector__label {
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
  text-align: center;
}

.assessment-button.is-selected {
  background:
    linear-gradient(180deg, rgba(223, 235, 205, 0.98), rgba(255, 253, 248, 0.96));
  border-color: color-mix(in srgb, var(--assessment-accent) 48%, rgba(22, 49, 38, 0.12));
  box-shadow: 0 10px 22px rgba(44, 106, 61, 0.1);
}

.assessment-button.is-selected .assessment-mark {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--assessment-accent) 18%, rgba(255, 253, 248, 0.92)), rgba(255, 253, 248, 0.82));
  border-color: color-mix(in srgb, var(--assessment-accent) 38%, rgba(22, 49, 38, 0.1));
}

.shot-result-selector__option.is-selected {
  background: #f0f7ec;
  border-color: rgba(22, 49, 38, 0.72);
  box-shadow: none;
}

.assessment-button.is-disabled-by-result {
  background: rgba(244, 239, 227, 0.68);
  border-color: rgba(22, 49, 38, 0.08);
  color: rgba(22, 49, 38, 0.48);
}

.assessment-button.is-disabled-by-result .assessment-mark {
  opacity: 0.58;
}

.summary-patterns {
  display: grid;
  gap: 0.75rem;
  margin-top: 0;
}

.penalty-summary {
  margin-top: 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(125, 80, 36, 0.08);
  border: 1px solid rgba(125, 80, 36, 0.12);
  color: rgba(74, 48, 21, 0.9);
}

.compact-shot-list,
.club-breakdown-list {
  list-style: none;
  padding: 0;
}

.compact-shot-list {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.shot-card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(238, 232, 217, 0.82));
  border: 1px solid rgba(22, 49, 38, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.compact-shot-card h3 {
  font-size: 1.12rem;
}

.shot-card p {
  margin: 0.4rem 0 0;
  font-size: 0.96rem;
}

.shot-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shot-result {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(63, 106, 71, 0.08);
  color: var(--forest);
  font-family: var(--label-font);
  font-size: 0.82rem;
  font-weight: 700;
}

.shot-card.is-active {
  border-color: rgba(63, 106, 71, 0.3);
  background:
    linear-gradient(180deg, rgba(223, 234, 200, 0.95), rgba(247, 243, 232, 0.95));
  transform: translateX(4px);
}

.shot-card.is-hit {
  border-color: rgba(44, 106, 61, 0.22);
  background:
    linear-gradient(180deg, rgba(224, 240, 222, 0.92), rgba(248, 251, 244, 0.94));
}

.shot-card.is-miss {
  border-color: rgba(138, 65, 50, 0.16);
  background:
    linear-gradient(180deg, rgba(245, 233, 228, 0.94), rgba(252, 247, 245, 0.94));
}

.club-breakdown-panel {
  margin-top: 1.25rem;
}

.club-breakdown-list {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.club-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.club-breakdown-label,
.club-breakdown-value {
  font-family: var(--label-font);
}

.club-breakdown-label {
  font-weight: 700;
}

.club-breakdown-value {
  color: var(--text-soft);
  text-align: right;
}

.now-playing {
  min-height: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.practice-guide-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 32rem;
  width: min(1120px, calc(100% - 2rem));
  max-width: 100%;
  margin: 0 auto 4rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  border-top: 1px solid var(--line);
}

.practice-guide-inner {
  display: grid;
  gap: 0.85rem;
}

.practice-guide-title {
  max-width: 15ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 760;
  line-height: 1.04;
}

.practice-guide-copy {
  max-width: 52rem;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.62;
}

.practice-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 0.75rem;
}

.practice-guide-item {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(18, 61, 43, 0.18);
}

.practice-guide-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.22;
}

.practice-guide-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

.range-shell.is-live,
.range-shell.is-complete {
  width: min(980px, calc(100% - 1rem));
  max-width: 100%;
  padding-top: 1rem;
}

.range-shell.is-live .range-hero,
.range-shell.is-complete .range-hero {
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  border-width: 0;
  box-shadow: none;
}

.range-shell.is-live .coach-layout,
.range-shell.is-complete .coach-layout {
  margin-top: 0;
}

@media (min-width: 720px) {
  .result-controls-assessment {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .result-controls-result {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-controls-target {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-controls-shape {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .result-controls-strike {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .current-shot-panel .club-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .current-shot-panel .club-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .practice-guide-grid {
    grid-template-columns: 1fr;
  }

  .transport-controls {
    grid-template-columns: 1fr;
  }

  .transport-primary-button,
  .round-exit-button {
    width: 100%;
  }

  .next-shot-cue {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .coach-main-layout,
  .club-toolbar,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-areas:
      "copy"
      "panel";
    gap: 1.1rem;
  }

  .range-hero .hero-headline {
    max-width: 100%;
  }

  .hero-copy-block {
    max-width: none;
    padding-top: 0;
  }

  .shot-hud {
    grid-template-columns: 1fr;
  }

  .scorecard-panel {
    position: static;
  }

  .now-playing {
    min-height: auto;
  }

  .voice-picker-wrap {
    grid-template-columns: minmax(0, 1fr) 4.8rem;
  }
}

@media (max-width: 640px) {
  .range-shell,
  .range-shell.is-live,
  .range-shell.is-complete {
    width: min(100% - 1rem, 100%);
    padding: 1rem 0 2rem;
  }

  .range-hero,
  .coach-panel {
    border-radius: 18px;
  }

  .range-hero {
    padding: 0.92rem;
  }

  .coach-panel {
    padding: 0.95rem;
  }

  .range-shell.is-live {
    width: 100%;
    padding-top: 0;
  }

  .range-shell.is-live .coach-panel {
    padding: 0.58rem 0.92rem 1.65rem;
    border-inline: 0;
    border-radius: 0;
  }

  .range-shell.is-live .round-topbar {
    margin-top: 0;
  }

  .range-shell.is-live .live-round-stack {
    gap: 0.64rem;
  }

  .range-shell.is-live .shot-visual {
    order: -1;
    margin: 0 -0.92rem 0.12rem;
    border-inline: 0;
    border-radius: 0;
    box-shadow: 0 14px 34px rgba(17, 31, 23, 0.16);
  }

  .range-shell.is-live .shot-visual-image {
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .range-shell.is-live .wind-visual {
    bottom: 0.75rem;
    left: max(0.75rem, env(safe-area-inset-left));
  }

  .range-shell.is-live .elevation-visual {
    bottom: 2.84rem;
    left: max(0.75rem, env(safe-area-inset-left));
  }

  .range-shell.is-live .transport-panel {
    margin-inline: -0.92rem;
    padding: 0.72rem 0.92rem;
    border-inline: 0;
    border-radius: 0;
  }

  .hero-copy-block {
    gap: 0.6rem;
  }

  .hero-copy-desktop {
    display: none;
  }

  .hero-copy-mobile {
    display: block;
  }

  .range-hero .hero-headline {
    font-size: clamp(1.92rem, 7.3vw, 2.55rem);
  }

  .brand-lockup {
    height: 1.875rem;
    max-width: 10rem;
  }

  .hero-support-line {
    font-size: 0.77rem;
    letter-spacing: 0.13em;
  }

  .hero-setup-panel {
    padding: 0.88rem;
  }

  .panel-heading,
  .panel-heading-actions,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .shot-count-input,
  .result-controls button,
  .round-exit-button,
  .transport-primary-button {
    width: 100%;
  }

  .round-topbar,
  .end-game-actions,
  .transport-controls,
  .shot-details,
  .summary-scoreboard,
  .session-metrics,
  .result-controls {
    grid-template-columns: 1fr;
  }

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

  .summary-actions,
  .summary-play-again-button {
    width: 100%;
  }

  .shot-log-panel .result-controls-assessment {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-result-selector {
    gap: 0.5rem;
  }

  .shot-result-selector__option {
    min-height: 5.8rem;
    padding: 0.58rem 0.32rem 0.52rem;
    border-radius: 12px;
  }

  .shot-result-selector__icon {
    width: 3.35rem;
    height: 3.35rem;
  }

  .shot-result-selector__label {
    font-size: 0.72rem;
  }

  .shot-log-panel .result-controls-target {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .target-result-selector {
    gap: 0.36rem;
  }

  .target-result-selector__option {
    min-height: 4.45rem;
    padding: 0.3rem 0.1rem;
    border-radius: 12px;
  }

  .target-result-selector__icon {
    width: 2.7rem;
    height: 2.7rem;
  }

  .target-result-selector__label {
    font-size: 0.68rem;
  }

  .shot-log-panel .shot-shape-selector {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .shot-shape-selector {
    gap: 0.36rem;
  }

  .shot-shape-selector__option {
    min-height: 4rem;
    padding: 0.32rem 0.1rem;
    border-radius: 12px;
  }

  .shot-shape-selector__icon-wrap {
    width: 2.875rem;
    height: 2.875rem;
  }

  .shot-shape-selector__icon {
    width: 2.875rem;
    height: 2.875rem;
  }

  .shot-shape-selector__label {
    font-size: 0.72rem;
  }

  .shot-log-panel .strike-pattern-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.36rem;
  }

  .strike-pattern-selector__option {
    min-height: 4.95rem;
    padding: 0.28rem 0.1rem 0.34rem;
    border-radius: 12px;
  }

  .strike-pattern-selector__icon {
    width: 3rem;
    height: 3rem;
  }

  .strike-pattern-selector__label {
    font-size: 0.7rem;
  }

  .range-shell.is-live .round-progress-pill {
    display: none;
  }

  .hero-hole-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .session-scorecard-panel {
    padding: 1rem;
  }

  .session-scorecard-row {
    grid-template-columns: 80px repeat(var(--scorecard-columns), minmax(68px, 1fr));
  }

  .session-scorecard-label,
  .session-scorecard-cell {
    min-height: 58px;
    padding: 0.5rem 0.35rem;
    border-radius: 14px;
  }

  .club-breakdown-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .shot-result-selector {
    gap: 0.36rem;
  }

  .shot-result-selector__option {
    min-height: 5rem;
    padding: 0.5rem 0.2rem 0.46rem;
  }

  .shot-result-selector__icon {
    width: 2.95rem;
    height: 2.95rem;
  }

  .shot-result-selector__label {
    font-size: 0.64rem;
  }

  .target-result-selector {
    gap: 0.28rem;
  }

  .target-result-selector__option {
    min-height: 4.05rem;
  }

  .target-result-selector__icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .target-result-selector__label {
    font-size: 0.62rem;
  }

  .shot-shape-selector {
    gap: 0.28rem;
  }

  .shot-shape-selector__option {
    min-height: 3.45rem;
  }

  .shot-shape-selector__icon-wrap,
  .shot-shape-selector__icon {
    width: 2.55rem;
    height: 2.55rem;
  }

  .shot-shape-selector__label {
    font-size: 0.62rem;
  }

  .strike-pattern-selector {
    gap: 0.28rem;
  }

  .strike-pattern-selector__option {
    min-height: 4.55rem;
  }

  .strike-pattern-selector__icon {
    width: 2.7rem;
    height: 2.7rem;
  }

  .strike-pattern-selector__label {
    font-size: 0.66rem;
  }
}
