/* =========================
   Face Page v2 (scoped)
   ========================= */
#point, #point * { box-sizing: border-box; }
#point {
  --main: #55473C;         /* ✅ 메인색 유지 */
  --main2: #3f352d;
  --ink: #1f1f1f;
  --sub: #666;
  --bg: #fafafa;
  --card: #ffffff;
  --line: rgba(20,20,20,0.08);
  --shadow: 0 10px 28px rgba(0,0,0,0.08);
  --shadow2: 0 18px 44px rgba(0,0,0,0.12);
  --r: 14px;
  --r2: 18px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --progress: #6366F1;	/*프로그레스바 색상*/
 
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  width: 100%;
}

/* 배경에 은은한 그라데이션(기존 느낌 해치지 않게) */
#point .pointWrap{
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0px;
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(85,71,60,0.10), transparent 60%),
    radial-gradient(900px 450px at 90% 10%, rgba(85,71,60,0.07), transparent 60%),
    var(--bg);
  position: relative;
}


/* 링크 */
#point a{ color: inherit; text-decoration: none; font-size: 16px; }
#point a:hover{ text-decoration: none; }

/* 상단 진행바(스크롤 반응) */
#point .progress{
  position: sticky;
  top: 0;
  z-index: 50;
  height: 6px;
  background: rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}
#point .progress > i{
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--progress), rgba(99,102,241,0.55));
  border-radius: 999px;
  transition: width 0.12s linear;
}

/* 공통 카드 느낌 */
#point .card{
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* 목차 */
#point .toc{
  padding: 12px;
  margin: 0 0 12px;
}
#point .toc-top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
#point .toc h2{
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.3px;
}
#point .toc .hint{
  font-size: 12px;
  color: #777;
  white-space: nowrap;
}

#point .toc-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
#point .toc a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 10px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  transition:
    transform .18s var(--ease),
    box-shadow .22s var(--ease),
    background .22s var(--ease),
    border-color .22s var(--ease);
}
#point .toc a:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  border-color: rgba(85,71,60,0.35);
  background: rgba(85,71,60,0.06);
}



/* 배지(기존 유지 + 톤업) */
#point .badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid rgba(85,71,60,0.22);
  border-radius: 999px;
  color: var(--main2);
  background: rgba(255,255,255,0.85);
  white-space: nowrap;
}

/* 섹션 */
#point .section{
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--r2);
  padding: 12px;
  margin: 0 0 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transform: translateY(10px);
  opacity: 0;
  transition:
    transform .55s var(--ease),
    opacity .55s var(--ease),
    box-shadow .25s var(--ease),
    border-color .25s var(--ease);
}
#point .section.is-in{
  transform: translateY(0);
  opacity: 1;
}
#point .section:hover{
  box-shadow: var(--shadow2);
  border-color: rgba(85,71,60,0.25);
}
#point .section h3{
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#point .section h3 .num{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--main), #2a2622);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

/* 섹션 내용 그리드 */
#point .sec-grid{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 560px){
  #point .sec-grid{ grid-template-columns: 1fr; }
}

/* 이미지 박스 */
#point .face-box{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--r2);
  overflow: hidden;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}
#point .face-box img{
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform .6s var(--ease);
}

/* hover 확대 */
#point .section:hover .face-box img{ transform: scale(1.08); }

/* 추가: 스크롤로 중앙 근처에 오면(모바일 포함) 확대 */
#point .section.is-focus .face-box img{
  transform: scale(1.10);  /* 모바일에서 보여줄 확대 강도 */
}

@media (hover: none){
  #point .section:hover .face-box img{
    transform: scale(1.02);
  }
}


/* 포인트 리스트 */
#point .kv{ margin: 0; padding: 0; list-style: none; }
#point .kv li{
  padding: 9px 10px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  background: rgba(250,250,250,0.75);
  margin: 0 0 8px;
  font-size: 13px;
  transition: transform .18s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
#point .kv li:hover{
  transform: translateY(-1px);
  border-color: rgba(85,71,60,0.25);
  background: rgba(85,71,60,0.05);
}
#point .kv b{
  display: inline-block;
  width: 86px;
  color: #2b2b2b;
}

/* 노트 */
#point .note{
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  border-left: 3px solid rgba(85,71,60,0.35);
  padding-left: 10px;
}

/* 반응형(요청: 680) */
@media (max-width: 680px){
  #point .pointWrap{ padding: 12px 8px 80px; }
  #point .toc-grid{ grid-template-columns: 1fr; }
}

/* Top 버튼 (기존 버그 수정: hover시 배경/글자색) */
#point .go-top-btn{
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 99999;

  min-width: 148px;
  height: 44px;
  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: linear-gradient(135deg, #1f1f1f, #3a3a3a);
  color: #fff;

  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;

  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  cursor: pointer;
  user-select: none;

  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;

  transition:
    opacity .35s var(--ease),
    transform .35s var(--ease),
    box-shadow .2s var(--ease),
    background .25s var(--ease);
}
#point .go-top-btn.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#point .go-top-btn .arrow{ font-size: 13px; line-height: 1; opacity: .9; }
#point .go-top-btn .label{ white-space: nowrap; }
#point .go-top-btn:hover{
  background: linear-gradient(135deg, var(--main), #2a2622);
  box-shadow: 0 14px 34px rgba(0,0,0,0.38);
  transform: translateY(-2px);
}
#point .go-top-btn:active{
  transform: translateY(0) scale(0.97);
}

/* 모션 줄이기 설정 존중 */
@media (prefers-reduced-motion: reduce){
  #point .section,
  #point .toc a,
  #point .face-box img,
  #point .kv li,
  #point .go-top-btn,
  #point .progress > i{
    transition: none !important;
    transform: none !important;
  }
}



