/* 모바일 전용 한마디 — 데스크탑에서 숨김 */
.cv-quote-mobile {
  display: none;
}

/* 모바일 보이스 버튼 — 데스크탑에서 숨김 */
.cv-voice-mobile {
  display: none;
}


/* ── 이미지 페이드인 ─────────────────────── */
@keyframes cvFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cv-fadein {
  animation: cvFadeIn 0.8s ease forwards;
}

/* ── 전신/반신 전환 애니메이션 ──────────── */
@keyframes cvSlideIn {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cv-img-switching {
  animation: cvSlideIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}


/* ── 버튼 영역 ──────────────────────────── */
.cv-view-toggle {
  position: fixed;
  left: 0;
  top: 120px;
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 0 20px;
  box-sizing: border-box;
  pointer-events: auto;
  z-index: 11;
}

/* 반신/전신 버튼 */
.cv-toggle-btn {
  padding: 0;
  font-size: 0.72rem;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
  user-select: none;
}

.cv-toggle-btn:hover {
  color: rgba(255,255,255,0.7);
}

.cv-toggle-btn.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* 목소리 버튼 */
.cv-voice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  backdrop-filter: blur(4px);
}

.cv-voice-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.cv-voice-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

.cv-voice-btn.playing {
  background: rgba(80,180,120,0.2);
  border-color: rgba(80,200,120,0.5);
  color: #7fffa0;
  animation: voicePulse 1.5s ease-in-out infinite;
}

@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(80,200,120,0.3); }
  50%       { box-shadow: 0 0 14px rgba(80,200,120,0.6); }
}


:root {
  --color-bg: #fafaf8;
  --color-surface: #00000000;
  --color-border: #FF991900;
  --color-border-sub: #969696;
  --color-text: #ffffff;
  --color-text-sub: #FF9919;
  --color-accent: #000000;
  --color-accent-light: #969696;
  --color-hover: #f5f1ea;

  --font-title: 'SlowGothic', serif;
  --font-body: 'ChosunIlboMyungjo', sans-serif;

  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);

  --transition: 0.22s ease;
}

/* ── 공통 ─────────────────────────────────── */
.chara-skin * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.chara-skin {
  font-family: var(--font-body);
  color: var(--color-text);
  padding: 0px 0 32px;
  min-height: 200px;
  user-select: none;
  -webkit-user-select: none;
}

.chara-skin a {
  color: inherit;
  text-decoration: none;
}

/* ── 목록 헤더 ──────────────────────────────*/
.chara-list-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}

.chara-list-header h2 {
  display: none; 
}

.chara-write-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.chara-write-wrap .write-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  transition: opacity var(--transition);
}

.chara-write-wrap .write-btn:hover {
  opacity: 0.85;
}

/* ── 게시판 공지사항 영역 ────────────────── */
.chara-board-notice {
  margin-bottom: 24px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.7;
  word-break: keep-all;
}

.chara-board-notice p {
  margin: revert;
  padding: revert;
  text-align: revert;
}

.chara-board-notice img {
  max-width: 100%;
  height: auto;
}

.chara-board-notice a {
  color: var(--color-text-sub);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chara-board-notice a:hover {
  opacity: 0.75;
}

/* ── 카드 그리드 ─────────────────────────── */
.chara-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
  gap: 16px;
}

/* ── 캐릭터 카드 ─────────────────────────── */
.chara-card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/5; /* ★ 카드 세로 길이 — 숫자가 클수록 길어져요 (3/4 → 3/5 → 3/6) */
  box-shadow: var(--shadow);
  background: rgba(0, 0, 0, 0.5); /* ★ 카드 배경색 — png 투명 부분이 이 색으로 채워져요 */
  border: 0px solid #d0ccc6; /* ★ 카드 테두리 */
}

.chara-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%); /* ★ 평소엔 흑백 */
}

.chara-card:hover .chara-card-img {
  transform: scale(1.04);
  filter: grayscale(0%); /* 호버 시 컬러 */
}

.chara-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-accent);
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.chara-card:hover .chara-card-noimg {
  filter: grayscale(0%);
}

/* 호버 오버레이: 평소엔 투명, 호버 시 그라데이션 등장 */
.chara-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 15px 16px;
  background: linear-gradient(to top, rgba(255,255,255,1) 10%, rgba(255,255,255,0) 60%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.chara-card:hover .chara-card-hover {
  opacity: 1;
}

.chara-card-name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
}

.chara-card-name-en {
  font-size: 0.72rem;
  color: var(--color-text-sub);
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 2px;
}

/* ── 글 없을 때 ─────────────────────────── */
.chara-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-sub);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ── 캐릭터 추가 카드 ────────────────────── */
.chara-card-add {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  aspect-ratio: 3/5;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chara-card-add:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.chara-card-add-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chara-card-add-icon {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
}

.chara-card-add-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

.chara-card-add:hover .chara-card-add-icon,
.chara-card-add:hover .chara-card-add-label {
  color: rgba(255, 255, 255, 0.7);
}

/* ── 페이지네이션 ────────────────────────── */
.chara-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.chara-pagination a,
.chara-pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}

.chara-pagination a:hover {
  background: var(--color-hover);
}

.chara-pagination strong {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  font-weight: 600;
}

/* =============================================
   VIEW - 캐릭터 상세 페이지 (2열 레이아웃)
   ============================================= */

.cv-page {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── 전체 레이아웃: 이미지 fixed 고정 + 우측 글 스크롤 ── */
.cv-top {
  position: relative;
  min-height: 100vh;
}

/* 이미지 영역: 뷰포트 왼쪽에 완전 고정 */
.cv-center {
  position: fixed !important;
  left: 0;
  top: 150px;
  width: 55%;
  height: calc(100vh - 170px);
  overflow: visible;  /* 발광 허용 — 반신 하단 클리핑은 JS clip-path로 처리 */
  z-index: 10;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* 토글 버튼: cv-center 밖 독립 fixed 배치 */
.cv-center .cv-view-toggle {
  pointer-events: auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 우측 글 영역 */
.cv-left {
  position: relative;
  margin-left: 58%;
  width: 48%;
  padding-right: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 0;
  user-select: text;
  -webkit-user-select: text;
}

/* 글 영역 배경: 이미지 끝부터 오른쪽 끝까지 자연스럽게 */
.cv-left::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;          /* 이미지(55%) 약간 앞에서 시작 */
  width: 55%;         /* 화면 오른쪽 끝까지 */
  height: 100vh;
  background: linear-gradient(to right,
    rgba(10, 10, 18, 0) 0%,
    rgba(10, 10, 18, 0.75) 18%,
    rgba(10, 10, 18, 0.92) 30%,
    rgba(10, 10, 18, 0.92) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* ── 공통 박스 ──────────────────────────── */
.cv-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* 하단 섹션 박스 (성격/특징 등) —─────────── */
.cv-box-section {
  padding: 40px 44px; /* ★ 하단 섹션 상하좌우 여백 — 여기서 조절 */
}

/* 섹션 제목: 한글 + 영문 + 선 인라인 배치 */
.cv-box-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}

/* 하단 섹션 (성격/특징 등) 제목 크기 */
.cv-box-title-kr {
  font-family: var(--font-title);
  font-size: 1.7rem; /* ★ 하단 섹션 제목 크기 — 여기서 조절 */
  font-weight: 400;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-box-title-en {
  font-size: 0.75rem;
  color: var(--color-border-sub);
  letter-spacing: 0.14em;
  white-space: nowrap;
  flex-shrink: 0;
  padding-bottom: 2px;
}

.cv-box-title-line {
  flex: 1;
  height: 1px;
  background: var(--color-border-sub);
  align-self: center;
  min-width: 20px;
}

.cv-box-content {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--color-text);
}

.cv-box-content p { margin-bottom: 10px; }
.cv-box-content p:last-child { margin-bottom: 0; }


/* ── 기본정보 박스 ──────────────────────── */
.cv-info-name {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 0;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cv-info-category {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.cv-info-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cv-info-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.81rem;
}

.cv-info-label {
  color: var(--color-text-sub);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.cv-info-value {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

/* ── 버튼 ───────────────────────────────── */
.cv-aside-btns {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cv-aside-btns .chara-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.8rem;
}



/* ── 이미지 래퍼 ──────────────────────────────────── */
.cv-img-wrap {
  position: relative;
  border-radius: var(--radius);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  pointer-events: none;
  cursor: default;
  overflow: visible !important;  /* 발광이 잘리지 않도록 */
}

/* 이미지 발광: img 자체에 filter 대신 별도 레이어 */
.cv-img-wrap .cv-fullshot {
  filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.22))
    drop-shadow(0 0 20px rgba(255,255,255,0.12))
    drop-shadow(0 0 40px rgba(255,255,255,0.06));
}


/* 반신: JS가 wrap/img 인라인 스타일 제어 */
.cv-img-wrap.mode-half {
  position: relative;
  overflow: visible;  /* 발광 허용 */
  /* 하단 클리핑은 cv-center의 overflow:hidden이 처리 */
}

/* 전신: cv-center 전체에 이미지 contain */
.cv-img-wrap.mode-full {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cv-img-wrap.mode-full .cv-fullshot {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

/* 이미지 공통 */
.cv-fullshot {
  display: block;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.cv-fullshot-placeholder {
  width: 100%;
  min-height: 500px;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-accent);
}

/* ── 성장 프로필 박스 ───────────────────── */
.cv-box-growth {
  text-align: left;
}

.cv-growth-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

/* 버튼 아이템: 왼쪽 컬러 바 + 텍스트 */
.cv-growth-btn-item {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  text-decoration: none;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.cv-growth-btn-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cv-growth-btn-bar {
  display: block;
  width: 25px; /* ★ 왼쪽 컬러 바 굵기 */
  align-self: stretch;
  background: var(--color-accent);
  flex-shrink: 0;
}

.cv-growth-btn-name {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  flex: 1;
  text-align: right;
}

/* ── SD 이미지 오버레이 ──────────────────── */
.cv-sd-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 42%; /* ★ SD 이미지 크기 — 숫자 키우면 커져요 */
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

/* 한마디: 이미지 우측 상단에 오버레이 */
/* 한마디: 박스 없이 가운데 정렬 */
.cv-quote-area {
  text-align: center;
  padding: 0 0 16px 0;
  margin-top: 0;
}

.cv-catchphrase {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.cv-quote {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.6;
  letter-spacing: 0.04em;
font-style: italic;
text-shadow: 
  0 0 2px rgba(0,0,0,0.8),
  0 0 4px rgba(0,0,0,0.6);
}

.cv-quote-mark {
  font-size: 2rem;
  color: var(--color-text);
  line-height: 1;
  vertical-align: middle;
font-style: italic;
  margin: 0 16px;
}

/* 영문 이름 */
.cv-info-name-en {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  margin-top: 2px;
}

/* 작성폼 선택 라벨 */
.chara-form-optional {
  font-size: 0.7rem;
  color: var(--color-text-sub);
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: 0;
}

/* ── 하단: 모든 섹션 세로 배치 ─────────── */
.cv-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 전체폭 박스 (모든 하단 섹션) */
.cv-box-full {
  width: 100%;
  grid-column: unset;
}

/* ── 작성 가이드 ────────────────────────── */
.chara-write-guide {
  font-size: 0.78rem;
  color: var(--color-text-sub);
  background: var(--color-accent-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 10px;
  line-height: 1.7;
}

.chara-write-guide code {
  background: rgba(160,146,110,0.15);
  color: var(--color-accent);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.85em;
}

/* ── 우측 섹션 목록 ─────────────────────── */
.cv-right-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 우측 섹션 박스는 좌우 패딩 조금 줄임 */
.cv-right-sections .cv-box-section {
  padding: 24px 24px;
}

/* ── 반응형 ─────────────────────────────── */
/* ── 태블릿 (900px 이하) ─────────────────── */
@media (max-width: 900px) {

  /* 모바일 한마디 표시 */
  .cv-quote-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 16px 12px;
    text-align: center;
    gap: 10px;
  }

  /* 모바일 보이스 버튼 표시 */
  .cv-voice-mobile {
    display: flex;
  }

  /* 우측 한마디 숨김 (모바일에서 중복 방지) */
  .cv-left .cv-quote-area {
    display: none;
  }

  /* 이미지: fixed 해제 → 일반 블록 */
  .cv-center {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    overflow: visible !important;
    pointer-events: auto;
  }

  /* 버튼: fixed 해제 */
  .cv-view-toggle {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    flex-direction: row;
    padding: 8px 16px;
    gap: 12px;
  }

  /* 글 영역: 전체 폭 */
  .cv-left {
    margin-left: 0 !important;
    width: 100% !important;
    padding-right: 16px;
    padding-left: 16px;
  }

  /* 그라데이션 오버레이 제거 */
  .cv-left::before {
    display: none;
  }

  /* 모바일 전신: 이미지 전체 보이게, 잘림 없음 */
  .cv-img-wrap.mode-full {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .cv-img-wrap.mode-full .cv-fullshot {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
  }

  /* cv-top: 세로 배치 */
  .cv-top {
    min-height: auto;
  }
}

/* ── 모바일 (480px 이하) ─────────────────── */
@media (max-width: 480px) {

  .cv-page {
    padding: 0;
  }

  /* 480px 이하: 이미지 잘림 없음 */
  .cv-img-wrap.mode-full {
    height: auto !important;
    overflow: visible !important;
  }

  .cv-box {
    padding: 16px;
  }

  .cv-box-section {
    padding: 20px 16px;
  }

  .cv-info-name {
    font-size: 1.6rem;
  }

  .cv-quote {
    font-size: 1.1rem;
  }

  .cv-aside-btns {
    flex-direction: row;
    flex-wrap: wrap;
  }
}



.chara-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: background var(--transition), border-color var(--transition);
}

.chara-btn:hover {
  background: var(--color-hover);
  border-color: var(--color-accent);
  color: #000000;
}

.chara-btn.accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.chara-btn.accent:hover {
  opacity: 0.88;
}

/* =============================================
   WRITE - 글 작성 폼
   ============================================= */

.chara-write {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.chara-write-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.chara-form-row {
  margin-bottom: 20px;
}

.chara-form-row label {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.chara-form-row input[type="text"],
.chara-form-row input[type="password"],
.chara-form-row select,
.chara-form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
  outline: none;
}

.chara-form-row input:focus,
.chara-form-row select:focus,
.chara-form-row textarea:focus {
  border-color: var(--color-accent);
  background: #fff;
}

.chara-form-row textarea {
  resize: vertical;
  min-height: 200px;
  line-height: 1.7;
}

.chara-write-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

/* ── 반응형 ─────────────────────────────── */
@media (max-width: 680px) {
  .chara-view-hero {
    grid-template-columns: 1fr;
  }

  .chara-view-hero-image,
  .chara-view-hero-placeholder {
    min-height: 240px;
    height: 240px;
  }

  .chara-view-hero-info {
    padding: 24px 20px;
  }

  .chara-view-content,
  .chara-view-footer {
    padding: 24px 20px;
  }

  .chara-write {
    padding: 24px 16px;
  }

  .chara-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.chara-skin input::placeholder,
.chara-skin textarea::placeholder {
  color: #c0bbb4;
  opacity: 1;
}



.cv-page {
  position: relative;
  isolation: isolate; /* 중요: blur 레이어 분리 */
}

/* 🔥 배경 블러 + 어둡게 */
.cv-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  backdrop-filter: blur(4px); /* 블러 강도 */
  -webkit-backdrop-filter: blur(4px);

  background: rgba(0, 0, 0, 0.15); /* 어둡기 조절 */
}
.cv-box {
  box-shadow: none;
}


/*애니메이션*/
/* 🔥 인트로 레이어 */
.cv-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 1;
  transition: opacity 0.8s ease;
}

/* 중앙 한마디 */
.cv-intro-quote {
  font-size: 1.8rem;
  color: #fff;
  text-align: center;
  letter-spacing: 0.05em;

  opacity: 0;
  transform: translateY(20px);
  animation: introFade 1s ease forwards;
}

@keyframes introFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 사라질 때 */
.cv-intro.hide {
  opacity: 0;
  pointer-events: none;
}

/* 🔥 본문 숨김 */
.cv-page {
  opacity: 0;
  transition: opacity 1s ease;
}

.cv-page.show {
  opacity: 1;
}