.mujinjang-index {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  max-width: 600px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  overflow: hidden;
}
.mujinjang-index.index-app {
  max-width: 100%;
}
.mujinjang-index .index-header {
  display: flex;
  position: absolute;
  top: 0;
  width: 100%;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  height: 52px;
  text-align: center;
}
.mujinjang-index .index-header .closeButton {
  position: absolute;
  right: 16px;
}
.mujinjang-index .index-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 40px;
}
.mujinjang-index .index-open {
  padding-top: 52px;
}
.mujinjang-index .index-open__top {
  display: flex;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 40px;
  box-sizing: border-box;
}
.mujinjang-index .index-open__top > h2 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.mujinjang-index .index-open__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mujinjang-index .index-open__content > img {
  height: 100%;
}
.mujinjang-index .index-open__content > p {
  padding: 16px 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
  color: #0078FF;
  text-align: center;
}
.mujinjang-index .count-display {
  padding-top: 52px;
}
.mujinjang-index .count-display__item__number {
  padding-top: 4px;
  font-size: 36px;
  font-weight: 400;
  line-height: 44px;
}
.mujinjang-index .count-display__item {
  margin-bottom: 0;
}
.mujinjang-index .brands-wrap {
  color: #fff;
}
.mujinjang-index .brands-container {
  overflow: hidden;
}
.mujinjang-index .brand-item {
  height: 57px;
}
.mujinjang-index .brands-title {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 8px;
  border-top: 1px solid rgba(61, 61, 61, 0.6);
  margin: 0 16px;
}
.mujinjang-index .brands-title > p {
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  color: #b3b3b3;
}
.mujinjang-index .index-button-wrap {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  padding-bottom: calc(env(safe-area-inset-bottom) + 0);
  padding-bottom: calc(constant(safe-area-inset-bottom) + 0);
}
.mujinjang-index .index-button-wrap > div {
  padding: 0 16px;
  background: #000;
}
.mujinjang-index .index-button-wrap > div:first-child {
  padding: 12px 16px;
}
.mujinjang-index .index-button-wrap > div:last-of-type {
  padding-bottom: 32px;
}
.mujinjang-index .index-button-wrap > div > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 4px;
  background: #0078FF;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.mujinjang-index .index-button-wrap > div > button {
  display: block;
  width: 100%;
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  color: #b3b3b3;
}
.mujinjang-index .index-button-wrap::before {
  display: block;
  content: "";
  width: 100%;
  height: 48px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
}
.index-open + .index-button-wrap::before {
  display: none;
}

.mujinjang-index .brand-item-wrap.active {
  animation: rankingUp 0.5s both;
}
.mujinjang-index .brand-header {
  display: flex;
  align-items: center;
  width: 100%;
}
.mujinjang-index .brand-header .flex-sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 4px;
  width: calc(100% - 54px);
}
.mujinjang-index .brand-rank {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-left: 16px;
  padding-top: 10.5px;
  padding-bottom: 10.4px;
}
.mujinjang-index .brand-rank-number {
  width: 38px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
}
.mujinjang-index .brand-rank-state {
  display: flex;
  width: 38px;
  height: 14px;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.mujinjang-index .brand-rank-updown::before {
  content: "";
  width: 6px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  display: block;
}
.mujinjang-index .brand-rank-updown.is-up {
  background-repeat: no-repeat;
  background-position: center center;
  width: 8px;
  height: 8px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="5" viewBox="0 0 6 5" fill="none"><path d="M0 4.5L3 0.5L6 4.5H0Z" fill="%23F31110"/></svg>');
}
.mujinjang-index .brand-rank-updown.is-up::before {
  content: none;
}
.mujinjang-index .brand-rank-updown.is-down {
  background-repeat: no-repeat;
  background-position: center center;
  width: 8px;
  height: 8px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="5" viewBox="0 0 6 5" fill="none"><path d="M6 0.5L3 4.5L0 0.5L6 0.5Z" fill="%230078FF"/></svg>');
}
.mujinjang-index .brand-rank-updown.is-down::before {
  content: none;
}
.mujinjang-index .brand-rank-value {
  color: var(--sub-text, #B3B3B3);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
}
.mujinjang-index .brand-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mujinjang-index .brand-name .brand-logo {
  width: 27.429px;
  height: 27.429px;
  flex-shrink: 0;
  border-radius: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border: 0.857px solid rgba(0, 0, 0, 0.08);
}
.mujinjang-index .brand-name .brand-logo > img {
  max-width: 75%;
  object-fit: contain;
  background-color: #fff;
}
.mujinjang-index .brand-name > p {
  max-width: calc(100vw - 235px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.mujinjang-index .brand-sales {
  display: flex;
  align-items: center;
  gap: 2px;
}
.mujinjang-index .brand-sales > p {
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  color: #B3B3B3;
}
.mujinjang-index .brand-sales .button-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
}

@keyframes rankingUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-57px);
  }
}
