@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --ink: #f3f4f1;
  --muted: #92999d;
  --bg: #0d1218;
  --panel: #12191e;
  --line: rgba(165, 178, 184, 0.18);
  --lime: #295e33;
  --lime-dark: #295e33;
  --red: #ff625c;
  --red-dark: #b63334;
  --serif: Georgia, "Times New Roman", serif;
  --display: "Manrope", "Arial Narrow", sans-serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.2, .9, .25, 1.18);
  --motion-fast: 160ms;
  --motion-base: 360ms;
}

/* Coaching Session Mode */
.coaching-session-entry { background: linear-gradient(145deg, rgba(41, 94, 51,.1), rgba(255,255,255,.025)); border-color: rgba(41, 94, 51,.26); }
.coaching-session-entry > button, .session-roster-actions button { width: 100%; min-height: 48px; border: 1px solid rgba(41, 94, 51,.3); border-radius: 12px; background: rgba(41, 94, 51,.1); color: var(--lime, #295e33); font: inherit; font-weight: 800; padding: 12px 15px; text-align: left; }
.session-roster-actions { display: grid; gap: 9px; margin-top: 16px; }
.session-roster-actions button:disabled { opacity: .42; }
.session-mode-hero p:last-child { max-width: 650px; color: var(--muted, #9da29a); }
.session-setup-form { display: grid; gap: 20px; }
.session-setup-form > label, .session-config-row label { display: grid; gap: 8px; color: var(--muted, #9da29a); font-size: .84rem; font-weight: 750; }
.session-setup-form select, .session-config-row select { width: 100%; min-height: 48px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: #171a16; color: #fff; padding: 0 12px; font: inherit; }
.session-setup-form fieldset { border: 0; padding: 0; margin: 0; }
.session-setup-form legend { margin-bottom: 10px; color: var(--muted, #9da29a); font-size: .84rem; font-weight: 750; }
.session-angle-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.session-angle-options label { position: relative; }
.session-angle-options input { position: absolute; opacity: 0; }
.session-angle-options span { display: grid; place-items: center; min-height: 52px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.session-angle-options input:checked + span { border-color: var(--lime, #295e33); background: rgba(41, 94, 51,.1); color: var(--lime, #295e33); }
.session-consent { grid-template-columns: auto 1fr !important; align-items: start; line-height: 1.5; }
.session-consent input { width: 20px; height: 20px; accent-color: var(--lime, #295e33); }
.session-warning { color: #ffba6b; }
.session-command-bar { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 26px 24px 10px; }
.session-command-bar h1 { margin: 4px 0 0; font-size: clamp(2rem, 6vw, 4rem); }
.session-connection { border: 1px solid rgba(41, 94, 51,.26); border-radius: 999px; color: var(--lime, #295e33); padding: 8px 12px; font-size: .76rem; font-weight: 800; }
.session-pairing-grid { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 30px; align-items: center; }
.session-pairing canvas { width: 220px; max-width: 100%; border: 10px solid #fff; border-radius: 15px; background: #fff; }
.session-pairing-grid > div { display: grid; gap: 16px; }
.session-pairing-grid .onboarding-primary { display: grid; place-items: center; text-decoration: none; }
.session-pairing-fallback { color: var(--muted, #9da29a); font-size: .82rem; }
.session-status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.session-status-grid > div { display: grid; gap: 5px; min-height: 78px; padding: 13px; border-radius: 12px; background: rgba(255,255,255,.045); }
.session-status-grid span { color: var(--muted, #9da29a); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.session-status-grid strong { text-transform: capitalize; }
.session-config-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.session-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 16px; }
.session-controls button, .session-clip-actions button, .session-compare-controls button, .session-finalize-actions button, [data-clear-comparison] { min-height: 44px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; padding: 9px 13px; font: inherit; font-weight: 750; }
.session-controls button:first-child { background: var(--lime, #295e33); color: #fff; }
.danger-button, .session-clip-actions button:last-child { border-color: rgba(255,99,99,.32) !important; color: #ff9898 !important; }
.session-clip-list { display: grid; gap: 11px; }
.session-clip-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.035); }
.session-clip-number { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(41, 94, 51,.1); color: var(--lime, #295e33); font-weight: 900; }
.session-clip-card > div:nth-child(2) { display: grid; gap: 4px; }
.session-clip-card > div:nth-child(2) span { color: var(--muted, #9da29a); font-size: .77rem; text-transform: capitalize; }
.session-clip-actions { display: flex; gap: 7px; }
.session-clip-actions button { min-height: 38px; font-size: .73rem; }
.session-clip-video { grid-column: 2 / -1; }
.session-clip-video video { max-height: 480px; aspect-ratio: 9/16; width: auto; max-width: 100%; border-radius: 12px; background: #000; }
.session-empty { padding: 32px; text-align: center; color: var(--muted, #9da29a); }
.session-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.session-compare-grid video { width: 100%; aspect-ratio: 9/16; object-fit: contain; border-radius: 12px; background: #000; }
.session-compare-grid p { display: flex; justify-content: space-between; gap: 10px; }
.session-compare-grid p span { color: var(--muted, #9da29a); font-size: .78rem; }
.session-compare-controls { display: flex; justify-content: center; gap: 9px; margin-top: 14px; }
.session-compare-scrub { display: grid; gap: 7px; margin-top: 12px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.session-compare-scrub input { width: 100%; accent-color: var(--lime); }
.session-finalize-clip { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.session-finalize-clip [data-finalize-preview] { grid-column: 1 / -1; }
.session-finalize-clip video { width: min(180px, 100%); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; }
.session-finalize { border-color: rgba(255,99,99,.28); }
.session-keep-clip { display: flex; gap: 12px; align-items: center; min-height: 58px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.session-keep-clip input { width: 21px; height: 21px; accent-color: var(--lime, #295e33); }
.session-keep-clip span { display: grid; gap: 3px; }
.session-keep-clip small { color: var(--muted, #9da29a); }
.session-finalize-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

@media (max-width: 700px) {
  .session-pairing-grid, .session-status-grid, .session-config-row { grid-template-columns: 1fr; }
  .session-controls { grid-template-columns: 1fr 1fr; }
  .session-controls .danger-button { grid-column: 1 / -1; }
  .session-clip-card { grid-template-columns: 46px 1fr; }
  .session-clip-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .session-clip-video { grid-column: 1 / -1; }
  .session-command-bar { align-items: start; flex-direction: column; }
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html {
  min-height: 100%;
  background: var(--bg);
  touch-action: manipulation;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  touch-action: manipulation;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% -12%, rgba(41, 94, 51,.045), transparent 30rem),
    linear-gradient(180deg, #0f161a 0%, #090f14 100%);
  font-family: var(--sans);
}

button, input { font: inherit; }

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease, color var(--motion-fast) ease, background-color var(--motion-fast) ease, filter var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

button:focus-visible, input:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
button:active { transform: scale(.97); }
.sr-only { width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; position: absolute !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

#app { min-height: 100svh; }

.screen {
  width: min(100%, 560px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  position: relative;
}
.dashboard-screen { overflow-x: clip; overflow-y: visible; }

.brand-header, .game-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-header > strong { color: var(--muted); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.brand-header > .section-back { width: 42px; min-width: 42px; padding: 0; }

.wordmark { width: 104px; height: 46px; padding: 0; background: transparent; }
.wordmark img { width: 100%; height: 100%; display: block; filter: brightness(0) invert(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.profile-button, .settings-button {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  color: #adb5b9;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 8px 20px rgba(0,0,0,.16);
  font-weight: 700;
}
.profile-button { border-color: rgba(41, 94, 51,.24); color: var(--lime); background: linear-gradient(145deg, rgba(41, 94, 51,.105), rgba(41, 94, 51,.025)); }
.header-icon { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease-spring), stroke-width 180ms ease; }
.profile-initials { font-size: .68rem; font-weight: 800; letter-spacing: .04em; }

.level-up-hero { min-height: 190px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; margin-top: 20px; padding: 18px 8px 16px; position: relative; overflow: visible; }
.level-up-hero::before { content: ""; width: 260px; aspect-ratio: 1; position: absolute; right: -130px; top: -34px; border-radius: 50%; opacity: .28; pointer-events: none; background: repeating-radial-gradient(ellipse at center, transparent 0 12px, rgba(41, 94, 51,.12) 13px 14px); transform: skew(-14deg); }
.level-up-copy { position: relative; z-index: 1; }
.level-up-copy p { margin: 0 0 10px; color: var(--muted); font-size: .66rem; }
.level-up-copy h1 { margin: 0; font: 650 clamp(1.8rem, 7.4vw, 2.75rem)/.96 var(--display); letter-spacing: -.04em; }
.level-up-copy h1 span { color: var(--lime); }
.level-up-copy i { width: 34px; height: 3px; display: block; margin-top: 17px; border-radius: 99px; background: var(--lime); box-shadow: 0 0 12px rgba(41, 94, 51,.35);  color: #fff; }
.level-up-status { min-width: 136px; display: grid; justify-items: center; gap: 10px; position: relative; z-index: 1; }
.level-ring { width: 126px; aspect-ratio: 1; display: grid; place-content: center; justify-items: center; border: 1px solid rgba(165,178,184,.2); border-radius: 50%; position: relative; background: radial-gradient(circle, rgba(41, 94, 51,.055), rgba(255,255,255,.012) 58%, transparent 59%); box-shadow: inset 0 0 0 8px rgba(0,0,0,.13); }
.level-ring::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: conic-gradient(var(--lime) var(--xp), rgba(165,178,184,.18) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0); transform: rotate(-90deg); filter: drop-shadow(0 0 5px rgba(41, 94, 51,.55));  color: #fff; }
.level-ring::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(165,178,184,.12); border-radius: inherit; }
.level-ring span { color: #c3c8ca; font-size: .55rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.level-ring strong { font: 750 3rem/.9 var(--display); letter-spacing: -.06em; }
.xp-indicator { display: flex; align-items: baseline; gap: 4px; margin-top: 7px; color: var(--muted); }
.xp-indicator b { color: #c3c8ca; font-size: .57rem; }
.xp-indicator span { color: var(--lime); font-size: .49rem; font-weight: 800; letter-spacing: .08em; }

.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.dashboard-stats article { min-width: 0; min-height: 150px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 18px 8px; text-align: center; }
.dashboard-stats article + article { border-left: 1px solid var(--line); }
.dashboard-stats i { width: 46px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 4px; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.055); font-size: 1.35rem; font-style: normal; }
.dashboard-stats span { color: #aeb5b8; font-size: .57rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-stats strong { overflow: hidden; font: 700 clamp(1.85rem, 8vw, 2.65rem)/1 var(--display); letter-spacing: -.05em; text-overflow: ellipsis; }
.dashboard-stats small { color: var(--lime); font-size: .6em; }

.dashboard-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 34px 6px 18px; }
.dashboard-section-head .eyebrow { margin-bottom: 6px; }
.dashboard-section-head h2 { margin: 0; font: 700 1.55rem/1.05 var(--display); letter-spacing: -.035em; }
.dashboard-section-head button { padding: 8px 0; color: var(--lime); background: transparent; font-size: .62rem; font-weight: 700; white-space: nowrap; }
.mode-grid { display: grid; gap: 12px; }
.mode-card {
  width: 100%;
  min-height: 124px;
  display: grid;
  grid-template-columns: 54px 1fr 46px;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  background: #11181d;
}
.mode-card::before { content: ""; z-index: -2; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(10,16,21,.99) 0%, rgba(10,16,21,.96) 32%, rgba(10,16,21,.58) 68%, rgba(10,16,21,.15) 100%), var(--mode-art); background-position: center; background-size: cover; transition: transform .25s ease; }
.mode-card::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 55%); pointer-events: none; }
.mode-card:hover::before { transform: scale(1.025); }
.mode-card.challenge-mode { min-height: 140px; border-color: rgba(41, 94, 51,.58); --mode-art: url("./assets/mode-level-challenge.webp"); }
.mode-card.warmup-mode { --mode-art: url("./assets/mode-warm-up.webp"); }
.mode-number { height: 100%; display: grid; place-items: center; border-right: 1px solid var(--line); color: #5c656b; font: 700 1rem var(--display); }
.challenge-mode .mode-number { color: var(--lime); }
.mode-copy { min-width: 0; display: grid; gap: 5px; }
.mode-copy small { color: var(--lime); font-size: .56rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.mode-copy strong { font: 800 clamp(1.08rem, 4.8vw, 1.42rem)/1.05 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.mode-copy em { overflow: hidden; color: #a4abad; font-size: .64rem; font-style: normal; line-height: 1.35; text-overflow: ellipsis; }
.mode-card > b { width: 44px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--lime); border-radius: 50%; color: var(--lime); background: rgba(10,16,21,.58); font-size: 1.2rem; }

.home-stage {
  min-height: calc(100svh - 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 0 20px;
  text-align: center;
}

.eyebrow { margin: 0 0 14px; color: var(--lime); font-size: .67rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }

.level-orbit {
  width: min(67vw, 284px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  margin: 0 0 30px;
  border: 1px solid rgba(41, 94, 51,.28);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, rgba(41, 94, 51,.1), rgba(41, 94, 51,.015) 56%, transparent 57%);
  box-shadow: 0 0 90px rgba(41, 94, 51,.08), inset 0 0 55px rgba(41, 94, 51,.03);
}
.level-orbit::before, .level-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(41, 94, 51,.1);
  border-radius: 50%;
}
.level-orbit::before { inset: 16px; }
.level-orbit::after { inset: 31px; border-style: dashed; }
.level-orbit span { z-index: 1; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .22em; }
.level-orbit strong { z-index: 1; margin-top: 3px; font: 800 clamp(5.5rem, 24vw, 8rem)/.8 var(--display); letter-spacing: -.05em; }
.level-orbit i {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--lime) calc(var(--level) * 5%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  transform: rotate(-90deg);
 color: #fff; }

.home-meta { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.home-meta > div { display: grid; gap: 6px; padding: 0 16px; }
.home-meta > div + div { border-left: 1px solid var(--line); }
.home-meta span { color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.home-meta strong { font: 700 1.2rem var(--display); letter-spacing: .02em; }
.home-meta .hearts { color: var(--red); font: 700 1.08rem var(--sans); letter-spacing: .08em; }
.level-rule { margin: 0 0 24px; color: var(--muted); font-size: .79rem; }
.level-rule i { width: 3px; height: 3px; display: inline-block; margin: 0 8px 2px; border-radius: 50%; background: var(--lime);  color: #fff; }

.start-button {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 24px;
  border-radius: 7px;
  color: #fff;
  background: var(--lime);
  box-shadow: 0 15px 38px rgba(41, 94, 51,.18);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.start-button b { width: 38px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(10,16,21,.14); font-size: 1.2rem; }

.warm-up-button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 18px 0 24px;
  border: 1px solid rgba(41, 94, 51,.25);
  border-radius: 7px;
  text-align: left;
  background: rgba(41, 94, 51,.045);
}
.warm-up-button > span { display: flex; align-items: baseline; gap: 9px; }
.warm-up-button small { color: var(--muted); font-size: .57rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.warm-up-button strong { color: var(--ink); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
.warm-up-button > b { color: var(--lime); font-size: 1.1rem; }

.progress-heading { padding: 70px 0 30px; }
.progress-heading h1, .result-content h1 { margin: 0 0 16px; font: 700 clamp(3.1rem, 14vw, 5.4rem)/.86 var(--display); letter-spacing: -.045em; text-transform: uppercase; }

.setup-copy { padding: 76px 0 44px; }
.setup-copy h1 { max-width: 460px; margin: 0 0 18px; font: 700 clamp(3rem, 13vw, 5rem)/.88 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.setup-copy > p:last-child { max-width: 410px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.setup-high-score span { width: 17px; height: 20px; display: inline-grid; place-items: center; margin-right: 6px; color: var(--lime); filter: drop-shadow(0 0 5px rgba(41, 94, 51,.55)); vertical-align: -5px; }
.setup-high-score svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.setup-error { margin: -10px 0 0; color: var(--red); font-size: .73rem; }

.game-screen { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; background: #080e13; overflow: hidden; }
.distance-game {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 70% -12%, rgba(41, 94, 51,.045), transparent 30rem),
    linear-gradient(180deg, #0f161a 0%, #090f14 100%);
}
.distance-game::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .72;
  background-image:
    radial-gradient(circle, rgba(225,234,230,.055) 0 1px, transparent 1.35px),
    repeating-linear-gradient(112deg, transparent 0 54px, rgba(41, 94, 51,.018) 55px 56px),
    repeating-radial-gradient(ellipse at 18% 42%, transparent 0 46px, rgba(165,178,184,.025) 47px 48px, transparent 49px 82px);
  background-size: 15px 15px, 180px 180px, 420px 330px;
  animation: distance-texture-drift 22s linear infinite;
}
.game-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.game-screen.flash-hit::before { background: rgba(41, 94, 51,.25); }
.game-screen.flash-miss::before { background: rgba(255,98,92,.22); }
.game-screen.shot-hit-feedback::before { background: radial-gradient(circle at 28% 78%, rgba(41, 94, 51,.32), transparent 48%); animation: shot-feedback-flash .48s ease-out; }
.game-screen.shot-miss-feedback::before { background: radial-gradient(circle at 72% 78%, rgba(255,98,92,.3), transparent 48%); animation: shot-feedback-flash .48s ease-out; }
.game-header { width: min(100%, 720px); margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 18px 8px; }
.game-header > div:nth-child(2) { display: grid; justify-items: center; }
.game-header > div:nth-child(2) span { color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.game-header > div:nth-child(2) strong { font: 700 1.1rem var(--display); }
.back-button, .done-button { min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.035); }
.done-button { padding: 0 13px; border-radius: 999px; color: var(--lime); font-size: .68rem; font-weight: 700; }
.game-lives { min-width: 70px; display: flex; justify-content: flex-end; gap: 4px; }
.game-lives span { color: var(--red); font-size: 1.08rem; transition: opacity .2s, transform .2s; }
.game-lives .lost { opacity: .18; transform: scale(.75); }

.target-stage { min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 20px 6px; text-align: center; position: relative; }
.distance { display: flex; align-items: flex-end; justify-content: center; }
.distance strong { font: 800 clamp(7rem, 32vw, 13rem)/.72 var(--display); letter-spacing: -.075em; }
.distance-game .distance:not(.range-distance) strong { font-size: clamp(5.25rem, 23vw, 8.5rem); }
.range-distance strong { font-size: clamp(4.2rem, 20vw, 7.5rem); white-space: nowrap; }
.distance span { margin: 0 0 8px 9px; color: var(--lime); font: 700 .8rem var(--display); letter-spacing: .13em; }
.tolerance-card { min-width: min(100%, 330px); margin-top: 18px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.tolerance-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .54rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tolerance-card > .tolerance-label { display: none; }
.tolerance-primary { display: block; color: #aeb5b9; font: 800 1.55rem/1 var(--display); letter-spacing: -.025em; }
.tolerance-primary small { color: inherit; font-size: .56rem; letter-spacing: .13em; }
.tolerance-card > em { display: block; margin-top: 6px; color: #aeb9bf; font-size: .62rem; font-style: normal; line-height: 1.35; }
.tolerance-bands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tolerance-bands.bands-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tolerance-bands > span { min-width: 0; min-height: 68px; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 3px 7px; position: relative; }
.tolerance-bands > span + span::before { content: ""; width: 1px; position: absolute; left: 0; top: 5px; bottom: 5px; background: linear-gradient(180deg, transparent, rgba(165,178,184,.55) 18%, rgba(165,178,184,.55) 82%, transparent); }
.tolerance-bands b { color: #b8bec2; font-size: .56rem; font-weight: 750; letter-spacing: .04em; }
.tolerance-bands strong { color: var(--ink); font: 700 clamp(1.65rem, 8vw, 2.3rem)/.86 var(--display); letter-spacing: -.055em; text-shadow: 0 2px 0 rgba(0,0,0,.28); }
.tolerance-bands em { color: #9fa7ac; font: 750 .5rem var(--display); font-style: normal; letter-spacing: .2em; }
.tolerance-bands.bands-3 > span { min-height: 66px; padding-inline: 3px; }
.tolerance-bands.bands-3 strong { font-size: clamp(1.35rem, 6.3vw, 1.9rem); }
.tolerance-bands.bands-3 b { font-size: .46rem; }
.tolerance-card-open { width: min(78vw, 300px); padding: 0; border: 0; background: transparent; box-shadow: none; }
.tolerance-card-open .tolerance-label { margin-bottom: 6px; color: #aeb5b9; font-size: .53rem; letter-spacing: .22em; }
.random-target-details { width: min(82vw, 340px); display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; }
.random-target-details > span { min-width: 0; display: grid; justify-items: center; gap: 6px; padding: 3px 11px; position: relative; }
.random-target-details > span + span::before { content: ""; width: 1px; position: absolute; left: 0; top: 2px; bottom: 2px; background: linear-gradient(180deg, transparent, rgba(165,178,184,.5) 20%, rgba(165,178,184,.5) 80%, transparent); }
.random-target-details small { color: #9fa7ac; font-size: .52rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.random-target-details strong { color: var(--ink); font: 750 1.12rem/1 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.random-target-details span:last-child strong { color: var(--lime); }
.random-target-details em { margin-left: 4px; color: #9fa7ac; font-size: .48rem; font-style: normal; letter-spacing: .12em; }
.shot-variation { margin-top: 18px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.shot-variation span { display: block; margin-bottom: 4px; color: var(--lime); font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.shot-variation strong { font: 700 .94rem/1.25 var(--display); letter-spacing: .025em; text-transform: uppercase; }
.special-level {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 38%, rgba(41, 94, 51,.14), transparent 31%),
    radial-gradient(circle at 70% -12%, rgba(41, 94, 51,.045), transparent 30rem),
    linear-gradient(180deg, #0f161a 0%, #090f14 100%);
}
.special-level::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(225,234,230,.06) 0 1px, transparent 1.35px),
    repeating-linear-gradient(115deg, transparent 0 42px, rgba(41, 94, 51,.024) 42px 43px),
    repeating-radial-gradient(ellipse at 18% 42%, transparent 0 46px, rgba(41, 94, 51,.025) 47px 48px, transparent 49px 82px);
  background-size: 15px 15px, 180px 180px, 420px 330px;
  animation: gate-grid-drift 12s linear infinite;
}
.special-level .game-header { border-bottom-color: rgba(41, 94, 51,.2); }
.special-level .game-header > div:nth-child(2) span { color: var(--lime); }
.special-level .target-stage::before {
  content: "";
  width: min(82vw, 430px);
  aspect-ratio: 1;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(41, 94, 51,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(41, 94, 51,.025), 0 0 0 70px rgba(41, 94, 51,.015);
  transform: translate(-50%, -48%);
  animation: gate-orbit 5s ease-in-out infinite;
}
.distance-gate-banner {
  min-width: min(100%, 330px);
  margin-bottom: 24px;
  padding: 11px 18px 12px;
  border: 1px solid rgba(41, 94, 51,.42);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: rgba(8,14,19,.72);
  box-shadow: 0 0 0 5px rgba(41, 94, 51,.025), 0 12px 40px rgba(0,0,0,.24);
}
.distance-gate-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(41, 94, 51,.16), transparent 75%);
  transform: translateX(-120%);
  animation: gate-sweep 2.8s ease-in-out infinite;
}
.distance-gate-banner span, .distance-gate-banner strong, .distance-gate-banner small { display: block; position: relative; }
.distance-gate-banner span { color: var(--muted); font-size: .52rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.distance-gate-banner strong { margin-top: 3px; color: var(--lime); font: 800 1.02rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.distance-gate-banner small { margin-top: 3px; color: var(--ink); font-size: .6rem; letter-spacing: .04em; }
.special-level .shot-variation { border: 0; background: transparent; box-shadow: none; }
.special-level .tolerance-card { border: 0; background: transparent; box-shadow: none; }
.special-level .tolerance-card-open { border: 0; background: transparent; box-shadow: none; }
.special-level .progress-track { height: 7px; box-shadow: 0 0 18px rgba(41, 94, 51,.08); }
.game-progress { width: min(calc(100% - 40px), 680px); margin: 0 auto 32px; }
.game-progress > div:first-child { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.game-progress > div:first-child span { color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.game-progress > div:first-child strong { font: 700 .85rem var(--display); }
.progress-track { height: 5px; border-radius: 999px; background: #242d32; overflow: hidden; }
.progress-track i { height: 100%; display: block; border-radius: inherit; background: var(--lime); transition: width .22s ease-out;  color: #fff; }
.scoreline { display: flex; gap: 18px; margin-top: 9px; color: var(--muted); font-size: .65rem; }
.scoreline span { display: flex; align-items: center; gap: 5px; }
.hit-dot { width: 6px; aspect-ratio: 1; border-radius: 50%; background: var(--lime);  color: #fff; }
.shot-value-change { animation: shot-value-swap 380ms var(--ease-spring) !important; }
.score-tick { animation: score-tick 320ms var(--ease-spring) !important; }
.setup-change { animation: setup-swap 420ms var(--ease-spring) !important; }
.life-lost-feedback { animation: life-lost 520ms ease-out !important; }

.shot-actions { min-height: 132px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.12); }
.shot-actions button { min-height: 132px; display: grid; place-content: center; gap: 3px; border-radius: 0; position: relative; overflow: hidden; text-transform: uppercase; }
.shot-actions span { font-size: 2rem; line-height: 1; }
.shot-actions strong { font: 800 1.2rem var(--display); letter-spacing: .1em; }
.shot-actions span, .shot-actions strong { position: relative; z-index: 2; }
.hit-button { color: #fff; background: linear-gradient(145deg, #295e33, var(--lime)); }
.miss-button { color: white; background: linear-gradient(145deg, var(--red), var(--red-dark)); }
.hit-button.shot-button-feedback { animation: hit-confirm 560ms var(--ease-spring) !important; }
.miss-button.shot-button-feedback { animation: miss-impact 520ms ease-out !important; }
.shot-button-feedback::after { content: ""; width: 48px; aspect-ratio: 1; position: absolute; z-index: 1; left: 50%; top: 50%; border: 3px solid currentColor; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.3); animation: action-ring 620ms ease-out; }
.shot-button-feedback::before { position: absolute; z-index: 3; left: 50%; top: 47%; opacity: 0; font: 800 .68rem var(--display); letter-spacing: .12em; white-space: nowrap; pointer-events: none; }
.hit-button.shot-button-feedback::before { content: "+1"; color: #0d1218; animation: action-label-up 680ms var(--ease-out); }
.miss-button.shot-button-feedback::before { content: "−1 LIFE"; color: #fff; animation: action-label-up 680ms var(--ease-out); }
.hit-button.shot-button-feedback span { animation: hit-icon-pop 520ms var(--ease-spring); }
.miss-button.shot-button-feedback span { animation: miss-icon-turn 480ms ease-out; }

.progress-screen { width: min(100%, 620px); }
.progress-heading { min-height: 250px; padding: 58px 4px 34px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.progress-heading::after { content: ""; width: 290px; aspect-ratio: 1; position: absolute; right: -105px; top: 2px; border-radius: 50%; opacity: .28; background: repeating-radial-gradient(ellipse at center, transparent 0 13px, rgba(41, 94, 51,.16) 14px 15px); transform: skew(-16deg) rotate(-24deg); }
.progress-heading .eyebrow { margin-bottom: 12px; }
.progress-heading h1 { margin: 0; position: relative; z-index: 1; font: 800 clamp(4rem, 17vw, 6.6rem)/.8 var(--display); letter-spacing: -.065em; text-transform: uppercase; text-shadow: 0 4px 0 rgba(255,255,255,.08); }
.progress-heading h1 span { color: var(--lime); }
.climb-line { width: 210px; height: 130px; position: absolute; z-index: 0; right: 1px; top: 22px; border-top: 2px solid var(--lime); border-radius: 55% 45% 0 0; transform: rotate(-41deg); filter: drop-shadow(0 0 8px rgba(41, 94, 51,.45)); }
.climb-line::before { content: ""; width: 82px; height: 78px; position: absolute; left: 15px; top: -1px; border-left: 2px solid var(--lime); border-radius: 52% 0 0 0; transform: rotate(40deg); }
.climb-line b { width: 17px; aspect-ratio: 1; position: absolute; right: -5px; top: -9px; border: 3px solid white; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(41, 94, 51,.14), 0 0 20px var(--lime);  color: #fff; }

.stat-stack { display: grid; gap: 8px; margin-top: 30px; }
.stat-stack article { min-height: 124px; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; padding: 16px 24px 16px 28px; border: 1px solid rgba(165,178,184,.14); border-radius: 15px; position: relative; overflow: hidden; background: linear-gradient(100deg, rgba(41, 94, 51,.055), rgba(255,255,255,.018) 24%, rgba(255,255,255,.01)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 12px 30px rgba(0,0,0,.14); }
.stat-stack article::before { content: ""; width: 3px; position: absolute; inset: 12px auto 12px 0; border-radius: 0 99px 99px 0; background: var(--lime); box-shadow: 0 0 16px var(--lime);  color: #fff; }
.stat-icon { width: 58px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(41, 94, 51,.24); border-radius: 50%; background: rgba(8,14,19,.55); }
.stat-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--lime); stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.stat-label { min-width: 0; display: grid; gap: 9px; }
.stat-label b { color: var(--lime); font-size: .68rem; letter-spacing: .08em; }
.stat-stack .stat-label span { max-width: none; color: #aeb5b8; font-size: .67rem; font-weight: 600; line-height: 1.25; letter-spacing: .16em; text-transform: uppercase; }
.stat-stack article > strong { color: var(--ink); font: 700 clamp(2.8rem, 12vw, 4.3rem)/1 var(--display); letter-spacing: -.055em; text-shadow: 0 0 18px rgba(243,244,241,.12); }

.monthly-section, .weighted-section, .progress-chart { margin-top: 46px; }
.section-title { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 5px 16px; margin-bottom: 18px; }
.section-title .eyebrow { grid-column: 1 / -1; margin-bottom: 2px; }
.section-title h2, .weighted-copy h2, .chart-heading h2 { margin: 0; font: 750 clamp(1.65rem, 7vw, 2.2rem)/1 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.section-title > p:last-child { margin: 0 0 2px; color: var(--muted); font-size: .66rem; }
.monthly-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.monthly-grid article { min-width: 0; min-height: 118px; display: grid; align-content: space-between; padding: 16px 13px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.monthly-grid span { color: var(--muted); font-size: .57rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.monthly-grid strong { font: 750 clamp(1.8rem, 8vw, 2.65rem)/1 var(--display); letter-spacing: -.045em; }
.monthly-grid small { color: var(--muted); font-size: .58rem; font-weight: 700; }
.monthly-grid small.up { color: var(--lime); }
.monthly-grid small.down { color: var(--red); }

.weighted-section { padding: 24px; border: 1px solid rgba(41, 94, 51,.3); border-radius: 16px; background: radial-gradient(circle at 100% 0, rgba(41, 94, 51,.1), transparent 45%), #11191e; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.weighted-copy { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.weighted-copy .eyebrow { margin-bottom: 8px; }
.weighted-copy > strong { color: var(--ink); font: 750 clamp(3.3rem, 15vw, 5rem)/.8 var(--display); letter-spacing: -.06em; }
.weighted-copy > strong small { color: var(--lime); font-size: .38em; }
.weighted-explainer { margin: 22px 0 18px; color: #aeb5b8; font-size: .74rem; line-height: 1.55; }
.accuracy-formula { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.accuracy-formula span { padding: 7px 9px; border-radius: 5px; background: rgba(41, 94, 51,.065); }
.accuracy-formula b { color: var(--lime); }

.progress-chart { padding: 22px 14px 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.018); }
.chart-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 0 8px 18px; }
.chart-heading .eyebrow { margin-bottom: 7px; }
.chart-heading > span { max-width: 90px; margin-bottom: 2px; color: var(--muted); font-size: .55rem; font-weight: 700; line-height: 1.35; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.chart-wrap { width: 100%; overflow: hidden; }
.chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid line { stroke: rgba(165,178,184,.13); stroke-width: 1; stroke-dasharray: 4 7; }
.chart-area { fill: url(#chart-fill); }
.chart-line { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(41, 94, 51,.35)); }
.chart-point circle { fill: var(--bg); stroke: var(--lime); stroke-width: 3; }
.chart-point text { fill: var(--ink); font: 700 13px var(--display); text-anchor: middle; }
.chart-point text.month { fill: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.reset-button, .text-button { display: block; margin: 24px auto 0; padding: 10px; color: #70787d; background: transparent; font-size: .66rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.progress-reset { width: 100%; min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 34px; border: 1px solid rgba(41, 94, 51,.55); border-radius: 999px; color: var(--lime); background: rgba(41, 94, 51,.025); letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.progress-reset span { width: 34px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(41, 94, 51,.28); border-radius: 50%; font-size: 1.2rem; }

.result-screen { min-height: 100svh; display: grid; place-items: center; padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 35%, rgba(41, 94, 51,.16), transparent 21rem), var(--bg); }
.result-screen.loss { background: radial-gradient(circle at 50% 35%, rgba(255,98,92,.15), transparent 21rem), var(--bg); }
.result-content { width: min(100%, 500px); text-align: center; }
.result-symbol { width: 86px; aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 36px; border: 1px solid rgba(41, 94, 51,.4); border-radius: 50%; color: var(--lime); font-size: 2.4rem; box-shadow: 0 0 55px rgba(41, 94, 51,.14); }
.loss .result-symbol { border-color: rgba(255,98,92,.4); color: var(--red); box-shadow: 0 0 55px rgba(255,98,92,.12); }
.result-content h1 { font-size: clamp(3.5rem, 16vw, 6rem); }
.result-detail { margin: 0 0 24px; color: var(--muted); }
.result-difficulty { margin: 0 auto 34px; color: var(--ink); }
.result-difficulty span { display: block; margin-bottom: 5px; color: var(--lime); font-size: .56rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.result-difficulty strong { font-size: .78rem; font-weight: 650; letter-spacing: .015em; }
.result-content .text-button { color: var(--muted); }

.unlock-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(30px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom));
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 37%, rgba(41, 94, 51,.24), transparent 24rem),
    linear-gradient(160deg, #15200f 0%, #080e13 54%, #05090c 100%);
}
.unlock-screen::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -30%;
  background: conic-gradient(from 0deg, transparent, rgba(41, 94, 51,.07), transparent 28%, rgba(41, 94, 51,.035), transparent 58%);
  animation: unlock-rotate 16s linear infinite;
}
.unlock-atmosphere { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.unlock-rings, .unlock-particles { position: absolute; left: 50%; top: 35%; }
.unlock-rings i {
  width: min(82vw, 460px);
  aspect-ratio: 1;
  position: absolute;
  left: 0;
  top: 0;
  border: 1px solid rgba(41, 94, 51,.34);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2);
  animation: unlock-ring 2.8s var(--ease-out) infinite;
}
.unlock-rings i:nth-child(2) { animation-delay: .55s; }
.unlock-rings i:nth-child(3) { animation-delay: 1.1s; }
.unlock-particles i {
  width: 7px;
  height: 18px;
  position: absolute;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(41, 94, 51,.42);
  opacity: 0;
  animation: unlock-particle 1.45s calc(180ms + var(--i) * 18ms) var(--ease-out) both;
 color: #fff; }
.unlock-particles i:nth-child(3n) { width: 5px; height: 11px; background: #fff; }
.unlock-particles i:nth-child(4n) { border-radius: 50%; background: #91bbff; }
.unlock-content { width: min(100%, 570px); text-align: center; }
.unlock-badge {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  margin: 0 auto 30px;
  border: 1px solid rgba(41, 94, 51,.7);
  border-radius: 50%;
  position: relative;
  color: var(--lime);
  background: radial-gradient(circle, rgba(41, 94, 51,.16), rgba(41, 94, 51,.025) 66%);
  box-shadow: 0 0 0 9px rgba(41, 94, 51,.035), 0 0 70px rgba(41, 94, 51,.22);
  animation: unlock-badge-in 900ms 180ms var(--ease-spring) backwards, unlock-badge-glow 2.4s 1.1s ease-in-out infinite;
}
.unlock-badge span { font: 800 2.15rem/.85 var(--display); letter-spacing: -.04em; }
.unlock-badge small { margin-top: 7px; font-size: .58rem; font-weight: 800; letter-spacing: .2em; }
.unlock-content > .eyebrow { color: var(--lime); animation: unlock-rise 520ms 500ms var(--ease-out) backwards; }
.unlock-content h1 { margin: 10px 0 28px; font: 800 clamp(3rem, 14vw, 5.4rem)/.88 var(--display); letter-spacing: -.055em; text-transform: uppercase; animation: unlock-title-in 720ms 580ms var(--ease-out) backwards; }
.unlock-content h1 span { color: var(--lime); }
.unlock-range {
  display: grid;
  grid-template-columns: 1fr minmax(70px, 110px) 1fr;
  align-items: center;
  margin: 0 auto 34px;
  animation: unlock-rise 560ms 850ms var(--ease-out) backwards;
}
.unlock-range > span { display: grid; gap: 4px; }
.unlock-range small { color: var(--muted); font-size: .52rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.unlock-range strong { font: 800 2rem var(--display); }
.unlock-range span:first-child strong { color: #778188; text-decoration: line-through; text-decoration-thickness: 1px; }
.unlock-range span:last-child strong { color: var(--lime); }
.unlock-range em { margin-left: 4px; font-size: .55rem; font-style: normal; letter-spacing: .1em; }
.unlock-range > i { height: 1px; position: relative; background: linear-gradient(90deg, rgba(41, 94, 51,.1), var(--lime), rgba(41, 94, 51,.1));  color: #fff; }
.unlock-range > i b { width: 8px; aspect-ratio: 1; position: absolute; right: 0; top: 50%; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); transform: translateY(-50%); animation: unlock-dot 1.1s 1.05s var(--ease-out) backwards;  color: #fff; }
.unlock-continue { animation: unlock-rise 560ms 1.1s var(--ease-out) backwards; }

.second-chance-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(30px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom));
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 35%, rgba(81,157,255,.22), transparent 24rem),
    linear-gradient(155deg, #10253a 0%, #09131d 52%, #05090d 100%);
}
.second-chance-screen::before {
  content: "";
  width: min(120vw, 720px);
  aspect-ratio: 1;
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 34%;
  border: 1px solid rgba(145,187,255,.12);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 26px, rgba(145,187,255,.045) 27px 28px);
  transform: translate(-50%, -50%);
  animation: second-chance-field 8s linear infinite;
}
.second-chance-atmosphere { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.second-chance-atmosphere i {
  width: min(78vw, 430px);
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 35%;
  border: 1px solid rgba(145,187,255,.4);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.2);
  animation: second-chance-ring 2.7s var(--ease-out) infinite;
}
.second-chance-atmosphere i:nth-child(2) { animation-delay: .6s; }
.second-chance-atmosphere i:nth-child(3) { animation-delay: 1.2s; }
.second-chance-content { width: min(100%, 520px); text-align: center; }
.second-chance-shield {
  width: 112px;
  aspect-ratio: .88;
  display: grid;
  place-items: center;
  margin: 0 auto 32px;
  position: relative;
  color: #d8e8ff;
  background: linear-gradient(145deg, rgba(145,187,255,.25), rgba(145,187,255,.04));
  clip-path: polygon(50% 0, 94% 16%, 86% 70%, 50% 100%, 14% 70%, 6% 16%);
  filter: drop-shadow(0 0 32px rgba(81,157,255,.4));
  animation: second-chance-shield-in 850ms 100ms var(--ease-spring) backwards, second-chance-shield-float 2.8s 1s ease-in-out infinite;
}
.second-chance-shield::before { content: ""; position: absolute; inset: 7px; background: #0c1b29; clip-path: inherit; }
.second-chance-shield span { position: relative; font: 800 2.5rem/1 var(--display); letter-spacing: -.08em; }
.second-chance-content > .eyebrow { color: #91bbff; animation: unlock-rise 500ms 420ms var(--ease-out) backwards; }
.second-chance-content h1 { margin: 9px 0 20px; font: 800 clamp(3.7rem, 17vw, 6.2rem)/.82 var(--display); letter-spacing: -.06em; text-transform: uppercase; animation: second-chance-title-in 680ms 500ms var(--ease-out) backwards; }
.second-chance-content h1 span { color: #91bbff; }
.second-chance-content > p:not(.eyebrow) { max-width: 410px; margin: 0 auto 28px; color: #b7c2ca; font-size: .82rem; line-height: 1.6; animation: unlock-rise 520ms 680ms var(--ease-out) backwards; }
.second-chance-rule { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; margin: 0 auto 34px; color: var(--muted); font-size: .59rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; animation: unlock-rise 520ms 780ms var(--ease-out) backwards; }
.second-chance-rule i { height: 1px; background: linear-gradient(90deg, rgba(145,187,255,.12), #91bbff); }
.second-chance-rule strong { color: #91bbff; }
.second-chance-content .start-button { animation: unlock-rise 520ms 900ms var(--ease-out) backwards; }
.second-chance-content .text-button { color: var(--muted); animation: unlock-rise 520ms 980ms var(--ease-out) backwards; }

.warm-up-focus-screen {
  width: min(100%, 760px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(34px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 78% 12%, rgba(41, 94, 51,.08), transparent 23rem),
    linear-gradient(180deg, #091116 0%, #081015 100%);
}
.warm-up-focus-header { min-height: 50px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.warm-up-focus-header > div { display: grid; justify-items: center; }
.warm-up-focus-header span { color: var(--muted); font-size: .56rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.warm-up-focus-header strong { font: 700 1rem var(--display); }
.warm-up-focus-intro { padding: 44px 2px 30px; }
.warm-up-focus-intro h1 { margin: 10px 0 16px; font: 750 clamp(2.55rem, 10vw, 4.9rem)/.88 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.warm-up-focus-intro > p:last-child { max-width: 470px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.warm-up-focus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.warm-up-focus-card {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(165,178,184,.23);
  border-radius: 14px;
  color: var(--ink);
  background: #10181d;
  text-align: left;
  isolation: isolate;
}
.warm-up-focus-card:first-child { grid-column: 1 / -1; min-height: 285px; }
.warm-up-focus-card::after { content: ""; position: absolute; z-index: -1; inset: 25% 0 0; background: linear-gradient(180deg, transparent, rgba(7,14,18,.9) 74%, #080f13); }
.warm-up-focus-card img { width: 100%; height: 100%; position: absolute; z-index: -2; inset: 0; object-fit: cover; transition: transform 420ms var(--ease-out), filter 300ms ease; }
.warm-up-focus-number { align-self: start; color: var(--lime); font: 700 .63rem var(--display); letter-spacing: .12em; }
.warm-up-focus-copy { min-width: 0; display: grid; gap: 7px; }
.warm-up-focus-copy strong { font: 750 clamp(1.25rem, 5vw, 2rem)/1 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.warm-up-focus-copy small { max-width: 230px; color: #c2c9ca; font-size: .7rem; line-height: 1.35; }
.warm-up-focus-card > b { width: 34px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--lime); }

.warm-up-screen {
  width: min(100%, 680px, calc(100svh - 250px));
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 18px max(12px, env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 30%, rgba(41, 94, 51,.035), transparent 21rem),
    linear-gradient(180deg, #091116 0%, #081015 100%);
}
.warm-up-header {
  min-height: 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.warm-up-header > .back-button {
  width: 42px;
  min-width: 42px;
  justify-self: start;
}
.warm-up-header > div:nth-child(2) { display: grid; justify-items: center; }
.warm-up-header > div:nth-child(2) span { color: var(--muted); font-size: .56rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.warm-up-header > div:nth-child(2) strong { font: 700 1rem var(--display); }
.header-drill-progress { width: min(100%, 88px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; justify-self: end; }
.header-drill-progress i { height: 3px; border-radius: 999px; background: #283238; }
.header-drill-progress i.active { background: var(--lime); box-shadow: 0 0 7px rgba(41, 94, 51,.2);  color: #fff; }
.drill-card { min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); margin-top: 18px; overflow: hidden; border: 1px solid rgba(165,178,184,.25); border-radius: 14px; background: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 18px 55px rgba(0,0,0,.22); }
.drill-heading { padding: 20px 22px 24px; }
.drill-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.drill-heading .eyebrow { margin: 0; }
.club-pill { margin: 0; padding: 8px 14px 7px; border: 1px solid rgba(41, 94, 51,.5); border-radius: 999px; color: var(--lime); background: transparent; font: 700 .62rem var(--display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.drill-heading h1 { max-width: 100%; margin: 0; overflow: hidden; font: 700 clamp(1.72rem, 7vw, 3rem)/.94 var(--display); letter-spacing: -.045em; word-spacing: .04em; text-transform: uppercase; text-overflow: clip; white-space: nowrap; }
.drill-heading.compact-title h1 { font-size: clamp(1rem, 4.15vw, 1.8rem); letter-spacing: -.05em; word-spacing: .02em; }
.drill-visual { width: 100%; min-height: 0; aspect-ratio: 1 / 1; position: relative; overflow: hidden; border-radius: 14px 14px 0 0; }
.drill-visual > img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; object-position: center; background: transparent; }
.drill-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 34% 0 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8,16,21,.12) 28%,
    rgba(8,16,21,.58) 67%,
    rgba(8,16,21,.92) 88%,
    #081015 100%
  );
  pointer-events: none;
}
.drill-goal { min-height: 126px; display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 16px; padding: 22px 25px 18px; position: absolute; z-index: 2; inset: auto 0 0; background: transparent; pointer-events: none; }
.goal-icon { width: 54px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(41, 94, 51,.62); border-radius: 50%; color: var(--lime); background: rgba(7,14,18,.28); box-shadow: inset 0 0 0 7px rgba(7,14,18,.2); font-size: 1.75rem; font-style: normal; }
.goal-target-icon { width: 31px; height: 31px; display: block; overflow: visible; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.goal-copy { min-width: 0; }
.drill-goal span, .drill-details span { display: block; margin-bottom: 8px; color: var(--lime); font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.drill-goal p { max-width: 310px; margin: 0; color: #f0f2ef; font-size: .88rem; line-height: 1.42; text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 1px #000; }
.drill-details { display: grid; border-top: 1px solid var(--line); }
.drill-details section { min-height: 0; padding: 18px 24px 20px; border: 0; }
.drill-details section + section:not(.drill-steps) { border-left: 1px solid var(--line); }
.drill-details p { margin: 0; color: #d7dbdc; font-size: .78rem; line-height: 1.4; }
.drill-goal .drill-equipment { margin-top: 7px; color: #c1c7c8; font-size: .72rem; }
.drill-equipment b { margin-right: 4px; color: var(--lime); font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; }
.drill-details .drill-steps { min-height: 0; display: grid; align-content: center; }
.drill-steps ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.drill-steps li { display: flex; align-items: baseline; gap: 11px; color: #e4e7e5; font-size: .86rem; line-height: 1.3; counter-increment: steps; }
.drill-steps li::before { content: "0" counter(steps); width: 22px; display: block; flex: 0 0 auto; color: #7e888d; font: 700 .66rem var(--display); }
.drill-navigation { display: grid; grid-template-columns: minmax(60px, .75fr) 74px minmax(132px, 1.45fr); gap: 9px; margin-top: 11px; }
.drill-navigation button { min-height: 58px; border-radius: 7px; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.previous-drill { min-width: 112px; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.previous-drill:disabled { opacity: .28; cursor: default; }
.drill-timer { display: grid; place-content: center; justify-items: center; gap: 3px; padding: 5px; border: 1px solid rgba(41, 94, 51,.28); color: var(--lime); background: rgba(41, 94, 51,.045); }
.drill-timer strong { font: 750 .76rem/1 var(--display); letter-spacing: .04em; }
.timer-icon { width: 16px; height: 16px; display: block; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.timer-icon::before { content: ""; width: 5px; height: 2px; position: absolute; left: 50%; top: -4px; border-radius: 2px; background: currentColor; transform: translateX(-50%); }
.timer-icon::after { content: ""; width: 1.5px; height: 5px; position: absolute; left: 50%; top: 3px; border-radius: 2px; background: currentColor; transform-origin: 50% 5px; transform: translateX(-50%); }
.drill-timer.running { color: #fff; background: var(--lime); box-shadow: 0 0 22px rgba(41, 94, 51,.14); }
.drill-timer.running .timer-icon::after { animation: timer-tick 1s linear infinite; }
.drill-timer.complete { color: #fff; background: var(--lime); }
.next-drill { display: flex; align-items: center; justify-content: space-between; padding: 0 19px 0 22px; color: #fff; background: var(--lime); }

.warm-up-complete-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 37%, rgba(41, 94, 51,.16), transparent 22rem), var(--bg);
}
.warm-up-complete-screen > section { width: min(100%, 500px); text-align: center; }
.complete-rings { width: 110px; aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 34px; border: 1px solid rgba(41, 94, 51,.18); border-radius: 50%; box-shadow: 0 0 70px rgba(41, 94, 51,.1), inset 0 0 0 15px rgba(41, 94, 51,.025); }
.complete-rings span { width: 70px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(41, 94, 51,.46); border-radius: 50%; color: var(--lime); font-size: 1.8rem; }
.warm-up-complete-screen h1 { margin: 0 0 18px; font: 700 clamp(3.6rem, 17vw, 6rem)/.84 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.warm-up-complete-screen section > p:not(.eyebrow) { margin: 0 0 38px; color: var(--muted); font-size: .9rem; }

.login-overlay { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(4,8,12,.86); backdrop-filter: blur(16px); }
.login-card { width: min(100%, 410px); padding: 32px; border: 1px solid var(--line); border-radius: 12px; position: relative; background: linear-gradient(150deg, rgba(41, 94, 51,.07), transparent 30%), #11191e; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.login-logo { width: 64px; height: 64px; display: block; margin-bottom: 24px; filter: brightness(0) invert(1); }
.login-card h2 { margin: 0 0 10px; font: 700 2.5rem/.9 var(--display); text-transform: uppercase; }
.login-card > p:not(.eyebrow):not(.login-message) { margin: 0 0 24px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.close-login { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.05); font-size: 1.3rem; }
.google-button, .email-button { width: 100%; min-height: 52px; border-radius: 6px; font-size: .78rem; font-weight: 700; }
.google-button:disabled, .email-button:disabled { opacity: .58; cursor: wait; }
.google-button { color: #111; background: #f5f5f2; }
.google-button b { margin-right: 10px; }
.email-button { color: #fff; background: var(--lime); }
.test-account-button { width: 100%; min-height: 58px; display: grid; place-content: center; gap: 3px; margin-bottom: 10px; border: 1px solid rgba(41, 94, 51,.45); border-radius: 6px; color: var(--lime); background: rgba(41, 94, 51,.065); }
.test-account-button span { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.test-account-button small { color: var(--muted); font-size: .58rem; letter-spacing: .03em; }
.test-mode-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 2px 0 18px; padding: 10px 14px; border: 1px solid rgba(41, 94, 51,.3); border-radius: 7px; background: rgba(41, 94, 51,.055); }
.test-mode-banner span { color: var(--lime); font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.test-mode-banner strong { color: var(--muted); font-size: .62rem; font-weight: 600; text-align: right; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #687177; font-size: .65rem; }
.or::before, .or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.login-card label { display: grid; gap: 7px; margin-bottom: 11px; color: var(--muted); font-size: .64rem; font-weight: 600; }
.login-card input { width: 100%; height: 50px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: rgba(0,0,0,.2); }
.login-message { margin: 14px 0 0; color: var(--lime); font-size: .74rem; text-align: center; }

.settings-overlay { position: fixed; z-index: 19; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(4,8,12,.86); backdrop-filter: blur(16px); }
.settings-panel { width: min(100%, 560px); max-height: calc(100svh - 36px); overflow-y: auto; padding: 30px; border: 1px solid var(--line); border-radius: 12px; position: relative; background: linear-gradient(150deg, rgba(41, 94, 51,.07), transparent 30%), #11191e; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.settings-panel h2 { margin: 0 0 10px; font: 700 2.35rem/.95 var(--display); text-transform: uppercase; }
.settings-intro { margin: 0 0 26px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.close-settings { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.05); font-size: 1.3rem; }
.settings-panel fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.settings-panel legend { margin-bottom: 10px; color: var(--muted); font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.tracking-option { min-height: 86px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: rgba(255,255,255,.025); }
.tracking-option:has(input:checked) { border-color: rgba(41, 94, 51,.48); background: rgba(41, 94, 51,.07); }
.tracking-option input { position: absolute; opacity: 0; pointer-events: none; }
.tracking-option span { display: grid; gap: 5px; }
.tracking-option strong { font: 700 1.05rem var(--display); text-transform: uppercase; }
.tracking-option small { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.tracking-option b { width: 24px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: transparent; font-size: .68rem; }
.tracking-option:has(input:checked) b { border-color: var(--lime); color: #fff; background: var(--lime); }
.tracking-option:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
.save-settings { width: 100%; min-height: 52px; margin-top: 18px; border-radius: 6px; color: #fff; background: var(--lime); font-size: .75rem; font-weight: 800; text-transform: uppercase; }

.club-tracking-fieldset { margin-top: 24px !important; }
.club-tracking-option input[type="checkbox"] + span + b { border-radius: 5px; }
.manual-carry-fieldset { margin-top: 24px !important; transition: opacity .2s ease; }
.manual-carry-fieldset.unavailable { opacity: .38; pointer-events: none; }
.manual-carry-option input[type="checkbox"] + span + b { border-radius: 5px; }
.setting-note { margin: 0; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.bag-builder { display: none; padding-top: 12px; }
.bag-builder.visible { display: grid; gap: 18px; }
.bag-builder-heading { display: flex; align-items: center; justify-content: space-between; color: var(--ink); }
.bag-builder-heading > span { font: 700 1rem var(--display); text-transform: uppercase; }
.bag-builder-heading small { color: var(--muted); font-size: .65rem; }
.bag-builder-heading b { color: var(--lime); }
.bag-builder section { display: grid; gap: 8px; }
.bag-builder h3 { margin: 0; color: var(--muted); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; }
.bag-club-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.club-tile { min-width: 0; min-height: 104px; display: grid; grid-template-rows: 65px auto; place-items: center; gap: 3px; padding: 7px 5px 8px; border: 1px solid var(--line); border-radius: 8px; position: relative; color: var(--ink); background: rgba(255,255,255,.025); }
.club-tile img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 7px 10px rgba(0,0,0,.35)); }
.club-tile span { overflow: hidden; max-width: 100%; font-size: .58rem; font-weight: 750; line-height: 1.15; text-align: center; text-overflow: ellipsis; text-transform: uppercase; }
.club-tile > b { width: 18px; height: 18px; display: none; place-items: center; position: absolute; right: 5px; top: 5px; border-radius: 50%; color: #fff; background: var(--lime); font-size: .55rem; }
.club-tile[data-selected="true"] { border-color: rgba(41, 94, 51,.65); background: rgba(41, 94, 51,.09); }
.club-tile[data-selected="true"] > b { display: grid; }
.bag-error { min-height: 1em; margin: 0; color: #ff8b86; font-size: .66rem; }

.club-picker { position: fixed; z-index: 40; inset: 0; display: grid; grid-template-rows: auto 1fr; gap: 14px; overflow: hidden; padding: max(20px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% -10%, rgba(41, 94, 51,.16), transparent 37%), #0d1218; animation: overlay-in 180ms ease backwards; }
.club-picker header { text-align: center; }
.club-picker header h2 { margin: 5px 0 3px; font: 750 clamp(2.2rem, 10vw, 4rem)/.9 var(--display); text-transform: uppercase; }
.club-picker header > span { color: var(--muted); font-size: .7rem; }
.club-picker-grid { width: min(100%, 720px); min-height: 0; display: grid; grid-template-columns: repeat(var(--club-columns, 3), minmax(0, 1fr)); grid-template-rows: repeat(var(--club-rows, 1), minmax(0, 1fr)); gap: 6px; margin: 0 auto; }
.club-picker .club-tile { min-height: 0; height: 100%; grid-template-rows: minmax(0, 1fr) auto; border: 0; border-radius: 0; background: rgba(255,255,255,.045); }
.club-picker .club-tile:active { color: #fff; background: var(--lime); transform: scale(.97); }
.club-picker .club-tile img { width: min(84%, 180px); height: 100%; max-height: 180px; object-fit: contain; }

.manual-carry-error { min-height: 1.1em; margin: 8px 0 10px; color: #ff8b86; font-size: .68rem; }
.yardage-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 12px; }
.yardage-keypad button { min-height: 52px; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; color: var(--ink); background: rgba(255,255,255,.065); font: 750 1.35rem var(--display); }
.yardage-keypad button:active { border-color: rgba(41, 94, 51,.7); color: #fff; background: var(--lime); }
.yardage-keypad .yardage-keypad-action { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.yardage-keypad .yardage-keypad-delete { font-size: 1.25rem; }

.automatic-carry-game { grid-template-rows: auto minmax(180px, 1fr) auto auto; }
.automatic-carry-game .target-stage { min-height: 190px; padding-block: 10px 4px; }
.automatic-carry-game .distance strong { font-size: clamp(4.1rem, 19vw, 7rem); }
.automatic-carry-game .range-distance strong { font-size: clamp(3.5rem, 17vw, 6.2rem); }
.automatic-carry-game .random-target-details, .automatic-carry-game .tolerance-card { margin-top: 10px; }
.automatic-carry-game .game-progress { margin-bottom: 22px; }
.inline-yardage-panel { width: 100%; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.12); background: rgba(5,10,14,.92); }
.inline-yardage-panel form { width: min(100%, 500px); margin: 0 auto; }
.inline-yardage-heading { min-height: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
.inline-yardage-heading > div { display: grid; gap: 3px; }
.inline-yardage-heading > div > span { color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.inline-yardage-heading small { color: var(--muted); font-size: .58rem; }
.inline-yardage-heading label { min-width: 118px; height: 48px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 5px; padding: 0 40px 7px 7px; border-bottom: 2px solid var(--lime); position: relative; }
.inline-yardage-heading input { width: 82px; min-width: 0; padding: 0; border: 0; caret-color: transparent; color: var(--ink); background: transparent; font: 800 2.3rem/.8 var(--display); letter-spacing: -.05em; text-align: right; cursor: default; }
.inline-yardage-heading b { position: absolute; right: 7px; bottom: 13px; color: var(--lime); font-size: .55rem; line-height: 1; letter-spacing: .08em; }
.inline-yardage-error { min-height: 13px; margin: 4px 0 6px; }
.inline-yardage-panel .yardage-keypad { gap: 6px; margin-bottom: 8px; }
.inline-yardage-panel .yardage-keypad button { min-height: 43px; font-size: 1.05rem; }
.inline-yardage-panel .yardage-keypad .yardage-keypad-action { font-size: .55rem; }
.inline-yardage-submit { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-radius: 7px; color: #fff; background: var(--lime); font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.inline-yardage-submit b { font-size: 1.05rem; }
.automatic-shot-result { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); overflow: hidden; position: fixed; z-index: 30; inset: 0; text-align: center; animation: automatic-result-screen 240ms ease-out backwards; }
.automatic-shot-result::before { content: ""; width: min(92vw, 520px); aspect-ratio: 1; position: absolute; left: 50%; top: 50%; border: 1px solid currentColor; border-radius: 50%; opacity: .18; box-shadow: 0 0 0 42px currentColor, 0 0 0 94px currentColor; transform: translate(-50%, -50%) scale(.2); animation: automatic-result-wave 900ms var(--ease-out) both; }
.automatic-shot-result > span { width: 112px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; position: relative; font-size: 3.1rem; box-shadow: 0 0 55px color-mix(in srgb, currentColor 26%, transparent); animation: result-pop 540ms var(--ease-spring) backwards; }
.automatic-shot-result > div { display: grid; justify-items: center; gap: 7px; position: relative; }
.automatic-shot-result small { color: #b8c0c4; font-size: .7rem; }
.automatic-shot-result strong { font: 800 clamp(4.5rem, 22vw, 8rem)/.82 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.automatic-shot-result p { margin: 3px 0 0; color: #d0d5d6; font-size: .72rem; }
.automatic-shot-result.hit { color: var(--lime); background: radial-gradient(circle at 50% 42%, rgba(41, 94, 51,.23), transparent 38%), linear-gradient(160deg, #15200f, #080e13 64%); }
.automatic-shot-result.miss { color: var(--red); background: radial-gradient(circle at 50% 42%, rgba(255,98,92,.23), transparent 38%), linear-gradient(160deg, #281313, #080e13 64%); }
.automatic-shot-result > div { animation: automatic-result-copy 480ms 80ms var(--ease-out) backwards; }

.club-stats-section { margin-top: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.club-stats-section > h2 { margin: 7px 0 16px; font: 700 2rem/.95 var(--display); text-transform: uppercase; }
.club-stats-empty, .coach-note { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.coach-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.coach-metrics span { padding: 6px 8px; border: 1px solid rgba(41, 94, 51,.2); border-radius: 99px; color: var(--lime); font-size: .56rem; text-transform: uppercase; }
.club-stats-gate { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin-bottom: 14px; padding: 15px; border: 1px solid rgba(41, 94, 51,.28); border-radius: 9px; background: rgba(41, 94, 51,.055); }
.club-stats-gate strong { display: block; margin-bottom: 4px; font: 750 .82rem var(--display); text-transform: uppercase; }
.club-stats-gate p { margin: 0; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.club-stats-gate button { min-height: 38px; padding: 0 12px; border-radius: 5px; color: #fff; background: var(--lime); font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.club-stat-list { display: grid; gap: 8px; margin-bottom: 16px; }
.club-stat-card { width: 100%; min-height: 120px; display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; text-align: left; background: rgba(255,255,255,.025); }
.club-stat-card[data-club-stats]:hover { border-color: rgba(41, 94, 51,.42); background: rgba(41, 94, 51,.055); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.club-stat-card img { width: 88px; height: 88px; object-fit: contain; }
.club-stat-card span, .club-stat-card small { color: var(--muted); font-size: .58rem; line-height: 1.4; }
.club-stat-card h3 { margin: 3px 0; font: 700 1.15rem var(--display); text-transform: uppercase; }
.club-stat-card p { margin: 0 0 4px; font-size: .68rem; }
.club-stat-card p b { color: var(--lime); }
.club-stat-arrow { width: 30px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(41, 94, 51,.42); border-radius: 50%; color: var(--lime); font-size: .8rem; }

.club-detail-overlay { position: fixed; z-index: 45; inset: 0; overflow-y: auto; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); background: rgba(4,8,12,.9); backdrop-filter: blur(16px); animation: overlay-in 180ms ease backwards; }
.club-detail-panel { width: min(100%, 680px); min-height: calc(100svh - 36px); margin: 0 auto; padding: 24px; border: 1px solid var(--line); border-radius: 13px; position: relative; overflow: hidden; background: radial-gradient(circle at 85px 40px, rgba(41, 94, 51,.11), transparent 15rem), #11191e; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: modal-in 340ms var(--ease-out) backwards; }
.close-club-detail { width: 38px; aspect-ratio: 1; display: grid; place-items: center; position: absolute; z-index: 2; right: 16px; top: 16px; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.06); font-size: 1.3rem; }
.club-detail-header { min-height: 145px; display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; padding-right: 38px; }
.club-detail-header img { width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }
.club-detail-header .eyebrow { margin-bottom: 8px; font-size: .58rem; }
.club-detail-header h2 { margin: 0 0 6px; font: 800 clamp(2.1rem, 9vw, 3.4rem)/.9 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.club-detail-header div > p:last-child { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.club-shot-window { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 5px 0 14px; padding: 8px 8px 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.13); }
.club-shot-window > span { color: var(--muted); font-size: .56rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.club-shot-window > div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 7px; background: rgba(255,255,255,.045); }
.club-shot-window button { min-height: 34px; padding: 0 13px; border-radius: 5px; color: var(--muted); background: transparent; font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.club-shot-window button[aria-pressed="true"] { color: #fff; background: var(--lime); box-shadow: 0 5px 14px rgba(41, 94, 51,.15); }
.club-detail-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 14px 0; }
.club-detail-metrics article { min-height: 92px; display: grid; align-content: space-between; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.club-detail-metrics span, .club-detail-spots span, .club-detail-insights span { color: var(--muted); font-size: .56rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.club-detail-metrics strong { font: 750 clamp(1rem, 3.8vw, 1.4rem) var(--display); }
.club-detail-spots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.club-detail-spots article { min-height: 116px; display: grid; align-content: center; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.club-detail-spots .best { border-color: rgba(41, 94, 51,.32); background: rgba(41, 94, 51,.055); }
.club-detail-spots .weak { border-color: rgba(255,98,92,.25); background: rgba(255,98,92,.04); }
.club-detail-spots strong { font: 750 1.15rem var(--display); text-transform: uppercase; }
.club-detail-spots .best strong { color: var(--lime); }
.club-detail-spots .weak strong { color: #ff8b86; }
.club-detail-spots small { color: var(--muted); font-size: .61rem; line-height: 1.4; }
.club-yardage-breakdown { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.13); }
.club-detail-title { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.club-detail-title .eyebrow { margin-bottom: 5px; font-size: .54rem; }
.club-detail-title h3 { margin: 0; font: 750 1.25rem var(--display); text-transform: uppercase; }
.club-detail-title > span { color: var(--muted); font-size: .54rem; text-transform: uppercase; }
.club-yardage-row { display: grid; grid-template-columns: 76px 1fr 42px 34px; align-items: center; gap: 9px; min-height: 37px; }
.club-yardage-row > span { font-size: .62rem; font-weight: 700; }
.club-yardage-row > div { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.club-yardage-row i { height: 100%; display: block; border-radius: inherit; background: var(--lime); box-shadow: 0 0 10px rgba(41, 94, 51,.25);  color: #fff; }
.club-yardage-row strong { color: var(--lime); font-size: .66rem; text-align: right; }
.club-yardage-row small { color: var(--muted); font-size: .55rem; text-align: right; }
.club-detail-empty { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.club-detail-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.club-detail-insights article { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.02); }
.club-detail-insights strong { display: block; margin: 6px 0 5px; font: 750 1.1rem var(--display); text-transform: uppercase; }
.club-detail-insights p, .club-detail-note { margin: 0; color: var(--muted); font-size: .62rem; line-height: 1.5; }
.club-detail-note { margin-top: 14px; padding: 0 2px; }

.profile-menu-overlay { position: fixed; z-index: 21; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(4,8,12,.72); backdrop-filter: blur(12px); }
.profile-menu { width: min(100%, 390px); padding: 30px; border: 1px solid var(--line); border-radius: 12px; position: relative; background: linear-gradient(150deg, rgba(41, 94, 51,.08), transparent 32%), #11191e; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.close-profile { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.05); font-size: 1.3rem; }
.profile-avatar { width: 64px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid rgba(41, 94, 51,.4); border-radius: 50%; color: var(--lime); background: rgba(41, 94, 51,.08); box-shadow: 0 0 0 7px rgba(41, 94, 51,.035); font: 800 1.25rem var(--display); text-transform: uppercase; }
.profile-menu h2 { margin: 0 0 9px; font: 700 2.35rem/.95 var(--display); text-transform: uppercase; }
.profile-email { margin: 0 0 26px; overflow-wrap: anywhere; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.profile-message { margin: -10px 0 16px; color: var(--red); font-size: .72rem; line-height: 1.45; }
.logout-button { width: 100%; min-height: 52px; border: 1px solid rgba(255,98,92,.38); border-radius: 6px; color: #ff8b86; background: rgba(255,98,92,.08); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.logout-button:disabled { opacity: .58; cursor: wait; }

/* Premium motion system --------------------------------------------------- */
.screen, .warm-up-screen { animation: screen-in 420ms var(--ease-out) backwards; }
.game-screen { animation: game-in 320ms var(--ease-out) backwards; }
.brand-header, .game-header, .warm-up-header { animation: fade-down 400ms 35ms var(--ease-out) backwards; }
.brand-header { animation-delay: 20ms; }

.wordmark img { transition: filter 220ms ease, transform 220ms var(--ease-out); }
.header-actions button { animation: control-in 360ms var(--ease-spring) backwards; }
.header-actions button:nth-child(2) { animation-delay: 55ms; }
.settings-button:hover { border-color: rgba(41, 94, 51,.34); color: var(--lime); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 5px rgba(41, 94, 51,.045), 0 10px 24px rgba(0,0,0,.22); }
.settings-button:hover .header-icon { transform: rotate(5deg) scale(1.04); stroke-width: 1.9; }
.profile-button:hover { border-color: rgba(41, 94, 51,.5); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 5px rgba(41, 94, 51,.065), 0 10px 24px rgba(0,0,0,.22); }
.profile-button:hover .header-icon { transform: scale(1.06); }

.dashboard-stats { animation: rise-in 460ms 40ms var(--ease-out) backwards; }
.level-up-hero { animation: rise-in 480ms 25ms var(--ease-out) backwards; }
.level-ring { animation: control-in 520ms 90ms var(--ease-spring) backwards; }
.dashboard-stats article { animation: stat-in 480ms var(--ease-out) backwards; }
.dashboard-stats article:nth-child(2) { animation-delay: 60ms; }
.dashboard-stats article:nth-child(3) { animation-delay: 120ms; }
.dashboard-stats i { transition: transform var(--motion-fast) var(--ease-out), color var(--motion-fast) ease, background-color var(--motion-fast) ease; }
.dashboard-stats article:hover i { color: var(--lime); background: rgba(41, 94, 51,.09); transform: translateY(-2px); }
.dashboard-section-head { animation: rise-in 440ms 110ms var(--ease-out) backwards; }
.dashboard-section-head button:hover { transform: translateX(3px); }

.mode-card { animation: card-in 520ms var(--ease-out) backwards; transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease; }
.mode-card:nth-child(2) { animation-delay: 55ms; }
.mode-card:nth-child(3) { animation-delay: 110ms; }
.mode-card:nth-child(4) { animation-delay: 165ms; }
.mode-card > b { transition: transform 220ms var(--ease-spring), color var(--motion-fast) ease, background-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease; }

.progress-heading, .setup-copy { animation: rise-in 480ms 35ms var(--ease-out) backwards; }
.stat-stack article { animation: list-in 420ms var(--ease-out) backwards; transition: padding 200ms var(--ease-out), color 200ms ease, background-color 200ms ease; }
.stat-stack article:nth-child(2) { animation-delay: 45ms; }
.stat-stack article:nth-child(3) { animation-delay: 90ms; }
.stat-stack article:nth-child(4) { animation-delay: 135ms; }
.stat-stack article:nth-child(5) { animation-delay: 180ms; }

.start-button b, .warm-up-button > b, .next-drill span { transition: transform 200ms var(--ease-spring); }
.game-header { animation-duration: 360ms; }
.game-lives span { animation: heart-in 300ms var(--ease-spring) backwards; }
.game-lives span:nth-child(2) { animation-delay: 45ms; }
.game-lives span:nth-child(3) { animation-delay: 90ms; }
.target-stage { animation: target-in 440ms 45ms var(--ease-out) backwards; }
.shot-variation { animation: variation-in 380ms 110ms var(--ease-spring) backwards; }
.distance strong { animation: number-in 420ms 70ms var(--ease-spring) backwards; }
.game-progress { animation: rise-in 400ms 100ms var(--ease-out) backwards; }
.progress-track i { transform-origin: left; animation: progress-settle 360ms var(--ease-out) backwards; }
.hit-dot { animation: dot-in 260ms var(--ease-spring) backwards; }
.shot-actions { animation: actions-in 440ms 80ms var(--ease-out) backwards; }
.shot-actions span { transition: transform 180ms var(--ease-spring); }

.result-screen { animation: game-in 420ms ease backwards; }
.result-content > * { animation: rise-in 480ms var(--ease-out) backwards; }
.result-content > :nth-child(2) { animation-delay: 70ms; }
.result-content > :nth-child(3) { animation-delay: 110ms; }
.result-content > :nth-child(4) { animation-delay: 150ms; }
.result-content > :nth-child(5) { animation-delay: 190ms; }
.result-content > :nth-child(6) { animation-delay: 225ms; }
.result-content > :nth-child(7) { animation-delay: 250ms; }
.result-symbol { animation: result-pop 620ms var(--ease-spring) backwards !important; }

.header-drill-progress i { transform-origin: left; transition: background-color 240ms ease, transform 320ms var(--ease-out); }
.header-drill-progress i.active { animation: progress-line-in 420ms var(--ease-out) backwards; }
.drill-card { animation: card-in 480ms 55ms var(--ease-out) backwards; }
.drill-visual > img { animation: image-reveal 620ms 95ms var(--ease-out) backwards; }
.drill-steps li { animation: list-in 360ms var(--ease-out) backwards; }
.drill-steps li:nth-child(2) { animation-delay: 45ms; }
.drill-steps li:nth-child(3) { animation-delay: 90ms; }
.drill-navigation { animation: rise-in 420ms 110ms var(--ease-out) backwards; }

.warm-up-complete-screen { animation: game-in 420ms ease backwards; }
.warm-up-complete-screen > section > * { animation: rise-in 480ms var(--ease-out) backwards; }
.warm-up-complete-screen > section > :nth-child(2) { animation-delay: 70ms; }
.warm-up-complete-screen > section > :nth-child(3) { animation-delay: 110ms; }
.warm-up-complete-screen > section > :nth-child(4) { animation-delay: 150ms; }
.warm-up-complete-screen > section > :nth-child(5) { animation-delay: 190ms; }
.complete-rings { animation: result-pop 620ms var(--ease-spring) backwards !important; }

.login-overlay, .settings-overlay, .profile-menu-overlay { animation: overlay-in 240ms ease backwards; }
.login-card, .settings-panel, .profile-menu { animation: modal-in 420ms var(--ease-out) backwards; }
.login-card input { transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background-color var(--motion-fast) ease; }
.login-card input:focus { border-color: rgba(41, 94, 51,.55); background: rgba(0,0,0,.3); box-shadow: 0 0 0 4px rgba(41, 94, 51,.06); }
.tracking-option { transition: transform 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease; }
.tracking-option:has(input:checked) b { animation: check-in 280ms var(--ease-spring) backwards; }

@media (hover: hover) {
  .wordmark:hover img { filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(41, 94, 51,.2)); transform: translateY(-1px); }
  .mode-card:hover { transform: translateY(-3px); border-color: rgba(41, 94, 51,.46); box-shadow: 0 16px 38px rgba(0,0,0,.28); }
  .mode-card:hover > b { color: #fff; background: var(--lime); transform: translateX(3px); box-shadow: 0 0 18px rgba(41, 94, 51,.18); }
  .start-button:hover, .next-drill:hover, .save-settings:hover, .email-button:hover, .test-account-button:hover { filter: brightness(1.06); box-shadow: 0 14px 34px rgba(41, 94, 51,.2); transform: translateY(-2px); }
  .logout-button:hover { border-color: rgba(255,98,92,.65); background: rgba(255,98,92,.13); transform: translateY(-2px); }
  .start-button:hover b, .warm-up-button:hover > b, .next-drill:hover span { transform: translateX(4px); }
  .shot-actions button:hover { filter: brightness(1.07) saturate(1.04); }
  .shot-actions button:hover span { transform: scale(1.14); }
  .tracking-option:hover { transform: translateY(-2px); border-color: rgba(41, 94, 51,.34); }
  .back-button:hover, .close-login:hover, .close-settings:hover, .close-profile:hover { color: var(--lime); border-color: rgba(41, 94, 51,.4); transform: rotate(-4deg); }
}

@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes game-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes list-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes stat-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes control-in { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@keyframes target-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes variation-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes number-in { from { opacity: 0; transform: translateY(8px) scale(.9); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes heart-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes dot-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes reticle-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes target-glow { 0%, 100% { transform: scale(.9); box-shadow: 0 0 12px var(--lime); } 50% { transform: scale(1.18); box-shadow: 0 0 22px var(--lime); } }
@keyframes progress-settle { from { opacity: .65; transform: scaleX(.94); } to { opacity: 1; transform: scaleX(1); } }
@keyframes progress-line-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes actions-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes image-reveal { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
@keyframes timer-tick { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes check-in { from { transform: scale(.45); } to { transform: scale(1); } }
@keyframes result-pop { 0% { opacity: 0; transform: scale(.55) rotate(-8deg); } 65% { opacity: 1; transform: scale(1.06) rotate(1deg); } 100% { transform: none; } }
@keyframes shot-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes distance-texture-drift { to { background-position: 15px 15px, 180px 0, 0 0; } }
@keyframes shot-feedback-flash { 0% { opacity: 0; } 24% { opacity: 1; } 100% { opacity: 0; } }
@keyframes shot-value-swap { 0% { opacity: .35; transform: translateY(-8px) scale(.96); filter: blur(3px); } 65% { opacity: 1; transform: translateY(2px) scale(1.025); filter: none; } 100% { transform: none; } }
@keyframes score-tick { 0% { opacity: .45; transform: translateY(5px) scale(.88); } 70% { opacity: 1; transform: translateY(-1px) scale(1.08); } 100% { transform: none; } }
@keyframes setup-swap { 0% { opacity: .25; transform: translateY(-7px); filter: blur(3px); } 70% { opacity: 1; transform: translateY(2px); filter: none; } 100% { transform: none; } }
@keyframes hit-confirm { 0% { transform: scale(1); } 25% { transform: scale(.965); filter: brightness(1.08); } 62% { transform: scale(1.018); filter: brightness(1.16); } 100% { transform: none; filter: none; } }
@keyframes miss-impact { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px) rotate(-1deg); filter: brightness(1.08); } 40% { transform: translateX(6px) rotate(1deg); } 58% { transform: translateX(-4px); } 76% { transform: translateX(2px); } }
@keyframes action-ring { 0% { opacity: .72; transform: translate(-50%, -50%) scale(.25); } 70% { opacity: .24; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.5); } }
@keyframes action-label-up { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); } 22% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -42px) scale(1.05); } }
@keyframes hit-icon-pop { 0% { transform: scale(1); } 35% { transform: scale(.7) rotate(-12deg); } 68% { transform: scale(1.35) rotate(4deg); } 100% { transform: none; } }
@keyframes miss-icon-turn { 0% { transform: scale(1) rotate(0); } 30% { transform: scale(.72) rotate(-18deg); } 62% { transform: scale(1.24) rotate(10deg); } 100% { transform: none; } }
@keyframes automatic-result-screen { from { opacity: 0; } to { opacity: 1; } }
@keyframes automatic-result-wave { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.15); } 28% { opacity: .14; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); } }
@keyframes automatic-result-copy { from { opacity: 0; transform: translateX(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes life-lost { 0% { opacity: 1; transform: scale(1); } 32% { opacity: 1; transform: scale(1.35) rotate(-9deg); color: #fff; } 100% { opacity: .18; transform: scale(.75) rotate(12deg); } }
@keyframes gate-grid-drift { to { background-position: 120px 0; } }
@keyframes gate-orbit { 0%, 100% { opacity: .6; transform: translate(-50%, -48%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -48%) scale(1.03); } }
@keyframes gate-sweep { 0%, 20% { transform: translateX(-120%); } 70%, 100% { transform: translateX(120%); } }
@keyframes unlock-rotate { to { transform: rotate(360deg); } }
@keyframes unlock-ring { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.18); } 24% { opacity: .7; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); } }
@keyframes unlock-particle { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0); } 16% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x) * 1px), 48svh) scale(.9) rotate(var(--r)); } }
@keyframes unlock-badge-in { 0% { opacity: 0; transform: scale(.25) rotate(-18deg); filter: blur(8px); } 65% { opacity: 1; transform: scale(1.09) rotate(2deg); filter: none; } 100% { transform: none; } }
@keyframes unlock-badge-glow { 0%, 100% { box-shadow: 0 0 0 9px rgba(41, 94, 51,.035), 0 0 55px rgba(41, 94, 51,.16); } 50% { box-shadow: 0 0 0 13px rgba(41, 94, 51,.055), 0 0 88px rgba(41, 94, 51,.3); } }
@keyframes unlock-title-in { from { opacity: 0; transform: translateY(24px) scale(.94); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes unlock-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes unlock-dot { from { right: 100%; opacity: 0; } to { right: 0; opacity: 1; } }
@keyframes second-chance-field { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes second-chance-ring { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 24% { opacity: .65; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
@keyframes second-chance-shield-in { 0% { opacity: 0; transform: scale(.2) rotateY(90deg); } 66% { opacity: 1; transform: scale(1.1) rotateY(-8deg); } 100% { transform: none; } }
@keyframes second-chance-shield-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes second-chance-title-in { from { opacity: 0; transform: translateY(22px) scale(.92); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }

@media (min-width: 760px) {
  .screen { padding-left: 28px; padding-right: 28px; }
  .game-screen { width: min(100%, 760px); margin: 0 auto; border-inline: 1px solid var(--line); }
  .shot-actions { margin-inline: 20px; margin-bottom: 20px; border-radius: 10px; overflow: hidden; }
  .shot-actions button { min-height: 116px; }
  .warm-up-screen { padding-left: 26px; padding-right: 26px; }
}

@media (max-width: 430px) {
  .settings-overlay { padding: 0; place-items: stretch; }
  .settings-panel { max-height: 100svh; padding: 26px 18px; border-radius: 0; }
  .bag-club-grid { grid-template-columns: repeat(3, 1fr); }
  .club-picker-grid { grid-template-columns: repeat(var(--club-columns, 3), minmax(0, 1fr)); }
  .dashboard-stats article { min-height: 136px; }
  .dashboard-stats i { width: 42px; }
  .mode-card { grid-template-columns: 48px 1fr 42px; gap: 13px; padding-right: 13px; }
  .mode-card > b { width: 40px; }
  .warm-up-button > span { display: grid; gap: 2px; }
  .warm-up-button small { order: 2; }
  .warm-up-screen { padding-inline: 14px; }
  .warm-up-focus-screen { padding-inline: 14px; }
  .warm-up-focus-intro { padding-top: 30px; }
  .warm-up-focus-grid { grid-template-columns: 1fr; }
  .warm-up-focus-card, .warm-up-focus-card:first-child { grid-column: auto; min-height: 190px; }
  .drill-heading { padding: 17px 16px 18px; }
  .drill-kicker { margin-bottom: 13px; }
  .drill-visual > img { max-height: none; }
  .drill-details section { padding: 15px 18px 17px; }
  .previous-drill { min-width: 0; }
  .previous-drill span { display: none; }
  .progress-heading { min-height: 225px; padding-top: 44px; }
  .progress-heading::after { right: -150px; opacity: .22; }
  .climb-line { width: 155px; height: 105px; right: -25px; top: 28px; opacity: .75; }
  .stat-stack article { grid-template-columns: 50px 1fr auto; gap: 11px; min-height: 108px; padding: 13px 15px 13px 18px; }
  .stat-icon { width: 48px; }
  .stat-icon svg { width: 25px; height: 25px; }
  .monthly-grid { gap: 6px; }
  .monthly-grid article { min-height: 108px; padding: 14px 10px; }
  .weighted-section { padding: 20px; }
  .progress-chart { padding-inline: 8px; }
  .club-stats-gate { grid-template-columns: 1fr; }
  .club-stats-gate button { width: 100%; }
  .club-stat-card { grid-template-columns: 76px 1fr auto; padding: 10px; }
  .club-stat-card img { width: 72px; height: 72px; }
  .club-detail-overlay { padding: 0; }
  .club-detail-panel { min-height: 100svh; padding: 20px 16px max(24px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .close-club-detail { right: 14px; top: max(14px, env(safe-area-inset-top)); }
  .club-detail-header { min-height: 132px; grid-template-columns: 94px 1fr; gap: 9px; padding: max(12px, env(safe-area-inset-top)) 34px 8px 0; }
  .club-detail-header img { width: 92px; height: 92px; }
  .club-detail-header h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
  .club-shot-window { align-items: stretch; flex-direction: column; }
  .club-shot-window > span { padding: 3px 2px 0; }
  .club-shot-window > div { width: 100%; }
  .club-shot-window button { min-height: 38px; }
  .club-detail-metrics { grid-template-columns: 1fr 1fr; }
  .club-detail-metrics article { min-height: 80px; }
  .club-detail-spots, .club-detail-insights { grid-template-columns: 1fr; }
  .club-detail-spots article { min-height: 96px; }
  .club-yardage-breakdown { padding: 15px 12px; }
  .club-yardage-row { grid-template-columns: 70px 1fr 38px 30px; gap: 7px; }
}

@media (max-height: 720px) {
  .automatic-carry-game .game-header { padding-top: max(8px, env(safe-area-inset-top)); }
  .automatic-carry-game .target-stage { min-height: 150px; padding-top: 2px; }
  .automatic-carry-game .distance strong { font-size: clamp(3.3rem, 16vw, 5.2rem); }
  .automatic-carry-game .random-target-details, .automatic-carry-game .tolerance-card { margin-top: 5px; }
  .automatic-carry-game .game-progress { margin-bottom: 14px; }
  .inline-yardage-panel { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .inline-yardage-heading { min-height: 42px; }
  .inline-yardage-heading label { height: 42px; }
  .inline-yardage-panel .yardage-keypad button { min-height: 36px; }
  .inline-yardage-submit { min-height: 43px; }
  .automatic-shot-result { min-height: 100svh; }
  .club-picker { gap: 8px; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .club-picker header h2 { margin-block: 2px; font-size: 1.8rem; }
  .club-picker header > span { font-size: .6rem; }
  .club-picker-grid { gap: 5px; }
  .club-picker .club-tile { padding: 4px; }
  .club-picker .club-tile img { width: min(88%, 160px); height: 100%; max-height: 160px; }
  .warm-up-screen { padding-top: max(7px, env(safe-area-inset-top)); padding-bottom: max(7px, env(safe-area-inset-bottom)); }
  .warm-up-header { min-height: 42px; }
  .drill-card { margin-top: 10px; }
  .warm-up-header > .back-button { width: 38px; min-width: 38px; min-height: 38px; }
  .drill-heading { padding-block: 10px 11px; }
  .drill-kicker { margin-bottom: 6px; }
  .drill-heading h1 { font-size: clamp(1.55rem, 7vw, 2.35rem); }
  .drill-details section { padding-block: 8px; }
  .drill-goal { min-height: 84px; grid-template-columns: 42px 1fr; gap: 11px; padding: 9px 14px; }
  .goal-icon { width: 40px; font-size: 1.25rem; }
  .goal-target-icon { width: 24px; height: 24px; }
  .drill-goal p { font-size: .72rem; line-height: 1.3; }
  .drill-details span { margin-bottom: 4px; }
  .drill-steps ul { gap: 4px; }
  .drill-steps li { gap: 8px; font-size: .7rem; }
  .drill-steps li::before { width: 20px; font-size: .58rem; }
  .drill-navigation { margin-top: 8px; }
  .drill-navigation button { min-height: 50px; }
}

@media (max-width: 355px) {
  .weighted-copy { align-items: start; flex-direction: column; }
  .weighted-copy > strong { margin-top: 10px; }
  .level-up-hero { gap: 10px; padding-inline: 2px; }
  .level-up-copy h1 { font-size: 1.65rem; }
  .level-up-status { min-width: 104px; }
  .level-ring { width: 98px; }
  .level-ring strong { font-size: 2.45rem; }
}

/* Paid onboarding and private swing capture */
.paid-screen { width: min(100%, 680px); overflow-x: clip; }
.paid-header { min-height: 54px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.paid-header button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.035); }
.paid-header strong { text-align: center; color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.paid-header img { width: 34px; height: 34px; justify-self: end; filter: brightness(0) invert(1); }
.paid-hero { padding: 62px 0 36px; }
.paid-hero h1, .onboarding-form > h1, .recording-heading h1, .review-heading h1, .onboarding-finish h1, .library-heading h1 { margin: 10px 0 18px; font: 800 clamp(2.55rem, 11vw, 5rem)/.9 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.paid-hero h1 span { color: var(--lime); }
.paid-hero > p:last-child, .onboarding-lead, .library-heading p { max-width: 520px; color: var(--muted); line-height: 1.65; }
.subscription-card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); }
.subscription-card h2 { margin: 12px 0 8px; font: 800 1.55rem var(--display); text-transform: uppercase; }
.subscription-card > p, .test-subscription p, .privacy-note { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.subscription-status { display: inline-block; padding: 7px 10px; border: 1px solid rgba(41, 94, 51,.32); border-radius: 999px; color: var(--lime); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.test-subscription { margin-top: 24px; padding: 18px; border: 1px dashed rgba(255,255,255,.22); border-radius: 10px; }
.test-subscription strong { color: #ffca68; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.test-subscription button, .profile-paid-button { width: 100%; min-height: 48px; margin-top: 10px; border-radius: 7px; color: #fff; background: var(--lime); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.privacy-note { padding: 18px 4px; }
.onboarding-complete-banner { display: grid; gap: 4px; margin: 12px 0; padding: 14px 16px; border: 1px solid rgba(41, 94, 51,.3); border-radius: 8px; background: rgba(41, 94, 51,.07); }
.onboarding-complete-banner span { color: var(--lime); font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.onboarding-complete-banner strong { font-size: .74rem; }
.profile-membership { display: flex; justify-content: space-between; margin: 20px 0 0; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.profile-membership strong { color: var(--lime); text-transform: capitalize; }

.onboarding-progress { height: 54px; margin: 28px 0 38px; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; border-bottom: 2px solid var(--line); }
.onboarding-progress span { color: var(--muted); font-size: .63rem; font-weight: 700; letter-spacing: .09em; text-align: center; text-transform: uppercase; }
.onboarding-progress i { width: calc(var(--step) * 33.333%); height: 2px; position: absolute; left: 0; bottom: -2px; background: var(--lime); transition: width .35s var(--ease-out);  color: #fff; }
.onboarding-form { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.onboarding-form label { display: grid; gap: 9px; margin: 24px 0; }
.onboarding-form label > span { color: #c4c9cb; font-size: .7rem; font-weight: 700; }
.onboarding-form input { width: 100%; height: 58px; border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; color: var(--ink); background: rgba(255,255,255,.035); font-size: 1rem; }
.username-field { display: grid; grid-template-columns: 44px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); }
.username-field b { text-align: right; color: var(--lime); }
.username-field input { border: 0; background: transparent; }
.form-note, .camera-note, .camera-intro small, .recording-consent small { color: var(--muted); font-size: .68rem; line-height: 1.5; }
.onboarding-error { min-height: 1.4em; color: #ff8b86; font-size: .72rem; }
.onboarding-primary { width: 100%; min-height: 60px; margin-top: 16px; padding: 0 20px; border-radius: 8px; color: #fff; background: var(--lime); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.onboarding-primary:disabled { opacity: .42; cursor: not-allowed; }
.onboarding-bag .bag-builder { display: block; margin: 24px 0 8px; }
.onboarding-bag .club-tile { min-height: 112px; }

.recording-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.recording-heading h1 { font-size: clamp(2.2rem, 9vw, 4.1rem); }
.recording-heading > span { min-width: 52px; padding: 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--lime); text-align: center; font-size: .68rem; font-weight: 800; }
.slot-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 0 0 24px; }
.slot-progress i { height: 4px; border-radius: 4px; background: var(--line); }
.slot-progress i.complete, .slot-progress i.current { background: var(--lime);  color: #fff; }
.slot-progress i.current { box-shadow: 0 0 16px rgba(41, 94, 51,.45); }
.recording-consent, .camera-intro, .camera-error, .onboarding-finish { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.recording-consent h2, .camera-intro h2, .camera-error h2 { margin: 0 0 12px; font: 800 1.5rem/1.05 var(--display); text-transform: uppercase; }
.recording-consent > p, .camera-intro p, .camera-error p, .onboarding-finish > p { color: var(--muted); font-size: .76rem; line-height: 1.6; }
.recording-consent label { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 6px; font-size: .75rem; line-height: 1.45; }
.recording-consent input { width: 20px; height: 20px; accent-color: var(--lime); }
.angle-guide { height: 210px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 10px; overflow: hidden; position: relative; background: radial-gradient(circle at 50% 35%, #34464f, #121a20 70%); }
.angle-guide span, .framing-guide span { width: 32%; height: 75%; border: 2px dashed rgba(41, 94, 51,.75); border-radius: 45% 45% 18% 18%; }
.angle-guide.back span { transform: translateX(15%); }
.camera-shell { aspect-ratio: 9/16; max-height: 68svh; margin: auto; overflow: hidden; position: relative; border: 1px solid var(--line); border-radius: 14px; background: #050809; }
.camera-shell video { width: 100%; height: 100%; display: block; object-fit: cover; }
.framing-guide { position: absolute; inset: 6%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; }
.framing-guide span { width: 38%; height: 82%; }
.camera-shell[data-ready="true"] .framing-guide { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime), 0 0 22px rgba(41, 94, 51,.24); }
.camera-guidance { max-width: calc(100% - 28px); margin: 0; padding: 10px 12px; position: absolute; left: 14px; bottom: 14px; border-radius: 7px; color: var(--ink); background: rgba(5,8,9,.82); font-size: .68rem; font-weight: 700; backdrop-filter: blur(8px); }
.camera-actions, .review-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.camera-actions button, .review-controls button, .swing-grid article > div:last-child button { min-height: 48px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.045); font-size: .68rem; font-weight: 750; }
.camera-note { margin: 12px 4px; }
.camera-capture { position: fixed; z-index: 1000; inset: 0; overflow: hidden; color: #f5f7f2; background: #000; }
.camera-capture .camera-shell { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; }
.camera-capture .camera-shell video { width: 100%; height: 100%; object-fit: cover; }
.camera-capture[data-facing="user"] .camera-shell video { transform: scaleX(-1); }
.camera-capture .framing-guide { inset: max(88px, calc(env(safe-area-inset-top) + 68px)) 5% max(142px, calc(env(safe-area-inset-bottom) + 122px)); border-color: rgba(255,255,255,.42); border-radius: 22px; }
.camera-capture .framing-guide span { width: min(42%, 230px); height: 84%; }
.camera-topbar { min-height: 52px; display: grid; grid-template-columns: 58px 1fr 70px; align-items: center; gap: 8px; position: absolute; z-index: 2; top: 0; right: 0; left: 0; padding: max(12px, env(safe-area-inset-top)) 14px 8px; background: linear-gradient(180deg, rgba(0,0,0,.72), transparent); }
.camera-topbar strong { text-align: center; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.camera-topbar button { min-height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; background: rgba(0,0,0,.42); font-size: 1.25rem; backdrop-filter: blur(12px); }
.camera-topbar button:last-child { font-size: .72rem; font-weight: 800; }
.camera-topbar button:disabled { opacity: .45; }
.camera-guidance { max-width: calc(100% - 36px); right: auto; bottom: max(118px, calc(env(safe-area-inset-bottom) + 102px)); left: 50%; padding: 9px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0,0,0,.62); transform: translateX(-50%); }
.camera-capture .camera-actions { width: 100%; display: flex; justify-content: center; position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; margin: 0; padding: 12px 16px max(18px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }
.camera-capture .camera-actions button { width: 78px; height: 78px; min-height: 78px; display: grid; place-items: center; gap: 0; border: 4px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: rgba(0,0,0,.3); }
.camera-capture .camera-actions button i { width: 58px; height: 58px; display: block; border-radius: 50%; background: #f8f8f8; }
.camera-capture .camera-actions button span { position: absolute; left: 50%; bottom: max(3px, env(safe-area-inset-bottom)); color: #fff; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; transform: translateX(-50%); }
.camera-capture .camera-actions .is-recording i { width: 32px; height: 32px; border-radius: 7px; background: #ff4d49; }
.camera-error-full { min-height: 100svh; display: grid; align-content: center; gap: 14px; position: fixed; z-index: 1000; inset: 0; padding: 28px; border: 0; border-radius: 0; text-align: center; background: #070b0e; }
.camera-error-full > [data-camera-close] { width: 46px; height: 46px; position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.05); font-size: 1.4rem; }
.camera-error-full [data-camera-retry] { min-height: 54px; border-radius: 8px; color: #fff; background: var(--lime); font-weight: 850; text-transform: uppercase; }
.review-video { width: min(100%, 420px); aspect-ratio: 9/16; display: block; margin-inline: auto; border-radius: 14px; object-fit: contain; background: #000; }
.trim-editor { display: grid; gap: 12px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.trim-editor > div, .trim-editor label > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trim-editor > div strong { font: 800 1rem var(--display); text-transform: uppercase; }
.trim-editor > div span, .trim-editor label span, .trim-editor p { color: var(--muted); font-size: .67rem; }
.trim-editor label { display: grid; gap: 7px; }
.trim-editor input { width: 100%; accent-color: var(--lime); }
.trim-editor button { min-height: 48px; border: 1px solid rgba(41, 94, 51,.4); border-radius: 8px; color: var(--lime); background: rgba(41, 94, 51,.08); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.trim-editor button:disabled { opacity: .4; }
.trim-editor p { min-height: 1em; margin: 0; }
.upload-status { min-height: 22px; color: var(--muted); font-size: .7rem; }
.finish-slots { display: grid; gap: 8px; margin: 24px 0; }
.finish-slots span { padding: 13px; border-radius: 7px; color: var(--lime); background: rgba(41, 94, 51,.08); font-size: .73rem; font-weight: 700; }

.library-heading { padding: 54px 0 24px; }
.swing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.swing-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.private-video { aspect-ratio: 9/16; display: flex; flex-direction: column; justify-content: end; gap: 5px; padding: 16px; background: radial-gradient(circle at 50% 30%, #26373f, #11191e 68%); }
.private-video span { color: var(--lime); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.private-video strong { font: 800 1.15rem var(--display); text-transform: uppercase; }
.private-video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.private-video > button { position: absolute; }
.swing-grid article > div:last-child { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }

/* Account, coach, and admin platform */
.account-screen, .coach-screen, .admin-screen { width: min(100%, 760px); overflow-x: clip; }
.account-screen h1, .workspace-hero h1, .application-heading h1 { margin: 12px 0 18px; font: 750 clamp(2.7rem, 10vw, 5rem)/.88 var(--display); letter-spacing: -.065em; }
.account-screen h1 span, .workspace-hero h1 span, .application-heading h1 span { color: var(--lime); }
.account-lead, .application-heading > p, .account-panel > p { color: var(--muted); font-size: .78rem; line-height: 1.65; }
.account-onboarding-card, .application-heading { padding: clamp(44px, 9svh, 90px) 0 24px; }
.intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.intent-grid button { min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 14px; text-align: left; background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); }
.intent-grid button:hover { border-color: rgba(41, 94, 51,.55); transform: translateY(-2px); }
.intent-grid button > span { color: var(--lime); font-size: .65rem; font-weight: 800; letter-spacing: .14em; }
.intent-grid button strong { margin: auto 0 10px; font: 800 1.45rem var(--display); text-transform: uppercase; }
.intent-grid button small { color: var(--muted); line-height: 1.55; }
.text-back { margin: 36px 0 26px; padding: 0; color: var(--muted); background: transparent; font-size: .72rem; }
.account-form { max-width: 620px; padding: 36px 0 60px; }
.account-form label { display: grid; gap: 9px; margin: 22px 0; }
.account-form label > span { color: #c4c9cb; font-size: .7rem; font-weight: 700; }
.account-form label small { color: var(--muted); font-size: .62rem; font-weight: 500; }
.account-form input, .account-form textarea, .coach-search input, .admin-tools input, .admin-tools select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; color: var(--ink); background: rgba(255,255,255,.035); font: inherit; }
.account-form input { min-height: 56px; }
.account-form textarea { resize: vertical; line-height: 1.55; }
.form-status { min-height: 1.4em; color: #ff8b86; font-size: .72rem; }
.profile-hero, .student-hero { display: flex; align-items: center; gap: 20px; padding: 46px 0 24px; }
.profile-hero > div:last-child, .student-hero > div:last-child { min-width: 0; }
.profile-page-avatar { width: 84px; min-width: 84px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(41, 94, 51,.4); border-radius: 50%; color: var(--lime); background: rgba(41, 94, 51,.08); font-size: 1.3rem; font-weight: 850; }
.profile-hero h1, .student-hero h1 { max-width: 100%; margin: 4px 0; overflow-wrap: anywhere; font-size: clamp(1.55rem, 7vw, 2.8rem); line-height: 1; }
.profile-hero p:last-child, .student-hero p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .75rem; }
.account-panel, .workspace-section, .coach-search { margin: 14px 0; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading h2, .workspace-section h2 { margin: 3px 0 0; font: 800 1.25rem var(--display); text-transform: uppercase; }
.panel-heading > button, .panel-heading > span { color: var(--lime); background: transparent; font-size: .7rem; font-weight: 750; }
.account-details { margin: 20px 0 0; }
.account-details > div, .application-card dl, .coach-club-list dl { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.account-details dt, .application-card dt, .coach-club-list dt { color: var(--muted); font-size: .65rem; }
.account-details dd, .application-card dd, .coach-club-list dd { margin: 0; font-size: .72rem; font-weight: 700; }
.account-form.compact { padding: 8px 0; }
.panel-action { width: 100%; min-height: 50px; margin-top: 14px; border-radius: 8px; color: #fff; background: var(--lime); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.status-pill { display: inline-flex; padding: 7px 9px; border: 1px solid rgba(41, 94, 51,.32); border-radius: 999px; color: var(--lime); font-size: .6rem !important; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.status-pill.rejected, .status-pill.revoked { border-color: rgba(255,98,92,.4); color: #ff8b86; }
.status-pill.pending { border-color: rgba(255,202,104,.4); color: #ffca68; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 18px; padding: 5px; border-radius: 10px; background: #090e12; }
.role-switch button { min-height: 46px; border-radius: 7px; color: var(--muted); background: transparent; font-size: .7rem; font-weight: 800; }
.role-switch button[aria-pressed=true] { color: #fff; background: var(--lime); }
.owner-role-switch { grid-template-columns: repeat(3, 1fr); }
.owner-membership-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(7,12,15,.62); }
.owner-membership-control span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.owner-membership-control strong { color: var(--lime); font-size: .74rem; }
.owner-membership-control button { grid-column: 1 / -1; min-height: 44px; border: 1px solid rgba(41, 94, 51,.38); border-radius: 8px; color: var(--lime); background: transparent; font-size: .66rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.profile-subsection { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-subsection h3 { margin: 0 0 10px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.profile-invitation, .pending-card, .search-results article { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.profile-invitation > div:first-child, .pending-card > div, .search-results article > div { display: grid; gap: 4px; margin-right: auto; }
.profile-invitation span, .pending-card small, .search-results small { color: var(--muted); font-size: .65rem; }
.profile-invitation button, .pending-card button, .search-results button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.04); font-size: .65rem; font-weight: 750; }
.profile-invitation > div:last-child { display: flex; gap: 6px; }
.decision-note { margin-top: 15px; padding: 14px; border-left: 3px solid #ffca68; background: rgba(255,202,104,.07); }
.decision-note strong { color: #ffca68; font-size: .65rem; text-transform: uppercase; }
.decision-note p { margin: 5px 0 0; color: #c9cccd; font-size: .72rem; line-height: 1.5; }
.profile-page-logout { width: 100%; margin-top: 20px; }
.application-identity { display: flex; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.application-identity span { color: var(--lime); font-size: .72rem; }
.workspace-hero { min-height: 220px; display: flex; align-items: end; gap: 20px; padding: 40px 4px 28px; }
.workspace-hero h1 { margin-right: auto; }
.workspace-hero > div { display: grid; justify-items: end; padding-bottom: 20px; }
.workspace-hero > div strong { color: var(--lime); font: 800 2.4rem var(--display); }
.workspace-hero > div span { color: var(--muted); font-size: .65rem; }
.coach-search form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 18px; }
.coach-search form button { min-width: 96px; border-radius: 8px; color: #fff; background: var(--lime); font-size: .68rem; font-weight: 850; }
.search-results { margin-top: 10px; }
.mini-avatar { width: 42px; min-width: 42px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: var(--lime); background: rgba(41, 94, 51,.08); font-size: .68rem; font-weight: 850; }
.student-card { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; }
.student-card > div { min-width: 0; display: grid; gap: 4px; }
.student-card small { overflow: hidden; color: var(--muted); font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.student-card dl { display: flex; gap: 15px; margin: 0; }
.student-card dl div { display: grid; justify-items: end; }
.student-card dt { color: var(--muted); font-size: .55rem; text-transform: uppercase; }
.student-card dd { margin: 2px 0 0; font-weight: 800; }
.empty-state { padding: 28px 8px; text-align: center; }
.empty-state strong { font-size: .78rem; }
.empty-state p { margin: 7px auto 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.coach-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.coach-stat-grid article { min-height: 100px; display: grid; align-content: space-between; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.coach-stat-grid span { color: var(--muted); font-size: .6rem; }
.coach-stat-grid strong { font: 800 1.7rem var(--display); }
.coach-month-chart { height: 190px; display: grid; grid-template-columns: repeat(6,1fr); align-items: end; gap: 9px; padding-top: 30px; }
.coach-month-chart > div { height: 100%; display: grid; grid-template-rows: 1fr auto auto; align-items: end; justify-items: center; gap: 5px; }
.coach-month-chart span { width: min(28px, 70%); min-height: 3px; border-radius: 4px 4px 0 0; background: var(--lime);  color: #fff; }
.coach-month-chart b { font-size: .58rem; }
.coach-month-chart small { color: var(--muted); font-size: .55rem; }
.coach-club-list > article { padding: 16px 0; border-bottom: 1px solid var(--line); }
.coach-club-list > article > div { display: flex; justify-content: space-between; }
.coach-club-list small { color: var(--muted); font-size: .62rem; }
.coach-club-list dl { display: grid; grid-template-columns: repeat(4,1fr); }
.coach-club-list dl div { display: grid; gap: 4px; }
.session-list article { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.session-list article > div { display: grid; gap: 4px; margin-right: auto; }
.session-list small { color: var(--muted); font-size: .6rem; }
.session-list span, .session-list b { font-size: .65rem; }
.session-list b { color: var(--muted); }
.session-list b.passed { color: var(--lime); }
.coach-video-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 18px; }
.coach-video-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.coach-video-grid article > button { width: 100%; min-height: 44px; background: rgba(255,255,255,.04); font-size: .65rem; font-weight: 750; }
.admin-counts { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 12px 0; }
.admin-counts button { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; text-align: left; background: rgba(255,255,255,.025); }
.admin-counts strong { color: var(--lime); font: 800 1.6rem var(--display); }
.admin-counts span { color: var(--muted); font-size: .6rem; text-transform: uppercase; }
.admin-tools { display: grid; grid-template-columns: 1fr 170px; gap: 9px; margin: 18px 0; }
.application-card { margin: 10px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.application-card header { display: flex; align-items: center; gap: 12px; }
.application-card header > div { display: grid; gap: 4px; margin-right: auto; }
.application-card header small { color: var(--muted); font-size: .62rem; }
.application-card dl { display: grid; grid-template-columns: 1fr 1fr; }
.application-card dl > div { display: flex; justify-content: space-between; }
.application-card details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.application-card summary { color: var(--lime); cursor: pointer; font-size: .68rem; font-weight: 750; }
.application-card details h3 { margin: 20px 0 5px; font-size: .68rem; text-transform: uppercase; }
.application-card details p { color: #c3c7c9; font-size: .72rem; line-height: 1.65; white-space: pre-wrap; }
.application-card details a { color: var(--lime); font-size: .7rem; }
.admin-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.admin-actions button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.05); font-size: .65rem; font-weight: 800; }
.admin-actions button:last-child { color: #fff; background: var(--lime); }
.route-loading, .route-error { min-height: 80svh; display: grid; place-content: center; justify-items: center; text-align: center; }
.route-loading span { width: 36px; aspect-ratio: 1; margin-bottom: 16px; border: 3px solid var(--line); border-top-color: var(--lime); border-radius: 50%; animation: route-spin .8s linear infinite; }
.route-loading strong { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.route-error p { max-width: 380px; color: var(--muted); line-height: 1.6; }
.route-error button { min-height: 46px; padding: 0 18px; border-radius: 7px; color: #fff; background: var(--lime); font-weight: 800; }
@keyframes route-spin { to { transform: rotate(360deg); } }

/* Training workflow */
.training-hero { background: radial-gradient(circle at 80% 20%, rgba(41, 94, 51,.11), transparent 38%), rgba(255,255,255,.02); }
.section-intro, .coach-inbox-entry > p { max-width: 700px; color: var(--muted); font-size: .72rem; line-height: 1.65; }
.panel-action.compact { width: auto; min-height: 42px; padding: 0 14px; }
.notification-list, .assignment-list, .review-list, .submission-inbox { display: grid; gap: 10px; margin-top: 16px; }
.notification-card { width: 100%; display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); text-align: left; }
.notification-card i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(41, 94, 51,.5);  color: #fff; }
.notification-card.read { opacity: .58; }
.notification-card.read i { background: var(--muted); box-shadow: none; }
.notification-card div { display: grid; gap: 4px; }
.notification-card strong { font-size: .72rem; }
.notification-card p { margin: 0; color: #c4c8ca; font-size: .66rem; line-height: 1.45; }
.notification-card small, .notification-card > span { color: var(--muted); font-size: .56rem; }
.assignment-card, .player-submission, .inbox-card, .drill-choice, .aid-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.assignment-card.closed { opacity: .7; }
.assignment-card header, .aid-card header, .drill-choice header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.assignment-card header div, .aid-card header div { display: grid; gap: 4px; }
.assignment-card header span, .aid-card header span, .drill-choice header span { color: var(--lime); font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.assignment-card h3, .aid-card h3 { margin: 0; font: 750 1.12rem var(--display); }
.assignment-card > p, .aid-card > p, .drill-choice > p { color: #c7cbcd; font-size: .7rem; line-height: 1.6; }
.assignment-card blockquote, .aid-card blockquote, .inbox-card blockquote { margin: 14px 0; padding: 12px 14px; border-left: 3px solid var(--lime); background: rgba(41, 94, 51,.055); color: #e3e7e8; font-size: .68rem; line-height: 1.55; }
.assignment-card ol, .drill-choice ol { padding-left: 20px; color: #c7cbcd; font-size: .67rem; line-height: 1.65; }
.assignment-card > button, .assignment-card form button, .drill-choice form button, .inbox-card > button, .feedback-summary button, .assignment-primary-actions button { min-height: 42px; padding: 0 15px; border-radius: 7px; background: var(--lime); color: #fff; font-size: .64rem; font-weight: 850; }
.assignment-card form { display: grid; grid-template-columns: repeat(3, minmax(90px,1fr)); gap: 8px; margin-top: 14px; }
.assignment-card form input[name="note"], .assignment-card form button { grid-column: span 3; }
.assignment-card.overdue { border-color: rgba(255,90,95,.55); }
.assignment-card.due-today { border-color: rgba(41, 94, 51,.55); }
.assignment-due { display: block; margin-top: 10px; color: var(--lime); font-weight: 750; }
.assignment-card.overdue .assignment-due { color: #ff8084; }
.assignment-primary-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.assignment-primary-actions button:nth-child(2) { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.assignment-secondary { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.assignment-secondary summary, .customize-drill > summary { color: var(--muted); cursor: pointer; font-size: .61rem; }
.assignment-secondary form { grid-template-columns: 1fr auto; }
.assignment-secondary form input, .assignment-secondary form button { grid-column: auto; }
.assignment-secondary form:last-child button { color: #ff9a9d; background: rgba(255,90,95,.08); border: 1px solid rgba(255,90,95,.28); }
.safety-note { padding: 10px; border-radius: 7px; background: rgba(255,180,80,.07); color: #d9c29e !important; }
.assignment-card input, .assignment-card select, .drill-choice input, .drill-choice select, .drill-choice textarea, .message-form input, .inline-recommendation input, .inline-recommendation select, .drill-filters input, .drill-filters select { min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: #111820; font: inherit; }
.submission-form, .review-form { margin-top: 16px; }
.capture-guidance { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.capture-guidance article { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.capture-guidance b { color: var(--lime); font-size: .62rem; text-transform: uppercase; }
.capture-guidance p { margin: 6px 0 0; color: var(--muted); font-size: .6rem; line-height: 1.5; }
.swing-upload-state { display: grid; gap: 7px; }
.swing-upload-state progress { width: 100%; accent-color: var(--lime); }
.swing-upload-state span { color: var(--muted); font-size: .57rem; line-height: 1.45; }
.player-submission { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 18px; }
.player-submission > div { display: grid; align-content: start; gap: 8px; }
.player-submission strong { font: 750 1rem var(--display); }
.player-submission p, .feedback-summary p { margin: 0; color: #c7cbcd; font-size: .68rem; line-height: 1.55; }
.feedback-summary { padding-left: 18px; border-left: 1px solid var(--line); }
.feedback-summary h4 { margin: 0 0 5px; color: var(--lime); font-size: .57rem; letter-spacing: .08em; text-transform: uppercase; }
.feedback-summary p { margin-bottom: 14px; }
.withdraw-submission { justify-self: start; min-height: 36px; padding: 0 10px; border: 1px solid rgba(255,90,95,.3); border-radius: 6px; color: #ff9a9d; background: rgba(255,90,95,.06); font-size: .57rem; }
.message-thread { max-height: 360px; overflow: auto; display: grid; gap: 8px; margin-top: 15px; padding: 4px; }
.message-thread article { max-width: 80%; padding: 11px 13px; border-radius: 10px; background: rgba(255,255,255,.055); }
.message-thread .coach-message { justify-self: start; }
.message-thread .player-message { justify-self: end; background: rgba(41, 94, 51,.1); }
.message-thread b, .message-thread small { color: var(--muted); font-size: .52rem; text-transform: uppercase; }
.message-thread p { margin: 5px 0; font-size: .68rem; line-height: 1.5; }
.message-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.message-form button, .inline-recommendation button { min-width: 75px; border-radius: 7px; color: #fff; background: var(--lime); font-weight: 850; }
.aid-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 17px; }
.aid-card small { display: block; color: #c4c8ca; font-size: .61rem; line-height: 1.5; }
.aid-actions { display: flex; gap: 7px; margin-top: 15px; }
.aid-actions button { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.045); font-size: .58rem; font-weight: 750; }
.shop-links { display: grid; gap: 5px; margin-top: 10px; }
.shop-links a { color: var(--lime); font-size: .61rem; font-weight: 750; }
.affiliate-disclosure { margin-top: 18px; color: var(--muted); font-size: .56rem; line-height: 1.5; }
.student-context { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.student-context h1 { margin: 2px 0; font: 800 1.5rem var(--display); }
.student-context small { color: var(--muted); }
.drill-filters { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.drill-filters label { display: grid; gap: 6px; }
.drill-filters label > span { color: var(--muted); font-size: .57rem; font-weight: 750; text-transform: uppercase; }
.drill-library-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.drill-choice[hidden] { display: none; }
.drill-choice h2 { margin: 16px 0 7px; font: 800 1.25rem var(--display); }
.drill-choice header b { color: var(--muted); font-size: .55rem; text-transform: capitalize; }
.drill-choice dl { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(2,minmax(0,1fr)); gap: 14px; margin: 15px 0; }
.drill-choice dl div { display: grid; align-content: start; min-width: 0; gap: 4px; }
.drill-choice dt { color: var(--muted); font-size: .53rem; text-transform: uppercase; }
.drill-choice dd { margin: 0; font-size: .65rem; line-height: 1.5; overflow-wrap: anywhere; }
.drill-choice form button, .drill-choice input, .drill-choice select, .drill-filters input, .drill-filters select { min-height: 44px; }
.drill-choice > small { display: block; min-height: 34px; color: var(--muted); font-size: .58rem; line-height: 1.5; }
.drill-match-reason { padding: 10px; border-radius: 7px; background: rgba(41, 94, 51,.055); color: #dce5bd !important; }
.drill-choice details { margin: 12px 0; }
.drill-choice summary { color: var(--lime); cursor: pointer; font-size: .62rem; }
.drill-choice form { display: grid; gap: 7px; margin-top: 14px; }
.drill-choice textarea { min-height: 72px; padding: 10px; resize: vertical; }
.customize-drill { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.customize-drill form { margin-top: 10px; }
.inbox-card header { display: flex; align-items: center; gap: 12px; }
.inbox-card header > div { display: grid; gap: 4px; margin-right: auto; }
.inbox-card header small { color: var(--muted); font-size: .58rem; }
.inbox-card dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.inbox-filters { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 14px; }
.inbox-filters label { display: grid; gap: 6px; }
.inbox-filters span { color: var(--muted); font-size: .55rem; text-transform: uppercase; }
.inbox-filters select { min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: #111820; }
.inbox-card dl div { display: grid; gap: 4px; }
.inbox-card dt { color: var(--muted); font-size: .52rem; text-transform: uppercase; }
.inbox-card dd { margin: 0; font-size: .64rem; }
.review-context { margin: 18px 0; }
.review-context h1 { max-width: 800px; margin: 6px 0; font: 800 clamp(1.4rem,4vw,2.5rem) var(--display); }
.review-context p { color: var(--muted); font-size: .68rem; line-height: 1.5; }
.annotation-stage { position: relative; overflow: hidden; width: min(100%, 420px); aspect-ratio: 9/16; margin-inline: auto; border: 1px solid var(--line); border-radius: 12px; background: #000; }
.annotation-stage video, .annotation-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.annotation-stage video { object-fit: contain; }
.annotation-stage canvas { touch-action: none; z-index: 2; }
.annotation-stage video, .annotation-stage canvas { transition: transform .16s ease; }
.video-analysis-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 10px 0; }
.video-analysis-tools button, .video-analysis-tools select { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: rgba(255,255,255,.04); font-size: .56rem; font-weight: 750; }
.video-analysis-tools label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .54rem; text-transform: uppercase; }
.annotation-tools { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 18px; }
.annotation-tools button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.04); font-size: .58rem; font-weight: 750; text-transform: capitalize; }
.annotation-tools button[aria-pressed="true"] { color: #fff; background: var(--lime); }
.annotation-tools .color-tool { width: 38px; padding: 0; background: var(--tool-color); box-shadow: inset 0 0 0 8px #111820; }
.voice-review { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.voice-review h2 { margin: 3px 0; font: 750 1.05rem var(--display); }
.voice-review p { margin: 0; color: var(--muted); font-size: .6rem; }
.voice-actions { display: flex; align-items: center; gap: 8px; }
.voice-actions button { min-height: 42px; padding: 0 13px; border-radius: 7px; color: #fff; background: var(--lime); font-size: .6rem; font-weight: 850; }
.voice-actions span { min-width: 34px; color: var(--muted); font-size: .65rem; }
.voice-review [data-audio-preview] audio, .coach-audio audio { width: min(320px,100%); height: 38px; }
.voice-review [data-audio-preview] small { display: block; color: var(--lime); font-size: .52rem; }
.draft-status { color: var(--muted); font-size: .58rem; }
.review-preview-overlay { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; overflow: auto; padding: 18px; background: rgba(4,8,11,.9); backdrop-filter: blur(9px); }
.review-preview-overlay[hidden] { display: none; }
.review-preview { position: relative; width: min(620px,100%); padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #111820; box-shadow: 0 24px 90px rgba(0,0,0,.45); }
.review-preview > button:first-child { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); font-size: 1.2rem; }
.review-preview h2 { margin: 6px 42px 18px 0; font: 800 1.5rem var(--display); }
.review-preview h3 { margin: 16px 0 5px; color: var(--lime); font-size: .65rem; text-transform: uppercase; }
.review-preview p { color: var(--muted); font-size: .68rem; line-height: 1.55; white-space: pre-wrap; }
.review-preview [data-confirm-review] { width: 100%; min-height: 48px; margin-top: 12px; border-radius: 7px; color: #fff; background: var(--lime); font-weight: 850; }
.coach-audio { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.coach-audio span { color: var(--lime); font-size: .57rem; font-weight: 800; text-transform: uppercase; }
.notification-preferences .check-row { display: flex; align-items: center; grid-template-columns: none; gap: 10px; }
.notification-preferences .check-row input { width: 18px; height: 18px; min-height: 0; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
.privacy-actions .panel-action { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.danger-action { min-height: 42px; margin-top: 12px; padding: 0 14px; border: 1px solid rgba(255,90,95,.5); border-radius: 7px; color: #ff9da0; background: rgba(255,90,95,.08); font-size: .6rem; font-weight: 800; }
.consent-copy { padding: 11px; border-left: 3px solid var(--lime); color: var(--muted); background: rgba(41, 94, 51,.045); font-size: .6rem; line-height: 1.55; }
.legal-page { max-width: 920px; }
.legal-page .brand-header a { display: grid; place-items: center; text-decoration: none; }
.legal-page h2 { margin: 5px 0 12px; font: 800 1.35rem var(--display); }
.legal-page h3 { margin: 18px 0 6px; font: 800 .76rem var(--display); }
.legal-page p, .legal-page li { color: var(--muted); font-size: .68rem; line-height: 1.7; }
.legal-page li + li { margin-top: 7px; }
.admin-report-list, .audit-list { display: grid; gap: 9px; margin-top: 14px; }
.admin-report-card, .audit-event { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.admin-report-card header, .audit-event { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-report-card p { color: var(--muted); font-size: .65rem; line-height: 1.55; white-space: pre-wrap; }
.admin-report-card small, .audit-event small { display: block; margin-top: 4px; color: var(--muted); font-size: .52rem; }
.admin-report-card > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.admin-report-card button { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.04); font-size: .55rem; }
.audit-event > span { color: var(--lime); font-size: .55rem; text-transform: uppercase; }
.coach-student-workflow { display: contents; }
.compact-assignment { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.compact-assignment > div { display: grid; gap: 4px; }
.compact-assignment small { color: var(--muted); font-size: .57rem; }
.compact-assignment details { min-width: 70px; }
.compact-assignment summary { color: var(--lime); cursor: pointer; font-size: .58rem; }
.compact-assignment form { position: relative; z-index: 2; display: grid; gap: 6px; min-width: min(300px,70vw); margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #111820; }
.compact-assignment form input { min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #0d141b; }
.compact-assignment form button { min-height: 38px; border-radius: 6px; color: #fff; background: var(--lime); font-weight: 800; }
.inline-recommendation { display: grid; grid-template-columns: 180px 1fr auto; gap: 8px; margin-top: 15px; }
.review-playback-overlay { position: fixed; inset: 0; z-index: 90; overflow: auto; padding: max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom)); background: rgba(4,8,11,.92); backdrop-filter: blur(10px); }
.review-playback { position: relative; width: min(900px,100%); margin: 0 auto; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #0d141b; }
.review-playback h2 { max-width: 750px; margin: 5px 45px 18px 0; font: 800 clamp(1.25rem,3vw,2rem) var(--display); }
.review-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); font-size: 1.3rem; }
.review-readonly canvas { pointer-events: none; }
.review-playback .feedback-summary { display: grid; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }

@media (max-width: 620px) {
  .profile-page-avatar { width: 68px; min-width: 68px; }
  .profile-hero, .student-hero { gap: 14px; }
  .account-panel, .workspace-section, .coach-search { padding: 18px; }
  .panel-heading { min-width: 0; }
  .panel-heading > div { min-width: 0; }
  .panel-heading h2 { overflow-wrap: anywhere; }
  .intent-grid { grid-template-columns: 1fr; }
  .voice-review { align-items: stretch; flex-direction: column; }
  .video-analysis-tools button { flex: 1 1 auto; }
  .intent-grid button { min-height: 170px; }
  .workspace-hero { min-height: 190px; }
  .student-card { grid-template-columns: auto minmax(0,1fr) auto; }
  .student-card dl { display: none; }
  .coach-stat-grid { grid-template-columns: repeat(2,1fr); }
  .coach-club-list dl { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .admin-counts { grid-template-columns: repeat(2,1fr); }
  .admin-tools { grid-template-columns: 1fr; }
  .coach-video-grid { grid-template-columns: 1fr; }
  .aid-grid, .drill-library-grid { grid-template-columns: 1fr; }
  .drill-filters { grid-template-columns: repeat(2,1fr); }
  .player-submission { grid-template-columns: 1fr; }
  .feedback-summary { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .inline-recommendation { grid-template-columns: 1fr; }
  .voice-review { display: grid; }
  .inbox-filters { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .drill-filters { grid-template-columns: 1fr; }
  .capture-guidance { grid-template-columns: 1fr; }
  .assignment-card form { grid-template-columns: 1fr 1fr; }
  .assignment-card form input[name="note"], .assignment-card form button { grid-column: span 2; }
  .inbox-card dl { grid-template-columns: 1fr; }
  .paid-screen { padding-inline: 16px; }
  .paid-hero { padding-top: 44px; }
  .subscription-card, .recording-consent, .camera-intro, .camera-error, .onboarding-finish { padding: 20px; }
  .onboarding-progress { margin-top: 20px; }
  .swing-grid { grid-template-columns: 1fr; }
  .private-video { aspect-ratio: 9/16; }
}

/* Level Challenge instrument — the upper arc is the live level progress bar. */
.distance-game .challenge-target-stage {
  min-height: 410px;
  justify-content: flex-start;
  padding: 108px 18px 0;
  isolation: isolate;
}
.challenge-target-stage::before {
  content: "";
  width: min(78.96vw, 453.6px);
  aspect-ratio: 1;
  position: absolute;
  z-index: -2;
  left: 50%;
  top: calc(4px + min(7.05vw, 40.5px));
  border: 1px solid rgba(41, 94, 51,.1);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, rgba(41, 94, 51,.075), transparent 38%),
    radial-gradient(circle at center, rgba(20,29,28,.94), rgba(7,13,17,.18) 72%);
  box-shadow: inset 0 0 46px rgba(0,0,0,.55), 0 0 80px rgba(41, 94, 51,.035);
  transform: translateX(-50%);
}
.challenge-gauge {
  width: min(94vw, 540px);
  height: auto;
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 4px;
  overflow: visible;
  transform: translateX(-50%);
}
.challenge-gauge path { fill: none; vector-effect: non-scaling-stroke; }
.challenge-gauge-orbit { stroke: rgba(41, 94, 51,.16); stroke-width: 1; }
.challenge-gauge-orbit-outer { stroke: rgba(41, 94, 51,.1); }
.challenge-gauge-orbit-inner { stroke: rgba(41, 94, 51,.27); }
.challenge-gauge-track {
  stroke: rgba(2,6,8,.82);
  stroke-width: 10;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.7));
}
.challenge-gauge-ticks {
  stroke: rgba(41, 94, 51,.25);
  stroke-width: 8;
  stroke-dasharray: .35 1.65;
}
.challenge-gauge-fill {
  stroke: url(#challengeGaugeGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: var(--challenge-progress) 100;
  filter: url(#challengeGaugeGlow);
  transition: stroke-dasharray .42s var(--ease-out);
}
.challenge-gauge-marker {
  fill: #295e33;
  stroke: #f8ffac;
  stroke-width: 2;
  filter: url(#challengeGaugeGlow);
  transition: cx .42s var(--ease-out), cy .42s var(--ease-out);
}
.challenge-gauge-segment {
  fill: none;
  stroke: rgba(2,6,8,.88);
  stroke-width: 9;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke .32s ease, opacity .32s ease, filter .32s ease;
}
.challenge-gauge-segment.completed {
  stroke: url(#challengeGaugeGradient);
  opacity: 1;
  filter: url(#challengeGaugeGlow);
}
.challenge-gauge-segment.current {
  stroke: var(--lime);
  filter: url(#challengeGaugeGlow);
  animation: challenge-current-shot 2.4s ease-in-out infinite;
}
.challenge-gauge-segment.upcoming { stroke: rgba(2,6,8,.9); opacity: .92; }
.challenge-target-stage > .eyebrow {
  margin: 0 0 13px;
  color: var(--lime);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-shadow: 0 0 15px rgba(41, 94, 51,.3);
}
.challenge-target-stage .distance { align-items: center; flex-direction: column; }
.challenge-target-stage .distance strong {
  font-size: clamp(5rem, 23vw, 7.6rem);
  line-height: .76;
  text-shadow: 0 5px 0 rgba(0,0,0,.22), 0 12px 28px rgba(0,0,0,.42);
}
.challenge-target-stage .distance.range-distance strong { font-size: clamp(3.35rem, 16vw, 5.4rem); }
.challenge-target-stage .distance span {
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 4.4vw, 1.45rem);
  letter-spacing: .14em;
  text-shadow: 0 0 18px rgba(41, 94, 51,.24);
}
.challenge-target-stage .random-target-details,
.challenge-target-stage .tolerance-card {
  width: min(94vw, 430px);
  min-width: 0;
  margin-top: 27px;
  border: 1px solid rgba(165,178,184,.27);
  border-radius: 18px 18px 76px 76px;
  background: linear-gradient(180deg, rgba(16,23,28,.96), rgba(7,13,17,.98));
  box-shadow: 0 20px 45px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.055), inset 0 -1px 0 rgba(255,255,255,.08);
}
.challenge-target-stage .random-target-details {
  width: min(82vw, 360px);
  min-height: 106px;
  margin-top: 29px;
  padding: 36px 9px 14px;
  overflow: visible;
  transform: translateY(-12px);
}
.challenge-target-stage .tolerance-card { padding: 24px 14px 20px; }
.challenge-target-stage .random-target-details > span {
  align-content: start;
  gap: 9px;
  padding-inline: 13px;
  position: relative;
}
.challenge-target-stage .random-target-details > span + span::before {
  top: -29px;
  bottom: -5px;
  background: linear-gradient(180deg, transparent, rgba(165,178,184,.65) 12%, rgba(165,178,184,.65) 88%, transparent);
}
.challenge-detail-icon {
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: absolute;
  left: 50%;
  top: -59px;
  z-index: 3;
  border: 1px solid rgba(41, 94, 51,.72);
  border-radius: 50%;
  color: var(--lime);
  background: radial-gradient(circle at 42% 35%, #172126, #060c10 72%);
  box-shadow: 0 0 0 4px rgba(3,8,11,.86), 0 9px 22px rgba(0,0,0,.55), inset 0 0 18px rgba(41, 94, 51,.055);
  transform: translateX(-50%);
}
.challenge-detail-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(41, 94, 51,.38));
}
.challenge-range-metric .challenge-detail-icon { color: #f1f3ef; }
.challenge-range-metric .challenge-detail-icon svg circle:last-of-type { stroke: var(--lime); }
.challenge-target-stage .random-target-details small,
.challenge-target-stage .tolerance-label {
  color: #b9bec1;
  font-size: .44rem;
  letter-spacing: .2em;
}
.challenge-target-stage .random-target-details strong {
  font-size: clamp(.94rem, 4.35vw, 1.25rem);
  letter-spacing: -.035em;
}
.challenge-target-stage .random-target-details small,
.challenge-target-stage .random-target-details strong { position: relative; top: -5px; }
.challenge-target-stage .random-target-details em { margin-left: 5px; font-size: .5rem; letter-spacing: .14em; }
.challenge-target-stage .tolerance-primary { color: var(--lime); font-size: 1.8rem; }
.challenge-target-stage .tolerance-card > em { color: #aeb6ba; }
.challenge-target-stage .tolerance-card-open { padding-block: 20px; }
.challenge-target-stage .tolerance-bands > span { min-height: 56px; }
.challenge-target-stage .distance-gate-banner {
  z-index: 2;
  margin: -36px 0 20px;
  padding-block: 8px 9px;
}
.challenge-target-stage .shot-variation { margin: 14px 0 18px; }

@media (max-width: 430px) {
  .distance-game .challenge-target-stage { min-height: 405px; padding-top: 103px; }
  .challenge-gauge { width: 100vw; top: 7px; }
  .challenge-target-stage::before { width: 84vw; top: calc(7px + 7.5vw); }
  .challenge-target-stage .random-target-details { width: 82vw; }
  .challenge-target-stage .tolerance-card { width: calc(100vw - 30px); }
}

@media (max-height: 720px) {
  .distance-game .challenge-target-stage { min-height: 344px; padding-top: 84px; }
  .challenge-gauge { width: min(88vw, 460px); top: -3px; }
  .challenge-target-stage::before { width: min(73.92vw, 386.4px); top: calc(-3px + min(6.6vw, 34.5px)); }
  .challenge-target-stage > .eyebrow { margin-bottom: 8px; }
  .challenge-target-stage .distance strong { font-size: clamp(3.85rem, 19vw, 6.2rem); }
  .challenge-target-stage .distance span { margin-top: 10px; font-size: 1rem; }
  .challenge-target-stage .random-target-details,
  .challenge-target-stage .tolerance-card { margin-top: 15px; }
  .challenge-target-stage .random-target-details { width: min(80vw, 350px); min-height: 94px; margin-top: 22px; padding: 31px 8px 10px; }
  .challenge-target-stage .tolerance-card { padding-block: 15px 13px; }
  .challenge-detail-icon { width: 38px; top: -51px; }
  .challenge-detail-icon svg { width: 22px; height: 22px; }
}

/* Keep the complete challenge instrument in one coordinate system at every width. */
.distance-game .challenge-target-stage {
  min-height: 0;
  justify-content: center;
  padding: 0 0 4px;
}
.challenge-target-stage::before { content: none; }
.challenge-instrument {
  width: min(88vw, 420px);
  aspect-ratio: 400 / 408;
  flex: 0 0 auto;
  position: relative;
  isolation: isolate;
}
.challenge-instrument .challenge-gauge {
  width: 100%;
  height: auto;
  position: absolute;
  z-index: 0;
  inset: 0 auto auto 0;
  transform: none;
}
.challenge-gauge-face {
  fill: url(#challengeFaceGradient);
  stroke: rgba(41, 94, 51,.17);
  stroke-width: 1;
  filter: drop-shadow(0 0 34px rgba(41, 94, 51,.04));
}
.challenge-target-copy {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: absolute;
  z-index: 1;
  top: 27%;
  left: 0;
}
.challenge-target-copy.range-target-copy { top: 30%; }
.challenge-target-copy > .eyebrow {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-shadow: 0 0 15px rgba(41, 94, 51,.3);
}
.challenge-instrument .random-target-details,
.challenge-instrument .tolerance-card {
  width: 90%;
  margin: 0;
  position: absolute;
  z-index: 2;
  top: 77.65%;
  left: 5%;
  transform: none;
}
.challenge-instrument .random-target-details {
  min-height: clamp(76px, 22vw, 88px);
  padding: clamp(16px, 5vw, 20px) 9px 10px;
}
.challenge-instrument .single-target-detail {
  width: 74%;
  min-height: clamp(62px, 18vw, 72px);
  grid-template-columns: 1fr;
  left: 13%;
  padding: clamp(10px, 3.5vw, 14px) 9px 8px;
}
.challenge-instrument .single-target-detail > span { width: 100%; gap: 4px; }
.challenge-instrument .single-target-detail strong { font-size: clamp(1.05rem, 4.8vw, 1.38rem); }
.challenge-instrument .tolerance-card:not(.tolerance-card-open) {
  width: 74%;
  min-height: clamp(62px, 18vw, 72px);
  left: 13%;
  padding: clamp(10px, 3.5vw, 14px) 9px 8px;
}
.challenge-instrument .tolerance-card:not(.tolerance-card-open) .tolerance-primary {
  font-size: clamp(1.05rem, 4.8vw, 1.38rem);
}
.challenge-instrument .tolerance-card:not(.tolerance-card-open) > em {
  margin-top: 4px;
  font-size: .52rem;
  line-height: 1.2;
}
.challenge-instrument .tolerance-card { min-height: 94px; }
.challenge-instrument .challenge-detail-icon {
  width: clamp(38px, 12vw, 48px);
  top: clamp(-65px, -16vw, -51px);
}
.challenge-instrument .challenge-detail-icon svg {
  width: clamp(22px, 7vw, 28px);
  height: clamp(22px, 7vw, 28px);
}
.challenge-instrument .random-target-details > span + span::before { top: -6px; bottom: -4px; }
.challenge-target-stage .distance-gate-banner { margin: 0 0 10px; }
.challenge-target-stage .shot-variation { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@keyframes challenge-current-shot {
  0%, 100% { opacity: .24; }
  50% { opacity: 1; }
}

/* Portrait video replies stay readable and touch friendly inside the studio. */
.feedback-studio-screen .annotation-tools button,
.feedback-studio-screen .video-analysis-tools button,
.feedback-studio-screen .video-analysis-tools select,
.feedback-studio-screen .voice-actions button { min-width: 44px; min-height: 44px; font-size: .75rem; }
.feedback-studio-screen .voice-review { flex-wrap: wrap; }
.feedback-studio-screen [data-record-preview] { width: 100%; }
.feedback-studio-screen [data-record-preview] video,
.feedback-studio-screen [data-preview-copy] video { display: block; width: min(100%, 300px); aspect-ratio: 9/16; object-fit: contain; background: #000; border-radius: 12px; }
.feedback-studio-screen .voice-review p { font-size: .8rem; line-height: 1.5; }
.feedback-studio-screen [data-record-preview] small { display: block; margin-top: 8px; color: var(--muted); }
.message-thread button { display: block; min-height: 48px; margin: 8px 0; }

/* Immersive studio: video is the workspace; tools float above it. */
main.screen.feedback-studio-screen { position: fixed; inset: 0; z-index: 120; width: 100%; max-width: none; height: 100dvh; min-height: 0; margin: 0; padding: 0; overflow: hidden; background: #000; color: #fff; }
.feedback-studio-screen .annotation-stage { position: absolute; inset: 0; width: min(100vw, 56.25dvh); height: min(100dvh, 177.7778vw); margin: auto; max-width: none; border: 0; border-radius: 0; }
.feedback-studio-screen .studio-icon, .feedback-studio-screen .studio-tool-menu > summary, .feedback-studio-screen .color-tool { display: grid; place-items: center; flex-shrink: 0; width: 48px; min-width: 48px; height: 48px; padding: 0; border: 1px solid #ffffff59; border-radius: 14px; background: #000c; color: #fff; cursor: pointer; }
.feedback-studio-screen .studio-icon[aria-pressed="true"] { color: #fff; background: #295e33; border-color: #295e33; }
.feedback-studio-screen button:focus-visible, .feedback-studio-screen summary:focus-visible { outline: 3px solid #295e33; outline-offset: 3px; }
.feedback-studio-screen .studio-exit { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 16px; z-index: 5; }
.studio-tool-rail { position: absolute; right: max(12px, env(safe-area-inset-right)); top: max(72px, calc(env(safe-area-inset-top) + 56px)); bottom: calc(150px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 4px; scrollbar-width: none; z-index: 4; }
.studio-tool-menu > summary { list-style: none; }
.studio-tool-menu > summary::-webkit-details-marker { display: none; }
.studio-tool-menu > div { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.feedback-studio-screen .color-tool { background: var(--tool-color); }
.studio-transport { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); z-index: 4; }
.studio-transport input[type="range"] { width: 100%; accent-color: #295e33; min-height: 44px; }
.studio-transport-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.studio-transport select { min-width: 64px; min-height: 48px; color: #fff; background: #000c; border: 1px solid #ffffff59; border-radius: 14px; }
.studio-record-control { display: grid; justify-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.studio-record-control button { width: 64px; height: 64px; padding: 4px; border: 3px solid white; border-radius: 50%; background: #0009; display: grid; place-items: center; }
.studio-record-control button span { width: 48px; height: 48px; background: #ff5a5f; border-radius: 50%; }
.studio-record-control [data-record-stop] span { width: 26px; height: 26px; border-radius: 5px; }
.feedback-studio-screen [hidden] { display: none !important; }
.studio-transport .form-status:not(:empty) { padding: 12px; background: #000e; border-radius: 12px; }
.feedback-studio-screen .review-preview-overlay { padding: 0; background: #000; z-index: 10; overflow: hidden; }
.feedback-studio-screen .review-preview { display: flex; flex-direction: column; width: 100%; max-width: none; height: 100dvh; padding: max(8px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: #000; border: 0; border-radius: 0; box-sizing: border-box; }
.feedback-studio-screen .preview-copy { flex: 1; min-height: 0; display: flex; justify-content: center; }
.feedback-studio-screen [data-preview-copy] video { width: 100%; height: 100%; max-width: none; border-radius: 0; object-fit: contain; }
.studio-preview-actions { display: flex; gap: 12px; padding-top: 12px; }
.studio-preview-actions button { flex: 1; min-height: 48px; border-radius: 14px; border: 1px solid #ffffff59; background: #202020; color: white; }
.studio-preview-actions [data-confirm-review] { background: #295e33; color: #fff; }
.feedback-studio-screen .studio-preview-actions button { margin: 0; }
.feedback-studio-screen .studio-tool-menu:has([data-tool][aria-pressed="true"]) > summary { background: #295e33; color: #fff; }

.feedback-studio-screen .studio-transport-row { gap: 8px; }
.feedback-studio-screen .studio-tool-menu > div { position: fixed; right: max(76px, calc(env(safe-area-inset-right) + 64px)); bottom: calc(164px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(2, 48px); gap: 8px; padding: 12px; border: 1px solid #ffffff59; border-radius: 18px; background: #000f; z-index: 6; }
.feedback-studio-screen .studio-tool-menu:not([open]) > div { display: none; }

.feedback-studio-screen .studio-preview-return { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 16px; z-index: 5; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #ffffff59; border-radius: 14px; background: #000c; color: white; }
.feedback-studio-screen .studio-preview-back { align-self: flex-start; min-height: 48px; margin: 0 0 8px; background: transparent; color: white; border: 0; }
.feedback-studio-screen .preview-copy { position: relative; }
.feedback-studio-screen .studio-preview-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; min-height: 64px; margin: 0; padding: 16px 24px; border-radius: 40px; border: 1px solid #ffffff80; background: #000d; color: white; font-size: 18px; white-space: nowrap; }
.feedback-studio-screen .review-preview .studio-preview-back { position: static; width: auto; height: 48px; flex-shrink: 0; border: 0; border-radius: 12px; padding: 0 12px; font-size: 16px; }

.conversation-actions-menu { position: relative; }
.conversation-actions-menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 20px; }
.conversation-actions-menu > summary::-webkit-details-marker { display: none; }
.conversation-actions-menu > div { position: absolute; bottom: 52px; left: 0; z-index: 30; width: min(270px,70vw); display: grid; padding: 8px; gap: 4px; border: 1px solid #ffffff40; border-radius: 16px; background: #151c21; }
.conversation-actions-menu button { min-height: 48px; text-align: left; }
.conversation-capture:not([open]) { display: none; }
.conversation-action-dialog { width: min(440px,90vw); max-height: 85dvh; overflow: auto; border: 1px solid #ffffff40; border-radius: 18px; padding: 20px; color: white; background: #151c21; }
.conversation-action-dialog::backdrop { background: #000b; }
.conversation-action-dialog form, .conversation-action-dialog label { display: grid; gap: 12px; }
.conversation-action-dialog button, .conversation-action-dialog input, .conversation-action-dialog select { min-height: 48px; }
[data-conversation-action] { padding: 12px; border: 1px solid #ffffff40; border-radius: 12px; margin: 8px 0; }
[data-conversation-action] button { min-height: 44px; }

.message-form:has(.conversation-actions-menu) { grid-template-columns: 44px minmax(0,1fr) auto; }
.message-form input { min-width: 0; }
.message-form .conversation-actions-menu button { padding: 10px 12px; background: transparent; color: var(--text); border: 0; font-size: 15px; }
.message-form .conversation-actions-menu button:hover, .message-form .conversation-actions-menu button:focus-visible { background: #ffffff15; }
[data-conversation-action] button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--lime); color: #fff; font-weight: 700; }

[data-conversation-action] .message-drill-preview { display: grid; gap: 10px; width: 100%; max-width: 280px; padding: 8px; text-align: left; }
.message-drill-preview img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #0c1216; border-radius: 8px; }
.message-drill-preview span { padding: 4px; }

/* Preserve the new symbol's original green gradient. */
.login-logo, .paid-header img { filter: none; }
.wordmark { width: 148px; }
.wordmark img { object-fit: contain; }

/* Phone verification shares account styling, with bounded native checkboxes. */
.phone-verification .check-row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.phone-verification .check-row input[type="checkbox"] { flex: 0 0 22px; width: 22px; height: 22px; min-height: 22px; padding: 0; margin: 2px 0; accent-color: var(--lime, #b7ef42); }
.phone-verification .check-row span { font-size: 14px; line-height: 1.5; }
.phone-verification input:not([type="checkbox"]) { font-size: 16px; }
.phone-verification button { min-height: 44px; }
.phone-verification [data-phone-current], .phone-verification [data-phone-status] { overflow-wrap: anywhere; }

/* Short student signup form; optional media stays collapsed until requested. */
.golf-background-form select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px;
  color: var(--text, #fff); background: var(--surface, #11191d);
  border: 1px solid #64716b; border-radius: 12px;
}
.golf-background-form summary {
  min-height: 48px; padding: 8px 0; display: flex; align-items: center;
  justify-content: space-between; cursor: pointer; font-size: 16px;
}
.golf-background-form summary::after { content: '+'; font-size: 24px; }
.golf-background-form details[open] summary::after { content: '−'; }
.golf-background-form fieldset { border: 0; padding: 16px 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.golf-background-form button[data-skip], .golf-background-form button[data-upload] {
  min-height: 48px; padding: 12px 16px; font: inherit; color: inherit;
  background: transparent; border: 1px solid #64716b; border-radius: 12px;
}
.golf-background-form summary:focus-visible, .golf-background-form select:focus-visible {
  outline: 2px solid var(--lime, #baf32a); outline-offset: 4px;
}
