/* 옵션이 비어 있을 때를 대비한 기본값 */
:root {
  --bg-color: #eceae4;
  --content-bg: #ffffff;
  --content-text: #222222;
  --content-border: #1a1a1a;
  --point-color: #ffffff;
  --cat-text: #222222;
  --cat-border: #f1efe9; /* 카테고리 테두리 (배경색과 같게 두면 테두리 없음) */
  --cat-bg: #f1efe9;

  --content-radius: 14px;
  --deco1-w: 200px;
  --deco2-w: 200px;
  --deco-h: 100px; /* 이미지1·2 세로 길이 고정 */
  --deco-gap: 16px; /* 이미지1과 이미지2 사이 간격 */
  /* ↓ 이미지1·2 위치는 모두 "본문영역"을 기준으로 잽니다 */
  --deco2-bottom: 60px; /* 이미지2 아래끝 ~ 본문 아래끝 (클수록 위) */
  --deco2-right: -140px; /* 이미지1·2 오른끝 ~ 본문 오른끝 (음수면 본문 밖으로 나감) */

  --content-w: 950px; /* ★ 본문영역 가로 폭 고정값 */
  --content-pad-x: 110px; /* ★ 본문 안쪽 좌우 여백 (클수록 제목 박스가 짧아짐) */
  --content-h: 750px; /* ★ 본문영역 세로 높이 고정값 (넘치면 본문 안에서 스크롤) */
  --side-w: 170px; /* 카테고리 영역 너비 */
  --cat-gap: 30px; /* ★ 상위 카테고리 사이 간격 */
  --subcat-gap: 16px; /* ★ 상위 카테고리 ↔ 하위 카테고리 사이 간격 */
  --side-gap: 28px; /* ★ 카테고리 ↔ 본문영역 사이 간격 */
  --home-w-base: 200px; /* ★ 홈 버튼 최소 가로 크기 (꾸미기 값이 더 크면 그쪽을 씁니다) */
  /* 본문 왼쪽에 카테고리(+홈버튼)가 차지하는 폭 — 화면 밀림 계산에 씁니다 */
  --side-space: calc(
    var(--side-gap) +
      max(var(--side-w), calc((var(--side-w) + var(--home-w-base)) / 2))
  );
  --page-pad-y: 30px; /* 창 위·아래 최소 여백 (본문이 화면보다 클 때만 의미 있음) */
  --top-gap: 40px; /* 모바일에서만 쓰는 위쪽 여백 */
  --band-top-h: 60px; /* 본문 위쪽 띠 높이 */
  --band-bot-h: 60px; /* 본문 아래쪽 띠 높이 */
  --band-top-c1: #efe9dd;
  --band-top-c2: #ffffff;
  --band-bot-c1: #ffffff;
  --band-bot-c2: #efe9dd;
  --list-box-bg: transparent; /* 리스트형 박스 배경 */
  --list-line: rgba(0, 0, 0, 0.14); /* 리스트형 박스 테두리 */
  --list-icon: var(--content-text); /* 리스트형 제목 양옆 반짝이 색 */
  --list-spark-size: 12px; /* 반짝이 크기 */
  --list-hover-bg: var(
    --point-color
  ); /* 리스트형 마우스 올렸을 때 배경 = 꾸미기의 '포인트 색상' */
  --list-box-pad: 9px 20px; /* 리스트형 박스 안쪽 여백 */
  --list-gap: 8px; /* 리스트형 줄 사이 간격 */
  --summary-gap: 20px; /* 제목+요약글형 글 사이 간격 */
  --summary-line: rgba(0, 0, 0, 0.14); /* 제목+요약글형 구분선 */
  --cover-img-max: 65%; /* ★ 커버 직접등록 이미지 최대 가로 (본문 폭 대비 %, 또는 600px 처럼 지정) */
  /* 보호글 비밀번호 화면 : 제목 띠 · 확인 버튼 색 = 꾸미기의 '포인트 색상' */
  --post-title-size: 15px; /* 개별 글·보호글 제목 크기 */
  --pw-accent: var(--point-color);
  --pw-accent-text: var(--content-text);
  --paging-gap: 26px; /* 목록 마지막 줄 ~ 페이지 버튼 사이 간격 */
  /* 배너 위젯 */
  --banner-w: 190px;
  --banner-max-h: 300px;
  --banner-right: 22px;
  --banner-bottom: 22px;
  /* 발췌 위젯 열기 버튼 : 배너 바로 왼쪽 (배너가 숨겨지는 좁은 화면에서는 아래 미디어쿼리에서 오른쪽 끝으로) */
  --ecp-btn-right: calc(var(--banner-right) + var(--banner-w) + 10px);
  --banner-head-bg: var(--cat-bg);
  --banner-head-text: var(--cat-text);
  /* 할 일 + 뽀모도로 위젯 (우상단 고정) */
  --tp-w: 210px;
  --tp-top: 22px;
  --tp-right: 22px;
  --tp-head-bg: var(--point-color);
  --tp-head-text: var(--cat-text);
  /* 페이지 버튼 색 : 기본값이 바탕색(--bg-color)과 연동됩니다 */
  --paging-bg: transparent; /* 버튼 안쪽 */
  --paging-line: var(--bg-color); /* 버튼 테두리 */
  --paging-active-bg: var(--bg-color); /* 현재 페이지 버튼 */
  /* 갤러리형·커미션형 썸네일 한 칸 크기 (4열 기준, 가운데 정렬) */
  --gallery-size: 146px;
  --commission-size: var(
    --gallery-size
  ); /* 커미션형도 갤러리형과 같은 크기·여백 */
  /* 리뷰형 : 썸네일 카드 + 아래 요약글 한 줄 */
  --review-cols: 3; /* 한 줄에 몇 칸 */
  --review-card-h: 330px; /* 카드 높이 */
  --review-desc-h: 32px; /* 요약글 띠 높이 */
  --review-radius: 12px; /* 카드 모서리 둥글기 */
  --review-col-gap: 14px; /* 카드 좌우 간격 */
  --review-row-gap: 18px; /* 카드 위아래 간격 */
  --review-card-bg: #1b1b1b; /* 이미지가 없을 때 카드 바탕 */
  --review-desc-bg: #000000; /* 요약글 띠 배경 */
  --review-card-text: #ffffff; /* 제목·요약글 글씨 색 */
  --review-title-size: 15px; /* 제목 글씨 크기 */
  --review-desc-size: 10.5px; /* 요약글 글씨 크기 */
  /* TRPG형 : 가로로 긴 썸네일 2열 + 요약글 + 태그 */
  --trpg-cols: 2; /* 한 줄에 몇 칸 */
  --trpg-ratio: 16 / 9; /* 썸네일 가로:세로 비율 */
  --trpg-col-gap: 18px; /* 칸 좌우 간격 */
  --trpg-row-gap: 26px; /* 칸 위아래 간격 */
  --trpg-radius: 10px; /* 썸네일 모서리 둥글기 */
  --trpg-title-size: 16px; /* 썸네일 위 제목 크기 */
  --trpg-desc-size: 12.5px; /* 요약글 크기 */
  --trpg-desc-bg: #000000; /* 요약글 박스 배경 */
  --trpg-desc-text: #ffffff; /* 요약글 글씨 색 */
  /* 태그 버튼 (리뷰형 · TRPG형 공용) */
  --tag-size: 11px; /* 태그 글씨 크기 */
  --tag-bg: transparent; /* 태그 배경 */
  --tag-line: var(--list-line); /* 태그 테두리 */
  --tag-hover: var(--point-color); /* 태그에 마우스 올렸을 때 배경 = 포인트 색상 */
  /* 로드비형 : 왼쪽 큰 이미지 + 오른쪽 카드 (색·선은 스킨 설정을 그대로 따라갑니다) */
  --roadbi-thumb-w: 48%; /* 왼쪽 이미지 가로 폭 */
  --roadbi-card-w: 300px; /* 오른쪽 카드 가로 크기 */
  --roadbi-gap: 32px; /* 이미지 ↔ 카드 사이 간격 */
  --roadbi-item-pad: 22px; /* 글 한 칸 위·아래 여백 */
  --roadbi-item-line: var(--summary-line); /* 글 사이 구분선 */
  --roadbi-radius: 12px; /* 이미지·카드 모서리 둥글기 */
  --roadbi-thumb-bg: var(--cat-bg); /* 이미지 뒤 여백 색 */
  --roadbi-card-bg: var(--list-box-bg); /* 카드 배경 */
  --roadbi-card-line: var(--list-line); /* 이미지·카드 테두리 */
  --roadbi-title-bg: var(
    --point-color
  ); /* 카드 제목 띠 배경 = 꾸미기의 '포인트 색상' */
  --roadbi-title-color: var(
    --cat-text
  ); /* 카드 제목 글씨 색 = 카테고리 글씨 색상 */
  --roadbi-title-size: 13px; /* 카드 제목 글씨 크기 */
  --roadbi-text-size: 13px; /* 카드 본문 글씨 크기 */
  --roadbi-text-lh: 2; /* 카드 본문 줄 간격 */
  --roadbi-text-pad: 20px 18px 14px; /* 카드 본문 안쪽 여백 */
  --roadbi-lines: 30; /* 카드 본문 최대 줄 수 (보통 이미지 높이에서 먼저 잘립니다) */
  --roadbi-like-on: #e6889b; /* 공감(하트)을 누른 뒤 색 */
}

/* ---------- reset ---------- */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}

a,
button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--point-color);
}
.post-body a {
  color: var(--point-color);
}
.post-body div[data-ke-type="moreLess"] a.btn-toggle-moreless {
  color: var(--point-color) !important;
}
/* 접은글을 펼쳤을 때 : 배경 없이 점선 테두리만 + 폭 80% 가운데 정렬 */
div[data-ke-type="moreLess"].open {
  background: none;
  border: 1px dashed var(--cat-text);
  border-radius: 8px;
  padding: 8px;
  width: 80%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}
div[data-ke-type="moreLess"].open .moreless-content,
div[data-ke-type="moreLess"].open .moreless-content * {
  font-size: 12px !important; /* 원하는 크기로 조절하세요 */
}
/* 더보기/닫기 원래 글자는 숨기고 아래 기호로 대체 */
div[data-ke-type="moreLess"] > a.btn-toggle-moreless,
#tt-body-page div[data-ke-type="moreLess"] > a.btn-toggle-moreless {
  display: block;
  font-size: 0;
  text-align: center; /* 버튼만 가운데 정렬 (펼친 내용은 원래 정렬 유지) */
}
/* 접혀있을 때(기본 상태) 표시할 문구 */
div[data-ke-type="moreLess"] > a.btn-toggle-moreless:before {
  content: "▼▼▼"; /* 원하는 문구로 수정 */
  font-size: 10px; /* 원하는 크기로 수정 */
}
/* 펼쳐졌을 때(open 상태) 표시할 문구 */
div[data-ke-type="moreLess"].open > a.btn-toggle-moreless:before {
  content: "▲▲▲"; /* 원하는 문구로 수정 */
}

/* 코드블럭 : 크기 고정 + 내부 스크롤 + 글자 축소 */
.post-body pre[data-ke-type="codeblock"] {
  max-height: 320px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.5;
}
.post-body pre[data-ke-type="codeblock"] code {
  font-size: inherit;
}

/* HTML 블럭 : 크기 고정 + 내부 스크롤 + 글자 축소 */
/* 참고: 블럭 안 요소에 인라인 style(font-size 등)이 직접 박혀있으면
   우선순위상 이 규칙보다 인라인 스타일이 이깁니다 */
.post-body div[data-ke-type="html"] {
  max-height: 320px;
  overflow: auto;
  font-size: 11px;
}

/* 코드블럭/HTML블럭 : 전체 복사 버튼 (블럭 바깥 틀에 고정 → 내부 스크롤해도 제자리) */
.code-copy-wrap {
  position: relative;
}
.code-copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--content-border);
  border-radius: 6px;
  background: var(--content-bg);
  color: var(--content-text);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.code-copy-btn:hover {
  opacity: 1;
}
.code-copy-btn.is-copied {
  opacity: 1;
  color: #2fae5c;
  border-color: #2fae5c;
}
.code-copy-btn svg {
  width: 13px;
  height: 13px;
}

ul,
ol,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------- ① 바탕영역 ---------- */
body {
  min-height: 100vh;
  background-color: var(--bg-color);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: var(--content-text);
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "맑은 고딕",
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: var(--page-pad-y) 0; /* 창 위·아래 최소 여백 */
}
body[data-bgmode="repeat"] {
  background-size: auto;
  background-repeat: repeat;
  background-attachment: scroll;
}
body[data-bgmode="contain"] {
  background-size: contain;
}

/* ---------- 전체 배치 틀 ---------- */
#wrap {
  position: relative;
  width: min(var(--content-w), 100%);
  margin: max(0px, calc((100vh - var(--content-h)) / 2 - var(--page-pad-y)))
    auto;
  left: max(
    0px,
    calc(var(--side-space) - (100vw - min(var(--content-w), 100%)) / 2)
  );
}

/* ---------- ② 본문영역 ---------- */
#content {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: var(--content-h);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: var(--content-bg);
  color: var(--content-text);
  border: 1px solid var(--content-border);
  border-radius: var(--content-radius);
  padding: calc(46px + var(--band-top-h)) var(--content-pad-x)
    calc(
      var(--band-bot-h) +
        max(
          60px,
          calc(
            var(--deco2-bottom) + var(--deco2-height, var(--deco-h)) +
              var(--deco-gap) + var(--deco1-height, var(--deco-h))
          )
        )
    );
}

#content:has(#article-body.layout-gallery),
#content:has(#article-body.layout-commission) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  padding-top: calc(20px + var(--band-top-h));
  padding-bottom: calc(20px + var(--band-bot-h));
}
#content:has(#article-body.layout-gallery) > #article-body,
#content:has(#article-body.layout-commission) > #article-body {
  width: 100%;
}
#content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
} /* 크롬·사파리 */

#article-body {
  min-width: 0;
}

/* ---------- ⑤ 카테고리 영역 ---------- */
#sidebar {
  position: absolute;
  right: calc(100% + var(--side-gap));
  top: 0; /* 홈 버튼이 본문영역 맨 윗줄과 같은 높이에서 시작 */
  z-index: 3;
  width: var(--side-w);
  color: var(--cat-text);
  background: none;
  border: 0;
  padding: 0;
}
/* 홈 버튼 */
#blog-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cat-text);
  word-break: keep-all;
  text-align: center;
  padding: 0 2px;
  margin-bottom: 22px;
}
#blog-title.has-img {
  padding: 0;
}
#blog-title.has-img .home-text {
  display: none;
}
#blog-title .home-img {
  display: block !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: max(var(--home-w, 0px), var(--home-w-base));
  max-width: none;
  height: auto;
}

#sidebar .tt_category,
#sidebar .tt_category * {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-size: inherit !important;
  color: var(--cat-text) !important;
}
#sidebar .tt_category > li > a {
  display: none !important;
}
#sidebar img {
  display: none !important;
}

#sidebar .category_list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--cat-gap);
}

/* 상위 카테고리 한 칸 */
#sidebar .cat-item {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
}
/* (A) 이미지를 올린 경우 : 이미지가 버튼을 대신함 */
#sidebar .cat-item.has-img > a {
  display: block !important;
  padding: 0 !important;
  line-height: 0;
  text-align: center;
}

#sidebar .cat-item.has-img > a img {
  display: block !important;
  width: 50px !important;
  height: 50px !important;
  max-width: none;
  min-width: 0;
  margin: 0 auto !important;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
}
#sidebar .cat-item.has-img.open .sub_category_list {
  padding: var(--subcat-gap) 2px 2px !important;
}
#sidebar .cat-item.has-img .sub_category_list > li {
  text-align: center;
}
#sidebar .cat-item.has-img .sub_category_list > li > a {
  display: inline-block !important;
  width: fit-content !important;
  text-align: center;
  font-size: 12.5px !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

/* (B) 이미지가 없는 경우 : 제목 */
#sidebar .cat-item:not(.has-img) {
  background: var(--cat-bg) !important;
  border: 1px solid var(--cat-border) !important; /* 꾸미기의 '카테고리 테두리 색상' */
}
#sidebar .cat-item:not(.has-img) > a {
  display: block !important;
  padding: 10px 10px !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

#sidebar .cat-item:not(.has-img).open .sub_category_list {
  padding: var(--subcat-gap) 8px 10px !important;
}
#sidebar .cat-item:not(.has-img) .sub_category_list > li {
  text-align: center;
}
#sidebar .cat-item:not(.has-img) .sub_category_list > li > a {
  display: inline-block !important;
  width: fit-content !important;
  font-size: 12px !important;
  padding: 4px 2px !important;
  text-align: center;
  opacity: 0.72;
}

/* 하위 카테고리 공통 : 접힘/펼침 */
#sidebar .sub_category_list {
  max-height: 0;
  overflow: hidden;
  padding: 0 !important;
  transition:
    max-height 0.32s ease,
    padding 0.32s ease;
}
#sidebar .cat-item.open .sub_category_list {
  max-height: 600px;
}
#sidebar .sub_category_list > li {
  text-align: center;
}
#sidebar .sub_category_list > li > a {
  display: inline-block !important;
  width: fit-content !important;
  padding: 5px 4px !important;
  font-size: 13px !important;
  font-weight: 400;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
  opacity: 0.8;
}

.search {
  display: none !important;
}

.side-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.side-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  color: var(--point-color);
  transition: color 0.15s ease;
}
.side-link:hover {
  color: var(--cat-text);
}

/* ---------- ③④ 본문 위/아래 얇은 띠 ---------- */
.band {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.band.is-float {
  position: fixed;
  left: auto;
  right: auto;
}

#band-top {
  top: 0;
  height: var(--band-top-h);
  /* 이미지를 올리지 않았을 때 나오는 그라데이션 */
  background-image: linear-gradient(
    to bottom,
    var(--band-top-c1),
    var(--band-top-c2)
  );
  border-bottom: 1px solid var(--content-border);
  border-radius: calc(var(--content-radius) - 1px)
    calc(var(--content-radius) - 1px) 0 0;
}
#band-bottom {
  bottom: 0;
  height: var(--band-bot-h);
  background-image: linear-gradient(
    to bottom,
    var(--band-bot-c1),
    var(--band-bot-c2)
  );
  border-top: 1px solid var(--content-border);
  border-radius: 0 0 calc(var(--content-radius) - 1px)
    calc(var(--content-radius) - 1px);
}
/* 꾸미기에서 띠 높이를 0으로 두면 그 띠(이미지·그라데이션·선)를 통째로 없앱니다 */
html.no-band-top #band-top,
html.no-band-bottom #band-bottom {
  display: none !important;
}

/* ---------- ⑤⑥ 이미지1 / 이미지2 영역 ---------- */
.deco {
  position: absolute;
  z-index: 4;
  height: var(--deco-h); /* 기본 세로 크기 (꾸미기 옵션으로 각각 덮어씀) */
  padding: 0; /* 틀 안쪽 여백 0 */
  font-size: 0; /* inline 요소 사이 공백 제거 */
  line-height: 0;
  border: 1px solid var(--content-border); /* 본문영역과 동일한 테두리선 */
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
}

.deco img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center center;
  vertical-align: top;
}

#deco1 img {
  transform: scale(calc(var(--deco1-zoom, 100) / 100));
  transform-origin: center center;
}
#deco2 img {
  transform: scale(calc(var(--deco2-zoom, 100) / 100));
  transform-origin: center center;
}

#deco1 {
  right: var(--deco2-right);
  bottom: calc(
    var(--deco2-bottom) + var(--deco2-height, var(--deco-h)) + var(--deco-gap)
  );
  width: var(--deco1-w);
  height: var(--deco1-height, var(--deco-h));
}
#deco2 {
  right: var(--deco2-right);
  bottom: var(--deco2-bottom);
  width: var(--deco2-w);
  height: var(--deco2-height, var(--deco-h));
}

/* ---------- 커버(홈) ---------- */
.cover-notice-title {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.6;
  margin-bottom: 8px;
}
.cover-notice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 5px 0;
}
.cover-notice a,
.cover-list a {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cover-notice span {
  flex: 0 0 auto;
  opacity: 0.5;
  font-size: 12px;
}

.cover-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.cover-thumb {
  flex: 0 0 120px;
  width: 120px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}
.cover-text {
  min-width: 0;
}
.cover-title {
  font-size: 17px;
  font-weight: 700;
  display: block;
  overflow-wrap: anywhere;
}
.cover-summary {
  font-size: 13.5px;
  opacity: 0.7;
  margin: 4px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-date {
  font-size: 12px;
  opacity: 0.5;
}

.cover-list {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.cover-custom {
  display: block;
  margin: 0 auto;
  text-align: center;
}
* + .cover-custom {
  margin-top: 14px;
}
.cover-custom img + .cover-custom-title {
  margin-top: 3px;
}

#content:has(.cover-custom) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  padding-top: calc(46px + var(--band-top-h));
  padding-bottom: calc(46px + var(--band-bot-h));
}
#content:has(.cover-custom) > #article-body {
  width: 100%;
}
.cover-custom img {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--cover-img-max, 100%));
  border-radius: 10px;
  vertical-align: top;
}
.cover-custom img[src=""],
.cover-custom img:not([src]) {
  display: none;
}
.cover-custom-title {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: #8b8b8b;
  text-align: center;
  word-break: keep-all;
}
.cover-custom-title:empty {
  display: none;
}
.cover-custom-summary {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8b8b8b;
  opacity: 0.75;
  text-align: center;
  word-break: keep-all;
  white-space: pre-line;
}
.cover-custom-summary:empty {
  display: none;
}
.cover-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.cover-gallery-item {
  min-width: 0;
}
.cover-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.cover-gallery-item strong {
  display: block;
  font-size: 13.5px;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 글 목록 ---------- */
.rep-item {
  display: flex;
  gap: 18px;
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.rep-thumb {
  flex: 0 0 150px;
  width: 150px;
  height: 105px;
  object-fit: cover;
  border-radius: 10px;
}
.rep-cover-link {
  display: none;
}
#article-body.layout-gallery .rep-item,
#article-body.layout-commission .rep-item,
#article-body.layout-review .rep-item,
#article-body.layout-profile .rep-item {
  position: relative;
}
#article-body.layout-gallery .rep-cover-link,
#article-body.layout-commission .rep-cover-link,
#article-body.layout-review .rep-cover-link,
#article-body.layout-profile .rep-cover-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* 보호글 등 : 꾸미기에서 올린 '보호글 썸네일'. 안 올렸으면 빈 칸으로 둡니다 */
.rep-thumb.is-fallback {
  display: block;
  object-fit: contain !important;
  background: var(--cat-bg);
}
.rep-info {
  min-width: 0;
  flex: 1;
}
.rep-item h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.rep-desc {
  font-size: 14px;
  opacity: 0.72;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: inherit;
}

.rep-desc * {
  display: inline !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: normal !important;
  line-height: inherit !important;
  letter-spacing: normal !important;
  text-align: inherit !important;
  text-decoration: none !important;
  text-shadow: none !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.rep-desc img,
.rep-desc figure,
.rep-desc video,
.rep-desc iframe,
.rep-desc embed,
.rep-desc object,
.rep-desc table,
.rep-desc hr,
.rep-desc br,
.rep-desc pre,
.rep-desc code,
.rep-desc div[data-ke-type="html"],
.rep-desc div[data-ke-type="moreLess"],
.rep-desc [class*="thumb"],
.rep-desc [class*="image"],
.rep-desc [class*="video"],
.rep-desc [class*="card"],
.rep-desc [class*="og-"],
.rep-desc [class*="oglink"],
.rep-desc [class*="link_"],
.rep-desc [class*="file"],
.rep-desc [class*="map"] {
  display: none !important;
}
.rep-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.55;
}
.rep-tags {
  display: none;
}

/* ===== 카테고리별 목록 형태 6종 ===== */

#article-body[class*="layout-"] .paging,
#article-body[class*="layout-"] .cover-gallery {
  grid-column: 1 / -1;
}

/* ① 프로필형 */
#article-body.layout-profile {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 26px 22px;
}
#article-body.layout-profile .rep-item {
  display: block;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  text-align: center;
}
#article-body.layout-profile .rep-thumb {
  width: 50%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  margin-left: auto;
  margin-right: auto;
}
#article-body.layout-profile .rep-item h2 {
  font-size: 16px;
  margin-top: 12px;
}
#article-body.layout-profile .rep-desc {
  display: none;
}
#article-body.layout-profile .rep-bottom {
  justify-content: center;
  margin-top: 6px;
}

/* ② 리스트형 */
#article-body.layout-list {
  display: flex;
  flex-direction: column;
  gap: var(--list-gap);
}
#article-body.layout-list .rep-item {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}
#article-body.layout-list .rep-thumb,
#article-body.layout-list .rep-desc,
#article-body.layout-list .rep-bottom {
  display: none !important;
}

#article-body.layout-list .rep-info {
  padding: 0;
  min-width: 0;
}
#article-body.layout-list .rep-item h2,
#article-body.layout-summary .rep-item h2,
.post-title,
.pw-titlebar,
.gb-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: var(--list-box-pad);
  border: 1px solid var(--list-line);
  border-radius: 12px;
  background: var(--list-box-bg);
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
#article-body.layout-list .rep-item h2::before,
#article-body.layout-list .rep-item h2::after,
#article-body.layout-summary .rep-item h2::before,
#article-body.layout-summary .rep-item h2::after,
.post-title::before,
.post-title::after,
.pw-titlebar::before,
.pw-titlebar::after,
.gb-title::before,
.gb-title::after {
  content: "";
  width: var(--list-spark-size);
  height: var(--list-spark-size);
  flex-shrink: 0;
  background-color: var(--list-icon);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0c.55 6.3 5.7 11.45 12 12-6.3.55-11.45 5.7-12 12-.55-6.3-5.7-11.45-12-12 6.3-.55 11.45-5.7 12-12z'/></svg>")
    no-repeat center/contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0c.55 6.3 5.7 11.45 12 12-6.3.55-11.45 5.7-12 12-.55-6.3-5.7-11.45-12-12 6.3-.55 11.45-5.7 12-12z'/></svg>")
    no-repeat center/contain;
}
#article-body.layout-list .rep-item h2 a,
#article-body.layout-summary .rep-item h2 a,
.post-title a,
.pw-title,
.gb-title-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
#article-body.layout-list .rep-item h2:hover,
#article-body.layout-summary .rep-item h2:hover,
.post-title:hover {
  background: var(--list-hover-bg);
  border-color: var(--list-hover-bg);
}

/* ③ 제목+요약글형 */
#article-body.layout-summary {
  display: flex;
  flex-direction: column;
  gap: var(--summary-gap);
}
#article-body.layout-summary .rep-item {
  display: block;
  min-width: 0;
  padding: 0 0 var(--summary-gap);
  border-bottom: 1px dashed var(--summary-line);
}
#article-body.layout-summary .rep-item:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

#article-body.layout-summary .rep-thumb,
#article-body.layout-summary .rep-bottom {
  display: none !important;
}

#article-body.layout-summary .rep-info {
  padding: 0;
  min-width: 0;
}

#article-body.layout-summary .rep-desc {
  margin: 8px 0 0;
  padding: 0 22px;
  font-size: 13px;
  line-height: 1.75;
  opacity: 0.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#article-body.layout-summary .rep-desc:empty {
  display: none;
}

/* ④ 갤러리형 */
#article-body.layout-gallery {
  display: grid;
  grid-template-columns: repeat(3, var(--gallery-size));
  justify-content: center;
  gap: 20px;
  align-content: start;
}
#article-body.layout-gallery .rep-item {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.3s ease;
}
#article-body.layout-gallery .rep-item:hover {
  transform: scale(1.08);
  z-index: 2;
}
#article-body.layout-gallery .rep-thumb {
  display: block;
  width: 100% !important;
  height: 100% !important;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}
#article-body.layout-gallery .rep-info {
  display: none !important;
}

/* ⑤ 커미션형 */
#article-body.layout-commission {
  display: grid;
  grid-template-columns: repeat(3, var(--commission-size));
  justify-content: center;
  gap: 12px 20px;
  --paging-gap: 14px;
}
#article-body.layout-commission .rep-item {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  transition: transform 0.3s ease;
}
#article-body.layout-commission .rep-item:hover {
  transform: scale(1.08);
  z-index: 2;
}
#article-body.layout-commission .rep-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.05);
}
#article-body.layout-commission .rep-info {
  margin-top: 4px;
}
#article-body.layout-commission .rep-item h2 {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  color: #8b8b8b;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#article-body.layout-commission .rep-desc,
#article-body.layout-commission .rep-bottom {
  display: none;
}

/* ⑥ 리뷰형 */
#article-body.layout-review {
  display: grid;
  grid-template-columns: repeat(var(--review-cols), minmax(0, 1fr));
  column-gap: var(--review-col-gap);
  row-gap: var(--review-row-gap);
  align-items: start;
  align-content: start;
}
#article-body.layout-review > *:not(.rep-item) {
  grid-column: 1 / -1;
}
#article-body.layout-review .rep-item {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
#article-body.layout-review .rep-info {
  display: block;
  min-width: 0;
}

#article-body.layout-review .rep-thumb {
  display: block;
  width: 100% !important;
  height: calc(var(--review-card-h) - var(--review-desc-h)) !important;
  max-width: none;
  flex: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: var(--review-radius) var(--review-radius) 0 0;
  background: var(--review-card-bg);
  transition: box-shadow 0.25s ease;
}
#article-body.layout-review .rep-item:hover .rep-thumb {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

#article-body.layout-review .rep-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--review-card-h) - var(--review-desc-h));
  z-index: 1;
  border-radius: var(--review-radius) var(--review-radius) 0 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background-color 0.25s ease;
}
#article-body.layout-review .rep-item:hover::after {
  background: rgba(0, 0, 0, 0.5);
}

#article-body.layout-review .rep-item h2 {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--review-card-h) - var(--review-desc-h));
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  margin: 0;
  padding: 34px 13px 6px;
  border-radius: var(--review-radius) var(--review-radius) 0 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 14%,
    rgba(0, 0, 0, 0.35) 30%,
    rgba(0, 0, 0, 0) 50%
  );
  color: var(--review-card-text);
  font-size: var(--review-title-size);
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
}
#article-body.layout-review .rep-item h2 a {
  display: block;
  width: 100%;
  color: var(--review-card-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
}

#article-body.layout-review .rep-desc {
  position: static;
  display: block;
  height: var(--review-desc-h);
  line-height: var(--review-desc-h);
  margin: 0;
  padding: 0 13px;
  border-radius: 0 0 var(--review-radius) var(--review-radius);
  background: var(--review-desc-bg);
  color: var(--review-card-text);
  border-top: 0;
  text-align: left;
  font-size: var(--review-desc-size);
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: none;
}
#article-body.layout-review .rep-desc:empty {
  display: none;
}

#article-body.layout-review .rep-tags:empty,
#article-body.layout-trpg .rep-tags:empty {
  display: none !important;
}
#article-body.layout-review .rep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 2px 0;
}
#article-body.layout-review .rep-bottom {
  display: none !important;
}

/* ⑦ TRPG형 */
#article-body.layout-trpg {
  display: grid;
  grid-template-columns: repeat(var(--trpg-cols), minmax(0, 1fr));
  column-gap: var(--trpg-col-gap);
  row-gap: var(--trpg-row-gap);
  align-items: start;
  align-content: start;
}
#article-body.layout-trpg > *:not(.rep-item) {
  grid-column: 1 / -1;
}
#article-body.layout-trpg .rep-item {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
#article-body.layout-trpg .rep-thumb {
  display: block;
  width: 100% !important;
  height: auto !important;
  flex: none;
  aspect-ratio: var(--trpg-ratio);
  object-fit: cover;
  border-radius: var(--trpg-radius) var(--trpg-radius) 0 0;
  background: var(--cat-bg);
  cursor: pointer;
}
#article-body.layout-trpg .rep-info {
  display: block;
  min-width: 0;
}

#article-body.layout-trpg .rep-item h2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: var(--trpg-ratio);
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 30px 13px 4px;
  border-radius: var(--trpg-radius) var(--trpg-radius) 0 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.75) 14%,
    rgba(0, 0, 0, 0.35) 30%,
    rgba(0, 0, 0, 0) 50%
  );
  color: #fff;
  font-size: var(--trpg-title-size);
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
  z-index: 2;
  pointer-events: none;
}

#article-body.layout-trpg .rep-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  aspect-ratio: var(--trpg-ratio);
  z-index: 1;
  border-radius: var(--trpg-radius) var(--trpg-radius) 0 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background-color 0.25s ease;
}
#article-body.layout-trpg .rep-item:hover::after {
  background: rgba(0, 0, 0, 0.5);
}
#article-body.layout-trpg .rep-item h2 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
}

#article-body.layout-trpg .rep-desc {
  display: block;
  margin: 0;
  padding: 3px 13px 9px;
  text-align: right;
  border-radius: 0 0 var(--trpg-radius) var(--trpg-radius);
  background: var(--trpg-desc-bg);
  color: var(--trpg-desc-text);
  font-size: var(--trpg-desc-size);
  line-height: 1.5;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: none;
}
#article-body.layout-trpg .rep-desc:empty {
  display: none;
}

/* 요약글 아래 태그 버튼 */
#article-body.layout-trpg .rep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 2px 0;
}
#article-body.layout-trpg .rep-tag,
#article-body.layout-review .rep-tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 10px;
  border: 1px solid var(--tag-line);
  border-radius: 999px;
  background: var(--tag-bg);
  color: inherit;
  font-size: var(--tag-size);
  line-height: 1;
  opacity: 0.75;
  white-space: nowrap;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}
#article-body.layout-trpg .rep-tag::before,
#article-body.layout-review .rep-tag::before {
  content: "#";
  opacity: 0.55;
  margin-right: 2px;
}
#article-body.layout-trpg .rep-tag:hover,
#article-body.layout-review .rep-tag:hover {
  background: var(--tag-hover);
  border-color: var(--tag-hover);
  opacity: 1;
}
#article-body.layout-trpg .rep-bottom {
  display: none !important;
}

/* ⑦ 로드비형 : 왼쪽 큰 이미지 + 오른쪽 카드 */
#article-body.layout-roadbi {
  display: flex;
  flex-direction: column;
}
#article-body.layout-roadbi .rep-item {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding: var(--roadbi-item-pad) 0;
  border-bottom: 1px dashed var(--roadbi-item-line);
}
#article-body.layout-roadbi .rep-item:last-of-type {
  border-bottom: 0;
}

#article-body.layout-roadbi .rep-thumb {
  display: block;
  width: var(--roadbi-thumb-w);
  height: auto;
  padding: 0;
  border: 1px solid var(--roadbi-card-line);
  border-radius: var(--roadbi-radius);
  object-fit: contain;
  background: var(--roadbi-thumb-bg);
  cursor: pointer;
}

#article-body.layout-roadbi .rep-info {
  position: absolute;
  top: 50%;
  left: calc(var(--roadbi-thumb-w) + var(--roadbi-gap));
  transform: translateY(-50%);
  width: var(--roadbi-card-w);
  max-width: calc(100% - var(--roadbi-thumb-w) - var(--roadbi-gap));
  max-height: calc(100% - var(--roadbi-item-pad) * 2);
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--roadbi-card-line);
  border-radius: var(--roadbi-radius);
  background: var(--roadbi-card-bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

#article-body.layout-roadbi .rep-item h2 {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--roadbi-card-line);
  background: var(--roadbi-title-bg);
  color: var(--roadbi-title-color);
  font-size: var(--roadbi-title-size);
  font-weight: 400;
  line-height: 1.5;
}
#article-body.layout-roadbi .rep-item h2::before {
  content: "";
  width: var(--list-spark-size);
  height: var(--list-spark-size);
  flex-shrink: 0;
  background-color: currentColor;
  opacity: 0.75;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0c.55 6.3 5.7 11.45 12 12-6.3.55-11.45 5.7-12 12-.55-6.3-5.7-11.45-12-12 6.3-.55 11.45-5.7 12-12z'/></svg>")
    no-repeat center/contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0c.55 6.3 5.7 11.45 12 12-6.3.55-11.45 5.7-12 12-.55-6.3-5.7-11.45-12-12 6.3-.55 11.45-5.7 12-12z'/></svg>")
    no-repeat center/contain;
}

#article-body.layout-roadbi .rep-item h2 a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  cursor: default;
}
#article-body.layout-roadbi .rep-desc {
  flex: 0 1 auto;
  min-height: 0;
  margin: 0;
  padding: var(--roadbi-text-pad);
  font-size: var(--roadbi-text-size);
  line-height: var(--roadbi-text-lh);
  opacity: 0.6;
  text-align: center;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: var(--roadbi-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 calc(100% - 22px),
    transparent
  );
  mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
}
#article-body.layout-roadbi .rep-desc:empty {
  display: none;
}

#article-body.layout-roadbi .rep-bottom {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
  padding: 0 14px 11px;
  font-size: 11px;
  opacity: 1;
  color: var(--content-text);
}
#article-body.layout-roadbi .rep-date {
  display: none;
}

#article-body.layout-roadbi .rep-cmt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.45;
  line-height: 1;
}
#article-body.layout-roadbi .rep-cmt::before {
  content: "";
  width: 13px;
  height: 13px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/></svg>")
    no-repeat center/contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/></svg>")
    no-repeat center/contain;
}

#article-body.layout-roadbi .rep-like {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
#article-body.layout-roadbi .rep-like .container_postbtn {
  display: none !important;
}
#article-body.layout-roadbi .rb-heart {
  display: inline-flex;
  align-items: center;
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  color: var(--content-text);
  opacity: 0.45;
  transition: opacity 0.18s ease;
}
#article-body.layout-roadbi .rb-heart svg {
  width: 15px;
  height: 15px;
  display: block;
}
#article-body.layout-roadbi .rb-heart:hover {
  opacity: 0.75;
}
#article-body.layout-roadbi .rb-heart.is-on {
  opacity: 1;
  color: var(--roadbi-like-on);
}
#article-body.layout-roadbi .rb-heart.is-on svg {
  fill: currentColor;
}

/* ---------- 개별 글 ---------- */
.post-head {
  margin-bottom: 26px;
}
.post-title {
  font-size: var(--post-title-size);
}
.post-title a,
.pw-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin: 12px 0 0;
  padding: 0 4px;
  font-size: 12.5px;
  opacity: 0.55;
}
.post-body {
  font-size: 15.5px;
  line-height: 1.85;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.post-body img,
.post-body iframe,
.post-body video,
.post-body table {
  max-width: 100%;
}
.post-body iframe {
  width: 100%;
}
.post-body h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 32px 0 10px;
}
.post-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 8px;
}
.post-body blockquote {
  margin: 20px 0;
  padding: 10px 18px;
  border-left: 3px solid var(--content-border);
  opacity: 0.85;
}
.post-tags {
  margin-top: 30px;
  font-size: 13px;
  opacity: 0.6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags span {
  font-weight: 700;
}

/* ---------- 보호글 비밀번호 화면 ---------- */

#content:has(.pw-wrap) {
  display: flex;
  flex-direction: column;
  padding-top: calc(30px + var(--band-top-h));
  padding-bottom: calc(30px + var(--band-bot-h));
}
#content:has(.pw-wrap) > #article-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.pw-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pw-titlebar {
  font-size: var(--post-title-size);
}

.gb-title {
  font-size: var(--post-title-size);
  margin-bottom: 16px !important;
  background: var(--pw-accent);
  border-color: var(--pw-accent);
  color: var(--pw-accent-text);
}
.gb-title-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.gb-title-count {
  margin-left: 8px; /* "Guestbook"과 숫자 사이 간격 */
  font-weight: 400;
  opacity: 0.6;
}

.pw-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 40px 0;
}
.pw-msg {
  font-size: 13.5px;
  opacity: 0.55;
  text-align: center;
  word-break: keep-all;
}
.pw-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pw-input {
  width: 200px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--list-line);
  border-radius: 999px;
  background: var(--content-bg);
  color: inherit;
  font-family: inherit;
  font-size: 13.5px;
}
.pw-input::placeholder {
  opacity: 0.45;
}
.pw-input:focus {
  outline: none;
  border-color: var(--pw-accent);
}
.pw-btn {
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.pw-ok {
  border: 1px solid var(--pw-accent);
  background: var(--pw-accent);
  color: var(--pw-accent-text);
}
.pw-cancel {
  border: 1px solid var(--list-line);
  background: transparent;
  color: inherit;
  opacity: 0.55;
}

/* ---------- 댓글 ---------- */
.comments {
  margin-top: 44px;
}
.comments-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.55;
  margin-bottom: 12px;
  padding-left: 4px;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c-box {
  padding: 13px 16px;
  border: 1px solid var(--list-line);
  border-radius: 12px;
  background: var(--list-box-bg);
}

.reply-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-item.reply {
  position: relative;
  margin-left: 22px;
}
.comment-item.reply > .c-box {
  background: color-mix(in srgb, var(--point-color) 50%, transparent);
  border-color: transparent;
}
.comment-item.reply::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 18px;
  width: 8px;
  height: 1px;
  background: var(--list-line);
}

.c-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.c-date {
  font-size: 11.5px;
  opacity: 0.45;
}
.c-acts {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.c-act {
  font-size: 11.5px;
  opacity: 0.45;
}
.c-desc {
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.7;
  word-break: break-word;
}

/* 댓글 쓰기 */
.comment-form {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--list-line);
  border-radius: 12px;
}
.c-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.c-form-label {
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.6;
}
.c-secret {
  font-size: 12px;
  opacity: 0.6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.comment-form textarea {
  display: block;
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--list-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--content-bg);
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
}
.comment-form textarea::placeholder {
  opacity: 0.4;
}
.comment-form textarea:focus {
  outline: none;
  border-color: var(--pw-accent);
}
.c-form-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-accent {
  height: 34px;
  padding: 0 22px;
  cursor: pointer;
  border: 1px solid var(--pw-accent);
  border-radius: 999px;
  background: var(--pw-accent);
  color: var(--pw-accent-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

#article-body .rep-desc [class*="more"],
#article-body .rep-desc [class*="fold"],
#article-body .rep-desc [id*="more"] {
  display: none !important;
}

/* ---------- 페이징 ---------- */
.paging {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: var(--paging-gap) auto 0;
  width: fit-content;
  padding: 0;
  background: none;
  box-shadow: none;
}
.paging-nums {
  display: flex;
  gap: 6px;
}
.paging-btn,
.paging-num {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paging-line);
  border-radius: 8px;
  background: var(--paging-bg);
  color: inherit;
  font-size: 13px;
}
.paging-num.selected,
.paging-num[class*="selected"] {
  background: var(--paging-active-bg);
  border-color: var(--paging-active-bg);
  color: inherit;
  font-weight: 700;
}
.no-more-prev,
.no-more-next {
  opacity: 0.25;
  pointer-events: none;
}
#footer {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--content-text);
}
.footer-copy {
  opacity: 0.45;
}
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}
#footer a {
  color: inherit;
}

/* ---------- 배너 위젯 ---------- */
#banner-box {
  position: fixed;
  right: var(--banner-right);
  bottom: var(--banner-bottom);
  z-index: 29;
  width: var(--banner-w);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--content-border);
  border-radius: 12px;
  background: var(--point-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
#banner-box[hidden] {
  display: none;
}

.banner-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  border: 0;
  border-bottom: 1px solid var(--content-border);
  background: var(--banner-head-bg);
  color: var(--banner-head-text);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  cursor: pointer;
}
.banner-head::after {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background-color: currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 16L4 8h16z'/></svg>")
    no-repeat center/contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 16L4 8h16z'/></svg>")
    no-repeat center/contain;
}
#banner-box.is-closed .banner-head {
  border-bottom: 0;
}
#banner-box.is-closed .banner-head::after {
  transform: rotate(180deg);
}

.banner-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  padding-right: 6px;
  max-height: var(--banner-max-h);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--point-color) transparent;
}
.banner-list::-webkit-scrollbar {
  width: 5px;
}
.banner-list::-webkit-scrollbar-track {
  background: transparent;
}
.banner-list::-webkit-scrollbar-thumb {
  background: var(--point-color);
  border-radius: 999px;
}
#banner-box.is-closed .banner-list {
  display: none;
}
.banner-list a {
  display: block;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.18s ease;
}
.banner-list a:hover {
  opacity: 1;
}
.banner-list img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 860px) {
  #banner-box {
    display: none !important;
  }
  /* 배너가 사라지면 발췌 위젯 버튼이 그 빈자리를 채워 오른쪽 끝으로 */
  :root {
    --ecp-btn-right: var(--banner-right);
  }
}

/* ---------- 할 일 + 뽀모도로 위젯 (우상단 고정) ---------- */
#todopomo-box {
  position: fixed;
  top: var(--tp-top);
  right: var(--tp-right);
  z-index: 29;
  width: var(--tp-w);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cat-border);
  border-radius: 12px;
  background: var(--content-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
#todopomo-box[hidden] {
  display: none;
}

.tp-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  border: 0;
  border-bottom: 1px solid var(--cat-border);
  background: var(--cat-bg);
  color: var(--tp-head-text);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  cursor: pointer;
}
.tp-head::after {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background-color: currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 16L4 8h16z'/></svg>")
    no-repeat center/contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 16L4 8h16z'/></svg>")
    no-repeat center/contain;
}
#todopomo-box.is-closed .tp-head {
  border-bottom: 0;
}
#todopomo-box.is-closed .tp-head::after {
  transform: rotate(180deg);
}

.tp-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}
#todopomo-box.is-closed .tp-body {
  display: none;
}

/* 뽀모도로 */
.tp-pomo-display {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--banner-head-bg);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.tp-pomo-phase {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--content-text);
  opacity: 0.6;
  margin-top: 2px;
  min-height: 14px;
}
.tp-pomo-settings {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--content-text);
  opacity: 0.75;
}
.tp-pomo-settings label {
  display: flex;
  align-items: center;
  gap: 3px;
}
.tp-pomo-min {
  width: 34px;
  border: 1px solid var(--cat-border);
  border-radius: 6px;
  background: transparent;
  color: var(--content-text);
  font-size: 11px;
  font-family: inherit;
  text-align: center;
  padding: 2px 3px;
  outline: none;
  -moz-appearance: textfield;
}
.tp-pomo-min::-webkit-outer-spin-button,
.tp-pomo-min::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tp-pomo-min:focus {
  border-color: var(--point-color);
}

.tp-pomo-controls {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.tp-btn {
  flex: 1;
  border: 1px solid var(--cat-border);
  border-radius: 8px;
  background: transparent;
  color: var(--content-text);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  cursor: pointer;
  font-family: inherit;
}
.tp-btn:hover {
  border-color: var(--tp-head-bg);
}
.tp-btn.tp-btn-main {
  background: var(--cat-bg);
  border-color: var(--cat-border);
  color: var(--cat-text);
}
.tp-btn.tp-btn-main.running {
  opacity: 0.6;
}

/* 위젯 안 구분선 */
.tp-divider {
  height: 1px;
  background: var(--list-line);
}

/* 할 일 */
.tp-todo-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--cat-border);
  border-radius: 8px;
  background: var(--point-color);
  padding: 7px 10px;
  font-size: 12px;
  font-family: inherit;
  color: var(--cat-text);
  outline: none;
}
.tp-todo-input::placeholder {
  color: var(--cat-text);
  opacity: 0.4;
}
.tp-todo-input:focus {
  border-color: var(--tp-head-bg);
}
.tp-todo-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tp-todo-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.tp-todo-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border-radius: 8px;
  background: var(--cat-bg);
  font-size: 12px;
}
.tp-todo-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.6px solid var(--cat-border);
  background: var(--content-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--tp-head-text);
}
.tp-todo-item.done .tp-todo-check {
  background: var(--tp-head-bg);
  border-color: var(--tp-head-bg);
}
.tp-todo-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  cursor: pointer;
  color: var(--cat-text);
}
.tp-todo-item.done .tp-todo-text {
  text-decoration: line-through;
  opacity: 0.45;
}
.tp-todo-del {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--content-text);
  opacity: 0.5;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-todo-del:hover {
  background: var(--content-border);
  opacity: 1;
  color: var(--content-bg);
}
.tp-todo-empty {
  font-size: 11px;
  color: var(--content-text);
  opacity: 0.4;
  text-align: center;
  padding: 10px 0;
}

@media (max-width: 860px) {
  #todopomo-box {
    display: none !important;
  }
}

/* ---------- 티스토리 기본 위젯 숨김 ---------- */
.container_postbtn,
.another_category {
  display: none !important;
}
[data-tistory-react-app="Namecard"] {
  display: none;
}

/* ---------- 개별 글 : container_postbtn은 보이되, 공감·공유·통계만 숨김 (게시글 관리 버튼은 유지) ---------- */
#tt-body-page .container_postbtn {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

#tt-body-page .container_postbtn [data-tiara-action-name="공감_클릭"],
#tt-body-page .container_postbtn .btn_share,
#tt-body-page .container_postbtn [data-tiara-action-name="글통계_클릭"] {
  display: none !important;
}
#tt-body-page .container_postbtn .uoc-count {
  font-size: 12px;
  opacity: 0.5;
}

@media (max-width: 1340px) {
  :root {
    --side-gap: 18px;
    --side-w: 150px;
    --content-w: min(950px, calc(100vw - 380px));
  }
}

/* ---------- 태블릿 ---------- */
@media (max-width: 1100px) {
  #content {
    padding-left: 34px;
    padding-right: 34px;
  }
  #article-body.layout-gallery {
    grid-template-columns: repeat(2, var(--gallery-size));
  }
  #article-body.layout-commission {
    grid-template-columns: repeat(2, var(--commission-size));
  }
  .cover-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 모바일: 전부 세로로 쌓기 ---------- */
@media (max-width: 860px) {
  body {
    padding: 0;
  }
  #wrap {
    width: 100%;
    margin: 0;
    left: 0;
    padding: var(--top-gap) 14px 40px;
    display: flex;
    flex-direction: column;
  }

  .deco,
  #deco1,
  #deco2 {
    display: none !important;
  }

  #sidebar {
    order: 1;
  }
  #content {
    order: 2;
  }
  #footer {
    order: 3;
  }

  #sidebar {
    position: static;
    right: auto;
    width: auto;
    margin-bottom: 14px;
    padding: 0;
  }

  #sidebar .category_list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px min(var(--cat-gap), 16px);
  }

  #sidebar .cat-item.has-img {
    flex: 0 0 auto;
    width: 50px;
  }
  #sidebar .cat-item:not(.has-img) {
    flex: 0 1 auto;
  }
  #sidebar .cat-item:not(.has-img) > a {
    white-space: nowrap;
  }
  #sidebar .cat-item {
    position: relative;
    overflow: visible;
  }
  #sidebar .cat-item .sub_category_list {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: fit-content;
    min-width: 0;
    padding: 0 !important;
    border: 1px solid var(--cat-border) !important;
    border-radius: 10px;
    background: var(--cat-bg) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    text-align: center;
  }
  #sidebar .cat-item.open .sub_category_list {
    padding: 10px 14px !important;
  }
  #sidebar .cat-item .sub_category_list > li {
    text-align: center !important;
  }
  #sidebar .cat-item .sub_category_list > li > a {
    white-space: nowrap;
    text-align: center;
  }
  #blog-title {
    margin-bottom: 16px;
  }
  #blog-title .home-img {
    width: min(var(--home-w, 170px), 60%);
  }

  #content {
    height: auto;
    overflow: visible;
    padding: calc(26px + var(--band-top-h)) 18px calc(36px + var(--band-bot-h)) !important;
  }
  .band {
    position: absolute;
    left: 0;
    right: 0;
    width: auto !important;
  }
  #band-top {
    top: 0;
  }
  #band-bottom {
    top: auto !important;
    bottom: 0;
  }
  .paging {
    margin-top: 24px;
  }
  .post-title {
    font-size: 22px;
  }
  .rep-item {
    gap: 12px;
    padding: 16px 0;
  }
  .rep-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 74px;
  }
  .rep-item h2 {
    font-size: 16px;
  }
  .cover-thumb {
    flex: 0 0 92px;
    width: 92px;
    height: 68px;
  }

  #article-body.layout-gallery {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
    justify-content: stretch;
  }
  .cover-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-content: stretch;
  }
  #article-body.layout-profile {
    gap: 18px 12px;
  }
  #article-body.layout-commission {
    grid-template-columns: repeat(1, 1fr);
    gap: 14px 12px;
    justify-content: stretch;
  }
  #article-body.layout-review {
    --review-cols: 2;
    --review-card-h: 260px;
    column-gap: 10px;
    row-gap: 12px;
  }
  #article-body.layout-trpg {
    --trpg-cols: 1;
    row-gap: 20px;
  }
  #article-body.layout-review .rep-thumb {
    flex-basis: auto;
    width: 100% !important;
  }

  /* 로드비형 */
  #article-body.layout-roadbi .rep-item {
    padding: 18px 0;
  }
  #article-body.layout-roadbi .rep-thumb {
    width: 100%;
  }
  #article-body.layout-roadbi .rep-info {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: none;
    margin-top: 14px;
  }
}

/* ---------- 스티커 위젯 ---------- */
#stickers {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.stk {
  position: absolute;
  transform-origin: center center;
  line-height: 0;
  pointer-events: none;
}
.stk img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  -webkit-user-drag: none;
  user-select: none;
}
.stk-editing .stk {
  pointer-events: auto;
  cursor: move;
  outline: 1.5px dashed rgba(0, 0, 0, 0.35);
  outline-offset: 3px;
}
.stk-editing .stk.is-sel {
  outline: 2px solid #3b82f6;
}
.stk-h {
  position: absolute;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  z-index: 2;
}
.stk-del {
  top: -11px;
  right: -11px;
  background: #ef4444;
  cursor: pointer;
}
.stk-size {
  bottom: -11px;
  right: -11px;
  background: #22a06b;
  cursor: ew-resize;
}
.stk-rot {
  top: -11px;
  left: -11px;
  background: #3b82f6;
  cursor: grab;
}

#stk-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 14px;
  background: #2f2e29;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
#stk-bar button {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #6b7f5a;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
#stk-bar .stk-hint {
  color: #cfcabb;
  font-size: 12px;
}
#stk-out {
  display: none;
  width: 100%;
  height: 54px;
  margin-top: 4px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  font-family: monospace;
  resize: vertical;
}

@media (max-width: 860px) {
  #stickers,
  #stk-bar {
    display: none !important;
  }
}
/* - - - BGM 플레이어 관련 - - - */
.mm-bgm {
  position: fixed;
  bottom: 15px; /* 우측상단 원하면 bottom을 top 으로 변경 */
  left: 15px;
  z-index: 9999; /* 맨위로 */
  border: none;
}
/* - - - BGM 플레이어 끝 - - -*/
