:root { color-scheme: light; --ink: #143648; --teal: #0b5461; --pale: #ecf9f7; --line: #bddcdb; --nav-height: 3.25rem; }
* { box-sizing: border-box; }
body#game-page, body.content-page { margin: 0; color: var(--ink); background: #e6f5f2; overflow-y: auto; }
body.content-page { font: 1rem/1.55 system-ui, sans-serif; }
.site-header { min-height: var(--nav-height); display: flex; align-items: center; background: #102f3e; color: #f3fffb; font: 600 .9rem/1.2 system-ui, sans-serif; }
.site-nav { width: min(100% - 1.5rem, 70rem); min-height: var(--nav-height); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.site-nav a { color: inherit; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { text-decoration: underline; }
.site-brand { display: inline-flex; align-items: center; gap: .35rem; }
.site-brand img { width: 37px; height: 37px; }
.site-nav nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.5rem); }
.site-nav nav a:last-child { color: #abefdb; }
#game-page main#play { height: calc(100dvh - var(--nav-height)); }
#game-page #stage { width: min(100%, calc((100dvh - var(--nav-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * .52)); }
#game-page .site-copy { user-select: text; }
html[lang="en"] #game-page [data-site-lang="zh-CN"],
html[lang="zh-CN"] #game-page [data-site-lang="en"] { display: none; }
.site-copy, .page { width: min(100% - 2rem, 66rem); margin: 0 auto; padding: 1.6rem 0 2.75rem; font: 1rem/1.55 system-ui, sans-serif; }
.site-copy h1, .page h1 { margin: .45rem 0 .7rem; color: #103d4e; line-height: 1.12; font-size: clamp(1.65rem, 5vw, 3rem); }
.page h2, .site-copy h2 { font-size: clamp(1.15rem, 3vw, 1.55rem); }
.site-copy p, .page p { max-width: 72ch; }
.page a, .site-copy a, .site-footer a { color: var(--teal); }
.site-footer { border-top: 1px solid var(--line); padding: 1rem; text-align: center; font: .875rem/1.4 system-ui, sans-serif; }
.site-footer a { margin-inline: .5rem; }
.crumbs { font-size: .875rem; color: #436475; }
.card-grid, .level-grid, .route-grid { display: grid; list-style: none; margin: 1rem 0; padding: 0; gap: .65rem; }
.card-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%, 145px),1fr)); }
.level-grid { grid-template-columns: repeat(auto-fill,minmax(105px,1fr)); }
.route-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%, 235px),1fr)); }
.card-grid li, .level-grid a, .route-grid li, .fish-summary, .board-col { border: 1px solid var(--line); border-radius: .75rem; background: var(--pale); }
.card-grid a, .level-grid a, .route-grid a { display: block; padding: .7rem; text-decoration: none; }
.card-grid img { display: block; width: min(100%,112px); height: auto; margin: auto; }
.card-grid a:hover, .level-grid a:hover, .route-grid a:hover { text-decoration: underline; }
.collection-state { display: block; padding: 0 .7rem .6rem; font-size: .82rem; color: #476474; }
.collection-state.owned { color: #246439; }
#fish-search { font: inherit; padding: .5rem; max-width: 100%; border: 1px solid #668c94; border-radius: .4rem; }
.fish-summary { display: flex; gap: 1rem; align-items: center; padding: .65rem; max-width: 36rem; }
.fish-summary img { width: min(34vw,144px); height: auto; }
.fish-summary dt { font-weight: 700; }
.fish-summary dd { margin: 0 0 .6rem; }
.play-link { display: inline-block; border-radius: .45rem; background: #0b5461; padding: .55rem .85rem; color: #fff !important; text-decoration: none; font-weight: 700; }
.play-link:hover { text-decoration: underline; }
.level-grid small { display: block; color: #436475; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; width: min(100%, 36rem); }
.board-col { list-style: none; padding: .45rem; margin: 0; }
.board-col li { padding: .2rem; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.board-col strong { min-width: 2.5rem; }
.fish-type { font: 700 .85rem/1.3 system-ui, sans-serif; min-width: 1.15rem; text-align: center; display: inline-block; border-radius: .2rem; background: #c7e8e7; }
.moves { columns: 13rem auto; padding-inline-start: 2.15rem; max-width: 55rem; }
.moves li { break-inside: avoid; }
.moves li::marker { color: #385e6d; }
.page-neighbors { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.3rem; }
.ad-reservation[hidden], [hidden] { display: none !important; }
@media(max-width: 535px) {
  .site-nav { gap: .45rem; width: calc(100% - .75rem); font-size: .8rem; }
  .site-nav nav { gap: .55rem; }
  .site-brand img { width: 29px; height: 29px; }
  .site-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
