/* ---------- рыбалка, кладовая, рынок, огород, старая карта (js/activities.js) ---------- */

/* полоска натяжения лески справа от прицела */
#fishUI {
  position: absolute; left: calc(50% + 34px); top: calc(50% - 64px); z-index: 5;
  display: flex; gap: 9px; align-items: center; pointer-events: none; zoom: var(--ui, 1);
  text-shadow: var(--tshadow);
}
#fishUI.hidden, #actProg.hidden { display: none; }
.fu-bar {
  position: relative; width: 12px; height: 118px; border-radius: 99px; flex-shrink: 0;
  background: linear-gradient(0deg, rgba(120, 165, 225, .55) 0 10%, rgba(147, 214, 111, .5) 10% 86%, rgba(255, 105, 85, .8) 86% 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 2px 10px rgba(0, 0, 0, .45);
}
.fu-bar i { display: none; }
.fu-mark {
  position: absolute; left: -5px; right: -5px; bottom: 40%; height: 4px; margin-bottom: -2px;
  background: #fff; border-radius: 3px; box-shadow: 0 0 6px rgba(0, 0, 0, .6); transition: bottom .08s linear;
}
.fu-mark.red { background: #ff5a4a; animation: fuBlink .25s infinite alternate; }
.fu-mark.slack { background: #9ec8ff; }
.fu-info { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.fu-name { font-weight: 700; font-size: 14px; white-space: nowrap; }
.fu-prog { width: 150px; height: 6px; border-radius: 99px; overflow: hidden; background: rgba(10, 14, 9, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.fu-prog span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6fb0e0, #93d66f); transition: width .1s linear; }
.fu-tip { font-size: 13px; color: var(--text-dim, #ddd); white-space: nowrap; }
#fishUI.fu-wait, #fishUI.fu-bite { top: calc(50% - 22px); }
#fishUI.fu-wait .fu-bar, #fishUI.fu-wait .fu-prog, #fishUI.fu-bite .fu-bar, #fishUI.fu-bite .fu-prog { display: none; }
#fishUI.fu-wait .fu-name { font-weight: 500; font-size: 13px; opacity: .85; }
#fishUI.fu-bite .fu-name { color: #ffd772; font-size: 19px; animation: fuPulse .3s infinite alternate; }
@keyframes fuBlink { from { opacity: 1; } to { opacity: .35; } }
@keyframes fuPulse { from { transform: scale(1); } to { transform: scale(1.12); } }

/* прогресс: сверлим лунку, копаем трюфель */
#actProg {
  position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); z-index: 5;
  width: 190px; text-align: center; font-size: 13px; pointer-events: none; zoom: var(--ui, 1); text-shadow: var(--tshadow);
}
.ap-bar { margin-top: 5px; height: 6px; border-radius: 99px; overflow: hidden; background: rgba(10, 14, 9, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.ap-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent, #eaa53f), var(--accent-hi, #f6c167)); }
body:not(.inday) #fishUI, body:not(.inday) #actProg { display: none !important; }

/* панели: кладовая, грядка, рынок */
.act-panel { width: min(470px, calc(92vw / var(--ui, 1))); }
.act-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 14px;
}
.act-row .act-price { min-width: 64px; text-align: right; font-size: 13px; color: var(--text-dim, #ccc); font-variant-numeric: tabular-nums; }
.act-mul { font-weight: 600; font-variant-numeric: tabular-nums; }
.act-mul.up { color: var(--good, #93d66f); }
.act-mul.down { color: var(--bad, #ff7f6e); }
.act-tag { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.act-tag.up { background: rgba(147, 214, 111, .18); color: var(--good, #93d66f); }
.act-tag.down { background: rgba(255, 127, 110, .16); color: var(--bad, #ff7f6e); }
.act-off { opacity: .5; }
.act-station { margin: 8px 0; padding: 8px 10px; border: 1px solid var(--line, rgba(255, 255, 255, .14)); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.act-st-h { margin-bottom: 7px; }
.act-btn {
  background: rgba(234, 165, 63, .16); color: var(--accent-hi, #f6c167); border: 1px solid rgba(234, 165, 63, .45);
  border-radius: 9px; padding: 6px 12px; font-size: 13px; font-family: inherit; cursor: pointer; transition: background .15s;
}
.act-btn:hover:not(:disabled) { background: rgba(234, 165, 63, .3); }
.act-btn:disabled { opacity: .42; cursor: default; }
.act-run { font-size: 13px; }
.act-pbar { margin-top: 6px; height: 5px; border-radius: 99px; overflow: hidden; background: rgba(0, 0, 0, .35); }
.act-pbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent, #eaa53f), var(--accent-hi, #f6c167)); }
.act-sell { margin-top: 12px; }
.act-seed .act-btn { min-width: 72px; }

/* вкладки «Книги грибника» */
.act-tab { font-size: 14px; line-height: 1.45; }
.act-tab h4 { margin: 14px 0 6px; color: var(--accent-hi, #f6c167); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.act-ach { display: flex; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; opacity: .5; }
.act-ach.on { opacity: 1; }
canvas.act-map {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 8px 0; border-radius: 10px;
  background: #2a2018; box-shadow: inset 0 0 0 1px var(--line, rgba(255, 255, 255, .14)), 0 6px 18px rgba(0, 0, 0, .35);
}
