@charset "UTF-8";
@import url("https://fonts.cdnfonts.com/css/04b03");
@import url("https://cdn.jsdelivr.net/npm/galmuri/dist/galmuri.css");
@font-face {
  font-family: "morris9";
  src: url("../css/fonts/morris9.woff") format("woff"), url("../css/fonts/morris9.ttf") format("truetype");
  font-weight: normal;
}
:root {
  --color-txt: #6b5449;
  --color-txt2:#40455e;
}

/* 스크롤바 트랙 투명 */
*::-webkit-scrollbar-track {
  background: transparent;
}

section#body > .fix-layout {
  box-sizing: border-box;
  padding: 70px 78px;
  width: 954px;
  height: 657px;
  position: relative;
  font-family: "morris9";
}
section#body > .fix-layout .layout-wrap {
  overflow-y: auto;
  height: 100%;
}
section#body > .fix-layout::before {
  content: "";
  background: url("../img/board.png") no-repeat center top;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* 페이지화 */
section#body > .fix-layout div.layout-wrap:has(.page-left) {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 100%;
  gap: 50px;
}

.page-left, .page-right {
  overflow-y: auto;
  position: relative;
}

.left-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 메뉴 */
#exoria_menu {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  position: absolute;
  top: 120px;
  left: -57px;
}
#exoria_menu li:nth-child(3) {
  margin-bottom: 50px;
}
#exoria_menu li:nth-child(5) {
  margin-bottom: 50px;
}

.hover {
  display: none;
}

.hov-a:hover img, .hov-a.active img {
  display: none;
}
.hov-a:hover .hover, .hov-a.active .hover {
  display: inline;
}

/* 메인 */
section#body > .fix-layout div.layout-wrap:has(.main) {
  overflow: visible !important;
}

.main.page-left {
  overflow: visible !important;
}
.main.page-left .schedule {
  background: url("../img/schedule.png") no-repeat center top;
  box-sizing: border-box;
  padding-top: 32px;
  margin-top: 16px;
  width: 375px;
  height: 110px;
}
.main.page-left .newest {
  background: url("../img/newest.png") no-repeat center top;
  box-sizing: border-box;
  padding-top: 32px;
  margin-top: 16px;
  width: 375px;
  height: 193px;
}
.main.page-left .main-content {
  padding: 8px 10px;
  color: #fff;
}
.main.page-left .schedule .scroll-wrap {
  height: 62px;
  overflow-y: auto;
}
.main.page-left .newest .main-content {
  overflow-y: auto;
  height: 150px;
  margin: 6px 6px 6px 0;
  scrollbar-gutter: stable;
  box-sizing: border-box;
}

#one_notice {
  background: url("../img/one_notice.png") no-repeat center top;
  width: 382px;
  height: 27px;
  margin-left: -6px;
  box-sizing: border-box;
  padding: 0 12px 0 30px;
}
#one_notice .flow-wrap {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding-left: 10px;
  line-height: 27px;
  color: #fff;
}
#one_notice span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 20s linear infinite;
}
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

#main_login_box {
  margin-bottom: 0px;
  min-height: 187px;
}

.main.page-right {
  display: grid;
  grid-template-rows: auto 1fr 170px;
  height: 100%;
}
.main.page-right .main-text {
  font-family: "04b03", "Morris9", sans-serif;
  font-size: 18px;
  line-height: 1;
  overflow-y: auto;
  min-height: 0;
  margin-bottom: 30px;
  padding-top: 4px;
  position: relative;
}
.main.page-right .large-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.main.page-right .large-menu::before {
  content: url("../img/tri.png");
  position: absolute;
  top: -24px;
  right: 10px;
}

/* 인벤토리 */
.inventory-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 69px);
  grid-template-rows: 69px;
  padding-bottom: 3px;
}
.inventory-list .no-data {
  grid-column: -1;
}
.inventory-list.grid-5 {
  grid-auto-flow: row;
  grid-template-columns: repeat(5, 72px);
  grid-template-rows: auto;
  overflow-x: visible;
  overflow-y: auto;
}

.inven-item {
  width: 72px;
  height: 72px;
  background: url("../img/shop/itembg_inven.png") no-repeat left top;
  position: relative;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
}
.inven-item a {
  width: 56px;
  height: 56px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inven-item i.count {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* 인벤토리 팝업 */
.inven-popup-viewer {
  padding: 0;
  width: unset;
  height: unset;
  border: none;
}
.inven-popup-viewer .inner-content {
  display: flex;
  gap: 20px;
}

.inven-popup-viewer .inner-content-wrap {
  box-sizing: border-box;
  width: 349px;
  min-height: 138px;
  /* 9-slice border-image */
  border-style: solid;
  border-width: 40px 20px 20px 20px;
  border-image: url("../img/shop/item_info.png") 40 20 20 20 fill;
  border-image-repeat: stretch;
}

.inven-popup-viewer .inven-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.inven-popup-viewer .type-item * {
  font-family: inherit;
}

.inven-popup-viewer .type-item {
  color: #fff;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}
.inven-popup-viewer .type-item .item-name {
  font-family: "Galmuri14", sans-serif;
  line-height: 1;
  display: flex;
  justify-content: space-between;
  position: absolute;
  margin-bottom: 10px;
  bottom: 100%;
  width: 100%;
}
.inven-popup-viewer .type-item .item-name span {
  font-size: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inven-popup-viewer .type-item .item-name sup {
  font-size: 14px;
  flex-shrink: 0;
}
.inven-popup-viewer .type-item .item-con {
  display: grid;
  grid-template-columns: auto 60px;
  gap: 10px;
  padding-top: 4px;
}
.inven-popup-viewer .type-item .item-content {
  font-family: "Galmuri14", sans-serif;
  font-size: 14px;
}
.inven-popup-viewer .type-item a.ui-btn {
  width: unset;
}

/* 커스텀 커서 */
:root{
  --cur-default: url('img/cursor.png') 2 2, auto;
  --cur-pointer: url('img/cursor.png') 2 2, pointer;
  --cur-text:    url('img/cursor.png') 8 8, text;
}
html, body { cursor: var(--cur-default) !important; }
a, button, [role="button"],
input[type="button"], input[type="submit"], input[type="reset"],
label, .btn, .ui-btn, .clickable { cursor: var(--cur-pointer) !important; }
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="url"], textarea, pre, code,
.input, .textfield { cursor: var(--cur-text) !important; }

/* === 아바타/썸네일 중앙 정렬 패치 ====================== */
/* <img>로 들어오는 경우 */
/* #main_login_box .ui-thumb,
.main .ui-thumb {
  width: 156px;      
  height: 156px;     
  display: flex;
  align-items: center;      
  justify-content: center;    
  overflow: hidden;
  line-height: 0;             
}

#main_login_box .ui-thumb img,
.main .ui-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;      
  image-rendering: pixelated;
} */

/* 배경이미지로 넣는 박스일 때 (예: .visual-area) */
.profile-split__left .visual-area {
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

