html {
  scrollbar-gutter: stable;
}

.ry-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 64px;
  padding: 0;
  color: #fff;
  background: #172b25;
  border: 0;
  border-bottom: 3px solid #b58125;
  box-shadow: none;
}

.ry-topbar-inner {
  width: min(1500px, calc(100% - 32px));
  min-height: 61px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.ry-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.ry-brand-link img {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  border-radius: 0;
  object-fit: contain;
}

.ry-brand-link strong {
  color: #fff;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: .01em;
}

.ry-brand-link strong span {
  margin-left: 2px;
  color: #f2a72a;
  font-size: .9em;
  font-weight: 720;
}

.ry-primary-nav {
  min-height: 61px;
  display: flex;
  align-items: stretch;
  gap: 24px;
  white-space: nowrap;
}

.ry-primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1px 0 0;
  color: #dce8e3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.ry-primary-nav a:hover,
.ry-primary-nav a:focus-visible {
  color: #fff;
}

.ry-primary-nav a[aria-current="page"] {
  color: #f1cf82;
}

.ry-primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #d6a844;
}

.ry-tagline {
  min-width: 0;
  overflow: hidden;
  color: #bfcfc8;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.ry-account-area {
  min-width: 108px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #dce8e3;
  font-size: 12px;
  white-space: nowrap;
}

.ry-account-link,
.ry-account-area .account-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #63766e;
  border-radius: 4px;
  color: #fff;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.ry-account-area .account-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ry-account-area .wallet-balance {
  color: #f1cf82;
}

.ry-account-area [hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .ry-topbar-inner {
    grid-template-columns: auto auto 1fr auto;
    gap: 20px;
  }

  .ry-tagline {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .ry-topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ry-tagline {
    display: none;
  }
}

@media (max-width: 680px) {
  .ry-topbar {
    position: relative;
  }

  .ry-topbar-inner {
    width: calc(100% - 24px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    padding: 10px 0 0;
  }

  .ry-brand-link img {
    width: 36px;
    height: 36px;
    border-radius: 0;
  }

  .ry-brand-link strong {
    font-size: 19px;
  }

  .ry-account-area {
    min-width: 0;
  }

  .ry-account-area .account-name,
  .ry-account-area .wallet-balance,
  .ry-account-area #rechargeBtn,
  .ry-account-area #logoutBtn {
    display: none;
  }

  .ry-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 44px;
    gap: 22px;
    overflow-x: auto;
  }

  .ry-primary-nav a {
    font-size: 13px;
  }
}
