.codex-link { border: 0; padding: 0; background: none; color: #b6f8e6; font: inherit; cursor: pointer; white-space: nowrap; }
.codex-dots { display: grid; grid-template-columns: repeat(10, 3px); gap: 3px; }
.codex-dots i { width: 3px; height: 3px; }
.catalog-start { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 0; margin-top: 10px; border: 0; border-bottom: 1px solid #84d0c530; background: transparent; color: #c8e7e3; cursor: pointer; font: inherit; font-size: 13px; }
.catalog-start span { font-size: 10px; letter-spacing: 2px; color: #83b2b6; }
.fish-codex { box-sizing: border-box; width: min(1120px, calc(100vw - 48px)); max-width: none; height: min(850px, calc(100dvh - 48px)); max-height: none; padding: 32px; border: 1px solid #54898780; border-radius: 16px; color: #dceee8; background: radial-gradient(ellipse at 85% 0, #16484e 0, transparent 50%), #081e2b; box-shadow: 0 32px 100px #0009; overflow-y: auto; scrollbar-color: #44736e #0b2630; }
.fish-codex { margin: auto; }
.fish-codex::backdrop { background: #00111cd9; backdrop-filter: blur(8px); }
.catalog-header, .catalog-intro, .catalog-tools, .fish-card-top, .fish-card-name, .fish-card-stats { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.catalog-eyebrow { color: #8ab8b7; font-size: 10px; letter-spacing: 3px; margin-bottom: 10px; }
.catalog-header h2 { margin: 0; font-size: 30px; letter-spacing: 3px; }
.catalog-header h2 small { font-size: 12px; font-weight: 400; letter-spacing: 1px; color: #a0c7c5; margin-left: 12px; }
.catalog-close { width: 38px; height: 38px; border: 1px solid #94c7bf45; border-radius: 50%; background: #0c2d38; color: #d2ece4; cursor: pointer; }
.catalog-intro { margin-top: 12px; color: #88adaf; font-size: 12px; }
.catalog-intro span { color: #bde9d6; white-space: nowrap; }
.catalog-progress { height: 3px; background: #315052; margin: 12px 0 24px; border-radius: 3px; overflow: hidden; }
.catalog-progress i { display: block; height: 100%; background: #a9e4bf; }
.catalog-tools { justify-content: flex-start; }
.catalog-search { display: flex; align-items: center; gap: 12px; flex: 1; background: #061b25; border: 1px solid #658c8950; border-radius: 7px; padding: 0 14px; }
.catalog-search span { font-size: 24px; color: #a4c7c0; }
.catalog-search input { width: 100%; padding: 12px 0; border: 0; outline: none; background: transparent; color: #e0f0e9; font: inherit; font-size: 13px; }
.catalog-search:focus-within { border-color: #97d9bc; }
.catalog-tools select { padding: 12px; border: 1px solid #658c8950; border-radius: 7px; background: #0c2833; color: #d0e6de; }
.depth-filters { display: flex; gap: 8px; margin: 18px 0; overflow-x: auto; padding-bottom: 4px; }
.depth-filters button { padding: 9px 13px; flex-shrink: 0; border: 1px solid #648d8950; border-radius: 5px; background: transparent; color: #8daead; cursor: pointer; }
.depth-filters small { margin-left: 4px; font-size: 10px; opacity: .8; }
.depth-filters button[aria-pressed="true"] { background: #b8dfc6; color: #123b3a; border-color: #b8dfc6; }
.catalog-count { color: #80a3a5; font-size: 11px; margin-bottom: 14px; letter-spacing: 1px; }
.fish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fish-card { min-width: 0; border: 1px solid #557e7955; border-radius: 9px; background: linear-gradient(150deg, #193a405c, #0d2532); overflow: hidden; transition: border-color .2s, background .2s; }
.fish-card:hover { border-color: #a4d6ba; background: #173a43; }
.fish-card.is-discovered { border-color: #8ed2ad80; }
.fish-card summary { display: block; padding: 13px; cursor: pointer; list-style: none; }
.fish-card summary::-webkit-details-marker { display: none; }
.fish-card-top { font-size: 10px; color: #85a8a8; letter-spacing: 1px; }
.fish-card-top b { font-weight: 400; color: #8aa09c; }
.is-discovered .fish-card-top b { color: #b7e3b3; }
.fish-art { height: 116px; display: flex; align-items: center; justify-content: center; margin: 6px 0; background: radial-gradient(ellipse, #6eaba51a, transparent 70%); }
.fish-art img { max-width: 100%; max-height: 108px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 7px 6px #0004); }
.fish-card-name { gap: 4px; }
.fish-card h3 { font-size: 15px; font-weight: 500; margin: 0; }
.rarity { flex-shrink: 0; font-size: 9px; color: #d1bd87; border: 1px solid #b9a77b40; padding: 3px 5px; border-radius: 3px; }
.rarity-N { color: #b8c8cd; border-color: #b8c8cd60; }
.rarity-R { color: #6bd5f4; border-color: #6bd5f470; }
.rarity-SR { color: #c6a0ff; border-color: #c6a0ff70; }
.rarity-SSR { color: #ffd36c; border-color: #ffd36c90; background: #ffd36c12; }
.rarity-SP { color: #ffadc9; border-color: #ffadc9aa; background: linear-gradient(110deg,#ec799629,#9374f529); box-shadow: 0 0 10px #ffadc91a; }
.rarity-guide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; font-size: 10px; color: #91b5b6; }
.fish-latin { font-size: 10px; color: #7ea2a7; font-style: italic; min-height: 24px; margin: 7px 0; line-height: 1.4; }
.fish-card-stats { border-top: 1px solid #567d7840; padding-top: 10px; font-size: 10px; color: #b3c7bd; }
.fish-notes { padding: 0 13px 14px; font-size: 12px; color: #b2cfc5; line-height: 1.8; }
.fish-notes p { margin-top: 0; }
.fish-notes div { font-size: 10px; color: #8daaaa; }
.catalog-empty { grid-column: 1 / -1; padding: 50px 15px; text-align: center; color: #96b7b5; }
.catalog-footer { display: flex; justify-content: space-between; gap: 16px; color: #739a9d; font-size: 10px; padding-top: 24px; line-height: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.biome-label { display: block; margin-top: 7px; color: #b8e4dc; font-size: 10px; letter-spacing: 2px; text-shadow: 0 1px 8px #032535; }
button:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid #b9e7c7; outline-offset: 3px; }
@media (max-width: 900px) { .fish-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 600px) {
  .fish-codex { width: calc(100vw - 16px); height: calc(100dvh - 24px); padding: 18px 13px; border-radius: 12px; }
  .catalog-header h2 { font-size: 24px; }
  .catalog-header h2 small { font-size: 10px; margin-left: 5px; }
  .catalog-eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .catalog-intro { font-size: 10px; gap: 6px; }
  .fish-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .fish-card summary { padding: 10px; }
  .fish-card h3 { font-size: 12px; }
  .rarity { padding: 2px 3px; font-size: 8px; }
  .fish-art { height: 92px; }
  .fish-art img { max-height: 86px; }
  .fish-card-stats { gap: 4px; font-size: 9px; }
  .catalog-footer span { display: none; }
  .catalog-start { padding: 11px 0; }
}
