@charset "UTF-8";
@font-face {
  font-family: "NanumGothic";
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumGothic/NanumGothic.eot);
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumGothic/NanumGothic.eot?#iefix) format("embedded-opentype"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumGothic/NanumGothic.woff) format("woff"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumGothic/NanumGothic.ttf) format("truetype");
}
* {
  box-sizing: border-box;
}

a {
  cursor: pointer;
}

/********************************************
  *  공통 메인 구조
  #body, .fix-layout 의 구조를 바꿉니다.
  레이아웃에 이상이 생기면 이 부분을 수정하세요.
********************************************/
#body {
  position: relative;
  height: 100vh !important;
}

#body .fix-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  padding: 0;
}

/********************************************
  *  공통
********************************************/
.material-icons {
  font-size: 1em;
}

.chat-btn {
  padding: 6px 8px 4px;
  backdrop-filter: blur(8px);
  background: var(--main-op-c);
  border-radius: 3px;
  border: 1px solid var(--main-c);
  color: inherit;
  color: var(--main-t);
  line-height: 1;
}
.chat-btn:hover, .chat-btn:active, .chat-btn:focus {
  background: var(--main-c);
}
.chat-btn i {
  font-size: inherit;
}

#chat_menu {
  position: fixed;
  right: 20px;
  top: 20px;
  text-align: right;
}
#chat_menu > label {
  display: inline-block;
  padding: 4px;
  line-height: 0;
  background: var(--main-op-c);
  border-radius: 3px;
  filter: drop-shadow(rgba(0, 0, 0, 0.376) 1px 2px 2px);
  color: var(--main-t);
  opacity: 0.2;
}
#chat_menu > label svg {
  width: 20px;
  height: 20px;
}
#chat_menu > label:hover, #chat_menu > label:has(input:checked) {
  opacity: 1;
}
#chat_menu input[type=checkbox] {
  display: none;
}
#chat_menu > div {
  display: none;
  flex-direction: column;
  margin-top: 2px;
  gap: 1px;
}
#chat_menu > div > * {
  text-align: right;
}
#chat_menu #menu_check:checked + div {
  display: flex;
}

/********************************************
  *  WRITE
********************************************/
#custom_secret + input {
  display: none;
}

#custom_secret:checked + input {
  display: inline;
}

#write_wrap {
  display: flex;
  justify-content: flex-end;
}
#write_wrap input[type=radio] {
  display: none;
}
#write_wrap input[type=number] {
  width: 60px;
}
#write_wrap input[name="wr_sp_content_num[]"] {
  padding: 0 5px;
  width: 36px;
  text-align: center;
}
#write_wrap .content-row .ui-btn {
  padding: 0px 6px;
  margin-bottom: 4px;
}

.hrhastoggle ~ tr {
  display: none;
}

label.label-for-preview {
  width: unset;
  padding: 2px 4px;
  width: 54px;
  text-align: center;
  margin-right: 6px;
}
label.label-for-preview:has(input:checked) {
  background-color: #f0f0f0;
  color: #333;
}

td[data-num] p {
  margin-top: 4px;
}

#chara_preview_box {
  position: fixed;
  top: 20px;
  left: 20px;
}

#chara_preview {
  position: relative;
}
#chara_preview * {
  transition: none;
}
#chara_preview img {
  max-width: unset;
  object-fit: none;
  object-position: top left;
  overflow: visible;
}
#chara_preview img.preview-default__img {
  width: 100%;
}
#chara_preview .preview-exp {
  position: absolute;
}

#toggle_exp ~ tr {
  visibility: hidden;
}

#toggle_exp:checked ~ tr {
  visibility: visible;
}

.write-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.preview-item {
  flex-basis: 100px;
  box-sizing: border-box;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, transparent 0, white 12px);
  background-color: rgba(0, 0, 0, 0.3);
}
.preview-item:hover {
  background: rgba(0, 0, 0, 0);
}
.preview-item p {
  text-align: center;
  background-color: #000;
  color: #fff;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0 4px;
}

.write-btn {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.write-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 4px;
  width: max-content;
  max-width: 300px;
  background: inherit;
  text-align: left;
  line-height: 1.4;
  padding: 4px;
  border-radius: 4px;
  border-bottom-left-radius: 0;
  word-break: keep-all;
  display: none;
}
.write-btn[data-tooltip]:hover::after {
  display: inline-block;
}

table.theme-form {
  z-index: 1;
}

div.btn_confirm {
  text-align: right;
}

.theme-form button + span.frm_info {
  display: inline-block;
}

/********************************************
  *  LIST
********************************************/
#chara_list {
  width: 300px;
  max-height: 100%;
  margin: auto;
  border: 1px solid var(--main-c);
  border-radius: 6px;
  position: relative;
}
#chara_list .list-title {
  background: var(--sub-op-c);
  backdrop-filter: blur(10px);
  color: var(--sub-t);
  padding: 10px;
  padding-bottom: 5px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  line-height: 1.2;
}
#chara_list .list-title .category-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}
#chara_list .list-title .category-box li {
  line-height: 0;
}
#chara_list .list-title .category-box a {
  background: transparent;
  color: var(--sub-t);
  padding: 4px;
  line-height: 1;
  border: 0;
  height: auto;
  border-radius: 4px;
}
#chara_list .list-title .category-box a:hover {
  background: var(--sub-c);
  color: var(--sub-t);
}
#chara_list .list-title .category-box a.point {
  background: var(--main-c);
  color: var(--main-t);
}
#chara_list .list-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 7px;
  overflow-y: overlay;
  scrollbar-gutter: stable both-edges;
  background: var(--main-op-c);
  backdrop-filter: blur(10px);
}
#chara_list .list-box > a.list-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  padding-right: 20px;
  position: relative;
  text-align: center;
  font-size: 16px;
  background: var(--main-c);
  color: var(--main-t);
  border-radius: 3px;
}
#chara_list .list-box > a.list-item::before {
  content: "near_me";
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  color: var(--sub-op-c);
  transition: opacity 0.2s ease-in-out;
  margin-right: 4px;
  opacity: 0;
}
#chara_list .list-box > a.list-item:hover, #chara_list .list-box > a.list-item:active, #chara_list .list-box > a.list-item:focus {
  filter: brightness(120%);
}
#chara_list .list-box > a.list-item:hover::before, #chara_list .list-box > a.list-item:active::before, #chara_list .list-box > a.list-item:focus::before {
  opacity: 1;
}
#chara_list .list-box > a.list-item.secret-item::before {
  content: "lock";
}
#chara_list .list-box > a.list-item.on {
  margin-bottom: 35px;
}
#chara_list .list-box > a.list-item.on .secret-box {
  opacity: 1;
  visibility: visible;
}
#chara_list .list-box .secret-pass {
  background: inherit;
  color: inherit;
  border: 1px solid var(--main-c);
  width: 100%;
}
#chara_list .list-box .secret-btn {
  width: 40px;
  background: var(--sub-c);
  color: var(--sub-t);
  border-radius: 6px;
}
#chara_list .list-box .secret-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: flex;
  gap: 5px;
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
}

.notice-box {
  position: absolute;
  bottom: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 6px;
  max-width: calc(100% + 40px);
  border-radius: 8px;
  background: var(--sub-op-c);
  backdrop-filter: blur(10px);
  color: var(--sub-t);
  transition: all 0.4s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.notice-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--sub-op-c);
  border-top-width: 8px;
}

/********************************************
  *  LIST : is_edit
********************************************/
.edit__btnbox {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

/********************************************
  *  VIEW
********************************************/
#ch_v {
  position: fixed;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#ch_v img {
  -webkit-user-drag: none;
  max-width: unset;
}

#ch_box {
  position: relative;
  width: 100%;
  height: 100%;
}
#ch_box::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 280px;
  background: linear-gradient(to top, #000 0%, #000 100px, transparent 100%);
}
#ch_box .ch-thumb {
  position: absolute;
  bottom: 200px;
  object-fit: contain;
  object-position: center;
  left: 50%;
  transform: translateX(-500px);
}
@media screen and (max-width: 1000px) {
  #ch_box .ch-thumb {
    left: 500px;
    transform: translateX(-500px);
  }
}
#ch_box.is-nar .ch-name, #ch_box.is-nar .ch-thumb {
  display: none;
}
#ch_box .ch-chatbox {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  max-width: 100%;
  height: 260px;
  padding: 24px 40px 20px 20px;
  border-radius: 6px;
  color: #fff;
}
#ch_box .ch-chatbox::before {
  content: "";
  backdrop-filter: blur(8px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--main-c) 200px, var(--main-op-c) 100%);
  border: 1px solid var(--main-c);
  border-radius: 6px;
  z-index: -1;
}
#ch_box .ch-name {
  padding: 8px 100px 8px 12px;
  position: absolute;
  bottom: calc(100% - 10px);
  left: 0;
  background: linear-gradient(to left, transparent, var(--sub-op-c) 20px, var(--sub-c) 30px);
  color: var(--sub-t);
  border-radius: 2px;
  font-size: 18px;
  font-weight: 700;
  border-left: 8px solid var(--sub-op-c);
}
#ch_box .ch-chat {
  height: calc(100% - 50px);
  font-size: 16px;
}
#ch_box .ch-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 20px;
  background: var(--main-op-c);
  border: 1px solid var(--main-c);
  width: 300px;
  max-height: calc(100vh - 360px);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 12px 7px;
  overflow-y: overlay;
  scrollbar-gutter: stable both-edges;
}
#ch_box .ch-notes::-webkit-scrollbar-thumb {
  background-color: var(--sub-op-c);
}
#ch_box .ch-notes::-webkit-scrollbar-track {
  background-color: transparent !important;
}
#ch_box .ch-keyword-wrap {
  position: relative;
}
#ch_box a.ch-keyword-title {
  text-align: center;
  font-size: 16px;
  background: var(--main-c);
  color: var(--main-t);
  padding: 4px;
  padding-right: 20px;
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ch_box a.ch-keyword-title::before {
  content: "label";
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  color: var(--sub-op-c);
  transition: opacity 0.2s ease-in-out;
  margin-right: 4px;
  opacity: 0;
}
#ch_box a.ch-keyword-title:hover, #ch_box a.ch-keyword-title:active, #ch_box a.ch-keyword-title:focus {
  filter: brightness(120%);
}
#ch_box a.ch-keyword-title:hover::before, #ch_box a.ch-keyword-title:active::before, #ch_box a.ch-keyword-title:focus::before {
  opacity: 1;
}
#ch_box a.ch-keyword-title + div.ch-keyword {
  display: none;
}
#ch_box div.ch-keyword {
  position: absolute;
  padding: 2px 4px;
  max-width: 300px;
  border-radius: 8px;
  border-bottom-right-radius: 0;
  backdrop-filter: blur(8px);
  background: var(--sub-op-c);
  color: var(--sub-t);
  transition: all 0.4s cubic-bezier(0.455, 0.03, 0.515, 0.955);
  visibility: hidden;
  opacity: 0;
}
#ch_box div.ch-keyword.tog-on {
  visibility: visible;
  opacity: 1;
}

#choice_box {
  position: absolute;
  width: calc(100% - 320px);
  background: linear-gradient(to right, var(--sub-op-c), transparent);
  bottom: calc(100% + 40px);
  left: 0;
  font-weight: 700;
  backdrop-filter: blur(6px);
  display: none;
}
#choice_box .choice-ans {
  display: block;
  padding: 4px 10px 4px 30px;
  line-height: 2;
  font-size: 16px;
  color: var(--sub-t);
  background-image: linear-gradient(to right, var(--sub-c), var(--sub-op-c));
  background-repeat: no-repeat;
  background-size: 0 100%;
  cursor: pointer;
  position: relative;
}
#choice_box .choice-ans::before {
  content: "label";
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  line-height: 2;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  color: var(--main-c);
  transition: opacity 0.2s ease-in-out;
  margin-right: 4px;
  opacity: 0;
  position: absolute;
  left: 10px;
}
#choice_box .choice-ans:hover, #choice_box .choice-ans:active, #choice_box .choice-ans:focus {
  background-size: 100% 100%;
}
#choice_box .choice-ans:hover::before, #choice_box .choice-ans:active::before, #choice_box .choice-ans:focus::before {
  opacity: 1;
}

.active-choice #choice_box {
  display: block;
}
.active-choice #btn_next, .active-choice .ch-chat {
  pointer-events: none;
}

.ch-buttons #btn_next {
  bottom: 10px;
  right: 10px;
}
.ch-buttons #btn_end, .ch-buttons #btn_list {
  position: absolute;
  bottom: 8px;
  right: 10px;
  padding: 6px 8px 4px;
  backdrop-filter: blur(8px);
  background: var(--sub-op-c);
  border-radius: 3px;
  border: 1px solid var(--sub-c);
  color: inherit;
  color: var(--sub-t);
}
.ch-buttons #btn_end:hover, .ch-buttons #btn_end:active, .ch-buttons #btn_end:focus, .ch-buttons #btn_list:hover, .ch-buttons #btn_list:active, .ch-buttons #btn_list:focus {
  background: var(--sub-c);
}
.ch-buttons label {
  top: 10px;
  right: 10px;
}

#chatYTbgm {
  display: none;
}

/* VIEW > 지난 로그 관련 */
.log-btn {
  position: absolute;
  width: 24px;
  height: 24px;
  overflow: hidden;
  color: var(--sub-op-c);
}
.log-btn:hover, .log-btn:active, .log-btn:focus {
  color: var(--sub-c);
}

#prev_log {
  overflow-y: auto;
  height: 100%;
}
#prev_log::-webkit-scrollbar-thumb {
  background-color: var(--sub-op-c);
}
#prev_log::-webkit-scrollbar-track {
  background-color: transparent !important;
}

#chbx_log {
  display: none;
}

#chbx_log:checked + .log-box {
  display: block;
}

.log-box {
  display: none;
  color: var(--main-t);
  background: linear-gradient(to bottom, var(--main-op-c) 100px, var(--main-c) 90%);
  backdrop-filter: blur(12px);
  position: absolute;
  border: 1px solid var(--main-c);
  border-radius: 6px;
  bottom: calc(100% + 40px);
  left: 0;
  width: calc(100% - 320px);
  height: 500px;
  max-height: calc(100vh - 380px);
  padding: 10px;
}

.log-box {
  font-size: 16px;
  line-height: 1.4;
}
.log-box .log-q {
  font-size: 18px;
  font-weight: 700;
  color: var(--sub-c);
  margin: 20px 0 6px;
  line-height: 1.4;
}
.log-box .log-q svg {
  color: inherit;
  width: 16px;
  position: relative;
  top: 1px;
}
.log-box .log-q .log-desc {
  margin-left: 20px;
  font-size: 14px;
  font-weight: normal;
  color: var(--main-t);
  opacity: 0.7;
}
.log-box .log-say {
  margin-block: 2px;
}
.log-box .log-nar {
  position: relative;
  margin-left: 40px;
  margin-block: 8px;
}
.log-box .log-nar::before {
  position: absolute;
  right: 100%;
  content: "keyboard_arrow_right";
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  color: var(--sub-op-c);
  font-size: 20px;
}
.log-box .log-choice {
  background: linear-gradient(to right, transparent, var(--sub-c), transparent);
  margin-block: 8px;
  padding: 2px 0;
  color: var(--sub-t);
  font-weight: 900;
  text-align: center;
}

/* VIEW > 지난 로그 관련 끝 */
#face_box, #effect_box {
  position: absolute;
  display: none;
  transform-origin: top left;
}

.ch-addbox {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

#add_img, #add_saytip {
  position: absolute;
  opacity: 0;
}

#add_img.active-img {
  opacity: 1;
  transition: opacity 0.1s linear;
}

#add_saytip {
  font-family: "NanumGothic";
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  text-shadow: 1px 0 #000, 0 1px #000, -1px 0 #000, 0 -1px #000, 0 0 4px #000;
}
#add_saytip.active-saytip {
  display: block;
  animation-name: active-saytip;
  animation-duration: 3600ms;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: both;
}

@keyframes active-saytip {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.edit-mode-item {
  padding: 6px 8px 4px;
  backdrop-filter: blur(8px);
  background: var(--sub-op-c);
  border-radius: 3px;
  border: 1px solid var(--sub-c);
  color: inherit;
  display: none;
  position: absolute;
  right: 0;
  color: var(--sub-t);
  line-height: 0;
  height: 100%;
  transform: translateY(-100%);
}
.edit-mode-item:hover, .edit-mode-item:active, .edit-mode-item:focus {
  background: var(--sub-c);
}

.edit--mode .edit-mode-item {
  display: inline;
}