/* 소곤점방 공통 규칙 (2026-11-22 디자인 전수 점검 뒤 만듦)
   index.html · rest.html · privacy.html · terms.html이 맨 먼저 불러오고, account.js 창도 이 값만 써요.
   색·모서리·그림자·버튼·글자 크기를 여기서만 정해요. 페이지 안에서 값을 새로 적지 말고 var(--…)를 써 주세요. */
:root{
  color-scheme:dark;
  /* 밤하늘 바탕 */
  --night:#07061A; --ink:#110E26; --ink2:#1B1838; --ink3:#241F48;
  --line:#3A3466; --lineSoft:rgba(58,52,102,.7);
  --field:#0F0C24;               /* 입력칸 바탕(자동완성 덮개도 이 색) */
  --fieldLine:#77709F;           /* 입력칸·칩 테두리: 바탕 대비 3:1 이상 */
  /* 글자 */
  --text:#F3EEE4; --muted:#C2BBDA; --dim:#8E87AE;
  /* 포인트: 금박이 주인공, 복숭아는 마음 이야기방 표시색, 라벤더는 꿈·별 */
  --gold:#F2C879; --gold2:#FFE2A6; --goldDeep:#E6AE62;
  --peach:#F4B39C; --lav:#B9A8F0;
  --paper:#F4EAD3; --paperInk:#2B2340; --paperDim:#6A5A44;
  --onGold:#1B1430; --onPeach:#2A1626;
  /* 상태: 형광 초록 대신 바랜 색 */
  --ok:#A9D9B5; --err:#F29484; --live:#FFE2A6;

  /* 금박 실선 3단계 */
  --hair:rgba(242,200,121,.18);  /* 구분선, 쉬는 테두리 */
  --hair2:rgba(242,200,121,.4);  /* 버튼·칩·창 테두리 */
  --hair3:rgba(255,226,166,.7);  /* 손이 닿았을 때 */

  /* 면 */
  --glass:rgba(13,10,34,.5); --glassHi:rgba(242,200,121,.12);
  --sheet:linear-gradient(180deg,#1B1838,#110E26);

  /* 모서리 3단계 + 알약 */
  --r-s:12px; --r-m:18px; --r-l:24px; --r-pill:999px;

  /* 그림자 2단계 */
  --lip:inset 0 1px 0 rgba(255,240,210,.09);
  --sh1:var(--lip),0 8px 22px -10px rgba(3,2,14,.55);
  --sh2:var(--lip),0 30px 80px -20px rgba(3,2,14,.7);

  /* 채움 */
  --goldFill:linear-gradient(180deg,#FFE9B8 0%,#F7D08A 48%,#E6AE62 100%);
  --goldFillHi:linear-gradient(180deg,#FFF2D2 0%,#FCDC9F 48%,#EFBC72 100%);
  --goldLift:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(150,92,24,.28),0 10px 26px -10px rgba(242,186,96,.65);
  --peachFill:linear-gradient(180deg,#FFD9C8 0%,#F6B8A0 55%,#EAA088 100%);
  --peachLift:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -1px 0 rgba(150,70,50,.22),0 10px 24px -10px rgba(244,160,130,.7);

  /* 글꼴 */
  --serif:'Gowun Batang',serif; --sans:'Gowun Dodum',sans-serif; --mono:'Space Mono','Gowun Dodum',monospace;
  --ease:cubic-bezier(.22,1,.36,1);

  /* 글자 크기 단계표 (7단계 + 특수 2). 한글은 12px보다 작게 쓰지 않아요. */
  --fs-display:clamp(48px,6.4vw + 26px,112px); /* 표지: 첫 화면 이름, 쉼터 h1, 푸터 이름 */
  --fs-h1:clamp(26px,1.8vw + 19px,44px);        /* 섹션 제목 */
  --fs-h2:clamp(20px,.45vw + 18.25px,24px);     /* 창 제목, 카드 제목 */
  --fs-lead:clamp(16px,.11vw + 15.55px,17px);   /* 하람의 말, 대화 말풍선, 풀이 본문 */
  --fs-body:15px;                               /* 일반 문장, 버튼 */
  --fs-sm:13px;                                 /* 칸 이름, 알약·칩·탭, 안내 문장 */
  --fs-xs:12px;                                 /* 도움말·오류, 날짜, 법적 고지, 배지 */
  --fs-label:11px;                              /* Space Mono 대문자 머리표 */
  --fs-input:16px;                              /* 모든 입력칸(아이폰 확대 막기) */

  /* 버튼 높이 */
  --btnH:48px; --btnHs:36px;
}

/* 스크롤바: 크롬·엣지·사파리는 webkit 규칙(화살표 없음), 파이어폭스만 표준 속성 */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-button{display:none;width:0;height:0}
::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(242,200,121,.28);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background-color:rgba(242,200,121,.5)}
@supports not selector(::-webkit-scrollbar){html,*{scrollbar-width:thin;scrollbar-color:rgba(242,200,121,.32) transparent}}

/* 운영체제 기본 모양 덮기 */
::selection{background:rgba(242,200,121,.35);color:#FFF7E6}
::placeholder{color:var(--dim);opacity:1}
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,textarea:-webkit-autofill,select:-webkit-autofill{
  -webkit-text-fill-color:var(--text);caret-color:var(--text);
  -webkit-box-shadow:0 0 0 1000px var(--field) inset;box-shadow:0 0 0 1000px var(--field) inset;
  transition:background-color 9999s ease-out 0s}
input::-ms-reveal,input::-ms-clear{display:none}
summary{list-style:none}summary::-webkit-details-marker{display:none}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
