/* Harbour, catches and aquarium additions use the existing pixel type and colours. */
.boat-hunt {
  position:absolute; top:calc(var(--gutter) + 53px); left:var(--gutter); z-index:2;
  max-width:calc(100% - 2 * var(--gutter)); padding:5px 9px;
  background:#0c273bd9; color:#b6f4df; border-left:3px solid #7adbbd;
  font:600 12px/1.35 system-ui,sans-serif; pointer-events:none;
}
.cast-button.clean-reel {--plate-rim:#eaffc3;--plate-top:#c5f2b4;--plate-bottom:#8bd9a4;color:#12332d}
.catch-actions:has(#protect-catch:not([hidden])) .hold-action {grid-column:auto}
.trophy-stage {position:fixed;inset:0;z-index:20;color:#fff3d6}
.trophy-stage canvas {position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}
.trophy-stage > div {
  position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:6%;right:6%;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.trophy-stage p {
  color:#fff1ca;font:clamp(15px,3vw,26px)/1.25 var(--pixel);
  margin:0;text-shadow:0 2px 0 #082132,0 3px 12px #031323;padding:10px;background:#0b2436c2;
}
.trophy-stage button {min-height:44px}
.event-content .event-actions {flex-wrap:wrap}
.offline-replay {color:#adf4d8;font-weight:650}
#menu-layer .fm-nav button {min-height:44px}
#menu-layer .fm-nav button[data-act="close"] {color:#ffe6a9}
#menu-layer .fm-nav button[data-act="close"] img {display:block}
.fishing-touch .fm-nav {grid-template-columns:repeat(7,minmax(0,1fr))}
#menu-layer .fm-button[aria-pressed="true"] {border-color:#fece7c;color:#ffe3ac;background:#27454c}
.first-fish {padding:12px;border:1px solid #6ec8b5;border-left-width:4px;background:#153d46}
.first-fish p {margin:4px 0 9px;color:#cae7dc}
.first-fish > button {margin-top:8px}
.fm-collections {border:1px solid #38616c;padding:8px 10px;margin-bottom:9px}
.fm-collections > summary {font-weight:650;color:#fbdfab;cursor:pointer}
.fm-collections .log-sets {margin-top:8px}
.log-sets {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,228px),1fr));gap:8px}
.log-set {padding:7px 9px;border:1px solid #466675;background:#0c293b;min-width:0}
.log-set header,.log-pin {display:flex;justify-content:space-between;align-items:center;gap:8px;color:#fff0ce}
.log-set header span,.log-set > small {color:#9adfca}
.log-set-fish {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;text-align:center;margin:6px 0}
.log-set-fish > span {display:grid;font-size:10px;line-height:1.1;justify-items:center}
.log-set-fish img {width:100%;height:29px;object-fit:contain}
.log-set-fish .missing img {filter:brightness(.28) saturate(.25)}
.log-set-fish .missing {color:#b5c9cc}
.log-pin {border-left:3px solid #91deca;padding:6px 8px;margin:8px 0;background:#183a47}
.lure-preview {display:grid;gap:6px;padding:11px;border:1px solid #ae855f;background:#3b3038}
.lure-preview h3,.lure-preview p {margin:0}
.variant-entry {display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid #8076a4;background:#2b3247}
.variant-entry img {width:68px;height:42px;object-fit:contain}
.variant-entry small {display:block;color:#bad0da}
.fm-tank .fm-scene-label {z-index:5}
.fm-compact-tray {display:grid;gap:5px}
.fm-compact-tray .fm-inventory {min-height:0;display:flex;align-items:center;gap:5px;padding:3px 5px}
.fm-compact-tray .fm-inv-fish {flex:1;min-width:0;padding:2px 3px;display:flex;align-items:center;text-align:left}
.fm-compact-tray .fm-tray-portrait {width:63px;height:43px;min-width:54px}
.fm-compact-tray .fm-tray-portrait .fm-fish {width:100%;height:100%;object-fit:contain}
.fm-compact-tray .fm-inv-copy {min-width:0;padding-left:4px}
.fm-compact-tray .fm-inv-copy small {font:11px/1.15 system-ui,sans-serif;white-space:normal}
.fm-compact-tray .fm-quantity {font-size:11px;bottom:0;right:0}
.fm-compact-tray .fm-inv-actions {padding:0;border:0}
.fm-compact-tray .fm-inv-actions button {padding-inline:10px}
.fm-tray-controls {display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:8px 0}
.fm-older-catch,.daily-row,.keeper-order {display:flex;align-items:center;justify-content:space-between;gap:8px}
.fm-older-catch .fm-fish,.keeper-order .fm-fish {width:60px;height:46px;flex:none;object-fit:contain}
.fm-older-catch {flex-wrap:wrap}
.keeper-order {justify-content:flex-start}
.keeper-order small,.daily-row small {display:block;color:#a2d4c7}
.keeper-panel {border-color:#b89157;background:linear-gradient(150deg,#263d49,#29343d)}
.jelly-preview {flex:0 0 25px;height:22px;background:#f098df;box-shadow:0 0 18px #da7ac780;
  clip-path:polygon(17% 9%,23% 0,77% 0,83% 9%,100% 39%,100% 59%,86% 59%,86% 95%,77% 95%,77% 59%,55% 59%,55% 100%,44% 100%,44% 59%,22% 59%,22% 95%,13% 95%,13% 59%,0 59%,0 39%)}
#menu-layer textarea {width:100%;padding:7px;border:1px solid #4f7481;background:#0b2638;color:#ffefd0;resize:vertical}
.mini-controls {position:absolute;right:9px;top:9px;z-index:4;display:flex;gap:6px}
.mini-controls button {min-height:34px;padding:6px 11px;font-size:13px}
#mini-event {--plate-rim:#f3c772;--plate-top:#554933}
.mini-window #fishing-screen .home-nav,.mini-window #fishing-screen .head-hud,
.mini-window .boat-hunt,.mini-window .catch-card {display:none}
.mini-window #fishing-screen #landscape {width:max(100vw,177.78vh);height:max(100vh,56.25vw);left:50%;top:57%}
.mini-window #fishing-screen .fishing-controls {
  left:auto;right:8px;bottom:10px;transform:none;width:46%;min-width:0;
  display:grid;grid-template-columns:1fr 1fr;gap:4px;z-index:4;
}
.mini-window .cast-wrap,.mini-window .auto-wrap {min-width:0}
.mini-window #cast-button,.mini-window #auto-button {min-width:0;width:100%;height:33px;font-size:14px;padding:2px 6px}
.mini-window #cast-button img,.mini-window .control-hint {display:none}
.mini-window #auto-badge {margin-left:3px;font-size:10px}
.mini-window #fishing-screen .tray-button,.mini-window #fishing-screen .haul-popup {
  max-width:50%;bottom:10px;left:8px;min-height:34px;padding:4px 7px;
}
.mini-window .tray-button .eyebrow,.mini-window #haul-overline,.mini-window #haul-others {font-size:9px}
.mini-window #tray-name,.mini-window #haul-name {font-size:14px}
.mini-window #tray-art,.mini-window #haul-art {width:35px;height:29px;margin:0}
.mini-window #haul-detail,.mini-window .right-arrow {display:none}
.mini-window .tray-button {pointer-events:none}
@media (max-width:700px) {
  .trophy-stage > div {align-items:flex-end}
  .trophy-stage p {max-width:65%}
  #menu-layer .fm-nav {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;padding-inline:4px;justify-content:stretch}
  #menu-layer .fm-nav button {font:650 clamp(8px,2.3vw,12px)/1.08 system-ui,sans-serif;min-width:0;min-height:44px;
    flex-direction:column;white-space:normal;text-align:center;gap:2px;padding:3px 1px}
  #menu-layer .fm-nav img {display:block;width:21px;height:19px;margin:0}
  .boat-hunt {top:61px;left:10px}
  #menu-layer .fm-slot .fm-actions {flex-direction:column;min-width:0;align-items:stretch}
  #menu-layer .fm-slot .fm-actions .fm-button {font-size:11px;min-height:34px;padding:4px 7px}
}
@media (max-width:420px) {
  .fishing-touch .catch-card:has(#catch-record:not([hidden])) .catch-illustration {width:52px;height:45px}
  .fm-compact-tray .fm-tray-portrait {width:55px}
}
@media (orientation:portrait) {
  .fishing-touch #fishing-screen[data-spot="ocean"].show-lighthouse {--scene-shift:.34}
  .fishing-touch #fishing-screen #landscape {transition:left .65s ease}
}
@media (prefers-reduced-motion:reduce) {
  .fishing-touch #fishing-screen #landscape {transition:none}
}
