@charset "utf-8";

.board-notice	{ width: 264px; padding: 10px; margin: 0 auto; text-align: center; box-sizing: border-box; }


.avocado-list	{
	display: block;
	position: relative;
	margin: 0;
	padding: 0;
}

.avocado-list li	{
	display: block;
	position: relative; 
	padding: 5px 0; 
	margin-bottom:1px;
} 
.avocado-list li.bo_notice	{  }
.avocado-list li.no-data	{ 
	text-align: center;
	line-height: 200px;
}
.avocado-list li .td_chk { position:absolute; padding-left:5px;line-height: 35px;z-index:10;}
.avocado-list li a	{
	display: block;
	position: relative;
	padding: 0px 200px 0px 120px;
	line-height: 35px;
}
.avocado-list li strong	{
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.avocado-list li strong .highlight {font-weight:normal;}
.avocado-list li strong .cnt_cmt:before	{ content: "( "; }
.avocado-list li strong .cnt_cmt:after	{ content: " )"; }

.avocado-list li .ico-cate	{
	display: block;
	position: absolute;
	top: 0; 
	left: 20px;
	width: 100px;
	text-align: center;
}
.avocado-list li .name	{
	display: block;
	position: absolute;
	top: 0;
	right: 100px;
	width: 100px;
	text-align: center;
	opacity: .6;
	font-size: 11px;
}
.avocado-list li .date	{
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 100px;
	text-align: center;
	opacity: .6;
	font-size: 11px;
}
.avocado-list li .hit	{
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 50px;
	text-align: center;
	opacity: .6;
	font-size: 11px;
}



.bo_fx {position:relative;padding:20px 0;}
.bo_fx .chk_all{ position:absolute;left:5px;top:20px;}



.board-category	{
	display: block;
	position: relative;
	margin-bottom: 10px; 
	
}
.board-category select	{

}

@media all and (max-width: 640px) {
#bo_v_con * {max-width:100%;}

	.board-category	{
		display: block;
		width: 100%;
		box-sizing: border-box;
		padding: 0 10px;
	}
	.board-category select	{
		width: 100%;
	}

	.bo_fx	{
		display: block;
		width: 100%;
		box-sizing: border-box;
		padding: 20px 10px !important;
	}
	.bo_fx a	{
		display: block;
		width: 100%;
	}
}



.board-write	{  padding: 0 10px; }

.board-write h3	{
	font-size: 26px;
	text-align: center;
	padding: 30px 0 20px;
} 
.board-write .write-notice	{
	padding: 10px;
	font-size: 11px;
}
.board-write > dl {position:relative;}
.board-write > dl > dt { width:70px;position:absolute;line-height:32px;text-align:center; }
.board-write > dl > dd { width:100%;margin-left:0;padding-left:80px;box-sizing:border-box;line-height:32px;}
.board-write input.frm_input.full	{ width: 100%; display:block;margin:1px 0;}




.board-viewer.theme-box	{
	display: block;
	position: relative;
	padding: 20px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
	backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

.board-viewer .subject	{
	text-align: center;
}
.board-viewer .subject em	{
	display: block;
	position: relative;
	font-size: 14px;
	line-height: 1.2em;
	padding-bottom: 10px;
}
.board-viewer .subject strong	{
	display: block;
	position: relative;
	font-size: 22px;
	line-height: 1.2em;
}

.board-viewer .info	{
	margin-top: 20px;
	padding: 8px 10px;
	text-align: center;
}
.board-viewer .info span	{ display: inline-block; opacity: .8; }
.board-viewer .info span + span:before	{
	content: "";
	display: inline-block;
	width: 1px;
	height: 8px;
	vertical-align: middle;
	margin: 0 10px;
}

.board-viewer .contents	{
	display: block;
	position: relative;
	margin: 20px 0;
	padding: 40px 15px;
	border-left-width: 0;
	border-right-width: 0;
}






#bo_v_bot	{ padding: 20px 0; overflow: hidden; }
.bo_v_nb	{ float: left; }
.bo_v_com	{ float: right; }


.board-comment-list			{ position: relative; }
.board-comment-list .co-line	{
	display: block;
	position: relative;
	clear: both;
	width: 100%;
	height: 1px;
	margin: 0;
	padding: 0;
	border: none;
}
.board-comment-list .item	{
	position: relative;
	padding: 10px 10px 10px 100px;
}
.board-comment-list .co-name	{
	position: absolute;
	top: 0px;
	left: 0;
	bottom: 0;
	width: 90px;
	padding: 10px 10px;
	box-sizing: border-box;
}
.board-comment-list .co-info {
	display: block;
	text-align: right;
	padding-top: 15px;
	font-size: 11px;
	opacity: .7;
}
.board-comment-list .co-info span	{ display: inline-block; opacity: .8; }
.board-comment-list .co-info span + span:before	{
	content: "";
	display: inline-block;
	width: 1px;
	height: 8px;
	vertical-align: middle;
	margin: 0 10px;
}

.board-comment-list .item.reply	{ border-left: 5px solid rgba(255, 255, 255, .1); }
.board-comment-list .item.reply .co-name	{
	background: none;
}


.board-comment-list + .board-comment-write	{
	margin-top: 20px;
}

.board-comment-form	{ 
	position: relative;
	padding-right: 80px;
}
.board-comment-form .btn_confirm	{
	position: absolute;
	top: 0;
	right: 0;
	bottom: 29px;
	width: 80px;
}
.board-comment-form .btn_confirm .ui-btn	{
	width: 100%;
	height: 100%;
}
.board-comment-form p	{
	margin: 0;
	padding: 5px 10px;
}
.board-comment-form textarea	{ display: block; height: 100px; resize: none; border: none; }


@media all and (max-width: 640px) {

	.avocado-list li a	{
		line-height: 1.2em;
		padding: 10px 25px;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	.avocado-list li .ico-cate,
	.avocado-list li .name,
	.avocado-list li .date,
	.avocado-list li .hit	{
		position: relative;
		width: auto;
		left: auto;
		right: auto;
		bottom: auto;
		line-height: 1.2em;
	}

	.avocado-list li .info	{
		display: block;
		text-align: right;
		line-height: 1.0em;
		padding-top: 10px;
	}

	.avocado-list li .ico-cate	{ display: inline; }
	.avocado-list li .ico-cate:before	{ content: "[ "; }
	.avocado-list li .ico-cate:after	{ content: " ]"; }

	.avocado-list li strong	{ display: inline; line-height: 1.2em; }

	.avocado-list li .name,
	.avocado-list li .date,
	.avocado-list li .hit	{ display: inline; padding: 0 5px; }

	.board-comment-list .item	{ padding: 0; }
	.board-comment-list .co-name	{ position: relative; width: auto; padding: 5px 10px; }
	.board-comment-list .co-content	{ padding: 10px; word-break:break-all;}

}
/* ===============================
   1. 스테이지 & 배경
   =============================== */

.char-stage-wrap {
  position: relative;
  margin: 0 auto 20px;
}

.char-stage-inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

body.touch-bg-active {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  background-color: #000;
}


/* ===============================
   2. 캐릭터 컨테이너 & 레이아웃
   =============================== */

.char-main-wrap {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 5;

}

.char-main-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  width: 1200px;
  max-width: 100vw;
  margin: 0 auto;
  overflow: visible;
}

.char-main-inner .char-img {
    display: block;
    height: 900px !important;
    width: auto !important;
    object-fit: contain;
    max-width: 100%;
    pointer-events: auto;
}

.char-main-inner.has-one {
  justify-content: center;
}
.char-main-inner.has-one .char-img-1 {
max-height: 100vh;
  width: 90%;
}

.char-main-inner.has-two .char-img-1,
.char-main-inner.has-two .char-img-2 {
max-height: 110vh;
  width: 80%;
}

/* ===============================
   3. 터치 영역 & 네온 박스
   =============================== */

.char-hotspot {
  position: absolute;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
}

.char-active-box {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 15;
}
.char-active-box.on {
  opacity: 1;
}

.char-active-svg {
  width: 100%;
  height: 100%;
}

.char-active-path {
  fill: transparent;
  stroke: #00eaff;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  filter: drop-shadow(0 0 6px #00eaff) drop-shadow(0 0 12px #00eaff);
}

.char-active-box.on .char-active-path {
  animation: neonDraw 0.45s linear forwards;
}

@keyframes neonDraw {
  0%   { stroke-dashoffset: 400; }
  100% { stroke-dashoffset: 0; }
}


/* ===============================
   4. 말풍선 (대사 바)
   =============================== */

.char-dialog-bar {
  position: absolute;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  max-width: 260px;
  z-index: 20;
  transition: opacity 0.25s ease;
}

.char-dialog-bar.on {
  opacity: 1;
}

.char-dialog-bar.pos-left,
.char-dialog-bar.pos-right {
  text-align: left;
}


/* ===============================
   5. 터치 애니메이션 (캐릭터 효과)
   =============================== */

/* 1) 좌우로 빠르게 파르르 떨기 */
.char-img.anim-shake {
  animation: anim-shake 0.4s ease-in-out;
}

@keyframes anim-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* 2) 위로 살짝 통통 튀기 */
.char-img.anim-bounce {
  animation: anim-bounce 0.5s ease-out;
}

@keyframes anim-bounce {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-8px); }
  40%  { transform: translateY(0); }
  60%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* 3) 깜짝 놀라서 세로로 쭉 늘어났다가 원래 크기로 */
.char-img.anim-zoom {
  animation: anim-zoom 0.45s ease-out;
  transform-origin: center bottom;
}

@keyframes anim-zoom {
  0% {
    transform: scaleY(1) scaleX(1);
  }
  25% {
    transform: scaleY(1.25) scaleX(0.94);
  }
  55% {
    transform: scaleY(0.95) scaleX(1.03);
  }
  100% {
    transform: scaleY(1) scaleX(1);
  }
}

/* sparkle 파티클 */
.sparkle-particle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, #ffffff, #fff6c9);
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
  border-radius: 2px;
  filter: drop-shadow(0 0 4px rgba(255,255,200,0.9));
  animation: sparkle-fly 0.9s ease-out forwards;
}

@keyframes sparkle-fly {
  0% {
    opacity: 0;
    transform: translate(0,0) scale(0.6) rotate(45deg);
  }
  15% {
    opacity: 1;
    transform: translate(0,-4px) scale(1.0) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.35) rotate(45deg);
  }
}


/* ===============================
   6. 에디터(글쓰기)용 영역 표시
   =============================== */

.char-editor-wrap {
  margin: 15px 0;
  padding: 10px;
}

.char-editor-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.char-editor-header strong {
  font-size: 13px;
}

.char-editor-help {
  flex: 1;
  opacity: .8;
}

.char-editor-zone-select label {
  margin-right: 6px;
  font-size: 12px;
}

.char-editor-stage {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  cursor: crosshair;
}

.char-editor-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.char-editor-stage img#char-editor-img {
  object-fit: contain;
  pointer-events: none;
}


.char-editor-zone {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  border-radius: 8px;
}

.char-editor-zone.empty {
  display: none;
}

/* 영역별 색상 */
.char-editor-zone[data-zone="1"] {
  border: 2px dashed rgba(0, 150, 255, 0.9);   /* 파랑 */
  background: rgba(0, 150, 255, 0.15);
}
.char-editor-zone[data-zone="2"] {
  border: 2px dashed rgba(255, 105, 180, 0.9); /* 핑크 */
  background: rgba(255, 105, 180, 0.15);
}
.char-editor-zone[data-zone="3"] {
  border: 2px dashed rgba(144, 238, 144, 0.9); /* 연두 */
  background: rgba(144, 238, 144, 0.15);
}
.char-editor-zone[data-zone="4"] {
  border: 2px dashed rgba(255, 215, 0, 0.9);   /* 골드 */
  background: rgba(255, 215, 0, 0.15);
}
.char-editor-zone[data-zone="5"] {
  border: 2px dashed rgba(186, 85, 211, 0.9);  /* 보라 */
  background: rgba(186, 85, 211, 0.15);
}


/* ===============================
   7. 터치 캐릭터 갤러리형 리스트
   =============================== */

.touch-gallery {
  list-style: none;
  margin: 0 -8px 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.touch-gallery-item {
  position: relative;
  width: 25%;                 /* 4열 */
  padding: 0 8px 16px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .touch-gallery-item { width: 33.333%; }   /* 3열 */
}
@media (max-width: 900px) {
  .touch-gallery-item { width: 50%; }       /* 2열 */
}
@media (max-width: 600px) {
  .touch-gallery-item { width: 100%; }      /* 1열 */
}

.touch-gallery-item > a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.touch-gallery-item > a:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.45);
}

.touch-thumb-box {
  position: relative;
  width: 100%;
  padding-top: 140%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0);
}

.touch-thumb-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
}

.touch-thumb-none {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  background: #222;
}

.touch-char-name {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translate(-50%, 8px);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow:
    0 0 3px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.touch-gallery-item > a:hover .touch-char-name {
  opacity: 1;
  transform: translate(-50%, 0);
}

.touch-meta-subject {
  display: none;
}

.touch-meta {
  font-size: 12px;
}

.touch-meta-cate {
  font-size: 11px;
  opacity: .6;
  margin-bottom: 2px;
}

.touch-meta-info {
  font-size: 11px;
  opacity: .7;
  display: flex;
  justify-content: space-between;
}

.char-main-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.char-main-inner {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  bottom: -50px;
}

.char-main-inner img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

#bo_v_bot {
  display: none;
}

.floating-link-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
}

.floating-link-toggle .toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter: blur(4px);
  transition: 0.2s;
  font-size: 16px;
}

.floating-link-toggle.open .toggle-btn {
  background: rgba(255,255,255,0.95);
  color:#000;
}

.floating-link-toggle .toggle-btn:hover {
  transform: translateY(-1px);
}


.floating-link-toggle .toggle-menu {
  margin-bottom: 8px;
  background: rgba(0,0,0,0);
  padding: 6px;
  min-width: 130px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition:
  max-height 0.25s ease-out,
  opacity 0.25s ease-out,
  transform 0.25s ease-out;
  pointer-events: none;
  align-self: flex-end;
  text-align: left;
}

.floating-link-toggle.open .toggle-menu {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bo_v_ham_list {
  list-style:none;
  margin:0;
  padding:0;
}

.bo_v_ham_list li + li {
  margin-top: 3px;
}

.ham-link {
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px 8px;
  font-size:12px;
  color:#fff;
  text-decoration:none;
  white-space: nowrap;
}

.ham-link:hover {
  background: rgba(255,255,255,0.12);
}

.ham-icon {
  width: 16px;
  text-align:center;
  flex-shrink:0;
  font-size: 13px;
}

.ham-text {
  flex:1;
  text-align:left;
}

.floating-link-toggle .toggle-menu {
  align-self: flex-start;
  text-align: left;
}

.ham-link {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
}

/* ============================
   캐릭터 이미지 모드 (반신 / 전신)
   ============================ */

.char-stage-wrap.char-mode-half .char-main-inner {
}

.char-stage-wrap.char-mode-full .char-main-inner {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
}

.char-stage-wrap.char-mode-full .char-img {
  display: block;
  width: 200%;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
max-height: 93vh;
}

