/* «Туман»: внутренние страницы — торговцы, магазин, Причал, трофеи, аквариум, фракции, клуб, профиль.
   Разметка — js/core/tp.js (корень <div class="tp">), появление — nav.js (dressPage). После tabs.css:
   берёт из harbor.css hbRise/hbFade/hbGrow/hbPop/hbFlow/hbSweep/hbKen и .hb-shine, из tuman.css tmWordIn,
   tmStickerIn, tmMetal, fxSun, fxSpin. Темы раздела — класс .theme-* на странице (def.theme в nav). */

/* ── каркас: крупный заголовок над фото, шапка проявляется при прокрутке ── */
.page .page-scroll { padding-left: 18px; padding-right: 18px; }
.page.has-title .page-hero { height: calc(var(--safe-top) + 330px); }
.page.has-title .page-scroll.with-hero { padding-top: calc(var(--safe-top) + 176px); }
.page.has-title .page-scroll:not(.with-hero) { padding-top: calc(var(--safe-top) + 58px); }
.page.has-title .page-hero::after { background: linear-gradient(180deg, rgba(6, 14, 16, .55) 0%, rgba(6, 14, 16, 0) 26%, rgba(6, 14, 16, 0) 48%,
  rgba(6, 14, 16, .7) 84%, rgba(6, 14, 16, .9) 100%); }
.page.has-title .page-head { background: none; }
.page.has-title .page-head::before { opacity: 0; transition: opacity .3s; }
.page.has-title .page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(180deg, rgba(6, 14, 16, .88) 0%, rgba(6, 14, 16, .56) 62%, rgba(6, 14, 16, 0)); }
.page.has-title.scrolled .page-head::before, .page.has-title.scrolled .page-head::after { opacity: 1; }
.page.has-title .page-title { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.page.has-title.scrolled .page-title { opacity: 1; transform: none; }
.tp { position: relative; padding-bottom: 8px; }
.tp .tm-sec { margin-top: 26px; }

/* ── заголовок и реплика ── */
.tp-head { position: relative; padding-top: 4px; }
.tp-head .tm-daylabel { color: rgba(246, 243, 236, .82); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.tp-word { margin: 8px 0 0; font-size: min(calc(var(--tp-n, 88) * 1px), calc(var(--tp-n, 88) * 100vw / 390)); line-height: .8; letter-spacing: -.02em;
  white-space: nowrap; text-shadow: 0 10px 34px rgba(4, 12, 14, .5); }
.tp-head .tm-dayline { margin-top: 10px; font-size: 25px; text-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.tp-head .tm-dayline svg { width: 20px; height: 20px; vertical-align: -3px; }
.tp-sticker { top: 18px; }
.tp-sticker b { font-size: 30px; white-space: nowrap; }
.tp-say { position: relative; margin-top: 18px; padding: 11px 14px 12px; border-radius: 6px 18px 18px 18px; font-size: 14.5px; line-height: 1.42;
  color: rgba(246, 243, 236, .92); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 12px 30px rgba(3, 10, 12, .25); }
.tp-say .who { display: block; margin-bottom: 1px; font-size: 16px; color: var(--accent); }
.tp-say .txt { font-style: italic; }
.tp-say .txt.typing::after { content: "▍"; margin-left: 1px; color: var(--accent); animation: tpBlink .8s steps(2) infinite; }
@keyframes tpBlink { 50% { opacity: 0; } }

/* ── строки ── */
.tp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tp-row { position: relative; overflow: hidden; width: 100%; min-height: 76px; border-radius: 20px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; padding: 10px 14px 10px 10px; text-align: left; color: var(--ink); background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  transition: transform .18s var(--ease), background .2s, opacity .3s; }
.tp-row.ico-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
.tp-row.noimg { grid-template-columns: minmax(0, 1fr) auto; padding-left: 16px; }
.tp-row.tap { cursor: pointer; }
.tp-row.tap:active { transform: scale(.975); }
.tp-row.hl { background: rgba(255, 255, 255, .15); border-color: var(--accent); box-shadow: 0 12px 30px rgba(4, 12, 14, .28); }
.tp-row.hl::after, .tp-card.hl::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background-size: 300% 100%;
  background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 244, 214, .2) 50%, rgba(255, 255, 255, 0) 58%);
  animation: hbSweep 4.6s ease-in-out 1.4s infinite; }
.tp-row.mint { border-color: rgba(169, 228, 208, .6); background: rgba(169, 228, 208, .1); }
.tp-row.red { border-color: rgba(242, 154, 142, .55); background: rgba(242, 154, 142, .1); }
.tp-row.locked { background: none; border: 1px dashed rgba(246, 243, 236, .28); -webkit-backdrop-filter: none; backdrop-filter: none; color: rgba(246, 243, 236, .55); }
.tp-row.locked .tp-th { filter: grayscale(1) brightness(.6); }
.tp-row.dim { opacity: .55; }
.tp-row.gone { animation: tpOut .5s ease-in both !important; }
.tp-row.ph { min-height: 82px; grid-template-columns: minmax(0, 1fr) 106px; gap: 10px; padding: 0 0 0 16px; }
.tp-ph { position: relative; align-self: stretch; background-size: cover; background-position: center; transition: transform .5s var(--ease); }
.tp-ph-r { position: absolute; right: 8px; bottom: 8px; }
.tp-th { position: relative; width: 56px; height: 56px; flex: none; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: rgba(8, 18, 20, .45) center / cover no-repeat; }
.tp-th.round { border-radius: 50%; }
.tp-th img { width: 100%; height: 100%; object-fit: cover; }
.tp-th.contain { background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 72%); }
.tp-th.contain img { width: 94%; height: 94%; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .4)); }
.tp-th.ico { width: 44px; height: 44px; border-radius: 14px; background: rgba(243, 210, 139, .12); color: var(--accent); }
.tp-th.ico svg { width: 22px; height: 22px; }
.tp-th.ico.mint { background: rgba(169, 228, 208, .14); color: var(--aqua); }
.tp-th.ico.red { background: rgba(242, 154, 142, .14); color: var(--red); }
.tp-th.ico.violet { background: rgba(201, 182, 255, .16); color: var(--violet); }
.tp-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tp-tx b { font-size: 23px; line-height: .98; }
.tp-tx small { font-size: 12.5px; font-weight: 600; line-height: 1.32; color: rgba(246, 243, 236, .76); }
.tp-tx small svg, .tp-card-s svg, .tp-note svg, .tp-say svg, .tp-card-k svg, .tp-tile small svg, .tp-tile b svg, .tp-card-t svg,
.tp-tx b svg { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.tp-row.hl .tp-tx small { color: rgba(246, 243, 236, .88); }
.tp-right { display: flex; align-items: center; gap: 6px; }
.tp-chev { color: rgba(246, 243, 236, .55); display: grid; }
.tp-chev svg { width: 20px; height: 20px; }
.tp-ping { position: absolute; right: -1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--aqua); border: 2px solid #12262A;
  animation: hbPing 2s ease-out infinite; }

/* ── значения, фишки, таймеры ── */
.tp-val { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-display); font-style: italic; font-size: 22px; font-weight: 900; white-space: nowrap; }
.tp-val svg { width: 15px; height: 15px; flex: none; }
.tp-val.gold { color: var(--accent); }
.tp-val.mint { color: var(--aqua); }
.tp-val.red { color: var(--red); }
.tp-val.ink { color: var(--ink); }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip { height: 30px; padding: 0 11px; border-radius: 15px; display: inline-flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 800;
  color: var(--ink); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; }
.tp-chip svg { width: 14px; height: 14px; }
.tp-chip.gold { color: var(--accent); border-color: rgba(243, 210, 139, .5); background: rgba(243, 210, 139, .1); }
.tp-chip.mint { color: var(--aqua); border-color: rgba(169, 228, 208, .5); background: rgba(169, 228, 208, .1); }
.tp-chip.red { color: var(--red); border-color: rgba(242, 154, 142, .5); background: rgba(242, 154, 142, .1); }
.tp-timer { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-style: italic; font-size: 17px; font-weight: 800; color: rgba(246, 243, 236, .78); }
.tp-timer b { color: var(--ink); font-weight: 900; }
.tp-timer svg { width: 16px; height: 16px; }
.tp-timer.ok { color: var(--aqua); }
.tp-timer.bad { color: var(--red); }
.tp-note { margin: 14px 2px 0; font-size: 12.5px; line-height: 1.45; color: rgba(246, 243, 236, .62); }
.tp-note b { color: rgba(246, 243, 236, .88); }

/* ── кнопки ── */
.tp-btn { position: relative; overflow: hidden; height: 46px; padding: 0 16px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; font-size: 20px; font-weight: 900; white-space: nowrap; color: var(--accent-ink); background: var(--accent);
  transition: transform .15s var(--ease), opacity .2s, filter .2s; }
.tp-btn:active { transform: scale(.96); }
.tp-btn svg { width: 18px; height: 18px; flex: none; }
.tp-btn[disabled], .tp-btn.off { opacity: .42; pointer-events: none; filter: grayscale(.4); }
.tp-btn.busy { opacity: .7; pointer-events: none; }
.tp-btn.mint { background: var(--aqua); color: #0E2320; }
.tp-btn.ghost { color: var(--ink); background: rgba(255, 255, 255, .08); border: 1px solid var(--stroke-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tp-btn.red { color: var(--red); background: rgba(242, 154, 142, .16); border: 1px solid rgba(242, 154, 142, .6); }
.tp-btn.violet { background: var(--violet); color: #1C1433; }
.tp-btn.dark { background: #1F1A0E; color: #FFE39A; }
.tp-btn.metal { color: #2A1D05; background: linear-gradient(100deg, #C8922F 0%, #FFE39A 35%, #E2AE4C 60%, #FFF0C4 80%, #C8922F 100%); background-size: 220% 100%;
  animation: tmMetal 3.2s linear infinite; box-shadow: 0 0 30px rgba(255, 200, 90, .35), 0 12px 28px rgba(0, 0, 0, .45); }
.tp-btn.sm { height: 38px; padding: 0 12px; border-radius: 12px; font-size: 18px; }
.tp-btn.big { height: 58px; border-radius: 18px; font-size: 24px; box-shadow: 0 12px 28px rgba(3, 10, 12, .4); }
.tp-btn.block { display: flex; width: 100%; }
.tp-btn.pulse { animation: tpPulse 2.2s ease-in-out infinite; }
@keyframes tpPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(243, 210, 139, .5); } 50% { box-shadow: 0 0 0 9px rgba(243, 210, 139, 0); } }
.tp-btn.mint.pulse { animation-name: tpPulseMint; }
@keyframes tpPulseMint { 0%, 100% { box-shadow: 0 0 0 0 rgba(169, 228, 208, .5); } 50% { box-shadow: 0 0 0 9px rgba(169, 228, 208, 0); } }
.tp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-mt { margin-top: 10px; }
.tp-mt2 { margin-top: 18px; }

/* ── карточки ── */
.tp-card { position: relative; overflow: hidden; border-radius: 22px; padding: 14px 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 12px 30px rgba(3, 10, 12, .22); }
.tp-card.gold { border-color: rgba(243, 210, 139, .55); background: linear-gradient(100deg, rgba(243, 210, 139, .16), rgba(255, 255, 255, .05)); }
.tp-card.mint { border-color: rgba(169, 228, 208, .55); background: linear-gradient(100deg, rgba(169, 228, 208, .14), rgba(255, 255, 255, .05)); }
.tp-card.red { border-color: rgba(242, 154, 142, .55); background: linear-gradient(100deg, rgba(242, 154, 142, .14), rgba(255, 255, 255, .04)); }
.tp-card.violet { border-color: rgba(201, 182, 255, .5); background: linear-gradient(100deg, rgba(201, 182, 255, .16), rgba(243, 210, 139, .1)); }
.tp-card-k { font-family: var(--f-display); font-style: italic; font-size: 17px; font-weight: 800; color: var(--accent); }
.tp-card-t { margin-top: 2px; font-family: var(--f-display); font-style: italic; font-size: 30px; font-weight: 900; line-height: .95; }
.tp-card-s { margin-top: 5px; font-size: 13px; font-weight: 600; line-height: 1.38; color: rgba(246, 243, 236, .8); }
/* задание с кольцом: картинка в кольце слева, суть справа */
.tp-task { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; align-items: center; }
.tp-task .tp-ring { width: 136px; height: 136px; }
.tp-task-x { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-task-x .tp-card-t { font-size: 27px; }

/* ── фото-плашка (как «Магазин снастей») ── */
.tp-banner { position: relative; height: 150px; border-radius: 22px; overflow: hidden; cursor: pointer; box-shadow: 0 14px 30px rgba(3, 10, 12, .3);
  transition: transform .18s var(--ease); display: block; width: 100%; text-align: left; color: var(--ink); }
.tp-banner:active { transform: scale(.985); }
.tp-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; animation: hbKen 22s ease-in-out infinite alternate; }
.tp-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 14, 16, .9) 0%, rgba(6, 14, 16, .55) 58%, rgba(6, 14, 16, .1) 100%); }
.tp-banner-in { position: absolute; inset: 16px; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.tp-banner-in > span:first-child { display: flex; flex-direction: column; }
.tp-banner-t { display: block; font-size: 34px; font-weight: 900; line-height: .9; }
.tp-banner-d { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.35; color: rgba(246, 243, 236, .85); max-width: 70%; }

/* ── крупное число и полоска цифр ── */
.tp-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tp-big b { font-size: 72px; font-weight: 900; line-height: .8; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tp-big > span { font-family: var(--f-display); font-style: italic; font-size: 24px; font-weight: 900; color: rgba(246, 243, 236, .65); }
.tp-big.gold b { color: var(--accent); }
.tp-big.mint b { color: var(--aqua); }
.tp-stats { position: relative; overflow: hidden; border-radius: 20px; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.tp-stats > span, .tp-stats > button { padding: 10px 0 12px 14px; display: flex; flex-direction: column; min-width: 0; text-align: left; color: var(--ink); }
.tp-stats > * + * { border-left: 1px solid rgba(255, 255, 255, .12); }
.tp-stats > button:active { background: rgba(255, 255, 255, .06); }
.tp-stats b { font-family: var(--f-display); font-style: italic; font-size: 30px; font-weight: 900; line-height: 1; white-space: nowrap; }
.tp-stats small { font-family: var(--f-display); font-style: italic; font-size: 15px; font-weight: 800; color: rgba(246, 243, 236, .68); }
.tp-stats .gold { color: var(--accent); }
.tp-stats .mint { color: var(--aqua); }

/* ── полосы, кольца, точки ── */
.tp-bar { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.tp-bar i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #FFF1C9 60%, var(--accent));
  background-size: 200% 100%; animation: hbFlow 2.8s linear infinite; box-shadow: 0 0 10px rgba(243, 210, 139, .55); }
.tp-bar.mint i { background: linear-gradient(90deg, var(--aqua), #E2FFF6 60%, var(--aqua)); background-size: 200% 100%; box-shadow: 0 0 10px rgba(169, 228, 208, .55); }
.tp-bar.red i { background: linear-gradient(90deg, #E07A6E, var(--red)); box-shadow: 0 0 10px rgba(242, 154, 142, .6); }
.tp-bar.thin { height: 4px; }
.tp-ring { position: relative; width: 156px; height: 156px; flex: none; }
.tp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.tp-ring circle { fill: none; stroke-width: 8; }
.tp-ring .bg { stroke: rgba(255, 255, 255, .12); }
.tp-ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.3s cubic-bezier(.3, .7, .2, 1) .25s; filter: drop-shadow(0 0 6px rgba(243, 210, 139, .55)); }
.tp-ring.done .fg { stroke: var(--aqua); filter: drop-shadow(0 0 7px rgba(169, 228, 208, .6)); }
.tp-ring > img { position: absolute; left: 13%; top: 16%; width: 74%; height: 68%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45));
  animation: pfFloat 4s ease-in-out infinite alternate; }
.tp-ring-l { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); height: 26px; padding: 0 10px; border-radius: 13px; display: flex; align-items: center;
  font-size: 15px; font-weight: 900; white-space: nowrap; color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.tp-ring.done .tp-ring-l { background: var(--aqua); color: #0E2320; }
.tp-ring.bump { animation: tpRingBump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tpRingBump { 40% { transform: scale(1.08); } }
.tp-dots { display: flex; gap: 4px; }
.tp-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.tp-dots i.on { background: var(--aqua); box-shadow: 0 0 8px rgba(169, 228, 208, .7); }

/* ── переключатель разделов ── */
.tp-seg { margin-top: 18px; display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.tp-seg button { flex: 1; min-width: 0; height: 40px; border-radius: 12px; padding: 0 6px; font-family: var(--f-display); font-style: italic; font-size: 19px; font-weight: 900;
  color: rgba(246, 243, 236, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .25s, color .25s, box-shadow .25s; }
.tp-seg button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(243, 210, 139, .25); }
.tp-seg button .n { font-size: 15px; opacity: .78; }

/* ── плитки ── */
.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tp-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-tile { position: relative; border-radius: 18px; padding: 10px 8px 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0;
  color: var(--ink); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  transition: transform .18s var(--ease); }
.tp-tile.tap:active { transform: scale(.96); }
.tp-tile img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.tp-tile b { font-size: 17px; line-height: 1.02; }
.tp-tile small { font-size: 11.5px; font-weight: 600; color: rgba(246, 243, 236, .72); }
.tp-tile .tp-val { font-size: 17px; }
.tp-tile .tp-val svg { width: 12px; height: 12px; }
.tp-tile .cnt { position: absolute; right: 7px; top: 7px; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--f-display); font-style: italic; font-size: 15px; font-weight: 900; color: var(--accent-ink); background: var(--accent); }
.tp-tile.sold, .tp-tile.gone { animation: tpTileOut .5s ease-in both !important; }
@keyframes tpTileOut { 30% { transform: scale(1.08); filter: brightness(1.4); } 100% { opacity: 0; transform: translateY(-18px) scale(.6); } }
@keyframes tpOut { 20% { transform: scale(1.02); filter: brightness(1.35); } 100% { opacity: 0; transform: translateX(56px) scale(.96); } }

/* ── пусто ── */
.tp-empty { border-radius: 24px; padding: 24px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: rgba(255, 255, 255, .05); border: 1px dashed rgba(246, 243, 236, .22); }
.tp-empty-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: rgba(243, 210, 139, .14);
  animation: bkEmptyBob 3s ease-in-out infinite alternate; }
.tp-empty-ico svg { width: 30px; height: 30px; }
.tp-empty b { font-size: 28px; line-height: 1; }
.tp-empty > span:not(.tp-empty-ico) { font-size: 14px; line-height: 1.4; color: rgba(246, 243, 236, .78); max-width: 290px; }
.tp-empty .tp-btn { margin-top: 8px; }

/* ── кнопка снизу, прилипает к краю ── */
/* отступ sticky считается от нижнего поля прокрутки страницы (safe-bottom + 28px): −14px — 14px над краем экрана */
.tp-dock { position: sticky; bottom: -14px; z-index: 4; margin-top: 18px; display: grid; gap: 10px; }
.tp-dock.two { grid-template-columns: 1fr 2.2fr; }
.tp-dock::before { content: ""; position: absolute; left: -18px; right: -18px; top: -40px; bottom: calc(-20px - var(--safe-bottom)); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 12, 16, 0) 0, rgba(6, 12, 16, .88) 62px, rgba(6, 12, 16, .97) 98px); }

/* ── появление: блоки волной, слово проявляется, наклейка прилетает, полосы растут ── */
.page.intro .tp > *:not(.tp-list):not(.tp-grid) { animation: hbRise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(70ms + var(--i, 0) * 65ms); }
.page.intro .tp-list > *, .page.intro .tp-grid > * { animation: hbRise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(140ms + var(--i, 0) * 50ms + var(--j, 0) * 55ms); }
.page.intro .tp-grid > * { animation-name: tpPop; }
@keyframes tpPop { from { opacity: 0; transform: scale(.82) translateY(10px); } to { opacity: 1; transform: none; } }
.page.intro .tp-word { animation: tmWordIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.page.intro .tp-head .tm-dayline { animation: hbFade .6s .3s ease-out both; }
.page.intro .tp-sticker { animation: tmStickerIn .7s .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.page.intro .tp-bar i { animation: hbGrow 1.1s cubic-bezier(.2, .8, .2, 1) .45s both, hbFlow 2.8s linear infinite; }
.page.intro .tp-dock { animation: bkDockIn .6s cubic-bezier(.2, .8, .2, 1) .45s both; }
.page.intro [data-count] { display: inline-block; animation: hbPop .5s ease-out 1.35s both; }

/* ── мелочи: ссылка в заголовке раздела, награда, наживка в тексте ── */
.tp-link { font-size: 17px; font-weight: 900; color: var(--accent); animation: tkBlink 1.6s ease-in-out infinite; }
.tp-reward { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.tp-reward .tp-val { font-size: 24px; }
.tp-bait { display: inline-grid; vertical-align: -3px; margin-right: 3px; }
.tp-bait svg, .tp-bait img { width: 15px; height: 15px; }

/* ── лот дня Ингвара: вещь в лучах, металлическая кнопка ── */
.tp-lot { position: relative; overflow: hidden; margin-top: 18px; border-radius: 26px; padding: 18px 18px 16px; display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center; border: 1px solid rgba(243, 210, 139, .5);
  background: radial-gradient(70% 50% at 50% 34%, rgba(255, 214, 140, .26), rgba(255, 214, 140, 0) 70%), linear-gradient(180deg, rgba(20, 44, 48, .6), rgba(6, 14, 16, .88));
  box-shadow: 0 20px 44px rgba(3, 10, 12, .4); }
.tp-lot-rays { position: absolute; left: 50%; top: 150px; width: 820px; height: 820px; margin: -410px 0 0 -410px; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg, rgba(255, 226, 170, .14) 0deg 3deg, rgba(255, 226, 170, 0) 3deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, #000 8%, transparent 40%); mask-image: radial-gradient(circle, #000 0, #000 8%, transparent 40%);
  animation: fxSpin 40s linear infinite; }
.tp-lot > *:not(.tp-lot-rays) { position: relative; }
.tp-lot-k { font-size: 17px; font-weight: 800; color: var(--accent); }
.tp-lot-pic { height: 170px; display: grid; place-items: center; }
.tp-lot-pic img { max-width: 220px; max-height: 170px; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .5)); animation: pfFloat 4s ease-in-out infinite alternate; }
.tp-lot-pic img.rod { max-height: 190px; transform: rotate(-24deg); }
.tp-lot-ico { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: rgba(243, 210, 139, .12);
  box-shadow: 0 0 40px rgba(243, 210, 139, .25); animation: pfFloat 4s ease-in-out infinite alternate; }
.tp-lot-ico svg { width: 60px; height: 60px; stroke-width: 1.6; }
.tp-lot-name { font-size: 34px; line-height: .95; }
.tp-lot-eff { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: rgba(246, 243, 236, .85); max-width: 300px; }
.tp-lot .tp-btn { margin-top: 6px; }
.tp-lot-reason { font-size: 13px; font-weight: 700; color: var(--red); }
.tp-lot.sold { border-color: rgba(246, 243, 236, .18); }
.tp-lot.sold .tp-lot-pic { filter: grayscale(.8) brightness(.7); }
.page.intro .tp-lot-pic { animation: pfFishIn 1s cubic-bezier(.3, 1.35, .5, 1) .35s both; }

/* ── окно «Задание выполнено»: лучи, рыба, награда, металлическая «Забрать» ── */
.tp-cel { padding: 22px 20px 18px; }
.tp-cel .cel-img { height: 170px; }
.tp-cel-k { position: relative; font-size: 20px; font-weight: 800; color: var(--accent); }
.tp-cel-t { position: relative; margin-top: 2px; font-size: 38px; line-height: .92; }
.tp-cel-r { position: relative; margin: 12px 0 16px; display: flex; justify-content: center; gap: 14px; }
.tp-cel-r .tp-val { font-size: 30px; }
.tp-cel-r .tp-val svg { width: 20px; height: 20px; }

/* ── компактные строки (легенды, списки правил) ── */
.tp-row.compact { min-height: 52px; grid-template-columns: 36px minmax(0, 1fr) auto; padding: 6px 14px 6px 10px; border-radius: 16px; }
.tp-row.compact.noimg { grid-template-columns: minmax(0, 1fr) auto; padding-left: 14px; }
.tp-row.compact .tp-th { width: 36px; height: 36px; border-radius: 12px; }
.tp-row.compact .tp-tx b { font-size: 19px; }
.tp-row.compact .tp-val { font-size: 19px; }

/* ── Семёныч: защита баланса, итог игры, ставки ── */
.tp-guard { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.tp-guard small { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: rgba(246, 243, 236, .72); }
.tp-guard small svg { width: 14px; height: 14px; color: var(--aqua); flex: none; }
.cas-res { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cas-res-sum { font-size: 66px; line-height: .9; letter-spacing: -.02em; }
.cas-res.gold .cas-res-sum { color: var(--accent); text-shadow: 0 0 30px rgba(243, 210, 139, .55); }
.cas-res.mint .cas-res-sum { color: var(--aqua); }
.cas-res.red .cas-res-sum { color: var(--red); }
.cas-res.big { animation: casBig 1.6s ease-out both; }
@keyframes casBig { 0% { box-shadow: 0 0 0 0 rgba(243, 210, 139, .7); transform: scale(.9); } 30% { transform: scale(1.04); } 100% { box-shadow: 0 0 0 26px rgba(243, 210, 139, 0); transform: none; } }
.cas-res .tp-btns { width: 100%; }
.cas-stakes { margin-top: 14px; justify-content: center; }
.cas-stakes .tp-chip { height: 40px; padding: 0 15px; font-size: 20px; cursor: pointer; transition: transform .15s, background .2s; }
.cas-stakes .tp-chip:active { transform: scale(.94); }
.cas-stakes .tp-chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 6px 16px rgba(243, 210, 139, .3); }
.cas-sw { background: none !important; }
.cas-dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.tp .sacks { margin-top: 18px; }
.tp .sk-n { font-size: 19px; }
.tp .sk-p .tp-val { font-size: 18px; }

/* ── шторка снизу: крупный заголовок, вещь в свете, металлическая кнопка ── */
.sheet { background: linear-gradient(180deg, rgba(22, 38, 42, .95), rgba(10, 18, 20, .97)); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); }
.sheet-head h3 { font-style: italic; font-weight: 900; font-size: 30px; line-height: 1; }
.sheet-head .sub { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-display); font-style: italic; font-size: 16px; font-weight: 800; color: rgba(246, 243, 236, .72); }
.sheet-head .sub svg { width: 15px; height: 15px; }
.sheet-foot { background: rgba(8, 16, 18, .72); border-top-color: rgba(255, 255, 255, .08); }
.tp-sheet { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tp-sheet .tp-stats { width: 100%; text-align: left; }
.tp-sheet .tp-note { text-align: left; }
.tp-sheet-pic { position: relative; width: 100%; height: 150px; display: grid; place-items: center;
  background: radial-gradient(50% 60% at 50% 55%, rgba(243, 210, 139, .24), rgba(243, 210, 139, 0) 72%); }
.tp-sheet-pic img { max-width: 240px; max-height: 140px; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .5)); animation: pfFloat 4s ease-in-out infinite alternate; }
.tp-sheet-pic .auc-ico svg { width: 64px; height: 64px; stroke-width: 1.6; }
.tp-sheet-t { font-size: 32px; line-height: .95; }

/* ── аукцион ── */
.auc-th img { width: 92% !important; height: 92% !important; object-fit: contain !important; }
.auc-ico { display: grid; place-items: center; color: var(--accent); }
.auc-ico svg { width: 26px; height: 26px; }
.auc-pic { height: 64px; display: grid; place-items: center; }
.auc-pic img { width: 64px; height: 64px; object-fit: contain; }
.tp-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-pager > span { font-size: 19px; color: rgba(246, 243, 236, .75); }

/* ── удочка на полке: повёрнута по кончику, рука справа ── */
.tp-rod { position: relative; align-self: stretch; min-height: 82px; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03) 72%); }
.tp-rod img { position: absolute; max-width: none; width: 155px; height: 155px; left: -62px; top: -51px; transform-origin: 74.5% 59.2%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.tp-rod.big { min-height: 124px; }
.tp-rod.big img { width: 210px; height: 210px; left: -84px; top: -64px; }

/* ── магазин снастей ── */
.shop-rod { min-height: 98px; }
.shop-rod .tp-tx, .shop-house .tp-tx { padding: 11px 0; }
.shop-rod-r { margin-top: 6px; display: flex; }
.shop-rod.tap:active .tp-rod img { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)) brightness(1.2); }
.shop-cur { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: center; gap: 10px; padding: 0 0 0 16px; }
.shop-cur .tp-tx { padding: 12px 0; gap: 6px; }
.shop-cur .tp-card-t { font-size: 28px; }
.shop-bait { justify-content: space-between; }
.shop-bi { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(243, 210, 139, .2), rgba(243, 210, 139, 0) 70%); }
.shop-bi svg, .shop-bi img { width: 40px; height: 40px; }
.shop-bait .tp-btn { width: 100%; margin-top: 4px; padding: 0 6px; font-size: 16px; }
.shop-bait.locked { opacity: .55; }
.shop-house { min-height: 108px; grid-template-columns: minmax(0, 1fr) 124px; }
.shop-worm svg { width: 30px; height: 30px; }
.shop-cmp { width: 100%; margin-top: 10px; text-align: left; }
.shop-cmp-l { display: flex; justify-content: space-between; gap: 10px; font-size: 18px; font-weight: 800; }
.shop-cmp-l b { font-weight: 900; }
.shop-cmp-l b.up { color: var(--aqua); }
.shop-cmp-bar { position: relative; height: 10px; margin-top: 5px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.shop-cmp-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.shop-cmp-bar .now { background: rgba(246, 243, 236, .32); z-index: 1; }
.shop-cmp-bar .next { width: var(--w); background: linear-gradient(90deg, var(--aqua), #E2FFF6); box-shadow: 0 0 10px rgba(169, 228, 208, .6); animation: hbGrow 1.1s cubic-bezier(.2, .8, .2, 1) .35s both; }
.shop-sheet-rod { height: 170px; }
.shop-sheet-rod img { max-height: 170px; }
.tp-cel-rod { position: relative; height: 170px; overflow: hidden; }
.tp-cel-rod img { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -170px 0 0 -170px; transform-origin: 74.5% 59.2%;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .5)); }
.tp-cel p { position: relative; margin: 6px 0 14px; font-size: 13.5px; color: rgba(246, 243, 236, .82); }

/* ── шторка наживки на месте ловли ── */
.bait-pick .tp-tx b em { font-style: inherit; font-size: 17px; color: rgba(246, 243, 236, .6); }
.bait-th svg, .bait-th img { width: 38px !important; height: 38px !important; }
.bait-acts { flex-direction: column; align-items: stretch; gap: 6px; }
.bait-acts .tp-btn { padding: 0 10px; font-size: 16px; height: 34px; }
.bait-pick .bite-dots { vertical-align: 1px; }

/* ── Причал: ступени, стройка, привилегии ── */
.hh-steps { position: relative; margin-top: 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.hh-steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: rgba(255, 255, 255, .16); }
.hh-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hh-step-i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #122326 center / cover no-repeat;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .16); color: #fff; }
.hh-step-i b { font-size: 24px; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.hh-step-i svg { width: 22px; height: 22px; stroke-width: 3; padding: 4px; box-sizing: content-box; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.hh-step small { font-size: 14px; font-weight: 800; color: rgba(246, 243, 236, .66); white-space: nowrap; }
.hh-step:not(.built) .hh-step-i { filter: grayscale(.7) brightness(.55); }
.hh-step.built .hh-step-i { box-shadow: inset 0 0 0 2px var(--accent), 0 0 14px rgba(243, 210, 139, .35); }
.hh-step.built small { color: var(--accent); }
.hh-step.cur .hh-step-i { width: 60px; height: 60px; margin-top: -3px; animation: tmGoldPing 2.2s ease-out infinite; }
.hh-step.next .hh-step-i { filter: grayscale(.2) brightness(.85); box-shadow: inset 0 0 0 2px rgba(169, 228, 208, .8); }
.hh-step.next small { color: var(--aqua); }
@keyframes tmGoldPing { 0% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 0 rgba(243, 210, 139, .55); }
  100% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 12px rgba(243, 210, 139, 0); } }
.page.intro .hh-step { animation: tpPop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.page.intro .hh-step:nth-child(2) { animation-delay: .08s; } .page.intro .hh-step:nth-child(3) { animation-delay: .16s; }
.page.intro .hh-step:nth-child(4) { animation-delay: .24s; } .page.intro .hh-step:nth-child(5) { animation-delay: .32s; }
.hh-build { display: flex; flex-direction: column; gap: 2px; padding-top: 0; }
.hh-build-ph { display: block; height: 120px; margin: 0 -16px 12px; background-size: cover; background-position: center 45%;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); animation: hbKen 22s ease-in-out infinite alternate; }
.hh-perk { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.35; color: rgba(246, 243, 236, .86); }
.hh-perk svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.hh-perks { display: flex; flex-direction: column; padding-top: 8px; }
.hh-prestige { display: flex; flex-direction: column; gap: 4px; }
.hh-prestige-n { display: flex; align-items: center; gap: 6px; font-size: 44px; color: var(--red); }
.hh-prestige-n svg { width: 36px; height: 36px; }

/* ── пропуска: штамп на фото места ── */
/* только строки страницы «Пропуска»: класс permit есть и у места на вкладке «Рыбалка» (пропуск не куплен) */
.tp-row.permit { min-height: 118px; grid-template-columns: minmax(0, 1fr) 120px; }
.tp-row.permit .tp-tx { padding: 12px 0; }
.permit-until { display: flex; align-items: center; gap: 4px; color: var(--aqua) !important; }
.permit-act { margin-top: 6px; display: flex; }
.permit-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); padding: 3px 9px; border-radius: 8px; font-size: 17px; font-weight: 900;
  color: rgba(242, 154, 142, .95); border: 2.5px solid rgba(242, 154, 142, .9); background: rgba(20, 8, 6, .35); text-transform: lowercase; letter-spacing: .02em;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); white-space: nowrap; }
.permit-stamp.on { color: var(--aqua); border-color: rgba(169, 228, 208, .95); background: rgba(6, 20, 18, .4); }
.permit-stamp.slam { animation: tpSlam .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes tpSlam { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-30deg) scale(2.4); } 60% { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(.92); }
  100% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }
.tp-row.permit.locked .tp-ph { filter: grayscale(1) brightness(.5); }

/* ── трофейный зал: доска, латунная табличка, корона рекорда ── */
.tp-plaque { position: relative; border-radius: 18px; padding: 10px 10px 0; display: flex; flex-direction: column; align-items: stretch; text-align: center; color: var(--ink);
  background: linear-gradient(180deg, #5A3A22 0%, #3E2716 100%); box-shadow: inset 0 1px 0 rgba(255, 220, 170, .25), inset 0 0 0 1px rgba(0, 0, 0, .4), 0 14px 26px rgba(0, 0, 0, .45); }
.tp-plaque::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(92deg, rgba(0, 0, 0, 0) 0 6px, rgba(0, 0, 0, .12) 6px 7px, rgba(255, 220, 170, .04) 7px 12px); }
.tp-plaque-board { position: relative; height: 96px; display: grid; place-items: center; border-radius: 12px;
  background: radial-gradient(60% 70% at 50% 40%, rgba(255, 222, 170, .28), rgba(255, 222, 170, 0) 72%); }
.tp-plaque-board img { max-width: 100%; max-height: 88px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .55)); animation: pfFloat 5s ease-in-out infinite alternate; }
.tp-plaque-ico svg { width: 44px; height: 44px; color: #F3E3C6; }
.tp-plaque-plate { position: relative; margin: 8px -2px 10px; padding: 5px 8px 6px; border-radius: 8px; display: flex; flex-direction: column; gap: 1px;
  background: linear-gradient(100deg, #B07A22 0%, #F2D38A 35%, #C99A45 60%, #F6E2A8 80%, #B07A22 100%); background-size: 220% 100%; color: #2A1D05;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 4px rgba(0, 0, 0, .4); animation: tmMetal 5s linear infinite; }
.tp-plaque-plate b { font-size: 17px; line-height: 1; }
.tp-plaque-plate small { font-size: 11.5px; font-weight: 800; color: rgba(42, 29, 5, .75); }
.tp-plaque-crown { position: absolute; right: 8px; top: 8px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 14px rgba(243, 210, 139, .7); }
.tp-plaque-crown svg { width: 16px; height: 16px; }
.tp-plaque.excl { background: linear-gradient(180deg, #2E2440 0%, #1C1628 100%); }
.tp-plaque.empty { background: rgba(255, 255, 255, .04); border: 1.5px dashed rgba(246, 243, 236, .25); box-shadow: none; }
.tp-plaque.empty::before { display: none; }
.tp-plaque.empty .tp-plaque-plate { background: rgba(255, 255, 255, .08); color: rgba(246, 243, 236, .7); animation: none; box-shadow: none; }
.tp-plaque.empty .tp-plaque-plate small { color: rgba(246, 243, 236, .5); }
.tp-plaque-plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); border: 1.5px dashed rgba(243, 210, 139, .6); }
.tp-plaque-plus svg { width: 22px; height: 22px; }
.tp-plaque.empty:active { transform: scale(.97); }

/* ── витрина именных рыб: ореол, золото, блик по силуэту ── */
.tp-named { position: relative; overflow: hidden; border-radius: 20px; padding: 12px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  border: 1px solid rgba(243, 210, 139, .5); background: linear-gradient(180deg, rgba(243, 210, 139, .16), rgba(255, 255, 255, .04)); }
.tp-named.albino { border-color: rgba(220, 240, 255, .5); background: linear-gradient(180deg, rgba(220, 240, 255, .14), rgba(255, 255, 255, .04)); }
.tp-named-glow { position: absolute; left: 50%; top: 42px; width: 150px; height: 110px; margin: -55px 0 0 -75px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 60, .45), rgba(255, 200, 60, 0)); animation: bkHalo 3s ease-in-out infinite alternate; }
.tp-named.albino .tp-named-glow { background: radial-gradient(closest-side, rgba(220, 240, 255, .45), rgba(220, 240, 255, 0)); }
.tp-named-pic { position: relative; width: 130px; animation: bkNamedBob 3.4s ease-in-out infinite alternate; }
.tp-named-pic img { display: block; width: 130px; }
.tp-named-shine { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; mix-blend-mode: screen; background-size: 320% 100%;
  background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 252, 232, .95) 48%, rgba(255, 255, 255, 0) 58%); animation: bkShine 2.8s ease-in-out infinite; }
.tp-named-serial { position: absolute; left: 10px; top: 10px; font-size: 16px; color: var(--accent); }
.tp-named b { position: relative; font-size: 18px; line-height: 1; }
.tp-named small { position: relative; font-size: 11.5px; font-weight: 600; color: rgba(246, 243, 236, .72); }

/* ── аквариум: стекло со светом ── */
.tp-tank { border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(169, 228, 208, .35), 0 20px 44px rgba(0, 10, 14, .5), 0 0 40px rgba(120, 220, 210, .12); }
.tp-tank .tank-count { font-size: 18px; }
.aq-free { cursor: pointer; }

/* ── фракции: ранг, поход, выбор пути ── */
.fx-rank-st b { font-size: 38px; }
.fx-rank-st.smug { border-color: rgba(227, 106, 86, .45); box-shadow: 0 0 24px rgba(200, 50, 30, .25); }
.fx-rank { display: flex; flex-direction: column; gap: 8px; }
.fx-rank-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fx-rank-top .tp-val small { font-size: 16px; color: rgba(246, 243, 236, .6); }
.fx-rank-s { font-size: 12.5px; font-weight: 600; color: rgba(246, 243, 236, .7); }
.fx-warn-card { margin-bottom: 10px; }
.tp-val small { font-size: .7em; }
.fx-haul { position: relative; overflow: hidden; margin-top: 18px; border-radius: 24px; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(169, 228, 208, .45); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 40px rgba(3, 10, 12, .35); }
.fx-haul.bad { border-color: rgba(242, 154, 142, .5); }
.fx-haul-ph { display: block; height: 150px; margin: 0 -14px 10px; background-size: cover; background-position: center 45%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); animation: hbKen 22s ease-in-out infinite alternate; }
.fx-haul-t { font-size: 40px; line-height: .9; }
.fx-haul-lines { margin-top: 4px; font-size: 13px; line-height: 1.45; color: rgba(246, 243, 236, .82); }
.fx-haul-grid { margin-top: 10px; }
.fx-haul-total { margin-top: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fx-haul-total span { font-size: 22px; color: rgba(246, 243, 236, .75); }
.fx-haul-total b { font-size: 46px; line-height: .9; color: var(--accent); text-shadow: 0 0 24px rgba(243, 210, 139, .4); }
.page.intro .fx-haul .tp-grid > * { animation-delay: calc(500ms + var(--j, 0) * 90ms); }
.fx-paths { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.fx-path { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(169, 228, 208, .45); background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 18px 40px rgba(3, 10, 12, .35); }
.fx-path.smuggler { border-color: rgba(227, 106, 86, .45); background: linear-gradient(180deg, rgba(40, 14, 10, .7), rgba(12, 6, 6, .88)); }
.fx-path-ph { display: block; height: 150px; background-size: cover; background-position: center 55%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.fx-path.smuggler .fx-path-ph { filter: saturate(.45) brightness(.62) contrast(1.15) sepia(.2); }
.fx-path-in { display: flex; flex-direction: column; gap: 2px; padding: 0 16px 16px; margin-top: -26px; position: relative; }
.fx-path-t { font-size: 40px; line-height: .9; }
.fx-path.smuggler .tp-card-k { color: #E36A56; }
.fx-path.smuggler .fx-path-t { text-shadow: 0 0 30px rgba(190, 44, 26, .5); }
.fx-path.smuggler .hh-perk svg { color: #E36A56; }
.fx-path.smuggler .tp-btn.red { background: #B8402F; color: #FFE9E2; border: 0; box-shadow: 0 12px 28px rgba(120, 20, 10, .45); }

/* лодки: сцена с водой сверху карточки */
.fx-boats { display: flex; flex-direction: column; gap: 10px; }
.fx-boat { padding: 0; }
.fx-boat .bc-stage { width: 100%; height: 138px; border-radius: 0; margin: 0; }
.fx-boat .bc-stage img { width: auto; max-width: 62%; max-height: 118px; }
/* у фото штаба и лавок вывески сверху — показываем нижнюю часть кадра */
.page.theme-yacht .page-hero-img, .page.theme-smug .page-hero-img { background-position: center 82%; }
.fx-boat-in { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 14px; }
.fx-boat-buy { display: flex; align-items: center; gap: 10px; }
.fx-old { font-size: 18px; color: rgba(246, 243, 236, .5); }
.fx-boat.worse, .fx-boat.locked { opacity: .6; }
.fx-boat.locked .bc-stage img { filter: grayscale(.8) brightness(.6); }
.tp-up-boat { margin-top: 18px; border-radius: 22px; overflow: hidden; }

/* мастерская и списки со значками-эмодзи */
.fx-up-emo { font-size: 22px; line-height: 1; display: grid; place-items: center; }
.fx-up-emo svg { width: 22px !important; height: 22px !important; }
.fx-up-lv { font-size: 15px; color: rgba(246, 243, 236, .6); }
.fx-pips { display: flex; gap: 3px; margin: 2px 0 3px; }
.fx-pips i { width: 16px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.fx-pips i.on { background: var(--accent); box-shadow: 0 0 6px rgba(243, 210, 139, .6); }
.tp-row.tp-flash { animation: tpFlash .9s ease-out; }
@keyframes tpFlash { 0% { box-shadow: 0 0 0 0 rgba(243, 210, 139, .7); background: rgba(243, 210, 139, .25); } 100% { box-shadow: 0 0 0 14px rgba(243, 210, 139, 0); } }

/* счётчики: побег, розыск */
.fx-meter, .fx-wanted { display: flex; flex-direction: column; gap: 8px; }
.fx-meter .tp-big b, .fx-wanted .tp-big b { font-size: 84px; }
.fx-wanted .tp-big b { color: var(--aqua); }
.fx-wanted.warm { border-color: rgba(243, 210, 139, .55); }
.fx-wanted.warm .tp-big b { color: var(--accent); }
.fx-wanted.hot { border-color: rgba(227, 106, 86, .7); background: linear-gradient(100deg, rgba(160, 30, 20, .3), rgba(30, 10, 8, .5)); animation: fxSiren 2.4s ease-in-out infinite; }
.fx-wanted.hot .tp-big b { color: var(--red); text-shadow: 0 0 30px rgba(227, 106, 86, .6); }
@keyframes fxSiren { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 106, 86, 0), 0 12px 30px rgba(0, 0, 0, .3); } 50% { box-shadow: 0 0 34px 2px rgba(227, 106, 86, .35), 0 12px 30px rgba(0, 0, 0, .3); } }
.fx-place { font-size: 24px; }

/* наводки и журнал */
.fx-target { min-height: 88px; }
.fx-target-th { width: 72px !important; height: 56px !important; }
.tp-row.fx-target { grid-template-columns: 72px minmax(0, 1fr) auto; }
.fx-target-pic img { max-width: 260px; }
.fx-approach { width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.fx-approach-d { margin: -2px 2px 6px; font-size: 12px; font-weight: 600; color: rgba(246, 243, 236, .66); }
.fx-jr { display: flex; flex-direction: column; gap: 10px; }
.fx-jr-text { font-size: 13.5px; line-height: 1.45; color: rgba(246, 243, 236, .88); }
.fx-jr-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-jr.caught, .fx-jr.defended { border-color: rgba(242, 154, 142, .45); }
.fx-jr.success { border-color: rgba(169, 228, 208, .45); }
.tp-evr .tp-btn { margin-top: 12px; }

/* ── поле ввода ── */
.tp-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.tp-input { width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; font: 600 15px var(--f-text); color: var(--ink); outline: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .2s, background .2s; }
.tp-input::placeholder { color: rgba(246, 243, 236, .45); }
.tp-input:focus { border-color: var(--accent); background: rgba(255, 255, 255, .12); }
.tp-form .tp-btn { height: 48px; }

/* ── клуб ── */
.gl-place { font-size: 24px; }
.gl-perks { display: flex; flex-direction: column; }
.gl-contract, .gl-exp, .gl-invite { display: flex; flex-direction: column; gap: 6px; }
.gl-contract .tp-big b { font-size: 76px; }
.gl-exp .tp-big b { font-size: 54px; }
.gl-acts { display: flex; flex-direction: column; gap: 8px; }
.gl-board { display: flex; flex-direction: column; gap: 8px; }
.gl-msg { align-self: flex-start; max-width: 86%; padding: 9px 13px 10px; border-radius: 6px 18px 18px 18px; display: flex; flex-direction: column; gap: 2px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.gl-msg.me { align-self: flex-end; border-radius: 18px 6px 18px 18px; background: rgba(243, 210, 139, .16); border-color: rgba(243, 210, 139, .4); }
.gl-msg-h { display: flex; align-items: baseline; gap: 8px; }
.gl-msg-h b { font-size: 17px; color: var(--accent); }
.gl-msg-h small { font-size: 11px; font-weight: 700; color: rgba(246, 243, 236, .5); }
.gl-msg-t { font-size: 14px; line-height: 1.4; color: rgba(246, 243, 236, .92); overflow-wrap: anywhere; }
.page.intro .gl-msg { animation: hbRise .45s cubic-bezier(.2, .8, .2, 1) both; }
.gl-post { position: sticky; bottom: -16px; z-index: 4; margin-top: 16px; }
.gl-post::before { content: ""; position: absolute; left: -18px; right: -18px; top: -30px; bottom: -30px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 12, 16, 0), rgba(6, 12, 16, .88) 48%); }
.gl-post .tp-btn { width: 52px; padding: 0; }
.gl-give { justify-content: flex-start; }
.gl-link { display: block; margin-top: 6px; padding: 10px 12px; border-radius: 12px; font: 600 13px/1.35 ui-monospace, Menlo, Consolas, monospace; color: var(--accent);
  background: rgba(8, 16, 18, .55); border: 1px dashed rgba(243, 210, 139, .4); overflow-wrap: anywhere; user-select: all; }

/* ── друзья, бонусы, поддержка, автоловля, документы ── */
.fr-invite { display: flex; flex-direction: column; gap: 8px; }
.fr-gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 2px 0; }
.fr-gift { border-radius: 14px; padding: 8px 8px 9px; display: flex; flex-direction: column; background: rgba(8, 16, 18, .4); border: 1px solid rgba(243, 210, 139, .3); }
.fr-gift b { font-size: 24px; line-height: 1; color: var(--accent); }
.fr-gift.mint b { color: var(--aqua); }
.fr-gift small { font-size: 11px; font-weight: 700; color: rgba(246, 243, 236, .7); }
.fr-bank { display: flex; flex-direction: column; gap: 6px; }
.fr-bank .tp-big b { font-size: 64px; }
.don-tile { justify-content: space-between; min-height: 112px; }
.don-tile b { font-size: 17px; }
.don-coins { font-size: 16px !important; }
.don-coins svg { width: 13px !important; height: 13px !important; }
.don-price { margin-top: 4px; height: 28px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 900;
  color: var(--accent-ink); background: var(--accent); }
.don-price svg { width: 14px; height: 14px; }
.don-tile.blocked { opacity: .6; }
.don-tile.blocked .don-price { background: rgba(169, 228, 208, .2); color: var(--aqua); }
.don-desc { margin-top: -4px; margin-bottom: 10px; }
.don-auto { margin-bottom: 0; }
.af-scene { min-height: 124px; }
.af-hero { margin-bottom: 0; cursor: default; }
.af-acts { display: flex; flex-direction: column; gap: 8px; }
.af-qty { font-style: inherit; font-size: 17px; color: rgba(246, 243, 236, .6); }
.af-live .af-t { font-size: 26px; }
.af-live .af-radar span svg { width: 34px; height: 34px; color: var(--aqua); }
.doc-card { font-size: 13.5px; line-height: 1.55; color: rgba(246, 243, 236, .88); }
.doc-card .doc-text { max-height: none; }

/* ── профиль: достижения, навыки, статистика, рыбопедия, оформление, карточка ── */
.ach-grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; }
.ach-cell { align-items: center; text-align: center; }
.ach-cell small { font-size: 11.5px; }
.ach-cell em { font-style: normal; font-size: 10.5px; line-height: 1.25; color: rgba(246, 243, 236, .55); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ach-cell:not(.on) .pf-hex-ico svg { width: 20px !important; height: 20px !important; }
.ach-cell.fresh .pf-hex { animation: achFresh 1.6s ease-in-out infinite; }
@keyframes achFresh { 0%, 100% { filter: drop-shadow(0 0 4px rgba(243, 210, 139, .5)); transform: scale(1); } 50% { filter: drop-shadow(0 0 14px rgba(243, 210, 139, .95)); transform: scale(1.08); } }
.sk-st { border-color: rgba(201, 182, 255, .5); }
.sk-st b { color: var(--violet); }
.sk-pips { display: inline-flex; vertical-align: 3px; margin-left: 6px; }
.sk-pips i.on { background: var(--violet); box-shadow: 0 0 6px rgba(201, 182, 255, .7); }
.st-record { position: relative; min-height: 136px; display: flex; flex-direction: column; gap: 2px; padding-right: 150px; }
.st-record-img { position: absolute; right: -10px; top: 50%; width: 170px; transform: translateY(-50%) rotate(-6deg); filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5));
  animation: pfFloat 4s ease-in-out infinite alternate; }
.st-record .tp-big b { font-size: 60px; }
.st-row .tp-tx { gap: 6px; }
.st-bar { margin-top: 2px; }
.dex-grid2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dex-c { position: relative; aspect-ratio: 1; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .13); transition: transform .15s; }
.dex-c:active { transform: scale(.94); }
.dex-c img { width: 88%; height: 56%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .4)); }
.dex-c .w { font-size: 13px; color: rgba(246, 243, 236, .8); white-space: nowrap; }
.dex-c.rare { border-color: rgba(201, 182, 255, .5); background: rgba(201, 182, 255, .1); }
.dex-c.unknown { background: rgba(255, 255, 255, .03); border-style: dashed; }
.dex-c.unknown img { filter: brightness(0); opacity: .35; }
.dex-c.unknown .w { color: rgba(246, 243, 236, .4); font-size: 16px; }
.dex-crown2 { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.dex-crown2 svg { width: 12px; height: 12px; }
.page.intro .dex-grid2 > * { animation-delay: calc(100ms + var(--j, 0) * 25ms); }
.cos-frame { min-height: 84px; justify-content: center; }
.cos-frame b { font-size: 19px; }
.cos-frame.on { border-color: var(--accent); background: rgba(243, 210, 139, .14); box-shadow: 0 0 20px rgba(243, 210, 139, .2); }
.cos-frame.locked { opacity: .5; }
.pcard2 { position: relative; margin: 6px -6px 0; min-height: 250px; border-radius: 28px; overflow: hidden; padding: 20px 18px 18px; display: flex; flex-direction: column;
  justify-content: flex-end; gap: 4px; border: 1px solid rgba(243, 210, 139, .35); box-shadow: 0 20px 44px rgba(3, 10, 12, .4); }
.pcard2-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: hbKen 22s ease-in-out infinite alternate; }
.pcard2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 14, 16, .2) 0%, rgba(6, 14, 16, .5) 45%, rgba(6, 14, 16, .92) 100%); }
.pcard2 > *:not(.pcard2-bg) { position: relative; z-index: 1; }
.pcard2-name { margin: 2px 0 0; white-space: normal; overflow-wrap: anywhere; }
.pcard2-status { font-size: 14px; font-style: italic; color: rgba(246, 243, 236, .88); }
.pcard2-badges { font-size: 16px; }
.pcard2-lvl { position: absolute !important; right: 16px; top: 16px; }
.tp-plaque.mini { padding: 8px 8px 0; }
.tp-plaque.mini .tp-plaque-board { height: 64px; }
.tp-plaque.mini .tp-plaque-board img { max-height: 58px; }
.tp-plaque.mini .tp-plaque-plate b { font-size: 14px; }
.tp-named.mini { padding: 8px 6px; }
.tp-named.mini .tp-named-pic, .tp-named.mini .tp-named-pic img { width: 90px; }
.tp-named.mini small { font-size: 10.5px; }

/* ── турнир, Хозяин, сезон, лидеры ── */
.tp-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 6px; }
.tp-pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: var(--ink); min-width: 0; }
.tp-pod b { font-size: 17px; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-pod small { font-size: 11.5px; font-weight: 700; color: rgba(246, 243, 236, .72); }
.tp-pod-medal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: var(--accent-ink);
  background: linear-gradient(135deg, #FFE39A, #D9A441); box-shadow: 0 0 20px rgba(243, 210, 139, .5); margin-bottom: 4px; }
.tp-pod.p2 .tp-pod-medal { background: linear-gradient(135deg, #F4F7F8, #AEBBC2); box-shadow: 0 0 14px rgba(220, 230, 240, .35); }
.tp-pod.p3 .tp-pod-medal { background: linear-gradient(135deg, #F2C29A, #B87444); box-shadow: 0 0 14px rgba(230, 160, 110, .35); }
.tp-pod-bar { width: 100%; margin-top: 6px; border-radius: 14px 14px 4px 4px; background: linear-gradient(180deg, rgba(243, 210, 139, .38), rgba(243, 210, 139, .06));
  border: 1px solid rgba(243, 210, 139, .4); border-bottom: 0; }
.tp-pod.p1 .tp-pod-bar { height: 96px; }
.tp-pod.p2 .tp-pod-bar { height: 66px; background: linear-gradient(180deg, rgba(220, 230, 240, .26), rgba(220, 230, 240, .04)); border-color: rgba(220, 230, 240, .3); }
.tp-pod.p3 .tp-pod-bar { height: 48px; background: linear-gradient(180deg, rgba(230, 160, 110, .26), rgba(230, 160, 110, .04)); border-color: rgba(230, 160, 110, .3); }
.page.intro .tp-pod-bar { animation: tpPodUp .8s cubic-bezier(.2, .9, .3, 1.2) both; transform-origin: 50% 100%; }
.page.intro .tp-pod.p1 .tp-pod-bar { animation-delay: .35s; } .page.intro .tp-pod.p2 .tp-pod-bar { animation-delay: .2s; } .page.intro .tp-pod.p3 .tp-pod-bar { animation-delay: .5s; }
@keyframes tpPodUp { from { transform: scaleY(0); } to { transform: none; } }
.page.intro .tp-pod-medal { animation: tpPop .6s cubic-bezier(.3, 1.6, .5, 1) .75s both; }
.tp-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tp-prize { border-radius: 18px; padding: 10px 10px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); }
.tp-prize b { font-size: 28px; line-height: 1; color: var(--accent); }
.tp-prize.p1 { border-color: rgba(243, 210, 139, .6); background: rgba(243, 210, 139, .14); }
.tp-prize.p2 b { color: #DCE6EC; } .tp-prize.p3 b { color: #E3A778; }
.tp-prize .tp-val { font-size: 18px; }
.boss2 { position: relative; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; }
.boss2-fish { position: absolute; left: 50%; top: 8px; width: 290px; margin-left: -145px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .55)); animation: tkBoss 4s ease-in-out infinite alternate; }
.boss2.killed .boss2-fish { filter: grayscale(.85) brightness(.65); animation: none; transform: rotate(8deg); }
.boss2-hp { position: relative; margin-top: 120px; }
.page.intro .boss2 .tk-hp i { animation: tkHpIn 1.5s cubic-bezier(.2, .8, .2, 1) .6s both; }
.tops-cats { flex-wrap: nowrap; overflow-x: auto; margin-left: -18px; margin-right: -18px; padding: 0 18px 4px; scrollbar-width: none; }
.tops-cats::-webkit-scrollbar { display: none; }
.tops-cats .tp-chip { flex: none; height: 36px; font-size: 17px; cursor: pointer; }
.tops-cats .tp-chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ── окна: подтверждение, уведомление, сундук за вход; шторка садка из сцены ── */
.confirm h3 { font-style: italic; font-weight: 900; }
.confirm-acts .tp-btn { width: 100%; }
.notice .tp-btn { margin-top: 6px; }
.notice-item { font-size: 14.5px; }
.tp-chest { position: relative; width: 120px; height: 120px; margin: 6px auto 8px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  background: radial-gradient(circle, rgba(243, 210, 139, .3), rgba(243, 210, 139, 0) 70%); animation: tpChest 1s cubic-bezier(.3, 1.6, .5, 1) both, pfFloat 3s ease-in-out 1s infinite alternate; }
.tp-chest svg { width: 70px; height: 70px; stroke-width: 1.6; filter: drop-shadow(0 0 16px rgba(243, 210, 139, .7)); }
.tp-chest.big svg { width: 84px; height: 84px; }
@keyframes tpChest { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.15) rotate(6deg); opacity: 1; } 100% { transform: none; } }
.bs-body .tm-sec { margin-top: 10px; }
.bs-tile { cursor: pointer; }
.bs-tile img { width: 72px; height: 50px; }
.bs-tile .tp-val { font-size: 17px; }
.bs-tile.on { border-color: var(--accent); background: rgba(243, 210, 139, .16); box-shadow: 0 0 16px rgba(243, 210, 139, .25); }
.bs-tile .cnt svg { width: 14px; height: 14px; stroke-width: 3; }
.bs-tile.nosell { opacity: .8; }
.bs-tile.named { border-color: rgba(243, 210, 139, .45); }

/* ════════════ атмосферы разделов: слой .page-fx (три <i>) и подкраска фона ════════════ */
.page-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.page-fx i { position: absolute; display: block; }

/* контрабандисты: темно, туман стелется, красный фонарь моргает, моросит */
.page.theme-smug { --accent: #D9A15B; --accent-ink: #170D05; --gold: #D9A15B; --aqua: #9DC3B2; --red: #E36A56; --glass: rgba(18, 12, 11, .55); }
.page.theme-smug::before { filter: saturate(.25) brightness(.45) contrast(1.2); }
.page.theme-smug::after { background: radial-gradient(90% 50% at 8% 0%, rgba(150, 36, 24, .34), rgba(150, 36, 24, 0) 62%),
  linear-gradient(180deg, rgba(12, 7, 6, .62) 0%, rgba(10, 6, 6, .9) 42%, #060404 100%); }
.page.theme-smug .page-hero-img { filter: saturate(.45) brightness(.66) contrast(1.18) sepia(.2); }
.page.theme-smug.has-title .page-hero::after { background: linear-gradient(180deg, rgba(12, 4, 4, .6) 0%, rgba(12, 4, 4, 0) 28%, rgba(40, 8, 6, .35) 60%,
  rgba(10, 4, 4, .82) 86%, rgba(8, 4, 4, .95) 100%); }
.page.theme-smug .page-head::after { background: linear-gradient(180deg, rgba(10, 5, 5, .92) 0%, rgba(10, 5, 5, .6) 62%, rgba(10, 5, 5, 0)); }
.theme-smug .page-fx i:nth-child(1) { inset: -20% -60%; background: radial-gradient(38% 16% at 30% 58%, rgba(200, 188, 176, .15), transparent 70%),
  radial-gradient(34% 13% at 72% 36%, rgba(200, 188, 176, .11), transparent 70%), radial-gradient(40% 12% at 50% 86%, rgba(200, 188, 176, .1), transparent 70%);
  animation: tpFog 24s ease-in-out infinite alternate; }
.theme-smug .page-fx i:nth-child(2) { left: -110px; top: 10px; width: 360px; height: 360px; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 96, 52, .34), rgba(255, 96, 52, 0) 64%); animation: tpFlicker 6s steps(1) infinite; }
.theme-smug .page-fx i:nth-child(3) { inset: 0; opacity: .55; background-image: repeating-linear-gradient(104deg, rgba(210, 215, 225, .07) 0 1px, transparent 1px 11px);
  background-size: 140px 140px; animation: tpDrizzle .8s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 75%); }
@keyframes tpFog { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
@keyframes tpFlicker { 0%, 100% { opacity: .95; } 4% { opacity: .35; } 6% { opacity: .9; } 38% { opacity: 1; } 40% { opacity: .5; } 41% { opacity: .95; } 70% { opacity: .8; } 72% { opacity: .98; } }
@keyframes tpDrizzle { from { background-position: 0 0; } to { background-position: -24px 140px; } }
.theme-smug .tp-word { text-shadow: 0 0 34px rgba(190, 44, 26, .45), 0 10px 30px rgba(0, 0, 0, .6); }
.theme-smug .tp-row, .theme-smug .tp-card, .theme-smug .tp-stats, .theme-smug .tp-seg, .theme-smug .tp-tile, .theme-smug .tp-say {
  background: rgba(26, 15, 13, .55); border-color: rgba(255, 190, 160, .1); }
.theme-smug .tp-row.hl, .theme-smug .tp-card.hl { border-color: var(--accent); background: rgba(60, 30, 18, .5); }
.theme-smug .tp-card.red, .theme-smug .tp-row.red { background: rgba(90, 20, 14, .38); border-color: rgba(227, 106, 86, .55); }
.theme-smug .tp-bar i { background: linear-gradient(90deg, #B8743A, #F0C080 60%, #B8743A); background-size: 200% 100%; box-shadow: 0 0 10px rgba(217, 161, 91, .5); }
.theme-smug .tp-empty { background: rgba(26, 15, 13, .4); }

/* рыбаки, яхт-клуб: светло, солнце бликует, вода рябит */
.page.theme-yacht::after { background: linear-gradient(180deg, rgba(24, 84, 100, .32) 0%, rgba(8, 28, 34, .72) 42%, rgba(6, 16, 20, .95) 100%); }
.theme-yacht .page-fx i:nth-child(1) { right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 238, 196, .42), rgba(255, 238, 196, 0) 64%); animation: fxSun 6s ease-in-out infinite alternate; }
.theme-yacht .page-fx i:nth-child(2) { left: 0; right: 0; top: 200px; height: 160px; opacity: .6; mix-blend-mode: screen;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 36px, rgba(255, 255, 255, .09) 36px 40px, rgba(255, 255, 255, 0) 40px 86px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  animation: tpGlint 9s linear infinite; }
@keyframes tpGlint { from { background-position: 0 0; } to { background-position: 344px 0; } }

/* аквариум: под водой — блики на дне, лучи сверху, пузырьки */
.page.theme-deep::after { background: linear-gradient(180deg, rgba(34, 120, 128, .48) 0%, rgba(10, 52, 60, .82) 38%, rgba(4, 20, 26, .96) 100%); }
.theme-deep .page-fx i:nth-child(1) { inset: 0; mix-blend-mode: screen; background: radial-gradient(40px 14px at 20% 10%, rgba(200, 255, 245, .16), transparent 70%),
  radial-gradient(60px 18px at 70% 16%, rgba(200, 255, 245, .14), transparent 70%), radial-gradient(50px 16px at 45% 26%, rgba(200, 255, 245, .1), transparent 70%);
  background-size: 220px 120px; animation: vcCaustic 7s ease-in-out infinite alternate; }
.theme-deep .page-fx i:nth-child(2) { left: -20%; right: -20%; top: -10%; height: 80%; mix-blend-mode: screen;
  background: repeating-linear-gradient(100deg, rgba(210, 255, 245, 0) 0 34px, rgba(210, 255, 245, .07) 34px 52px, rgba(210, 255, 245, 0) 52px 96px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); animation: vcRays 9s ease-in-out infinite alternate; }
.theme-deep .page-fx i:nth-child(3) { inset: 0; opacity: .7;
  background-image: radial-gradient(circle at 20px 20px, rgba(220, 245, 240, .55) 0 2px, transparent 3px), radial-gradient(circle at 90px 70px, rgba(220, 245, 240, .45) 0 3px, transparent 4px),
    radial-gradient(circle at 160px 140px, rgba(220, 245, 240, .4) 0 2px, transparent 3px), radial-gradient(circle at 60px 200px, rgba(220, 245, 240, .5) 0 1.5px, transparent 2.5px);
  background-size: 200px 240px; animation: tpBubbles 9s linear infinite; }
@keyframes vcCaustic { from { background-position: 0 0; } to { background-position: 60px 24px; } }
@keyframes vcRays { from { transform: translateX(-20px) skewX(-6deg); } to { transform: translateX(20px) skewX(6deg); } }
@keyframes tpBubbles { from { background-position: 0 0; } to { background-position: 30px -480px; } }

/* трофейный зал: тёплый свет софитов, пылинки в луче */
.page.theme-hall::after { background: radial-gradient(60% 40% at 50% 0%, rgba(255, 206, 140, .24), transparent 70%),
  linear-gradient(180deg, rgba(34, 20, 10, .6) 0%, rgba(18, 11, 8, .9) 45%, #0B0706 100%); }
.theme-hall .page-fx i:nth-child(1) { left: 50%; top: -60px; width: 460px; height: 760px; margin-left: -230px; mix-blend-mode: screen; transform-origin: 50% 0;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255, 222, 170, .2), rgba(255, 222, 170, 0) 70%); animation: tpSway 10s ease-in-out infinite alternate; }
.theme-hall .page-fx i:nth-child(2) { inset: 0; opacity: .6;
  background-image: radial-gradient(circle at 30px 40px, rgba(255, 230, 190, .5) 0 1px, transparent 2px), radial-gradient(circle at 120px 160px, rgba(255, 230, 190, .4) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 200px 90px, rgba(255, 230, 190, .35) 0 1px, transparent 2px);
  background-size: 240px 220px; animation: tpDust 16s linear infinite; -webkit-mask-image: radial-gradient(60% 55% at 50% 20%, #000, transparent); mask-image: radial-gradient(60% 55% at 50% 20%, #000, transparent); }
@keyframes tpSway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes tpDust { from { background-position: 0 0; } to { background-position: 60px 220px; } }

/* магазин и лавки: тёплая лампа сверху покачивается */
.page.theme-shop::after { background: radial-gradient(70% 38% at 70% 0%, rgba(255, 196, 120, .24), transparent 70%),
  linear-gradient(180deg, rgba(30, 20, 12, .5) 0%, rgba(12, 16, 16, .88) 45%, rgba(6, 12, 14, .96) 100%); }
.theme-shop .page-fx i:nth-child(1) { right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; mix-blend-mode: screen; transform-origin: 50% 0;
  background: radial-gradient(circle, rgba(255, 206, 140, .34), rgba(255, 206, 140, 0) 62%); animation: tpLamp 5s ease-in-out infinite alternate; }
@keyframes tpLamp { from { transform: translateX(-10px); opacity: .85; } to { transform: translateX(10px); opacity: 1; } }

/* Семёныч: фонари гирлянды расплываются огоньками */
.page.theme-casino::after { background: radial-gradient(80% 40% at 50% 0%, rgba(255, 170, 90, .22), transparent 70%),
  linear-gradient(180deg, rgba(34, 16, 10, .58) 0%, rgba(16, 10, 10, .9) 45%, #0A0606 100%); }
.theme-casino .page-fx i:nth-child(1) { inset: 0; opacity: .8; mix-blend-mode: screen;
  background-image: radial-gradient(circle at 40px 60px, rgba(255, 190, 110, .35) 0 6px, transparent 16px), radial-gradient(circle at 150px 30px, rgba(255, 140, 90, .3) 0 5px, transparent 14px),
    radial-gradient(circle at 250px 80px, rgba(255, 220, 140, .3) 0 7px, transparent 18px), radial-gradient(circle at 330px 40px, rgba(255, 170, 110, .3) 0 5px, transparent 15px);
  background-size: 380px 140px; background-repeat: repeat-x; -webkit-mask-image: linear-gradient(180deg, #000, transparent 30%); mask-image: linear-gradient(180deg, #000, transparent 30%);
  animation: tpBokeh 4s ease-in-out infinite alternate; }
@keyframes tpBokeh { from { opacity: .55; } to { opacity: .95; } }

/* клуб: у костра — тёплый свет снизу, искры летят вверх */
.page.theme-club::after { background: radial-gradient(90% 40% at 50% 100%, rgba(255, 140, 60, .22), transparent 70%),
  linear-gradient(180deg, rgba(20, 30, 32, .5) 0%, rgba(10, 16, 18, .88) 45%, rgba(8, 10, 10, .96) 100%); }
.theme-club .page-fx i:nth-child(1) { inset: 0; opacity: .8;
  background-image: radial-gradient(circle at 40px 300px, rgba(255, 170, 80, .8) 0 1.5px, transparent 2.5px), radial-gradient(circle at 170px 200px, rgba(255, 200, 110, .7) 0 1px, transparent 2px),
    radial-gradient(circle at 280px 360px, rgba(255, 150, 70, .7) 0 1.5px, transparent 2.5px);
  background-size: 320px 400px; animation: tpSparks 7s linear infinite; -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 80%); mask-image: linear-gradient(0deg, #000 10%, transparent 80%); }
@keyframes tpSparks { from { background-position: 0 0; } to { background-position: 40px -400px; } }

/* «Поддержать», бонусы, меценаты: тёплое золото, искры поднимаются */
.page.theme-gold::after { background: radial-gradient(80% 40% at 50% 0%, rgba(255, 200, 110, .26), transparent 70%),
  linear-gradient(180deg, rgba(30, 22, 10, .55) 0%, rgba(14, 14, 12, .88) 45%, rgba(8, 10, 10, .96) 100%); }
.theme-gold .page-fx i:nth-child(1) { inset: 0; opacity: .85;
  background-image: radial-gradient(circle at 30px 320px, rgba(255, 220, 140, .85) 0 1.5px, transparent 2.5px), radial-gradient(circle at 150px 200px, rgba(255, 236, 180, .7) 0 1px, transparent 2px),
    radial-gradient(circle at 260px 380px, rgba(255, 210, 120, .75) 0 1.5px, transparent 2.5px), radial-gradient(circle at 330px 120px, rgba(255, 236, 180, .6) 0 1px, transparent 2px);
  background-size: 360px 420px; animation: tpSparks 9s linear infinite; }
.theme-gold .page-fx i:nth-child(2) { left: 50%; top: -120px; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 210, 130, .22), rgba(255, 210, 130, 0) 62%); animation: pfGlow 4s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .page .tp *, .page .tp, .page-fx i { animation: none !important; transition: none !important; }
}

/* ── фракции: скидка ранга над кнопкой, итог «Продать / На склад», новая лодка, журнал нападений ── */
.fx-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.fx-price .fx-old { font-size: 15px; line-height: 1; }
.fx-claim .tp-cel-t, .fx-bought .tp-cel-t { font-size: 34px; }
.fx-claim-list { position: relative; margin: 12px 0 2px; max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.fx-claim-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 10px 5px 6px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.fx-claim-row img { width: 40px; height: 32px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.fx-claim-row span { min-width: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.fx-claim-row .tp-val { font-size: 18px; }
.fx-claim-more { padding-left: 4px; font-size: 12.5px; font-weight: 600; color: rgba(246, 243, 236, .6); }
.fx-claim-sum { position: relative; margin: 10px 2px 2px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fx-claim-sum > span { font-size: 22px; color: rgba(246, 243, 236, .75); }
.fx-claim-sum .tp-val { font-size: 34px; }
.fx-claim-sum .tp-val svg { width: 22px; height: 22px; }
.fx-claim-fill { position: relative; margin: 12px 2px 2px; display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 14px; font-weight: 600;
  color: rgba(246, 243, 236, .82); }
.fx-claim-fill b { color: var(--ink); }
.fx-claim p, .fx-bought p { margin: 8px 0 12px; }
.fx-claim-chips, .fx-bought-chips { position: relative; justify-content: center; margin: 10px 0 12px; }
.fx-claim-x { margin-top: 8px; }
.fx-bought-st { margin-top: 12px; text-align: left; }
.fx-bought-st b { font-size: 26px; }
.fx-bought-st small s { opacity: .8; }
.fx-bought .fx-bought-warn { text-align: left; color: var(--accent); }
.fx-bought-warn svg { width: 1.1em; height: 1.1em; vertical-align: -.18em; }
.fx-jr.todo { border-color: rgba(242, 154, 142, .7); background: linear-gradient(100deg, rgba(242, 154, 142, .15), rgba(255, 255, 255, .04)); }
.theme-smug .fx-jr.todo { background: rgba(90, 20, 14, .38); border-color: rgba(227, 106, 86, .6); }
.fx-jr-due, .fx-jr-chase { display: flex; align-items: center; gap: 6px; margin-top: -4px; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--red); }
.fx-jr-chase { color: rgba(246, 243, 236, .78); }
.fx-jr-chase.active, .fx-jr-chase.caught { color: var(--aqua); }
.fx-jr-chase.escaped { color: var(--accent); }
.fx-jr-due svg, .fx-jr-chase svg { width: 14px; height: 14px; flex: none; }
