@font-face { font-family: "Big Shoulders"; src: url("/fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* whiteboard */
  --board: #f4f7f8;
  --board-2: #e9eef1;
  --ink: #15191d;
  --ink-2: #4a5662;
  --marker-blue: #1d4f9e;
  --rule: #cfd8df;
  --rule-strong: #9fb0bd;
  /* sponsor banner */
  --banner: #ffcc00;
  --banner-deep: #e0a800;
  --banner-wash: #fff4c2;
  /* species legend: fixed, never reused for anything else */
  --sp-bass: #23784a;
  --sp-crappie: #2b5bb3;
  --sp-cichlid: #c4372b;
  --sp-other: #6b7682;

  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --ui: "Public Sans", system-ui, sans-serif;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font: 400 16px/1.5 var(--ui);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--banner); color: var(--ink); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--marker-blue); outline-offset: 2px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--display); font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums lining-nums; }

/* ---------- banner ---------- */
.banner {
  background: var(--banner);
  border-bottom: 3px solid var(--ink);
}
.banner-inner {
  max-width: 1320px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 800 34px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
}
.wordmark-hook { width: 20px; height: 30px; }
.banner-season {
  font: 700 18px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 8px 4px; border: 2px solid var(--ink); border-radius: 4px;
}
.banner .btn { margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer;
  font: 600 15px/1 var(--ui); text-decoration: none; white-space: nowrap;
  transition: transform .12s cubic-bezier(.2,.8,.2,1), background-color .12s cubic-bezier(.2,.8,.2,1);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a3139; }
.btn-banner { background: var(--banner); color: var(--ink); }
.btn-banner:hover { background: var(--banner-deep); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-quiet:hover { color: var(--ink); text-decoration: underline; }

/* ---------- page ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 28px var(--gutter) 56px; }
.page-narrow { max-width: 720px; }
.page-detail { max-width: 1080px; }

/* species dot */
.sp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--sp-other); flex: none; }
.sp-bass { background: var(--sp-bass); }
.sp-crappie { background: var(--sp-crappie); }
.sp-cichlid { background: var(--sp-cichlid); }

/* ---------- livewell ---------- */
.tank { margin-bottom: 40px; }
.tank-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 12px; }
.tank-head h1 { margin: 0; font: 800 clamp(36px, 5vw, 52px)/.95 var(--display); text-transform: uppercase; }
.tank-head p { margin: 0; color: var(--ink-2); }
.water {
  position: relative; height: clamp(320px, 36vw, 480px); overflow: hidden; isolation: isolate;
  border: 2px solid var(--ink); border-radius: 10px;
  background: linear-gradient(180deg, #e4f1ee 0%, #cfe5df 55%, #bcd9d1 100%);
  box-shadow: 0 1px 0 var(--rule), 0 16px 32px -24px rgba(21, 25, 29, .55);
  touch-action: manipulation;
}
.water::before { /* waterline */
  content: ""; position: absolute; inset: 0 0 auto; height: 10px; z-index: 250; pointer-events: none;
  background: rgba(255, 255, 255, .55); border-bottom: 1.5px solid rgba(21, 25, 29, .18);
}
.bed { position: absolute; left: 0; bottom: 0; width: 100%; height: 72px; z-index: 1; }
.weeds { position: absolute; bottom: 28px; height: 74%; width: auto; z-index: 1; }
.weeds-l { left: 3%; }
.weeds-r { right: 4%; height: 62%; }
.swimmer { position: absolute; left: 0; top: 0; display: block; will-change: transform; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.swimmer img { width: 100%; height: auto; transition: filter .15s cubic-bezier(.2,.8,.2,1); pointer-events: none; user-select: none; }
.swimmer.is-active img { filter: drop-shadow(0 3px 0 rgba(21, 25, 29, .28)); }
.swimmer:focus-visible { outline: 3px solid var(--marker-blue); outline-offset: 4px; border-radius: 8px; }
.water:not(.is-live) .swimmer { position: static; display: inline-block; width: 120px; } /* no-JS fallback */

.tip {
  position: absolute; left: 0; top: 0; z-index: 300; width: 240px; pointer-events: none;
  background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 12px 16px 16px;
  box-shadow: 0 12px 24px -12px rgba(21, 25, 29, .5);
  opacity: 0; transition: opacity .12s cubic-bezier(.2,.8,.2,1);
}
.tip.is-on { opacity: 1; }
.tip-top { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.tip-top .sp { margin-right: 6px; }
.tip-rank { font: 800 20px/1 var(--display); color: var(--ink-2); }
.tip-species { display: inline-flex; align-items: center; }
.tip-weight { margin: 4px 0 8px; display: flex; align-items: baseline; gap: 4px; }
.tip-weight .num { font-size: 48px; line-height: .9; }
.tip-weight .unit { font: 800 18px/1 var(--display); text-transform: uppercase; color: var(--ink-2); }
.tip-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 13px; }
.tip-facts div { display: contents; }
.tip-facts div[hidden] { display: none; }
.tip-facts dt { color: var(--ink-2); }
.tip-facts dd { margin: 0; font-weight: 500; }

h2 { margin: 0; font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.board-count { margin-left: 8px; font: 500 15px/1 var(--ui); text-transform: none; color: var(--ink-2); }

.board-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  border: 1.5px solid var(--rule-strong); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2);
}
.chip .sp { margin-right: 6px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* sort toggle */
.board-tools { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
.seg { display: inline-flex; padding: 2px; border: 1.5px solid var(--rule-strong); border-radius: 8px; background: #fff; }
.seg a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); transition: background-color .12s cubic-bezier(.2,.8,.2,1), color .12s cubic-bezier(.2,.8,.2,1); }
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: var(--ink); color: #fff; }

/* ---------- board table ---------- */
.catches { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.catches th {
  text-align: left; padding: 10px 12px; background: var(--ink); color: #fff;
  font: 700 16px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
}
.catches td { padding: 10px 12px; border-top: 1px solid var(--rule); vertical-align: middle; }
.catches tbody tr { transition: background-color .2s ease-out; position: relative; }
.catches tbody tr:hover { background: var(--board); }
.catches tr.is-leader { background: var(--banner-wash); }
.catches tr.is-leader:hover { background: #ffefa6; }
.c-rank { width: 48px; text-align: center; font: 800 26px/1 var(--display); color: var(--ink-2); }
th.c-rank { text-align: center; }
.is-leader .c-rank { color: var(--ink); }
.c-fish a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.c-fish a:hover span { text-decoration: underline; }
.c-fish img { width: 72px; height: 40px; object-fit: contain; flex: none; }
.c-fish span { display: inline-flex; align-items: center; white-space: nowrap; }

.c-w { white-space: nowrap; }
.c-w .num { font-size: 30px; line-height: 1; }
.c-w .unit { margin-left: 3px; font: 700 14px/1 var(--display); text-transform: uppercase; color: var(--ink-2); }
.c-l, .c-date { white-space: nowrap; color: var(--ink); }
.c-water { font-weight: 500; }
.c-bait { color: var(--ink-2); font-size: 14px; }
.c-status { text-align: right; width: 1%; white-space: nowrap; }

.stamp {
  display: inline-block; padding: 4px 8px 3px; border: 2px solid var(--marker-blue); border-radius: 4px;
  color: var(--marker-blue); font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  transform: rotate(-4deg);
}
.stamp-lg { font-size: 20px; padding: 6px 12px 5px; margin: 10px 0 4px; }
.kept { font: 500 14px/1 var(--ui); color: var(--ink-2); }

.empty { display: grid; justify-items: center; gap: 12px; padding: 48px 20px; background: #fff; border: 2px dashed var(--rule-strong); border-radius: 10px; text-align: center; }
.empty img { opacity: .5; }
.empty p { margin: 0; color: var(--ink-2); font-weight: 500; }

/* ---------- pager ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.pager-range { margin: 0; color: var(--ink-2); font-size: 14px; }
.pager-links { display: flex; flex-wrap: wrap; gap: 4px; }
.pg {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--rule-strong); border-radius: 6px; background: #fff;
  font: 800 18px/1 var(--display); text-decoration: none; color: var(--ink);
  transition: border-color .12s cubic-bezier(.2,.8,.2,1), background-color .12s cubic-bezier(.2,.8,.2,1);
}
.pg svg { width: 16px; height: 16px; }
.pg-step { font: 600 14px/1 var(--ui); }
a.pg:hover { border-color: var(--ink); }
.pg[aria-current] { background: var(--banner); border-color: var(--ink); }
.pg[aria-disabled] { color: #8a96a1; border-color: var(--rule); background: transparent; }

/* ---------- form ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--ink); text-decoration: underline; }
.form-title { margin: 0 0 20px; font: 800 clamp(44px, 7vw, 64px)/.95 var(--display); text-transform: uppercase; }
.catch-form { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: clamp(18px, 4vw, 28px); display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: 15px; }
.hint { font-weight: 500; color: var(--ink-2); font-size: 13px; }
input, select, textarea {
  font: 500 16px/1.4 var(--ui); color: var(--ink); width: 100%;
  min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: var(--board);
  transition: border-color .12s ease-out, background-color .12s ease-out;
}
input::placeholder, textarea::placeholder { color: #67737f; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(255, 204, 0, .6); }
input[type="file"] { padding: 9px; background: #fff; }
input[type="file"]::file-selector-button { font: 600 14px var(--ui); border: 1.5px solid var(--ink); border-radius: 4px; background: var(--board-2); padding: 6px 10px; margin-right: 12px; cursor: pointer; }
textarea { resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--ink); }
.has-error input, .has-error select { border-color: #b3261e; background: #fff6f5; }
.err { margin: 0; color: #b3261e; font-size: 14px; font-weight: 600; }
.form-error { margin: -4px 0 20px; padding: 12px 16px; border: 2px solid #b3261e; border-radius: var(--radius); background: #fff6f5; color: #8c1d18; font-weight: 600; }
.actions { display: flex; gap: 8px; align-items: center; padding-top: 4px; }

/* ---------- detail ---------- */
.leader-weight { margin: 0; display: flex; align-items: baseline; gap: 8px; line-height: .85; }
.leader-weight .num { font-size: clamp(88px, 12vw, 156px); }
.leader-weight .unit { font: 800 clamp(28px, 3.4vw, 44px)/1 var(--display); text-transform: uppercase; color: var(--ink-2); }
.detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: clamp(16px, 3vw, 28px); align-items: start; }
.detail-art { margin: 0; background: var(--board-2); border-radius: 6px; }
.detail-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.detail h1 { margin: 0 0 8px; font: 800 36px/1 var(--display); text-transform: uppercase; }
.detail-rank { margin: 8px 0 0; color: var(--ink-2); font-weight: 600; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; margin: 20px 0 0; border-top: 1px solid var(--rule); }
.facts div { display: contents; }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { font-weight: 600; color: var(--ink-2); }
.notes { margin: 20px 0 0; padding: 12px 16px; background: var(--board); border-radius: var(--radius); max-width: 60ch; }

.foot { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) 40px; color: var(--ink-2); font-size: 14px; }

/* ---------- signature: a new fish slides up the board into its rank ---------- */
tr.is-arriving { z-index: 2; }
tr.is-arriving td { background: var(--banner-wash); }
@keyframes settle { from { background-color: var(--banner); } to { background-color: transparent; } }
tr.has-arrived td { animation: settle 2.4s cubic-bezier(.2,.8,.2,1) .15s both; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .c-bait { display: none; }
}
@media (max-width: 720px) {
  .banner-inner { padding: 12px 16px; gap: 10px; }
  .wordmark { font-size: 28px; }
  .banner-season { display: none; }
  .btn { padding: 0 14px; }
  .page { padding: 18px 16px 40px; }
  .detail { grid-template-columns: 1fr; }
  .water { height: 360px; }
  .pager { justify-content: center; }
  .pager-range { width: 100%; text-align: center; }
  .catches thead { display: none; }
  .catches, .catches tbody { display: block; }
  .catches tr { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "rank fish w" "rank meta status"; gap: 2px 10px; padding: 12px 12px 12px 6px; border-top: 1px solid var(--rule); }
  .catches tbody tr:first-child { border-top: 0; }
  .catches td { padding: 0; border: 0; }
  .c-rank { grid-area: rank; align-self: center; width: auto; }
  .c-fish { grid-area: fish; min-width: 0; }
  .c-fish a { gap: 10px; }
  .c-fish img { width: 52px; height: 30px; }
  .c-fish span { white-space: normal; line-height: 1.25; }
  .c-fish .sp { display: none; }
  .c-w { grid-area: w; text-align: right; }
  .c-status { grid-area: status; text-align: right; width: auto; }
  .c-l, .c-bait { display: none; }
  .c-water, .c-date { grid-area: meta; font-size: 14px; color: var(--ink-2); font-weight: 500; padding-left: 62px; }
  .c-date { justify-self: start; padding-left: 0; display: none; }
  .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
