:root {
  --bg: #080102;
  --deep: #120306;
  --panel: #21070b;
  --panel-2: #3c0b13;
  --card: #180c0e;
  --red: #c60b31;
  --red-dark: #6a1020;
  --gold: #f1c873;
  --gold-bright: #ffd95a;
  --gold-dark: #9b641e;
  --text: #ffffff;
  --muted: #d7c2c7;
  --pink: #d65777;
  --line: #5d1e2d;
  --soft-line: rgba(255, 255, 255, .08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #0d0c0e;
}

html.pageScrollLocked {
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, #171619, #0d0c0e 25%, #0b090a 50%, #0d0c0e 75%, #171619);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body.pageScrollLocked {
  position: fixed;
  top: var(--page-lock-top, 0);
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

button:disabled {
  opacity: .55;
  cursor: wait;
}

.appShell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #341018, #0c0102 46%, #000);
  box-shadow: 0 0 0 1px rgba(241, 200, 115, .09), 0 0 70px rgba(0, 0, 0, .62);
}

.appView {
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.appView-wallet,
.appView-recharge,
.appView-withdraw,
.appView-game {
  padding-bottom: 0;
}

.scene {
  position: relative;
  z-index: 1;
  padding: 0 14px 18px;
}

.scene-home {
  padding-inline: 0;
}

.scene-wallet {
  min-height: calc(100dvh - 50px);
  display: flex;
  flex-direction: column;
  padding: 12px 16px 36px;
}

.scene-recharge,
.scene-withdraw {
  padding-top: 12px;
  padding-bottom: 28px;
}

.scene-rank,
.scene-earn {
  padding-top: 8px;
}

.loading {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--gold);
}

.loading img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  animation: pulse 1.2s ease-in-out infinite;
}

.loading strong {
  font-size: 22px;
}

@keyframes pulse {
  50% { transform: scale(1.06); filter: brightness(1.18); }
}

.topBar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  height: 90px;
  display: grid;
  grid-template-columns: 42px minmax(148px, 184px) minmax(112px, 1fr);
  align-items: start;
  gap: 8px;
  padding: 14px 18px 0;
  background: url("assets/six_fire_header_bg.png") center top / calc(100% + 36px) 78px no-repeat;
}

.brandMark {
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.brandMark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.balancePill {
  position: relative;
  width: 100%;
  height: 39px;
  display: grid;
  place-items: center;
  padding: 0 35px 0 15px;
  color: #fff;
  background: url("assets/wallet_balance_display_bg.png") center / 100% 100% no-repeat;
  text-shadow: 0 2px 2px #000;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.topActions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.giftChip {
  flex: 0 0 34px;
  width: 34px;
  height: 38px;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.profileChip {
  min-width: 0;
  width: 88px;
  height: 42px;
  display: grid;
  grid-template-columns: 38px minmax(20px, 1fr) 16px;
  align-items: center;
  padding: 0;
  color: #f5cf75;
  background: transparent;
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}

.profileChip img {
  width: 38px;
  height: 38px;
  border: 1px solid #d9a93c;
  border-radius: 50%;
  object-fit: cover;
  padding: 2px;
  background: #2b0810;
}

.profileChip span {
  overflow: hidden;
  white-space: nowrap;
}

.profileChip b {
  color: #fff;
  font-size: 15px;
}

.titleBar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 50px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 68px;
  align-items: center;
  background: linear-gradient(180deg, #321016, #1e090d);
  border-bottom: 1px solid #5d1e2d;
}

.titleBar > strong {
  min-width: 0;
  padding-inline: 4px;
  overflow: hidden;
  color: var(--gold-bright);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.backBtn {
  width: 44px;
  height: 50px;
  padding: 0 0 4px;
  color: var(--gold);
  background: transparent;
  font-size: 34px;
  font-weight: 900;
  cursor: pointer;
}

.titleActions {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 7px;
}

.titleActions button {
  width: 29px;
  height: 42px;
  padding: 0;
  color: var(--gold);
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.homeHero {
  min-height: 180px;
  height: auto;
  margin: -6px 16px 12px;
  overflow: visible;
  background: transparent;
}

.homeHero.hasImage {
  display: block;
}

.homeHero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.featuredGames {
  display: grid;
  gap: 12px;
  padding: 0 4px;
}

.featuredGame {
  min-height: 68px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #fff;
  text-align: left;
  background: #1a0a0f;
  border: 1px dashed #e7b04e;
  border-radius: 16px;
  cursor: pointer;
}

.featuredGame.hasMedia {
  min-height: 82px;
}

.featuredGame.noMedia {
  grid-template-columns: minmax(0, 1fr) 44px;
}

.featuredGame > img {
  width: 92px;
  height: 58px;
  display: grid;
  place-items: center;
  object-fit: contain;
  color: var(--gold);
  background: #241015;
  border-radius: 10px;
  font-weight: 900;
}

.featureCopy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.featureCopy strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featureCopy em {
  color: #ffd36e;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.featuredGame > b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #c60b31;
  border-radius: 12px;
  font-size: 16px;
}

.homeSection,
.homeCatalog {
  padding: 0 16px;
}

.homeSection {
  margin-top: 18px;
}

.homeSection h2,
.categoryDivider h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.brandStrip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.brandStrip::-webkit-scrollbar,
.privilegeScroller::-webkit-scrollbar,
.vipRail::-webkit-scrollbar {
  display: none;
}

.brandCard {
  flex: 0 0 116px;
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  color: #fff;
  background: #12090b;
  border: 0;
  border-radius: 22px;
  cursor: pointer;
}

.brandCard.active {
  background: #1b0b0d;
}

.brandCard > span {
  width: 100%;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--gold);
  background: #2a1116;
  border-radius: 18px;
  font-weight: 900;
}

.brandCard img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.brandCard strong {
  display: -webkit-box;
  overflow: hidden;
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.homeCatalog {
  margin-top: 18px;
}

.categorySection + .categorySection {
  margin-top: 14px;
}

.categoryDivider {
  position: relative;
  height: 60px;
  padding-bottom: 2px;
}

.categoryDivider span {
  display: none;
}

.categoryDivider::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #fce797, #d8a93e, #8a6419);
}

.categoryDivider h2 {
  height: 58px;
  margin: 0 8px;
  overflow: hidden;
  color: #f8db7b;
  font-size: 42px;
  line-height: 58px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gameGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gameCard {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 0 0 12px;
  overflow: hidden;
  color: #fff;
  text-align: left;
  background: #180c0e;
  border: 0;
  border-radius: 22px;
  cursor: pointer;
}

.gameImage {
  width: 100%;
  height: 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--gold);
  background: #241015;
  border-radius: 18px;
  font-size: 20px;
}

.gameImage.hasMedia {
  height: auto;
  display: block;
  background: transparent;
  border-radius: 0;
}

.gameImage img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gameCard > strong {
  min-height: 35px;
  display: -webkit-box;
  padding: 0 12px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalogLoader {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--gold);
}

.catalogLoader i {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(241, 200, 115, .2);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: catalogSpin .72s linear infinite;
}

.catalogLoader strong {
  font-size: 14px;
}

@keyframes catalogSpin {
  to { transform: rotate(360deg); }
}

.infoPanel {
  width: 100%;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
  color: #fff;
  background: #17090d;
  border: 0;
  border-radius: 22px;
}

.infoPanel strong {
  font-size: 16px;
}

.infoPanel span {
  color: #a8b1c2;
  font-size: 14px;
  line-height: 1.4;
}

.tapPanel {
  cursor: pointer;
}

.rankTabs {
  position: sticky;
  top: 50px;
  z-index: 19;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 70px;
  background: linear-gradient(180deg, #180a0d, #2c1016, #110507);
  border-bottom: 1px solid #521925;
}

.rankTabs button,
.rankTabs > div {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 0 3px;
  color: #fff;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, .04);
  cursor: pointer;
}

.rankTabs button.active {
  color: var(--gold);
  background: linear-gradient(180deg, #c40c2d, #8e0b21);
}

.rankTabs strong {
  font-size: 12px;
}

.rankTabs span {
  color: var(--gold);
  font-size: 8px;
}

.rankTabs > div {
  color: var(--gold);
  text-align: center;
  background: linear-gradient(180deg, #311017, #120609);
}

.rankTabs > div strong {
  font-size: 8px;
}

.jackpotPanel {
  position: relative;
  min-height: 174px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 8px 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #120406, #4b1018, #180608);
  border-radius: 4px;
}

.jackpotPanel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(214, 167, 68, .2), transparent);
}

.jackpotPanel h2 {
  position: relative;
  margin: 0;
  color: #ffe39a;
  text-shadow: 0 2px 4px #000;
  font-size: 31px;
}

.jackpotReel {
  position: relative;
  width: 100%;
  height: 72px;
  display: grid;
  grid-template-columns: 34px repeat(9, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #8f1c10, #250406);
  border: 2px solid #f6c663;
  border-radius: 12px;
  box-shadow: 0 0 0 7px #d9962f, 0 0 0 8px #fce58c;
}

.jackpotReel b {
  color: #fff0a2;
  text-align: center;
  font-size: 28px;
}

.jackpotReel span {
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff0a2;
  background: linear-gradient(180deg, #4b0d10, #160204);
  border: 1px solid #8e4a23;
  border-radius: 4px;
  font-size: 25px;
  font-weight: 900;
}

.rankActionStrip {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #fff;
  background: linear-gradient(90deg, #a90d28, #550d17);
}

.rankActionStrip span {
  min-width: 0;
  flex: 1;
  font-size: 11px;
}

.rankActionStrip button,
.rankNotice button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  color: #5a250e;
  background: linear-gradient(180deg, #fff2a3, #d99b1f);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.rankPodium {
  min-height: 246px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 6px;
  padding-top: 16px;
}

.podiumCard {
  min-width: 0;
  min-height: 188px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  padding: 8px 6px 12px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #4b1018, #170507);
  border: 1px solid #6c2430;
  border-radius: 8px 8px 2px 2px;
}

.podiumCard.rank1 {
  min-height: 218px;
  border-color: #d6a744;
}

.podiumAvatar {
  position: relative;
  width: 72px;
  height: 72px;
}

.podiumCard.rank1 .podiumAvatar {
  width: 84px;
  height: 84px;
}

.podiumAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #d6a744;
  border-radius: 50%;
}

.podiumAvatar b {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  color: #421803;
  background: #f1c873;
  border-radius: 50%;
}

.podiumCard > strong,
.podiumCard > span,
.podiumCard > em {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podiumCard > strong {
  margin-top: 5px;
  font-size: 12px;
}

.podiumCard > span {
  color: #c7939f;
  font-size: 9px;
}

.podiumCard > em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.rankRows {
  display: grid;
  gap: 8px;
}

.rankRow {
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px 46px minmax(0, 1fr) minmax(58px, 72px);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: linear-gradient(90deg, #3e0d15, #18080a);
  border: 1px solid #5a1b25;
  border-radius: 6px;
}

.rankPosition {
  color: var(--gold);
  text-align: center;
  font-size: 14px;
}

.rankRow img {
  width: 46px;
  height: 46px;
  padding: 2px;
  object-fit: cover;
  background: #000;
  border: 2px solid #d6a744;
  border-radius: 50%;
}

.rankRow > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rankRow > div strong,
.rankRow > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankRow > div strong {
  font-size: 13px;
}

.rankRow > div span {
  color: #c7939f;
  font-size: 10px;
}

.rankRow > em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankNotice {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #5a1b1f, #18080a);
  border: 1px solid #e0b750;
  border-radius: 6px;
}

.rankNotice span {
  min-width: 0;
  flex: 1;
  font-size: 11px;
  line-height: 1.35;
}

.walletHero {
  position: relative;
  height: 146px;
  flex: 0 0 146px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  overflow: hidden;
  color: #6a3511;
  background: linear-gradient(90deg, #e2a333, #fff4b0, #c9822d);
  border: 1px solid #ffe28a;
  border-radius: 8px;
}

.walletHero span {
  font-size: 20px;
  font-weight: 900;
}

.walletHero strong {
  position: relative;
  z-index: 1;
  font-size: 34px;
}

.walletHero > b {
  position: absolute;
  right: 12px;
  color: rgba(168, 91, 24, .16);
  font-size: 118px;
}

.walletTip {
  display: grid;
  gap: 10px;
  color: #d7c2c7;
}

.walletTip:first-of-type {
  margin-top: 74px;
}

.walletTip + .walletTip {
  margin-top: 52px;
}

.walletTip strong {
  color: #fff;
  font-size: 19px;
}

.walletTip span {
  font-size: 12px;
  line-height: 1.55;
}

.walletActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: auto;
  padding-top: 80px;
}

.walletAction {
  height: 48px;
  color: #f5c4cc;
  background: linear-gradient(180deg, #aa1a30, #6a1020);
  border: 1px solid #d3445a;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.walletAction.deposit {
  color: #7a330c;
  background: linear-gradient(180deg, #fff1a0, #f2b02c);
  border-color: #ffe78b;
}

.balanceSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.balanceSummary > div {
  min-height: 84px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #5a301c;
  background: linear-gradient(90deg, #f4ca56, #b45b23);
  border-radius: 8px;
  text-align: center;
}

.balanceSummary span {
  font-size: 13px;
}

.balanceSummary strong {
  color: #5a250e;
  font-size: 20px;
}

.moneyPanel {
  margin-top: 14px;
  padding: 14px 12px;
  background: #210306;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
}

.methodPills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.methodPills button {
  height: 42px;
  color: #e7c8ce;
  background: #351018;
  border: 1px solid #5d1e2d;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.methodPills button.active {
  color: #5a250e;
  background: linear-gradient(180deg, #fff2a3, #d99b1f);
  border-color: #ffd95a;
}

.formGrid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span,
.moneyLabel {
  color: #d7c2c7;
  font-size: 13px;
}

.moneyLabel span {
  color: #f1c873;
}

.input,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: #fff;
  background: #12080b;
  border: 1px solid #c09a58;
  border-radius: 8px;
  outline: 0;
}

.textarea {
  min-height: 112px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.moneyInput:focus {
  border-color: #ffd95a;
  box-shadow: 0 0 0 2px rgba(255, 217, 90, .12);
}

.moneyInput {
  width: 100%;
  height: 48px;
  padding: 8px;
  color: #ffd95a;
  text-align: center;
  background: #070001;
  border: 1px solid #8b263a;
  border-radius: 6px;
  outline: 0;
  font-size: 20px;
}

.amountGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.amountGrid button {
  position: relative;
  min-width: 0;
  height: 50px;
  display: grid;
  place-items: center;
  color: #e4c8ce;
  background: #50111b;
  border-radius: 8px;
  cursor: pointer;
}

.amountGrid strong {
  font-size: 13px;
}

.amountGrid span {
  position: absolute;
  top: 3px;
  right: 3px;
  padding: 2px 4px;
  color: #fff2a6;
  background: #8a1730;
  border-radius: 4px;
  font-size: 8px;
}

.conversionHint,
.goldNote {
  margin: 0;
  color: #ffd95a;
  font-size: 12px;
  line-height: 1.45;
}

.promotionBox {
  display: grid;
  gap: 5px;
  padding: 10px 18px;
  color: #ffd95a;
  background: linear-gradient(135deg, #81321b, #3a0811);
  border: 1px solid #e0b750;
  border-radius: 8px;
}

.promotionBox strong {
  color: #fff;
  font-size: 14px;
}

.promotionBox span {
  font-size: 17px;
  font-weight: 900;
}

.depositTips {
  display: grid;
  gap: 6px;
}

.depositTips strong {
  color: #fff;
  font-size: 16px;
}

.depositTips p {
  margin: 0;
  color: #d7b783;
  font-size: 12px;
  line-height: 1.5;
}

.goldButton,
.redButton {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: #5a250e;
  background: linear-gradient(180deg, #fff2a3, #e4a323);
  border: 1px solid #ffd95a;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.redButton {
  color: #fff;
  background: linear-gradient(180deg, #b91b36, #741025);
  border-color: #d64b60;
}

.fullButton {
  width: 100%;
}

.bankCard {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #4b101a;
  border-radius: 8px;
}

.bankCard > div,
.withdrawInfo {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d7b783;
  font-size: 12px;
}

.bankCard strong,
.withdrawInfo strong {
  color: #f2d28e;
  overflow-wrap: anywhere;
  text-align: right;
}

.bankCard button {
  min-height: 38px;
  margin-top: 4px;
  color: #5a250e;
  background: #f1c873;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.withdrawInfo {
  padding: 8px 12px;
  background: #4b101a;
  border-radius: 8px;
}

.vipHero {
  padding: 12px;
  background: linear-gradient(180deg, #721328, #2c0610, #130305);
  border-radius: 8px;
}

.vipIdentity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.avatarImage {
  width: 44px;
  height: 44px;
  padding: 2px;
  object-fit: cover;
  background: #2b0810;
  border: 2px solid #d9a93c;
  border-radius: 50%;
}

.vipIdentity > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vipIdentity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.vipIdentity span {
  color: #f1c873;
  font-size: 13px;
  font-weight: 900;
}

.vipIdentity em {
  color: #d7b783;
  font-size: 10px;
  font-style: normal;
}

.vipRail {
  display: flex;
  width: 100%;
  height: 176px;
  margin-top: 4px;
  padding: 0 calc(50% - 56px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.vipRail button {
  flex: 0 0 112px;
  height: 170px;
  display: grid;
  grid-template-rows: 94px 22px 7px 16px;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 0 5px;
  color: #e8c98b;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.vipRail button.active {
  color: #ffe68a;
}

.vipStageBadge {
  position: relative;
  width: 100%;
  height: 94px;
  display: grid;
  place-items: start center;
}

.vipStageBadge img {
  width: 72px;
  height: 72px;
  margin-top: 8px;
  object-fit: contain;
  opacity: .58;
  filter: saturate(.72);
}

.vipRail button.unlocked .vipStageBadge img {
  opacity: 1;
  filter: none;
}

.vipRail button.active .vipStageBadge img {
  width: 88px;
  height: 88px;
  margin-top: 0;
}

.vipStageBadge > i {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #f1c873;
  background: #7a1528;
  border-radius: 50%;
  font-size: 13px;
  font-style: normal;
}

.vipRail button > strong {
  width: 58px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #ead3b0;
  background: linear-gradient(90deg, #47101a, #2a0910);
  border: 1px solid #8b5c38;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 900;
}

.vipRail button.active > strong {
  color: #3a0710;
  background: linear-gradient(90deg, #ffe67d, #cc5d20);
}

.vipStageProgress {
  width: 100%;
  height: 7px;
  padding: 1px;
  overflow: hidden;
  background: #2a0710;
  border-radius: 8px;
}

.vipStageProgress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f7dc72, #c78a22);
  border-radius: 8px;
}

.vipRail button.active .vipStageProgress > i {
  background: linear-gradient(90deg, #fff071, #f14735);
}

.vipRail button > em {
  align-self: start;
  color: #e8c98b;
  font-size: 9px;
  font-style: normal;
  line-height: 16px;
  white-space: nowrap;
}

.vipLevelGuide {
  position: relative;
  height: 26px;
  margin-top: 6px;
}

.vipLevelGuide > i {
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a86b35, #f4d273, #a86b35, transparent);
  border-radius: 2px;
}

.vipLevelGuide > span {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 34px;
  height: 20px;
  display: grid;
  place-items: center;
  transform: translateX(calc(-50% + var(--level-offset) * 82px));
  color: #e4c98e;
  background: #3c0b14;
  border-radius: 14px;
  font-size: 9px;
  font-weight: 900;
  opacity: .82;
}

.vipLevelGuide > span.active {
  top: 1px;
  width: 42px;
  height: 24px;
  color: #3a0710;
  background: #f2cc67;
  font-size: 10px;
  opacity: 1;
}

.sectionLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 8px;
}

.sectionLine strong {
  color: var(--gold);
  font-size: 14px;
}

.sectionLine button {
  min-width: 0;
  padding: 5px 0;
  color: #d9a6b2;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.privilegeScroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.privilegeScroller article {
  flex: 0 0 118px;
  min-height: 128px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 10px 7px;
  text-align: center;
  background: linear-gradient(180deg, #4b1018, #21070b);
  border: 1px solid #701d2a;
  border-radius: 8px;
}

.privilegeScroller img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.privilegeScroller strong {
  font-size: 12px;
}

.privilegeScroller span {
  color: var(--gold);
  font-size: 10px;
}

.benefitList {
  display: grid;
  gap: 8px;
}

.benefitRow {
  min-height: 72px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #4b1018, #21070b);
  border: 1px solid #701d2a;
  border-radius: 8px;
}

.benefitRow img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.benefitRow > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.benefitRow strong {
  font-size: 13px;
}

.benefitRow span {
  color: #d8aeb7;
  font-size: 11px;
}

.benefitRow button {
  min-height: 34px;
  padding: 6px 11px;
  color: #5a250e;
  background: #f1c873;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.vipLevelButton {
  width: 100%;
  height: 58px;
  margin-top: 22px;
}

.inviteTabs {
  position: sticky;
  top: 50px;
  z-index: 19;
  height: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  background: linear-gradient(180deg, #180a0d, #2c1016, #110507);
  border-bottom: 1px solid #521925;
}

.inviteTabs button {
  height: 48px;
  padding: 0 3px;
  color: #fff;
  background: transparent;
  border-bottom: 3px solid transparent;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.inviteTabs button.active {
  color: var(--gold);
  border-bottom-color: #c40c2d;
  background: linear-gradient(180deg, rgba(196, 12, 45, .18), rgba(142, 11, 33, .36));
}

.invitePanel,
.supportCard {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #3c0b13, #190507);
  border: 1px solid #e0b750;
  border-radius: 8px;
}

.invitePanel h2,
.supportCard h2 {
  margin: 0;
  color: var(--gold);
  text-align: center;
  font-size: 20px;
}

.invitePanel > p {
  margin: 0;
  color: #e8dadd;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}

.inviteAmount {
  color: var(--gold);
  text-align: center;
  font-size: 34px;
}

.referralPill {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--gold);
  background: #21070b;
  border: 1px solid #7a3340;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.inviteStats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.inviteStats > div {
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  background: linear-gradient(180deg, #4b1018, #21070b);
  border: 1px solid #701d2a;
  border-radius: 8px;
}

.inviteStats span {
  color: #e8dadd;
  font-size: 14px;
}

.inviteStats strong {
  color: var(--gold);
  font-size: 23px;
}

.referralReward > p:first-of-type {
  color: #f6c6cf;
  font-size: 18px;
}

.referralReward .inviteAmount {
  color: #ffe39a;
  text-shadow: 0 2px 6px #8b0000;
  font-size: 52px;
}

.shareRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shareRow button {
  height: 42px;
  color: #fff;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.shareRow .whatsapp {
  background: #128c7e;
}

.shareRow .telegram {
  background: #229ed9;
}

.referralReward > em {
  color: var(--gold);
  text-align: center;
  font-size: 14px;
  font-style: normal;
}

.cumulativeCard > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.cumulativeCard > div span {
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--gold);
  font-size: 11px;
}

.cumulativeCard > div b {
  font-size: 12px;
}

.rulesContent {
  padding-bottom: 12px;
}

.rulesContent h2 {
  margin: 18px 0 12px;
  font-size: 21px;
}

.rulesContent p {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 7px;
  margin: 9px 0;
  color: #e8dadd;
  font-size: 13px;
  line-height: 1.45;
}

.rulesContent p b {
  color: var(--gold);
}

.inviteSteps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  background: #21070b;
  border-radius: 8px;
}

.inviteSteps span {
  display: grid;
  place-items: center;
  gap: 5px;
  color: #e8dadd;
  text-align: center;
  font-size: 10px;
}

.inviteSteps b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #5a250e;
  background: var(--gold);
  border-radius: 50%;
}

.inviteSteps i {
  color: var(--gold);
  font-size: 24px;
  font-style: normal;
}

.treeDiagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.treeDiagram > * {
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #6b1d2a;
  border-radius: 22px;
  font-size: 12px;
  font-style: normal;
}

.treeDiagram > b {
  grid-column: 1 / -1;
  justify-self: center;
  width: 82px;
  color: #5a250e;
  background: var(--gold);
}

.treeDiagram > span {
  grid-column: span 2;
}

.rulesTable {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #6e2632;
  border-radius: 6px;
}

.rulesTable > * {
  min-width: 0;
  padding: 8px 4px;
  overflow-wrap: anywhere;
  text-align: center;
  border-right: 1px solid #6e2632;
  border-bottom: 1px solid #6e2632;
  font-size: 9px;
}

.rulesTable strong {
  color: var(--gold);
  background: #4b1018;
}

.rulesTable span {
  color: #e8dadd;
  background: #21070b;
}

.teamMember {
  min-height: 49px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.teamMember > b {
  color: var(--gold);
  text-align: center;
  font-size: 12px;
}

.teamMember > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.teamMember > span {
  display: grid;
  color: #c7939f;
  text-align: right;
  font-size: 10px;
}

.teamMember em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.emptyText {
  margin: 0;
  color: #d8aeb7;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.missionList {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.missionList article {
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #4b1018, #21070b);
  border: 1px solid #701d2a;
  border-radius: 8px;
}

.missionList article > b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: #38101a;
  border: 1px solid #7e4a57;
  border-radius: 50%;
}

.missionList article > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.missionList strong {
  font-size: 14px;
}

.missionList span {
  color: #d8aeb7;
  font-size: 11px;
}

.missionList button {
  height: 36px;
  color: #5a250e;
  background: var(--gold);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.scene-support > .infoPanel {
  margin-top: 12px;
}

.supportCard {
  border-color: var(--soft-line);
  background: #17090d;
}

.supportCard h2 {
  color: #fff;
  text-align: left;
  font-size: 17px;
}

.cardHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cardHeading button {
  padding: 6px 10px;
  color: var(--gold);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.ticketSummary {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #21070b;
  border-radius: 7px;
}

.ticketSummary span {
  color: #d8aeb7;
  font-size: 12px;
}

.supportThread {
  display: grid;
  gap: 8px;
}

.supportThread article {
  width: 86%;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #21070b;
  border: 1px solid #5d1e2d;
  border-radius: 8px;
}

.supportThread article.admin {
  justify-self: end;
  background: #4b1018;
  border-color: #e0b750;
}

.supportThread p {
  margin: 0;
  color: #e8dadd;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.4;
}

.dualActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.dualActions button {
  min-height: 72px;
  display: grid;
  place-items: start;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  color: #fff;
  text-align: left;
  background: #251015;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.dualActions span {
  color: #a8b1c2;
  font-size: 10px;
  font-weight: 400;
}

.bonusRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #21070b;
  border-radius: 8px;
}

.bonusRow > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.bonusRow strong {
  font-size: 13px;
}

.bonusRow span {
  color: #c9aeb4;
  font-size: 10px;
  line-height: 1.35;
}

.bonusRow > b {
  padding: 5px 8px;
  color: var(--gold);
  background: #4b1018;
  border-radius: 14px;
  font-size: 10px;
}

.notificationList {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.notificationList article {
  min-height: 82px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  background: #17090d;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.notificationList article > b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: #38101a;
  border-radius: 50%;
}

.notificationList article > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.notificationList p {
  margin: 0;
  color: #d8aeb7;
  font-size: 12px;
  line-height: 1.4;
}

.notificationList span {
  color: #966d77;
  font-size: 10px;
}

.recordTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #17090d;
  border-bottom: 1px solid #521925;
}

.recordTabs button {
  height: 48px;
  color: #d8aeb7;
  background: transparent;
  border-bottom: 3px solid transparent;
  font-weight: 900;
  cursor: pointer;
}

.recordTabs button.active {
  color: var(--gold);
  border-bottom-color: #c40c2d;
}

.recordBalance {
  min-height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #5a301c;
  background: linear-gradient(90deg, #f4ca56, #b45b23);
}

.recordBalance strong {
  color: #5a250e;
  font-size: 26px;
}

.recordList {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.historyRow {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #17090d;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.historyRow > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.historyRow > div:last-child {
  text-align: right;
}

.historyRow span {
  color: #a98b93;
  font-size: 10px;
}

.positive {
  color: #7dff92;
}

.negative {
  color: #ff8395;
}

.emptyProfile {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.emptyProfile span {
  color: #a8b1c2;
  font-size: 12px;
  line-height: 1.45;
}

.giftRedeemCard {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  background: #25040a;
  border: 1px solid #a7374b;
  border-radius: 7px;
}

.giftRedeemCard h2 {
  margin: 0;
  font-size: 18px;
}

.bottomNav {
  position: fixed;
  left: 50%;
  bottom: -10px;
  z-index: 30;
  width: min(100%, 430px);
  height: calc(136px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr 92px 1fr 1fr;
  align-items: end;
  padding: 22px 22px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.bottomNav::before {
  content: "";
  position: absolute;
  inset: auto 8px 0;
  z-index: -1;
  height: 112px;
  background: url("assets/bottom_menu_bg.png") center bottom / 100% 100% no-repeat;
}

.navBtn {
  min-width: 0;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  color: #c07a8f;
  background: transparent;
  opacity: .55;
  font-size: 9px;
  font-weight: 900;
  pointer-events: auto;
  cursor: pointer;
}

.navBtn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.navBtn.active {
  color: var(--gold);
  opacity: 1;
}

.navBtn:not(.centerNav) {
  transform: translateY(-12px);
}

.navBtn.centerNav {
  height: 108px;
  justify-content: flex-start;
  justify-self: center;
  transform: translateY(-6px);
  opacity: 1;
}

.navBtn.centerNav img {
  width: 72px;
  height: 72px;
}

.navBtn.centerNav span {
  color: var(--gold);
  font-size: 10px;
}

.menuOverlay,
.profileOverlay,
.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: min(100%, 430px);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  overscroll-behavior: none;
  background: rgba(0, 0, 0, .67);
}

.menuDrawer {
  width: 74%;
  height: 100%;
  padding: calc(18px + env(safe-area-inset-top)) 16px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(90deg, #341018, #260c12, #1c070b);
  box-shadow: 16px 0 32px rgba(0, 0, 0, .42);
  animation: drawerIn .16s ease-out;
}

@keyframes drawerIn {
  from { transform: translateX(-100%); }
}

.drawerProfile,
.profileHeader {
  width: 100%;
  min-width: 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 2px 0 18px;
  color: #fff;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.drawerProfile > img,
.profileHeader > img {
  width: 74px;
  height: 74px;
  padding: 3px;
  object-fit: cover;
  background: #2b0810;
  border: 2px solid #d9a93c;
  border-radius: 50%;
}

.drawerProfile > span,
.profileHeader > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.drawerProfile strong,
.profileHeader strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
}

.drawerProfile em,
.profileHeader em {
  color: #d2a7b2;
  font-size: 12px;
  font-style: normal;
}

.drawerProfile span b,
.profileHeader span b {
  color: var(--gold);
  font-size: 17px;
}

.drawerProfile i,
.profileHeader i,
.drawerItem > b,
.profileMenuRow > i {
  color: #a95a78;
  font-size: 28px;
  font-style: normal;
}

.drawerRule {
  height: 1px;
  margin-bottom: 8px;
  background: #3c1b22;
}

.drawerItem {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  color: var(--pink);
  text-align: left;
  background: transparent;
  border-radius: 18px;
  cursor: pointer;
}

.drawerItem.active {
  color: var(--gold);
  background: #4a1320;
}

.drawerItem img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.drawerItem strong {
  font-size: 16px;
}

.drawerItem em {
  padding: 4px 7px;
  color: #ffe08a;
  background: #511524;
  border-radius: 14px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.profileDrawer {
  width: 310px;
  height: 100%;
  margin-left: auto;
  padding: calc(16px + env(safe-area-inset-top)) 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(90deg, #3a1119, #23080d, #180509);
  box-shadow: -16px 0 32px rgba(0, 0, 0, .42);
  animation: profileIn .16s ease-out;
}

@keyframes profileIn {
  from { transform: translateX(100%); }
}

.profileDrawer > h2 {
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--gold-bright);
  font-size: 20px;
}

.profileHeader {
  grid-template-columns: 70px minmax(0, 1fr) 22px;
  min-height: 86px;
  padding: 8px 0 4px;
}

.profileHeader > img {
  width: 66px;
  height: 66px;
}

.profileHeader strong {
  font-size: 16px;
}

.profileVip {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 8px;
  color: #6a3511;
  text-align: left;
  background: linear-gradient(90deg, #fff4ae, #edc260, #c98a29);
  border: 1px solid #ffe58b;
  border-radius: 8px;
  cursor: pointer;
}

.profileVip img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.profileVip > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profileVip em {
  font-size: 9px;
  font-style: normal;
  line-height: 1.3;
}

.profileVip > b {
  font-size: 23px;
}

.profileMenuRow {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  color: #d65777;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  cursor: pointer;
}

.profileMenuRow > b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: #38101a;
  border: 1px solid #7e4a57;
  border-radius: 50%;
  font-size: 13px;
}

.profileMenuRow strong {
  font-size: 14px;
}

.profileMenuRow.danger {
  color: #ff8ea3;
}

.profileDeposit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  color: var(--gold);
  background: linear-gradient(90deg, #681b27, #4a111a);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.modalOverlay {
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 0, 10, .82);
}

.appModal {
  width: 100%;
  max-height: calc(100dvh - 36px);
  padding: 12px 14px 18px;
  overflow-y: auto;
  background: linear-gradient(180deg, #6a1722, #2a0710);
  border: 1px solid #e0b750;
  border-radius: 7px;
}

.modalTitle {
  height: 36px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  color: var(--gold-bright);
  text-align: center;
}

.modalTitle strong {
  grid-column: 2;
}

.modalTitle button {
  grid-column: 3;
  color: var(--gold-bright);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.avatarPicker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.avatarPicker label {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
}

.avatarPicker input {
  position: absolute;
  opacity: 0;
}

.avatarPicker img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: cover;
  background: #2b0810;
  border: 2px solid #7e4a57;
  border-radius: 50%;
}

.avatarPicker input:checked + img {
  border: 3px solid #ffe36f;
}

.modalNote {
  margin: 0;
  color: #f0b0b8;
  font-size: 11px;
  line-height: 1.45;
}

.nativeControlModal {
  display: grid;
  gap: 12px;
  padding-bottom: 48px;
}

.securityRow,
.settingRow {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #fff;
  text-align: left;
  background: linear-gradient(90deg, #7b1d2c, #661624);
  border-radius: 7px;
}

button.securityRow,
button.settingRow {
  cursor: pointer;
}

.securityRow > b,
.settingRow > b {
  font-size: 21px;
  text-align: center;
}

.securityRow > strong,
.settingRow > strong {
  font-size: 15px;
}

.securityRow > span,
.settingRow > span {
  color: #fff;
  font-size: 13px;
}

.securityRow > i {
  color: var(--pink);
  font-size: 28px;
  font-style: normal;
}

.staticRow {
  margin-bottom: 2px;
}

.switch {
  position: relative;
  width: 52px;
  height: 30px;
  padding: 3px;
  background: #5b2732;
  border-radius: 30px;
}

.switch i {
  width: 24px;
  height: 24px;
  display: block;
  background: #fff;
  border-radius: 50%;
  transition: transform .16s ease;
}

.switch.on {
  background: #e23858;
}

.switch.on i {
  transform: translateX(22px);
}

.languageSetting {
  align-items: start;
}

.languageSetting > b,
.languageSetting > strong {
  padding-top: 8px;
}

.languageOptions {
  display: grid;
  gap: 5px;
  min-width: 104px;
  padding: 4px;
  background: #53101c;
  border-radius: 7px;
}

.languageOptions button {
  min-height: 32px;
  padding: 4px 8px;
  color: #eac9cf;
  text-align: left;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
}

.languageOptions button.active {
  color: #3b1906;
  background: var(--gold);
  font-weight: 900;
}

.gameScene {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  background: #000;
}

.gameScene header {
  height: 50px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  background: #16070a;
  border-bottom: 1px solid #5d1e2d;
}

.gameScene header button {
  height: 50px;
  color: var(--gold);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.gameScene header strong {
  overflow: hidden;
  color: var(--gold);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gameScene iframe {
  width: 100%;
  height: calc(100dvh - 50px);
  display: block;
  background: #000;
  border: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(122px + env(safe-area-inset-bottom));
  z-index: 120;
  width: min(calc(100% - 28px), 390px);
  transform: translateX(-50%);
  padding: 11px 14px;
  color: #fff;
  text-align: center;
  background: rgba(18, 2, 6, .96);
  border: 1px solid #e0b750;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .46);
  font-size: 13px;
}

.toast[hidden] {
  display: none;
}

.authApp {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 8%, rgba(158, 24, 48, .52), transparent 30%),
    linear-gradient(180deg, #180207, #050001);
}

.authShell {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px 18px;
}

.authArtwork {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.authParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  mix-blend-mode: screen;
}

.authMark {
  position: relative;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.authWord {
  position: relative;
  width: 220px;
  height: 60px;
  object-fit: contain;
}

.authCard {
  padding: 16px;
  background: linear-gradient(180deg, #3a0a12, #120305);
  border: 1px solid #e0b750;
  border-radius: 8px;
}

.authModes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #17090d;
}

.authModes button {
  height: 44px;
  color: #d8aeb7;
  background: transparent;
  border-bottom: 3px solid transparent;
  font-weight: 900;
  cursor: pointer;
}

.authModes button.active {
  color: var(--gold);
  border-bottom-color: #c40c2d;
}

/* Native motion timing mirrors AppCcActivity. */
button,
[data-action] {
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
}

button:active {
  opacity: .92;
}

.scene > * {
  animation: nativeSceneIn 260ms cubic-bezier(.16, .84, .3, 1) both;
}

.scene > :nth-child(2) {
  animation-delay: 35ms;
}

.scene > :nth-child(3) {
  animation-delay: 70ms;
}

.scene > :nth-child(n + 4) {
  animation-delay: 100ms;
}

@keyframes nativeSceneIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.titleBar {
  animation: nativeHeaderIn 220ms cubic-bezier(.16, .84, .3, 1) both;
}

@keyframes nativeHeaderIn {
  from {
    opacity: .4;
    transform: translateY(-8px);
  }
}

.brandMark img {
  animation: homeBrandLoop 10s cubic-bezier(.12, .78, .25, 1) infinite;
}

@keyframes homeBrandLoop {
  0% {
    opacity: 0;
    transform: translateY(-18px) rotate(-320deg) scale(.62);
  }
  6.5% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

.balancePill,
.giftChip,
.profileChip {
  animation: nativeHeaderControlIn 420ms cubic-bezier(.16, .84, .3, 1) both;
}

.giftChip {
  animation-delay: 70ms;
}

.profileChip {
  animation-delay: 120ms;
}

@keyframes nativeHeaderControlIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(.94);
  }
}

.homeHero img {
  will-change: opacity, transform;
}

.featuredGame {
  animation: featuredCardIn 220ms cubic-bezier(.16, .84, .3, 1) both;
}

.featuredGame:nth-child(2) {
  animation-delay: 70ms;
}

.featuredGame:nth-child(3) {
  animation-delay: 140ms;
}

@keyframes featuredCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.97);
  }
}

.brandCard,
.gameCard {
  animation: catalogCardIn 260ms cubic-bezier(.16, .84, .3, 1) both;
}

.brandCard:nth-child(2n),
.gameCard:nth-child(2n) {
  animation-delay: 55ms;
}

.brandCard:nth-child(3n),
.gameCard:nth-child(3n) {
  animation-delay: 100ms;
}

@keyframes catalogCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.94);
  }
}

.brandCard img,
.gameCard img,
.featuredGame > img {
  animation: assetReveal 240ms ease-out both;
}

@keyframes assetReveal {
  from {
    opacity: 0;
    transform: scale(.96);
  }
}

.scene-rank .jackpotPanel {
  animation: rankJackpotIn 360ms cubic-bezier(.18, .78, .3, 1) both;
}

@keyframes rankJackpotIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }
}

.jackpotReel span {
  transform-origin: center;
  animation: jackpotDigitIn 280ms cubic-bezier(.12, .82, .25, 1) both;
  animation-delay: calc(var(--digit-index) * 65ms);
  backface-visibility: hidden;
}

@keyframes jackpotDigitIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scaleY(.65);
  }
}

.rankActionStrip {
  animation: rankStripIn 260ms ease-out 90ms both;
}

@keyframes rankStripIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
}

.rankTopStage {
  position: relative;
  min-height: 246px;
  animation: rankStageIn 420ms cubic-bezier(.18, .78, .3, 1) 100ms both;
}

@keyframes rankStageIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.95);
  }
}

.rankTopStage .rankPodium,
.rankTopRows {
  position: absolute;
  inset: 0;
}

.rankTopStage .rankPodium {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 320ms ease-in-out,
    transform 320ms ease-in-out,
    visibility 0s linear 0s;
}

.podiumCard {
  animation: podiumCardIn 320ms ease-out both;
  animation-delay: calc(var(--podium-index) * 120ms);
}

.podiumCard.rank1 {
  animation-duration: 420ms;
}

@keyframes podiumCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.92);
  }
}

.rankTopRows {
  min-height: 246px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 6px 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition:
    opacity 280ms ease-in-out,
    transform 280ms ease-in-out,
    visibility 0s linear 280ms;
}

.rankTopStage.showRows .rankPodium {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px) scale(.96);
  transition:
    opacity 320ms ease-in-out,
    transform 320ms ease-in-out,
    visibility 0s linear 320ms;
}

.rankTopStage.showRows .rankTopRows {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 360ms cubic-bezier(.16, .84, .3, 1),
    transform 360ms cubic-bezier(.16, .84, .3, 1),
    visibility 0s linear 0s;
}

.rankTopRow {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 46px minmax(0, 1fr) minmax(58px, auto);
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 8px;
  overflow: hidden;
  background: linear-gradient(90deg, #713023, #31090e);
  border: 1px solid #d88968;
  border-radius: 8px;
}

.rankTopRow.rank1 {
  background: linear-gradient(90deg, #815414, #3a0b10);
  border-color: #f1c75b;
}

.rankTopRow.rank2 {
  background: linear-gradient(90deg, #233e70, #240910);
  border-color: #8da9e8;
}

.rankTopStage.showRows .rankTopRow {
  animation: rankTopRowIn 360ms cubic-bezier(.16, .84, .3, 1) both;
  animation-delay: calc(var(--top-index) * 110ms);
}

@keyframes rankTopRowIn {
  from {
    opacity: 0;
    transform: translateX(var(--row-start, -28px));
  }
}

.rankTopRow:nth-child(even) {
  --row-start: 28px;
}

.rankCrown {
  position: relative;
  color: var(--gold);
  text-align: center;
  font-size: 25px;
}

.rankCrown small {
  position: absolute;
  inset: auto 0 2px;
  color: #fff;
  font-size: 9px;
}

.rankTopRow > img {
  width: 46px;
  height: 46px;
  padding: 2px;
  object-fit: cover;
  background: #160307;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.rankTopRow > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rankTopRow > div > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankTopRow > div strong {
  font-size: 12px;
}

.rankTopRow > div span {
  color: #f1c873;
  font-size: 10px;
}

.rankTopRow > em {
  overflow: hidden;
  color: #ffe285;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.rankRow {
  animation: rankRowIn 260ms ease-out both;
  animation-delay: calc(var(--rank-index) * 90ms);
}

@keyframes rankRowIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.walletHero,
.balanceSummary {
  animation: walletCardIn 260ms cubic-bezier(.14, .82, .28, 1) both;
}

.moneyPanel {
  animation: walletPanelIn 260ms cubic-bezier(.14, .82, .28, 1) 70ms both;
}

@keyframes walletCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }
}

@keyframes walletPanelIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

.walletTip {
  animation: walletTipIn 260ms ease-out 90ms both;
}

.walletTip + .walletTip {
  animation-delay: 160ms;
}

@keyframes walletTipIn {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

.walletActions .walletAction:first-child {
  animation: walletActionIn 260ms cubic-bezier(.16, .84, .3, 1) 180ms both;
}

.walletActions .walletAction:last-child {
  animation: walletActionIn 260ms cubic-bezier(.16, .84, .3, 1) 250ms both;
}

@keyframes walletActionIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.94);
  }
}

.amountGrid button {
  animation: amountChipIn 220ms cubic-bezier(.16, .84, .3, 1) both;
}

.amountGrid button:nth-child(2n) {
  animation-delay: 45ms;
}

.amountGrid button:nth-child(3n) {
  animation-delay: 90ms;
}

@keyframes amountChipIn {
  from {
    opacity: 0;
    transform: scale(.9);
  }
}

.vipHero {
  animation: vipHeroIn 260ms cubic-bezier(.16, .84, .3, 1) both;
}

@keyframes vipHeroIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.96);
  }
}

.vipRail {
  scroll-behavior: smooth;
  perspective: 900px;
}

.vipRail button {
  transform-style: preserve-3d;
  transform-origin: center;
  transition: opacity 100ms linear;
  will-change: transform, opacity;
}

.vipRail button.active img {
  animation: vipBadgePulse 1250ms ease-in-out infinite alternate;
}

@keyframes vipBadgePulse {
  to {
    transform: translateY(-3px) scale(1.055);
    filter: brightness(1.08);
  }
}

.privilegeScroller article {
  animation: privilegeIn 220ms cubic-bezier(.16, .84, .3, 1) both;
  animation-delay: calc(var(--privilege-index) * 55ms);
}

@keyframes privilegeIn {
  from {
    opacity: 0;
    transform: translateX(18px) scale(.94);
  }
}

.benefitRow {
  animation: benefitIn 220ms cubic-bezier(.16, .84, .3, 1) both;
}

.benefitRow:nth-child(2) {
  animation-delay: 80ms;
}

@keyframes benefitIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.96);
  }
}

.referralReward .inviteAmount {
  animation: rewardAmountIn 420ms cubic-bezier(.16, .84, .3, 1) 120ms both;
}

@keyframes rewardAmountIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.82);
  }
}

.treeDiagram > * {
  animation: treeNodeIn 260ms cubic-bezier(.16, .84, .3, 1) both;
}

.treeDiagram > :nth-child(2),
.treeDiagram > :nth-child(3) {
  animation-delay: 70ms;
}

.treeDiagram > :nth-child(n + 4) {
  animation-delay: 140ms;
}

@keyframes treeNodeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.9);
  }
}

.notificationList article,
.historyRow,
.missionList article,
.teamMember {
  animation: listRowIn 260ms cubic-bezier(.16, .84, .3, 1) both;
}

.notificationList article:nth-child(2n),
.historyRow:nth-child(2n),
.missionList article:nth-child(2n),
.teamMember:nth-child(2n) {
  animation-delay: 80ms;
}

@keyframes listRowIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.navBtn.active:not(.centerNav) {
  animation: dockSelect 400ms ease-in-out both;
}

@keyframes dockSelect {
  0%,
  100% {
    transform: translateY(-12px) scale(1);
  }
  55% {
    transform: translateY(-12px) scale(1.08);
  }
}

.navBtn.centerNav {
  animation: dockCenterNudge 640ms ease-in-out both;
}

@keyframes dockCenterNudge {
  0%,
  100% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(-9px);
  }
}

.menuOverlay,
.profileOverlay {
  animation: overlayFadeIn 90ms linear both;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
}

.menuDrawer {
  animation: nativeDrawerIn 155ms cubic-bezier(.16, .84, .3, 1) both;
}

@keyframes nativeDrawerIn {
  from {
    transform: translateX(-100%);
  }
}

.profileDrawer {
  animation: nativeProfileIn 160ms cubic-bezier(.16, .84, .3, 1) both;
}

@keyframes nativeProfileIn {
  from {
    transform: translateX(100%);
  }
}

.menuOverlay.closing,
.profileOverlay.closing {
  animation: overlayFadeOut 120ms linear both;
}

.menuOverlay.closing .menuDrawer {
  animation: nativeDrawerOut 120ms ease-out both;
}

.profileOverlay.closing .profileDrawer {
  animation: nativeProfileOut 120ms ease-out both;
}

@keyframes overlayFadeOut {
  to {
    opacity: 0;
  }
}

@keyframes nativeDrawerOut {
  to {
    transform: translateX(-100%);
  }
}

@keyframes nativeProfileOut {
  to {
    transform: translateX(100%);
  }
}

.walletDropdownDismiss {
  position: fixed;
  inset: 0;
  z-index: 44;
  width: min(100%, 430px);
  height: 100dvh;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.walletDropdown {
  position: fixed;
  left: 50%;
  top: 51px;
  z-index: 46;
  width: 206px;
  min-height: 132px;
  transform-origin: top center;
  animation: walletDropdownIn 150ms cubic-bezier(.12, .82, .22, 1) both;
}

@keyframes walletDropdownIn {
  from {
    opacity: 0;
    transform: translate(-50%, -4px) scaleY(.88);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scaleY(1);
  }
}

.walletDropdown.closing {
  animation: walletDropdownOut 120ms ease-in both;
}

@keyframes walletDropdownOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scaleY(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -4px) scaleY(.88);
  }
}

.walletDropdown > i {
  position: absolute;
  left: calc(50% - 8px);
  top: 2px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: #4a111d;
  border: 1px solid #b64a61;
}

.walletDropdown > div {
  position: relative;
  margin-top: 8px;
  padding: 8px 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #4a111d, #26070e, #120508);
  border: 1px solid #b64a61;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .48);
}

.walletDropdown button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  color: #fff;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.walletDropdown button + button {
  border-top: 1px solid #5e2630;
}

.walletDropdown button b {
  color: var(--gold);
  text-align: center;
  font-size: 23px;
}

.walletDropdown button strong {
  font-size: 14px;
}

.walletDropdown button span {
  color: #d7b783;
  font-size: 23px;
}

.modalOverlay,
.startupOverlay {
  animation: modalOverlayIn 160ms linear both;
}

@keyframes modalOverlayIn {
  from {
    opacity: 0;
  }
}

.appModal {
  animation: nativeModalIn 260ms cubic-bezier(.12, .82, .22, 1) both;
}

@keyframes nativeModalIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.96);
  }
}

.modalOverlay.closing,
.startupOverlay.closing {
  animation: modalOverlayOut 150ms linear both;
}

.modalOverlay.closing .appModal,
.startupOverlay.closing .startupCard {
  animation: nativeModalOut 150ms ease-in both;
}

@keyframes modalOverlayOut {
  to {
    opacity: 0;
  }
}

@keyframes nativeModalOut {
  to {
    opacity: 0;
    transform: translateY(14px) scale(.97);
  }
}

.startupOverlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: min(100%, 430px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, .8);
}

.startupCard {
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, #7e1425, #36070d, #140205);
  border: 1px solid #e4b34e;
  border-radius: 8px;
  animation: startupCardIn 260ms cubic-bezier(.16, .84, .3, 1) both;
}

@keyframes startupCardIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

.startupCard header {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
}

.startupCard header strong {
  overflow: hidden;
  color: #ffd870;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.startupCard header button {
  height: 42px;
  color: #ffd870;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.startupBanner {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: #ffd870;
  background: #120305;
  border-radius: 8px;
  cursor: pointer;
}

.startupBanner img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  animation: assetReveal 240ms ease-out both;
}

.gameLaunchOverlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  width: min(100%, 430px);
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(8, 0, 2, .78), rgba(8, 0, 2, .86)),
    url("assets/apk_hero_particles.jpg") center / cover;
}

.gameLaunchOverlay > div {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 28px;
  color: #f1cfa2;
}

.gameLaunchOverlay > div > span {
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  padding: 2px;
  background: linear-gradient(180deg, #240609, #050101);
  border: 1px solid #d8a540;
  border-radius: 38px;
  animation: splashLogoIn 900ms cubic-bezier(.12, .82, .22, 1) both;
}

.gameLaunchOverlay > div > span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: splashPulse 1350ms ease-in-out 220ms infinite;
}

.gameLaunchOverlay > div > img {
  width: 260px;
  height: 86px;
  object-fit: contain;
  animation: splashWordIn 720ms cubic-bezier(.12, .82, .22, 1) 260ms both;
}

.gameLaunchOverlay strong {
  font-size: 14px;
}

.gameLaunchOverlay i {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 216, 112, .24);
  border-top-color: #ffd870;
  border-radius: 50%;
  animation: loadingSpin 750ms linear infinite;
}

@keyframes splashLogoIn {
  0% {
    opacity: 0;
    transform: rotate(-16deg) scale(.88);
  }
  58% {
    opacity: 1;
    transform: rotate(8deg) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes splashPulse {
  0%,
  100% {
    opacity: .86;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.07);
  }
}

@keyframes splashWordIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes loadingSpin {
  to {
    transform: rotate(360deg);
  }
}

.toast:not([hidden]) {
  animation: toastIn 220ms cubic-bezier(.16, .84, .3, 1) both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px) scale(.96);
  }
}

.authMark {
  animation:
    authLogoIn 900ms cubic-bezier(.12, .82, .22, 1) both,
    splashPulse 1350ms ease-in-out 900ms infinite;
}

@keyframes authLogoIn {
  0% {
    opacity: 0;
    transform: rotate(-16deg) scale(.88);
  }
  58% {
    opacity: 1;
    transform: rotate(8deg) scale(1.08);
  }
}

.authWord {
  animation: splashWordIn 720ms cubic-bezier(.12, .82, .22, 1) 260ms both;
}

.authCard {
  animation: authCardIn 260ms cubic-bezier(.16, .84, .3, 1) 240ms both;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 380px) {
  .topBar {
    grid-template-columns: 40px minmax(130px, 1fr) 112px;
    padding-inline: 12px;
  }

  .profileChip {
    width: 76px;
    grid-template-columns: 35px minmax(18px, 1fr) 14px;
  }

  .profileChip img {
    width: 35px;
    height: 35px;
  }

  .giftChip {
    flex-basis: 30px;
    width: 30px;
  }

  .featuredGame {
    grid-template-columns: 74px minmax(0, 1fr) 40px;
    padding-inline: 12px;
  }

  .featuredGame > img {
    width: 74px;
  }

  .amountGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jackpotReel {
    grid-template-columns: 28px repeat(9, minmax(0, 1fr));
    padding-inline: 10px;
  }

  .jackpotReel span {
    font-size: 21px;
  }

  .bottomNav {
    grid-template-columns: 1fr 1fr 78px 1fr 1fr;
    padding-inline: 14px;
  }
}
