/* Fishing and tackle */
#fishing-screen.cinematic .head-hud,
#fishing-screen.cinematic .home-nav,
#fishing-screen.cinematic .boat-hunt,
#fishing-screen.cinematic .tray-button,
#fishing-screen.cinematic .fishing-controls { opacity:0; pointer-events:none; }
#cast-meter { display:none; }
#fishing-screen .cast-button:disabled { cursor:default; }
#fishing-screen .catch-card { max-height:calc(100% - 150px); overflow:auto; overscroll-behavior:contain; }
#catch-card .catch-actions { display:flex; flex-wrap:wrap; gap:6px 12px; }
#catch-card .catch-actions > * { margin:0; }
#catch-card .hold-action { padding:6px 1px; }
#catch-card .catch-description { min-width:0; }
#catch-odds { font-variant-numeric:tabular-nums; }
.tackle-panel { grid-template-columns:minmax(56px,86px) minmax(0,1fr); align-items:center; gap:14px; padding:14px; }
.tackle-panel > img,.tackle-rig img,.tackle-items img { object-fit:contain; image-rendering:pixelated; }
.tackle-panel > img { width:100%; max-height:92px; }
.tackle-panel > div { display:grid; justify-items:start; gap:7px; }
.tackle-panel p,.tackle-panel small { line-height:1.4; }
#menu-layer .tackle-panel strong { color:#ffdd9d; }
.tackle-rig { display:flex; align-items:center; gap:13px; }
.tackle-rig img { width:76px; height:55px; background:#0e2534; border:1px solid #446579; }
.tackle-rig small,.tackle-panel small { display:block; color:#c8d7ce; }
.tackle-items { display:flex; flex-wrap:wrap; gap:8px; }
.tackle-items img { width:35px; height:27px; }
/* Each foreground ornament is an illustrated, transparent object in the glass. */
#menu-layer .fm-tank { width:100%; min-height:0; height:auto; aspect-ratio:1.44; isolation:isolate; }
.fm-tank .tank-background { object-fit:cover; object-position:center bottom; width:100%; height:100%; }
.tank-props { position:absolute; inset:0; z-index:3; pointer-events:none; }
.fm-tank .tank-light-beam { z-index:1; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse 36% 73% at var(--beam-x,55%) var(--beam-y,12%),#f5ffbf43,#b5fff124 32%,transparent 78%);
  mix-blend-mode:screen; }
#menu-layer .tank-piece { position:absolute; display:block; margin:0; padding:0; border:0; background:none;
  appearance:none; border-radius:0; box-shadow:none; min-width:0; min-height:0; line-height:0;
  transform:translate(-50%,-100%); touch-action:none; -webkit-user-select:none; user-select:none; }
#menu-layer .tank-piece[hidden],.tank-light-beam[hidden] { display:none; }
.tank-piece img { display:block; width:100%; height:auto; image-rendering:pixelated; pointer-events:none; }
.fm-tank .fm-scene-label { top:12px; right:auto; bottom:auto; left:12px; pointer-events:none; }
#menu-layer .fm-tank.arranging { touch-action:none; cursor:crosshair; outline:2px solid #e5c876; outline-offset:-3px; }
#menu-layer .fm-tank.arranging .tank-piece { cursor:grab; filter:drop-shadow(0 1px 0 #8fd9c99c); }
#menu-layer .fm-tank.arranging .tank-piece[aria-pressed=true],
#menu-layer .fm-tank.arranging .tank-piece:focus-visible { outline:0; filter:drop-shadow(-1px 0 #fff1b1) drop-shadow(1px 0 #fff1b1) drop-shadow(0 2px 1px #634736); }
#menu-layer .fm-tank.dragging,#menu-layer .fm-tank.dragging .tank-piece { cursor:grabbing; }
.decor-tools { display:grid; gap:10px; }
.decor-tools p { color:#c4d8d7; line-height:1.4; }
.decor-shelf { display:grid; grid-template-columns:repeat(auto-fill,minmax(70px,1fr)); gap:5px; }
#menu-layer .decor-shelf button { position:relative; display:grid; grid-template-rows:35px 1fr; gap:4px; justify-items:center;
  align-items:center; background:#102d3b; border:1px solid #496674; color:#f4ead0; padding:5px 3px; min-height:63px; font:12px/1.1 system-ui,sans-serif; }
#menu-layer .decor-shelf button[aria-pressed=true] { border-color:#e7c67a; background:#36504b; }
.decor-shelf button img { width:100%; height:35px; object-fit:contain; image-rendering:pixelated; pointer-events:none; }
.decor-shelf button b { position:absolute; top:1px; right:4px; color:#e7c67a; }
.aquarium-tools > .fm-button { align-self:flex-start; }
.tray-card-face { display:grid; grid-template-columns:38% minmax(0,1fr); align-items:stretch; flex:1; }
.dock-tray-grid .fm-tray-portrait { min-height:84px; }
.dock-tray-grid .fm-tray-portrait img { height:68px; object-fit:contain; image-rendering:pixelated; }
.dock-tray-grid .fm-inv-copy { gap:4px; align-content:center; }
.dock-tray-grid .fm-inv-copy strong { font:17px/1.1 var(--fm-pixel); }
.dock-tray-grid .fm-inv-actions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:6px; }
#menu-layer .protected-count { color:#b3e7ce; }
@media (max-width:680px) {
  #menu-layer .fm-tank { aspect-ratio:1.6; height:auto; min-height:0; }
  .fm-tank .fm-scene-label { top:6px; left:6px; padding:4px 6px; gap:1px; }
  .fm-tank .fm-scene-label strong { font-size:15px; }
  .fm-tank .fm-scene-label span { font-size:12px; }
  .dock-tray-grid { gap:9px; }
}
.fishing-touch #fishing-screen .catch-card { max-height:calc(100% - var(--catch-bottom) - var(--touch-top) - 12px); }
.fishing-touch #fishing-screen .catch-card:not([hidden]) { display:flex; flex-direction:column; overflow:hidden; }
.fishing-touch .catch-scroll { min-height:0; overflow:auto; overscroll-behavior:contain; }
.fishing-touch #catch-card .catch-actions { flex:none; border-top:1px solid #527079; padding-top:6px; }
.fishing-touch #hold-catch { z-index:1; }
@media (max-height:545px) {
  #fishing-screen .catch-card { max-height:calc(100% - 88px); }
}
#catch-companions { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
#catch-companions[hidden] { display:none; }
.companion-catch { font:600 12px/1.3 system-ui,sans-serif; padding:5px 8px; color:#dff7e7;
  border:1px solid #688e93; background:#163d4d; cursor:pointer; }
.fishing-touch .cast-button:not(:disabled) + #cast-hint { visibility:visible; }
.fm-fishing-help summary { width:fit-content; cursor:pointer; color:#d3e6da; }
#menu-layer .fm-fishing-help p { margin-top:7px; color:#b9cfce; line-height:1.45; }
.event-overlay { grid-template-columns:minmax(0,1fr); align-items:safe center; overscroll-behavior:contain; }
.event-content { min-width:0; box-sizing:border-box; }
.event-content .event-stat { min-width:0; }
@media (max-width:440px) {
  .event-overlay .event-content { padding:18px 15px; }
  .event-overlay .event-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .event-overlay .event-stat { padding:8px; }
  .event-overlay .event-stat strong { font-size:20px; }
}
