#cs-home-root .cs-home-shortcut-currency .cs-home-currency-badge {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.04rem;
  font-size: 0.24rem;
  font-weight: 700;
  color: #1a1a1a;
  background: linear-gradient(180deg, #c9a84c, #d1ae52);
  line-height: 1;
}

#cs-home-root .cs-home-shortcut-currency {
  min-width: 0.56rem;
}

#cs-home-root .cs-home-coin[src*="icon-rmb-coin"],
#cs-home-root .cs-home-coin[src*="static/img/icon-rmb"],
img.cs-currency-badge[src*="icon-rmb-coin"],
img.cs-currency-badge[src*="static/img/icon-rmb"],
.cs-currency-card-icon.cs-rmb-coin,
img.cs-rmb-coin {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 0.3rem !important;
  height: 0.3rem !important;
  min-width: 0.3rem !important;
  min-height: 0.3rem !important;
  max-width: 0.3rem !important;
  max-height: 0.3rem !important;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.cs-currency-lang-card .cs-currency-card-icon {
  width: 0.56rem !important;
  height: 0.56rem !important;
  min-width: 0.56rem !important;
  min-height: 0.56rem !important;
  max-width: 0.56rem !important;
  max-height: 0.56rem !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cs-currency-lang-modal {
  position: fixed;
  inset: 0;
  z-index: 1008;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.28rem;
}

html[data-ui-contain="1"] .cs-currency-lang-modal {
  left: 50%;
  right: auto;
  width: var(--lobby__max-width, 7.5rem);
  max-width: var(--lobby__max-width, 7.5rem);
  transform: translateX(-50%);
}

body.cs-currency-lang-open #cs-home-root,
body.cs-currency-lang-open.cs-home-custom-active #cs-home-root {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.cs-currency-lang-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.cs-currency-lang-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 6.4rem;
  pointer-events: auto;
  background: linear-gradient(180deg, #2f2a22 0%, #1f1f1f 38%, #1a1a1a 100%);
  border: 1px solid rgba(209, 174, 82, 0.35);
  border-radius: 0.22rem;
  padding: 0.34rem 0.3rem 0.28rem;
  color: #e8e8e8;
  box-shadow: 0 0.24rem 0.8rem rgba(0, 0, 0, 0.45);
  animation: csCurrencyPanelIn 0.22s ease-out;
}

@keyframes csCurrencyPanelIn {
  from {
    opacity: 0;
    transform: translateY(0.24rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cs-currency-lang-close {
  position: absolute;
  top: 0.16rem;
  right: 0.16rem;
  width: 0.56rem;
  height: 0.56rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #bbb;
  font-size: 0.36rem;
  line-height: 1;
}

.cs-currency-lang-head {
  text-align: center;
  margin-bottom: 0.28rem;
  padding-top: 0.08rem;
}

.cs-currency-lang-kicker {
  display: inline-block;
  padding: 0.04rem 0.16rem;
  border-radius: 999px;
  background: rgba(209, 174, 82, 0.14);
  color: #d1ae52;
  font-size: 0.2rem;
  letter-spacing: 0.04em;
}

.cs-currency-lang-title {
  margin: 0.12rem 0 0.08rem;
  font-size: 0.36rem;
  font-weight: 700;
  color: #f3f3f3;
}

.cs-currency-lang-sub {
  margin: 0;
  font-size: 0.22rem;
  line-height: 1.5;
  color: #9a9a9a;
}

.cs-currency-lang-section {
  margin-bottom: 0.22rem;
}

.cs-currency-lang-label {
  margin-bottom: 0.12rem;
  font-size: 0.24rem;
  color: #bdbdbd;
}

.cs-currency-lang-pills {
  display: flex;
  gap: 0.14rem;
}

.cs-currency-lang-pill {
  flex: 1;
  height: 0.68rem;
  border-radius: 0.12rem;
  border: 1px solid #444;
  background: #242424;
  color: #ccc;
  font-size: 0.24rem;
}

.cs-currency-lang-pill.on {
  border-color: #d1ae52;
  background: rgba(209, 174, 82, 0.12);
  color: #f0d27a;
  font-weight: 600;
}

.cs-currency-lang-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.14rem;
}

.cs-currency-lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
  min-height: 1.56rem;
  padding: 0.16rem 0.12rem;
  border-radius: 0.16rem;
  border: 1px solid #3a3a3a;
  background: linear-gradient(180deg, #262626, #1d1d1d);
  color: #ddd;
}

.cs-currency-lang-card img {
  width: 0.56rem;
  height: 0.56rem;
  object-fit: contain;
}

.cs-currency-lang-card strong {
  font-size: 0.26rem;
  color: #f1f1f1;
}

.cs-currency-lang-card span {
  font-size: 0.2rem;
  color: #999;
}

.cs-currency-lang-card.on {
  border-color: #d1ae52;
  background: linear-gradient(180deg, rgba(209, 174, 82, 0.18), rgba(209, 174, 82, 0.06));
  box-shadow: inset 0 0 0 1px rgba(209, 174, 82, 0.18);
}

.cs-currency-lang-rate {
  margin: 0.04rem 0 0.22rem;
  text-align: center;
  font-size: 0.22rem;
  color: #d1ae52;
}

.cs-currency-lang-actions {
  display: flex;
  gap: 0.18rem;
}

.cs-currency-lang-actions button {
  flex: 1;
  height: 0.8rem;
  border-radius: 0.14rem;
  border: none;
  font-size: 0.28rem;
}

.cs-currency-lang-cancel {
  background: #333;
  color: #ccc;
}

.cs-currency-lang-ok {
  background: linear-gradient(180deg, #d1ae52, #b8923f);
  color: #1a1a1a;
  font-weight: 700;
}
