/* ── Variables ── */
:root {
  --bg:        #020c14;
  --bg2:       rgba(5, 16, 28, 0.88);
  --bg3:       rgba(8, 24, 40, 0.76);
  --border:    rgba(28, 48, 64, 0.85);
  --border2:   rgba(40, 68, 90, 0.85);
  --accent:    #4a9e8a;
  --accent2:   #3a8070;
  --accent-lo: rgba(74,158,138,.14);
  --text:      #ddd8d0;
  --text2:     #9a9890;
  --text3:     #5a5855;
  --warn:      #c8843a;
  --warn-lo:   rgba(200,132,58,.12);
  --radius:    10px;
  --radius-lg: 16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  /* Deep water gradient: lighter at top (sunlight), darkest at bottom (depth) */
  background:
    linear-gradient(to bottom,
      #0a3248 0%,    /* near-surface — scattered sunlight */
      #062438 18%,   /* mid-water    */
      #031828 40%,   /* deeper       */
      #020e1c 68%,   /* dark deep    */
      #010810 100%   /* lake floor   */
    );
  background-attachment: fixed;
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img { max-width: 100%; }

/* ── Typography ── */
.cinzel { font-family: 'Cinzel', serif; }
.lora   { font-family: 'Lora', serif; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-family: 'Cinzel', serif; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 600; }
h2 { font-family: 'Cinzel', serif; font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 600; }
h3 { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; }
p  { font-family: 'Lora', serif; line-height: 1.75; }

/* .init-loader styles moved to scene section at bottom of file */

/* ── Page shell ── */
.page { max-width: 860px; margin: 0 auto; padding: 0 20px 80px; position: relative; z-index: 10; }

/* ── Nav bar ── */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 60, 80, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 52px;
}
.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .03em;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 8px;
}
.nav-logo strong { color: var(--accent); }
.nav-back {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text2);
  font-size: .85rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-back:hover { color: var(--text); background: var(--bg3); }
.nav-pills {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text2);
  transition: color .15s, background .15s;
}
.nav-pill:hover { color: var(--text); background: var(--bg3); }
.nav-pill.active { color: var(--accent); background: var(--accent-lo); }

/* ── Hero ── */
.home-hero {
  text-align: center;
  padding: 64px 0 40px;
}
.logo-wordmark {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text);
}
.logo-wordmark strong { color: var(--accent); }
.logo-sub {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 400;
  color: var(--text2);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 6px;
}
.home-tagline {
  font-family: 'Lora', serif;
  color: var(--text2);
  font-size: 1.05rem;
  margin-top: 16px;
  font-style: italic;
}

/* ── Search ── */
.search-section { margin-bottom: 40px; position: relative; }
.search-wrap { position: relative; }
.search-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 28px;
  padding: 14px 48px 14px 20px;
  font-size: 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s;
  outline: none;
}
.search-input::placeholder { color: var(--text3); }
.search-input:focus { border-color: var(--accent); }
.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text3);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.search-results.hidden { display: none; }
.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s;
}
.search-result-item:hover { background: var(--bg3); }
.search-result-item + .search-result-item { border-top: 1px solid var(--border); }
.sri-name { font-weight: 500; }
.sri-loc { font-size: .82rem; color: var(--text2); }

/* Live "search all of Canada" affordance + states */
.search-map-cta {
  padding: 12px 16px;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(74,158,138,0.08);
  border-top: 1px solid var(--border);
  transition: background .15s;
}
.search-map-cta:hover { background: rgba(74,158,138,0.16); }
.search-map-header {
  padding: 9px 16px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text3);
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.search-empty,
.search-loading {
  padding: 14px 16px;
  font-size: .84rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Section ── */
.section { margin-bottom: 40px; }
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
}

/* ── Lake pills ── */
.lake-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lake-pill {
  padding: 8px 16px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text2);
  transition: all .15s;
}
.lake-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lo);
}
.lake-pill--gen { border-style: dashed; }
.lake-pill-spark { font-size: .8em; opacity: .85; }
.lakes-search-hint { margin-top: 14px; font-size: .85rem; color: var(--text2); }
.link-btn {
  background: none; border: none; padding: 0;
  color: var(--accent); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: underline;
}

/* ── Home value strip ── */
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 6px 0 34px;
}
.value-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.value-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.value-text { display: flex; flex-direction: column; gap: 3px; }
.value-text strong { font-size: .92rem; color: var(--text); }
.value-text span { font-size: .8rem; color: var(--text2); line-height: 1.45; }
@media (max-width: 720px) { .value-strip { grid-template-columns: 1fr; } }

/* ── Site footer ── */
.site-footer {
  position: relative;
  z-index: 10;
  margin-top: 52px;
  padding: 34px 24px 24px;
  border-top: 1px solid var(--border);
  background: rgba(3, 12, 20, 0.55);
  backdrop-filter: blur(10px);
}
.footer-top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto 24px;
}
.footer-logo { font-family: 'Cinzel', serif; font-size: 1.25rem; color: var(--text2); }
.footer-logo strong { color: var(--accent); }
.footer-tagline { font-size: .85rem; color: var(--text3); margin-top: 6px; font-style: italic; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); font-weight: 700; margin-bottom: 2px; }
.footer-col button { background: none; border: none; padding: 0; text-align: left; color: var(--text2); font: inherit; font-size: .85rem; cursor: pointer; }
.footer-col button:hover { color: var(--accent); }
.footer-sources { max-width: 1080px; margin: 0 auto 16px; font-size: .76rem; color: var(--text3); line-height: 1.6; }
.footer-bottom {
  max-width: 1080px; margin: 0 auto; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .76rem; color: var(--text3);
}

/* ── About page ── */
.about-page { max-width: 760px; }
.about-hero { padding: 26px 0 10px; }
.about-lead { font-size: 1.05rem; line-height: 1.65; color: var(--text2); margin-top: 10px; }
.about-lead em { color: var(--accent); font-style: italic; }
.about-section { margin: 26px 0; }
.about-section > h2 { font-size: 1.08rem; margin-bottom: 8px; }
.about-section p { color: var(--text2); line-height: 1.7; }
.about-sources ul { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 9px; }
.about-sources li { font-size: .9rem; color: var(--text2); padding-left: 18px; position: relative; line-height: 1.5; }
.about-sources li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.about-sources li strong { color: var(--text); }
.about-honest {
  background: var(--bg2); border: 1px solid var(--border);
  border-left: 3px solid var(--warn); border-radius: var(--radius);
  padding: 16px 18px;
}
.about-honest > h2 { color: var(--warn); }
.about-cta { margin: 34px 0 8px; text-align: center; }
.about-cta-btn {
  padding: 12px 24px; border-radius: var(--radius);
  border: 1px solid var(--accent); background: rgba(74,158,138,0.14);
  color: var(--accent); font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.about-cta-btn:hover { background: rgba(74,158,138,0.24); }

/* ── Gear CTA on lake pages (eye-catching) ── */
.gear-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  margin: 4px 0 24px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: #eafaf4;
  border: 1px solid rgba(74,158,138,0.55);
  background:
    linear-gradient(135deg, rgba(74,158,138,0.28), rgba(58,128,112,0.14)),
    var(--bg2);
  box-shadow: 0 6px 22px rgba(74,158,138,0.18);
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.gear-cta:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(74,158,138,0.28);
}
.gear-cta-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(74,158,138,0.5));
}
.gear-cta-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.gear-cta-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}
.gear-cta-sub { font-size: .84rem; color: rgba(234,250,244,0.8); line-height: 1.4; }
.gear-cta-arrow { font-size: 1.4rem; color: var(--accent); flex-shrink: 0; transition: transform .15s; }
.gear-cta:hover .gear-cta-arrow { transform: translateX(4px); }

/* ── Live conditions (weather + solunar) ── */
.cond-section {
  margin: 4px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg2);
  backdrop-filter: blur(10px);
}
.cond-head {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cinzel', serif; font-size: .95rem; font-weight: 600;
  color: var(--text); margin-bottom: 14px;
}
.cond-live {
  font-family: 'DM Sans', sans-serif; font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; color: #4ad07a;
  animation: cond-pulse 2s ease-in-out infinite;
}
@keyframes cond-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.cond-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.cond-cell {
  text-align: center; padding: 10px 6px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
}
.cond-icon { font-size: 1.2rem; margin-bottom: 4px; }
.cond-val { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.cond-unit { font-size: .72rem; font-weight: 500; color: var(--text2); }
.cond-lbl { font-size: .68rem; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.cond-read {
  font-size: .86rem; line-height: 1.55; color: var(--text2);
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* Cross-check badge on corroborated species */
.species-verified { color: #4ad07a; font-size: .72rem; font-weight: 700; letter-spacing: -1px; }

/* ── Every fish in this water (full species list) ── */
.all-species-section { margin: 26px 0; }
.all-species-section h2 { display: flex; align-items: center; gap: 10px; }
.all-species-count {
  font-family: 'DM Sans', sans-serif; font-size: .8rem; font-weight: 700;
  color: var(--accent); background: rgba(74,158,138,0.14);
  border: 1px solid rgba(74,158,138,0.3); padding: 2px 10px; border-radius: 20px;
}
.all-species-sub { font-size: .84rem; color: var(--text2); margin: 4px 0 12px; line-height: 1.5; }
.all-species-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.all-species-chip {
  font-size: .82rem; color: var(--text2);
  background: var(--bg2); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 20px;
}

/* ── Data & sources — collapsed provenance panel (reuses details styling) ── */
.sources-details {
  margin: 12px 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  overflow: hidden;
}
.sources-details > summary {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 16px; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--text2);
  list-style: none; user-select: none;
}
.sources-details > summary::-webkit-details-marker { display: none; }
.sources-details > summary::after { content: '▾'; margin-left: auto; color: var(--text3); transition: transform .2s; }
.sources-details[open] > summary::after { transform: rotate(180deg); }
.sources-details[open] > summary { border-bottom: 1px solid var(--border); }
.sources-icon { font-size: 1rem; }
.sources-hint { margin-left: 6px; font-size: .74rem; font-weight: 500; color: var(--text3); }
.sources-body { padding: 6px 16px 12px; }
.source-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: .84rem;
}
.source-row:last-child { border-bottom: none; }
.source-key { color: var(--text3); flex-shrink: 0; }
.source-val { color: var(--text2); text-align: right; }

/* ── Knots page ── */
.knots-list { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 24px; }
.knot-card {
  padding: 16px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.knot-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.knot-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: rgba(74,158,138,0.1);
  border: 1px solid rgba(74,158,138,0.3);
  border-radius: 10px;
}
.knot-icon svg { width: 26px; height: 26px; }
.knot-headtext { flex: 1; min-width: 0; }
.knot-name { font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.knot-cat {
  display: inline-block; margin-top: 3px;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: rgba(74,158,138,0.12);
  border: 1px solid rgba(74,158,138,0.28); padding: 2px 8px; border-radius: 20px;
}
.knot-num { font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--text3); font-weight: 700; }
.knot-best { font-size: .86rem; color: var(--text2); line-height: 1.5; margin-bottom: 10px; }
.knot-best strong { color: var(--accent); }
.knot-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.knot-steps li { font-size: .88rem; color: var(--text2); line-height: 1.5; padding-left: 4px; }
.knot-steps li::marker { color: var(--accent); font-weight: 700; }
.knots-tip {
  padding: 14px 16px; margin-bottom: 8px;
  font-size: .86rem; line-height: 1.6; color: var(--text2);
  background: var(--bg3); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.knots-tip strong { color: var(--text); }
.knots-tip em { color: var(--accent); font-style: normal; font-weight: 600; }

/* Learn — regional example note */
.learn-example-note {
  margin-top: 10px;
  padding: 10px 14px;
  font-size: .86rem;
  line-height: 1.55;
  background: var(--bg3);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--text2);
}
.learn-example-note strong { color: var(--accent); }

/* ── Learn cards ── */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.learn-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.learn-card:hover {
  border-color: var(--accent);
  background: var(--bg3);
  transform: translateY(-2px);
}
.learn-card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.learn-card-title {
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.learn-card-desc { font-size: .8rem; color: var(--text2); line-height: 1.4; }

/* Featured card — quietly stands out among its siblings */
.learn-card--featured {
  position: relative;
  border-color: rgba(74,158,138,0.4);
  background:
    radial-gradient(circle at 100% 0%, rgba(74,158,138,0.12), transparent 62%),
    var(--bg2);
  box-shadow: 0 0 0 1px rgba(74,158,138,0.08);
}
.learn-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 26px rgba(74,158,138,0.16);
}
.learn-card--featured .learn-card-icon {
  filter: drop-shadow(0 0 10px rgba(74,158,138,0.35));
}
.learn-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74,158,138,0.14);
  border: 1px solid rgba(74,158,138,0.3);
  padding: 2px 8px;
  border-radius: 20px;
}
.learn-card-tag--beta {
  color: var(--warn);
  background: var(--warn-lo);
  border-color: rgba(200,132,58,0.35);
}

/* ── Provenance badge + generation states (pipeline lakes) ── */
.prov-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--accent);
  background: rgba(74,158,138,0.12);
  border: 1px solid rgba(74,158,138,0.3);
  padding: 3px 10px;
  border-radius: 20px;
}
.data-level-banner {
  margin: 4px 0 16px;
  padding: 12px 16px;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
}
.data-level-banner strong { color: var(--warn); }
.data-level-banner--enriched { border-left-color: var(--accent); }
.data-level-banner--enriched strong { color: var(--accent); }
.species-row--static { cursor: default; }
.species-row--static:hover { background: var(--bg2); }
.gen-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 20px;
  padding: 12px 16px;
  font-size: .86rem;
  color: var(--text2);
  background: rgba(74,158,138,0.08);
  border: 1px solid rgba(74,158,138,0.25);
  border-radius: var(--radius);
}
.gen-spinner {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(74,158,138,0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gen-spin .8s linear infinite;
}
@keyframes gen-spin { to { transform: rotate(360deg); } }
.gen-error {
  margin: 4px 0 20px;
  padding: 12px 16px;
  font-size: .84rem;
  color: var(--warn);
  background: var(--warn-lo);
  border: 1px solid rgba(200,132,58,0.35);
  border-radius: var(--radius);
}
.gen-note {
  margin: 4px 0 20px;
  padding: 12px 16px;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

/* ── Content Lab page ── */
.lab-hero { padding: 32px 0 20px; }
.lab-badge {
  display: inline-block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--warn);
  background: var(--warn-lo);
  border: 1px solid rgba(200,132,58,0.35);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.lab-sub { color: var(--text2); line-height: 1.6; font-size: .92rem; max-width: 62ch; }
.lab-compare-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin: 8px 0 28px;
  background: var(--bg2);
  border: 1px solid rgba(74,158,138,0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.lab-compare-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 3px;
}
.lab-compare-name { font-size: .92rem; color: var(--text); font-weight: 600; }
.lab-compare-btn {
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: rgba(74,158,138,0.14);
  color: var(--accent);
  font-size: .86rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.lab-compare-btn:hover { background: rgba(74,158,138,0.24); }
.lab-section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cinzel', serif; font-size: .9rem; font-weight: 600;
  color: var(--text); margin-bottom: 12px;
}
.lab-count {
  font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 500;
  color: var(--text3); background: var(--bg3);
  padding: 2px 8px; border-radius: 20px;
}
.lab-lakes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.lab-lake-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  backdrop-filter: blur(10px);
}
.lab-lake-card:hover { border-color: rgba(74,158,138,0.4); transform: translateX(2px); }
.lab-lake-spark { font-size: 1.1rem; flex-shrink: 0; }
.lab-lake-info { flex: 1; min-width: 0; }
.lab-lake-name { font-weight: 600; font-size: .92rem; color: var(--text); }
.lab-lake-loc  { font-size: .78rem; color: var(--text2); }
.lab-lake-arrow { color: var(--text3); font-size: 1.1rem; }
.lab-note {
  padding: 14px 16px;
  font-size: .82rem; line-height: 1.6; color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lab-note strong { color: var(--text); }

/* ── Lake Intelligence card (gear recommender) ── */
.gear-intel-card {
  margin: 4px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(74,158,138,0.35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(74,158,138,0.1), transparent 60%),
    var(--bg2);
  backdrop-filter: blur(10px);
}
.gear-intel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Cinzel', serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.gear-intel-icon-lg { font-size: 1.1rem; }
.gear-intel-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text3);
}
.gear-intel-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--text2);
}
.gear-intel-row:first-of-type { border-top: none; }
.gear-intel-row strong { color: var(--text); }
.gear-intel-icon {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  color: var(--accent);
}

/* ── Recommended lures (with reasoning) — generated lake pages ── */
.lure-logic-section { margin: 28px 0; }
.lure-logic-section h2 { margin-bottom: 4px; }
.lure-logic-sub { font-size: .84rem; color: var(--text2); margin-bottom: 14px; }
.lure-logic-card {
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.lure-logic-name {
  font-weight: 600;
  font-size: .94rem;
  color: var(--text);
  margin-bottom: 5px;
}
.lure-logic-why {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--text2);
}

/* ── Regulations — collapsed near the bottom, low-key ── */
.regs-details {
  margin: 24px 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  overflow: hidden;
}
.regs-details > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text2);
  list-style: none;
  user-select: none;
}
.regs-details > summary::-webkit-details-marker { display: none; }
.regs-details > summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--text3);
  transition: transform .2s;
}
.regs-details[open] > summary::after { transform: rotate(180deg); }
.regs-details[open] > summary { border-bottom: 1px solid var(--border); }
.regs-summary-icon { font-size: 1rem; }
.regs-summary-hint {
  margin-left: 6px;
  font-size: .74rem;
  font-weight: 500;
  color: var(--text3);
}
.regs-details-body { padding: 14px 16px; }
.regs-official-link {
  display: inline-block;
  margin-top: 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.regs-official-link:hover { text-decoration: underline; }

/* ── Special regulations (real, from import) ── */
.special-regs-section { margin: 28px 0; }
.special-regs-section h2 { margin-bottom: 8px; }
.special-regs-banner {
  font-size: .8rem;
  color: var(--warn);
  background: var(--warn-lo);
  border: 1px solid rgba(200,132,58,0.3);
  border-radius: var(--radius);
  padding: 9px 13px;
  margin-bottom: 12px;
}
.special-reg-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.special-reg-row:last-child { border-bottom: none; }
.special-reg-species { font-weight: 600; font-size: .84rem; color: var(--accent); }
.special-reg-text { font-size: .84rem; line-height: 1.5; color: var(--text2); }
@media (max-width: 520px) {
  .special-reg-row { grid-template-columns: 1fr; gap: 3px; }
}

/* ── Lake page ── */
.lake-header { padding: 32px 0 28px; }
.lake-type-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lo);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.lake-location {
  font-size: .88rem;
  color: var(--text2);
  margin-top: 6px;
  font-style: italic;
}
.lake-tagline {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--text2);
  margin-top: 10px;
  line-height: 1.65;
}
.best-seasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.season-tag {
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text2);
}

.lake-warning {
  background: var(--warn-lo);
  border: 1px solid var(--warn);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--warn);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Quiet regulation note — sits at the bottom of lake pages */
.lake-reg-note {
  margin-top: 32px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(8, 24, 40, 0.6);
  border: 1px solid rgba(90, 110, 120, 0.35);
  border-left: 3px solid rgba(160, 180, 170, 0.4);
  border-radius: var(--radius);
  font-size: .82rem;
  color: var(--text3);
  line-height: 1.6;
  backdrop-filter: blur(8px);
}

/* ── Favourite button ── */
.fav-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text2);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  backdrop-filter: blur(8px);
}
.fav-btn:hover { border-color: #c8a84b; color: #c8a84b; }
.fav-btn--active {
  border-color: #c8a84b;
  background: rgba(200,168,75,0.12);
  color: #c8a84b;
}

/* ── My Saved Lakes (home page) ── */
.my-lakes-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.my-lake-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
  backdrop-filter: blur(8px);
}
.my-lake-card:hover { border-color: rgba(200,168,75,0.6); background: rgba(200,168,75,0.06); }
.my-lake-star { color: #c8a84b; font-size: 1rem; flex-shrink: 0; }
.my-lake-info { flex: 1; }
.my-lake-name { font-weight: 600; font-size: .95rem; }
.my-lake-loc  { font-size: .78rem; color: var(--text3); margin-top: 2px; }
.my-lake-arrow { color: var(--text3); font-size: .9rem; }
/* Recently-viewed cards use the accent (teal) instead of the saved gold */
.my-lake-card--recent { border-color: rgba(74,158,138,0.25); }
.my-lake-card--recent:hover { border-color: rgba(74,158,138,0.6); background: var(--accent-lo); }
.my-lake-card--recent .my-lake-star { color: var(--accent); font-size: .95rem; }

/* "Lakes near me" button under the search box */
.nearby-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 18px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(74,158,138,0.08);
  border: 1px solid rgba(74,158,138,0.4);
  border-radius: 22px;
  cursor: pointer;
  transition: background .15s;
}
.nearby-btn:hover { background: rgba(74,158,138,0.18); }

/* ── Regulations table ── */
.regs-section { margin-bottom: 32px; }
.regs-section h2 { margin-bottom: 10px; }
.regs-banner {
  padding: 10px 14px;
  margin-bottom: 12px;
  background: rgba(220,160,60,0.12);
  border: 1px solid rgba(220,160,60,0.35);
  border-radius: var(--radius);
  font-size: .85rem;
  color: #d4a84a;
  line-height: 1.5;
}
.regs-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.regs-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.6fr;
  gap: 0;
  background: var(--bg3);
  padding: 8px 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text3);
}
.regs-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.6fr;
  gap: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--text2);
  align-items: start;
}
.regs-row:nth-child(even) { background: rgba(255,255,255,0.015); }
.regs-species { font-weight: 600; color: var(--text); }
.regs-notes { color: var(--text3); font-size: .78rem; }
.regs-disclaimer {
  font-size: .76rem;
  color: var(--text3);
  margin-top: 8px;
  line-height: 1.5;
  font-style: italic;
}
@media (max-width: 520px) {
  .regs-header, .regs-row { grid-template-columns: 1.2fr 0.8fr 1.1fr; }
  .regs-header > :last-child,
  .regs-row > :last-child { display: none; }
}

/* ── Lake hero photo ── */
.lake-hero-wrap {
  position: relative;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}
.lake-hero-img {
  width: 100%;
  aspect-ratio: 2 / 1;      /* same shape as the image itself → never cropped */
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  border: 1px solid var(--border);
  background: var(--bg3);
}
.lake-hero-attr {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: .6rem;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.4);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}
.lake-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 24px;
}
.lake-map-links a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(74,158,138,0.4);
  border-radius: 20px;
  background: rgba(74,158,138,0.08);
  transition: background .15s;
}
.lake-map-links a:hover { background: rgba(74,158,138,0.18); }
/* Share button sits in the same row as the map links */
.lake-share-btn {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid rgba(74,158,138,0.4);
  border-radius: 20px;
  background: rgba(74,158,138,0.08);
  cursor: pointer;
  transition: background .15s;
}
.lake-share-btn:hover { background: rgba(74,158,138,0.18); }

/* ── Units toggle (ft ⇄ m) above the at-a-glance grid ── */
.basics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.basics-head-title {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text3);
}
.units-toggle {
  display: inline-flex;
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.units-opt {
  padding: 4px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text3);
  background: var(--bg2);
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s;
}
.units-opt--on { color: #fff; background: var(--accent); }

/* ── Ask Wise Guide button ── */
.ask-lake-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  margin: 32px 0;
  background: linear-gradient(135deg, rgba(74,158,138,0.18) 0%, rgba(74,158,138,0.08) 100%);
  border: 1px solid rgba(74,158,138,0.4);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s;
  backdrop-filter: blur(8px);
}
.ask-lake-btn:hover {
  background: linear-gradient(135deg, rgba(74,158,138,0.28) 0%, rgba(74,158,138,0.14) 100%);
  border-color: var(--accent);
}
.ask-lake-btn-icon { font-size: 1.4rem; flex-shrink: 0; }
.ask-lake-btn-text { display: flex; flex-direction: column; gap: 2px; }
.ask-lake-btn-sub { font-size: .78rem; font-weight: 400; color: var(--text2); }

/* ── Basics grid ── */
.basics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}
.basic-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.basic-icon { font-size: 1.2rem; margin-bottom: 6px; }
.basic-label { font-size: .72rem; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.basic-value { font-size: 1rem; font-weight: 600; color: var(--text); }
.basic-note { font-size: .75rem; color: var(--text2); margin-top: 2px; }

/* ── Overview ── */
.overview-section { margin-bottom: 32px; }
.overview-section h2 { margin-bottom: 14px; }
.overview-section p { color: var(--text2); margin-bottom: 12px; }
.overview-section p:last-child { margin-bottom: 0; }

/* ── Species list ── */
.lake-species-list { margin-bottom: 32px; }
.lake-species-list h2 { margin-bottom: 14px; }
.species-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s;
}
.species-row:hover { border-color: var(--border2); }
.species-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.species-row-name { font-weight: 500; flex: 1; }
.species-row-role { font-size: .8rem; color: var(--text2); }

/* ── Approach cards ── */
.approach-section { margin-bottom: 32px; }
.approach-section h2 { margin-bottom: 14px; }
.approach-cards { display: grid; gap: 10px; }
.approach-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.approach-num {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.approach-title { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.approach-text { font-family: 'Lora', serif; font-size: .88rem; color: var(--text2); line-height: 1.65; }

/* ── Nearby ── */
.nearby-section { margin-bottom: 32px; }
.nearby-section h2 { margin-bottom: 14px; }
.nearby-pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Species browser ── */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-pill {
  padding: 7px 14px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text2);
  transition: all .15s;
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active { background: var(--accent-lo); border-color: var(--accent); color: var(--accent); }

.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.species-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.species-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.species-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--bg3);
  display: block;
}
.species-card-img-placeholder {
  width: 100%;
  height: 140px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.species-card-body { padding: 14px; }
.species-card-name { font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
.species-card-latin { font-size: .75rem; color: var(--text2); font-style: italic; margin-bottom: 8px; }
.species-card-desc { font-size: .8rem; color: var(--text2); line-height: 1.5; }
.species-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.species-tag {
  font-size: .68rem;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--bg3);
  color: var(--text3);
}

/* ── Species detail ── */
.species-hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.species-hero-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
}
.species-hero-latin { font-style: italic; color: var(--text2); margin-top: 4px; }
.species-hero-family { font-size: .82rem; color: var(--text3); margin-top: 2px; }
.species-hero-desc {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--text2);
  margin-top: 14px;
  line-height: 1.7;
  font-style: italic;
}

.species-hero-fig { margin: 20px 0 0; position: relative; }
.species-hero-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.species-hero-credit {
  font-size: .68rem;
  color: var(--text3);
  text-align: right;
  margin-top: 5px;
}
.species-hero-credit a { color: var(--text2); }

.species-section { margin-bottom: 28px; }
.species-section h2 { margin-bottom: 12px; }
.id-list { list-style: none; display: grid; gap: 8px; }
.id-list li {
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.id-list li::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.technique-list { list-style: none; display: grid; gap: 8px; }
.technique-list li {
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text2);
}

.lake-context-box {
  background: var(--accent-lo);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: .88rem;
  line-height: 1.6;
}
.lake-context-box strong { color: var(--accent); }

/* ── Activity bar ── */
.activity-bar-row {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.activity-bar-item { display: flex; align-items: center; gap: 10px; }
.activity-bar-label { font-size: .8rem; color: var(--text2); width: 100px; flex-shrink: 0; }
.activity-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.activity-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width .4s ease;
}
.activity-bar-val { font-size: .75rem; color: var(--text3); width: 24px; text-align: right; }

/* ── Seasonal page ── */
.season-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.season-tabs::-webkit-scrollbar { display: none; }
.season-tab {
  padding: 8px 18px;
  border-radius: 22px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.season-tab:hover { border-color: var(--accent); color: var(--accent); }
.season-tab.active { background: var(--accent); border-color: var(--accent); color: #07090a; font-weight: 600; }

.season-headline {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text2);
  margin-bottom: 8px;
}
.season-months {
  font-size: .8rem;
  color: var(--text3);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.season-desc {
  font-family: 'Lora', serif;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 24px;
}

.conditions-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.cond-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.cond-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); margin-bottom: 4px; }
.cond-value { font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.cond-note { font-size: .75rem; color: var(--text2); }

.tips-list { list-style: none; display: grid; gap: 8px; margin-bottom: 28px; }
.tips-list li {
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text2);
  line-height: 1.5;
  display: flex;
  gap: 10px;
}
.tips-list li::before { content: '✓'; color: var(--accent); flex-shrink: 0; font-weight: 700; }

.lake-picks { display: grid; gap: 10px; margin-bottom: 28px; }
.lake-pick-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.lake-pick-card:hover { border-color: var(--accent); }
.lake-pick-name { font-weight: 600; margin-bottom: 4px; }
.lake-pick-reason { font-size: .82rem; color: var(--text2); line-height: 1.4; }
.lake-pick-arrow { color: var(--text3); flex-shrink: 0; margin-top: 2px; }

/* ── Learn page ── */
.learn-steps { display: grid; gap: 20px; }
.learn-step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.learn-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-lo);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-title { font-weight: 600; font-size: 1rem; }
.step-body { padding: 0 20px 18px; }
.step-body p { font-family: 'Lora', serif; color: var(--text2); font-size: .9rem; line-height: 1.7; margin-bottom: 10px; }
.step-body ul { padding-left: 18px; color: var(--text2); font-size: .88rem; line-height: 1.7; }
.step-svg { padding: 0 20px 20px; }
.step-svg svg { width: 100%; border-radius: 8px; }

/* ── SVG diagram styles ── */
.diagram { background: var(--bg3); border-radius: 8px; }
.diagram text { font-family: 'DM Sans', sans-serif; }

/* ── Learn-lake page ── */
.lake-zones { margin-top: 20px; }
.zone-info {
  margin-top: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-height: 80px;
  transition: border-color .2s;
}
.zone-info.active { border-color: var(--accent); }
.zone-info-title { font-weight: 600; margin-bottom: 6px; color: var(--accent); }
.zone-info-text { font-family: 'Lora', serif; font-size: .88rem; color: var(--text2); line-height: 1.65; }
.zone-info-default { color: var(--text3); font-size: .88rem; font-style: italic; }

.zone-hit { fill: transparent; cursor: pointer; }
.zone-hit:hover { fill: rgba(74,158,138,.08); }
.zone-hit.selected { fill: rgba(74,158,138,.14); }

/* ── Lake quick-actions bar ── */
.lake-quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.lake-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(74,158,138,0.45);
  background: rgba(74,158,138,0.12);
  color: var(--accent);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  backdrop-filter: blur(8px);
}
.lake-quick-btn:hover {
  border-color: var(--accent);
  background: rgba(74,158,138,0.2);
  transform: translateY(-1px);
}
.lake-quick-btn:active { transform: translateY(0); }

/* ── Gear Recommender page ── */
.gear-page {}

.gear-hero {
  text-align: center;
  padding: 28px 0 24px;
}
.gear-hero-icon { font-size: 2.2rem; margin-bottom: 8px; }
.gear-hero h1   { margin: 0 0 8px; }
.gear-hero-sub  { color: var(--text2); font-size: .95rem; margin: 0; }

/* Selectors */
.gear-selectors {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.gear-selector-group { display: flex; flex-direction: column; gap: 6px; }
.gear-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text3);
}
.gear-label-opt { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .76rem; }
.gear-select {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  padding: 10px 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a8a9a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.gear-select:focus { outline: none; border-color: var(--accent); }

/* Searchable comboboxes (species + lake) */
.gear-combo { position: relative; }
.gear-combo-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  padding: 10px 36px 10px 14px;
}
.gear-combo-input::placeholder { color: var(--text3); }
.gear-combo-input:focus { outline: none; border-color: var(--accent); }
.gear-combo-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 1rem;
  pointer-events: none;
}
.gear-combo-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--border2);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gear-combo-clear:hover { background: var(--accent); color: #fff; }
.gear-combo-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.gear-combo-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.gear-combo-item:last-child { border-bottom: none; }
.gear-combo-item:hover { background: var(--accent-lo); }
.gear-combo-name { font-size: .9rem; color: var(--text); }
.gear-combo-loc  { font-size: .76rem; color: var(--text3); text-align: right; flex-shrink: 0; }
.gear-combo-item--none { color: var(--text3); font-style: italic; }
.gear-combo-live { padding: 11px 14px; font-size: .86rem; font-weight: 600; color: var(--accent); background: rgba(74,158,138,0.08); cursor: pointer; }
.gear-combo-live:hover { background: rgba(74,158,138,0.16); }
.gear-combo-empty { padding: 12px 14px; font-size: .84rem; color: var(--text3); }

/* Season pills */
.gear-season-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.gear-season-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text2);
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.gear-season-pill:hover  { border-color: var(--accent); color: var(--accent); }
.gear-season-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* Empty state */
.gear-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text3);
}
.gear-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.gear-empty p    { font-size: .95rem; margin: 0; }

/* Output */
.gear-output { display: flex; flex-direction: column; gap: 14px; }

.gear-context-bar {
  padding: 10px 16px;
  background: rgba(74,158,138,0.08);
  border: 1px solid rgba(74,158,138,0.25);
  border-radius: var(--radius);
  font-size: .84rem;
  color: var(--text2);
}
.gear-context-bar strong { color: var(--accent); }

/* Gear cards */
.gear-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.gear-card--tip { border-color: rgba(74,158,138,0.3); }

.gear-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.gear-card-icon  { font-size: 1rem; }
.gear-card-title { font-weight: 600; font-size: .9rem; flex: 1; }

.gear-clarity-badge, .gear-depth-badge {
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--accent-lo);
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

.gear-card-body { padding: 14px 16px; }

.gear-hardware-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  margin-bottom: 8px;
  align-items: start;
}
.gear-hardware-label {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text3);
  padding-top: 2px;
}
.gear-hardware-spec { font-size: .92rem; color: var(--text); font-weight: 500; line-height: 1.4; }
.gear-hardware-note { font-size: .82rem; color: var(--text3); line-height: 1.5; margin-top: 4px; font-style: italic; }
.gear-examples      { font-size: .78rem; color: var(--text3); margin-top: 6px; }

.gear-tip-text {
  padding: 14px 16px;
  font-size: .9rem;
  color: var(--text2);
  line-height: 1.65;
  font-family: 'Lora', serif;
}

/* Lures */
.gear-lures-section { }
.gear-lures-section h2 { margin-bottom: 4px; }
.gear-lures-sub { font-size: .82rem; color: var(--text3); margin: 0 0 14px; }
.gear-offseason-note {
  font-size: .9rem;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  line-height: 1.6;
}

.lure-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
  transition: border-color .15s;
}
.lure-card:hover { border-color: rgba(74,158,138,0.4); }

/* Product-tile thumbnail holding the lure illustration + priority badge */
.lure-thumb {
  position: relative;
  flex-shrink: 0;
  width: 84px;
  height: 76px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 40%, rgba(120,150,165,0.14), rgba(3,14,24,0) 72%),
    rgba(6, 18, 28, 0.72);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lure-icon {
  width: 74px;
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}
.lure-priority {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.lure-body   { flex: 1; min-width: 0; }
.lure-name   { font-weight: 600; font-size: .95rem; margin-bottom: 3px; }
.lure-detail { font-size: .83rem; color: var(--text2); margin-bottom: 5px; line-height: 1.4; }
.lure-note   { font-size: .8rem; color: var(--accent); margin-bottom: 6px; font-style: italic; }

.lure-colors       { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 6px; }
.lure-colors-label { font-size: .74rem; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.lure-color-chip {
  font-size: .76rem;
  padding: 3px 9px;
  border-radius: 10px;
  background: rgba(74,158,138,0.12);
  border: 1px solid rgba(74,158,138,0.25);
  color: var(--text2);
  font-weight: 500;
}

.lure-buy-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 8px;
  background: #f90;
  color: #111;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.lure-buy-btn:hover {
  background: #e68900;
  transform: translateY(-1px);
}
.lure-buy-btn:active {
  transform: translateY(0);
}
.lure-buy-cart { font-size: .9em; }

.affiliate-disclosure {
  margin-top: 14px;
  padding: 10px 14px;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--text3);
  background: rgba(3, 14, 24, 0.5);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ── AI panel ── */
.ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #07090a;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(74,158,138,.4);
  transition: transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}
.ai-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(74,158,138,.55); }
.ai-fab-label {
  position: absolute;
  right: 60px;
  white-space: nowrap;
  background: var(--bg2);
  color: var(--text);
  font-size: .78rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.ai-fab:hover .ai-fab-label { opacity: 1; }

.ai-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-height: 560px;
  z-index: 199;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.ai-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
.ai-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-avatar {
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-lo);
  border-radius: 50%;
  flex-shrink: 0;
}
.ai-panel-name { font-weight: 600; font-size: .88rem; }
.ai-panel-status { font-size: .75rem; color: var(--text2); }
.ai-panel-close {
  margin-left: auto;
  color: var(--text3);
  font-size: 1.1rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.ai-panel-close:hover { color: var(--text); background: var(--bg3); }

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg3) transparent;
}
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 2px; }

.ai-msg {
  max-width: 88%;
  font-size: .85rem;
  line-height: 1.55;
}
.ai-msg--bot {
  align-self: flex-start;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px 12px 12px 12px;
  padding: 10px 12px;
  color: var(--text);
}
.ai-msg--user {
  align-self: flex-end;
  background: var(--accent-lo);
  border: 1px solid var(--accent);
  border-radius: 12px 4px 12px 12px;
  padding: 10px 12px;
  color: var(--text);
}
.ai-msg--typing {
  align-self: flex-start;
  color: var(--text3);
  font-style: italic;
  font-size: .8rem;
  padding: 4px 0;
}

.ai-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ai-followup-btn {
  font-size: .75rem;
  padding: 4px 10px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  color: var(--text2);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.ai-followup-btn:hover { border-color: var(--accent); color: var(--accent); }

.ai-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: .85rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .15s;
}
.ai-input::placeholder { color: var(--text3); }
.ai-input:focus { border-color: var(--accent); }
.ai-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #07090a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.ai-send:hover { background: var(--accent2); }
.ai-send:active { transform: scale(.92); }
.ai-send:disabled { background: var(--bg3); color: var(--text3); cursor: not-allowed; }

/* ── Disclaimer ── */
.disclaimer {
  margin-top: 40px;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.5;
}
.disclaimer a { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .ai-panel { width: calc(100vw - 32px); right: 16px; bottom: 80px; }
  .ai-fab { right: 16px; bottom: 16px; }
  .learn-grid { grid-template-columns: 1fr 1fr; }
  .app-nav { padding: 0 12px; }
  .nav-pills .nav-pill { padding: 5px 8px; font-size: .75rem; }
  #weeds-left  { width: 140px; }
  #weeds-right { width: 140px; }
}

/* ═══════════════════════════════════════════════
   UNDERWATER SCENE
   ═══════════════════════════════════════════════ */

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ── #app sits above everything ── */
#app { position: relative; z-index: 10; }

/* ── Light rays ── */
#light-rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.ray {
  position: absolute;
  top: -10%;
  width: 60px;
  height: 130%;
  background: linear-gradient(
    180deg,
    rgba(160, 230, 210, 0.09) 0%,
    rgba(80,  180, 160, 0.04) 50%,
    transparent 100%
  );
  transform-origin: top center;
  animation: ray-pulse ease-in-out infinite;
  border-radius: 50%;
}

.ray-1 { left: 8%;  transform: rotate(6deg);   width: 50px;  animation-duration: 9s;  animation-delay: 0s;   }
.ray-2 { left: 22%; transform: rotate(11deg);  width: 80px;  animation-duration: 13s; animation-delay: -3s;  }
.ray-3 { left: 40%; transform: rotate(4deg);   width: 45px;  animation-duration: 8s;  animation-delay: -6s;  }
.ray-4 { left: 55%; transform: rotate(-3deg);  width: 70px;  animation-duration: 11s; animation-delay: -1s;  }
.ray-5 { left: 70%; transform: rotate(-9deg);  width: 55px;  animation-duration: 14s; animation-delay: -8s;  }
.ray-6 { left: 85%; transform: rotate(-14deg); width: 40px;  animation-duration: 10s; animation-delay: -4s;  }

@keyframes ray-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1;    }
}

/* ── Caustics ── */
#caustics {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  animation: caustic-drift 30s linear infinite;
}

@keyframes caustic-drift {
  0%   { transform: translate(0, 0)    scale(1.0); }
  33%  { transform: translate(20px, 12px) scale(1.04); }
  66%  { transform: translate(-15px, 8px) scale(0.97); }
  100% { transform: translate(0, 0)    scale(1.0); }
}

/* ── Weed clusters ── */
#weeds-left {
  position: absolute;
  bottom: 0;
  left: -10px;
  width: 240px;
  height: 640px;
  z-index: 3;
}

#weeds-right {
  position: absolute;
  bottom: 0;
  right: -10px;
  width: 240px;
  height: 620px;
  z-index: 3;
}

/* Weed stem sway — transform-box:fill-box anchors rotation to each element's own bottom */
.ws, .ws-r1, .ws-r2, .ws-r3, .ws-r4, .ws-r5 {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: weed-sway ease-in-out infinite alternate;
}

/* Left stems */
.ws-1 { animation-duration: 5.2s; animation-delay: 0s;    }
.ws-2 { animation-duration: 4.1s; animation-delay: -1.8s; }
.ws-3 { animation-duration: 6.4s; animation-delay: -3.2s; }
.ws-4 { animation-duration: 5.7s; animation-delay: -0.9s; }
.ws-5 { animation-duration: 4.8s; animation-delay: -2.5s; }

/* Right stems (opposite phase — natural current feel) */
.ws-r1 { animation-duration: 5.5s; animation-delay: -2.6s; animation-name: weed-sway-r; }
.ws-r2 { animation-duration: 4.3s; animation-delay: -0.4s; animation-name: weed-sway-r; }
.ws-r3 { animation-duration: 6.1s; animation-delay: -4.0s; animation-name: weed-sway-r; }
.ws-r4 { animation-duration: 5.9s; animation-delay: -1.2s; animation-name: weed-sway-r; }
.ws-r5 { animation-duration: 4.6s; animation-delay: -3.5s; animation-name: weed-sway-r; }

@keyframes weed-sway {
  from { transform: rotate(-3.5deg); }
  to   { transform: rotate(3.5deg);  }
}

@keyframes weed-sway-r {
  from { transform: rotate(3deg);  }
  to   { transform: rotate(-3deg); }
}

/* ── Bubbles ── */
#bubbles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(200, 248, 235, 0.35),
    rgba(100, 200, 180, 0.12)
  );
  border: 1px solid rgba(180, 240, 220, 0.25);
  animation: bubble-rise linear infinite;
}

@keyframes bubble-rise {
  0%   { transform: translateY(0)       translateX(0);     opacity: 0;   }
  8%   { opacity: 0.9; }
  85%  { opacity: 0.7; }
  100% { transform: translateY(-105vh)  translateX(18px);  opacity: 0;   }
}

/* ── Init loader (needs to be above scene) ── */
.init-loader {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--text2);
  letter-spacing: .05em;
}
.init-loader strong { color: var(--accent); }

/* ── Card glass effect — panels feel submerged ── */
.basic-card,
.approach-card,
.learn-card,
.species-card,
.lake-pick-card,
.cond-card,
.learn-step,
.zone-info,
.disclaimer,
.lake-warning,
.lake-context-box {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Subtle teal glow on hover for interactive cards */
.learn-card:hover,
.species-card:hover,
.lake-pick-card:hover {
  box-shadow: 0 0 24px rgba(74, 158, 138, 0.12);
}



/* ── Gear: crawlable species links, shop rows, trip kit ── */
a.gear-season-pill { text-decoration: none; display: inline-block; }
.gear-species-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; }
.gear-species-link {
  padding: 7px 14px; font-size: .84rem; font-weight: 500; color: var(--text2);
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 18px; text-decoration: none;
  transition: all .15s;
}
.gear-species-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lo); }
.gear-crawl { margin-top: 28px; }
.gear-crawl-title { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.gear-related { margin: 18px 0 0; }
.gear-related-link { font-size: .9rem; font-weight: 600; color: var(--accent); }
.gear-shop-row { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; }
.gear-shop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gear-examples a { color: var(--accent); }
.lure-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lure-actions .lure-buy-btn { margin-top: 0; }
.kit-add-btn {
  padding: 7px 12px; font-size: .8rem; font-weight: 600; color: var(--accent);
  background: rgba(74,158,138,0.08); border: 1px solid rgba(74,158,138,0.4); border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.kit-add-btn:hover { background: rgba(74,158,138,0.18); }
.kit-add-btn--on { background: var(--accent); color: #fff; border-color: var(--accent); }
.gear-kit {
  margin-top: 36px; padding: 18px 20px; background: var(--bg2);
  border: 1px solid rgba(74,158,138,0.35); border-radius: var(--radius);
}
.kit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.kit-count { font-family: 'DM Sans', sans-serif; font-size: .75rem; background: var(--accent); color: #fff; border-radius: 10px; padding: 2px 8px; margin-left: 6px; }
.kit-total { font-family: 'DM Sans', sans-serif; font-size: .9rem; color: var(--accent); font-weight: 600; }
.kit-empty { font-size: .86rem; color: var(--text2); margin: 0; }
.kit-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.kit-row-main { flex: 1; min-width: 0; }
.kit-row-label { font-size: .88rem; font-weight: 600; }
.kit-row-sub { font-size: .74rem; color: var(--text3); }
.kit-row-price { font-size: .78rem; color: var(--text2); white-space: nowrap; }
.kit-row-buy { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.kit-row-x { background: none; border: none; color: var(--text3); font-size: 1.1rem; cursor: pointer; }
.kit-row-x:hover { color: var(--accent); }
.kit-actions { display: flex; gap: 8px; margin-top: 12px; }
.kit-btn { padding: 8px 14px; font-size: .84rem; font-weight: 600; color: #fff; background: var(--accent); border: none; border-radius: 8px; cursor: pointer; }
.kit-btn--ghost { background: none; color: var(--text2); border: 1px solid var(--border2); }
.kit-note { font-size: .72rem; color: var(--text3); margin: 12px 0 0; line-height: 1.5; }
.kit-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; padding: 11px 16px; font-size: .86rem; font-weight: 700;
  color: #fff; background: var(--accent); border: none; border-radius: 24px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

.gear-cta-link { display: inline-block; margin-top: 12px; padding: 10px 16px; font-size: .9rem; font-weight: 600; color: var(--accent); background: rgba(74,158,138,0.1); border: 1px solid rgba(74,158,138,0.4); border-radius: 10px; text-decoration: none; }
.gear-cta-link:hover { background: rgba(74,158,138,0.2); }


/* ── Fishing score ── */
.score-card { display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; margin: 4px 0 16px; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); }
.score-ring { flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 22px; border: 5px solid var(--accent); }
.score-excellent .score-ring { border-color: #4caf7a; }
.score-good .score-ring { border-color: var(--accent); }
.score-fair .score-ring { border-color: #c8a84b; }
.score-tough .score-ring { border-color: #c4604a; }
.score-num { font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700; }
.score-of { font-size: .7rem; color: var(--text3); margin-left: 1px; }
.score-body { flex: 1; min-width: 0; }
.score-title { font-size: .95rem; margin-bottom: 8px; }
.score-title strong { color: var(--accent); }
.score-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.score-chip { padding: 4px 11px; font-size: .76rem; font-weight: 600; color: var(--text2); background: var(--bg2); border: 1px solid var(--border2); border-radius: 14px; cursor: pointer; }
.score-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.score-reasons { list-style: none; margin: 0; padding: 0; font-size: .82rem; line-height: 1.7; }
.score-reasons .pos { color: #7cc79b; }
.score-reasons .neg { color: #d89080; }
.score-best { margin-top: 8px; font-size: .82rem; color: var(--text2); }
.score-fine { margin-top: 6px; font-size: .7rem; color: var(--text3); }


/* ── SEO content (prerendered pages + in-app hub / species-in-lake pages) ── */
.seo-static, .seo-page { max-width: 820px; margin: 0 auto; padding: 24px 20px 60px; line-height: 1.7; }
.seo-topnav { font-size: .85rem; color: var(--text3); margin-bottom: 14px; }
.crumbs { font-size: .8rem; color: var(--text3); margin: 4px 0 14px; }
.crumbs a { color: var(--accent); }
.crumb-sep { opacity: .6; margin: 0 2px; }
.seo-static h1, .seo-page h1 { font-family: 'Cinzel', serif; font-size: 1.9rem; line-height: 1.25; margin: 6px 0 14px; }
.seo-static h2, .seo-page h2 { font-family: 'Cinzel', serif; font-size: 1.25rem; margin: 28px 0 10px; }
.seo-static h3, .seo-page h3 { font-size: 1rem; margin: 16px 0 4px; }
.seo-quick { font-family: 'Lora', serif; font-size: 1.05rem; color: var(--text2); background: var(--bg2); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 6px; }
.seo-list { padding-left: 1.2rem; }
.seo-list li, .seo-lures li { margin-bottom: 8px; color: var(--text2); }
.seo-lures { padding-left: 1.4rem; }
.seo-note { font-size: .86rem; color: var(--text3); background: var(--bg3); padding: 10px 14px; border-radius: 8px; }
.seo-static a, .seo-page a, .seo-faq a, .seo-links a { color: var(--accent); }
.seo-faq { margin-top: 30px; }
.seo-faq-item { padding: 12px 0; border-top: 1px solid var(--border); }
.seo-faq-item h3 { margin: 0 0 4px; font-size: 1rem; }
.seo-faq-item p { margin: 0; color: var(--text2); font-size: .94rem; }
.seo-links { margin-top: 26px; }
.lake-gear-links { margin: 26px 0; }
.lake-gear-links h2 { margin-bottom: 8px; }
.gear-page .crumbs, .species-hero ~ .crumbs { margin-top: 0; }


/* ── Catch log ── */
.log-form { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; }
.log-form-title { font-family: 'Cinzel', serif; font-weight: 600; margin-bottom: 12px; }
.log-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.log-form label { display: flex; flex-direction: column; gap: 5px; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); }
.log-form input:not([type=checkbox]) { background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; color: var(--text); font-size: .9rem; padding: 9px 12px; font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 400; min-width: 0; }
.log-form input:focus { outline: none; border-color: var(--accent); }
.log-notes { margin-top: 12px; }
.log-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.log-form .log-check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; font-size: .86rem; letter-spacing: 0; color: var(--text2); }
.log-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.log-stat { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 8px; text-align: center; }
.log-stat-num { font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.log-stat-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); }
.log-highlight { font-size: .92rem; color: var(--text2); background: var(--bg3); border-radius: 8px; padding: 10px 14px; }
.log-months { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin: 18px 0 8px; }
.log-month { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.log-month-bar { width: 100%; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; }
.log-month span { font-size: .66rem; color: var(--text3); }
.log-page h2 { font-family: 'Cinzel', serif; font-size: 1.15rem; margin: 26px 0 10px; }
.log-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.log-row-main { flex: 1; min-width: 0; }
.log-row-title { font-weight: 600; font-size: .94rem; }
.log-row-title a, .log-row-sub a { color: var(--accent); }
.log-row-sub { font-size: .78rem; color: var(--text3); }
.log-row-notes { font-size: .82rem; color: var(--text2); margin-top: 3px; }
.log-row-size { font-size: .86rem; font-weight: 600; white-space: nowrap; }
.log-rel { font-size: .66rem; font-weight: 600; color: var(--accent); border: 1px solid rgba(74,158,138,.4); border-radius: 8px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
@media (max-width: 520px) { .log-stats { grid-template-columns: repeat(2, 1fr); } }

/* ── 7-day forecast ── */
.fc-section { margin: 0 0 28px; padding: 16px 18px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.fc-best { font-size: .9rem; color: var(--text2); margin: 6px 0 12px; }
.fc-best strong { color: var(--accent); }
.fc-strip { display: grid; grid-template-columns: repeat(7, minmax(78px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.fc-day { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 6px; text-align: center; border-top: 3px solid var(--accent); }
.fc-day.score-excellent { border-top-color: #4caf7a; }
.fc-day.score-fair { border-top-color: #c8a84b; }
.fc-day.score-tough { border-top-color: #c4604a; }
.fc-day--best { outline: 2px solid var(--accent); }
.fc-name { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); }
.fc-icon { font-size: 1.3rem; margin: 4px 0; }
.fc-score { font-family: 'Cinzel', serif; font-size: 1.15rem; font-weight: 700; }
.fc-temp { font-size: .76rem; color: var(--text2); margin-top: 2px; }
.fc-wind { font-size: .68rem; color: var(--text3); }

/* ── Guides ── */
.glossary dt { font-weight: 700; margin-top: 14px; color: var(--text); }
.glossary dd { margin: 2px 0 0; color: var(--text2); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0; border-top: 1px solid var(--border); }
.checklist label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; color: var(--text2); }
.checklist input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
.checklist input:checked + span { text-decoration: line-through; color: var(--text3); }
a.learn-card { text-decoration: none; color: inherit; display: block; }
.nav-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-pills::-webkit-scrollbar { display: none; }

/* ── Performance & accessibility ── */
/* Skip rendering work for long below-the-fold sections until they scroll into view */
.site-footer, .seo-faq, .gear-crawl, .gear-kit, .sources-details, .regs-details { content-visibility: auto; contain-intrinsic-size: auto 300px; }
/* Respect "reduce motion" — also saves battery on phones */
@media (prefers-reduced-motion: reduce) {
  #scene *, .bubble, .gen-spinner { animation: none !important; }
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Lake map ── */
.lake-map { height: min(62vh, 520px); min-height: 320px; border-radius: var(--radius); border: 1px solid var(--border2); background: var(--bg3); margin: 14px 0 8px; z-index: 0; }
.map-actions { margin: 0 0 8px; }
.leaflet-popup-content { font-family: 'DM Sans', sans-serif; font-size: .86rem; line-height: 1.5; color: #1a2a30; }
.leaflet-popup-content a { color: #2f7a68; font-weight: 600; }

/* ── Layout polish (from visual review) ── */
.page > .crumbs:first-child, .gear-page > .crumbs { margin-top: 14px; }
.crumbs span[aria-current] { color: var(--text2); }
.seo-faq { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px 10px; }
.seo-faq h2 { margin-top: 14px; }
.gear-output > .seo-quick { margin-top: 18px; }
.fc-ice { font-size: .8rem; color: #9cc4d8; margin: -4px 0 10px; }
@media (max-width: 520px) {
  .score-card { flex-direction: column; align-items: center; }
  .score-body { width: 100%; }
  .app-nav .nav-pill { padding-left: 9px; padding-right: 9px; font-size: .8rem; }
  .fc-strip { grid-template-columns: repeat(7, 84px); }
}


/* ── How to Read a Lake ── */
.rl-intro { font-family: 'Lora', serif; color: var(--text2); line-height: 1.75; margin-bottom: 8px; }
.rl-intro strong { color: var(--text); }
.rl-h2 { font-family: 'Cinzel', serif; font-size: 1.25rem; margin: 34px 0 6px; }
.rl-sub { font-size: .9rem; color: var(--text2); margin: 0 0 12px; }
.rl-seasons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rl-season { padding: 7px 16px; font-size: .86rem; font-weight: 600; color: var(--text2); background: var(--bg2); border: 1px solid var(--border2); border-radius: 18px; cursor: pointer; transition: all .15s; }
.rl-season:hover { border-color: var(--accent); color: var(--accent); }
.rl-season.active { background: var(--accent); border-color: var(--accent); color: #fff; }
/* On narrow screens the diagram keeps a readable size and scrolls sideways */
.rl-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border2); background: #0f1c26; -webkit-overflow-scrolling: touch; }
.rl-svg { display: block; width: 100%; min-width: 660px; height: auto; font-family: 'DM Sans', sans-serif; }
.rl-grid line { stroke: rgba(255,255,255,.13); stroke-width: 1; stroke-dasharray: 3 6; }
.rl-grid text { fill: #8fa6b2; font-size: 11px; }
.rl-thermo path { stroke: #9fd8ff; stroke-width: 1.6; stroke-dasharray: 8 6; fill: none; }
.rl-thermo text { fill: #bfe3fb; font-size: 11.5px; }
.rl-weeds path { stroke: #57b56f; stroke-width: 3; stroke-linecap: round; fill: none; }
.rl-rocks ellipse { fill: #8a949c; stroke: #4c555c; stroke-width: 1; }
.rl-ice rect { fill: #eaf6fb; opacity: .95; }
.rl-ice text { fill: #eaf6fb; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.rl-label line { stroke: rgba(255,255,255,.55); stroke-width: 1.2; stroke-dasharray: 2 3; }
.rl-label circle, .rl-pin-dot { fill: #0f1c26; stroke: #f2f2ea; stroke-width: 1.8; transition: fill .15s, stroke .15s; }
.rl-num { fill: #f2f2ea; font-size: 12px; font-weight: 700; pointer-events: none; }
.rl-name { fill: #f2f2ea; font-size: 13px; font-weight: 600; paint-order: stroke; stroke: #0f1c26; stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.rl-label.selected circle, .rl-pin.selected .rl-pin-dot { fill: var(--accent); stroke: #fff; }
.rl-label.selected .rl-name, .rl-pin.selected .rl-name { fill: #9fe6d2; }
.rl-xs .zone-hit { fill: transparent; cursor: pointer; }
.rl-xs .zone-hit:hover { fill: rgba(255,255,255,.07); }
.rl-xs .zone-hit.selected { fill: rgba(74,158,138,.22); }
.rl-pin { cursor: pointer; outline: none; }
.rl-pin-halo { fill: transparent; }
.rl-pin:hover .rl-pin-halo, .rl-pin:focus-visible .rl-pin-halo { fill: rgba(255,255,255,.16); }
.rl-pin.selected .rl-pin-halo { fill: rgba(74,158,138,.4); }
.rl-contours path, .rl-contours ellipse { fill: none; stroke: rgba(255,255,255,.42); stroke-width: 1.1; }
.rl-depths text { fill: #d8ecf2; font-size: 11px; paint-order: stroke; stroke: rgba(10,30,45,.75); stroke-width: 3px; }
.rl-weedmarks path { stroke: #7ddc93; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.rl-compass path { fill: #f2f2ea; }
.rl-compass text, .rl-note { fill: #b9c7bd; font-size: 12px; font-weight: 600; }
.rl-note { font-weight: 500; font-style: italic; }
.rl-caption { font-size: .92rem; color: var(--text2); line-height: 1.6; margin: 12px 0 4px; }
.rl-caption strong { color: var(--accent); }
.rl-legend { font-size: .78rem; color: var(--text3); margin: 0; }
.rl-legend-fish { display: inline-block; width: 16px; height: 8px; border-radius: 50%; background: #f2c94c; vertical-align: middle; margin-right: 4px; }
.rl-page .zone-info { margin-top: 16px; min-height: 0; }
.rl-info-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rl-info-head .zone-info-title { margin: 0; font-size: 1.02rem; }
.rl-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.rl-depth { font-size: .78rem; color: var(--text3); }
.rl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.rl-chip { font-size: .76rem; font-weight: 600; color: var(--accent); background: var(--accent-lo); border: 1px solid rgba(74,158,138,.35); border-radius: 12px; padding: 3px 10px; }
.rl-page .zone-info-text { margin: 6px 0 0; }
.rl-page .zone-info-text strong { color: var(--text); }
.rl-list { color: var(--text2); line-height: 1.7; padding-left: 1.3rem; }
.rl-list li { margin-bottom: 8px; }
.rl-list strong { color: var(--text); }
.rl-list a, .rl-links a { color: var(--accent); }
.rl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rl-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color .15s; }
.rl-card:hover, .rl-card.selected { border-color: var(--accent); }
.rl-card p { font-size: .86rem; color: var(--text2); line-height: 1.55; margin: 6px 0 0; }
.rl-card p strong { color: var(--text); }
.rl-card .rl-depth { margin: 2px 0 2px 34px; }
.rl-rule { margin-top: 30px; }
.rl-links { margin-top: 22px; font-size: .9rem; }

.rl-thermo .rl-thermo-sub { font-size: 10.5px; fill: #9fc6de; }
.rl-thermo text { paint-order: stroke; stroke: rgba(20,70,95,.85); stroke-width: 3px; }
.rl-swipe { display: none; font-size: .78rem; color: var(--text3); margin: 0 0 6px; }
@media (max-width: 700px) { .rl-swipe { display: block; } }


/* ── Catch photos + leaderboards ── */
.log-form-body { display: flex; gap: 14px; align-items: flex-start; }
.log-form-body .log-grid { flex: 1; }
.log-photo { flex-shrink: 0; width: 132px; cursor: pointer; }
.log-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.log-photo-preview { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 132px; height: 132px;
  border: 1.5px dashed var(--border2); border-radius: 10px; background: var(--bg3); color: var(--text2); font-size: .8rem; text-transform: none; letter-spacing: 0; font-weight: 600; overflow: hidden; }
.log-photo:hover .log-photo-preview, .log-photo:focus-within .log-photo-preview { border-color: var(--accent); color: var(--accent); }
.log-photo-icon { font-size: 1.8rem; }
.log-photo-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.log-photo-change { position: absolute; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: .72rem; }
.log-private { text-transform: none; letter-spacing: 0; font-weight: 400; }
.log-lb { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(74,158,138,.35); border-radius: 10px; background: rgba(74,158,138,.06); }
.log-lb .log-check { font-size: .9rem; color: var(--text); font-weight: 600; }
.log-lb-fields { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.log-lb-fields[hidden] { display: none; }
.log-lb-fields .log-check { font-weight: 400; color: var(--text2); font-size: .86rem; }
.log-lb-note { font-size: .78rem; color: var(--text3); line-height: 1.55; margin: 0; text-transform: none; letter-spacing: 0; }
.log-lb-note strong { color: var(--text2); }
.log-lb-warn { font-size: .8rem; color: #e0b25c; margin: 0; }
.log-form-msg { margin: 10px 0 0; font-size: .86rem; color: var(--text2); }
.log-form-msg--err { color: #e08a74; }
.log-thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px; border: 1px solid var(--border2); background: var(--bg3) center / cover no-repeat; cursor: zoom-in; padding: 0; }
.log-row-lb { font-size: .8rem; color: var(--accent); margin-top: 4px; }
.log-row-lb a { color: var(--accent); }
.log-row-lb .link-btn { font-size: .8rem; }
@media (max-width: 560px) {
  .log-form-body { flex-direction: column; }
  .log-photo, .log-photo-preview { width: 100%; }
  .log-photo-preview { height: 150px; }
}

.lb-section { margin: 30px 0; scroll-margin-top: 70px; }
.lb-section:empty { display: none; }
.lb-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lb-head h2 { margin: 0; }
.lb-sub { font-size: .82rem; color: var(--text3); }
.lb-empty { color: var(--text3); font-size: .9rem; }
.lb-empty-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: var(--bg2); border: 1px dashed var(--border2); border-radius: var(--radius); }
.lb-empty-box p { margin: 0; color: var(--text2); font-size: .9rem; flex: 1; min-width: 220px; }
.lb-post { text-decoration: none; display: inline-block; white-space: nowrap; }
.lb-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 8px; }
.lb-tabs::-webkit-scrollbar { display: none; }
.lb-tab { flex-shrink: 0; padding: 6px 13px; font-size: .82rem; font-weight: 600; color: var(--text2); background: var(--bg2); border: 1px solid var(--border2); border-radius: 16px; cursor: pointer; }
.lb-tab span { opacity: .7; font-weight: 500; margin-left: 2px; }
.lb-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb-list { list-style: none; margin: 0; padding: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); }
.lb-row:first-child { border-top: none; }
.lb-row--hidden { opacity: .55; }
.lb-rank { width: 30px; text-align: center; font-weight: 700; font-size: 1.05rem; color: var(--text2); flex-shrink: 0; }
.lb-thumb { width: 64px; height: 64px; padding: 0; border: 1px solid var(--border2); border-radius: 8px; overflow: hidden; background: var(--bg3); cursor: zoom-in; flex-shrink: 0; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-main { flex: 1; min-width: 0; }
.lb-who { font-weight: 600; font-size: .94rem; overflow-wrap: anywhere; }
.lb-meta { font-size: .76rem; color: var(--text3); margin-top: 2px; }
.lb-badge { font-size: .66rem; font-weight: 600; color: var(--accent); border: 1px solid rgba(74,158,138,.4); border-radius: 8px; padding: 1px 6px; margin-left: 4px; white-space: nowrap; }
.lb-badge--rel { color: var(--text2); border-color: var(--border2); }
.lb-size { text-align: right; flex-shrink: 0; }
.lb-size strong { display: block; font-family: 'Cinzel', serif; font-size: 1.05rem; }
.lb-size span { font-size: .76rem; color: var(--text2); }
.lb-report { background: none; border: none; color: var(--text3); font-size: .72rem; cursor: pointer; padding: 4px; flex-shrink: 0; }
.lb-report:hover { color: #e08a74; }
.lb-admin { display: flex; gap: 6px; flex-shrink: 0; }
.lb-admin button { font-size: .72rem; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text2); cursor: pointer; }
.lb-more { margin-top: 8px; background: none; border: none; color: var(--accent); font-weight: 600; font-size: .86rem; cursor: pointer; }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.lb-foot p { margin: 0; font-size: .76rem; color: var(--text3); flex: 1; min-width: 220px; }
@media (max-width: 520px) {
  .lb-row { gap: 9px; padding: 9px 10px; }
  .lb-thumb { width: 52px; height: 52px; }
  .lb-rank { width: 24px; font-size: .95rem; }
}

.photo-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,10,14,.92); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.photo-lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.photo-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 8px; object-fit: contain; }
.photo-lightbox figcaption { color: #e8eef0; font-size: .9rem; text-align: center; }
.photo-lightbox-x { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; cursor: pointer; }
.wg-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 210; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border-radius: 10px;
  background: #13303a; border: 1px solid var(--accent); color: #eaf4f2; font-size: .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
@media (max-width: 520px) {
  .lb-row { flex-wrap: wrap; }
  .lb-admin { width: 100%; justify-content: flex-end; }
  .lb-report { margin-left: auto; }
}


/* ── Record fish ── */
.rec-section { margin: 30px 0; scroll-margin-top: 70px; }
.rec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rec-head h2 { margin: 0; }
.rec-sub { font-size: .82rem; color: var(--text3); }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rec-card { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.rec-card--world { border-color: #c8a84b; background: linear-gradient(160deg, rgba(200,168,75,.14), var(--bg2) 60%); }
.rec-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 2px; }
.rec-badge { font-size: .66rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(74,158,138,.4); border-radius: 8px; padding: 2px 7px; }
.rec-badge--world { color: #e2c46a; border-color: rgba(200,168,75,.6); }
.rec-badge--state { color: #e2c46a; border-color: rgba(200,168,75,.6); margin-left: 4px; }
.rec-species { font-size: 1.02rem; margin: 2px 0 0; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.rec-size { display: flex; align-items: baseline; gap: 8px; }
.rec-size strong { font-family: 'Cinzel', serif; font-size: 1.35rem; }
.rec-size span { font-size: .84rem; color: var(--text2); }
.rec-meta { font-size: .8rem; color: var(--text2); }
.rec-note { font-size: .78rem; color: var(--text3); margin: 4px 0 0; line-height: 1.5; }
.rec-src { font-size: .74rem; color: var(--accent); margin-top: auto; padding-top: 6px; text-decoration: none; }
.rec-src:hover { text-decoration: underline; }
.rec-details { margin-top: 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px 14px; }
.rec-details > summary { cursor: pointer; font-weight: 600; padding: 10px 0; color: var(--text); }
.rec-table-wrap { overflow-x: auto; }
.rec-table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 480px; }
.rec-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); padding: 6px 8px; border-bottom: 1px solid var(--border2); }
.rec-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); color: var(--text2); }
.rec-table td:first-child { color: var(--text); font-weight: 600; }
.rec-row-state td { background: rgba(200,168,75,.08); }
.rec-table-title { font-size: .9rem; margin: 16px 0 4px; }
.rec-foot { font-size: .74rem; color: var(--text3); margin: 12px 0 0; line-height: 1.55; }
.lb-record { display: block; margin: 0 0 10px; padding: 9px 14px; border-radius: 10px; background: rgba(200,168,75,.1); border: 1px solid rgba(200,168,75,.4); color: var(--text2); font-size: .84rem; text-decoration: none; }
.lb-record strong { color: #e2c46a; }

/* ── Backup & angler key (My Log) ─────────────────────────────────── */
.log-backup { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.log-backup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.log-backup h2 { margin: 0 0 6px; font-size: 1.05rem; }
.log-backup > p { font-size: .88rem; color: var(--text2); line-height: 1.55; margin: 0 0 10px; }
.log-backup-when { font-size: .78rem; color: var(--text3); }
.log-backup .kit-actions { margin-top: 4px; flex-wrap: wrap; align-items: center; }
.log-restore { margin-top: 12px; }
.log-restore summary { cursor: pointer; font-size: .86rem; color: var(--accent); font-weight: 600; }
.log-restore form { display: flex; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.log-restore input { flex: 1; min-width: 0; background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; color: var(--text); font: .9rem ui-monospace, SFMono-Regular, Menlo, monospace; padding: 9px 12px; letter-spacing: .03em; }
.log-key { display: flex; gap: 8px; align-items: center; margin: 12px 0 8px; flex-wrap: wrap; }
.log-key code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 600 .95rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; background: var(--bg3); border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 12px; color: var(--text); user-select: all; }
#log-key-box .log-lb-note { margin-bottom: 6px; }
.log-form-msg--ok { color: var(--accent); }
.log-check a { color: var(--accent); }
@media (max-width: 520px) { .log-backup { padding: 14px; } .log-restore form .kit-btn { width: 100%; } }

/* ── Moderation ───────────────────────────────────────────────────── */
.mod-login { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.mod-login label { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--text3); }
.mod-login input { background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; color: var(--text); font-size: .95rem; padding: 9px 12px; }
.mod-page h2 { display: flex; align-items: center; gap: 8px; margin-top: 26px; }
.mod-count { font-size: .78rem; background: var(--bg3); border: 1px solid var(--border2); border-radius: 999px; padding: 2px 9px; color: var(--text2); }
.mod-list { list-style: none; padding: 0; }
.mod-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border2); border-radius: 10px; background: var(--bg2); margin-bottom: 8px; }
.mod-row--hidden { border-color: rgba(224,138,116,.5); }
.mod-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.mod-tags span { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(224,178,92,.14); color: #e0b25c; }
.mod-row .lb-meta a { color: var(--accent); }
@media (max-width: 520px) { .mod-row { flex-wrap: wrap; } .mod-row .lb-admin { width: 100%; justify-content: flex-end; } }

/* ── Terms & privacy ──────────────────────────────────────────────── */
.legal-page { max-width: 760px; line-height: 1.65; }
.legal-page h2 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; color: var(--text2); }
.legal-page p { color: var(--text2); }
.legal-page a { color: var(--accent); }
.legal-draft { font-size: .82rem; background: rgba(224,178,92,.1); border: 1px solid rgba(224,178,92,.35); border-radius: 8px; padding: 8px 12px; color: #e0b25c !important; }
.footer-bottom a { color: inherit; }

/* ── What's catching fish here (lake leaderboard) ─────────────────── */
.lb-lures { margin: 12px 0 14px; padding: 12px 14px; border: 1px solid rgba(74,158,138,.35); border-radius: 10px; background: rgba(74,158,138,.06); }
.lb-lures-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lb-lures-head strong { font-size: .95rem; }
.lb-lures-head span { font-size: .74rem; color: var(--text3); }
.lb-lures-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-lures-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 8px; }
.lb-lures-n { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--bg3); color: var(--accent); font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.lb-lures-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-lures-name { font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.lb-lures-meta { font-size: .74rem; color: var(--text3); }
.lb-lures-buy { flex-shrink: 0; font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 7px; background: var(--accent); color: #fff; text-decoration: none; white-space: nowrap; }
.lb-lures-buy:hover { filter: brightness(1.1); }
.lb-lures-note { margin: 8px 0 0; font-size: .72rem; color: var(--text3); }

/* ── Site stats (/stats) ──────────────────────────────────────────── */
.stats-page .lake-tagline a { color: var(--accent); }
.stats-range { margin-bottom: 14px; }
.stats-card { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px 16px; margin-top: 14px; min-width: 0; }
.stats-card h2 { margin: 0 0 10px; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.stats-card p { margin: 0; color: var(--text2); font-size: .9rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 14px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: .84rem; table-layout: fixed; }
.stats-table td { padding: 5px 0; border-bottom: 1px solid var(--border2); color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-table td:last-child { width: 64px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.stats-table a { color: var(--accent); text-decoration: none; }
.stats-bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.stats-bar { flex: 1; height: 100%; position: relative; min-width: 2px; }
.stats-bar-v, .stats-bar-c { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 2px 2px 0 0; }
.stats-bar-v { background: rgba(74,158,138,.45); }
.stats-bar-c { background: #e0b25c; left: 25%; right: 25%; }
.stats-bars-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text3); margin-top: 4px; }
.stats-key { font-size: .72rem; font-weight: 400; color: var(--text3); display: flex; align-items: center; gap: 5px; }
.stats-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.stats-key .k-v { background: rgba(74,158,138,.45); } .stats-key .k-c { background: #e0b25c; margin-left: 6px; }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════
   PERFORMANCE — phones & tablets
   The animated underwater scene sits behind every page. On touch devices,
   the full-screen displacement filter, swaying SVG weeds and ~19 frosted
   (backdrop-blur) panels re-rendering over a moving background made
   scrolling lag. Keep the look, drop the per-frame work.
   ═══════════════════════════════════════════════ */
#caustics { will-change: transform; }
.ray { will-change: opacity; }
.bubble { will-change: transform, opacity; }
@media (hover: none), (pointer: coarse), (max-width: 820px) {
  #caustics { animation: none; }
  #caustics rect { filter: none; }                       /* plain soft-light gradient */
  .ws, .ws-r1, .ws-r2, .ws-r3, .ws-r4, .ws-r5 { animation: none; }
  .bubble:nth-child(n+6) { display: none; }              /* 5 bubbles instead of 10 */
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .app-nav { background: rgba(3, 14, 26, 0.96); }        /* solid enough without the blur */
  .site-footer { background: rgba(3, 12, 20, 0.85); }
}
@media (prefers-reduced-motion: reduce) {
  #caustics rect { filter: none; }
  #scene .ray { opacity: .6; }
}

.search-map-hint { display: block; font-size: .74rem; font-weight: 400; color: var(--text3); margin-top: 2px; }
