/* nv_harbor — ветка nav-redesign (45_NAVIGATION.md, вариант Б; макет «6_Гавань_компактно», 12.10): вкладка «Гавань»
   (js/screens/harbor.js). После harbor.css: берёт его hbRise, hb-sea, hb-club. Без новых backdrop-filter,
   анимации — только transform/opacity (42_PERFORMANCE.md). */

/* «Снасти» и «Аукцион» — две плитки в одной строке, без кнопок */
.hb-duo { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hb-duo.one { grid-template-columns: minmax(0, 1fr); }
.hb-tile { position: relative; height: 128px; border-radius: 20px; overflow: hidden; cursor: pointer; background: #0d1d21;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 12px 26px rgba(3, 10, 12, .3); transition: transform .18s var(--ease); }
.hb-tile:active { transform: scale(.97); }
.hb-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hb-tile::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 14, 16, .82) 0%, rgba(6, 14, 16, .42) 52%, rgba(6, 14, 16, .12) 100%); }
.hb-tile .in { position: absolute; left: 14px; right: 10px; top: 13px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.hb-tile .t { font-size: 34px; line-height: .88; color: var(--ink); padding-right: .1em; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.hb-tile .d { font-size: 12.5px; font-weight: 600; line-height: 1.25; color: rgba(246, 243, 236, .88); text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }

/* торговцы — сеткой лиц, 4 в ряд */
.hb-faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 4px; }
.hb-tr { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer;
  transition: transform .18s var(--ease); }
.hb-tr:active { transform: scale(.94); }
.hb-tr-f { position: relative; width: 64px; height: 64px; flex: none; }
.hb-tr-f img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(246, 243, 236, .24);
  box-shadow: 0 8px 18px rgba(3, 10, 12, .35); }
.hb-tr.mark .hb-tr-f img { border-color: var(--accent); }
.hb-tr-q { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 17px; line-height: 1; box-shadow: 0 0 0 2px rgba(8, 20, 24, .85); }
.hb-tr .nm { margin-top: 7px; max-width: 100%; font-size: 18px; line-height: 1; color: var(--ink); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; padding-right: .1em; }
.hb-tr .mt { margin-top: 3px; max-width: 100%; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: rgba(246, 243, 236, .66);
  overflow-wrap: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hb-tr .mt.do { color: var(--ink); font-weight: 700; }
.hb-tr .rw { margin-top: 3px; display: inline-flex; align-items: center; gap: 3px; font-family: var(--f-display); font-style: italic; font-weight: 900;
  font-size: 15px; line-height: 1; white-space: nowrap; }
.hb-tr .rw svg { width: 11px; height: 11px; flex: none; }
.hb-tr .rw.gold { color: var(--accent); }
.hb-tr .rw.mint { color: var(--aqua); }
.hb-tr.locked .hb-tr-f img { filter: grayscale(1) brightness(.55); border: 1.5px dashed rgba(246, 243, 236, .3); box-shadow: none; }
.hb-tr.locked .nm, .hb-tr.locked .mt { color: rgba(246, 243, 236, .5); }
/* дело стало готово с прошлого захода — мятное кольцо один раз расходится от лица */
.hb-tr.fresh .hb-tr-f::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--aqua); pointer-events: none;
  opacity: 0; animation: hbTrFresh 1.3s ease-out .9s both; }
@keyframes hbTrFresh { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }

/* своё хозяйство — плитки 3 в ряд: фото и название */
.hb-own3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hb-ot { position: relative; height: 96px; border-radius: 16px; overflow: hidden; cursor: pointer; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13); transition: transform .18s var(--ease); }
.hb-ot:active { transform: scale(.96); }
.hb-ot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-ot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 14, 16, 0) 38%, rgba(6, 14, 16, .85) 100%); }
.hb-ot .nm { position: absolute; left: 8px; right: 4px; bottom: 8px; z-index: 1; font-size: 18px; line-height: .92; color: var(--ink);
  overflow-wrap: break-word; padding-right: .1em; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.hb-ot.locked { background: rgba(255, 255, 255, .03); border: 1px dashed rgba(246, 243, 236, .26); }
.hb-ot.locked::after { display: none; }
.hb-ot .lk { position: absolute; left: 0; right: 0; top: 16px; display: grid; place-items: center; color: rgba(246, 243, 236, .42); }
.hb-ot .lk svg { width: 24px; height: 24px; }
.hb-ot.locked .nm { bottom: 24px; color: rgba(246, 243, 236, .55); text-shadow: none; }
.hb-ot small { position: absolute; left: 9px; right: 6px; bottom: 8px; font-size: 11px; font-weight: 600; line-height: 1.2; color: rgba(246, 243, 236, .5); }

/* клуб: «Клуб «Мормышка»» — название длиннее, шрифт чуть меньше */
.hb .hb-club .nm { font-size: 25px; line-height: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: .1em; }

/* появление: плитки, лица волной */
.hb.intro .hb-tile { animation: hbRise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(140ms + var(--i, 0) * 80ms); }
.hb.intro .hb-tr { animation: hbRise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(240ms + var(--i, 0) * 45ms); }
.hb.intro .hb-ot { animation: hbRise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(480ms + var(--i, 0) * 50ms); }

/* «Выйти в море» / «На дело» — картинка во всю карточку (владелец 12.10: «нету картинки вообще»): текст слева на тёмном,
   лодка справа. Карточка непрозрачна — стекло (backdrop-filter) под ней не нужно */
.hb-sea.pic { min-height: 150px; overflow: hidden; -webkit-backdrop-filter: none; backdrop-filter: none;
  background: linear-gradient(90deg, rgba(6, 14, 16, .9) 0%, rgba(6, 14, 16, .66) 42%, rgba(6, 14, 16, .06) 80%), var(--pic) center 60% / cover; }
.hb-sea.pic .hb-sea-t, .hb-sea.pic .hb-time b { text-shadow: 0 3px 16px rgba(0, 0, 0, .55); }
