:root {
  color-scheme:light; color:var(--pond-ink); background:var(--pond-pine);
  --font-ui: "Source Sans 3", "PT Sans", system-ui, sans-serif;
  --font-display: "Pixelify Sans", var(--font-ui);
  font:16px/1.4 var(--font-ui);
}
* { box-sizing:border-box; }
body { margin:0; }
main { max-width:1120px; min-height:100vh; margin:auto; padding:clamp(18px,4vw,46px); background:var(--pond-sheet); border-inline:4px solid #425b49; }
.top, .bar, .filters, .sources, .group-head { display:flex; align-items:center; gap:12px; }
.top a { min-height:44px; display:inline-flex; align-items:center; gap:5px; }
.top .pond-icon { --icon-size:16px; }
.top, .bar, .group-head { justify-content:space-between; }
a, button { color:var(--pond-water); font:inherit; }
a { text-underline-offset:4px; }
.top a, .filters button, #play { text-decoration:none; }
.top a:not(.download):hover, a:focus-visible, button:hover { color:var(--pond-action-hover); }
.download { background:var(--pond-action); box-shadow:inset 2px 2px #82947c, inset -2px -2px #294a3b; display:inline-flex; align-items:center; gap:14px; padding:7px 12px; border:1px solid #23392b; border-radius:0; color:var(--pond-on-pine); }
h1 { font:650 clamp(32px,5vw,58px)/1.08 var(--font-display); margin:30px 0 24px; }
.bar { align-items:flex-end; border-bottom:1px solid var(--pond-edge); flex-wrap:wrap; gap:0 10px; }
.filters { gap:clamp(8px,2.4vw,29px); flex-wrap:wrap; }
button { border:0; background:transparent; cursor:pointer; }
.filters button { min-height:44px; padding:8px 0; border-bottom:3px solid transparent; }
.filters button[aria-pressed="true"] { color:var(--pond-ink); border-bottom-color:var(--pond-water); }
.filters button span { font-size:12px; color:var(--pond-muted); }
#play { min-width:75px; padding:6px 11px; border:1px solid var(--pond-edge); border-radius:0; margin-bottom:4px; }
button:focus-visible, a:focus-visible { outline:2px solid var(--pond-water); outline-offset:4px; }
.sources { min-height:45px; flex-wrap:wrap; gap:8px 18px; font-size:13px; }
.sources a { color:var(--pond-muted); }
.angler-controls:not([hidden]) { display:flex; flex-wrap:wrap; gap:12px 20px; margin:2px 0 20px; }
.angler-controls label { display:grid; gap:4px; color:var(--pond-muted); font-size:13px; }
.angler-controls select { min-height:44px; font:inherit; font-size:16px; color:var(--pond-ink); background:var(--pond-sheet); border:1px solid var(--pond-edge); border-radius:0; padding:5px 8px; }
.angler-controls select:focus-visible { outline:2px solid var(--pond-water); outline-offset:2px; }
.grid.anglers { grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)); }
.anglers .mat { background:#899784; }
.tile-group { padding:12px 0 15px; border-bottom:1px solid var(--pond-rule); }
.group-head { justify-content:flex-start; align-items:baseline; margin-bottom:9px; }
h2 { margin:0; font:600 21px/1.2 var(--font-display); }
.size { font-size:13px; font-variant-numeric:tabular-nums; color:var(--pond-muted); }
.tile-row { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:clamp(3px,1.2vw,12px); }
.tile-row canvas { width:100%; aspect-ratio:4 / 3; object-fit:contain; background:#667d6a; }
canvas { display:block; image-rendering:pixelated; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:16px; }
figure { margin:0; min-width:0; }
.mat { display:grid; place-items:center; height:144px; overflow:hidden; background:#718674; border-bottom:1px solid var(--pond-edge); }
.mat.water { background:#3e737b; }
.mat[data-material="ice.glint"], .tile-row[data-material^="ice."] canvas { background:#7497a6; }
.tile-row[data-material="bed.pebble"] canvas { background:#56878a; }
.grid + .tile-group { margin-top:14px; }
.mat canvas { object-fit:contain; max-height:100%; max-width:100%; }
figcaption { margin:8px 0 4px; display:grid; gap:3px; line-height:1.2; }
@media(max-width:550px) {
  main { padding:16px; } h1 { margin:23px 0 17px; }
  .filters { gap:0 14px; } .filters button { white-space:nowrap; font-size:14px; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
  .grid.anglers { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tile-row { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
  .mat { height:128px; } .sources { min-height:40px; }
  .bar { align-items:center; } #play { padding:4px 7px; margin-block:3px; font-size:13px; }
}
