@charset "utf-8";

/* CALF STATION build 20260729-v6.18.28-video-optional-mixed-lightbox */

@font-face {
  font-family: "Galmuri14";
  src: url("./images/Galmuri14.woff2") format("woff2"),
       url("./images/Galmuri14.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #b22222;
  --red-dark: #8f1616;
  --gold: #d4af37;
  --cream: #f8f4e6;
  --paper: #fffdf8;
  --ink: #3a1f0b;
  --muted: #9a4b42;
  --line: #e6c9a8;

  /*
    댓글·방명록 전용 폰트.
    현재는 기존 디자인을 유지하도록 Galmuri14를 사용합니다.
    일반 글꼴로 바꾸려면 첫 값을 "Malgun Gothic"으로 변경하세요.
  */
  --community-font: "Galmuri14", "Malgun Gothic", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background:
    repeating-linear-gradient(0deg, rgba(58,31,11,.025) 0 1px, transparent 1px 4px),
    var(--cream);
  color: var(--ink);
  font-family: "Galmuri14", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

svg {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}

.screen_out {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0,0,0,0);
}

.site {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px;
}

/* Header */
.fc-header {
  width: 100%;
  margin: 0 6px 6px 0;
  padding: 0;
  overflow: hidden;
  background: #1b130f;
  border: 4px solid var(--red);
  box-shadow:
    6px 6px 0 var(--gold),
    inset 0 -3px 0 rgba(0,0,0,.12);
}

.header-scene-link {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  text-decoration: none !important;
}

.header-scene-link:hover {
  text-decoration: none !important;
}

.header-scene-image {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
  image-rendering: auto;
}

.header-scene-overlay {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(90%, 760px);
  transform: translate(-50%, -50%);
  color: #fff;
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
}

.header-scene-title {
  display: block;
  font-size: clamp(30px, 4.2vw, 58px);
  letter-spacing: .045em;
  text-shadow:
    3px 3px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    0 5px 12px rgba(0,0,0,.75);
}

.header-scene-subtitle {
  display: block;
  margin-top: 10px;
  font-size: clamp(11px, 1.45vw, 20px);
  letter-spacing: .02em;
  text-shadow:
    2px 2px 0 #000,
    -1px -1px 0 #000,
    0 3px 8px rgba(0,0,0,.85);
}

/* Nav */
.fc-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: var(--cream);
  padding: 16px 8px 14px;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--gold);
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  min-width: 64px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--red-dark);
  transition: transform .08s ease, background-color .12s ease, color .12s ease;
}

.nav-btn:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 0 rgba(0,0,0,.12);
}

.nav-icon,
.side-cat-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  flex: 0 0 18px;
  display: inline-block;
  vertical-align: middle;
}

.nav-icon *,
.side-cat-icon * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Layout */
.content-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  padding: 16px 0;
}

.content-wrap > * {
  min-width: 0;
}

.fc-main {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.fc-card {
  background: var(--paper);
  border: 4px solid var(--red);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 6px 6px 0 var(--gold);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.fc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(transparent 0 62%, rgba(0,0,0,0.018) 62% 100%);
}

.label {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--gold);
  padding: 4px 9px;
  margin-bottom: 13px;
  font-size: 12px;
  line-height: 1;
  text-shadow: 1px 1px 0 #000;
}

.page-title,
.entry-title {
  font-size: 28px;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -.04em;
}

.entry-title a:hover {
  text-decoration: none;
}

.meta {
  font-size: 12px;
  color: var(--red);
  margin: 0 0 14px;
}

.lead {
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--ink);
}

.tag-row {
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}

.content,
.article {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.article p {
  margin: 0 0 1.1em;
}

.article h2 {
  margin: 1.8em 0 .8em;
  padding: 9px 12px;
  background: var(--red);
  color: #fff;
  border-left: 6px solid var(--gold);
  font-size: 22px;
  text-shadow: 2px 2px 0 #000;
}

.article h3 {
  margin: 1.6em 0 .7em;
  padding-left: 10px;
  border-left: 5px solid var(--gold);
  font-size: 18px;
}

.article ul,
.article ol {
  padding-left: 1.25em;
}

.article blockquote {
  margin: 1.2em 0;
  padding: 13px 15px;
  background: #fff5d6;
  border-left: 6px solid var(--gold);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  background: #fff;
  font-size: 14px;
  table-layout: fixed;
}

.article th,
.article td {
  border: 2px solid var(--line);
  padding: 9px 10px;
}

.article th {
  background: var(--red);
  color: #fff;
}

.article img {
  border: 3px solid var(--red);
  box-shadow: 4px 4px 0 var(--gold);
}

.article pre {
  overflow-x: auto;
  padding: 14px;
  background: #2b1710;
  color: #fff1c2;
  border: 3px solid var(--gold);
}

.article code {
  background: #f2e2b7;
  padding: 2px 5px;
}


/* Tistory '같은 카테고리의 다른 글' 행 가독성·정렬 */
.article .another_category {
  margin-top: 24px !important;
}

.article .another_category table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.article .another_category table tr {
  height: 38px !important;
}

.article .another_category table th,
.article .another_category table td {
  height: 38px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  vertical-align: middle !important;
  line-height: 1.35 !important;
}

.article .another_category table th {
  padding-left: 14px !important;
  padding-right: 14px !important;
  background: var(--red) !important;
  color: #fff !important;
  text-align: left !important;
  font-weight: 400 !important;
}

.article .another_category table th a,
.article .another_category table th span {
  display: inline !important;
  color: #fff !important;
  line-height: inherit !important;
  vertical-align: middle !important;
}

.article .another_category table th a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.article .another_category table td {
  width: 132px !important;
  min-width: 132px !important;
  padding-left: 12px !important;
  padding-right: 16px !important;
  background: var(--paper) !important;
  color: #8d8177 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.article .patch-box,
.article .summary-box,
.article .warning-box,
.patch-box,
.summary-box,
.warning-box {
  margin: 18px 0;
  padding: 14px 16px;
  border: 3px solid var(--red);
  box-shadow: 4px 4px 0 var(--gold);
}

.article .patch-box,
.patch-box {
  background: #f3f5ff;
}

.article .summary-box,
.summary-box {
  background: #fff5d6;
  border-color: var(--gold);
}

.article .warning-box,
.warning-box {
  background: #fff0f0;
}

/* Auto patch renderer */
.calf-patch-auto {
  position: relative;
  z-index: 1;
}

.calf-patch-info-table {
  table-layout: fixed;
}

.calf-patch-info-table th {
  width: 138px;
}

.calf-patch-info-table td {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}


.calf-auto-warning {
  background: #f3f5ff !important;
}

.calf-hash-value {
  min-width: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
}

.calf-patch-cover {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 30px;
  padding: 8px;
  background: var(--paper);
  border: 4px solid var(--red);
  box-shadow: 6px 6px 0 var(--gold);
  text-align: center;
  overflow: hidden;
}

.calf-patch-cover a {
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  text-decoration: none !important;
}

.calf-patch-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 760px;
  margin: 0 auto !important;
  object-fit: contain;
  border: 0 !important;
  box-shadow: none !important;
  image-rendering: auto;
}

.calf-patch-cover figcaption {
  margin: 10px 4px 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.calf-patch-media-gallery{
  min-width:0;
  margin:18px 0 28px
}

.calf-patch-media-gallery
.calf-next-swipe-viewport{
  padding:4px 8px 10px 4px
}

.calf-patch-media-gallery
.calf-next-swipe-controls{
  margin-top:14px
}

.calf-patch-media-page-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  width:100%;
  margin:0;
  padding:0
}

.calf-patch-media-item{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#17100d;
  border:3px solid var(--red);
  box-shadow:5px 5px 0 var(--gold);
  color:#fff;
  outline:none;
  transition:
    transform .18s ease-out,
    box-shadow .18s ease-out,
    border-color .18s ease-out
}

.calf-patch-media-item.is-image{
  cursor:zoom-in
}

.calf-patch-media-item.is-image:hover,
.calf-patch-media-item.is-image:focus-visible{
  border-color:#941116;
  box-shadow:
    8px 8px 0 var(--gold),
    0 0 0 2px #fff3b0;
  transform:translate(-2px,-2px)
}

.calf-patch-media-image,
.calf-patch-media-video{
  display:block;
  width:100%;
  height:100%;
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
  object-fit:contain;
  background:#100b08
}

.calf-patch-media-image{
  image-rendering:pixelated
}

.calf-patch-media-video{
  image-rendering:auto
}

.calf-patch-media-zoom{
  position:absolute;
  right:9px;
  bottom:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  color:#fff;
  background:rgba(178,34,34,.92);
  border:2px solid var(--gold);
  box-shadow:3px 3px 0 rgba(0,0,0,.55);
  pointer-events:none
}

.calf-patch-media-zoom svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round
}

.calf-patch-video-badge{
  position:absolute;
  top:8px;
  left:8px;
  z-index:2;
  padding:4px 8px;
  color:#fff;
  background:var(--red);
  border-left:5px solid var(--gold);
  box-shadow:3px 3px 0 rgba(0,0,0,.45);
  font-size:11px;
  line-height:1
}

.calf-patch-media-item.is-error::after{
  content:"MEDIA LOAD ERROR";
  position:absolute;
  inset:auto 8px 8px;
  padding:5px 7px;
  color:#fff;
  background:var(--red);
  border:2px solid var(--gold);
  font-size:11px;
  text-align:center
}

body.calf-lightbox-open{
  overflow:hidden
}

.calf-patch-lightbox[hidden]{
  display:none!important
}

.calf-patch-lightbox{
  position:fixed;
  z-index:999999;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px
}

.calf-patch-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(16,8,5,.92);
  backdrop-filter:blur(2px)
}

.calf-patch-lightbox-dialog{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 58px;
  align-items:center;
  width:min(1180px,calc(100vw - 52px));
  max-height:calc(100vh - 52px);
  padding:20px;
  background:#111;
  border:4px solid var(--red);
  box-shadow:9px 9px 0 var(--gold)
}

.calf-patch-lightbox-figure{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:0;
  margin:0
}

.calf-patch-lightbox-media-stage{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:0;
  background:#080504
}

.calf-patch-lightbox-image,
.calf-patch-lightbox-video{
  display:block;
  width:auto;
  max-width:100%;
  max-height:calc(100vh - 145px);
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
  object-fit:contain;
  background:#080504
}

.calf-patch-lightbox-image{
  image-rendering:pixelated
}

.calf-patch-lightbox-video{
  width:100%;
  aspect-ratio:4/3;
  image-rendering:auto
}

.calf-patch-lightbox-image[hidden],
.calf-patch-lightbox-video[hidden]{
  display:none!important
}

.calf-patch-lightbox-caption{
  margin-top:12px;
  color:#fff5d6;
  font-size:13px;
  text-align:center
}

.calf-patch-lightbox-close,
.calf-patch-lightbox-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:var(--red);
  border:3px solid var(--gold);
  box-shadow:4px 4px 0 #6e0b0e;
  cursor:pointer
}

.calf-patch-lightbox-close{
  position:absolute;
  z-index:2;
  top:10px;
  right:10px;
  width:46px;
  height:46px;
  font-size:31px;
  line-height:1
}

.calf-patch-lightbox-nav{
  width:48px;
  height:64px;
  font-size:39px;
  line-height:1
}

.calf-patch-lightbox-nav:disabled,
.calf-patch-lightbox-nav[hidden]{
  display:none!important
}

.calf-patch-lightbox-close:hover,
.calf-patch-lightbox-nav:hover{
  background:#8f1518
}

.calf-legal-notice > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.calf-legal-notice p {
  margin: 0 0 8px !important;
}

.calf-legal-list {
  margin: 0;
  padding-left: 1.35em !important;
}

.calf-legal-list li {
  margin: 5px 0;
}


/* 패치 소개 + 주요 변경 내용 통합 */
.calf-patch-changes-inline {
  margin-top: .45em;
}

.calf-patch-changes-inline .calf-change-list {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
}

.calf-change-list > li {
  margin: 7px 0;
}

.calf-change-list > .calf-change-group {
  margin: 10px 0 13px;
}

.calf-change-group-title {
  font-weight: 700;
}

.calf-change-sublist {
  margin: 5px 0 0 !important;
  padding-left: 1.35em !important;
  list-style: none !important;
}

.calf-change-sublist > li {
  position: relative;
  margin: 4px 0;
  padding-left: .15em;
}

.calf-change-sublist > li::before {
  content: "-";
  position: absolute;
  left: -1.05em;
  top: 0;
  font-weight: 700;
}

.calf-patch-prose > p:last-of-type {
  margin-bottom: .55em;
}

/* GitHub Pages web patcher article area */
.rompatcher-note {
  margin: 18px 0;
  padding: 14px 16px;
  background: #fff5d6;
  border: 3px solid var(--gold);
  box-shadow: 4px 4px 0 rgba(212,175,55,.45);
}

.calf-rompatcher-box {
  position: relative;
  z-index: 1;
  margin: 20px 0;
  padding: 12px;
  background: #fffdf8;
  border: 4px solid var(--red);
  box-shadow: 6px 6px 0 var(--gold);
}

.calf-rompatcher-box h2 {
  margin-top: 0;
}

.calf-patcher-frame-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  overflow: hidden;
  background: var(--cream);
  border: 3px solid var(--line);
  border-radius: 8px;
}

.calf-patcher-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 720px;
  min-height: 0;
  border: 0;
  overflow: hidden;
  background: var(--cream);
}

.calf-patcher-fallback {
  margin: 12px 0 0 !important;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.calf-patcher-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-left: 6px;
  padding: 7px 12px;
  color: #fff !important;
  background: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--red-dark);
  text-decoration: none !important;
}

.calf-patcher-open:hover {
  color: var(--ink) !important;
  background: var(--gold);
}

.admin-tools {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
}

.admin-tools a {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--gold);
  padding: 5px 8px;
}

.comment-wrap,
.guestbook-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed rgba(178,34,34,.28);
  font-family: var(--community-font) !important;
  font-size: 15px;
  line-height: 1.75;
}

.comment-wrap *,
.guestbook-wrap * {
  font-family: var(--community-font) !important;
}

/* 댓글·방명록 작성자 이름 */
.comment-wrap .tt-link-user,
.guestbook-wrap .tt-link-user {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}

/* 긴 URL과 붙어 있는 문자열이 본문 밖으로 넘치지 않게 처리 */
.comment-wrap a,
.guestbook-wrap a {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* 댓글은 개별 게시글(#tt-body-page)에서만 표시 */
#tt-body-index .comment-wrap,
#tt-body-category .comment-wrap,
#tt-body-search .comment-wrap,
#tt-body-tag .comment-wrap,
#tt-body-archive .comment-wrap {
  display: none !important;
}


/* 댓글·방명록 익명 캐릭터 아바타 */
.comment-wrap .tt-thumbnail.calf-random-comment-avatar,
.guestbook-wrap .tt-thumbnail.calf-random-comment-avatar,
.comment-wrap img.calf-random-comment-avatar,
.guestbook-wrap img.calf-random-comment-avatar {
  background-color: #fffdf8 !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  border: 2px solid var(--gold) !important;
  box-shadow: 0 2px 0 rgba(143,22,22,.32) !important;
  image-rendering: pixelated;
}

.comment-wrap img.calf-random-comment-avatar,
.guestbook-wrap img.calf-random-comment-avatar {
  object-fit: contain !important;
  object-position: center !important;
}

.comment-wrap .tt-item-reply .calf-random-comment-avatar,
.guestbook-wrap .tt-item-reply .calf-random-comment-avatar {
  overflow: hidden;
}

@media (max-width: 520px) {
  .comment-wrap .tt-thumbnail.calf-random-comment-avatar,
  .guestbook-wrap .tt-thumbnail.calf-random-comment-avatar,
  .comment-wrap img.calf-random-comment-avatar,
  .guestbook-wrap img.calf-random-comment-avatar {
    border-width: 1px !important;
  }
}

/* Tistory guestbook/comment form */
.guestbook-wrap textarea,
.guestbook-wrap input[type="text"],
.guestbook-wrap input[type="password"],
.comment-wrap textarea,
.comment-wrap input[type="text"],
.comment-wrap input[type="password"],
.fc-input,
.search-input {
  width: 100%;
  padding: 9px 10px;
  border: 2px solid var(--line) !important;
  border-radius: 4px !important;
  background: #fffdf8 !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 14px !important;
}

.guestbook-wrap textarea,
.comment-wrap textarea {
  min-height: 110px;
}

.guestbook-wrap button,
.guestbook-wrap input[type="submit"],
.comment-wrap button,
.comment-wrap input[type="submit"],
.fc-button {
  background: var(--red) !important;
  color: #fff !important;
  border: 2px solid var(--gold) !important;
  border-radius: 6px !important;
  padding: 8px 13px !important;
  font-family: inherit !important;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--red-dark);
}

/* Post list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.post-item {
  margin: 0;
}

.post-item a {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 2px solid var(--line);
  padding: 10px;
  border-radius: 4px;
}

.post-item a:hover {
  text-decoration: none;
  border-color: var(--gold);
}

.thumb {
  width: 76px;
  height: 56px;
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1b130f;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.thumb.is-image {
  background: #1b130f;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0 !important;
  box-shadow: none !important;
  image-rendering: pixelated;
}

.thumb-media-icon {
  display: block;
  width: 48px !important;
  height: 38px !important;
  color: currentColor;
}

.thumb-media-icon * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.thumb.media-cd {
  color: #f6e3a5;
}

.thumb.media-card {
  color: #fff1c2;
}

.thumb.media-cartridge {
  color: var(--gold);
}

.post-text strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
}

.post-text em {
  display: block;
  margin-top: 3px;
  color: var(--red);
  font-size: 12px;
  font-style: normal;
}

/* Sidebar */
.fc-sidebar {
  grid-column: 2;
  display: block !important;
  visibility: visible !important;
  width: 220px;
  max-width: 220px;
  min-width: 220px;
  background: var(--cream);
  border-left: 4px solid var(--red);
  padding: 12px 0 12px 16px;
  align-self: start;
  position: sticky;
  top: 12px;
  z-index: 5;
}

#tt-body-index .fc-sidebar,
#tt-body-category .fc-sidebar,
#tt-body-page .fc-sidebar,
#tt-body-guestbook .fc-sidebar,
#tt-body-tag .fc-sidebar,
#tt-body-search .fc-sidebar {
  display: block !important;
  visibility: visible !important;
}

.side-box {
  margin-bottom: 16px;
}

.side-title {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.category-list,
.links {
  padding: 0;
  margin: 6px 0 12px;
  list-style: none;
}

.category-list li,
.links li {
  list-style: none;
  position: relative;
  margin: 7px 0;
  font-size: 13px;
  line-height: 1.25;
}

.links li {
  padding-left: 22px;
}

.links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #222;
  box-shadow: -6px 0 #222, 6px 0 #222, 0 -6px #222, 0 6px #222;
  border: 1px solid #444;
  border-radius: 1px;
}

/* Manual category */
.manual-category-panel {
  margin-bottom: 18px;
}

.manual-category-panel .main-category {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}

.manual-category-panel .main-category li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.manual-category-panel .main-category a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 9px;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(212, 175, 55, .65);
}

.manual-category-panel .main-category a:hover {
  border-color: var(--gold);
  color: var(--red);
  text-decoration: none;
  transform: translateY(-1px);
}

.cat-patch .side-cat-icon {
  color: var(--red);
}

.cat-next .side-cat-icon {
  color: #9a7b13;
}


.cat-history .side-cat-icon {
  color: var(--red);
}

.cat-guestbook .side-cat-icon {
  color: var(--red);
}

.cat-label {
  display: inline-block;
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.2;
}

.cat-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.raw-category-counts {
  display: none !important;
}

/* Admin write/manage */
.admin-panel[hidden] {
  display: none !important;
}

.admin-panel {
  display: flex;
  gap: 8px;
}

.admin-panel.is-owner-visible {
  display: flex;
}

.admin-btn {
  flex: 1 1 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--red-dark);
}

.admin-btn:hover {
  color: var(--ink);
  background: var(--gold);
  text-decoration: none;
}

/* Search without title */
.search-panel {
  margin-top: 12px;
}

.search-input {
  min-height: 39px;
}

/* Links without title */
.link-panel .links {
  margin-top: 0;
}

.tistory-subscribe-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.tistory-subscribe-row .tistory-home-link {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.calf-subscribe-proxy[hidden] {
  display: none !important;
}

.calf-subscribe-proxy {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 30px;
  padding: 5px 8px;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--red-dark);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.calf-subscribe-proxy:hover {
  color: var(--ink);
  background: var(--gold);
}

.calf-subscribe-proxy.is-subscribed {
  color: var(--ink);
  background: #fff5d6;
}

/* Count without title */
.counter-box p {
  margin: 4px 0;
  font-size: 12px;
  color: var(--muted);
}

/* Paging */
.paging {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.page-btn {
  padding: 7px 11px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.no-more-prev,
.no-more-next {
  opacity: .35;
  pointer-events: none;
}

/* Recent */
.recent-box {
  margin-top: 24px;
}

.recent-box h3 {
  font-size: 16px;
  border-top: 4px solid var(--red);
  padding-top: 12px;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-grid a {
  display: block;
  background: #fff;
  border: 2px solid var(--line);
}

.recent-thumb-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0 !important;
  background: #f0e6d6;
}

.recent-thumb-wrap img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f0e6d6;
}

.recent-thumb-image {
  z-index: 2;
}

.recent-title {
  display: block;
  padding: 8px;
  font-size: 12px;
}


/* Back to top */
.calf-back-to-top {
  position: fixed;
  right: max(20px, calc((100vw - 1100px) / 2 + 4px));
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow:
    0 3px 0 var(--red-dark),
    0 8px 20px rgba(58,31,11,.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.92);
  transition:
    opacity .16s ease,
    visibility .16s ease,
    transform .16s ease,
    background-color .12s ease;
}

.calf-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.calf-back-to-top:hover {
  color: var(--ink);
  background: var(--gold);
}

.calf-back-to-top:active {
  transform: translateY(2px) scale(.98);
  box-shadow:
    0 1px 0 var(--red-dark),
    0 4px 12px rgba(58,31,11,.18);
}

.calf-back-to-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.calf-back-to-top svg {
  width: 27px !important;
  height: 27px !important;
}

.calf-back-to-top svg * {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

@media (prefers-reduced-motion: reduce) {
  .calf-back-to-top {
    transition: none;
  }
}

/* Footer */
.fc-footer {
  background: var(--cream);
  text-align: center;
  padding: 14px 12px;
  border-top: 4px solid var(--red);
  margin-top: 22px;
}

.fc-footer p {
  font-size: 12px;
  color: var(--ink);
  margin: 4px 0;
}

.fc-footer p:first-child {
  color: rgba(58,31,11,.45);
  animation: blink 1s steps(1,end) infinite;
}

@keyframes blink {
  0%, 48% {
    opacity: 1;
  }

  49%, 100% {
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .site {
    padding: 8px;
  }

  .content-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .fc-main {
    grid-column: 1;
  }

  .fc-sidebar {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-left: none;
    border-top: 4px solid var(--red);
    padding: 14px 0 0;
    position: static;
  }

  .nav-btn {
    padding: 8px 10px;
    font-size: 13px;
  }

  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .fc-header {
    margin-right: 4px;
    margin-bottom: 4px;
    border-width: 3px;
    box-shadow:
      4px 4px 0 var(--gold),
      inset 0 -2px 0 rgba(0,0,0,.12);
  }

  .header-scene-overlay {
    top: 50%;
    width: 94%;
  }

  .header-scene-title {
    font-size: clamp(20px, 8vw, 34px);
    text-shadow:
      2px 2px 0 #000,
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000;
  }

  .header-scene-subtitle {
    margin-top: 6px;
    font-size: clamp(9px, 3.2vw, 13px);
  }


  .fc-nav {
    gap: 7px;
  }

  .nav-btn {
    flex: 1 1 calc(50% - 7px);
    justify-content: center;
  }

  .fc-card {
    padding: 14px;
  }

  .page-title,
  .entry-title {
    font-size: 24px;
  }

  .post-item a {
    align-items: flex-start;
  }

  .thumb {
    width: 68px;
    height: 51px;
    flex-basis: 68px;
  }

  .calf-rompatcher-box {
    padding: 10px;
  }

  .calf-patcher-frame {
    height: 760px;
    min-height: 0;
  }

  .calf-patch-cover {
    margin-bottom: 24px;
    padding: 5px;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--gold);
  }

  .calf-patch-info-table th {
    width: 112px;
  }

  .calf-hash-value {
    font-size: 11px;
  }

  .calf-patcher-open {
    display: flex;
    margin: 8px 0 0;
  }

  .recent-grid {
    grid-template-columns: 1fr;
  }

  .calf-back-to-top {
    right: 12px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }

  .calf-back-to-top svg {
    width: 24px !important;
    height: 24px !important;
  }
}


/* =========================================================
   티스토리 글 하단 CALF STATION 네임카드
   왼쪽 텍스트 / 중앙 카트리지 / 오른쪽 쿠니오
   ========================================================= */
html body div[data-tistory-react-app="Namecard"] {
  position: relative !important;
  min-height: 260px !important;
  margin: 24px 0 30px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 4px solid var(--red) !important;
  background: transparent !important;
  box-shadow: 6px 6px 0 var(--gold) !important;
}

/* 중앙 카트리지 이미지 */
html body div[data-tistory-react-app="Namecard"]::before {
  content: "";
  position: absolute;
  z-index: 4;
  left: 54%;
  top: 50%;
  width: 220px;
  height: 150px;
  transform: translate(-50%, -50%);
  background-image: url("./images/Calfstation_header.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  image-rendering: pixelated;
  pointer-events: none;
}

/* Famicom Pulse Line — 네임카드 저농도 배경 장식 */
html body div[data-tistory-react-app="Namecard"]::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background-image: url("./images/Famicom_Pulse_Line_Namecard.png");
  background-repeat: no-repeat;
  background-position: center 54%;
  background-size: cover;
  opacity: .12;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* 실제 네임카드 내부 */
html body div[data-tistory-react-app="Namecard"] > div,
html body div[data-tistory-react-app="Namecard"] .tt_box_namecard {
  position: relative !important;
  z-index: 2 !important;
  min-height: 252px !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* 왼쪽 텍스트는 카트리지보다 위에 표시 */
html body div[data-tistory-react-app="Namecard"]
.tt_box_namecard > * {
  position: relative;
  z-index: 5;
}

/*
 * 쿠니오 슬롯.
 * 이미지에 300px을 줘도 작았던 원인은 부모 요소가 기존 크기로
 * 고정되어 있거나 overflow로 잘랐기 때문입니다.
 */
html body div[data-tistory-react-app="Namecard"]
.calf-namecard-avatar-slot {
  position: absolute !important;
  z-index: 6 !important;
  right: 42px !important;
  top: 50% !important;
  width: 104px !important;
  min-width: 104px !important;
  max-width: none !important;
  height: 104px !important;
  min-height: 104px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 4px !important;
  transform: translateY(-50%) !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 쿠니오 실제 이미지 */
html body div[data-tistory-react-app="Namecard"]
img.calf-namecard-avatar {
  display: block !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: none !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  image-rendering: pixelated;
}

/* 모바일에서는 제목·아이콘 위쪽, 카트리지는 아래 중앙 */
@media (max-width: 620px) {
  html body div[data-tistory-react-app="Namecard"] {
    min-height: 238px !important;
  }

  html body div[data-tistory-react-app="Namecard"]::before {
    left: 50%;
    top: 69%;
    width: 134px;
    height: 92px;
  }

  html body div[data-tistory-react-app="Namecard"]::after {
    background-position: 62% center;
    background-size: auto 100%;
    opacity: .09;
  }

  html body div[data-tistory-react-app="Namecard"] > div,
  html body div[data-tistory-react-app="Namecard"] .tt_box_namecard {
    min-height: 230px !important;
  }

  html body div[data-tistory-react-app="Namecard"]
  .calf-namecard-avatar-slot {
    right: 18px !important;
    top: 28px !important;
    width: 70px !important;
    min-width: 70px !important;
    height: 70px !important;
    min-height: 70px !important;
    padding: 3px !important;
    transform: none !important;
  }

  html body div[data-tistory-react-app="Namecard"]
  img.calf-namecard-avatar {
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
  }
}

/* =========================================================
   NEXT..? 한글화 프로젝트 진행률 대시보드
   ========================================================= */
.calf-next-project{display:none!important}
.calf-next-dashboard .post-list.calf-next-progress-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  justify-content:stretch;
  align-items:stretch;
  gap:18px;
  margin-top:12px
}
.calf-next-progress-list .post-item{min-width:0;margin:0}
.calf-next-progress-list .calf-next-project-card{
  position:relative;isolation:isolate;display:block;min-height:330px;
  padding:0;overflow:hidden;color:var(--ink);background:var(--paper);
  border:4px solid var(--red);border-radius:0;
  box-shadow:6px 6px 0 var(--gold);text-decoration:none!important;
  transition:transform .12s ease,box-shadow .12s ease
}
.calf-next-progress-list .calf-next-project-card:hover{
  color:var(--ink);border-color:var(--red);
  box-shadow:8px 8px 0 var(--gold);transform:translate(-2px,-2px);
  text-decoration:none!important
}
.calf-next-project-bg{
  position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;
  margin:0!important;border:0!important;box-shadow:none!important;
  object-fit:cover;object-position:center;opacity:.15;
  filter:saturate(.9) contrast(1.05);image-rendering:pixelated;
  will-change:transform;
  transition:
    transform .24s cubic-bezier(.22,.72,.2,1),
    filter .2s ease-out
}
.calf-next-project-shade{
  position:absolute;z-index:1;inset:0;
  background:linear-gradient(180deg,rgba(255,253,248,.06) 0%,rgba(255,253,248,.10) 48%,rgba(255,253,248,.18) 100%);
  pointer-events:none
}
.calf-next-project-content{
  position:relative;z-index:2;display:flex;flex-direction:column;
  min-height:322px;padding:18px
}
.calf-next-project-kicker{
  display:inline-flex;align-self:flex-start;margin-bottom:13px;padding:4px 7px;
  color:#fff;background:var(--red);border-left:4px solid var(--gold);
  font-size:10px;line-height:1.25;letter-spacing:.04em;text-shadow:1px 1px 0 #000
}
.calf-next-project-title{
  display:block;min-height:3.2em;margin-bottom:20px;font-size:20px;
  font-weight:400;line-height:1.55;overflow-wrap:anywhere;word-break:keep-all;
  text-shadow:0 1px 0 rgba(255,255,255,.95),1px 0 0 rgba(255,255,255,.85)
}
.calf-next-progress-group{display:grid;gap:17px}
.calf-next-progress-row{display:block}
.calf-next-progress-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-bottom:7px;font-size:13px
}
.calf-next-progress-label{font-weight:700}
.calf-next-progress-value{color:var(--red);font-size:13px}
.calf-next-progress-track{
  position:relative;display:block;width:100%;height:18px;overflow:hidden;
  background:repeating-linear-gradient(90deg,#f7ecd3 0 13px,#f0ddb2 13px 15px);
  border:2px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)
}
.calf-next-progress-fill{display:block;width:0;height:100%;min-width:0;transition:width .35s ease}
.calf-next-progress-fill.is-analysis{
  background:repeating-linear-gradient(90deg,var(--red) 0 13px,var(--red-dark) 13px 15px)
}
.calf-next-progress-fill.is-translation{
  background:repeating-linear-gradient(90deg,var(--gold) 0 13px,#b88c16 13px 15px)
}
.calf-next-project-footer{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:10px;margin-top:auto;padding-top:22px
}
.calf-next-test-badge{
  display:inline-flex;align-items:center;min-height:30px;padding:5px 8px;
  border:2px solid var(--line);font-size:11px;line-height:1.2;white-space:nowrap
}
.calf-next-test-badge.is-pending{color:var(--muted);background:#f4eee2}
.calf-next-test-badge.is-progress{color:var(--ink);background:#fff0a8;border-color:var(--gold)}
.calf-next-test-badge.is-complete{color:#276b37;background:#e7f6e9;border-color:#65a874}
.calf-next-project-link{
  display:grid;justify-items:end;gap:3px;color:var(--red);
  font-size:11px;line-height:1.25;text-align:right
}
.calf-next-project-date{color:var(--muted);font-size:10px}
.calf-next-progress-list .post-item.is-next-loading{opacity:.72}
.calf-next-progress-list .post-item:not(.calf-next-project-item){grid-column:1/-1}
.calf-next-progress-list .post-item:not(.calf-next-project-item)>a{min-height:auto}
@media(max-width:900px){
  .calf-next-dashboard .post-list.calf-next-progress-list{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .calf-next-progress-list .calf-next-project-card{min-height:310px}
  .calf-next-project-content{min-height:302px}
}
@media(max-width:520px){
  .calf-next-dashboard .post-list.calf-next-progress-list{grid-template-columns:1fr;gap:16px}
  .calf-next-progress-list .calf-next-project-card{min-height:300px}
  .calf-next-project-content{min-height:292px;padding:16px}
  .calf-next-project-title{min-height:0;margin-bottom:18px;font-size:19px}
  .calf-next-project-footer{align-items:center}
}


/* =========================================================
   NEXT 티스토리 공식 대표 이미지 데이터
   ========================================================= */
.calf-next-native-thumbnail {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* =========================================================
   NEXT..? 프로젝트 / 히스토리 + 고정 패치 아카이브 V6.18.16
   ========================================================= */

.calf-next-tab-dashboard{
  margin-top:18px
}

.calf-next-tab-buttons{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:22px
}

.calf-next-tab-button{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:10px 14px;
  color:var(--red);
  background:var(--paper);
  border:3px solid var(--red);
  box-shadow:4px 4px 0 var(--gold);
  font-family:inherit;
  font-size:14px;
  cursor:pointer;
  transition:
    color .16s ease,
    background .16s ease,
    transform .16s ease,
    box-shadow .16s ease
}

.calf-next-tab-button:hover{
  transform:translate(-1px,-1px);
  box-shadow:5px 5px 0 var(--gold)
}

.calf-next-tab-button.is-active{
  color:#fff;
  background:var(--red);
  text-shadow:1px 1px 0 #000
}

.calf-next-tab-button strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:28px;
  padding:0 7px;
  color:var(--red);
  background:var(--gold);
  border:2px solid #fff1ac;
  border-radius:999px;
  font-size:11px;
  text-shadow:none
}

.calf-next-tab-viewport{
  position:relative;
  overflow:hidden;
  touch-action:pan-y;
  transition:height .34s ease
}

.calf-next-tab-track{
  display:flex;
  align-items:flex-start;
  width:100%;
  will-change:transform
}

.calf-next-tab-panel{
  flex:0 0 100%;
  min-width:0;
  padding:2px 3px 10px
}

.calf-next-panel-heading{
  margin-bottom:18px;
  padding-bottom:15px;
  border-bottom:2px solid var(--line)
}

.calf-next-panel-kicker{
  display:inline-flex;
  margin-bottom:9px;
  padding:5px 8px;
  color:#fff;
  background:var(--red);
  border-left:4px solid var(--gold);
  font-size:10px;
  line-height:1.2;
  letter-spacing:.05em;
  text-shadow:1px 1px 0 #000
}

.calf-next-panel-title-row{
  display:flex;
  align-items:center;
  gap:10px
}

.calf-next-panel-title-row h3{
  margin:0;
  font-size:23px;
  font-weight:700;
  line-height:1.35
}

.calf-next-panel-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:29px;
  height:29px;
  padding:0 7px;
  color:#fff;
  background:var(--red);
  border:2px solid var(--gold);
  border-radius:999px;
  font-size:11px
}

.calf-next-panel-heading p,
.calf-next-release-header p{
  margin:7px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.6
}

/* 탭 아래에 항상 고정되는 배포 완료 패치 */
.calf-next-release-archive{
  margin-top:30px;
  padding-top:24px;
  border-top:4px solid var(--red)
}

.calf-next-release-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:19px
}

.calf-next-completed-all{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 13px;
  color:var(--red);
  background:var(--paper);
  border:2px solid var(--line);
  box-shadow:3px 3px 0 var(--gold);
  font-size:12px;
  text-decoration:none!important;
  white-space:nowrap;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    color .12s ease,
    background .12s ease
}

.calf-next-completed-all:hover{
  color:#fff;
  background:var(--red);
  border-color:var(--red);
  box-shadow:5px 5px 0 var(--gold);
  transform:translate(-2px,-2px)
}

.calf-next-project-empty,
.calf-next-completed-loading{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:150px;
  padding:28px 18px;
  color:var(--muted);
  background:rgba(255,253,248,.52);
  border:2px dashed var(--line);
  text-align:center
}

/* 프로젝트·히스토리: PC 3장 / 태블릿 2장 / 모바일 1장 */
.calf-next-project-page-grid,
.calf-next-history-page-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:18px;
  width:100%;
  margin:0;
  padding:3px 8px 10px;
  list-style:none
}

/* 패치 아카이브: PC 3열 x 2행 = 6장 */
.calf-next-completed-page-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:20px;
  width:100%;
  margin:0;
  padding:3px 8px 12px
}

.calf-next-swipe-pager{
  min-width:0
}

.calf-next-swipe-viewport{
  overflow:hidden;
  cursor:grab;
  touch-action:pan-y;
  user-select:none
}

.calf-next-swipe-viewport.is-dragging{
  cursor:grabbing
}

.calf-next-swipe-track{
  display:flex;
  width:100%;
  will-change:transform
}

.calf-next-swipe-page{
  flex:0 0 100%;
  min-width:0
}

.calf-next-swipe-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  margin-top:17px
}

.calf-next-swipe-arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  color:#fff;
  background:var(--red);
  border:2px solid var(--gold);
  border-radius:999px;
  box-shadow:2px 2px 0 rgba(119,59,0,.36);
  font-family:Arial,sans-serif;
  font-size:25px;
  line-height:1;
  cursor:pointer
}

.calf-next-swipe-arrow:disabled{
  opacity:.3;
  cursor:default
}

.calf-next-swipe-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px
}

.calf-next-swipe-dot{
  width:10px;
  height:10px;
  padding:0;
  background:#ead8b3;
  border:2px solid #c9a462;
  border-radius:999px;
  cursor:pointer;
  transition:
    width .2s ease,
    background .2s ease,
    border-color .2s ease
}

.calf-next-swipe-dot.is-active{
  width:27px;
  background:var(--red);
  border-color:var(--gold)
}

.calf-next-swipe-viewport img,
.calf-next-swipe-viewport a{
  -webkit-user-drag:none
}

/* 진행률 프로젝트 카드: 정보판이므로 클릭하지 않음 */
.calf-next-project-page-grid .post-item{
  min-width:0;
  margin:0
}

.calf-next-project-page-grid
.calf-next-project-card{
  position:relative;
  isolation:isolate;
  display:block;
  min-height:330px;
  padding:0;
  overflow:hidden;
  color:var(--ink);
  background:var(--paper);
  border:3px solid var(--red);
  box-shadow:6px 6px 0 var(--gold);
  cursor:default;
  text-decoration:none!important
}

.calf-next-project-page-grid
.calf-next-project-card.is-static{
  will-change:
    transform,
    box-shadow;
  transition:
    transform .2s cubic-bezier(.22,.72,.2,1),
    box-shadow .2s cubic-bezier(.22,.72,.2,1),
    border-color .18s ease-out,
    filter .2s ease-out
}

.calf-next-project-page-grid
.calf-next-project-card.is-static:hover{
  color:var(--ink);
  border-color:#9f1014;
  box-shadow:
    9px 9px 0 var(--gold),
    0 0 0 2px #fff3b0;
  transform:translate(-3px,-3px);
  filter:saturate(1.08) contrast(1.025)
}

.calf-next-project-page-grid
.calf-next-project-card.is-static:hover
.calf-next-project-bg{
  transform:scale(1.025);
  filter:
    saturate(1.1)
    contrast(1.04)
}

.calf-next-project-link.is-date-only{
  justify-content:flex-end;
  pointer-events:none
}

/* 테스트 진행 중일 때만 점멸 */
@keyframes calfNextTestingPulse{
  0%,100%{
    color:#fffdf2;
    background:#b7191f;
    border-color:#f1c232;
    box-shadow:
      3px 3px 0 #6f090d,
      inset 0 0 0 2px rgba(255,255,255,.12),
      0 0 0 0 rgba(241,194,50,0);
    text-shadow:
      1px 1px 0 #5e070b
  }

  50%{
    color:#381900;
    background:#f4c430;
    border-color:#9f1014;
    box-shadow:
      3px 3px 0 #9f1014,
      inset 0 0 0 2px #fff2a8,
      0 0 0 5px rgba(244,196,48,.28);
    text-shadow:
      1px 1px 0 rgba(255,255,255,.52)
  }
}

.calf-next-test-badge.is-progress{
  font-weight:700;
  letter-spacing:.03em;
  animation:
    calfNextTestingPulse
    1.15s
    steps(2,end)
    infinite
}

/* 프로젝트 히스토리 카드 */
.calf-next-history-item{
  min-width:0;
  margin:0
}

.calf-next-history-card{
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
  color:var(--ink);
  background:var(--paper);
  border:3px solid var(--red);
  box-shadow:6px 6px 0 var(--gold);
  text-decoration:none!important;
  transition:
    transform .14s ease,
    box-shadow .14s ease
}

.calf-next-history-card:hover{
  color:var(--ink);
  box-shadow:8px 8px 0 var(--gold);
  transform:translate(-2px,-2px);
  text-decoration:none!important
}

.calf-next-history-media{
  position:relative;
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:
    linear-gradient(
      135deg,
      #f4ead6,
      #fffdf8 60%,
      #ecd9b6
    );
  border-bottom:2px solid var(--line)
}

.calf-next-history-image{
  display:block;
  width:100%;
  height:100%;
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
  object-fit:cover;
  object-position:center;
  transition:
    transform .2s ease,
    filter .2s ease
}

.calf-next-history-card:hover
.calf-next-history-image{
  transform:scale(1.025);
  filter:saturate(1.05) contrast(1.03)
}

.calf-next-history-kicker{
  position:absolute;
  z-index:2;
  top:10px;
  left:10px;
  padding:6px 8px;
  color:#fff;
  background:var(--red);
  border-left:4px solid var(--gold);
  font-size:9px;
  line-height:1.1;
  text-shadow:1px 1px 0 #000
}

.calf-next-history-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  color:rgba(178,34,34,.62);
  font-size:19px;
  letter-spacing:.08em
}

.calf-next-history-body{
  display:flex;
  flex:1;
  flex-direction:column;
  min-height:190px;
  padding:16px
}

.calf-next-history-title{
  display:-webkit-box;
  overflow:hidden;
  font-size:17px;
  font-weight:700;
  line-height:1.55;
  word-break:keep-all;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2
}

.calf-next-history-excerpt{
  display:-webkit-box;
  margin-top:12px;
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  line-height:1.65;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3
}

.calf-next-history-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
  padding-top:15px;
  border-top:1px solid var(--line);
  font-size:11px
}

.calf-next-history-date{
  color:var(--muted)
}

.calf-next-history-go{
  color:var(--red);
  font-weight:700;
  white-space:nowrap
}

/* 배포 완료 카드 */
.calf-next-completed-item{
  min-width:0;
  margin:0
}

.calf-next-completed-card{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
  color:var(--ink);
  background:var(--paper);
  border:3px solid var(--red);
  box-shadow:6px 6px 0 var(--gold);
  text-decoration:none!important;
  transition:
    transform .12s ease,
    box-shadow .12s ease
}

.calf-next-completed-card:hover{
  color:var(--ink);
  box-shadow:8px 8px 0 var(--gold);
  transform:translate(-2px,-2px);
  text-decoration:none!important
}

.calf-next-completed-media{
  position:relative;
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:
    linear-gradient(
      135deg,
      #f5ead3,
      #fffdf8 60%,
      #ead2a6
    );
  border-bottom:2px solid var(--line)
}

.calf-next-completed-image{
  display:block;
  width:100%;
  height:100%;
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
  object-fit:cover;
  object-position:center;
  transition:
    transform .2s ease,
    filter .2s ease
}

.calf-next-completed-card:hover
.calf-next-completed-image{
  transform:scale(1.025);
  filter:saturate(1.06) contrast(1.03)
}

.calf-next-completed-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  color:var(--red);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(190,35,35,.05) 0 2px,
      transparent 2px 7px
    )
}

.calf-next-completed-placeholder svg{
  width:72px;
  fill:none;
  stroke:currentColor;
  stroke-width:2
}

.calf-next-completed-media.is-image-missing::before{
  content:"NO IMAGE";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:11px
}

.calf-next-completed-badge{
  position:absolute;
  z-index:2;
  top:10px;
  right:10px;
  display:grid;
  gap:2px;
  min-width:108px;
  padding:7px 9px;
  color:#3b2200;
  background:
    linear-gradient(
      180deg,
      #ffd75d,
      #e9af21
    );
  border:2px solid #a86e08;
  box-shadow:
    3px 3px 0 rgba(74,34,0,.48);
  line-height:1.15;
  text-align:center
}

.calf-next-completed-badge strong{
  font-size:11px
}

.calf-next-completed-badge small{
  font-size:8px;
  letter-spacing:.04em
}

.calf-next-completed-body{
  display:flex;
  flex:1;
  flex-direction:column;
  min-height:178px;
  padding:16px
}

.calf-next-completed-title{
  display:-webkit-box;
  min-height:3.2em;
  overflow:hidden;
  font-size:17px;
  font-weight:700;
  line-height:1.6;
  word-break:keep-all;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2
}

.calf-next-completed-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:15px;
  color:var(--muted);
  font-size:11px
}

.calf-next-completed-date,
.calf-next-completed-comment{
  display:inline-flex;
  align-items:center;
  gap:5px
}

.calf-next-completed-date svg,
.calf-next-completed-comment svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8
}

.calf-next-completed-go{
  display:flex;
  justify-content:flex-end;
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid var(--line);
  color:var(--red);
  font-size:12px;
  font-weight:700
}

/* 한글 패치 카테고리 자체도 같은 아카이브 카드 */
.calf-patch-archive-page{
  overflow:hidden
}

.calf-patch-archive-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:10px 0 22px;
  padding-bottom:16px;
  border-bottom:3px solid var(--red)
}

.calf-patch-archive-summary p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.65
}

.calf-patch-category-archive-host{
  min-width:0
}

@media(max-width:900px){
  .calf-next-project-page-grid,
  .calf-next-history-page-grid,
  .calf-next-completed-page-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr))
  }
}

@media(max-width:620px){
  .calf-next-tab-buttons{
    gap:8px
  }

  .calf-next-tab-button{
    min-height:48px;
    padding:8px 7px;
    font-size:12px
  }

  .calf-next-tab-button strong{
    min-width:24px;
    height:24px;
    padding:0 6px;
    font-size:10px
  }

  .calf-next-panel-title-row h3{
    font-size:20px
  }

  .calf-next-release-header{
    align-items:stretch;
    flex-direction:column
  }

  .calf-next-completed-all{
    align-self:flex-start
  }

  .calf-next-project-page-grid,
  .calf-next-history-page-grid,
  .calf-next-completed-page-grid{
    grid-template-columns:1fr;
    gap:16px;
    padding:3px 6px 10px
  }

  .calf-next-swipe-controls{
    margin-top:14px
  }

  .calf-patch-archive-summary{
    align-items:flex-start;
    flex-direction:column
  }
}

@media(prefers-reduced-motion:reduce){
  .calf-next-test-badge.is-progress{
    animation:none
  }

  .calf-next-tab-track,
  .calf-next-swipe-track{
    transition:none!important
  }
}


/* 프로젝트 히스토리 카테고리 연동 V6.18.17 */
.calf-next-history-comment{
  color:var(--muted);
  white-space:nowrap
}

.calf-next-history-footer{
  flex-wrap:wrap
}

.calf-next-history-go{
  margin-left:auto
}

/* =========================================================
   V6.18.18 페이지당 카드 수
   진행 프로젝트 / 프로젝트 히스토리:
   PC 6개(3열 x 2행), 태블릿 4개, 모바일 3개
   ========================================================= */


/* =========================================================
   V6.18.19 NEXT 진행률 글 일반 목록 제외
   ========================================================= */

.list-card .post-list.is-calf-filtered-empty::after{
  content:"표시할 배포 글이나 프로젝트 작업기가 없습니다.";
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:150px;
  padding:24px;
  color:var(--muted);
  border:2px dashed var(--line);
  text-align:center
}

/* =========================================================
   V6.18.20
   NEXT 페이지에서도 하단 최근 게시물의 NEXT 글은 제외.
   NEXT 본문 진행률 현황판은 그대로 유지.
   ========================================================= */

/* =========================================================
   V6.18.22
   Hover는 부드러운 ease-out,
   테스트 점멸은 배지에만 적용.
   ========================================================= */



html:not(.calf-next-booting)
.calf-next-dashboard
.calf-next-tab-dashboard{
  animation:
    calfNextDashboardReveal
    .18s
    ease-out
    both
}

@media(prefers-reduced-motion:reduce){
  html:not(.calf-next-booting)
  .calf-next-dashboard
  .calf-next-tab-dashboard{
    animation:none
  }
}


/* =========================================================
   V6.18.24 NEXT 단순화
   ========================================================= */

.calf-next-project-only-dashboard{
  margin-top:18px
}

.calf-next-project-only-panel{
  width:100%;
  padding:2px 3px 10px
}

/* =========================================================
   V6.18.24 홈 전체 글: 한 화면 6개씩 드래그
   ========================================================= */

.calf-home-article-pager-host{
  min-width:0;
  margin-top:6px
}

.calf-home-article-page-grid{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  margin:0;
  padding:0;
  list-style:none
}

.calf-home-article-page-grid
.post-item{
  width:100%;
  min-width:0;
  margin:0
}

.calf-home-article-page-grid
.post-item > a{
  width:100%
}

.calf-home-article-dashboard
.calf-next-swipe-controls{
  margin-top:20px
}

html.calf-home-booting
.recent-box{
  visibility:visible!important
}


/* =========================================================
   V6.18.25 홈/프로젝트 히스토리 드래그 전환
   - 티스토리 숫자 페이지 제거
   - 좌우 화살표 제거
   - 전환 점만 표시
   ========================================================= */

html.calf-home-page #paging,
html.calf-history-page #paging{
  display:none!important
}

.calf-home-article-pager-host
.calf-next-swipe-arrow,
.calf-history-article-pager-host
.calf-next-swipe-arrow{
  display:none!important
}

.calf-home-article-pager-host
.calf-next-swipe-controls,
.calf-history-article-pager-host
.calf-next-swipe-controls{
  justify-content:center;
  gap:0;
  margin-top:18px
}

.calf-home-article-pager-host
.calf-next-swipe-dots,
.calf-history-article-pager-host
.calf-next-swipe-dots{
  margin:0 auto
}

.calf-history-article-pager-host{
  min-width:0;
  margin-top:6px
}

.calf-history-article-page-grid{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  margin:0;
  padding:0;
  list-style:none
}

.calf-history-article-page-grid
.post-item{
  width:100%;
  min-width:0;
  margin:0
}

.calf-history-article-page-grid
.post-item > a{
  width:100%
}

.calf-history-article-dashboard
.calf-next-swipe-controls{
  margin-top:18px
}

/* =========================================================
   V6.18.26 패치 미디어 갤러리 반응형
   ========================================================= */

@media(max-width:620px){
  .calf-patch-media-page-grid{
    gap:9px
  }

  .calf-patch-media-item{
    border-width:2px;
    box-shadow:3px 3px 0 var(--gold)
  }

  .calf-patch-media-zoom{
    right:5px;
    bottom:5px;
    width:30px;
    height:30px
  }

  .calf-patch-lightbox{
    padding:10px
  }

  .calf-patch-lightbox-dialog{
    grid-template-columns:38px minmax(0,1fr) 38px;
    width:calc(100vw - 20px);
    max-height:calc(100vh - 20px);
    padding:12px 6px
  }

  .calf-patch-lightbox-nav{
    width:34px;
    height:52px;
    font-size:30px
  }

  .calf-patch-lightbox-close{
    top:6px;
    right:6px;
    width:38px;
    height:38px;
    font-size:26px
  }

  .calf-patch-lightbox-image,
  .calf-patch-lightbox-video{
    max-height:calc(100vh - 92px)
  }
}

@media(prefers-reduced-motion:reduce){
  .calf-patch-media-item{
    transition:none
  }
}

/* =========================================================
   V6.18.27
   최대 8미디어: 동영상 1 + 이미지 7
   동영상이 있으면 1페이지 좌측 상단
   ========================================================= */

/* =========================================================
   V6.18.28
   - data-video1이 없으면 VIDEO 칸을 생성하지 않음
   - 이미지 팝업 목록에 동영상까지 포함
   - 팝업 동영상 재생/전체화면 지원
   ========================================================= */

