/* ============================================================
   코믹팬 base — 디자인 토큰 / 리셋 / 아바타
   규칙: 한 줄에 한 선택자
   ============================================================ */
:root{--ink:#0f0f10;--sub:#5d5f66;--faint:#9b9da4;--bg:#fff;--card:#fff;--line:#eceef1;--soft:#f4f5f7;--accent:#ff4d6d;--accent-weak:#fff0f3;--blue:#2e7cf6;--like:#f2365c;--ok:#16a36a;--warn:#f08c00}
html.dark{--ink:#f1f1f3;--sub:#a6a8af;--faint:#6c6e75;--bg:#0b0b0d;--card:#0b0b0d;--line:#222327;--soft:#17181b;--accent:#ff5c7a;--accent-weak:#2a1519;--blue:#5c9bff;--like:#ff4f73;--ok:#3ec98a;--warn:#ffb340}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scrollbar-gutter:stable}   /* 스크롤바 자리를 늘 비워 둠. 긴 페이지 ↔ 짧은 페이지 이동 때 화면이 좌우로 밀리지 않게 */
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,sans-serif;font-size:15px;line-height:1.5;letter-spacing:-0.01em}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:left}
input,textarea,select{font:inherit;color:inherit}
img{display:block;max-width:100%}
/* 저작권 보호: 글자 드래그 선택 · 모바일 길게 눌러 이미지 저장 막기 (입력칸 · 에디터는 선택 가능, cf.js 우클릭 막기와 같이) */
body{-webkit-user-select:none;user-select:none}
input,textarea,select,[contenteditable],[contenteditable] *,[data-copy-ok]{-webkit-user-select:text;user-select:text}
html.cf-staff body{-webkit-user-select:auto;user-select:auto}   /* 운영진은 글자 선택 · 복사 그대로 */
img{-webkit-touch-callout:none;-webkit-user-drag:none}
.num{font-variant-numeric:tabular-nums}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* 아바타 — 이미지 없으면 첫 글자 + 파스텔 */
.av{display:inline-grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:var(--soft);font-size:15px;font-weight:800;color:var(--sub);overflow:hidden;vertical-align:middle}
.av img{width:100%;height:100%;object-fit:cover}
.av.c1{background:#ffe2d6;color:#b04a26}
.av.c2{background:#dceeff;color:#2a5f9e}
.av.c3{background:#e6e1ff;color:#5340a8}
.av.c4{background:#dff5e6;color:#2c7a4a}
.av.c5{background:#fff1c9;color:#8a6510}
.av.c6{background:#ffdbe4;color:#a52d4f}
html.dark .av[class*=" c"]{filter:saturate(.8) brightness(.75)}

/* iOS Safari 는 글자가 16px 보다 작은 입력칸을 누르면 화면을 확대함 → 아이폰·아이패드에서만 16px 이상으로
   (-webkit-touch-callout 은 iOS Safari 에만 있음. PC · 안드로이드 디자인은 그대로) */
@supports (-webkit-touch-callout:none){
input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select{font-size:max(16px,1em) !important}
}
