@charset "UTF-8";
/* layout */
html,
body {
  width: 100%;
  height: 100%;
}

body.fixed {
  overflow-y: hidden;
}

.main {
  width: 100%;
  height: 100%;
  padding-top: 80px;
}



#wrap {
  width: 100%;
  min-height: 100%;
  position: relative;
  padding-bottom: 60px;
}

.container {
  width: 100%;
  max-width: 1480px;
  padding: 0 20px;
  margin: 0 auto;
  padding-bottom: 104px;
}


.main02 {
  width: 100%;
  height: 100%;
  padding-top: 80px;
  display: flex;
  flex-direction: row;
}

.container_custom_01 {
  width: 80%;
  margin: 0 auto;
  padding: 0 10px 24px 30px;
}

.container_custom_02 {
  width: 18%;
  margin: 0 auto;
  padding: 0 30px 24px 10px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 101;
  background-color: #0D1421;
  transition: 0.35s;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  max-width: 1480px;
  padding: 0 20px;
}

.header__gnb {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 56px;
}

.logo {
  display: inline-block;
  width: 121px;
  height: 38px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header__gnb nav.gnb,
.header__gnb nav.gnb ul li {
  height: 100%;
}

.header__gnb nav.gnb ul {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.header__gnb nav.gnb ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.header__user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header_lang ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header_lang ul li {
  font-size: 16px;
  font-weight: 600;
  color: #949BA8;
  padding-right:8px ;
  position: relative;
}

.header_lang ul li::after{
  content: '';
  display: inline-block;
  width: 2px;
  height: 16px;
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  background-color: #222531;
}

.header_lang ul li.active {
  color: #fff;
}

.header_lang ul li:last-child::after {
  content: none;
}

.header__user-info {
  position: relative;
}

.header__user-info .user-profile {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

.header__user-info .user-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__user-info .popup__user-info {
  display: none;
  width: max-content;
  position: absolute;
  right: 0;
  top: 40px;
  background-color: #222531;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0px 2px 6px 0px #00000066;
}

.popup__user-info p.welcome {
  font-size: 14px;
  font-weight: 500;
  color: #A5ACBA;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #323546;
}

.popup__user-info p.welcome b {
  color: #fff;
  font-weight: 600;
}

.popup__user-info .user-info {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #323546;
  border-radius: 8px;
  padding: 10px 0;
}

.popup__user-info .user-info .info {
  flex: 1;
  min-width: 77px;
  text-align: center;
}

.popup__user-info .user-info .info .info--value {
  font-weight: 700;
  color: #fff;
}

.popup__user-info .user-info .info .info--tit {
  font-size: 13px;
  font-weight: 500;
  color: #949BA8;
}

.popup__user-info .user-info .info.level .info--value {
  color: #6188FF;
}

.header__btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__btns .btn {
  font-weight: 700;
}

.btn_mo_menu {
  display: none;
  width: 28px;
  height: 28px;
  background: url(../_img/icon/icon_mo_menu.svg) no-repeat center center / contain;
}

.mo_sidebar {
  display: none;
}

/* Footer */
.footer {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -60px;
  height: 60px;
  transform: translateY(-100%);
  background-color: #222531;
}

.footer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.footer__inner p {
  font-size: 14px;
  font-weight: 500;
  color: #7A7F8A;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.footer__company-info {
  font-size: 13px;
  color: #7A7F8A;
  font-weight: 400;
}

.footer__company-info a {
  color: #7A7F8A;
  text-decoration: none;
}


/* STATUS TEXT */
.c_blue {
  color: #5679E3;
}

.c_green {
  color: #14CA83;
}

.c_gray {
  color: #949BA8;
}

.c_red {
  color: #ff544e;
}

.c_white {
  color: #fff;
}

.status_down {
  color: #ff544e;
  padding-left: 10px;
  position: relative;
}

.status_down:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 4px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: url(../_img/icon/icon_down.svg) no-repeat center center / contain;
}

.status_up {
  color: #14CA83;
  padding-left: 10px;
  position: relative;
}

.status_up:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 4px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: url(../_img/icon/icon_up.svg) no-repeat center center / contain;
}

/* pagination */
ul.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

ul.pagination>li {
  display: inline-block;
  width: 36px;
  height: 36px;
  text-align: center;
  color: #fff;
  border-radius: 8px;
  background-color: #222531;
}

ul.pagination>li>a {
  display: inline-block;
  width: 100%;
  height: 100%;
  line-height: 36px;
  font-size: 14px;
}

ul.pagination>li.on {
  background-color: var(--color-brand);
}

ul.pagination>li.prev,
ul.pagination>li.next {
  width: 42px;
}

/* TAB */
.tabs--typeA {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 8px;
  background-color: #323546;
}

.tabs--typeA .tabs__link {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #7A7F8A;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
  height: 36px;
  width: auto;
  cursor: pointer;
  border-radius: 8px;
}

.tabs--typeA .tabs__link.on {
  background-color: #222531;
  color: #fff;
}

/* List Sort Radio Open */
.sort_radio .is_detailed {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.35s;
}

.sort_radio .is_detailed.active {
  background-color: #1A2453;
  border-radius: 8px;
}

.is_detailed .detail_select {
  display: none;
}

.is_detailed.active .detail_select {
  display: flex;
}

/* Timer */
.base-timer {
  position: relative;
  width: 48px;
  height: 48px;
}

.base-timer__circle {
  fill: none;
  stroke: none;
}

.base-timer__path-elapsed {
  stroke-width: 5px;
  stroke: #5B616B;
}

.base-timer__path-remaining {
  stroke-width: 5px;
  stroke-linecap: round;
  transform: rotate(90deg);
  transform-origin: center;
  transition: 1s linear all;
  fill-rule: nonzero;
  stroke: currentColor;
  color: #3861FB;
}

.base-timer__label {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
}


/*
 채팅 영역
*/
.simple-box {
  width: 17%;
  height: 100%;
  position: fixed;
}

.chat-header {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.chat-title {
  font-weight: bold;
  color: #fff;
}

.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 700px;
  border-radius: 8px;

  border: 1px solid #31353b; /* 회색 테두리 추가 */
  border-radius: 8px;        /* 둥글게 처리 (이미 있으시면 생략 가능) */
  background-color: #1e1e1e; /* 배경색 추가하면 테두리가 더 잘 보입니다 */
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-body::-webkit-scrollbar {
  width: 3px;              /* 스크롤바 너비 */
}

.chat-body::-webkit-scrollbar-track {
  background: #1e293b;     /* 스크롤 트랙 배경 */
  border-radius: 4px;
}

.chat-body::-webkit-scrollbar-thumb {
  background-color: #5b7dff; /* 스크롤바 색상 */
  border-radius: 4px;
  border: 1px solid #1e293b; /* 트랙과 자연스럽게 연결되도록 */
}

/* 입력 영역은 항상 아래 */
.chat-input-area {
  display: flex;
  padding: 10px;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #f8f8f8;
}

.chat-username {
  color : #999;
}

.level-badge{
  margin-right: 10px;
}

.chat-coin-logo {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.chat-message-for-coin .coin-alert-box {
  color: #fff;
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  max-width: 98%;
  word-break: keep-all;
}

.coin-rocketing {
  background-color: #3d5f3d;
}

.coin-crashing {
  background-color: #6b2c2c;
}

.coin-chat-text {
  display: flex;
  align-items: center;
  gap: 2px;
}

.coin-chat-time {
  display: block;
  font-size: 12px;
  color: #ccc;
  margin-top: 4px;
}


.chat-message-for-coin .chat-coin-logo {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}


.chat-text {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  max-width: 80%;
  word-break: break-word;
}




.chat-input-area input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #5B616B;
  border-radius: 8px;
  outline: none;
}

.chat-input-area button {
  margin-left: 8px;
  padding: 10px 16px;
  font-size: 14px;
  background-color: #5679E3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Pad & Mobile */
@media screen and (max-width:1200px) {}

/* Pad */
@media screen and (min-width: 768px) and (max-width:1200px) {
  .header__gnb {
    gap: 24px;
  }
}

/* Mobile */
@media screen and (max-width:767px) {
  .main {
    padding-top: 56px;
  }

  .main02 {
    padding-top: 56px;
    flex-direction: column;
    overflow: scroll;
  }

  #wrap { 
    padding-bottom: 58px;
  }

  .container {
    padding: 0 16px;
    padding-bottom: 76px;
  }

  .container_custom_01 {
    padding: 0 12px 76px;
  }

  .container_custom_02 {
    padding: 0 8px 76px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .simple-box {
    border: 1px solid #5B616B;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    min-width: 300px;
    min-height: 450px;
    position: relative;
  }

  .chat-input-area {
    display: flex;
    padding: 8px;
  }

  .chat-input-area input {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #5B616B;
    border-radius: 8px;
    outline: none;
  }

  .chat-input-area button {
    margin-left: 8px;
    padding: 8px 14px;
    font-size: 14px;
    background-color: #5679E3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }




  .header {
    height: 56px;
  }

  .header__inner {
    padding: 0 16px;
  }

  .header__gnb nav.gnb {
    display: none;
  }

  .logo {
    width: 90px;
    height: 28px;
  }

  .header__user .header_lang {
    display: none;
  }

  .header__user-info {
    display: none;
  }

  .header__btns {
    display: none;
  }

  .btn_mo_menu {
    display: inline-block;
  }

  .mo_sidebar {
    /* display: inline-block; */
    width: 100%;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 102;
    background-color: rgb(13, 20, 33, 0.8);
    backdrop-filter: blur(15px);
  }

  .sidebar__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
  }

  .sidebar__header .btn_sidebar_close {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url(../_img/icon/icon_sidebar_close.svg) no-repeat center center / contain;
  }

  .sidebar__gnb {
    padding: 56px 20px;
  }

  .sidebar__gnb ul li:not(:last-child) {
    margin-bottom: 24px;
  }

  .sidebar__gnb ul li a {
    display: inline-block;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: 500;
  }

  .mo_sidebar .popup__user-info {
    background-color: #222531;
    padding: 16px;
    margin: 20px;
    border-radius: 8px;
    margin-bottom: 0px;
  }

  .sidebar__btns {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .sidebar__btns .btn {
    flex: 1;
  }

  .mo_sidebar .header_lang {
    padding: 20px 16px;
  }

  .footer {
    bottom: -58px;
    height: 58px;
  }

  .footer__inner p {
    font-size: 13px;
  }
}







@keyframes fadeFlash {
  0%   { opacity: 0.5; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

#up_coin_target .ranking__item.ranking-flash {
  background-color: #014421;
  transition: background-color 0.5s ease;
}

#down_coin_target .ranking__item.ranking-flash {
  background-color: #5c1f1f;
  transition: background-color 0.5s ease;
}

.status_up_coin {
  background-color: #014421 !important;
  transition: background-color 0.5s ease;
}

.status_down_coin {
  background-color: #5c1f1f !important;
  transition: background-color 0.5s ease;
}



.dex_wrap {
  position: relative;
  display: inline-block;
}

.dex_item {
  cursor: pointer;
}

.dex_sponsored {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 10;
  background: #111;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dex_sponsored h5 {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 6px;
}

.btn_sponsored {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #0cc0df;
  text-decoration: none;
  padding: 6px 8px;
  border: 1px solid #0cc0df;
  border-radius: 4px;
  background: rgba(12, 192, 223, 0.1);
}

.btn_sponsored:hover {
  background: rgba(12, 192, 223, 0.2);
}