 :root {
  --field-900: #0b3f27;
  --field-800: #115a37;
  --field-700: #1a7a4b;
  --field-100: #eaf6ef;
  --field-050: #f5fbf8;

  --surface: #ffffff;
  --surface-alt: #f6fbf8;
  --ink: #12261a;
  --ink-soft: #3d5a4a;
  --line: #c8ddce;
  --line-strong: #91b79e;

  --gold-500: #f0b429;
  --gold-600: #d79a12;
  --good-500: #1c9f5f;
  --warn-500: #c58a10;
  --bad-500: #8b5e6e;
  --danger-500: #b53939;

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;

  --shadow-soft: 0 12px 28px rgba(11, 42, 27, 0.1);
  --shadow-strong: 0 20px 44px rgba(11, 42, 27, 0.16);

  --sans: "Inter", "Trebuchet MS", "Lucida Sans Unicode", "Tahoma", sans-serif;
  --font-heading: "Franklin Gothic Demi", "Trebuchet MS", "Verdana", sans-serif;
  --font-body: var(--sans);
  --font-mono: "Consolas", "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--field-050);
  line-height: 1.45;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 280px;
  z-index: -2;
  background: linear-gradient(130deg, var(--field-900) 0%, var(--field-700) 58%, #21925b 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 58px),
    linear-gradient(180deg, rgba(18, 85, 53, 0.22) 0 280px, transparent 280px);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(0.9rem, 2vw, 1.5rem);
  border-bottom: 2px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(130deg, rgba(8, 38, 24, 0.95), rgba(18, 95, 58, 0.93));
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand__name {
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.brand__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.nav a {
  color: #f2fff7;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
}

.nav a:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

.nav .btn {
  width: auto;
  padding: 0.38rem 0.7rem;
  font-size: 0.8rem;
  color: #f2fff7;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.nav .btn:hover {
  background: rgba(255, 255, 255, 0.21);
}

.modePicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.16rem 0.2rem 0.16rem 0.56rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #f2fff7;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.modePicker:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.13));
}

.modePicker:focus-within {
  border-color: rgba(233, 250, 240, 0.88);
  box-shadow:
    0 0 0 3px rgba(182, 227, 201, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.modePicker::after {
  content: "";
  position: absolute;
  right: 0.74rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid rgba(242, 255, 247, 0.9);
  border-bottom: 2px solid rgba(242, 255, 247, 0.9);
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
}

.modePicker__label {
  font-size: 0.68rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(239, 255, 246, 0.92);
  line-height: 1;
}

.modePicker__select {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(12, 52, 33, 0.42), rgba(12, 52, 33, 0.24));
  color: #f4fff9;
  padding: 0.34rem 1.7rem 0.35rem 0.62rem;
  min-height: 2rem;
  font-size: 0.82rem;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1;
  outline: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.modePicker__select:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: linear-gradient(180deg, rgba(13, 57, 35, 0.5), rgba(13, 57, 35, 0.32));
}

.modePicker__select:focus {
  border-color: rgba(238, 252, 244, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modePicker__select option {
  color: #143623;
  background: #f4fbf7;
}

.modePicker__select::-ms-expand {
  display: none;
}

.clubPicker {
  position: relative;
}

.clubPicker__toggle {
  min-height: 2rem;
  padding: 0.38rem 0.74rem;
}

.clubPicker__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 120;
  width: min(340px, calc(100vw - 1.4rem));
  max-height: min(65vh, 430px);
  overflow-y: auto;
  border: 1px solid #87af95;
  border-radius: 12px;
  background: #f7fdf9;
  box-shadow: 0 14px 28px rgba(9, 43, 27, 0.24);
  padding: 0.35rem;
  display: none;
}

.clubPicker.is-open .clubPicker__menu {
  display: block;
}

.clubPicker__menu .clubPicker__item {
  display: block;
  color: #1f5136;
  font-weight: 700;
  font-size: 0.84rem;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.44rem 0.5rem;
}

.clubPicker__menu .clubPicker__item + .clubPicker__item {
  margin-top: 0.1rem;
}

.clubPicker__menu .clubPicker__item:hover {
  border-color: #d0e5d8;
  background: #e4f2e9;
}

.clubPicker__menu .clubPicker__item[aria-current="page"] {
  border-color: #bfdcc8;
  background: #d4ebdc;
}

.wrap {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.1rem auto 2.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
  animation: rise-in 0.45s ease both;
}

.hero__panel {
  border-radius: var(--radius-xl);
  padding: 1.1rem;
  color: #f7fffb;
  background: linear-gradient(150deg, rgba(11, 45, 28, 0.86), rgba(18, 98, 60, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-soft);
}

.hero__title {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  font-size: clamp(1.28rem, 1.8vw, 1.65rem);
  line-height: 1.2;
}

.hero__lead {
  margin-top: 0.5rem;
  color: rgba(247, 255, 251, 0.9);
}

.hero__tags {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.heroTag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.24rem 0.56rem;
}

.hero__stats {
  border-radius: var(--radius-xl);
  padding: 1rem;
  background: linear-gradient(170deg, #fff4d1, #ffe39a);
  border: 1px solid #e8cb83;
  box-shadow: var(--shadow-soft);
}

.hero__stats h2 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
  color: #5a3f01;
}

.heroMetricGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.52rem;
}

.heroMetric {
  border: 1px solid rgba(131, 91, 5, 0.25);
  background: rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-md);
  padding: 0.54rem;
}

.heroMetric__k {
  font-family: var(--sans);
  color: #7a5a0e;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.heroMetric__v {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  animation: rise-in 0.5s ease both;
}

.todayStrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f8fcf9, #edf6f0);
  padding: 0.48rem;
}

.todayItem {
  border: 1px solid #d7e8dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.32rem 0.42rem;
}

.todayItem__k {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #567461;
  font-family: var(--font-heading);
}

.todayItem__v {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.88rem;
  color: #163524;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.pageHero {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  color: #f7fffb;
  background: linear-gradient(120deg, rgba(10, 43, 27, 0.84), rgba(15, 86, 54, 0.78));
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: rgba(247, 255, 251, 0.82);
}

.pageTitle {
  font-family: var(--font-heading);
  font-size: clamp(1.28rem, 1.7vw, 1.65rem);
  margin-top: 0.28rem;
}

.pageLead {
  margin-top: 0.45rem;
  color: rgba(247, 255, 251, 0.9);
}

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

.sectionCard {
  padding: 1rem;
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}

.sectionTitle {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #143822;
}

.sectionText {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.sectionText + .sectionTitle,
.sectionText + .callout,
ul + .sectionTitle,
ol + .sectionTitle {
  margin-top: 0.8rem;
}

.callout {
  margin-top: 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid #d9c17c;
  background: #fff4d6;
  color: #614500;
  font-size: 0.9rem;
  padding: 0.56rem 0.65rem;
}

.label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2d513e;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.topbar .muted {
  color: rgba(242, 255, 247, 0.83);
}

.h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.inputRow {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 0.9rem;
  align-items: end;
}

.inputCol {
  position: relative;
}

.actionsCol {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.actionsCol .btn {
  flex: 1 1 0;
  min-width: 112px;
}

.input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.72rem 0.82rem;
  font-size: 1rem;
  font-family: var(--sans);
  color: #102417;
  background: #fdfefc;
  outline: none;
}

.input:focus {
  border-color: #57996f;
  box-shadow: 0 0 0 3px rgba(83, 159, 110, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a47209;
  border-radius: var(--radius-md);
  padding: 0.67rem 0.74rem;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  color: #2d1f00;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

#submitGuessBtn,
#clearBtn,
#copyShareBtn {
  font-family: var(--sans);
}

.btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn--ghost {
  color: #1b4b30;
  background: linear-gradient(180deg, #ecf8f0, #dceddf);
  border-color: #92ba9f;
}

.btn--sharePrimary {
  min-height: 2.5rem;
  border-radius: var(--radius-md);
  border-color: #2f6f49;
  background: linear-gradient(180deg, #4d9868, #336f4b);
  color: #f4fcf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 14px rgba(20, 66, 43, 0.14);
  transition: transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.btn--sharePrimary:hover {
  filter: none;
  border-color: #285f3f;
  background: linear-gradient(180deg, #4f9f6c, #2f6946);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 9px 18px rgba(20, 66, 43, 0.2);
}

.btn--sharePrimary:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 7px rgba(20, 66, 43, 0.16);
}

.btn--sharePrimary:focus-visible {
  outline: none;
  border-color: #5ba27a;
  box-shadow:
    0 0 0 3px rgba(83, 159, 110, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(20, 66, 43, 0.2);
}

.modalCloseBtn {
  min-height: 2.4rem;
  min-width: 84px;
  padding: 0.52rem 0.9rem;
  border-radius: var(--radius-md);
  border-color: #bdcfc1;
  background: linear-gradient(180deg, #fdfefd, #eef4f0);
  color: #314f3e;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition: transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.dialog__head .modalCloseBtn {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-start;
}

.modalCloseBtn:hover {
  filter: none;
  border-color: #9fb8a7;
  background: linear-gradient(180deg, #ffffff, #edf4ef);
  color: #274838;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 6px 14px rgba(26, 56, 39, 0.11);
}

.modalCloseBtn:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 2px 6px rgba(26, 56, 39, 0.08);
}

.modalCloseBtn:focus-visible {
  outline: none;
  border-color: #5f9072;
  box-shadow:
    0 0 0 3px rgba(83, 159, 110, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 7px 14px rgba(26, 56, 39, 0.12);
}

.nav .btn.btn--ghost {
  color: #f2fff7;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.error {
  min-height: 1.25rem;
  margin-top: 0.32rem;
  color: var(--danger-500);
  font-size: 0.9rem;
  font-weight: 700;
}

.endStateMessage {
  margin-top: 0.32rem;
  border: 1px solid #d8e8de;
  border-radius: var(--radius-md);
  background: #f5faf7;
  color: #1c4b31;
  padding: 0.44rem 0.56rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.easyHints {
  margin-top: 0.55rem;
  border: 1px solid #d8e8de;
  border-radius: var(--radius-md);
  background: #f6faf8;
  padding: 0.55rem 0.62rem 0.6rem;
}

.easyHints__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  flex-wrap: wrap;
}

.easyHints__title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
  color: #2f5741;
}

.easyHints__credits {
  font-family: var(--font-mono);
  color: #2b4c3a;
  font-size: 0.82rem;
}

.easyHints__actions {
  margin-top: 0.42rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}

.easyHints__status {
  font-size: 0.82rem;
}

.easyHintList {
  margin-top: 0.46rem;
  display: grid;
  gap: 0.34rem;
}

.easyHintItem {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.37rem 0.46rem;
}

.easyHintItem__k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  color: #486755;
}

.easyHintItem__v {
  margin-top: 0.08rem;
  font-size: 0.9rem;
  color: #173a27;
  font-weight: 600;
}

.todaysPlayer {
  margin-top: 0.7rem;
  border: 1px solid #d8e8de;
  border-radius: var(--radius-lg);
  background: #f6faf8;
  padding: 0.55rem 0.6rem 0.6rem;
}

.todaysPlayer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}

.todaysPlayer__title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-heading);
  color: #2f5741;
}

.todaysPlayer__subtitle {
  font-size: 0.78rem;
  color: #4f6c5c;
}

.todaysPlayer__tableWrap {
  margin-top: 0.35rem;
}

.ac {
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.ac__item {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  border-bottom: 1px solid #ebf3ee;
  padding: 0.58rem 0.7rem;
  cursor: pointer;
}

.ac__item:last-child {
  border-bottom: 0;
}

.ac__item:hover,
.ac__item[aria-selected="true"] {
  background: #e7f4eb;
}

.ac__item--active {
  background: #e7f4eb;
}

.ac__meta {
  color: #5d7d6a;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.tableWrap {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: auto;
}

.resultsHead {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.resultsHead__title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-heading);
  color: #2f5741;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 940px;
  background: #ffffff;
}

.th {
  position: sticky;
  top: 0;
  background: #edf6ef;
  color: #305740;
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.58rem 0.62rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.th--name {
  min-width: 220px;
}

td {
  border-bottom: 1px solid #eef5f0;
  padding: 0.57rem 0.62rem;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  text-align: center;
  padding: 1rem 0.7rem;
  color: #547161;
}

.cellName {
  font-weight: 700;
}

.cellSub {
  margin-top: 0.24rem;
  font-size: 0.76rem;
  color: #597967;
  font-family: var(--font-mono);
}

.tile {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 0.45rem 0.48rem;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  justify-content: center;
}

.tile__mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #2f4a3a;
}

.tile__val {
  font-size: 0.82rem;
  color: #163423;
  line-height: 1.22;
  font-variant-numeric: tabular-nums;
}

.tile--g {
  border-color: #86d3ab;
  background: #e6f8ee;
}

.tile--y {
  border-color: #e9cb79;
  background: #fff6de;
}

.tile--x {
  border-color: #cfbac2;
  background: #f8f1f4;
}

.footnote {
  margin-top: 0.75rem;
}

.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #476553;
  font-size: 0.85rem;
}

.legend--compact {
  font-size: 0.76rem;
  gap: 0.35rem;
}

.legend--compact .pill {
  padding: 0.14rem 0.42rem;
  font-size: 0.68rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.pill--g {
  border-color: #76c99f;
  background: #e6f8ee;
}

.pill--y {
  border-color: #d8b95f;
  background: #fff6de;
}

.pill--x {
  border-color: #cfbac2;
  background: #f8f1f4;
}

.pill--plain {
  border-color: #adc5b4;
  background: #edf7f1;
}

.emptySilhouetteRow td {
  padding-top: 0.45rem;
  padding-bottom: 0.58rem;
}

.emptySilhouette {
  height: 10px;
  width: 74%;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef5f0, #e2ede6);
}

.emptySilhouette--long {
  width: 86%;
}

.cellEnter {
  transform-origin: 50% 20%;
  animation: tile-enter 220ms ease both;
  animation-delay: var(--enter-delay, 0ms);
}

.footer {
  margin-top: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.14rem 0.2rem;
}

.footerFeedback a {
  color: #1f5b39;
  border-bottom: 1px dotted #7ea891;
}

.footerFeedback a:hover {
  border-bottom-style: solid;
}

.links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.links a {
  color: #1f5b39;
  font-weight: 700;
  font-size: 0.88rem;
  border-bottom: 1px dotted #7ea891;
}

.links a:hover {
  border-bottom-style: solid;
}

.dialog {
  width: min(720px, calc(100% - 1.2rem));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0.95rem;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-strong);
}

.dialog::backdrop {
  background: rgba(4, 24, 15, 0.5);
}

.dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.updatesLog {
  margin-top: 0.8rem;
}

.updateEntry {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  padding: 0.6rem 0.68rem;
}

.updateEntry__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.updateEntry__version {
  font-family: var(--font-heading);
  color: #1e4f33;
}

.updateEntry__meta {
  font-size: 0.84rem;
  color: #4b6a59;
}

.updateEntry__items {
  margin-top: 0.45rem;
  color: #2b4e3b;
}

.grid {
  margin-top: 0.82rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.stat {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.6rem;
}

.stat__k {
  font-size: 0.75rem;
  color: #567264;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.stat__v {
  margin-top: 0.14rem;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
}

.shareBox {
  margin-top: 0.8rem;
}

.sharePreviewMeta {
  margin-bottom: 0.34rem;
}

.sharePreviewLabel {
  margin: 0 0 0.12rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #355943;
}

.sharePreviewHint {
  font-size: 0.82rem;
  color: #4f6b5b;
}

.textarea {
  width: 100%;
  margin-top: 0.28rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.64rem 0.72rem;
  min-height: 132px;
  font-family: var(--font-mono);
  color: #163624;
  background: #fdfefc;
  resize: vertical;
}

#shareText {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre;
  tab-size: 16;
  line-height: 1.36;
  border-color: #9cbca8;
  background: linear-gradient(180deg, #fdfefc, #f3faf6);
}

.shareActions {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.5rem;
}

.shareActions .btn {
  min-height: 2.5rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}

#shareDialog {
  width: min(620px, calc(100% - 1rem));
  padding: 1rem 1rem 0.95rem;
  border-color: #bfd7c7;
  background: linear-gradient(180deg, #ffffff, #f7fcf9);
}

#shareDialog::backdrop {
  background: rgba(6, 24, 15, 0.44);
  backdrop-filter: blur(3px);
}

#shareDialog .dialog__head {
  align-items: flex-start;
  gap: 0.9rem;
}

#shareDialog .h2 {
  font-size: 1.14rem;
}

#shareDialog .muted {
  font-size: 0.88rem;
  color: #4a6757;
}

.sharePrimaryActions {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

.shareSocialActions {
  margin-top: 0.52rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

#shareDialog .sharePrimaryActions .btn,
#shareDialog .shareSocialActions .btn {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.56rem 0.7rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

#shareDialog .shareSocialActions .btn {
  background: linear-gradient(180deg, #edf7f1, #e1f0e8);
  border-color: #9fbeaa;
  color: #1f4d33;
}

#copyStatus {
  margin-top: 0.28rem;
}

.shareToast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 12px);
  background: rgba(12, 30, 21, 0.94);
  color: #f4faf7;
  border: 1px solid rgba(164, 210, 181, 0.35);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.86rem;
  z-index: 2200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.shareToast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes rise-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes tile-enter {
  from {
    opacity: 0;
    transform: rotateX(-8deg) translateY(6px);
  }

  to {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .card,
  .cellEnter {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .actionsCol {
    justify-content: flex-start;
  }

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

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

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

}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .wrap {
    width: calc(100% - 1.1rem);
    margin-top: 0.8rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .modePicker {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
  }

  .clubPicker__menu {
    left: 0;
    right: auto;
    width: min(92vw, 340px);
  }

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

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

  #shareDialog {
    width: calc(100% - 0.72rem);
    padding: 0.86rem;
  }

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

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

}

@media (max-width: 520px) {
  .shareSocialActions {
    grid-template-columns: 1fr;
  }
}
