#games-screen.screen.active{
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-top: 0 !important;
  padding-bottom: calc(var(--nav-h, 72px) + var(--safe-bottom, 0px) + 22px) !important;
  -webkit-overflow-scrolling: touch !important;
}#games-screen .cards-stack.redesign-games-stack{
  gap: 6px !important;
  padding-bottom: calc(var(--nav-h, 72px) + var(--safe-bottom, 0px) + 14px) !important;
}#games-screen .game-select-grid.redesign-games-grid.redesign-games-grid--poster{
  display: block !important;
  width: 100% !important;
}#games-screen .games-poster-card{
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: -56px;
  background: transparent;
  border: 0;
  box-shadow: none;
}#games-screen .games-poster-shell{
  position: relative;
  width: 100%;
  max-width: 100%;
}#games-screen .games-poster-art{
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}#games-screen .games-poster-hotspots{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: 0.7%;
  padding: 0.7% 1.7%;
}#games-screen .game-banner-hit{
  position: relative;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition:
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}#games-screen .game-banner-hit::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  box-shadow: none;
  background: transparent;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}#games-screen .game-banner-hit.active::before,#games-screen .game-banner-hit:focus-visible::before{
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}#games-screen .game-banner-hit:active{
  transform: scale(0.995);
}#games-screen .game-banner-copy{
  position: absolute;
  left: clamp(14px, 3.2vw, 26px);
  right: 20px;
  bottom: clamp(7px, 1.5vw, 13px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  pointer-events: none;
}#games-screen .game-banner-title{
  color: #ffffff;
  font-size: 29px;
  font-weight: 1000;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: none;
}#games-screen .game-banner-hit-disabled{
  cursor: default;
}#games-screen .game-banner-hit-disabled::before{
  border-color: transparent;
  background: transparent;
}#games-screen .game-banner-hit-text{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}.fullscreen-game-overlay .game-nft-quick-card.active,.fullscreen-game-overlay .pvp-nft-modal-card.active,.fullscreen-game-overlay .crash-nft-grid-card.active,.fullscreen-game-overlay .crash-nft-item.active,.fullscreen-game-overlay .squid-nft-quick-card.active,.fullscreen-game-overlay .squid-nft-item.active{
  outline: 2px solid #ffd84d !important;
  outline-offset: -2px;
  box-shadow: none !important;
}#fullscreenGameOverlay .crash-screen-modal.hidden{
  display: none;
}#fullscreenGameOverlay .crash-screen-modal{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.52);
}#fullscreenGameOverlay .crash-screen-modal-backdrop{
  position: absolute;
  inset: 0;
}#fullscreenGameOverlay .crash-screen-modal-card{
  position: relative;
  width: min(100%, 560px);
  max-height: min(84vh, 820px);
  border-radius: 30px 30px 0 0;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(6, 15, 39, 0.988) 0%, rgba(3, 9, 24, 0.996) 100%);
  border: 1px solid rgba(108, 142, 216, 0.15);
  box-shadow: none;
}#fullscreenGameOverlay .crash-history-screen-card{
  height: min(80vh, 760px);
}#fullscreenGameOverlay .crash-nft-modal-card{
  height: min(82vh, 780px);
}#fullscreenGameOverlay .crash-modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}#fullscreenGameOverlay .crash-modal-title{
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
  color: #f4f7ff;
}#fullscreenGameOverlay .crash-modal-subtitle{
  font-size: 12px;
  color: rgba(223, 232, 255, 0.65);
  margin-top: 2px;
  line-height: 1.3;
}#fullscreenGameOverlay .crash-modal-close{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(10, 24, 58, 0.98);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border: 1px solid rgba(121, 184, 255, 0.34);
  box-shadow: none;
}#fullscreenGameOverlay .crash-history-tabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}#fullscreenGameOverlay .crash-history-tab{
  height: 40px;
  border-radius: 16px;
  background: rgba(11, 26, 60, 0.96);
  color: #f8fbff;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(121, 184, 255, 0.30);
  box-shadow: none;
}#fullscreenGameOverlay .crash-history-tab.active{
  background: rgba(140, 58, 255, 0.34);
  color: #ffffff;
  box-shadow: none;
}#fullscreenGameOverlay .crash-history-screen-list,#fullscreenGameOverlay .crash-nft-inventory-list{
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}#fullscreenGameOverlay .crash-history-screen-list{
  flex: 1;
}@media (max-width: 640px){#fullscreenGameOverlay .crash-history-screen-card{
    height: min(76vh, 690px);
  }#fullscreenGameOverlay .crash-screen-modal-card{
    padding: 12px 11px;
    gap: 8px;
  }#fullscreenGameOverlay .crash-modal-close{
    width: 40px;
    height: 40px;
    border-radius: 16px;
  }#fullscreenGameOverlay .crash-history-tabs{
    gap: 5px;
  }#fullscreenGameOverlay .crash-history-tab{
    height: 38px;
    font-size: 12px;
    border-radius: 16px;
  }
}@media (min-height: 760px){#games-screen .games-poster-card{
    margin-top: -66px;
  }#games-screen .games-poster-shell{
    width: 100%;
  }#games-screen .games-poster-art{
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}@media (max-width: 640px){#games-screen .cards-stack.redesign-games-stack{
    gap: 6px !important;
  }#games-screen .games-poster-card{
    margin-top: -52px;
  }#games-screen .games-poster-shell{
    width: 100%;
  }#games-screen .games-poster-hotspots{
    gap: 0.7%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0.7% 1.7%;
  }#games-screen .game-banner-hit{
    border-radius: 24px;
  }#games-screen .game-banner-copy{
    left: clamp(14px, 3.2vw, 26px);
    right: 14px;
    bottom: clamp(7px, 1.5vw, 13px);
  }#games-screen .game-banner-title{
    font-size: 24px;
  }
}

/* History screens should behave like Lucky history: no framed modal body,
   compact rows, and a readable width on desktop. */
#fullscreenGameOverlay #crashHistoryScreen,
#fullscreenGameOverlay #riskbarHistoryModal,
#fullscreenGameOverlay #minesHistoryScreen,
#fullscreenGameOverlay #squidHistoryModal,
#fullscreenGameOverlay #pvpHistoryModal {
  align-items: flex-start !important;
  justify-content: center !important;
  background:
    linear-gradient(180deg, rgba(2, 5, 17, 0.14), rgba(2, 5, 17, 0.52)),
    #05030d var(--yak-app-bg-image, url("/static/img/fonyakzen.webp?v=20260605a")) center top / cover no-repeat fixed !important;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 12px !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-screen-card,
#fullscreenGameOverlay #riskbarHistoryModal .crash-history-screen-card,
#fullscreenGameOverlay #minesHistoryScreen .crash-history-screen-card,
#fullscreenGameOverlay #squidHistoryModal .crash-history-screen-card,
#fullscreenGameOverlay #pvpHistoryModal .pvp-history-screen-card,
#fullscreenGameOverlay #pvpHistoryModal .pvp-modal-card {
  width: min(calc(100vw - 20px), 720px) !important;
  max-width: 720px !important;
  height: auto !important;
  max-height: calc(100svh - env(safe-area-inset-top, 0px) - 20px) !important;
  margin: 0 auto !important;
  padding: 8px 0 12px !important;
  overflow: auto !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-screen-list,
#fullscreenGameOverlay #riskbarHistoryModal .crash-history-screen-list,
#fullscreenGameOverlay #minesHistoryScreen .crash-history-screen-list,
#fullscreenGameOverlay #squidHistoryModal .crash-history-screen-list,
#fullscreenGameOverlay #pvpHistoryModal .pvp-history-screen-list {
  display: grid !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: auto !important;
  scrollbar-width: none;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-screen-list::-webkit-scrollbar,
#fullscreenGameOverlay #riskbarHistoryModal .crash-history-screen-list::-webkit-scrollbar,
#fullscreenGameOverlay #minesHistoryScreen .crash-history-screen-list::-webkit-scrollbar,
#fullscreenGameOverlay #squidHistoryModal .crash-history-screen-list::-webkit-scrollbar,
#fullscreenGameOverlay #pvpHistoryModal .pvp-history-screen-list::-webkit-scrollbar {
  display: none;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry,
#fullscreenGameOverlay #riskbarHistoryModal .riskbar-history-item,
#fullscreenGameOverlay #minesHistoryScreen .mines-history-entry,
#fullscreenGameOverlay #squidHistoryModal .squid-history-item,
#fullscreenGameOverlay #pvpHistoryModal .pvp-history-card-item,
#fullscreenGameOverlay #pvpHistoryModal .pvp-history-entry {
  border: 0 !important;
  border-bottom: 1px solid rgba(117, 178, 255, 0.12) !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.positive,
#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.win {
  background: rgba(54, 242, 138, 0.12) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.negative,
#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.lose {
  background: rgba(255, 66, 100, 0.12) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.tier-1 {
  background: rgba(255, 66, 100, 0.12) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.tier-2 {
  background: rgba(255, 127, 46, 0.12) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.tier-3 {
  background: rgba(255, 205, 57, 0.12) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.tier-4 {
  background: rgba(29, 125, 255, 0.12) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.tier-5 {
  background: rgba(58, 211, 255, 0.12) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.tier-6 {
  background: rgba(192, 44, 255, 0.12) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.tier-7 {
  background: rgba(236, 64, 255, 0.12) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.tier-8 {
  background: rgba(54, 242, 138, 0.12) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.tier-9,
#fullscreenGameOverlay #crashHistoryScreen .crash-history-entry.tier-10 {
  background: rgba(91, 255, 226, 0.12) !important;
}

#fullscreenGameOverlay #squidHistoryModal .squid-history-item.winner-triangle {
  background: rgba(255, 79, 130, 0.14) !important;
  border-bottom-color: rgba(255, 79, 130, 0.26) !important;
}

#fullscreenGameOverlay #squidHistoryModal .squid-history-item.winner-x {
  background: rgba(67, 180, 255, 0.14) !important;
  border-bottom-color: rgba(67, 180, 255, 0.26) !important;
}

#fullscreenGameOverlay #crashHistoryScreen .crash-history-empty,
#fullscreenGameOverlay #riskbarHistoryModal .riskbar-history-empty,
#fullscreenGameOverlay #minesHistoryScreen .crash-history-empty,
#fullscreenGameOverlay #squidHistoryModal .crash-history-empty,
#fullscreenGameOverlay #pvpHistoryModal .pvp-history-empty {
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  #fullscreenGameOverlay #crashHistoryScreen,
  #fullscreenGameOverlay #riskbarHistoryModal,
  #fullscreenGameOverlay #minesHistoryScreen,
  #fullscreenGameOverlay #squidHistoryModal,
  #fullscreenGameOverlay #pvpHistoryModal {
    padding-top: calc(env(safe-area-inset-top, 0px) + 72px) !important;
  }

  #fullscreenGameOverlay #crashHistoryScreen .crash-history-screen-card,
  #fullscreenGameOverlay #riskbarHistoryModal .crash-history-screen-card,
  #fullscreenGameOverlay #minesHistoryScreen .crash-history-screen-card,
  #fullscreenGameOverlay #squidHistoryModal .crash-history-screen-card,
  #fullscreenGameOverlay #pvpHistoryModal .pvp-history-screen-card,
  #fullscreenGameOverlay #pvpHistoryModal .pvp-modal-card {
    max-height: calc(100svh - env(safe-area-inset-top, 0px) - 84px) !important;
  }
}

@media (min-width: 760px) {
  #fullscreenGameOverlay #crashHistoryScreen,
  #fullscreenGameOverlay #riskbarHistoryModal,
  #fullscreenGameOverlay #minesHistoryScreen,
  #fullscreenGameOverlay #squidHistoryModal,
  #fullscreenGameOverlay #pvpHistoryModal {
    padding-top: 20px !important;
  }
}

#fullscreenGameOverlay .fullscreen-balance-icon.balance-icon-svg {
  width: clamp(20px, 5vw, 26px) !important;
  height: clamp(20px, 5vw, 26px) !important;
  flex: 0 0 clamp(20px, 5vw, 26px) !important;
  display: block !important;
  overflow: visible;
}

#fullscreenGameOverlay .bet-currency-svg.balance-icon-svg {
  width: clamp(22px, 6vw, 30px) !important;
  height: clamp(22px, 6vw, 30px) !important;
  flex: 0 0 clamp(22px, 6vw, 30px) !important;
  display: block !important;
  overflow: visible;
}

@media (max-width: 380px) {
  #fullscreenGameOverlay .fullscreen-balance-icon.balance-icon-svg {
    width: 20px !important;
    height: 20px !important;
    flex-basis: 20px !important;
  }

  #fullscreenGameOverlay .bet-currency-svg.balance-icon-svg {
    width: 21px !important;
    height: 21px !important;
    flex-basis: 21px !important;
  }
}
