/* ---- rybaření a jídlo */
.fish-box { border: 2px solid #2a4a6a; background: linear-gradient(#10202e, #0b1620); padding: 8px 10px; margin: 8px 0; box-shadow: inset 0 0 0 1px #000; }
.fish-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fish-name { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.fish-name img { width: 24px; height: 24px; }
.fish-water { position: relative; height: 30px; margin: 6px 0; background: repeating-linear-gradient(90deg, #13324a 0 18px, #173a55 18px 36px); border: 1px solid #000; overflow: hidden; }
.fish-bob { position: absolute; left: 50%; top: 9px; width: 10px; height: 12px; background: linear-gradient(#ff4040 0 50%, #f0f0f0 50%); border: 1px solid #000; display: none; }
.fish-box.casting .fish-bob { display: block; animation: bob 1.4s ease-in-out infinite; }
.fish-box.bite .fish-bob { display: block; animation: bite 0.18s linear infinite; top: 14px; }
.fish-box.bite { border-color: #ff5050; box-shadow: 0 0 14px rgba(255, 80, 80, .6), inset 0 0 0 1px #000; }
.fish-box.bite .fish-hook { animation: pulse 0.3s ease-in-out infinite alternate; background: #a02020; border-color: #ff8080; }
.fish-box.bite #fish-msg { color: #ff8080; font-weight: bold; font-size: 14px; }
.fish-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; }
.fish-bar > div { height: 100%; width: 0; background: #ff6a5f; }
.fish-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes bite { 0% { transform: translate(-2px, 2px); } 50% { transform: translate(2px, 5px); } 100% { transform: translate(-2px, 2px); } }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.08); } }
.food-buff { margin-top: 4px; color: #ffcf7a; cursor: help; }
/* Full RD-07 fishing view; the server still decides every catch. */
.fishing-page .fishing-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fishing-page .fishing-heading > span { color: #e5c990; font-size: 17px; }
.fishing-page .fish-box { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; margin: 0; padding: 12px; border-color: #b48d4f; background: #08161e; }
.fishing-page .fish-water { flex: 1 1 auto; min-height: 20px; height: auto; margin: 0; border: 1px solid #8b794d; background: linear-gradient(#071d3133,#0d385d44),var(--fish-scene) center/cover; }
.fishing-page .fish-bob { top: 67%; width: 13px; height: 19px; border-radius: 50%; box-shadow: 0 0 0 8px #9df0ff30; }
.fishing-page .fish-box.bite .fish-bob { top: 67%; }
.fishing-page #fish-msg { text-align: center; font-size: 25px; color: #f8e3b9; margin: 0; min-height: 32px; }
.fishing-page .fish-box.bite #fish-msg { font-size: 25px; color: #a3f5ff; }
.fishing-page .fish-bar { position: relative; flex: 0 0 auto; height: 14px; width: 85%; margin: 0 auto; background: #07131c; border: 1px solid #c69d4b; }
.fishing-page .fish-bar > div { background: linear-gradient(#94faff,#0dbed2); }
.fishing-page .fish-acts { justify-content: center; gap: 14px; flex: 0 0 auto; }
.fishing-page .fish-acts .btn { flex: 1; min-height: 58px; font-size: 23px; max-width: 350px; }
.fishing-page .fish-acts kbd { font: 14px Arial,sans-serif; padding: 2px 5px; border: 1px solid #ae9564; }
.fishing-page .fish-box.bite .fish-hook { background: linear-gradient(#1d6174,#0c2f3f); border-color: #74edff; animation: none; box-shadow: 0 0 12px #45dff766; }
.fishing-page .fish-box.bite { border-color: #74edff; box-shadow: inset 0 0 12px #45dff733; }
.fish-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; min-height: 0; flex: 1; }
.fish-catalog-item { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; min-height: 0; padding: 12px; border: 1px solid #9b804d; background: #0b2028; text-align: center; }
.fish-catalog-item img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.fish-catalog-item p, .fish-catalog-item span { font-size: 16px; }
.fish-footer { display: flex; gap: 10px; flex: 0 0 auto; }
.fish-footer .btn { flex: 1; }
body[data-mobile="true"] .fishing-page .fishing-heading { display: block; }
body[data-mobile="true"] .fishing-page .fishing-heading > span { font-size: 15px; }
body[data-mobile="true"] .fishing-page .fish-box { padding: 8px; gap: 9px; }
body[data-mobile="true"] .fishing-page .fish-acts { flex-direction: column; gap: 8px; }
body[data-mobile="true"] .fishing-page .fish-acts .btn { width: 100%; flex: 0 0 auto; min-height: 50px; font-size: 22px; }
body[data-mobile="true"] .fishing-page #fish-msg, body[data-mobile="true"] .fishing-page .fish-box.bite #fish-msg { font-size: 21px; }
body[data-mobile="true"] .fish-catalog-item { padding: 7px; }
.fish-catalog-item:only-child { grid-column: 1 / -1; }
@container (max-height: 390px) {
  .fishing-page .fish-box { gap: 5px; padding: 5px; }
  .fishing-page #fish-msg, .fishing-page .fish-box.bite #fish-msg { font-size: 18px !important; min-height: 0; }
  .fishing-page .fish-acts { flex-direction: row !important; gap: 6px; }
  .fishing-page .fish-acts .btn { min-height: 44px !important; flex: 1 !important; font-size: 17px !important; }
  .fishing-page .fishing-heading h2 { font-size: 22px; }
}
@container (max-height: 310px) and (min-width: 471px) {
  .fishing-page { display: grid; grid-template-columns: 145px minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) 44px; gap: 5px 9px; }
  .fishing-heading { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start !important; }
  .fishing-page > .rd07-tabs { grid-column: 1; grid-row: 2; flex-direction: column; align-self: start; }
  .fishing-page > .fish-box, .fishing-page > .fish-catalog { grid-column: 2; grid-row: 1 / 3; }
  .fishing-page > .rd07-pager { grid-column: 2; grid-row: 3; }
  .fishing-page > .fish-footer { grid-column: 1; grid-row: 3; }
  .fishing-page .fish-footer .btn { font-size: 12px; padding: 3px; }
  .fishing-page .fish-footer [data-goto="inv"] { display: none; } /* global Inventory remains visible */
  .fishing-page .fish-catalog-item img { width: 40px; height: 40px; }
}
