@charset "utf-8";

body {
  background-color: var(--bg);
}
button:hover {
  filter: brightness(0.9);
}
/* 다크모드 */
.dark .mobile-menu,
.dark .tab-link,
.dark .action-btn {
  filter: invert(0);
}
.contents {
  flex: 1;
}
.pc-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(
    0deg,
    var(--bg, #fff) 0%,
    var(--header-bg, #e7f2ff) 100%
  );

  border-bottom: 1px solid var(--boader01, #46494e);
  padding-top: 20px;
}
.dark .pc-header {
  background: linear-gradient(
    0deg,
    var(--bg, #14171e) 0%,
    var(--header-bg, #1a2b53) 100%
  );
}
.header-line01 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.header-line02 {
  display: flex;
  align-items: flex-end;
}
.header-line02 a {
  flex: 1;
  padding: 16px;
  color: var(--text01, #fff);
  text-align: center;
  font-family: Pretendard;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  text-transform: capitalize;
  border-bottom: 3px solid rgba(0, 0, 0, 0);
}
.header-line02 a:hover,
.header-line02 a.is-active {
  border-bottom: 3px solid var(--secondColor, #0073ff);
}
.mobile-header {
  border-bottom: 1px solid var(--boader01, #46494e);
}
.mobile-header-line01 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.mobile-header-logo {
  height: 32px;
}
.mobile-menu {
  width: 32px;
  height: 32px;
  background: url(../image/icon_menu.svg) no-repeat center;
  background-size: contain;
  overflow: hidden;
  text-indent: -9999px;
  filter: invert(1);
}

.turn-style-btn {
  display: flex;
  width: 48px;
  height: 24px;
  padding: 1.5px;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  aspect-ratio: 2/1;
  border-radius: 75px;
  background: var(--blue, #0073ff);
}
.turn-style-btn .box {
  border-radius: 10.5px;
  display: flex;
  width: 21px;
  height: 21px;
  padding: 4.5px;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: url(../image/icon_white_mode.svg) no-repeat center;
  background-size: 12px;
  background-color: #fff;
  transform: translateX(24px);
  transition: transform 0.3s;
}
.dark .turn-style-btn {
  display: flex;
  width: 48px;
  height: 24px;
  padding: 1.5px;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  aspect-ratio: 2/1;
  border-radius: 75px;
  border: 0.75px solid var(--boader01, #46494e);
  background: linear-gradient(90deg, #1e1e1e 0%, #1a2b53 100%);
}
.dark .turn-style-btn .box {
  border-radius: 10.5px;
  display: flex;
  width: 21px;
  height: 21px;
  padding: 4.5px;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: url(../image/icon_dark_mode.svg) no-repeat center;
  background-size: 12px;
  background-color: #fff;
  transform: translateX(0);
}
.mobile-header-line02 {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  width: calc(100% + 16px);
  padding-right: 16px;
}
.mobile-header-line02 a {
  color: var(--text01, #fff);
  text-align: center;
  font-family: Pretendard;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  height: 42px;
  display: flex;
  align-items: center;
}
.mobile-header {
  display: none;
}
footer {
  border-top: 1px solid var(--boader01, #46494e);
  background: var(--bg04, #1c1e23);
  padding: 40px;
}
footer p {
  color: var(--text01, #fff);
  text-align: center;
  font-family: Pretendard;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%; /* 16.9px */
  text-transform: capitalize;
}
section {
  padding-top: calc(163px + 24px);
}
.side-bar {
  width: 382px;
  padding-bottom: 40px;
}

section > .container > .row {
  display: flex;
  gap: 24px;
}

/* 모바일 기기에서 flex 해제 */
@media screen and (max-width: 767px) {
  section > .container > .row {
    display: block; /* 또는 display: unset; 필요에 따라 변경 */
    gap: 0;         /* block 레이아웃에서는 gap 의미 없으므로 초기화 */
  }
}

.nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.nav-wrap > * {
  width: 100%;
}
.login-wrap {
  border-radius: 8px;
  border: 1px solid var(--boader01, #46494e);
  background: var(--bg04, #1c1e23);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-input-wrap {
  border-radius: 8px;
  border: 1px solid var(--boader01, #46494e);
  background: var(--bg04, #1c1e23);
  position: relative;
}
.login-input-wrap.id::before {
  left: 12px;
  top: 12px;
  content: "";
  display: block;
  position: absolute;
  width: 24px;
  height: 24px;
  background: url(../image/icon_user.svg) no-repeat center;
  background-size: 24px;
}
.login-input-wrap.pw::before {
  left: 12px;
  top: 12px;
  content: "";
  display: block;
  position: absolute;
  width: 24px;
  height: 24px;
  background: url(../image/icon_password.svg) no-repeat center;
  background-size: 24px;
}
.login-input-wrap input {
  padding: 14.5px 14.5px 14.5px 44px;
  width: 100%;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: none;
  color: var(--text01);
  background: none;
  border: none;
}
.login-input-wrap input::placeholder {
  color: var(--text03, #46494e);
}
.login-btn {
  border-radius: 8px;
  background: var(--primaryColor, #0015df);
  color: var(--text04, #fff);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  padding: 14px;
}
.login-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
}
.login-bottom div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.login-bottom div .line {
  width: 1px;
  height: 10px;
  background: var(--boader01, #46494e);
}
.login-bottom a {
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
}
.login-complete-wrapper {
  border-radius: 8px;
  border: 1px solid var(--boader01, #46494e);
  background: var(--bg04, #1c1e23);
  padding: 24px;
  height: 231px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}
.login-complete-wrapper > div {
  width: 100%;
}
.login-user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-rank-icon {
  width: 32px;
  height: 32px;
  aspect-ratio: 1/1;
  border-radius: 4px;
}
.user-nickname {
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 28px */
  text-transform: capitalize;
}
.user-stats-list {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.user-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-label {
  color: var(--text02, #909193);

  /* font-16-M */
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 22.4px */
  text-transform: capitalize;
}
.stat-value {
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 22.4px */
  text-transform: capitalize;
}
.user-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.action-btn-container {
width: 48px;
padding: 4px 0;
flex-shrink: 0;
border-radius: 8px;
background: var(--bg04Inner, #2e3035);
position: relative;
display: flex;
align-items: center;
justify-content: center;
}

.action-btn {
width: 100%;
height: 100%;
flex-shrink: 0;
aspect-ratio: 1/1;
color: #fff;
font-size: 12px;
display: flex;
align-items: flex-end;
justify-content: center;
overflow: hidden;
filter: invert(1);
}

.notification-count {
  color: #fff;
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--secondColor, #0073ff);
  position: absolute;
  top: -4px;
  right: -4px;
}
.message-btn {
  background: url(../image/icon_message.svg) no-repeat top;
  background-size: 28px;
}
.alert-btn {
  background: url(../image/icon_alert.svg) no-repeat top;
  background-size: 28px;
}
.mypage-btn {
  background: url(../image/icon_mypage.svg) no-repeat top;
  background-size: 28px;
}
.attendance-btn {
  background: url(../image/icon_attendance.svg) no-repeat top;
  background-size: 28px;
}
.logout-btn {
  background: url(../image/icon_logout.svg) no-repeat top;
  background-size: 28px;
}

.nav-tab {
  border-radius: 8px;
  background: var(--bg02, #222428);
}

.tab-title-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--boader01, #46494e);
  gap: 24px;
  padding: 0 16px;
}
.tab-btn {
  padding: 16px 0px;
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: capitalize;
  opacity: 0.5;
}
.tab-btn.is-active {
  opacity: 1;
  color: var(--secondColor, #0073ff);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  border-bottom: 2px solid var(--secondColor, #0073ff);
}
.tab-link {
  position: absolute;
  top: 14px;
  right: 14px;
  background: url(../image/icon_plus.svg) no-repeat center;
  background-size: 24px;
  width: 24px;
  height: 24px;
  text-indent: -9999px;
  overflow: hidden;
  filter: invert(1);
}
.nav-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-link {
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nav-rank-link {
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-rank-text {
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
  opacity: 0.5;
  width: 24px;
  text-align: center;
}
.nav-rank-link {
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
}
.sonic-rank {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}
.nav-tab-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-tab-play {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-tab-play button {
  flex: 1;
  aspect-ratio: 1/1;
  border-radius: 8px;
  background: var(--bg03, #2c2f35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-tab-play button.is-active {
  border: 1px solid var(--secondColor, #0073ff);
}
.nav-tab-play button img {
  width: 42px;
  height: 32px;
  flex-shrink: 0;
  filter: invert(1);
}
.dark .nav-tab-play button img {
  filter: invert(0);
}
.table01 th > div {
  border-bottom: 1px solid var(--boader01, #46494e);
  background: var(--bg03, #2c2f35);
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 4px;
  justify-content: center;
}
.table01 td > div {
  border-bottom: 1px solid var(--boader01, #46494e);
  background: var(--bg02, #222428);
  height: 44px;
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  padding: 4px;
  justify-content: center;
  gap: 4px;
}
.table01 tr:last-child td > div {
  border-bottom: none;
}
.table01 th > div.flex-left,
.table01 td > div.flex-left {
  justify-content: flex-start;
}
.nav-btn {
  display: flex;
  padding: 20px 16px;
  align-items: center;
  align-self: stretch;
  position: relative;
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  gap: 8px;
  border-radius: 10px;
  background: var(--bg02, #222428);
}
.nav-btn::after {
  content: "";
  display: block;
  position: absolute;
  right: 16px;
  top: 24px;
  width: 16px;
  height: 16px;
  background: url(../image/icon_down_arrow.svg) no-repeat center;
  transform: rotate(270deg);
  background-size: 16px;
}

.modal-wrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal {
  border-radius: 8px;
  background: var(--bg, #14171e);
  box-shadow: 0px 4px 60px 0px rgba(0, 0, 0, 0.1);
  width: calc(100% - 32px);
  max-width: 600px;
}

.modal-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--boader01, #46494e);

  padding: 16px 16px 16px 24px;
}
.modal-contents {
  padding: 24px;
}
.modal-title h3 {
  color: var(--text01, #fff);
  font-family: Pretendard;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
}
.modal-test-wrap {
  position: fixed;
  bottom: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #000;
  padding: 16px;
  border-radius: 24px 24px 0 0;
  gap: 24px;
  display: none;
  align-items: center;
}
.modal-test-wrap button {
  border-radius: 100px;
  background: #fff;
  font-size: 16px;
  padding: 12px 16px;
  font-weight: bold;
}
.modal-wrap.alert .modal-title {
  padding: 14.5px;
  justify-content: center;
}
.modal-wrap.alert .modal {
  max-width: 400px;
}
.modal-wrap.alert .modal-title h3 {
  font-size: 16px;
}
.modal-wrap.alert .modal-contents {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-wrap.alert .modal-contents p {
  color: var(--text01, #fff);
  text-align: center;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 22.4px */
  text-transform: capitalize;
}
.bottom-close-btn {
  display: flex;
  margin-top: 24px;
  width: 80px;
  padding: 10px 14px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  color: var(--text04, #fff);
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 16.8px */
  text-transform: capitalize;
  border-radius: 6px;
  background: var(--secondColor, #0073ff);
}
.bottom-menu {
  display: none;
  z-index: 99;
}
@keyframes colorChange {
  0% {
    color: #ffff00;
  }
  50% {
    color: #ffffff;
  }
  100% {
    color: #ffff00;
  }
}
@keyframes colorChange2 {
  0% {
    color: #0015df;
  }
  50% {
    color: #afb7ff;
  }
  100% {
    color: #0015df;
  }
}
.point {
  animation: colorChange2 1s ease-in-out infinite;
}
.dark .point {
  animation: colorChange 1s ease-in-out infinite;
}
@media all and (max-width: 1023px) {
  .pc-header {
    display: none;
  }
  .mobile-header {
    display: block;
    position: fixed;
    width: 100%;
    z-index: 99;
    background: var(--bg, #14171e);
  }
  section {
    padding-top: calc(103px + 14px);
  }
  .contents {
    width: 100%;
  }
  .modal-title {
    padding: 8px 16px;
  }
  .side-bar {
    width: 100%;
  }
  .header-line02 a {
    font-size: 16px;
  }
  .login-input-wrap input {
    font-size: 14px;
  }
  .login-btn {
    font-size: 14px;
  }
  .login-bottom a {
    font-size: 12px;
  }
  .tab-btn {
    font-size: 14px;
  }
  .tab-btn.is-active {
    font-size: 14px;
  }
  .nav-link {
    font-size: 13px;
  }
  .nav-rank-link {
    font-size: 13px;
  }
  .table01 td > div {
    font-size: 14px;
  }
  .nav-btn {
    font-size: 14px;
  }
  .modal-title h3 {
    font-size: 16px;
  }
  footer p {
    font-size: 11px;
  }
  .modal {
    border: 1px solid var(--boader01, #46494e);
  }
  .modal-contents {
    padding: 12px;
  }
  .login-complete-wrapper .turn-style-btn {
    display: none;
  }
  .login-complete-wrapper {
    border: none;
    background: none;
  }
  .modal-test-wrap {
    padding: 8px;
    gap: 4px;
    width: 100%;
    justify-content: center;
  }
  .modal-test-wrap button {
    padding: 4px 12px;
  }
  .modal-test-wrap.type02 {
    bottom: 59px;
  }
  .mobile-header-line02 {
    width: calc(100% + 12px);
    padding-right: 12px;
  }
  .bottom-menu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;

    position: fixed;
    bottom: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: 60px;
    /* border-top: 1px solid var(--boader01, #46494e); */
    /* background: #0016df4b; */
    background: #0e1657;
    border-radius: 10px;
  }
  .bottom-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
    font-family: Pretendard;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
    gap: 3px;
  }
}
@media all and (max-width: 600px) {
  .mobile-header-line02 {
    justify-content: flex-start;
  }
}
