

 /* Контейнер header для удобства */
.headertitle {
  position: relative;
  z-index: 100;
  font-size: 36px;
  font-weight: bold;
  color: var(--tg-theme-text-color, #0078D7);
  overflow: hidden;
  user-select: none;
  transition: opacity 5.5s ease;
}
.lb-gold   { color: #FFD700; font-weight: bold; }
.lb-silver { color: #C0C0C0; font-weight: bold; }
.lb-bronze { color: #CD7F32; font-weight: bold; }
.lb-me {
  outline: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}

.lb-rank {
  font-size: 18px;
}
.lb-row {
  animation: fadeUp 0.35s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.desc {
  font-size: 18px;
  z-index: 99;
  color: var(--tg-theme-text-color, #000);
  position: relative;
  transform: translateY(30px);
  opacity: 1;
  transition: transform 2.5s ease, font-size 2.5s ease, color 2.5s ease;
  user-select: none;
}

.desc.raiseUp {
  transform: translateY(0px); /* поднимаем на 30px выше начальной точки */
  font-size: 14px;
  color: var(--tg-theme-text-color);
    padding-top: 2%;
    padding-bottom: 2%;

    text-align: center;
}



/* Класс для анимации растворения заголовка */
.headertitle.fadeOut {
  animation: dissolveWater 1.5s forwards;
}



/* Эффект растворения — размытие + волны */
@keyframes dissolveWater {
  0% {
    opacity: 1;
    filter: blur(0) saturate(100%);
    transform: translateY(0) scale(1);
  }
  30% {
    filter: blur(1.5px) saturate(200%);
    transform: translateY(5px) scale(1.05);
  }
  60% {
    filter: blur(4px) saturate(50%);
    transform: translateY(15px) scale(1.1);
  }
  100% {
    opacity: 0;
    filter: blur(8px) saturate(0%);
    transform: translateY(30px) scale(1.15);
  }
}



 html {
        margin: 0;
        padding: 0;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
      }

      body {
        font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
        margin: 0;
        padding: 0;
        overflow: hidden;
        background-color: black;
      }

      #mainHolder {
        font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
        font-size: 15px;
        text-align: center;
        width: 100%;
        height: auto;
        position: absolute;
      }

      .contentWrapper {
        width: 80%;
        max-width: 600px;
        margin: 5% auto;
      }

      .headerleft {
        font-size: 60px;
      }

      #settingHolder {
        width: 450px;
        border: #999 solid 2px;
        text-align: left;
        font-size: 12px;
        margin: 5% auto;
        padding: 5px 30px;
        pointer-events: auto;
        display:none;
      }

      .columnBig {
        width: 100%;
        float: left;
      }

      .column {
        width: 45%;
        margin: 2.5%;
        float: left;
      }

      .column span {
        font-weight: bold;
      }

      .row {
        margin: 0 0 20px;
      }

      .slider {
        height: 5px;
        margin-top: 10px;
      }

      .ui-slider .ui-slider-handle {
        width: 10px;
        height: 15px;
      }

      #colour {
        width: 50%;
        height: 20px;
        margin-top: 10px;
        border: #CCC solid 1px;
      }

      #reset {
        width: 20%;
        height: 20px;
        margin-left: 40%;
      }

      #canvasHolder {
        width: 100%;
        height: 100%;
      }

      .ignorePadding {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
      }

      @-webkit-viewport {
        width: device-width
      }

      @-moz-viewport {
        width: device-width
      }

      @-ms-viewport {
        width: device-width
      }

      @-o-viewport {
        width: device-width
      }

      @viewport {
        width: device-width
      }


      #bottomMenu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0f0f10a8;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
}

.menu-btn {
  background: transparent;
  border: none;
  color: var(--tg-theme-button-text-color, #fff);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background-color 0.25s ease;
  font-weight: 600;
  user-select: none;
}

.menu-btn:hover,
.menu-btn:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

#bottomMenu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000000;
    display: flex;
    justify-content: space-around;
    padding: 8px 1px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.menu-btn {
  background: transparent;
  border: none;
  color: var(--tg-theme-button-text-color, #fff);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background-color 0.25s ease;
  font-weight: 600;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
}

.menu-btn:hover,
.menu-btn:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

.menu-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  filter: var(--tg-theme-button-icon-filter, none);
}

.menu-text {
  white-space: nowrap;
  line-height: 1;
}
.headerleft {
    align-items: center;
    font-size: 14px;
    color: var(--tg-theme-text-color);
}
.headercenter {
    align-items: center;
    font-size: 14px;
    color: var(--tg-theme-text-color);
}
.headerright {
   align-items: center;
    font-size: 14px;
    color: var(--tg-theme-text-color);
}

.fish-count {
    display: inline-flex
;
    align-items: center;
}


.headerleft{display: inline-flex;
 padding-left: 1% ; float: left;}
.headerrcenter{display: inline-block;
    padding-left: 1% ;padding-right: 1%;}
.balance-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.icon {
  width: 14px;
  height: 14px;
  color: #00e0ff; /* можешь поменять цвет */
}


.headerright{display: inline-flex;
  padding-right: 1%;     float:right;    padding-left: 25px;}

 body {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}
#friendsPage h2 {
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
    color: var(--tg-theme-text-color);
}
.balance-count{display: inline-flex;
    align-items: center;
}

.friend-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  font-size: 16px;
color: var(--tg-theme-text-color);
}
#friendsPage{
    display: block;
    padding: 20px;
    height: 100vh;
}

  #referralLink {
    background-color: transparent !important;
    color: var(--tg-theme-text-color) !important;
    border: none;    padding: 5px;
    width: 100%;
    cursor: pointer;
  }
  .reflink{border: 1px solid white;}
body.light-theme #fishIcon {
    
    vertical-align: middle;
}

body.dark-theme #fishIcon {
  
    vertical-align: middle;
    filter: invert(1);
}
#fishIcon {
     width: 24px;
    height: 24px;    padding-right: 5px;}
#fishIconref {
     width: 14px;
    height: 14px;}


 
#tonIcon {width: 24px;    padding-right: 5px;}
.go3974562317 {height: 24px !important; }
.headercenter
{padding-left: 2%;
padding-right: 2%;}

#tasksPage{
      color: var(--tg-theme-text-color) !important;

    display: block;
    padding: 20px;
    height: 100vh;
}
.tasktitle{display: inline-block;}
#taskStatus1{display: inline-block;}
#taskStatus2{display: inline-block;}
#taskStatus3{display: inline-block;}
#taskStatus4{display: inline-block;}
#taskStatus5{display: inline-block;}
.task {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px;
  margin-bottom: 10px;
  border-radius: 12px;
  font-size: 16px;
color: var(--tg-theme-text-color);
}
.checkTask{    border-radius: 36px;
    color: white;
    background: gray;
    border: 1px solid white;
    font-size: 15px;}
    #leaderboardPage{
      color: var(--tg-theme-text-color) !important;

    display: block;
    padding: 20px;
    height: 100vh;
}
.buttonlb{    background: no-repeat;
    color: white;
    border-radius: 36px;
    padding: 5px 21px;
    border: none;
  }
  .leadicon{
    width: 20px;
  height: 20px;
  }
  #tasksPage h2 {
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
    color: var(--tg-theme-text-color);
}
#leaderboardPage h2 {
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
    color: var(--tg-theme-text-color);
}
.headblock{  
    border: 2px solid #0304047a;
    border-radius: 42px;
    display: flex !important; justify-content: space-between; align-items: center;    padding: 0px 5px 0px 5px;    font-size: 16px;    gap: 10px;
  }
  .wallet-status{display: flex;    padding-bottom: 4%;}
  .lang-selector{display: flex}
  
  #paymentSection{
    padding: 20px;
    background: var(--tg-theme-bg-color, #f0f0f0);
    color: var(--tg-theme-text-color, #000);
    margin: 10px auto;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 50%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

#walletbalance{
    color: white;    font-size: 13px;
    margin-top: -13px; }

    .inventory-panel {
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  margin: 10px;
  text-align: center;
}

.inventory-item {
  margin-bottom: 8px;
  font-size: 16px;
}

#feedFishBtn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: #4caf50;
  color: white;
  font-size: 16px;
}

#feedFishBtn:disabled {
  background: #777;
}

.cooldown-text {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.7;
}
.fish-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.fish-menu-content {
  background: #1c1c1c;
  color: white;
  padding: 16px;
  border-radius: 14px;
  width: 260px;
  text-align: center;
}

.close-btn {
  margin-top: 10px;
  background: none;
  color: #aaa;
  border: none;
}
/* по умолчанию скрыты */
.col-fish,
.col-aqp,
.col-referrals {
  display: none;
}

/* активная колонка */
.show-fish .col-fish,
.show-aqp .col-aqp,
.show-referrals .col-referrals {
  display: table-cell;
}
.friend-card {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.friend-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #222;
  flex-shrink: 0;
}

.friend-info {
  flex: 1;
}

.friend-name {
  font-weight: 600;
  font-size: 14px;
}

.friend-stats {
  font-size: 12px;
  opacity: .8;
  display: flex;
  gap: 10px;
}

.friend-premium-badge {
  font-size: 11px;
  color: gold;
}
.friend-avatar {
  width: 32px;          /* компактнее */
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
}
.friend-card {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 6px 8px;          /* ⬅ меньше */
  margin-bottom: 6px;        /* ⬅ меньше */
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-name {
  font-size: 13px;
  line-height: 1.2;
}

.friend-stats {
  font-size: 11px;
  opacity: .75;
  gap: 8px;
}
#friendsPage {
  height: calc(100vh - 120px); /* header + bottom menu */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;   /* ⬅️ блокируем горизонтальный скролл */
}
#friendsPage,
#leaderboardPage,
#mainHolder,
#canvasHolder {
 overflow-x: hidden;
    bottom: 0;
    padding-bottom: 19%;
}
#friendsPage {
  overflow-y: auto;
  overflow-x: hidden; /* ⛔ горизонтальный скролл */
}

.friend-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.friend-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.friend-info {
  flex: 1;
  min-width: 0;
}

.friend-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-stats {
  font-size: 12px;
  opacity: .8;
  display: flex;
  gap: 10px;
}
#friendsPage {
  overflow-y: auto;
  overflow-x: hidden; /* ⛔ горизонтальный скролл */
}

.friend-card {
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}

.friend-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-stats {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.8;
  display: flex;
  gap: 12px;
}
.friend-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #444;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.friend-card.premium {
  border: 1px solid gold;
  box-shadow: 0 0 6px rgba(255,215,0,0.4);
}
.top-friends {
  margin-bottom: 12px;
}
.top-friend {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}
.friends-progress {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 10px;
}
/* блокируем горизонтальный скролл */
html, body,
#friendsPage {
  overflow-x: hidden;
}

/* вертикальный скролл */
#friendsPage {
  height: calc(100vh - 120px); /* хедер + нижнее меню */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.friend-card {
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}

/* одна строка */
.friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

/* имя — слева, обрезается */
.friend-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
float: left;
}

/* статы — справа, не сжимаются */
.friend-stats {
  font-size: 12px;
  opacity: 0.8;
  white-space: nowrap;
  flex-shrink: 0;
  float: right;
}

#inventoryPage{
    color: var(--tg-theme-text-color) !important;
    display: block;
    padding: 20px;
    height: auto;}
/* ===== INVENTORY ===== */

.inventory-section {
  margin-bottom: 16px;
}

.inventory-section h3 {
  font-size: 12px;
  margin-bottom: 8px;
}

/* 🐟 grid рыб */
.fish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}



/* 🎁 предметы */
.item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  font-size: 13px;
}

/* 🛒 магазин */
.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
}

.shop-item button {
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: #4caf50;
  color: #000;
  font-size: 12px;
}
.fish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fish-item {
  position: relative;
  aspect-ratio: 3;
  border-radius: 14px;
  background: var(--fish-shadow, rgba(255,255,255,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.fish-item:hover {
  transform: scale(1.05);
}

.fish-icon {
  font-size: 28px;
}

.fish-id {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 11px;
  opacity: .7;
}

/* ✨ редкости */
.rarity-common   { box-shadow: 0 0 0 1px #999; }
.rarity-rare     { box-shadow: 0 0 6px #4da6ff; }
.rarity-epic     { box-shadow: 0 0 10px #b14dff; }
.rarity-legend   { box-shadow: 0 0 14px gold; }
.rarity-diamond  { box-shadow: 0 0 18px #00f6ff; }
.fish-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.fish-menu-content {
  background: #111;
  color: #fff;
  padding: 16px;
  border-radius: 14px;
  width: 260px;
  text-align: center;
}

.fish-preview {
  position: relative;
  margin: 12px auto;
  width: 80px;
  height: 80px;
}

.fish-shadow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(14px);
}

.fish-color {
  position: relative;
  font-size: 40px;
  line-height: 80px;
}

.fish-info {
  text-align: left;
  font-size: 13px;
  margin: 10px 0;
}

.close-btn {
  margin-top: 10px;
  width: 100%;
}
#lootboxOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: flex;
  justify-content: center;
  align-items: center;
}



@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}

.shine {
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.4), transparent 60%);
  animation: pulse 1s infinite;
}
.inventory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  margin-bottom: 8px;
      width: 45%;
}

.inventory-item .amount {
  opacity: .6;
  margin-left: 6px;
}
.item {
    position: relative;
    text-align: center;    border-radius: 14px;
    background: var(--fish-shadow, rgba(255, 255, 255, 0.08));
    display: inline;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
    .item button{
      color: var(--tg-theme-text-color, #0078D7);
    border-radius: 24px;
    background: #0098ea;
    height: 40px;
    width: 91%;
    border: 1px solid;
    }
    .shop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

 .item buyFeedBtn{
      color: var(--tg-theme-text-color, #0078D7);
    border-radius: 24px;
    background: #0098ea;
    height: 40px;
    width: 91%;
    border: 1px solid;
    }
    .shop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.inventory-item   button{
      color: var(--tg-theme-text-color, #0078D7);
    border-radius: 24px;
    background: #0098ea;
    height: 40px;
    width: 91%;
    border: 1px solid;
    margin: auto;
    }

#fishGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 12px;
}

.fish-item {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fish-svg-wrapper svg {
  width: 36px;
  height: 36px;
  pointer-events: none;
}

/* редкость (по желанию) */
.rarity-rare { outline: 1px solid #3fa9f5; }
.rarity-epic { outline: 1px solid #b96bff; }
.rarity-legendary { outline: 2px solid gold; }
#fishPopupIcon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
#fishHolder {
  will-change: transform;
  image-rendering: optimizeSpeed;
  image-rendering: -webkit-optimize-contrast;

}
#fishHolder {
  inset: 0;              /* top:0 right:0 bottom:0 left:0 */
  width: 100vw;
  height: 100vh;

  will-change: transform;
  image-rendering: optimizeSpeed;
  image-rendering: -webkit-optimize-contrast;
}

#fishHolder canvas {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: auto;    /* ❗ убираем фиксированное соотношение */
}
.claim-btn {
    width: 40%;
    padding: 5px;
  font-size: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #fff;
  border: none;
}

.claim-btn[disabled] {
  opacity: 0.5;
}

.claim-btn {
  pointer-events: auto;
  position: fixed;
  z-index: 998;
}
#claimTimer {
  position: relative;
  z-index: 1001;
  color: #fff;
  font-size: 30px;
  margin-top: 6px;
  text-align: center;
}

.claim-btn {
  position: relative;
  z-index: 998;
}
#tasksPage {
  position: relative;
  z-index: 10;
}

.task button {
  pointer-events: auto;
  z-index: 20;
}
.overlay,
.screen,
.bg {
  pointer-events: none;
}

/* ===== TASK CARD ===== */
.task {
  background: linear-gradient(180deg, #131c33, var(--card));
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* header */
.tasktitle {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
  display: inline;
}

.tasktitle a {
  color: var(--accent);
  text-decoration: none;
}

.reward {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

/* footer */
.taskFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28%;
}

/* button */
.checkTask {
  flex: 1;
  height: 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #2dd4bf, #22d3ee);
  color: #002b2a;
  transition: transform .15s ease, opacity .15s ease;
}

.checkTask:active {
  transform: scale(.97);
}

.checkTask[disabled] {
  opacity: .5;
  cursor: default;
}

/* status */
.taskStatus {
  font-size: 13px;
  min-width: 90px;
  text-align: right;
}

.taskStatus.success {
  color: var(--success);
}

.taskStatus.pending {
  color: var(--muted);
}

/* subtle animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45,212,191,.4); }
  70% { box-shadow: 0 0 0 10px rgba(45,212,191,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); }
}

.task.highlight {
  animation: pulse 1.5s infinite;
}
.itemfish button {
    color: var(--tg-theme-text-color, #0078D7);
    border-radius: 24px;
    background: #0053ea;
    height: 40px;
    width: 59%;
    border: 1px solid;
    font-weight: 700;
    font-size: 17px;
}

button:disabled {
    background-color: light-dark(rgba(239, 239, 239, 0.3), rgba(19, 1, 1, 0.3));
   filter: blur(0.9px);
}

.task {
    animation: pulse 1.5s infinite;
}
#tasksPage {
  padding: 20px;
  padding-bottom: 120px; /* запас под меню */
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}
.friend-card {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.friend-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}

.friend-name {
  font-weight: bold;
  color: var(--tg-theme-text-color);
  width: 100%;
}

.friend-reward {
  font-size: 12px;
  opacity: 0.7;
}
.friendfish{    display: inline-flex;   
    filter: grayscale(1);
    font-size: 16px;}
    .friend-card {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.friend-card.premium {
  border: 2px solid gold;
  box-shadow: 0 0 12px rgba(255,215,0,0.6);
}

.friend-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.friend-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.friend-card.premium .friend-avatar {
  border: 2px solid gold;
}

.friend-name {
  font-weight: bold;
}

.friend-reward {
  font-size: 12px;
  opacity: 0.7;
}
.friend-name {
  font-weight: bold;
  max-width: 150px;       /* можешь изменить */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-info {
  min-width: 0;
}

.friend-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.lb-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.premium-row {
  background: rgba(255,215,0,0.08);
}

.premium-row .lb-avatar {
  border: 2px solid gold;
}
.lb-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.lb-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: var(--tg-theme-text-color);
  transition: 0.2s ease;
}

.lb-btn:hover {
  background: rgba(255,255,255,0.15);
}

.lb-btn.active {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
}

.lb-btn img {
  width: 18px;
  height: 18px;
}

.lb-table {
  width: 96%;
  font-size: 14px;
}
.lb-name {
  display: inline-block;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.lb-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.lb-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.premium-row {
  background: rgba(255, 215, 0, 0.08);
}

.premium-row .lb-avatar {
  border: 2px solid gold;
}
/* ===== TOP 3 ===== */

.top3-row:nth-child(1) {
  background: linear-gradient(90deg, rgba(255,215,0,0.25), transparent);
}

.top3-row:nth-child(2) {
  background: linear-gradient(90deg, rgba(192,192,192,0.25), transparent);
}

.top3-row:nth-child(3) {
  background: linear-gradient(90deg, rgba(205,127,50,0.25), transparent);
}

.lb-rank {
  font-weight: 700;
  font-size: 16px;
      padding-left: 5px;
}

/* ===== CURRENT USER ===== */

.me-row {
  background: rgba(0, 200, 255, 0.15);
  box-shadow: inset 3px 0 0 #00c6ff;
  font-weight: 600;
}

/* Premium остаётся */

.premium-row .lb-avatar {
  border: 2px solid gold;
}
.reward-task{

}
.reward-title{
    margin-top: 30px;
    font-size: 12px;
    color: #fff;
    text-align: center;
    display: inline;
}
.reward-gift{    font-size: 27px;}
.reward-title {
    font-size: 12px;
    margin-bottom: 6px;
}
.reward-task {
    float: right;
    text-align: center;
    min-width: 50px;
}
.buy-gift {
    font-size: 60px;
    text-shadow: 5px 5px #00000045;
    padding-left: 5px;
padding-right: 5px;
}
.item h3 {    animation: shake 1.2s infinite;}

.itemsbal
{    
  width: 100%;
    margin: auto;
    display: flex;}
    .balancelist{width: 100%;    margin: auto;    display: flex;    gap: 10px;}
    .balanceblock{    background: #121214;
    width: 100%;
    border: 2px solid #0304047a;
    border-radius: 42px;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 1px 10px;
    font-size: 16px;
    gap: 1px;
    z-index: 999;
  }
    .headerwallet{float:right;    display: flex;    z-index: 999;}
    .descf{font-size: 12px;}