/* Ивент «Остров Фиштейна» (update/56_FISHTEIN_EVENT.md): лобби, эдит, рыбалка с яхты, подарки с неба, финал.
   Анимации — только transform и opacity (update/42_PERFORMANCE.md). */
#fte { z-index: 3; background: #02060c; overflow: hidden; touch-action: manipulation; }
body.in-fte #pages, body.in-fte .app-bg, body.in-fte #tabbar, body.in-fte #fishing { visibility: hidden; }
body.in-fte #pages *, body.in-fte .app-bg *, body.in-fte #tabbar * { animation-play-state: paused !important; }
#fte > .fl { position: absolute; inset: 0; }
#fte .hidden { display: none !important; }

/* ── лобби ── */
.fte-lobby { display: flex; flex-direction: column; color: #fff; overflow: hidden auto; -webkit-overflow-scrolling: touch; }
.fte-lobby .lb-bg { position: fixed; inset: 0; background: #02060c center / cover no-repeat; }
.fte-lobby .lb-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 12, .55) 0%, rgba(2, 6, 12, .1) 30%, rgba(2, 6, 12, .55) 55%, rgba(2, 6, 12, .96) 80%); }
.fte-lobby .lb-in { position: relative; z-index: 1; padding: calc(var(--safe-top) + 18px) 16px calc(var(--safe-bottom) + 24px);
  min-height: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
.lb-close { position: absolute; top: calc(var(--safe-top) + 12px); left: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; }
.lb-close svg { width: 20px; height: 20px; }
.lb-k { margin: 34px auto 0; font: 800 12px/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  background: rgba(0, 0, 0, .45); padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(243, 210, 139, .35); }
.lb-t { margin: 12px 0 0; text-align: center; font: 800 44px/0.95 var(--f-display); letter-spacing: .01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8), 0 0 40px rgba(255, 190, 90, .35); }
.lb-when { text-align: center; margin-top: 8px; color: #ffe7b8; font: 600 15px/1.3 var(--f-text); text-shadow: 0 1px 8px #000; }
.lb-space { flex: 1 1 auto; min-height: 120px; }
.lb-timer { text-align: center; }
.lb-timer small { display: block; color: var(--ink-2); font: 600 13px var(--f-text); letter-spacing: .04em; }
.lb-timer b { display: block; font: 800 64px/1 var(--f-display); color: #fff; letter-spacing: .02em; margin-top: 2px;
  text-shadow: 0 0 24px rgba(255, 210, 120, .45), 0 2px 12px #000; font-variant-numeric: tabular-nums; }
.lb-card { margin-top: 16px; background: rgba(6, 14, 22, .72); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 14px; }
.lb-card h4 { margin: 0 0 8px; font: 800 18px/1.1 var(--f-display); letter-spacing: .02em; display: flex; align-items: baseline; gap: 8px; }
.lb-card h4 span { color: var(--gold); font: 800 22px var(--f-display); }
.lb-names { display: flex; flex-wrap: wrap; gap: 6px; max-height: 132px; overflow: hidden; }
.lb-names i { font-style: normal; font: 600 13px/1 var(--f-text); padding: 6px 9px; border-radius: 99px; background: rgba(255, 255, 255, .08);
  color: var(--ink); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-names i.me { background: rgba(243, 210, 139, .2); color: var(--gold); }
.lb-names .new { animation: lbPop .5s var(--spring) both; }
@keyframes lbPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.lb-tips { margin: 12px 0 0; padding: 0; list-style: none; color: var(--ink-2); font: 500 13.5px/1.35 var(--f-text); }
.lb-tips li { display: flex; gap: 8px; margin-top: 6px; }
.lb-tips svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--gold); }
.lb-go { margin-top: 16px; }
.lb-go .btn { width: 100%; }
.lb-on { text-align: center; color: var(--green); font: 700 15px/1.3 var(--f-text); margin-top: 12px; }
.lb-on svg { width: 18px; height: 18px; vertical-align: -3px; }
.lb-load { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 10px; }
.lb-load i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #f3d28b, #fff4d6); transform-origin: 0 50%;
  transform: scaleX(0); transition: transform .4s ease-out; }
.lb-load-t { text-align: center; margin-top: 6px; color: var(--muted); font: 500 12px var(--f-text); }

/* звук: нажать, чтобы включить (браузер не дал играть сам) */
.fte-sound { position: absolute; right: 14px; bottom: calc(var(--safe-bottom) + 18px); z-index: 30; display: flex; pointer-events: none; }
.fte-sound button { pointer-events: auto; border: 0; border-radius: 99px; padding: 12px; background: rgba(0, 0, 0, .72); color: #fff;
  font: 700 15px var(--f-text); display: flex; gap: 8px; align-items: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 8px 30px rgba(0, 0, 0, .6);
  animation: fteBlink 1.6s ease-in-out infinite; }
.fte-sound svg { width: 18px; height: 18px; color: var(--gold); }
@keyframes fteBlink { 50% { opacity: .65; } }

/* ── эдит ── */
.fe { position: absolute; inset: 0; overflow: hidden; background: #000; contain: strict; }
.fe-stage { position: absolute; inset: 0; }
.fe-shot { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; isolation: isolate; background: #000; }
.fe-front .fe-shot { background: none; }
.fe-shot img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* разведение цвета: красный и голубой каналы врозь на доли секунды */
.fe-shot img.r, .fe-shot img.c { display: none; mix-blend-mode: screen; }
.fe-shot.rgb img.m { opacity: 0; }
.fe-shot.rgb img.r { display: block; filter: url(#feR); transform: translateX(-1.6%); }
.fe-shot.rgb img.c { display: block; filter: url(#feC); transform: translateX(1.6%); }
/* глитч: полосы картинки, сдвинутые вбок */
.fe-glitch, .fe-glitch > div { position: absolute; inset: 0; }
.fe-glitch img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* негатив / ч-б / пересвет — на одну склейку */
.fe-stage.inv { filter: invert(1) hue-rotate(180deg) contrast(1.15); }
.fe-stage.bw { filter: grayscale(1) contrast(1.5) brightness(1.05); }
.fe-stage.hot { filter: saturate(1.9) contrast(1.25) brightness(1.12); }
.fe-vig { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%),
              linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 18%, transparent 70%, rgba(0, 0, 0, .55) 100%); }
.fe.dim .fe-stage { opacity: .45; }
.fe-cine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); }
.fe-cine.on { opacity: 1; }
.fe-bars i { position: absolute; left: 0; right: 0; height: 10vh; background: #000; transition: transform .6s var(--ease); }
.fe-bars i:first-child { top: 0; transform: translateY(-100%); }
.fe-bars i:last-child { bottom: 0; transform: translateY(100%); }
.fe-bars.on i { transform: none; }
.fe-flash, .fe-white, .fe-black { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.fe-flash, .fe-white { background: #fff; }
.fe-black { background: #000; }
.fe-white.hold, .fe-black.hold { opacity: var(--o, 1); transition: opacity .3s ease-in; }
.fe-bloom { position: absolute; width: 70vmin; height: 70vmin; left: 50%; top: 40%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 245, 220, .5) 22%, transparent 60%); mix-blend-mode: screen; }

/* ники над головами — как в GTA Online: белое имя с чёрной обводкой и значок места */
.fe-tags, .fe-sparks, .fe-money, .fe-front { position: absolute; inset: 0; pointer-events: none; }
.fe-tag { position: absolute; left: 0; top: 0; will-change: transform; }
.fe-tag > * { transform: translate(-50%, -100%) scale(.4); opacity: 0; transition: transform .45s var(--spring), opacity .25s; }
.fe-tag.on > * { transform: translate(-50%, -100%); opacity: 1; }
.fe-tag .fe-nm { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 800 19px/1 var(--f-text); color: #fff; letter-spacing: .01em;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 2px 6px rgba(0, 0, 0, .9); }
.fe-tag.has-rub .fe-nm { top: -46px; }
.fe-tag .fe-rk { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; box-sizing: border-box;
  font: 800 13px/1 var(--f-text); color: #1b1203; text-shadow: none; background: linear-gradient(180deg, #ffe9a8, #e9b24c);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 12px rgba(255, 210, 110, .7); }
.fe-tag .fe-rk.st { background: linear-gradient(180deg, #e2f4ff, #8fc8ff); box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 12px rgba(150, 210, 255, .7); }
/* вклад мецената — крупно, ярким золотом: набирается со свечением, в конце — вспышка */
.fe-tag i { position: absolute; left: 0; top: 0; font-style: normal; white-space: nowrap; font: 900 42px/1 var(--f-display); color: #ffe27a;
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 0 18px rgba(255, 200, 60, .95), 0 0 42px rgba(255, 170, 40, .7); }
.fe-tag.on:not(.done) i { animation: feCount .32s ease-in-out infinite alternate; }
@keyframes feCount { from { color: #ffd24a; } to { color: #fff6cf; } }
.fe-tag.done i { animation: feDone .7s var(--spring); color: #fff1b0; }
@keyframes feDone { 0% { transform: translate(-50%, -100%) scale(1); } 35% { transform: translate(-50%, -100%) scale(1.4); color: #fff; }
  100% { transform: translate(-50%, -100%) scale(1); } }
.fe-tag.done::after { content: ""; position: absolute; left: 0; top: -22px; width: 190px; height: 90px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 230, 140, .9), rgba(255, 200, 60, 0)); opacity: 0; pointer-events: none;
  animation: feBurst .8s ease-out; mix-blend-mode: screen; }
@keyframes feBurst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }

/* титры */
.fe-title { position: absolute; left: 16px; right: 16px; top: 38%; text-align: center; opacity: 0; transform: scale(.92); isolation: isolate;
  transition: opacity .4s, transform .6s var(--ease); pointer-events: none; }
.fe-title.on { opacity: 1; transform: none; }
.fe-title b { display: block; font: 800 44px/0.95 var(--f-display); color: #fff; letter-spacing: .02em; text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .85), 0 0 34px rgba(255, 196, 90, .4); }
.fe-title small { display: block; margin-top: 10px; font: 600 16px/1.35 var(--f-text); color: #ffe7b8; text-shadow: 0 1px 8px #000, 0 0 3px #000; text-wrap: balance; }
.fe-title.k-rank { top: auto; bottom: calc(var(--safe-bottom) + 70px); }
.fe-title.k-rank b { font-size: 54px; color: #ffd76a; text-transform: uppercase; letter-spacing: .04em;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 0 30px rgba(255, 190, 60, .9); }
.fe-title.k-rank small { font: 800 18px var(--f-text); color: #fff; text-transform: uppercase; letter-spacing: .14em; }
.fe-title.k-soft { top: auto; bottom: calc(var(--safe-bottom) + 90px); }
.fe-title.k-soft b { font-size: 40px; color: #ffe7f0; }
.fe-title.k-slide { top: calc(var(--safe-top) + 7vh); }
.fe-title.k-slide b { font-size: 50px; color: #ffe7a8; text-transform: uppercase; letter-spacing: .03em; }
.fe-title.k-slide small { font: 700 17px/1.35 var(--f-text); color: #fff; background: rgba(0, 0, 0, .5); display: inline-block; padding: 6px 10px; border-radius: 10px; }
.fe-title.k-spooky b { font-size: 64px; color: #ff9d3b; text-transform: uppercase; letter-spacing: .04em;
  text-shadow: 0 0 26px rgba(255, 120, 0, .9), 0 0 60px rgba(150, 60, 255, .7), 0 2px 10px #000; }
.fe-title.k-spooky small { font: 700 18px/1.35 var(--f-text); color: #fff; }
.fe-title.k-spooky.on b { animation: feFlicker 1.6s steps(1) .6s infinite; }
@keyframes feFlicker { 0%, 100% { opacity: 1; } 12% { opacity: .35; } 15% { opacity: 1; } 47% { opacity: .6; } 50% { opacity: 1; } }
/* по центру между киношными полосами, на тёмной полосе — читается поверх любой картинки */
.fe-title.k-center { top: calc(50% - 72px); }
.fe-title.k-center::before { content: ""; position: absolute; left: -16px; right: -16px; top: -26px; bottom: -26px; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .62) 22%, rgba(0, 0, 0, .62) 78%, transparent); }
.fe-title.k-center b { font-size: 52px; color: #ffe7a8; text-shadow: 0 2px 4px #000, 0 0 26px rgba(255, 196, 90, .55); }
.fe-title.k-center small { font: 700 18px/1.35 var(--f-text); color: #fff; margin-top: 12px; }
.fe-title.k-top { top: calc(var(--safe-top) + 8vh); }
.fe-title.k-top::before { content: ""; position: absolute; left: -16px; right: -16px; top: -8vh; height: calc(100% + 16vh); z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .35) 60%, transparent); }
.fe-title.k-top b { color: #ffe7a8; }

/* крупное имя с суммой: падает в кадр с ударом */
.fe-big { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 40px); pointer-events: none; opacity: 0; }
.fe-big.on { opacity: 1; }
.fe-big.slam { animation: feSlam .4s cubic-bezier(.2, 1.4, .3, 1) both; }
.fe-big small { display: block; font: 800 15px/1 var(--f-text); color: #ffd76a; letter-spacing: .2em; text-transform: uppercase;
  text-shadow: 0 2px 6px #000, 0 0 2px #000; }
.fe-big b { display: block; margin-top: 4px; font: 900 66px/.88 var(--f-display); color: #fff; text-transform: uppercase; letter-spacing: .01em;
  text-shadow: -3px 0 rgba(255, 40, 110, .85), 3px 0 rgba(0, 220, 255, .85), 0 4px 18px rgba(0, 0, 0, .95); overflow-wrap: anywhere; }
.fe-big i { display: block; margin-top: 6px; font: 900 46px/1 var(--f-display); font-style: normal; color: #ffd76a; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255, 190, 60, .9), 0 3px 8px #000; }
.fe-big.gold b { color: #ffe7a8; }
.fe-big.soft b { color: #ffe7f0; text-shadow: 0 0 24px rgba(255, 170, 220, .7), 0 4px 18px rgba(0, 0, 0, .95); }
@keyframes feSlam { from { transform: scale(2.3) translateY(-12%); opacity: 0; filter: blur(6px); } 55% { opacity: 1; filter: blur(0); } to { transform: none; opacity: 1; } }

/* текст во весь экран (титры, объявления финала) */
.fe-slam { position: absolute; left: 14px; right: 14px; top: 38%; text-align: center; opacity: 0; pointer-events: none; }
.fe-slam.on { opacity: 1; animation: feSlam .42s cubic-bezier(.2, 1.4, .3, 1) both; }
.fe-slam b { display: block; font: 900 60px/.9 var(--f-display); color: #fff; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance;
  text-shadow: -3px 0 rgba(255, 40, 110, .8), 3px 0 rgba(0, 220, 255, .8), 0 4px 20px rgba(0, 0, 0, .95); }
.fe-slam small { display: block; margin: 12px auto 0; max-width: 340px; font: 700 17px/1.35 var(--f-text); color: #fff; text-wrap: balance;
  text-shadow: 0 2px 8px #000, 0 0 3px #000; }
.fe-slam.k-top { top: calc(var(--safe-top) + 9vh); }
.fe-slam.k-gold b { color: #ffe7a8; }
.fe-slam.k-spooky b { color: #ff9d3b; text-shadow: -4px 0 rgba(170, 60, 255, .95), 4px 0 rgba(255, 110, 0, .9), 0 0 34px rgba(255, 120, 0, .85); }
.fe-slam.k-spooky.on { animation: feSlam .42s cubic-bezier(.2, 1.4, .3, 1) both, feFlicker 1.1s steps(1) .5s infinite; }
@keyframes feFlicker { 0%, 100% { opacity: 1; } 12% { opacity: .25; } 15% { opacity: 1; } 47% { opacity: .5; } 50% { opacity: 1; } }

/* блёстки бриллиантов */
.fe-spark { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.fe-spark::before { content: ""; position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; opacity: 0;
  background: radial-gradient(circle, #fff 0 12%, rgba(255, 255, 255, .0) 13%),
              linear-gradient(0deg, transparent 46%, #fff 50%, transparent 54%),
              linear-gradient(90deg, transparent 46%, #fff 50%, transparent 54%);
  filter: drop-shadow(0 0 4px rgba(200, 235, 255, .95));
  animation: feSpark 1.7s ease-in-out var(--d, 0s) infinite; transform: scale(var(--z, 1)); }
@keyframes feSpark { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45% { opacity: 1; transform: scale(var(--z, 1)) rotate(45deg); } 60% { opacity: .2; } }
.fe-bill { position: absolute; top: -8%; width: 34px; height: 16px; border-radius: 2px; opacity: .92;
  background: linear-gradient(135deg, #a6e3a1, #5aa35a); box-shadow: inset 0 0 0 2px rgba(0, 60, 0, .35);
  animation: feBill var(--t, 3s) linear var(--d, 0s) infinite; }
@keyframes feBill { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(30px, 112vh, 0) rotate(var(--r, 180deg)); } }

/* экран кинотеатра */
.fe-screen { position: absolute; left: 0; top: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity .6s; background: radial-gradient(120% 120% at 50% 40%, #12254a 0%, #070e1d 60%, #03060c 100%);
  box-shadow: inset 0 0 30px rgba(120, 190, 255, .35); }
.fe-screen.lit { opacity: 1; }
.fe-screen span { color: #fff; text-align: center; font: 800 22px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 0 12px rgba(120, 200, 255, .9), 0 0 2px #09f; animation: feScreen .4s ease-out both; padding: 0 6%; }
.fe-screen span.big { font-size: 34px; color: #ffe7a8; text-shadow: 0 0 16px rgba(255, 200, 90, .95), 0 0 2px #f90; }
.fe-screen span.noise { width: 100%; height: 100%; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 4px); animation: none; }
@keyframes feScreen { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }

/* субтитры */
.fe-sub { position: absolute; left: 16px; right: 16px; bottom: calc(10vh + var(--safe-bottom) + 14px); text-align: center; opacity: 0;
  transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.fe-sub.on { opacity: 1; transform: none; }
.fe-sub b { display: block; font: 800 14px/1 var(--f-text); color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
  text-shadow: 0 1px 6px #000; }
.fe-sub span { display: inline; font: 700 20px/1.3 var(--f-text); color: #fff; padding: 2px 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: rgba(0, 0, 0, .55); border-radius: 6px; }
.fe.slowmo .fe-shot { transition: none; }

/* ── рыбалка с яхты: поверх сцены — шкала рыб и лента уловов ── */
.ftf-hud { position: absolute; left: 0; right: 0; top: calc(var(--safe-top) + 104px); z-index: 12; padding: 0 14px; pointer-events: none; }
.ftf-bar { background: rgba(4, 10, 18, .62); border: 1px solid rgba(180, 230, 255, .22); border-radius: 16px; padding: 8px 12px 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.ftf-bar .t { display: flex; justify-content: space-between; align-items: baseline; color: #eaf8ff; font: 700 13.5px/1.2 var(--f-text); }
.ftf-bar .t b { font: 800 20px/1 var(--f-display); color: #bfe9ff; letter-spacing: .02em; text-shadow: 0 0 10px rgba(140, 220, 255, .7); white-space: nowrap; }
.ftf-bar .t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 8px; }
.ftf-bar small { display: block; margin-top: 5px; text-align: right; color: var(--ink-2); font: 600 12px/1 var(--f-text); min-height: 12px; }
.ftf-bar small:empty { display: none; }
.ftf-bar .tr { height: 7px; border-radius: 6px; background: rgba(255, 255, 255, .1); margin-top: 7px; overflow: hidden; }
.ftf-bar .tr i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transition: transform .6s var(--ease);
  background: linear-gradient(90deg, #8fd8ff, #f2fbff 45%, #c9b6ff); box-shadow: 0 0 12px rgba(160, 230, 255, .8); }
.ftf-feed { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ftf-feed > div { display: flex; align-items: center; gap: 8px; max-width: 92%; background: rgba(4, 10, 18, .66); border-radius: 14px; padding: 5px 10px 5px 5px;
  color: #fff; font: 600 13px/1.25 var(--f-text); animation: ftfIn .45s var(--spring) both; border: 1px solid rgba(180, 230, 255, .16); }
.ftf-feed > div.out { animation: ftfOut .5s ease-in both; }
.ftf-feed img { width: 44px; height: 30px; object-fit: contain; filter: grayscale(1) sepia(.5) hue-rotate(155deg) saturate(1.8) brightness(1.2) drop-shadow(0 0 6px rgba(170, 230, 255, .9)); }
.ftf-feed b { color: #bfe9ff; }
@keyframes ftfIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes ftfOut { to { opacity: 0; transform: translateX(-20px); } }
#ftf.fte-fishing .bait-chip, #ftf.fte-fishing .kn-duo, #ftf.fte-fishing .kn-coins { visibility: hidden; }
/* своя очередь за бриллиантовой — строкой под шкалой */
.ftf-bar .mine { display: block; margin-top: 6px; color: #fff; font: 700 13px/1.3 var(--f-text); }
.ftf-bar .mine b { color: #bfe9ff; font-variant-numeric: tabular-nums; }
.ftf-bar .mine:empty { display: none; }
/* обычная рыба — коротко: что поймано и почём, и рыбалка дальше */
.ftf-ord { position: absolute; left: 50%; bottom: calc(var(--safe-bottom) + 170px); z-index: 30; transform: translateX(-50%); pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 18px; background: rgba(4, 10, 18, .82);
  border: 1px solid rgba(255, 215, 120, .35); color: #fff; white-space: nowrap; animation: ftfOrd 2.6s ease both; }
.ftf-ord img { width: 72px; height: 46px; object-fit: contain; }
.ftf-ord b { display: block; font: 800 16px/1.15 var(--f-text); }
.ftf-ord small { display: block; color: var(--gold); font: 700 13px/1.2 var(--f-text); }
@keyframes ftfOrd { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.9); } 12%, 82% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); } }
#ftf.fte-fishing .kn-title .nv-chev { display: none; }
/* подарки с неба: удочки унесли — панели рыбалки не нужны, сверху — свой заголовок подарков */
#ftf.no-rod .hud-top, #ftf.no-rod .hud-bottom, #ftf.no-rod .tap-hint { visibility: hidden; }

/* бриллиантовая рыба: улов */
.ftf-dia-wrap { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(2, 8, 16, .78);
  animation: ftfFade .35s ease-out both; padding: 16px; }
@keyframes ftfFade { from { opacity: 0; } }
.ftf-dia { width: min(100%, 380px); text-align: center; color: #fff; }
.ftf-dia .k { font: 800 12px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: #bfe9ff; }
.ftf-dia h3 { margin: 10px 0 0; font: 800 34px/1 var(--f-display); letter-spacing: .01em; color: #f2fbff;
  text-shadow: 0 0 22px rgba(150, 220, 255, .85); }
.ftf-dia .w { margin-top: 6px; color: var(--ink-2); font: 600 15px var(--f-text); }
.ftf-dia p { margin: 12px auto 0; color: var(--ink); font: 500 14.5px/1.4 var(--f-text); max-width: 320px; }
.ftf-dia .btn { margin-top: 18px; width: 100%; }
.dia-fish { position: relative; width: 100%; aspect-ratio: 1.4; margin-top: 8px; }
.dia-fish .rot { position: absolute; inset: 0; animation: diaFloat 3.2s ease-in-out infinite; }
.dia-fish img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1) sepia(.5) hue-rotate(155deg) saturate(1.8) brightness(1.18) contrast(1.08) drop-shadow(0 0 22px rgba(160, 230, 255, .95)); }
.dia-fish .shine { position: absolute; inset: 0; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; overflow: hidden; }
.dia-fish .shine i { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 60%; transform: translateX(-100%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9) 40%, rgba(170, 240, 255, .8) 50%, rgba(255, 190, 255, .7) 60%, transparent);
  animation: diaShine 2.4s ease-in-out infinite; }
@keyframes diaShine { 0% { transform: translateX(0) skewX(-18deg); } 60%, 100% { transform: translateX(380%) skewX(-18deg); } }
@keyframes diaFloat { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.dia-fish .fe-spark { position: absolute; }

/* ── подарки с неба ── */
.fte-drops { z-index: 20; overflow: hidden; touch-action: manipulation; }
.fte-drops .fd-top { position: absolute; left: 12px; right: 12px; top: calc(var(--safe-top) + 12px); z-index: 3; text-align: center; pointer-events: none; }
.fte-drops .fd-top b { display: block; font: 800 30px/1 var(--f-display); color: #ffe7a8; text-shadow: 0 2px 14px #000, 0 0 20px rgba(255, 200, 90, .6); }
.fte-drops .fd-top small { display: block; margin-top: 6px; color: #fff; font: 600 14px/1.35 var(--f-text); text-shadow: 0 1px 8px #000; }
.fte-drops .fd-cnt { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.fte-drops .fd-cnt span { display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .55); border-radius: 12px; padding: 4px 9px 4px 4px;
  color: #fff; font: 800 15px var(--f-text); border: 1px solid rgba(255, 255, 255, .12); }
.fte-drops .fd-cnt span.full { color: var(--green); border-color: rgba(159, 227, 182, .5); }
.fte-drops .fd-cnt img { width: 28px; height: 28px; object-fit: contain; }
.fd-item { position: absolute; left: 0; top: 0; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; padding: 0; background: none;
  will-change: transform; z-index: 2; }
.fd-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 14px rgba(255, 220, 140, .8)); }
.fd-item::before { content: ""; position: absolute; left: 50%; top: -70px; width: 2px; height: 70px; background: linear-gradient(transparent, rgba(255, 255, 255, .6));
  transform: translateX(-50%); }
.fd-item.got { pointer-events: none; }
.fd-pop { position: absolute; z-index: 4; pointer-events: none; color: #ffe7a8; font: 800 22px var(--f-display); text-shadow: 0 2px 8px #000;
  animation: fdPop .9s ease-out forwards; }
@keyframes fdPop { from { transform: translate(-50%, 0) scale(.6); opacity: 0; } 20% { opacity: 1; transform: translate(-50%, -12px) scale(1.1); }
  to { transform: translate(-50%, -70px); opacity: 0; } }

/* ── конец ── */
.fte-done { display: flex; align-items: center; justify-content: center; padding: 16px; color: #fff; text-align: center; z-index: 25;
  background: #02060c; }
.fte-done .dn-bg { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .5; }
.fte-done .dn-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 30%, rgba(30, 60, 90, .35), rgba(2, 6, 12, .96)); }
.fte-done .dn-in { position: relative; }
.fte-done h3 { margin: 0; font: 800 40px/1 var(--f-display); color: #ffe7a8; }
.fte-done p { color: var(--ink-2); font: 500 15px/1.4 var(--f-text); max-width: 340px; margin: 10px auto 0; }
.fte-done .got { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.fte-done .got span { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 8px 12px; font: 700 14px var(--f-text); }
.fte-done .btn { margin-top: 22px; width: min(100%, 340px); }

/* именная «Бриллиантовая» в остальной игре (рюкзак, коллекция, реестр) */
img.named-diamond { filter: grayscale(1) sepia(.5) hue-rotate(155deg) saturate(1.8) brightness(1.18) contrast(1.08) drop-shadow(0 0 14px rgba(160, 230, 255, .9)) !important; }
.named-diamond { color: #bfe9ff; }
.v-diamond { --vc: #DFF4FF; --vc2: #9ED8FF; --vg: rgba(170, 230, 255, .65); }

/* кнопка «Подняться на борт» в окне анонса */
.ev-btns .ev-board { order: -1; }
.fe-title.k-center.k-spooky b { font-size: 64px; color: #ff9d3b; text-transform: uppercase; letter-spacing: .04em;
  text-shadow: 0 0 26px rgba(255, 120, 0, .9), 0 0 60px rgba(150, 60, 255, .7), 0 2px 10px #000; }

/* бриллиантовая раскраска (ивент «Остров Фиштейна») в рюкзаке, витрине и коллекции — как альбинос, только ледяной перелив */
.bk-named.diamond { background: linear-gradient(100deg, rgba(170, 225, 255, .16), rgba(200, 170, 255, .08)); border-color: rgba(170, 225, 255, .55); }
.bk-named.diamond .bk-halo { background: radial-gradient(50% 50% at 50% 50%, rgba(170, 225, 255, .5), rgba(170, 225, 255, 0) 70%); }
.bk-named.diamond .bk-named-fish img { filter: grayscale(1) sepia(.5) hue-rotate(155deg) saturate(1.8) brightness(1.2) drop-shadow(0 0 12px rgba(170, 230, 255, .9)); }
.bk-named.diamond .bk-goldtext { background-image: linear-gradient(100deg, #8FD8FF 0%, #FFFFFF 22%, #BFE9FF 40%, #F2E6FF 55%, #9ED8FF 72%, #FFFFFF 100%); }
.bk-named.diamond .bk-named-tx small { color: rgba(205, 238, 255, .9); }
.bk-named.diamond .bk-collect { border-color: rgba(170, 225, 255, .65); color: #DFF4FF; }
.tp-named.diamond { border-color: rgba(170, 225, 255, .55); background: linear-gradient(180deg, rgba(170, 225, 255, .16), rgba(200, 170, 255, .05)); }
.tp-named.diamond .tp-named-glow { background: radial-gradient(closest-side, rgba(170, 225, 255, .5), rgba(170, 225, 255, 0)); }
.tp-named.diamond .tp-named-count { background: #DFF4FF; box-shadow: 0 4px 12px rgba(170, 225, 255, .4); }
.named-card.diamond { border-color: rgba(170, 225, 255, .45); background: radial-gradient(100% 80% at 50% 20%, rgba(170, 225, 255, .16), rgba(10, 20, 22, .5)); }
