﻿/* performance + adaptive profile patch */
:root{
  --yak-fast-shadow:0 10px 28px rgba(0,0,0,.22);
}
.app-shell.app-shell-redesign,
.profile-action-backdrop,
.panel-card,
.glass-soft,
.redesign-bottom-nav,
.floating-balance-card,
.game-pick-card.game-pick-visual,
.profile-link-row,
.profile-link-row-large,
.reward-card,
.redesign-promo-card,
.profile-action-card{
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
.panel-card,
.glass-soft,
.redesign-bottom-nav,
.floating-balance-card,
.profile-action-card,
.game-pick-card.game-pick-visual,
.profile-link-row,
.profile-link-row-large,
.reward-card,
.redesign-promo-card{
  box-shadow:var(--yak-fast-shadow) !important;
}
.screen.active,
#games-screen .game-pick-card:nth-child(1),
#games-screen .game-pick-card:nth-child(2),
#games-screen .game-pick-card:nth-child(3),
#games-screen .game-pick-card:nth-child(4),
#free-screen .reward-card,
#free-screen .redesign-promo-card,
.bottom-nav .tab.active,
.trophy-mini-btn,
#dailyClaimMainBtn,
#applyPromoBtn{
  animation:none !important;
}
*{
  scroll-behavior:auto;
}
#profile-screen.screen.active{
  overflow-y:hidden !important;
  overflow-x:hidden !important;
  padding:4px 0 0 !important;
}
.redesign-profile-stack{
  gap:12px !important;
}
.redesign-profile-hero,
.redesign-quick-links,
#wallet-screen.profile-history-only .wallet-layout > .panel-card:last-child{
  border-radius:24px !important;
}
.redesign-profile-hero{
  padding:16px !important;
}
.profile-wallet-label{
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.profile-wallet-label span,
#profileWalletLabel{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.redesign-balance-card{
  margin-top:12px !important;
  padding:14px !important;
  border-radius:18px !important;
}
.redesign-balance-values{
  gap:6px !important;
}
.redesign-balance-item{
  min-height:84px;
  padding:9px !important;
  border-radius:18px !important;
}
.balance-badge{
  width:38px !important;
  height:38px !important;
  font-size:18px !important;
}
.balance-value{
  font-size:clamp(22px,6vw,30px) !important;
}
.redesign-balance-actions{
  gap:6px !important;
  margin-top:14px !important;
}
.redesign-balance-actions .primary-btn,
.redesign-balance-actions .secondary-btn{
  min-height:54px;
}
.redesign-quick-links-large{
  gap:6px !important;
  padding:7px !important;
}
.profile-link-row-large{
  min-height:64px !important;
  padding:0 18px !important;
  font-size:17px !important;
  border-radius:18px !important;
}
.profile-link-row-large .masked-icon{
  width:22px !important;
  height:22px !important;
}
#wallet-screen.profile-history-only{
  margin-top:0 !important;
}
#wallet-screen.profile-history-only .wallet-layout > .panel-card:last-child{
  padding:16px !important;
}
.profile-action-modal{
  align-items:end;
  padding:7px 8px max(8px,var(--safe-bottom));
}
.profile-action-card{
  width:min(100%,560px) !important;
  max-height:min(92vh,820px) !important;
  border-radius:24px !important;
  padding:14px !important;
}
.profile-action-head{
  margin-bottom:10px !important;
}
.profile-action-close{
  width:40px !important;
  height:40px !important;
  border-radius:13px !important;
}#transactions.history-list {
  max-height:none !important;
}
@media (max-width:640px){
  .redesign-profile-hero{
    padding:14px !important;
  }
  .redesign-balance-values,
  .redesign-balance-actions{
    grid-template-columns:1fr !important;
  }
  .redesign-balance-item{
    min-height:76px;
  }
  .profile-link-row-large{
    min-height:64px !important;
    font-size:16px !important;
  }
  .profile-action-card{
    width:100% !important;
    max-height:calc(100dvh - 8px) !important;
    border-radius:18px 22px 0 0 !important;
    padding:14px 12px calc(14px + var(--safe-bottom)) !important;
  }
  .profile-action-modal[data-mode="withdraw"]{
    padding:4px 6px max(4px,var(--safe-bottom));
  }
  .profile-action-modal[data-mode="withdraw"] .profile-action-card{
    width:min(100%,96vw) !important;
    max-height:calc(100dvh - 6px) !important;
    border-radius:18px 18px 0 0 !important;
    padding:10px 10px calc(10px + var(--safe-bottom)) !important;
  }
  .profile-action-body{
    gap:6px !important;
  }
}
@media (max-width:380px){
  .balance-value{
    font-size:22px !important;
  }
  .profile-link-row-large{
    min-height:64px !important;
    font-size:15px !important;
    padding:0 16px !important;
  }
}


