.home-nav .nav-button[data-menu="settings"] {
  --nav-accent: #adcbc7;
  --nav-top: #36505c;
  --nav-bottom: #24394b;
}

:root.fishing-touch {
  --dock-space: var(--dock-height);
  --controls-bottom: calc(var(--touch-bottom) + var(--dock-space) + 16px);
}

.fishing-touch .home-nav { grid-template-columns: repeat(7,minmax(0,1fr)); }
.fishing-touch #menu-layer .fm-nav { grid-template-columns: repeat(8,minmax(0,1fr)); }
.fishing-touch .fm-notice { bottom: calc(var(--touch-bottom) + var(--dock-space) + 13px); }

#feeding-ripple {
  position: absolute;
  z-index: 1;
  transform: translate(-50%,-50%);
  width: 46px;
  min-height: 44px;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

#feeding-ripple span {
  padding: 2px 6px;
  border: 1px solid #ffdb78;
  background: #3b3627;
  color: #ffdfa0;
  font: 700 13px/1.2 system-ui,sans-serif;
  text-shadow: 0 1px #251e18;
}

.catch-luck { margin-top: 4px; color: #ffdf93; font: 750 13px/1.25 system-ui,sans-serif; }
#menu-layer[data-page=settings] { --fm-accent:#99ded3; --fm-wash:#244957; }
#menu-layer[data-page=achievements] { --fm-accent:#f3cd89; --fm-wash:#4c4254; }
.fm-log-header { margin-bottom: 10px; }
.fm-settings-tabs { gap: 6px; }
.fm-look-preview,.fm-decor-preview {
  display: block;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 272/152;
  border: 1px solid #587a88;
  image-rendering: pixelated;
  background: #174455;
}

.fm-decor-preview {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center,#40696e,#17354b 78%);
}

.fm-decor-preview img { width: 44%; height: 86%; max-height: 140px; object-fit: contain; image-rendering: pixelated; }
.fm-look-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.fm-cosmetic-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
#menu-layer .fm-cosmetic-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 50px;
  padding: 5px 7px;
  text-align: left;
  border: 1px solid #53727c;
  background: #112e3e;
  color: var(--fm-ink);
}

#menu-layer .fm-cosmetic-choice:hover { background: #1e4655; }
#menu-layer .fm-cosmetic-choice[aria-pressed=true] { border-color: var(--fm-gold); background: #224657; }
.fm-cosmetic-choice span,.fm-cosmetic-choice strong,.fm-cosmetic-choice small { display: block; }
.fm-cosmetic-choice strong { font-size: 14px; line-height: 1.18; }
.fm-cosmetic-choice small { color: var(--fm-muted); }
.fm-cosmetic-choice img,.fm-cosmetic-swatch { flex: none; width: 28px; height: 24px; object-fit: contain; image-rendering: pixelated; }
.fm-cosmetic-swatch { background: var(--swatch); border: 1px solid #d8d3b7; box-shadow: inset 0 -4px #10293d4d; }
.fm-cosmetic-selection { border-top: 1px solid var(--fm-line); padding-top: 12px; }
.fm-cosmetic-selection > .fm-button { align-self: start; }
.fm-volume { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; align-items: center; }
.fm-volume span { grid-column: 1/-1; color: var(--fm-muted); }
#menu-layer .fm-volume input { width: 100%; min-height: 40px; accent-color: var(--fm-mint); }
.fm-volume output { min-width: 39px; text-align: right; font-variant-numeric: tabular-nums; color: var(--fm-gold); }

.fm-achievements { max-width: 1050px; margin-inline: auto; }
.fm-award-header,.fm-award-group { border-color: #8e8068; }
.fm-award-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 40px; cursor: pointer; }
.fm-award-group > summary strong { color: #ffebc6; font: 21px/1.1 var(--fm-pixel); }
.fm-award-group > summary strong::before { content: '›'; margin-right: 7px; color: var(--fm-gold); }
.fm-award-group[open] > summary strong::before { content: '⌄'; }
.fm-award-group > summary span { color: var(--fm-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fm-award-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-top: 8px; }
.fm-award { display: grid; grid-template-columns: minmax(0,1fr) minmax(90px,.4fr); gap: 9px; align-items: start;
  min-width: 0; padding: 9px; border: 1px solid var(--fm-line); background: #102a3b; }
.fm-award[data-state=ready] { border-color: #89c6ab; background: #17413e; }
.fm-award[data-state=claimed] { border-color: #758e82; }
.fm-award-meter { display: flex; align-items: center; gap: 7px; color: var(--fm-muted); font: 650 12px/1.2 system-ui,sans-serif; }
.fm-award-meter progress { width: min(95px,55%); height: 7px; border: 0; accent-color: #9de1b8; }
.fm-award-meter span { white-space: nowrap; }
.fm-award-reward { display: grid; justify-items: end; gap: 4px; color: var(--fm-gold); text-align: right; }
.fm-award-reward small,.fm-award-reward span { color: var(--fm-muted); }
.fm-size-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-size-badges span { border: 1px solid #ac9769; padding: 4px 8px; background: #3d3838; color: #fff1c3; }

@media (max-width: 850px) {
  .fm-award-list { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  #menu-layer .fm-nav { grid-template-columns: repeat(8,minmax(0,1fr)); }
  #menu-layer .fm-settings-tabs .fm-button { flex: 1; min-width: 0; min-height: 44px; padding: 5px 7px; font-size: 14px; }
  .fm-cosmetic-choice strong { font-size: 12px; }
  .fm-award { gap: 7px; padding: 7px; }
  .fm-award-reward strong { font-size: 13px; }
}

@media (max-width: 360px) {
  :root.fishing-touch { --dock-height: 48px; --dock-space: calc(2 * var(--dock-height) + 4px); }
  .fishing-touch .location-button { padding-inline: 5px; }
  .fishing-touch #spot-name { white-space: normal; line-height: 1.05; }
  .fishing-touch .home-nav,.fishing-touch #menu-layer .fm-nav,#menu-layer .fm-nav {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  #menu-layer .fm-award-reward .fm-button { padding-inline: 7px; }
}
