/* Верша (07.10, screens/trap.js + spots.trapStrip, update/34_FIRST_DAY.md).
   Анимации — только transform и opacity (память miniapp-performance): свечение «полна» — готовый ореол на ::after,
   у него меняется прозрачность, и не бесконечно. */

/* полоса на «Рыбалке» — по образцу автоловли (.afs), слева картинка верши */
.trs { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 74px; margin-top: 14px;
  padding: 8px 10px 8px 8px; border-radius: 22px; text-align: left; color: var(--ink);
  background: linear-gradient(100deg, #12221F 0%, #0D1A1D 70%); border: 1.5px solid rgba(169, 228, 208, .45);
  box-shadow: 0 12px 28px rgba(3, 10, 12, .4); transition: transform .18s var(--ease); }
.trs:active { transform: scale(.98); }
.trs-art { flex: none; width: 66px; height: 54px; display: grid; place-items: center; }
.trs-art img { width: 100%; height: 100%; object-fit: contain; transform: rotate(-8deg); }
.trs-tx { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.trs-tx small { font-size: 13px; color: var(--aqua); }
.trs-tx b { font-size: 19px; line-height: 1.08; }
.trs-tx i { font-style: normal; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: rgba(246, 243, 236, .78); }
.trs-go { position: relative; flex: none; display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 8px 0 12px;
  border-radius: 12px; font-size: 16px; color: #0E2320; background: linear-gradient(100deg, #C6F5E5, #7FD8BE); }
.trs-go svg { width: 16px; height: 16px; }
.trs.set .trs-go { color: var(--ink); background: rgba(255, 255, 255, .1); }
.trs.ready { border-color: rgba(243, 210, 139, .85); background: linear-gradient(100deg, #2A2412 0%, #0D1A1D 75%); }
.trs.ready .trs-tx small { color: var(--accent); }
.trs.ready .trs-go { color: #3a2300; background: linear-gradient(100deg, #FFE6A0, #E8B55C); }
.trs.ready::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255, 230, 160, .55), 0 0 22px rgba(243, 210, 139, .45); opacity: 0;
  animation: trsGlow 1.8s ease-in-out 6 alternate; }
.trs.ready .trs-art img { animation: trsWobble 1.6s ease-in-out 4; }
@keyframes trsGlow { to { opacity: 1; } }
@keyframes trsWobble { 0%, 100% { transform: rotate(-8deg); } 25% { transform: rotate(-3deg) translateY(-2px); } 60% { transform: rotate(-12deg); } }

/* страница: карточка с картинкой */
.trap-card { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 14px;
  padding: 14px 16px 14px 10px; border-radius: 24px; background: rgba(8, 20, 24, .72); border: 1.5px solid rgba(169, 228, 208, .35); }
.trap-art { display: grid; place-items: center; height: 104px; }
.trap-art img { width: 100%; height: 100%; object-fit: contain; transform: rotate(-6deg); }
.trap-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trap-k { font-size: 13px; color: var(--aqua); }
.trap-tx b { font-size: 24px; line-height: 1.05; }
.trap-tx small { font-size: 13px; font-weight: 600; line-height: 1.35; color: rgba(246, 243, 236, .75); }
.trap-tx .tp-bar { margin-top: 6px; }
.trap-card.ready { border-color: rgba(243, 210, 139, .8); background: linear-gradient(120deg, rgba(58, 46, 16, .78), rgba(8, 20, 24, .78)); }
.trap-card.ready .trap-k { color: var(--accent); }
.trap-card.ready .trap-art img { animation: trsWobble 1.6s ease-in-out 5; }
.trap-put { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 11px; font-size: 14px;
  color: #0E2320; background: linear-gradient(100deg, #C6F5E5, #7FD8BE); }
.trap-put svg { width: 15px; height: 15px; }

/* улов: строки выплывают по очереди */
.trap-haul .trap-got { opacity: 0; animation: trapIn .42s var(--ease, ease-out) forwards; }
.trap-haul .trap-got.rare { border-color: rgba(182, 146, 255, .7); }
@keyframes trapIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 360px) {
  .trap-card { grid-template-columns: 96px minmax(0, 1fr); }
  .trap-art { height: 84px; }
  .trap-tx b { font-size: 21px; }
  .trs-tx b { font-size: 17px; }
}
