:root {
  --bg: #0c1420;
  --card: #131f2e;
  --card-edge: #1e3048;
  --text: #dce8f5;
  --dim: #7e93ab;
  --accent: #ffb340;
  --accent-dim: #b97f2a;
  --good: #3ddc84;
  --bad: #ff5d5d;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0 auto;
  max-width: 760px;
  padding: 16px 12px 40px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}

header { text-align: center; margin-bottom: 12px; }
h1 {
  margin: 0;
  font-size: 2.4rem;
  letter-spacing: -1px;
  color: var(--accent);
}
.masthead {
  display: flex; justify-content: center; align-items: center;
  gap: 18px; min-height: 64px;
}
.masthead h1 { white-space: nowrap; }
.masthead .flip { display: inline-block; transform: scaleX(-1); }
.masthead .fish svg { height: auto; }
.masthead .fish { position: relative; display: inline-block; }
.fish-acc {
  position: absolute; top: -15px; z-index: 2; line-height: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
  transform: rotate(-8deg);
}
.fish-acc.on-right { right: 4%; transform: rotate(8deg); }
.fish-acc.on-left { left: 4%; }
.fish { filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .5)); }
.fish.snook { animation: swim 5.5s ease-in-out infinite alternate; }
.fish.pompano { animation: swim 6.5s ease-in-out -3s infinite alternate; }
@keyframes swim {
  from { transform: translateY(-3px) rotate(-1.5deg); }
  to { transform: translateY(3px) rotate(1.5deg); }
}
.quip { margin: 6px 0 0; color: var(--dim); font-size: .9rem; transition: opacity .4s; min-height: 1.3em; }
.quip.fade-out { opacity: 0; }

h2 { font-size: 1.05rem; margin: 0 0 10px; color: var(--text); }
h2 .sub { color: var(--dim); font-weight: normal; font-size: .85rem; }

.inlet-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.inlet-toggle button {
  flex: 1; max-width: 200px;
  padding: 10px 0;
  font-size: 1.05rem; font-weight: 600;
  background: var(--card); color: var(--dim);
  border: 1px solid var(--card-edge); border-radius: 10px;
  cursor: pointer;
}
.inlet-toggle button.active {
  background: var(--accent); color: #14202e; border-color: var(--accent);
}

.inlet-search { position: relative; display: flex; gap: 6px; max-width: 420px; margin: 0 auto 10px; }
.inlet-search input {
  flex: 1; padding: 8px 12px; font-size: .95rem;
  background: var(--card); color: var(--text);
  border: 1px solid var(--card-edge); border-radius: 10px;
}
.inlet-search input::placeholder { color: var(--dim); }
.inlet-search button {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 10px; padding: 0 12px; cursor: pointer; font-size: 1rem;
}
.search-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 10px; margin-top: 4px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.search-results div { padding: 8px 12px; cursor: pointer; font-size: .92rem; }
.search-results div:hover { background: var(--bg); }
.search-results .st { color: var(--dim); margin-left: 6px; }

.mode-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.mode-toggle button {
  padding: 6px 18px; font-size: .92rem; font-weight: 600;
  background: var(--card); color: var(--dim);
  border: 1px solid var(--card-edge); border-radius: 99px; cursor: pointer;
}
.mode-toggle button.active { background: #1d4e6e; color: var(--text); border-color: #2d6e96; }

#seaState table { margin-top: 8px; }
#seaState a { color: var(--accent); text-decoration: none; }
#seaState a:hover { text-decoration: underline; }
#streamLine b { color: var(--accent); }
.bait-board .off-season { opacity: .55; }

.date-nav {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.date-nav button {
  background: var(--card); color: var(--text);
  border: 1px solid var(--card-edge); border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font-size: .95rem;
}
#dateLabel { font-weight: 600; min-width: 150px; text-align: center; }

.cams { text-align: center; margin: -4px 0 12px; font-size: .9rem; color: var(--dim); }
.cams .linkgroup { display: inline-block; white-space: nowrap; margin: 0 10px 2px; }
.cams a { color: var(--accent); text-decoration: none; margin: 0 6px; }
.cams a:hover { text-decoration: underline; }

.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.error {
  background: #3a1820; border: 1px solid var(--bad); color: #ffb9b9;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}

/* now card */
.now-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.now-score {
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  min-width: 110px; text-align: center;
}
.now-score small { display: block; font-size: .85rem; font-weight: 600; margin-top: 4px; }
.now-facts { flex: 1; min-width: 220px; font-size: .95rem; }
.now-facts div { margin: 2px 0; }
.now-facts .k { color: var(--dim); }

/* species lane: who should show up, and when */
.species-lane { position: relative; min-height: 40px; margin: 0 0 2px; }
.species-lane:empty { display: none; }
.species-lane .sp {
  position: absolute; transform: translateX(-50%);
  cursor: default; line-height: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5));
}
.species-lane .sp:hover { z-index: 2; transform: translateX(-50%) scale(1.35); }

.lane-info { font-size: .85rem; color: var(--dim); margin-top: 6px; min-height: 1.3em; }
.sp-strip {
  display: flex; gap: 1px; height: 13px; max-width: 460px;
  border-radius: 4px; overflow: hidden; margin-top: 5px;
}
.sp-strip i { flex: 1; }
.lane-info b { color: var(--accent); }
.lane-info .menu { color: var(--text); }

/* Dave's Fish for Dinner */
.daves-bet {
  margin-top: 12px; padding: 10px 12px;
  border: 1px solid var(--accent-dim); border-radius: 10px;
  background: rgba(255, 179, 64, .06);
  font-size: .95rem;
}
.daves-bet:empty { display: none; }
.daves-bet b { color: var(--accent); }
.daves-bet a { color: var(--accent); }

/* bait board */
.bait-board { margin-top: 12px; border-top: 1px solid var(--card-edge); padding-top: 10px; font-size: .92rem; }
.bait-board h3 { font-size: .95rem; margin: 0 0 6px; color: var(--accent); }
.bait-board .bait { margin: 4px 0; }
.bait-board .bicon svg { vertical-align: middle; margin-right: 6px; }
.bait-board .how { color: var(--dim); }

/* heatmap */
.heatmap { display: flex; gap: 1px; height: 44px; border-radius: 6px; overflow: hidden; position: relative; }
.heatmap .tide-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
}
.heatmap .cell { flex: 1; position: relative; }
.heatmap .cell.now::after {
  content: ""; position: absolute; inset: 0;
  border-left: 2px solid #fff;
}
.heatmap-hours {
  display: flex; justify-content: space-between;
  color: var(--dim); font-size: .75rem; margin-top: 3px;
}
.heatmap-hours span { flex: 1; }

.windows { margin-top: 10px; font-size: .95rem; }
.windows .win { margin: 4px 0; }
.windows .win b { color: var(--accent); }
.windows .why { color: var(--dim); font-size: .85rem; }

/* tide */
#tideChart svg { width: 100%; height: auto; display: block; }
.tide-list { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: .92rem; }
.tide-list .ev b { color: var(--accent); }
.tide-list .ev span { color: var(--dim); }

/* solunar + weather tables */
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
td, th { padding: 4px 6px; text-align: left; }
th { color: var(--dim); font-weight: 600; }
tr + tr td { border-top: 1px solid var(--card-edge); }
.pill {
  display: inline-block; padding: 1px 8px; border-radius: 99px;
  font-size: .8rem; font-weight: 600;
}
.pill.major { background: var(--accent); color: #14202e; }
.pill.minor { background: var(--accent-dim); color: #14202e; }
.pill.open { background: var(--good); color: #0d2417; }
.pill.closed { background: var(--bad); color: #2e0d0d; }
.pill.cr { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.pill.frank { background: linear-gradient(100deg, #d23636 45%, #2d5bd1 55%); color: #fff; }

.catfish-row td { transition: opacity .4s; color: var(--dim); font-style: italic; }
.catfish-row.fade-out td { opacity: 0; }

.fine-print { color: var(--dim); font-size: .8rem; margin: 8px 0 0; }
.fine-print a, #regsInfo a { color: var(--accent); text-decoration: none; }
#regsInfo p { margin: 4px 0; }
.fine-print a:hover, #regsInfo a:hover { text-decoration: underline; }

.bait-board .eaters svg { width: 20px; height: 12px; vertical-align: middle; margin-left: 1px; }
.bait-board .eaters { white-space: nowrap; color: var(--dim); }
.bait-board:empty { display: none; }
.bait-watch { margin: 8px 0 2px; font-size: .9rem; color: var(--text); }
.bait-watch b { color: var(--accent); }

.chip {
  display: inline-block; background: var(--bg); border: 1px solid var(--card-edge);
  border-radius: 99px; padding: 1px 9px; margin: 2px 4px 2px 0; font-size: .85rem;
}
.bait-board .via { color: var(--accent); text-decoration: none; font-size: .85rem; margin-left: 4px; }
.bait-board .via:hover { text-decoration: underline; }

footer { text-align: center; color: var(--dim); font-size: .8rem; margin-top: 24px; }
footer a { color: var(--dim); }

/* ad slots stay invisible until real ad code lands in them */
.ad-slot { margin: 0 0 14px; text-align: center; }
.ad-slot:not(:has(ins, iframe, script)) { display: none; }

/* phones — this is where the site actually lives */
@media (max-width: 540px) {
  h1 { font-size: 1.9rem; }
  .masthead { gap: 8px; }
  .masthead .fish svg { max-width: 21vw; }
  .inlet-toggle button { font-size: .92rem; padding: 9px 0; }
  td, th { padding: 3px 4px; font-size: .85rem; }
  .card { padding: 11px; }
  .species-lane .sp svg { width: 28px; }
  .now-score { font-size: 2.1rem; min-width: 86px; }
}
