/* Fern Golf — the full-screen menu.

   The field is the game's own fairway: deep brand green, mown in wide
   stripes. Everything on it is one cream panel. Courses read as a scorecard,
   one cell per hole, and the red of the pin flag marks what you are playing. */

:root {
  --fairway: #084a23;
  --fairway-stripe: #0b5529;
  --cream: #fffdf8;
  --card-line: #dfe6da;
  --flag: #e23d3b;
  --mist: #5c7a6a;
  --bad: #8d2f26;
  --eagle-gold: #e0a82e;
  --eagle-gold-deep: #6b4a0e;
  --eagle-off: #e7ebe5;
  --eagle-off-bird: #b9c3bc;
}

/* Inside #game so the rules card (z 20) can sit above it. */
.main-menu {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(200px, 30%) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(16px, 3.2vw, 44px);
  padding-left: max(clamp(16px, 3.2vw, 44px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 3.2vw, 44px), env(safe-area-inset-right));
  background:
    repeating-linear-gradient(135deg,
      var(--fairway) 0 64px,
      var(--fairway-stripe) 64px 128px);
  color: var(--cream);
}
.main-menu[hidden] { display: none; }
#rules { z-index: 20; }

/* Long cards (the rules) scroll rather than run off a short screen. */
.modal-card { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; }

/* ------------------------------- side column ---------------------------- */

.menu-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.menu-logo {
  width: min(250px, 100%);
  height: auto;
  margin-bottom: clamp(18px, 4vh, 40px);
  /* The logo is drawn for a light rail, so it gets a cream plate here. */
  background: var(--cream);
  border-radius: 16px;
  padding: 10px 14px;
}

.menu-nav {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.menu-nav button,
.menu-nav a {
  position: relative;
  border: 0;
  background: none;
  padding: 6px 0 6px 22px;
  color: rgba(255, 253, 248, 0.72);
  font: inherit;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}

.menu-nav button:hover,
.menu-nav a:hover { color: var(--cream); }

/* The current page is marked with a pin flag. */
.menu-nav [aria-current="page"] { color: var(--cream); }
.menu-nav [aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 11px;
  height: 9px;
  transform: translateY(-75%);
  background: var(--flag);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.menu-nav [aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 50%;
  width: 2px;
  height: 18px;
  transform: translateY(-50%);
  background: var(--cream);
  border-radius: 1px;
}

.menu-who {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
}
.menu-who p { margin: 0 0 2px; color: rgba(255, 253, 248, 0.8); }
.menu-who .menu-link { color: var(--cream); }

.menu-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* --------------------------------- panel -------------------------------- */

.menu-panel {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream);
  color: var(--ink);
  border-radius: 22px;
  padding: clamp(18px, 2.6vw, 32px);
  box-shadow: 0 24px 60px rgba(0, 20, 8, 0.35);
}
.menu-panel:focus { outline: none; }

.menu-view h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.menu-view h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.menu-empty { color: var(--mist); }

/* Back to the hole you left. */
.continue-card {
  display: grid;
  gap: 2px;
  width: 100%;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.continue-card:hover { background: var(--green-deep); }
.continue-card[hidden] { display: none; }
.continue-label { font-weight: 800; font-size: 17px; }
.continue-detail { font-size: 14px; opacity: 0.85; }

/* ------------------------------ scorecards ------------------------------ */

.course-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.course-row {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--card-line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
}
.course-row:hover { border-color: var(--green); }
.course-row.is-playing { border-color: var(--flag); }

/* The top of the row: course name, holes and par, best round. */
.course-start {
  display: grid;
  gap: 10px;
  margin: -14px -16px 0;
  width: calc(100% + 32px);
  padding: 14px 16px 2px;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.course-start:hover .course-name { color: var(--green); }
.course-start:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }

.course-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.course-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.course-meta { margin-left: auto; color: var(--mist); font-size: 14px; }
.course-flag {
  color: var(--flag);
  font-size: 13px;
  font-weight: 700;
}

/* One cell per hole: the number on top, its par below, ruled like a card. */
.course-card {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--card-line);
  padding-top: 8px;
  gap: 0;
}
.card-cell {
  display: grid;
  min-width: 34px;
  text-align: center;
  border-right: 1px solid var(--card-line);
  line-height: 1.25;
}
/* Each hole is a button: tap it to play from that hole. */
button.card-cell {
  margin: 0;
  padding: 3px 0 4px;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button.card-cell:hover { background: #eef5ea; }
button.card-cell:hover b { color: var(--green); }
button.card-cell.is-here { box-shadow: inset 0 -3px 0 var(--flag); }
button.card-cell:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; border-radius: 6px; }
.card-cell:last-child { border-right: 0; }
.card-cell b { font-size: 11px; font-weight: 600; color: var(--mist); }
.card-cell i { font-style: normal; font-size: 16px; font-weight: 800; }

/* The best row on a scorecard: plain for par or worse, green under par,
   gold for an eagle, a dash where the hole has not been finished. */
.course-best { color: var(--mist); font-size: 14px; margin-top: -4px; }
.card-cell em { font-style: normal; font-size: 13px; font-weight: 700; margin-top: 2px; }
.card-cell em.under { color: var(--green); }
.card-cell em.eagle { color: var(--eagle-gold-deep); background: #f8e7b8; border-radius: 6px; }
.card-cell em.none { color: #b5c0b8; font-weight: 400; }
.card-labels { min-width: 40px; text-align: left; padding: 3px 6px 4px 0; }
.card-labels b, .card-labels i, .card-labels em { color: var(--mist); font-weight: 600; font-size: 11px; line-height: 1.6; }
.card-labels i { font-size: 11px; }

/* -------------------------------- eagle badge --------------------------- */

.eagle-badge {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.eagle-badge svg { display: block; width: 100%; height: 100%; }
.eagle-badge[hidden] { display: none; }
.eagle-disc { fill: var(--eagle-off); }
.eagle-bird { fill: var(--eagle-off-bird); }
.eagle-badge.is-earned .eagle-disc { fill: var(--eagle-gold); }
.eagle-badge.is-earned .eagle-bird { fill: var(--eagle-gold-deep); }
.eagle-ring { fill: none; stroke: var(--eagle-off-bird); stroke-width: 1.4; opacity: 0.5; }
.eagle-badge.is-earned .eagle-ring { stroke: var(--eagle-gold-deep); }

/* ------------------------------ eagle hunter ---------------------------- */

.eagles-summary { margin: -6px 0 18px; line-height: 1.45; max-width: 60ch; }

.eagle-course-head { margin: 0 0 10px; }
.eagle-course-head h3 { margin: 0; font-size: 18px; }

/* Two courses side by side where the panel is wide enough, one otherwise. */
.eagles-courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px 16px;
}
.eagle-course { margin: 0; min-width: 0; }

/* One course: its Eagle Hunter holes as a loose set of badges, and the
   mastery medal beside them with a ring that fills one segment per eagle. */
.eagle-set {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 10px 10px;
  border: 1.5px solid var(--card-line);
  border-radius: 16px;
  background: white;
}

.eagle-tray {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  /* Always one row: six columns at most, each as wide as it can be up to
     a badge's comfortable width. */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 52px));
  gap: 0;
}

.eagle-node { min-width: 0; display: flex; justify-content: center; }
.eagle-stop {
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 100%;
  padding: 4px 0 6px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.eagle-stop:hover { background: #f1f6ee; }
.eagle-stop:hover .eagle-hole { color: var(--green); }
.eagle-stop:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.eagle-stop .eagle-badge { width: min(36px, 100%); height: auto; aspect-ratio: 1; margin-bottom: 3px; }
.eagle-hole { font-weight: 800; font-size: 11.5px; white-space: nowrap; }
.eagle-need { font-size: 11px; color: var(--mist); white-space: nowrap; }
.eagle-node.is-earned .eagle-need { color: var(--eagle-gold-deep); font-weight: 700; }

/* Mastery: the course medal, set apart by a rule, inside its progress ring. */
.eagle-mastery {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--card-line);
  text-align: center;
}
.mastery-medal { position: relative; display: block; width: 54px; height: 54px; margin-bottom: 2px; }
.mastery-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-seg { fill: none; stroke: var(--eagle-off); stroke-width: 5; stroke-linecap: round; }
.ring-seg.is-filled { stroke: var(--eagle-gold); }
.mastery-medal .eagle-badge { position: absolute; inset: 8px; width: auto; height: auto; }
.eagle-mastery .eagle-hole { font-size: 13px; }
.eagle-mastery.is-earned .mastery-medal { filter: drop-shadow(0 3px 8px rgba(224, 168, 46, 0.55)); }

/* ---------------------------- abandon prompt ---------------------------- */

.menu-confirm {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 30, 14, 0.55);
}
.menu-confirm[hidden] { display: none; }
.menu-confirm-card {
  width: min(440px, 100%);
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 20, 8, 0.4);
}
.menu-confirm-card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.menu-confirm-card p { margin: 0 0 18px; line-height: 1.5; }
.menu-confirm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-confirm-actions .primary { width: auto; flex: 1 1 auto; }
.menu-confirm-actions .ghost { flex: 0 0 auto; }

/* --------------------------------- profile ------------------------------ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 22px;
  border: 1.5px solid var(--card-line);
  border-radius: 14px;
  background: white;
}
.stat-row div {
  padding: 12px 14px;
  border-right: 1px solid var(--card-line);
}
.stat-row div:last-child { border-right: 0; }
.stat-row dt { font-size: 13px; color: var(--mist); }
.stat-row dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }

.menu-form {
  display: grid;
  gap: 6px;
  max-width: 440px;
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--card-line);
}
.menu-form.bare { border-top: 0; padding-top: 0; }
.menu-form[hidden] { display: none; }
.menu-form label { font-size: 14px; font-weight: 600; margin-top: 6px; }
.menu-form .optional { font-weight: 400; color: var(--mist); }

.menu-form input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--card-line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* no zoom-on-focus on phones */
}
.menu-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 122, 52, 0.18);
}

.menu-form .primary { margin-top: 8px; }
.primary.small { width: auto; padding: 10px 16px; font-size: 15px; justify-self: start; }
.menu-form .menu-link { justify-self: start; margin-top: 6px; font-size: 14px; }
.menu-form .ghost { justify-self: start; }

.inline-field { display: flex; gap: 8px; }
.inline-field .primary.small { margin-top: 0; flex: 0 0 auto; }

.hint { margin: 0; font-size: 13px; color: var(--mist); line-height: 1.4; }

.form-error,
.flash.bad {
  margin: 4px 0 0;
  color: var(--bad);
  font-size: 14px;
}
.flash {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.flash.ok { background: #e7f3ea; color: var(--green-deep); }
.flash.bad { background: #fff4f2; margin: 0 0 16px; }
.flash[hidden], .form-error[hidden] { display: none; }

.menu-form.danger h3 { color: var(--bad); }
.danger-button {
  justify-self: start;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--bad);
  border-radius: 14px;
  background: white;
  color: var(--bad);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.danger-button:hover { background: #fff4f2; }

/* -------------------------------- account ------------------------------- */

.account-box { max-width: 440px; }

.account-tabs {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 999px;
  background: #eef3ea;
}
.account-tabs[hidden] { display: none; }
.account-tabs button {
  border: 0;
  background: none;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--mist);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.account-tabs [aria-selected="true"] { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(23, 48, 36, 0.12); }

.account-intro { margin: 0 0 14px; line-height: 1.45; }
.account-intro[hidden] { display: none; }

.sent { display: grid; gap: 10px; justify-items: start; }
.sent[hidden] { display: none; }
.sent p { margin: 0; line-height: 1.5; }

/* ------------------------ save prompt (hole card) ----------------------- */

.save-prompt {
  margin: 4px 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f1f6ee;
}
.save-prompt[hidden] { display: none; }
.save-prompt .save-title { margin: 0 0 4px; font-weight: 800; font-size: 17px; }
.save-prompt p { font-size: 14px; }
.save-actions { display: flex; gap: 8px; align-items: center; }
.save-actions .primary { width: auto; flex: 1 1 auto; font-size: 15px; padding: 10px 14px; }

/* While the menu is up the rail's controls are covered; keep focus out. */
body.menu-open .game-rail,
body.menu-open .hole-card,
body.menu-open #dev-tools { visibility: hidden; }

/* ------------------------------ small screens --------------------------- */

/* A slim bar along the top on every screen (bigger on large ones),
   so the panel gets the full width and nearly all the height. */
@media screen {
  .main-menu {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .menu-side {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .menu-logo {
    flex: none;
    width: auto;
    height: 38px;
    margin: 0;
    padding: 4px 7px;
    border-radius: 9px;
  }
  .menu-nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .menu-nav::-webkit-scrollbar { display: none; }
  .menu-nav button, .menu-nav a {
    flex: none;
    font-size: 15px;
    padding: 8px 10px 8px 18px;
    white-space: nowrap;
  }
  .menu-nav [aria-current="page"]::after { left: 5px; height: 15px; }
  .menu-nav [aria-current="page"]::before { left: 6px; width: 9px; height: 7px; }
  .menu-who {
    flex: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    text-align: right;
  }
  .menu-who p { display: none; }
  .menu-panel { padding: 14px; border-radius: 14px; }
  .menu-view h2 { font-size: 22px; margin-bottom: 10px; }
  .stat-row dd { font-size: 20px; }
  .main-menu .card-grid { grid-template-columns: repeat(auto-fill, 76px); gap: 12px 10px; }
  .main-menu .card-grid .tcard-name { font-size: 10.5px; }
  .main-menu .card-grid .tcard-rarity { font-size: 8px; }
  .main-menu .challenge-group, .main-menu .card-group { margin-bottom: 16px; }
}

@media (min-height: 521px) and (min-width: 761px) {
  .main-menu { gap: 14px; padding: 16px max(20px, env(safe-area-inset-right)) 20px max(20px, env(safe-area-inset-left)); }
  .menu-side { gap: 18px; }
  .menu-logo { height: 52px; padding: 6px 10px; border-radius: 12px; }
  .menu-nav { gap: 6px; }
  .menu-nav button, .menu-nav a { font-size: 19px; padding: 10px 12px 10px 22px; }
  .menu-nav [aria-current="page"]::after { height: 18px; }
  .menu-nav [aria-current="page"]::before { width: 11px; height: 9px; }
  .menu-who { font-size: 15px; }
  .menu-who p { display: block; }
  .menu-panel { padding: clamp(18px, 2.6vw, 32px); border-radius: 20px; }
  .menu-view h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
  .main-menu .card-grid { grid-template-columns: repeat(auto-fill, 100px); gap: 18px 14px; }
}

@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row div:nth-child(2) { border-right: 0; }
  .stat-row div:nth-child(-n+2) { border-bottom: 1px solid var(--card-line); }
}

@media (prefers-reduced-motion: no-preference) {
  .main-menu:not([hidden]) .menu-panel { animation: menu-in 220ms ease-out; }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------ Challenges ------------------------------ */

/* One card per challenge: a little scene with the name on it, then the goal.
   3 across on phones, more as the screen widens. */
.challenge-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) and (min-height: 521px) { .challenge-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) and (min-height: 521px) { .challenge-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1500px) and (min-height: 521px) { .challenge-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.challenge {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid var(--card-line);
  border-radius: 18px;
  background: #fff;
}
.challenge-top {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}
.challenge-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.challenge-name {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(10, 40, 20, 0.55), 0 0 10px rgba(10, 40, 20, 0.35);
}
.challenge-tick {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--eagle-gold);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.challenge-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  padding: 10px 12px 12px;
}
.challenge-goal { font-size: 13px; line-height: 1.35; color: var(--ink); }
.challenge-state {
  margin-top: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--green, #1b7a35);
}
.challenge.is-done .challenge-state { color: var(--eagle-gold-deep); }
.challenge.is-locked { opacity: 0.6; }
.challenge.is-locked .challenge-art { filter: grayscale(0.75) brightness(0.92); }
.challenge.is-locked .challenge-state { color: var(--mist); }

@media (max-height: 520px), (max-width: 760px) {
  .challenge-cards { gap: 10px; }
  .challenge { border-radius: 14px; }
  .challenge-name { font-size: 12px; left: 8px; right: 8px; bottom: 6px; }
  .challenge-bottom { padding: 8px 9px 9px; gap: 4px; }
  .challenge-goal { font-size: 11.5px; }
  .challenge-state { font-size: 10px; }
}

/* ----------------------------- Collectibles ----------------------------- */

.card-group { margin: 0 0 24px; }
.card-group > h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.card-group-count { margin-left: 6px; letter-spacing: 0; color: var(--ink, #12301e); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 96px);
  gap: 16px 14px;
}

/* Top bar: negative logo straight on the stripes, and the current page as a
   cream pill with green text (no flag marker). */
.main-menu .menu-logo { background: none; padding: 0; border-radius: 0; }
.main-menu .menu-nav button,
.main-menu .menu-nav a { padding-left: 14px; padding-right: 14px; border-radius: 999px; }
.main-menu .menu-nav [aria-current="page"] { background: var(--cream); color: var(--fairway); }
.main-menu .menu-nav [aria-current="page"]::before,
.main-menu .menu-nav [aria-current="page"]::after { content: none; }
.main-menu .menu-view h2.sr-only + * { margin-top: 0; }

/* Section headings: plain case, bigger, bold green. */
.challenge-group > h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--fairway);
  margin-bottom: 10px;
}

/* Eagle Hunter: the course name sits inside its box with the badges. */
.eagle-course {
  padding: 12px 10px 10px;
  border: 1.5px solid var(--card-line);
  border-radius: 16px;
  background: white;
}
.eagle-course-head { margin: 0 4px 8px; }
.eagle-course-head h3 { font-size: 16px; }
.eagle-course .eagle-set { padding: 0; border: 0; border-radius: 0; background: none; }

/* Top right: a cream hamburger that goes straight back to the game. */
.menu-close {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--cream);
  cursor: pointer;
}
.menu-close:hover { background: rgba(255, 253, 248, 0.1); }
.menu-close svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
@media (max-height: 520px), (max-width: 760px) {
  .menu-close { width: 42px; height: 42px; }
  .menu-close svg { width: 30px; height: 30px; }
}

/* ------------------------------ Clubhouse ------------------------------- */
.club-section { margin: 0 0 24px; max-width: 720px; }
.club-heading { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--fairway); }
.club-note { margin: 0 0 12px; color: var(--mist); font-size: 14px; }
.stat-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stat-bars li { display: grid; grid-template-columns: 90px 1fr 34px; align-items: center; gap: 12px; font-weight: 700; }
.stat-bars i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--fairway) var(--v), var(--card-line) var(--v)); }
.stat-bars button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--card-line); color: var(--mist); font: inherit; font-size: 18px; font-weight: 800; }
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.shop-grid li { display: grid; gap: 4px; padding: 14px; border: 1.5px dashed var(--card-line); border-radius: 14px; opacity: 0.7; }
.shop-grid span { font-size: 12px; color: var(--mist); }
