@font-face {
  font-family: Figtree;
  src: url(/fonts/figtree-regular.ttf);
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url(/fonts/figtree-bold.ttf);
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family:
    Figtree,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1f1d1a;
  background: #f7f5f1;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: var(--safe-area-inset-top, env(safe-area-inset-top))
    var(--safe-area-inset-right, env(safe-area-inset-right))
    calc(90px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom)))
    var(--safe-area-inset-left, env(safe-area-inset-left));
}
header {
  padding: 24px max(20px, calc((100vw - 1080px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e6e1d9;
  gap: 12px;
}
.brand {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -1px;
  color: inherit;
  text-decoration: none;
}
.brand span {
  font-size: 12px;
  letter-spacing: 2px;
  display: block;
  color: #c24f00;
}
main,
#status {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
}
#status {
  font-size: 14px;
  min-height: 52px;
  color: #6e675e;
}
h1 {
  font-size: clamp(30px, 6vw, 48px);
  letter-spacing: -1.5px;
  margin: 4px 0 12px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 18px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 750;
  color: #6e675e;
}
.intro {
  color: #6e675e;
  line-height: 1.6;
}
.card {
  background: #fff;
  border: 1px solid #e6e1d9;
  border-radius: 20px;
  padding: 24px;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.hero {
  background: #fff1e6;
  border-color: #f2d4bc;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid .card {
  margin: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.event {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e8e9e1;
}
.event:last-child {
  border: 0;
}
.event p {
  margin: 6px 0;
  color: #6e675e;
}
button,
.button {
  font: inherit;
  min-height: 48px;
  border: 1px solid #c8cebe;
  border-radius: 12px;
  padding: 12px 18px;
  background: #f7f5f1;
  color: #252c20;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.primary {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #1f1d1a;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #c24f00;
  outline-offset: 3px;
}
label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-weight: 650;
}
input,
textarea,
select {
  font: inherit;
  width: 100%;
  min-height: 48px;
  border: 1px solid #adb5a3;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: inherit;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
small {
  font-size: 13px;
  font-weight: 400;
  color: #6e675e;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 24px;
  min-height: 24px;
}
label.check {
  display: flex;
  align-items: center;
  font-weight: 400;
}
.badge {
  font-size: 12px;
  font-weight: 650;
  border-radius: 20px;
  padding: 6px 10px;
  background: #fff1e6;
  display: inline-block;
}
.warning {
  background: #fff0d7;
  padding: 12px;
  border-radius: 10px;
  color: #714f1a;
}
.muted {
  color: #6e675e;
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffffed;
  backdrop-filter: blur(12px);
  border-top: 1px solid #ddd;
  padding: 10px 12px
    calc(10px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom)));
  display: flex;
  justify-content: center;
  gap: 8px;
}
nav button {
  border: 0;
  background: transparent;
  min-width: 85px;
  font-size: 13px;
}
nav button[aria-current="page"] {
  background: #fff1e6;
  font-weight: 700;
}
.metric {
  padding: 14px;
  border-radius: 12px;
  background: #f7f5f1;
}
.metric strong {
  display: block;
  font-size: 28px;
  margin: 6px 0;
}
.auth {
  max-width: 520px;
  margin: 20px auto;
}
.history {
  border-bottom: 1px solid #e1e5d9;
  padding: 16px 0;
}
.history dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
dd {
  margin: 0;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 650;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  header {
    padding: 18px 20px;
  }
  .event {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  nav {
    gap: 0;
  }
  nav button {
    min-width: 0;
    flex: 1;
    padding: 12px 8px;
  }
  h1 {
    letter-spacing: -1px;
  }
}

.auth .actions {
  margin-top: 18px;
}
.auth .actions button {
  font-size: 14px;
  padding: 8px 10px;
}
.brand span {
  color: #c24f00;
}

.brand img {
  display: block;
  width: 160px;
  max-width: 48vw;
  height: auto;
}

.auth dl {
  display: grid;
  gap: 4px;
  margin: 24px 0;
}
.auth dt {
  font-size: 13px;
  font-weight: 700;
  color: #666157;
}
.auth dd {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

/* Keep scrolling content behind an opaque status-bar safe area on iPhone. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  background: #f7f5f1;
  z-index: 100;
  pointer-events: none;
}
html {
  scroll-padding-top: calc(
    var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 20px
  );
  scroll-padding-bottom: calc(
    var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 100px
  );
  -webkit-text-size-adjust: 100%;
}
body {
  line-height: 1.5;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
}
input[type="date"] {
  display: block;
  appearance: none;
  min-inline-size: 0;
}
label,
.grid > * {
  min-width: 0;
}
input,
select,
textarea,
[tabindex="-1"] {
  scroll-margin-top: calc(
    var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 24px
  );
  scroll-margin-bottom: 100px;
}
#registration-feedback:not(:empty) {
  padding: 14px;
  border-radius: 12px;
  background: #fff0d7;
  color: #593c12;
}
@media (max-width: 600px) {
  main,
  #status {
    padding-left: 16px;
    padding-right: 16px;
  }
  .auth {
    margin: 12px auto;
  }
  .auth form > button.primary {
    width: 100%;
  }
  .auth .actions button {
    min-height: 48px;
  }
}

/* Approved Player handoff 1. Figtree 600/800 intentionally mapped to bundled 700. */
:root {
  --ink: #1f1d1a;
  --muted: #6e675e;
  --line: #e6e1d9;
  --action: #ff6a00;
  font-size: 100%;
}
body {
  font-size: 1rem;
}
h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -1px;
  margin: 16px 0 24px;
}
h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
h3 {
  font-size: 1.125rem;
}
label,
summary,
.badge,
.eyebrow {
  font-weight: 700;
}
header {
  border: 0;
  max-width: 600px;
  margin: auto;
  padding: 24px 20px;
}
.brand img {
  width: 136px;
}
#sync-state {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: right;
}
main,
#status {
  max-width: 600px;
  padding: 16px 20px;
}
#status {
  font-size: 0.8125rem;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
#status:empty {
  display: none;
}
.card {
  padding: 22px;
  border-color: var(--line);
  border-radius: 20px;
}
button,
.button {
  font-size: 1.0625rem;
  font-weight: 700;
  min-height: 56px;
  border-color: #cfc8bd;
  color: var(--ink);
}
button.primary {
  background: var(--action);
  color: white;
  border-color: var(--action);
  font-weight: 700;
  font-size: 1.125rem;
}
button.primary:active {
  background: #e5600a;
}
button:disabled,
button.primary:disabled {
  background: #ede9e2;
  color: #7d766c;
  border-color: #ede9e2;
  opacity: 1;
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #c24f00;
  outline-offset: 3px;
}
input,
textarea,
select {
  min-height: 52px;
  border-color: #cfc8bd;
  font-size: 1rem;
}
label {
  font-size: 0.9375rem;
}
nav {
  background: white;
  gap: 4px;
  z-index: 10;
  border-color: var(--line);
}
nav button {
  min-width: 0;
  flex: 1;
  max-width: 130px;
  font-size: 0.8125rem;
  font-weight: 400;
}
nav button[aria-current] {
  font-weight: 700;
}
.auth {
  max-width: 440px;
  margin: 0 auto;
}
.auth.card,
.auth > .card {
  padding: 0;
  background: transparent;
  border: 0;
}
.auth-mode header {
  padding-top: 52px;
  padding-bottom: 12px;
}
.auth-mode .brand img {
  width: 176px;
}
.auth-mode #sync-state {
  display: none;
}
.auth .intro {
  font-size: 1rem;
}
.auth form > .primary {
  width: 100%;
  margin-top: 24px;
}
.auth .actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth .actions button {
  background: transparent;
  border: 0;
  font-size: 1rem;
  min-height: 44px;
}
.password {
  position: relative;
  display: flex;
}
.password input {
  padding-right: 70px;
}
.password button {
  position: absolute;
  right: 0;
  top: 0;
  border: 0;
  background: none;
  min-height: 52px;
  color: #c24f00;
  font-size: 0.9375rem;
}
.hero {
  background: white;
  box-shadow: 0 8px 20px #1f1d1a08;
}
.hero .primary {
  width: 100%;
}
.hero .eyebrow {
  color: #b94b00;
}
.grid {
  grid-template-columns: 1fr;
}
.event {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.event .actions button {
  min-height: 44px;
}
.in-checkin {
  padding-bottom: 0;
}
.in-checkin > header,
.in-checkin > #status {
  display: none;
}
.in-checkin main {
  padding-top: 0;
}
.step-header {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  color: var(--muted);
  font-weight: 700;
}
.step-header > span {
  text-align: center;
  flex: 1;
  font-size: 0.875rem;
}
.step-header button {
  font-size: 2rem;
  border: 0;
  background: transparent;
  padding: 0;
  width: 44px;
  min-height: 44px;
}
.progress {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
}
.progress i {
  height: 4px;
  background: var(--line);
  border-radius: 8px;
  flex: 1;
}
.progress i.active {
  background: var(--ink);
}
.checkin-screen h1 {
  margin: 24px 0 28px;
}
.checkin-screen .eyebrow {
  margin-top: 32px;
}
.checkin-screen form {
  padding-bottom: 20px;
}
.yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.yesno button {
  height: 128px;
  background: white;
  border: 1.5px solid #cfc8bd;
  border-radius: 16px;
  font-size: 1.75rem;
}
.yesno.compact button {
  height: 76px;
  font-size: 1.375rem;
}
.yesno button[aria-checked="true"] {
  background: #fff1e6;
  border: 2.5px solid var(--ink);
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 18px;
}
.score-grid button {
  padding: 4px;
  min-height: 60px;
  background: white;
  font-size: 1.375rem;
  border-radius: 12px;
}
.score-grid button[aria-checked="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #ffd9c2;
}
.effort-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.effort-grid button {
  min-height: 56px;
}
.score-value {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  min-height: 68px;
}
.score-value strong {
  font-size: 1.75rem;
  white-space: nowrap;
}
.score-value small {
  font-size: 1rem;
}
.score-value span {
  font-size: 0.9375rem;
}
.anchors {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 8px;
  font-size: 0.875rem;
}
.anchors p {
  margin: 6px 0;
}
.anchors b {
  display: inline-block;
  min-width: 24px;
}
.step-actions {
  position: sticky;
  bottom: var(--keyboard-inset, 0px);
  background: #f7f5f1;
  padding: 16px 0
    calc(12px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom)));
  margin-top: 32px;
  z-index: 3;
  display: grid;
  gap: 8px;
}
.step-actions > .primary {
  width: 100%;
}
.text-button {
  border: 0;
  background: transparent;
  color: #4a463f;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.chips button {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 30px;
  background: white;
  font-size: 0.9375rem;
}
.chips button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.review-list {
  padding: 4px 16px;
}
.review-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: white;
  font-size: 1rem;
  text-align: left;
}
.review-list button:last-child {
  border: 0;
}
.review-list strong {
  margin-left: auto;
  text-align: right;
  max-width: 60%;
  overflow-wrap: anywhere;
}
.review-list button > span:first-child {
  font-weight: 400;
}
.outcome {
  padding-top: 64px;
}
.outcome > .primary {
  width: 100%;
  margin-top: 30px;
  background: var(--ink);
  border-color: var(--ink);
}
.outcome-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
}
.submitted {
  background: #e6f2e7;
  color: #24613a;
}
.device {
  background: #fff0d7;
  color: #714f1a;
}
.failed {
  background: #fbe9e6;
  color: #a3301f;
}
.legacy {
  background: #ede9e2;
  color: #34312c;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.segmented button {
  flex: 1;
  background: transparent;
  border: 0;
  min-height: 44px;
}
.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
@media (max-width: 360px) {
  .score-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .effort-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.12s,
      color 0.12s;
  }
}
@supports (font: -apple-system-body) {
  html {
    font: -apple-system-body;
  }
  body {
    font-family:
      Figtree,
      -apple-system,
      sans-serif;
  }
}
.checkin-screen form {
  display: flex;
  flex-direction: column;
  min-height: calc(
    100dvh - 112px - var(--safe-area-inset-top, env(safe-area-inset-top))
  );
}
.checkin-screen .step-actions {
  margin-top: auto;
}
.checkin-screen .step-actions::before {
  content: "";
  height: 12px;
}
.auth .actions .primary {
  background: #ff6a00;
  color: white;
  font-size: 1.125rem;
  width: 100%;
}
@media (min-width: 601px) {
  .checkin-screen {
    max-width: 440px;
    margin: auto;
  }
}

#status.quiet {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  padding: 0;
  min-height: 0;
}
.score-grid {
  grid-template-columns: repeat(var(--score-columns, 5), minmax(0, 1fr));
}
.effort-grid {
  grid-template-columns: repeat(var(--effort-columns, 6), minmax(0, 1fr));
}

/* My GPS: approved Player GPS pack, current published-results contract. */
.gps {
  margin-top: 24px;
}
.gps-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gps h2 {
  margin: 16px 0;
}
.gps-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.gps-chips button {
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
}
.gps button[aria-pressed="true"] {
  background: #1f1d1a;
  color: white;
}
.gps-badge {
  display: inline-block;
  font-size: 12px;
  border-radius: 8px;
  padding: 4px 8px;
  background: #ede9e2;
  color: #4a463f;
  vertical-align: middle;
}
.gps-badge.match {
  background: #e8edf6;
  color: #002060;
}
.gps-total {
  display: block;
  font-size: 48px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.gps-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.gps-mini > div {
  padding: 12px;
  border-radius: 14px;
  background: #efebe4;
}
.gps-mini strong {
  display: block;
  margin-top: 8px;
}
.gps-latest > .primary {
  width: 100%;
}
.gps-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gps-metric {
  background: #fff;
  border: 1px solid #e6e1d9;
  border-radius: 20px;
  padding: 16px;
  min-height: 110px;
  text-align: left;
}
.gps-metric.wide {
  grid-column: 1/-1;
}
.gps-metric strong {
  display: block;
  font-size: 32px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.gps-metric.wide strong {
  font-size: 44px;
}
.gps-info {
  float: right;
  padding-left: 6px;
}
.gps-missing {
  border: 1px dashed #b6afa4;
  border-radius: 20px;
  padding: 20px;
  margin: 16px 0;
}
.gps-missing p {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.gps-banner {
  background: #fff0d7;
  color: #6b4a00;
  border-radius: 14px;
  padding: 16px;
}
.gps-banner.error {
  background: #fbe9e5;
  color: #8a2c1c;
}
.gps-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  overflow-x: auto;
  min-height: 260px;
  padding: 12px 0;
  border-bottom: 1px solid #b6afa4;
}
.gps-column {
  flex: 1 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  background: transparent !important;
  color: inherit !important;
  padding: 4px;
  border: 0;
  font-size: 12px;
}
.gps-bar {
  width: 80%;
  display: block;
  background: #a39c92;
  border-radius: 6px 6px 0 0;
}
.gps-column[aria-pressed="true"] .gps-bar {
  background: #1f1d1a;
}
.gps-sheet {
  width: min(100%, 560px);
  max-height: 85dvh;
  overflow: auto;
  margin: auto auto 0;
  border: 0;
  padding: 28px;
  border-radius: 28px 28px 0 0;
  background: white;
  color: #1f1d1a;
}
.gps-sheet::backdrop {
  background: #0006;
}
.gps-sheet button {
  width: 100%;
  min-height: 52px;
}
@media (max-width: 1023px) {
  .gps-layout.has-result .gps-list {
    display: none;
  }
}
@media (min-width: 600px) {
  .gps-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .gps-layout.has-result {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 28px;
  }
}
@media (prefers-color-scheme: dark) {
  .gps-metric,
  .gps-sheet {
    background: #252320;
    color: #f2efea;
  }
  .gps-mini > div {
    background: #35312b;
  }
  .gps-bar {
    background: #8a847b;
  }
  .gps-column[aria-pressed="true"] .gps-bar {
    background: #f2efea;
  }
}
.gps-metric {
  display: block;
}
.gps-metric > span {
  display: block;
  width: 100%;
}
.gps-result {
  min-width: 0;
}
.gps-metric strong {
  word-break: normal;
}
@media (min-width: 1024px) {
  body:has(.gps) main {
    max-width: 1180px;
  }
  .gps-layout.has-result {
    grid-template-columns: 360px minmax(0, 1fr);
  }
}
@media (min-width: 600px) and (max-width: 1023px) {
  body:has(.gps) main {
    max-width: 720px;
  }
}
html.gps-large-text .gps-metrics {
  grid-template-columns: 1fr;
}

/* Browser Player shares the mobile app UI; wide browsers get top navigation. */
.browser-player {
  min-height: 100svh;
}
.browser-player input,
.browser-player select,
.browser-player textarea {
  font-size: max(16px, 1rem);
}
.browser-player .install-help {
  overflow-wrap: anywhere;
}
@media (min-width: 1024px) {
  .browser-player {
    padding-bottom: 24px;
  }
  .browser-player nav {
    position: static;
    margin: 0 auto 20px;
    max-width: 1180px;
    border: 0;
    border-radius: 16px;
  }
  .browser-player {
    display: flex;
    flex-direction: column;
  }
  .browser-player header {
    order: 0;
  }
  .browser-player #status {
    order: 1;
  }
  .browser-player nav {
    order: 2;
    width: calc(100% - 40px);
  }
  .browser-player main {
    order: 3;
    width: 100%;
  }
}
