@charset "utf-8";

/* =========================================
   guest_up - 2NGTOKI 홈페이지 어울리는 방명록 스타일
========================================= */

#guest_up {
    --guest-red: #ef4444;
    --guest-red-dark: #dc3b3b;
    --guest-cream: rgba(255, 250, 235, 0.93);
    --guest-cream-2: rgba(255, 246, 214, 0.96);
    --guest-green: #8b962d;
    --guest-green-dark: #727c22;
    --guest-ink: #475569;
    --guest-muted: #8a8f98;
    --guest-line: rgba(71, 85, 105, 0.12);

    max-width: 920px;
    margin: 0 auto;
    padding: 26px 28px 40px;
    background: var(--guest-cream);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 34px;
    box-shadow:
        0 18px 40px rgba(120, 103, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    min-height: auto;
    position: relative;
    overflow: hidden;
}

#guest_up::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(239, 68, 68, 0.08) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.35;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 55%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 55%);
}

/* 헤더 */
.guest-header {
    position: relative;
    z-index: 1;
    padding-bottom: 18px;
}

.guest-title {
    margin: 0;
    line-height: 0.95;
    font-size: clamp(3.2rem, 8vw, 5.4rem);
    font-weight: 900;
    font-style: italic;
    font-family: 'Browpencil-namgim-Regular';
    letter-spacing: -3px;
    color: var(--guest-ink);
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5);
}

.guest-title span {
    color: rgba(71, 85, 105, 0.18);
}

/* 라벨 */
.guest-label {
    display: block;
    margin: 0 0 8px 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--guest-muted);
}

.guest-field {
    flex: 1;
}

/* =========================
   글쓰기 박스
========================= */
.guest-write-box {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(71, 85, 105, 0.08);
    border-radius: 28px;
    padding: 28px 30px 30px;
    margin-bottom: 28px;
    box-shadow:
        0 8px 20px rgba(71, 85, 105, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.75);
}

.guest-info {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.guest-input,
.secret-pw-area input,
.guest-pw-input,
.comment-input {
    border: 1px solid rgba(71, 85, 105, 0.08);
    background: rgba(255,255,255,0.72);
    color: var(--guest-ink);
    border-radius: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.guest-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
}

.guest-input:focus,
.secret-pw-area input:focus,
.guest-pw-input:focus,
.comment-input:focus,
.guest-textarea:focus {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
    background: rgba(255,255,255,0.92);
}

.guest-input::placeholder,
.secret-pw-area input::placeholder,
.guest-pw-input::placeholder,
.comment-input::placeholder,
.guest-textarea::placeholder {
    color: #a0a7b1;
}

.guest-textarea {
    width: 100%;
    min-height: 150px;
    padding: 18px 20px;
    border: 1px solid rgba(71, 85, 105, 0.08);
    border-radius: 20px;
    background: rgba(255,255,255,0.72);
    color: var(--guest-ink);
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
    line-height: 1.7;
}

/* secret + password */
.guest-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.guest-secret {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--guest-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guest-secret input[type="checkbox"] {
    width: 44px;
    height: 26px;
    cursor: pointer;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.15);
    position: relative;
    transition: all 0.2s ease;
}

.guest-secret input[type="checkbox"]::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
}

.guest-secret input[type="checkbox"]:checked {
    background: var(--guest-red);
}

.guest-secret input[type="checkbox"]:checked::after {
    left: 21px;
}

.secret-pw-area {
    flex: 1;
}

.secret-pw-area input {
    width: 100%;
    max-width: 180px;
    padding: 10px 12px;
    font-size: 13px;
}

/* 등록 버튼 */
.guest-submit-btn {
    width: 100%;
    margin-top: 22px;
    padding: 16px 26px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: var(--guest-green);
    color: #fff;
    box-shadow:
        0 5px 0 var(--guest-green-dark),
        0 10px 18px rgba(114, 124, 34, 0.18);

    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition:
        transform 0.16s ease,
        filter 0.16s ease,
        box-shadow 0.16s ease;
}

.guest-submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow:
        0 7px 0 var(--guest-green-dark),
        0 14px 22px rgba(114, 124, 34, 0.24);
}

.guest-submit-btn:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 var(--guest-green-dark),
        0 6px 12px rgba(114, 124, 34, 0.16);
}

/* 수정 폼 버튼 */
.guest-btn-wrap {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.guest-btn-wrap .guest-submit-btn {
    flex: 1;
    margin-top: 0;
}

.guest-cancel-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 16px;
    background: rgba(71, 85, 105, 0.08);
    color: var(--guest-muted);
    border: 1px solid rgba(71, 85, 105, 0.08);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.2s ease;
}

.guest-cancel-btn:hover {
    background: rgba(71, 85, 105, 0.14);
    color: var(--guest-ink);
}

/* =========================
   목록
========================= */
.guest-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guest-empty {
    text-align: center;
    padding: 72px 20px;
    color: var(--guest-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    background: rgba(255,255,255,0.35);
    border: 1px dashed rgba(71, 85, 105, 0.14);
    border-radius: 24px;
}

/* 개별 방명록 카드 */
.guest-item {
    background: rgba(255,255,255,0.46);
    border: 1px solid rgba(71, 85, 105, 0.08);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow:
        0 6px 16px rgba(71, 85, 105, 0.04),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.guest-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 24px rgba(71, 85, 105, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.85);
}

.guest-item.is-secret .guest-item-content {
    background: rgba(255,255,255,0.55);
    border: 1px dashed rgba(71, 85, 105, 0.12);
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 12px;
}

/* 헤더 */
.guest-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12px;
    flex-wrap: wrap;
}

.guest-name {
    font-weight: 900;
    color: var(--guest-ink);
    letter-spacing: 0.2px;
}

.guest-name .sv_member {
    color: var(--guest-ink);
}

.guest-secret-badge {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: var(--guest-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.guest-date {
    margin-left: auto;
    color: var(--guest-muted);
    font-size: 11px;
    font-family: inherit;
}

.guest-item-actions {
    margin-left: 6px;
    display: flex;
    gap: 10px;
}

.guest-edit,
.guest-delete {
    color: var(--guest-muted);
    font-size: 11px;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.guest-edit:hover {
    color: var(--guest-green);
}

.guest-delete:hover {
    color: var(--guest-red);
}

/* 내용 */
.guest-item-content {
    color: var(--guest-ink);
    line-height: 1.75;
    word-break: break-word;
    font-size: 14px;
    padding-left: 2px;
}

/* =========================
   비밀번호 입력 폼
========================= */
.guest-pw-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.guest-locked-msg {
    color: var(--guest-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.guest-pw-input {
    width: 130px;
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 10px;
}

.guest-pw-btn {
    padding: 9px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: var(--guest-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    transition: filter 0.2s ease;
}

.guest-pw-btn:hover {
    filter: brightness(1.04);
}

/* =========================
   댓글 목록
========================= */
.guest-comments {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 14px;
    border-left: 2px dashed rgba(71, 85, 105, 0.10);
}

.guest-comment {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(71, 85, 105, 0.06);
    border-radius: 16px;
    font-size: 13px;
}

.guest-comment::before {
    content: "↳";
    color: var(--guest-red);
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1.5;
}

.guest-comment .comment-name {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 900;
    color: var(--guest-ink);
}

.guest-comment .comment-content {
    flex: 1;
    color: var(--guest-muted);
    word-break: break-word;
    font-size: 12px;
    line-height: 1.6;
}

.guest-comment .comment-date {
    color: rgba(138, 143, 152, 0.85);
    font-size: 10px;
    flex-shrink: 0;
}

.guest-comment .comment-edit,
.guest-comment .comment-delete {
    color: var(--guest-muted);
    font-size: 10px;
    text-decoration: none;
    flex-shrink: 0;
    font-weight: 700;
    transition: color 0.2s ease;
}

.guest-comment .comment-edit:hover {
    color: var(--guest-green);
}

.guest-comment .comment-delete:hover {
    color: var(--guest-red);
}

/* 댓글 수정 폼 */
.guest-comment-edit-form {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(71, 85, 105, 0.06);
    border-radius: 16px;
    flex-wrap: wrap;
}

.comment-cancel-btn {
    padding: 10px 14px;
    background: rgba(71, 85, 105, 0.08);
    color: var(--guest-muted);
    border: 1px solid rgba(71, 85, 105, 0.08);
    border-radius: 12px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.comment-cancel-btn:hover {
    background: rgba(71, 85, 105, 0.14);
    color: var(--guest-ink);
}

/* 댓글 토글 */
.comment-toggle-btn {
    margin-top: 14px;
    padding: 0;
    background: transparent;
    color: var(--guest-muted);
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.comment-toggle-btn:hover {
    color: var(--guest-red);
}

/* 댓글 작성 폼 */
.guest-comment-form {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.comment-input {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 12px;
}

.comment-name-input,
.comment-pw-input {
    width: 96px;
}

.comment-content-input {
    flex: 1;
    min-width: 160px;
}

textarea.comment-content-input {
    resize: none;
    height: 40px;
    line-height: 1.5;
    font-family: inherit;
}

.comment-submit-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: var(--guest-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    transition:
        transform 0.16s ease,
        filter 0.16s ease;
}

.comment-submit-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

/* 페이징 */
.guest-pagination {
    margin-top: 24px;
    text-align: center;
}

/* =========================
   반응형
========================= */
@media (max-width: 768px) {
    #guest_up {
        padding: 18px 16px 28px;
        border-radius: 24px;
    }

    .guest-title {
        letter-spacing: -2px;
    }

    .guest-write-box {
        padding: 20px 18px 22px;
        border-radius: 22px;
    }

    .guest-info {
        flex-direction: column;
        gap: 10px;
    }

    .guest-item {
        padding: 18px 18px;
        border-radius: 20px;
    }

    .guest-item-header {
        align-items: flex-start;
    }

    .guest-date {
        margin-left: 0;
        width: 100%;
    }

    .guest-comments {
        padding-left: 10px;
    }

    .guest-comment-form {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-name-input,
    .comment-pw-input,
    .comment-content-input,
    .secret-pw-area input {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 580px) {
    .guest-title {
        font-size: 3.2rem;
    }

    .guest-submit-btn,
    .guest-cancel-btn {
        font-size: 13px;
    }

    .guest-btn-wrap {
        flex-direction: column;
    }
}

/* =========================================================
   GUESTBOOK — 코르크보드 + 포스트잇 디자인
========================================================= */

#guest_up {
    --guest-ink: #475569;
    --guest-muted: #8993a0;
    --guest-red: #ef4444;

    box-sizing: border-box;
    position: relative;

    width: calc(100% - 40px);
    max-width: 1120px;
    min-height: 500px;

    margin: 20px auto 60px;
    padding: 34px 28px 48px;

    border: 8px solid #b87942;
    border-radius: 18px;

    /*
     * 별도 이미지 없이 만드는 코르크 질감
     */
    background-color: #dca76e;
    background-image:
        radial-gradient(
            circle at 20% 30%,
            rgba(102, 54, 23, 0.18) 0 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle at 70% 60%,
            rgba(255, 245, 211, 0.22) 0 1px,
            transparent 1.6px
        ),
        radial-gradient(
            circle at 40% 80%,
            rgba(111, 61, 27, 0.13) 0 1px,
            transparent 1.4px
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.05),
            rgba(112, 58, 22, 0.05)
        );

    background-size:
        13px 13px,
        17px 17px,
        11px 11px,
        100% 100%;

    box-shadow:
        inset 0 0 25px rgba(90, 46, 17, 0.16),
        0 12px 30px rgba(85, 58, 27, 0.17);

    color: var(--guest-ink);
    overflow: visible;
}


/* =========================================================
   상단 제목
========================================================= */

.guest-header {
    display: flex;
    justify-content: center;

    margin: 0 0 30px;
    padding: 0;
}

.guest-title {
    position: relative;
    display: inline-block;

    margin: 0;
    padding: 12px 24px 14px;

    border: 0;
    border-radius: 2px;
    background: #fff29d;
    color: var(--guest-ink);

    box-shadow:
        0 7px 10px rgba(82, 48, 17, 0.20),
        inset 0 -12px 20px rgba(221, 181, 55, 0.08);

    font-size: 2.5rem;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    letter-spacing: -1px;

    transform: rotate(-1deg);
}

.guest-title span {
    color: #ef4444;
}

/* 제목에 꽂힌 압정 */
.guest-title::before {
    content: "";

    position: absolute;
    top: -10px;
    left: 50%;

    width: 19px;
    height: 19px;

    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 255, 255, 0.9) 0 2px,
            transparent 3px
        ),
        #ef4444;

    box-shadow:
        0 3px 0 #b92d2d,
        0 5px 8px rgba(69, 35, 15, 0.30);

    transform: translateX(-50%);
}


/* =========================================================
   작성 폼 — 큰 포스트잇
========================================================= */

.guest-write-box {
    box-sizing: border-box;
    position: relative;

    width: min(650px, calc(100% - 28px));

    margin: 0 auto 46px;
    padding: 36px 34px 30px;

    border: 0;
    border-radius: 2px;

    /* 우측 하단 꼭짓점을 실제로 투명하게 자름 */
    background:
        linear-gradient(
            -45deg,
            transparent 0 17px,
            #fff2a8 17.5px
        );

    box-shadow: none;

    /* 잘린 종이 모양을 따라 그림자 표시 */
    filter:
        drop-shadow(
            0 13px 8px rgba(87, 49, 18, 0.23)
        );

    transform: rotate(-0.45deg);
}

/* 작성 폼 압정 */
.guest-write-box::before {
    content: "";

    position: absolute;
    z-index: 3;
    top: -13px;
    left: 50%;

    width: 23px;
    height: 23px;

    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 28%,
            rgba(255,255,255,0.95) 0 3px,
            transparent 4px
        ),
        #ef4444;

    box-shadow:
        0 4px 0 #b92d2d,
        0 7px 8px rgba(77, 40, 17, 0.30);

    transform: translateX(-50%);
}

/* 작성 폼의 접혀 올라온 종이 면 */
.guest-write-box::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;

    width: 25px;
    height: 25px;

    /*
     * 정사각형 중 왼쪽 위 삼각형만 표시.
     * 오른쪽 아래 꼭짓점은 투명하게 비워 둠.
     */
    clip-path: polygon(
        0 0,
        100% 0,
        0 100%
    );

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.78),
            rgba(157, 117, 31, 0.22)
        );

    box-shadow:
        2px 2px 4px rgba(96, 65, 18, 0.12);

    pointer-events: none;
}

.guest-label {
    margin: 0 0 8px 2px;

    color: #6e674e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.guest-info {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.guest-input,
.secret-pw-area input,
.guest-pw-input,
.comment-input {
    box-sizing: border-box;

    border: 1px solid rgba(94, 78, 41, 0.16);
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.38);
    color: var(--guest-ink);

    outline: none;
}

.guest-input {
    flex: 1;
    padding: 11px 13px;
    font-size: 13px;
}

.guest-textarea {
    box-sizing: border-box;

    width: 100%;
    min-height: 135px;
    padding: 16px 17px;

    border: 1px solid rgba(94, 78, 41, 0.14);
    border-radius: 6px;

    background-color: rgba(255, 255, 255, 0.26);
    background-image:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 29px,
            rgba(91, 90, 72, 0.10) 30px
        );

    color: var(--guest-ink);
    font-size: 14px;
    line-height: 30px;

    resize: vertical;
    outline: none;
}

.guest-input:focus,
.guest-textarea:focus,
.secret-pw-area input:focus,
.guest-pw-input:focus,
.comment-input:focus {
    border-color: rgba(239, 68, 68, 0.38);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

.guest-input::placeholder,
.guest-textarea::placeholder,
.comment-input::placeholder {
    color: rgba(71, 85, 105, 0.55);
}

.guest-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 12px;
    flex-wrap: wrap;
}

.guest-secret {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #706b59;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.guest-secret input[type="checkbox"] {
    width: 38px;
    height: 22px;

    border: 0;
    border-radius: 999px;
    background: rgba(92, 82, 53, 0.20);

    appearance: none;
    position: relative;
    cursor: pointer;
}

.guest-secret input[type="checkbox"]::after {
    content: "";

    position: absolute;
    top: 3px;
    left: 3px;

    width: 16px;
    height: 16px;

    border-radius: 50%;
    background: #fff;

    box-shadow: 0 1px 3px rgba(68, 44, 16, 0.22);
    transition: left 0.2s ease;
}

.guest-secret input[type="checkbox"]:checked {
    background: #ef4444;
}

.guest-secret input[type="checkbox"]:checked::after {
    left: 19px;
}

.secret-pw-area {
    flex: 1;
}

.secret-pw-area input {
    width: 100%;
    max-width: 170px;
    padding: 9px 11px;
}


/* 등록 버튼 */
.guest-submit-btn {
    width: 100%;

    margin-top: 21px;
    padding: 14px 22px;

    border: 0;
    border-radius: 7px;

    background: #ef4444;
    color: #fff;

    box-shadow:
        0 4px 0 #bf3030,
        0 7px 12px rgba(100, 50, 24, 0.16);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.4px;

    cursor: pointer;

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

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.guest-submit-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 0 #bf3030,
        0 11px 15px rgba(100, 50, 24, 0.20);
}

.guest-submit-btn:active {
    transform: translateY(2px);

    box-shadow:
        0 2px 0 #bf3030,
        0 4px 7px rgba(100, 50, 24, 0.15);
}


/* =========================================================
   방명록 목록 — 고정 너비, 가변 높이 Masonry
========================================================= */

.guest-list {
    display: grid !important;

    /*
     * 모든 포스트잇 너비는 정확히 320px
     */
    grid-template-columns: repeat(auto-fit, 290px);

    /*
     * JavaScript가 카드 높이에 맞춰 차지할 행 수를 계산
     */
    grid-auto-rows: 8px;

    column-gap: 22px;
    row-gap: 10px;

    align-items: start;
    justify-content: center;

    width: 100%;
}


/* 빈 목록 */
.guest-empty {
    grid-column: 1 / -1;

    box-sizing: border-box;
    width: min(500px, 100%);

    margin: 10px auto;
    padding: 60px 20px;

    border: 0;
    border-radius: 2px;

    background: #fff2a8;
    color: #746e58;

    text-align: center;
    font-size: 13px;
    font-weight: 800;

    box-shadow: 0 9px 13px rgba(83, 47, 18, 0.18);
    transform: rotate(-0.5deg);
}


/* =========================================================
   개별 포스트잇
========================================================= */

.guest-item {
    --note-color: #fff29c;
    --note-pin: #ef4444;
    --note-pin-dark: #b92e2e;
    --note-rotate: -0.7deg;

    box-sizing: border-box;
    position: relative;

    width: 290px;
    min-height: 145px;
    height: auto;

    margin: 0;
    padding: 31px 22px 22px;

    border: 0;
    border-radius: 2px;

    /*
     * 우측 하단 19px 삼각형을 투명하게 잘라낸
     * 포스트잇 본체
     */
    background:
        linear-gradient(
            -45deg,
            transparent 0 13px,
            var(--note-color) 13.5px
        );

    box-shadow: none;

    /* 투명하게 잘린 모양을 따라 그림자가 생기도록 처리 */
    filter:
        drop-shadow(
            0 10px 7px rgba(78, 43, 14, 0.22)
        );

    transform: rotate(var(--note-rotate));
    transform-origin: center top;

    align-self: start;
    overflow: visible;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.guest-item:hover {
    z-index: 5;

    transform:
        rotate(var(--note-rotate))
        translateY(-4px);

    box-shadow:
        0 15px 19px rgba(78, 43, 14, 0.27),
        inset 0 -22px 25px rgba(110, 78, 14, 0.035);
}


/* 각 메모에 꽂힌 압정 */
.guest-item::before {
    content: "";

    position: absolute;
    z-index: 4;
    top: -10px;
    left: 50%;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 28%,
            rgba(255,255,255,0.95) 0 2px,
            transparent 3px
        ),
        var(--note-pin);

    box-shadow:
        0 3px 0 var(--note-pin-dark),
        0 5px 7px rgba(72, 37, 13, 0.30);

    transform: translateX(-50%);
}


/* 접혀 올라온 종이 면 */
.guest-item::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;

    width: 19px;
    height: 19px;

    /*
     * 정사각형의 왼쪽 위 삼각형만 표시
     * 오른쪽 아래 꼭짓점은 투명한 상태로 남음
     */
    clip-path: polygon(
        0 0,
        100% 0,
        0 100%
    );

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.74),
            rgba(140, 102, 28, 0.18)
        );

    box-shadow:
        2px 2px 4px rgba(96, 65, 18, 0.10);

    pointer-events: none;
}


/* 색과 기울기를 반복해서 다르게 */
.guest-item:nth-child(6n + 1) {
    --note-color: #fff29c;
    --note-pin: #ef4444;
    --note-pin-dark: #b92e2e;
    --note-rotate: -0.8deg;
}

.guest-item:nth-child(6n + 2) {
    --note-color: #ffd9df;
    --note-pin: #3b82f6;
    --note-pin-dark: #2563a9;
    --note-rotate: 0.7deg;
}

.guest-item:nth-child(6n + 3) {
    --note-color: #e5ef9c;
    --note-pin: #f6c445;
    --note-pin-dark: #b88618;
    --note-rotate: -0.35deg;
}

.guest-item:nth-child(6n + 4) {
    --note-color: #ffd488;
    --note-pin: #22a85a;
    --note-pin-dark: #17733d;
    --note-rotate: 0.85deg;
}

.guest-item:nth-child(6n + 5) {
    --note-color: #d9edf5;
    --note-pin: #ef4444;
    --note-pin-dark: #b92e2e;
    --note-rotate: -0.55deg;
}

.guest-item:nth-child(6n) {
    --note-color: #eadcf8;
    --note-pin: #3b82f6;
    --note-pin-dark: #2563a9;
    --note-rotate: 0.45deg;
}


/* =========================================================
   포스트잇 내부
========================================================= */

.guest-item-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 9px;

    margin: 0 0 14px;
    font-size: 12px;
}

.guest-name,
.guest-name .sv_member {
    color: #46515f;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.guest-secret-badge {
    padding: 3px 8px;

    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    color: #dd3737;

    font-size: 10px;
    font-weight: 900;
}

.guest-date {
    margin-left: auto;

    color: rgba(71, 85, 105, 0.62);
    font-family: inherit;
    font-size: 10px;
}

.guest-item-actions {
    display: flex;
    gap: 7px;

    margin-left: 0;
}

.guest-edit,
.guest-delete {
    color: rgba(71, 85, 105, 0.65);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.guest-edit:hover {
    color: #778325;
}

.guest-delete:hover {
    color: #ef4444;
}

.guest-item-content {
    padding: 0;

    color: #535c65;
    font-size: 13px;
    line-height: 1.75;

    word-break: break-word;
    white-space: normal;
}

.guest-item.is-secret .guest-item-content {
    padding: 14px;

    border: 1px dashed rgba(83, 78, 51, 0.18);
    border-radius: 5px;

    background: rgba(255, 255, 255, 0.24);
}



/* =========================================================
   반응형
========================================================= */

@media (max-width: 760px) {
    #guest_up {
        width: calc(100% - 20px);

        margin-top: 10px;
        padding: 28px 12px 36px;

        border-width: 5px;
    }

    .guest-title {
        font-size: 2rem;
    }

    .guest-write-box {
        width: calc(100% - 10px);
        padding: 30px 19px 24px;
        transform: none;
    }

    .guest-info {
        flex-direction: column;
    }

    .guest-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .guest-item {
        width: 100%;
        transform: none;
    }

    .guest-item:hover {
        transform: translateY(-3px);
    }

    .guest-date {
        width: 100%;
        margin-left: 0;
    }

    .guest-comment-form {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-name-input,
    .comment-pw-input,
    .comment-content-input {
        width: 100%;
    }
}

/* =========================================================
   답글 작성 폼 / 수정 폼 — 더 큰 포스트잇 느낌
========================================================= */

.guest-comment-form,
.guest-comment-edit-form {
    box-sizing: border-box;
    position: relative;

    display: none;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;

    width: calc(100% - 18px);
    margin: 16px 0 0 auto;
    padding: 18px 16px 16px;

    border: 0;
    border-radius: 2px;

    background:
        linear-gradient(
            -45deg,
            transparent 0 11px,
            #fff3a8 11.5px
        );

    box-shadow: none;
    filter: drop-shadow(0 7px 7px rgba(78, 43, 14, 0.14));
}

/* 답글 폼 테이프 */
.guest-comment-form::before,
.guest-comment-edit-form::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 16px;

    width: 34px;
    height: 12px;

    background: rgba(255, 244, 200, 0.72);
    border: 1px solid rgba(210, 190, 120, 0.35);

    box-shadow: 0 1px 2px rgba(90, 60, 20, 0.08);
    transform: rotate(-6deg);
}

.guest-comment-form::after,
.guest-comment-edit-form::after {
    content: "";
    position: absolute;
    top: -7px;
    right: 20px;

    width: 30px;
    height: 11px;

    background: rgba(255, 244, 200, 0.62);
    border: 1px solid rgba(210, 190, 120, 0.28);

    box-shadow: 0 1px 2px rgba(90, 60, 20, 0.07);
    transform: rotate(7deg);
}


/* 답글 입력칸 크기 키우기 */
.comment-input {
    box-sizing: border-box;

    border: 1px solid rgba(94, 78, 41, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.36);
    color: #475569;

    padding: 11px 12px;
    font-size: 12px;
    line-height: 1.5;
}

.comment-name-input,
.comment-pw-input {
    width: 110px;
    min-height: 42px;
}

.comment-content-input {
    flex: 1;
    min-width: 220px;
    min-height: 42px;
}

/* textarea 타입 답글 내용 칸 크게 */
textarea.comment-content-input {
    min-height: 92px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    padding-top: 12px;
    padding-bottom: 12px;
}


/* 답글 등록 버튼 */
.comment-submit-btn,
.guest-pw-btn {
    min-height: 42px;
    padding: 10px 16px;

    border: 0;
    border-radius: 6px;

    background: #ef4444;
    color: #fff;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2px;

    cursor: pointer;
}

.comment-submit-btn:hover,
.guest-pw-btn:hover {
    filter: brightness(1.03);
}


/* 답글 수정 취소 버튼 */
.comment-cancel-btn {
    min-height: 42px;
    padding: 10px 16px;

    border: 0;
    border-radius: 6px;

    background: rgba(71, 85, 105, 0.12);
    color: rgba(71, 85, 105, 0.82);

    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.comment-cancel-btn:hover {
    background: rgba(71, 85, 105, 0.18);
}


/* 모바일 */
@media (max-width: 760px) {
    .guest-comment,
    .guest-comment-form,
    .guest-comment-edit-form {
        width: calc(100% - 10px);
        margin-left: auto;
        transform: none;
    }

    .guest-comment-form,
    .guest-comment-edit-form {
        flex-direction: column;
    }

    .comment-name-input,
    .comment-pw-input,
    .comment-content-input {
        width: 100%;
        min-width: 0;
    }

    textarea.comment-content-input {
        min-height: 100px;
    }
}

/* =========================================================
   메인 포스트잇 + 별도 답글 포스트잇
========================================================= */

/*
 * guest-item은 두 포스트잇을 묶는 투명한 래퍼로 사용
 */
.guest-item {
    box-sizing: border-box;
    position: relative;

    width: 290px;
    min-height: 0;
    height: auto;

    margin: 0;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
    filter: none !important;

    overflow: visible;

    transform: rotate(var(--note-rotate));
    transform-origin: center top;

    transition: transform 0.18s ease;
}

.guest-item:hover {
    z-index: 5;

    transform:
        rotate(var(--note-rotate))
        translateY(-4px);

    box-shadow: none !important;
    filter: none !important;
}


/*
 * 기존 guest-item의 압정과 접힌 모서리는 제거.
 * 아래 guest-note-main으로 옮긴다.
 */
.guest-item::before,
.guest-item::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   메인 글 포스트잇
========================================================= */

.guest-note-main {
    box-sizing: border-box;
    position: relative;
    z-index: 2;

    width: 100%;
    min-height: 145px;

    padding: 31px 22px 22px;

    border: 0;
    border-radius: 2px;

    background:
        linear-gradient(
            -45deg,
            transparent 0 13px,
            var(--note-color) 13.5px
        );

    filter:
        drop-shadow(
            0 9px 7px rgba(78, 43, 14, 0.18)
        );
}


/* 메인 포스트잇 압정 */
.guest-note-main::before {
    content: "";

    position: absolute;
    z-index: 4;

    top: -10px;
    left: 50%;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 28%,
            rgba(255, 255, 255, 0.95) 0 2px,
            transparent 3px
        ),
        var(--note-pin);

    box-shadow:
        0 3px 0 var(--note-pin-dark),
        0 5px 7px rgba(72, 37, 13, 0.30);

    transform: translateX(-50%);
}


/* 메인 포스트잇 접힌 면 */
.guest-note-main::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;

    width: 19px;
    height: 19px;

    clip-path: polygon(
        0 0,
        100% 0,
        0 100%
    );

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.74),
            rgba(140, 102, 28, 0.18)
        );

    pointer-events: none;
}


/* =========================================================
   답글 목록
========================================================= */

.guest-comments {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    gap: 16px;

    width: 100%;

    /*
     * 첫 답글은 메인 포스트잇 바로 아래에 붙임
     */
    margin: 0;
    padding: 0;

    border: 0;
}


/* =========================================================
   별개의 답글 포스트잇
========================================================= */

.guest-comment {
    --reply-color: #f5cf8c;

    box-sizing: border-box;
    position: relative;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto
        auto
        auto;

    align-items: center;
    gap: 8px 6px;

    width: 100%;
    min-height: 125px;

    margin: 0;
    padding: 29px 22px 20px;

    border: 0;
    border-radius: 2px;

    background:
        linear-gradient(
            -45deg,
            transparent 0 13px,
            var(--reply-color) 13.5px
        );

    filter:
        drop-shadow(
            0 9px 7px rgba(78, 43, 14, 0.17)
        );

    transform: rotate(0.2deg);
}


/*
 * 답글이 여러 개면 두 번째부터 간격 추가
 */
.guest-comment + .guest-comment {
    margin-top: 4px;
}


/* 메인 글과 답글을 잇는 테이프 */
.guest-comment::before {
    content: "";

    position: absolute;
    z-index: 5;

    top: -10px;
    left: 50%;

    width: 45px;
    height: 17px;

    border: 1px solid rgba(205, 189, 126, 0.28);

    background:
        linear-gradient(
            90deg,
            rgba(255, 250, 211, 0.58),
            rgba(250, 246, 198, 0.82),
            rgba(255, 250, 211, 0.58)
        );

    box-shadow:
        0 1px 3px rgba(80, 55, 18, 0.10);

    transform:
        translateX(-50%)
        rotate(-5deg);

    pointer-events: none;
}


/* 답글 포스트잇 접힌 면 */
.guest-comment::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;

    width: 18px;
    height: 18px;

    clip-path: polygon(
        0 0,
        100% 0,
        0 100%
    );

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.72),
            rgba(160, 110, 30, 0.18)
        );

    pointer-events: none;
}


/* =========================================================
   답글 내부 배치
========================================================= */

.guest-comment .comment-name {
    grid-column: 1 / 2;
    grid-row: 1;

    color: #475569;

    font-size: 13px;
    font-weight: 900;
    line-height: 1.4;
}


.guest-comment .comment-date {
    grid-column: 3 / 4;
    grid-row: 1;

    margin-left: auto;

    color: rgba(71, 85, 105, 0.58);

    font-size: 11px;
    line-height: 1.4;
}


.guest-comment .comment-edit {
    grid-column: 4 / 5;
    grid-row: 1;
}


.guest-comment .comment-delete {
    grid-column: 5 / 6;
    grid-row: 1;
}


.guest-comment .comment-edit,
.guest-comment .comment-delete {
    color: rgba(71, 85, 105, 0.62);

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;

    text-decoration: none;
}


.guest-comment .comment-content {
    grid-column: 1 / -1;
    grid-row: 2;

    min-width: 0;

    color: rgba(71, 85, 105, 0.88);

    font-size: 13px;
    line-height: 1.7;

    word-break: break-word;
}


/* =========================================================
   COMMENT 버튼
========================================================= */

.comment-toggle-btn {
    margin-top: 16px;
    padding: 0;

    border: 0;
    background: transparent;

    color: rgba(71, 85, 105, 0.70);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    cursor: pointer;
}

.comment-toggle-btn:hover {
    color: #ef4444;
}


/* =========================================================
   답글 작성 폼도 별도 포스트잇으로
========================================================= */

.guest-comment-form,
.guest-comment-edit-form {
    box-sizing: border-box;
    position: relative;

    display: none;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;

    width: 100%;

    margin: 16px 0 0;
    padding: 25px 18px 18px;

    border: 0;
    border-radius: 2px;

    background:
        linear-gradient(
            -45deg,
            transparent 0 12px,
            #ffe09d 12.5px
        );

    filter:
        drop-shadow(
            0 8px 7px rgba(78, 43, 14, 0.15)
        );
}


/* 답글 작성 폼 테이프 */
.guest-comment-form::before,
.guest-comment-edit-form::before {
    content: "";

    position: absolute;
    z-index: 3;

    top: -9px;
    left: 50%;

    width: 43px;
    height: 16px;

    border: 1px solid rgba(205, 189, 126, 0.28);

    background: rgba(255, 250, 211, 0.75);

    box-shadow:
        0 1px 3px rgba(80, 55, 18, 0.09);

    transform:
        translateX(-50%)
        rotate(5deg);
}


/* 입력칸 */
.comment-input {
    box-sizing: border-box;

    min-height: 42px;
    padding: 11px 12px;

    border: 1px solid rgba(94, 78, 41, 0.17);
    border-radius: 5px;

    background: rgba(255, 255, 255, 0.38);
    color: #475569;

    font-size: 12px;
    line-height: 1.5;
}


.comment-name-input,
.comment-pw-input {
    width: 110px;
}


.comment-content-input {
    flex: 1;
    min-width: 200px;
}


textarea.comment-content-input {
    width: 100%;
    min-height: 95px;

    resize: vertical;

    font-family: inherit;
    font-size: 13px;
    line-height: 1.65;
}


.comment-submit-btn,
.guest-pw-btn {
    min-height: 42px;
    padding: 10px 16px;

    border: 0;
    border-radius: 6px;

    background: #ef4444;
    color: #fff;

    font-size: 11px;
    font-weight: 900;

    cursor: pointer;
}


/* =========================================================
   모바일
========================================================= */

@media (max-width: 760px) {
    .guest-item {
        width: 100%;
        transform: none;
    }

    .guest-item:hover {
        transform: translateY(-3px);
    }

    .guest-comment-form,
    .guest-comment-edit-form {
        flex-direction: column;
    }

    .comment-name-input,
    .comment-pw-input,
    .comment-content-input {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   FINAL FIX — guest-entry 구조용 포스트잇 복구
   이 블록은 반드시 style.css의 가장 마지막에 둡니다.
========================================================= */

#guest_up .guest-entry {
    box-sizing: border-box;
    position: relative;
    width: 290px;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    align-self: start;
    overflow: visible;
}

/* 메인 포스트잇: 이전의 투명화 규칙을 다시 덮어씀 */
#guest_up .guest-entry > .guest-item {
    --note-color: #fff29c;
    --note-pin: #ef4444;
    --note-pin-dark: #b92e2e;
    --note-rotate: -0.7deg;

    box-sizing: border-box;
    position: relative;
    z-index: 2;

    display: block;
    width: 100% !important;
    min-height: 145px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 31px 22px 22px !important;

    border: 0 !important;
    border-radius: 2px !important;

    background:
        linear-gradient(
            -45deg,
            transparent 0 13px,
            var(--note-color) 13.5px
        ) !important;

    box-shadow: none !important;
    filter:
        drop-shadow(
            0 10px 7px rgba(78, 43, 14, 0.22)
        ) !important;

    overflow: visible !important;
    transform: rotate(var(--note-rotate)) !important;
    transform-origin: center top;
}

#guest_up .guest-entry > .guest-item:hover {
    filter:
        drop-shadow(
            0 14px 9px rgba(78, 43, 14, 0.25)
        ) !important;

    transform:
        rotate(var(--note-rotate))
        translateY(-3px) !important;
}

/* 메인 포스트잇 압정 복구 */
#guest_up .guest-entry > .guest-item::before {
    content: "" !important;
    display: block !important;

    position: absolute;
    z-index: 4;
    top: -10px;
    left: 50%;

    width: 19px;
    height: 19px;
    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 28%,
            rgba(255, 255, 255, 0.95) 0 2px,
            transparent 3px
        ),
        var(--note-pin) !important;

    box-shadow:
        0 3px 0 var(--note-pin-dark),
        0 5px 7px rgba(72, 37, 13, 0.30);

    transform: translateX(-50%);
    pointer-events: none;
}

/* 메인 포스트잇 접힌 모서리 복구 */
#guest_up .guest-entry > .guest-item::after {
    content: "" !important;
    display: block !important;

    position: absolute;
    right: 0;
    bottom: 0;

    width: 19px;
    height: 19px;

    clip-path: polygon(0 0, 100% 0, 0 100%);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.74),
            rgba(140, 102, 28, 0.18)
        ) !important;

    pointer-events: none;
}

/* 포스트잇 색상 반복 */
#guest_up .guest-entry:nth-child(6n + 1) > .guest-item {
    --note-color: #fff29c;
    --note-pin: #ef4444;
    --note-pin-dark: #b92e2e;
    --note-rotate: -0.8deg;
}

#guest_up .guest-entry:nth-child(6n + 2) > .guest-item {
    --note-color: #ffd9df;
    --note-pin: #3b82f6;
    --note-pin-dark: #2563a9;
    --note-rotate: 0.7deg;
}

#guest_up .guest-entry:nth-child(6n + 3) > .guest-item {
    --note-color: #e5ef9c;
    --note-pin: #f6c445;
    --note-pin-dark: #b88618;
    --note-rotate: -0.35deg;
}

#guest_up .guest-entry:nth-child(6n + 4) > .guest-item {
    --note-color: #ffd488;
    --note-pin: #22a85a;
    --note-pin-dark: #17733d;
    --note-rotate: 0.85deg;
}

#guest_up .guest-entry:nth-child(6n + 5) > .guest-item {
    --note-color: #d9edf5;
    --note-pin: #ef4444;
    --note-pin-dark: #b92e2e;
    --note-rotate: -0.55deg;
}

#guest_up .guest-entry:nth-child(6n) > .guest-item {
    --note-color: #eadcf8;
    --note-pin: #3b82f6;
    --note-pin-dark: #2563a9;
    --note-rotate: 0.45deg;
}

/* 답글 목록은 메인 포스트잇 바로 아래 */
#guest_up .guest-entry > .guest-comments {
    box-sizing: border-box;
    position: relative;
    z-index: 1;

    display: flex !important;
    flex-direction: column;
    gap: 16px;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
}

/* 독립된 답글 포스트잇 */
#guest_up .guest-entry > .guest-comments > .guest-comment {
    --reply-color: #ffd488;

    box-sizing: border-box;
    position: relative;

    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 8px 6px;

    width: 100% !important;
    min-height: 125px;

    margin: 0 !important;
    padding: 29px 22px 20px !important;

    border: 0 !important;
    border-radius: 2px !important;

    background:
        linear-gradient(
            -45deg,
            transparent 0 13px,
            var(--reply-color) 13.5px
        ) !important;

    box-shadow: none !important;
    filter:
        drop-shadow(
            0 9px 7px rgba(78, 43, 14, 0.17)
        ) !important;

    transform: rotate(0.2deg) !important;
}

/* 메인 글과 답글을 연결하는 테이프 */
#guest_up .guest-entry > .guest-comments > .guest-comment::before {
    content: "" !important;
    display: block !important;

    position: absolute;
    z-index: 5;
    top: -10px;
    left: 50%;

    width: 45px;
    height: 17px;

    border: 1px solid rgba(205, 189, 126, 0.28);
    background:
        linear-gradient(
            90deg,
            rgba(255, 250, 211, 0.58),
            rgba(250, 246, 198, 0.86),
            rgba(255, 250, 211, 0.58)
        ) !important;

    box-shadow: 0 1px 3px rgba(80, 55, 18, 0.10);
    transform: translateX(-50%) rotate(-5deg);
    pointer-events: none;
}

#guest_up .guest-entry > .guest-comments > .guest-comment::after {
    content: "" !important;
    display: block !important;

    position: absolute;
    right: 0;
    bottom: 0;

    width: 18px;
    height: 18px;

    clip-path: polygon(0 0, 100% 0, 0 100%);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.72),
            rgba(160, 110, 30, 0.18)
        ) !important;

    pointer-events: none;
}

@media (max-width: 760px) {
    #guest_up .guest-entry {
        width: 100%;
    }
}

/* =========================================================
   답글을 원글보다 위에 표시 + 원글 호버 효과 연동
========================================================= */

/* 답글 묶음을 원글보다 위로 올림 */
#guest_up
.guest-entry
> .guest-comments {
    z-index: 4 !important;

    /*
     * 답글 포스트잇을 원글 하단에 살짝 겹침
     * 겹침이 너무 크면 -3px을 -1px로 변경
     */
    margin-top: -3px !important;
}


/* 답글 포스트잇도 원글보다 위에 표시 */
#guest_up
.guest-entry
> .guest-comments
> .guest-comment {
    position: relative;
    z-index: 4;

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}


/* 연결 테이프는 두 포스트잇보다 가장 위에 표시 */
#guest_up
.guest-entry
> .guest-comments
> .guest-comment::before {
    z-index: 20 !important;
}


/* 원글 포스트잇의 움직임을 부드럽게 */
#guest_up
.guest-entry
> .guest-item {
    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}


/*
 * 원글에 호버하면 바로 뒤의 답글 포스트잇도
 * 원글과 같은 거리만큼 위로 떠오름
 */
#guest_up
.guest-entry
> .guest-item:hover
+ .guest-comments
> .guest-comment {
    transform:
        rotate(0.2deg)
        translateY(-3px) !important;

    filter:
        drop-shadow(
            0 14px 9px rgba(78, 43, 14, 0.25)
        ) !important;
}

/* =========================================================
   부모 포스트잇과 답글 포스트잇 색상 통일
========================================================= */

/* 기본 색상 */
#guest_up .guest-entry {
    --entry-note-color: #fff29c;

    --entry-pin-color: #ef4444;
    --entry-pin-dark: #b92e2e;
}


/* 게시글 순서별 색상 */
#guest_up .guest-entry:nth-child(6n + 1) {
    --entry-note-color: #fff29c;

    --entry-pin-color: #ef4444;
    --entry-pin-dark: #b92e2e;
}

#guest_up .guest-entry:nth-child(6n + 2) {
    --entry-note-color: #ffd9df;

    --entry-pin-color: #3b82f6;
    --entry-pin-dark: #2563a9;
}

#guest_up .guest-entry:nth-child(6n + 3) {
    --entry-note-color: #e5ef9c;

    --entry-pin-color: #f6c445;
    --entry-pin-dark: #b88618;
}

#guest_up .guest-entry:nth-child(6n + 4) {
    --entry-note-color: #ffd488;

    --entry-pin-color: #22a85a;
    --entry-pin-dark: #17733d;
}

#guest_up .guest-entry:nth-child(6n + 5) {
    --entry-note-color: #d9edf5;

    --entry-pin-color: #ef4444;
    --entry-pin-dark: #b92e2e;
}

#guest_up .guest-entry:nth-child(6n) {
    --entry-note-color: #eadcf8;

    --entry-pin-color: #3b82f6;
    --entry-pin-dark: #2563a9;
}


/* 부모 포스트잇에 색상 전달 */
#guest_up
.guest-entry
> .guest-item {
    --note-color:
        var(--entry-note-color) !important;

    --note-pin:
        var(--entry-pin-color) !important;

    --note-pin-dark:
        var(--entry-pin-dark) !important;
}


/* 답글 포스트잇도 부모와 같은 색 사용 */
#guest_up
.guest-entry
> .guest-comments
.guest-comment {
    --reply-color:
        color-mix(
            in srgb,
            var(--entry-note-color) 65%,
            #fff 35%
        ) !important;
}

/* 답글 포스트잇끼리 빈틈 없이 연결 */
#guest_up
.guest-entry
> .guest-comments {
    gap: 0 !important;
}


/* 기존 답글 여백 제거 */
#guest_up
.guest-entry
> .guest-comments
> .guest-comment {
    margin-top: 0 !important;
}


/*
 * 두 번째 이후 답글은 1px 겹쳐서
 * 포스트잇 사이로 코르크 배경이 보이지 않게 함
 */
#guest_up
.guest-entry
> .guest-comments
> .guest-comment
~ .guest-comment {
    margin-top: -1px !important;
}

/* =====================================
   비밀글 열람 폼
   1줄: 안내 문구
   2줄: 비밀번호 입력창 + 확인 버튼
===================================== */

#guest_up .guest-pw-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    column-gap: 6px;
    row-gap: 7px;
}

/* 첫 번째 줄 전체 차지 */
#guest_up .guest-locked-msg {
    display: block;
    flex: 0 0 100%;
    width: 100%;

    margin: 0;
    line-height: 1.4;
}

/* 두 번째 줄 비밀번호 입력창 */
#guest_up .guest-pw-input {
    box-sizing: border-box;
    flex: 0 0 105px;

    width: 105px;
    height: 30px;
    min-height: 30px !important;
    padding: 5px 8px;

    border-radius: 6px;
    font-size: 10px;
    line-height: 1;
}

/* 두 번째 줄 확인 버튼 */
#guest_up .guest-pw-btn {
    box-sizing: border-box;
    flex: 0 0 auto;

    width: auto;
    height: 30px;
    min-height: 30px !important;
    padding: 5px 9px !important;

    border-radius: 6px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

#guest_up .guest-secret-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#guest_up .guest-secret-badge i {
    font-size: 9px;
    line-height: 1;
}

/* 원글 날짜: 날짜와 시간을 두 줄로 우측 정렬 */
#guest_up .guest-date {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;

    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    line-height: 1.35;
}

/* 댓글 날짜: 날짜와 시간을 두 줄로 우측 정렬 */
#guest_up .guest-comment .comment-date {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;

    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    line-height: 1.35;
}

#guest_up .guest-date,
#guest_up .guest-comment .comment-date {
    font-size: 10px;
    line-height: 1.35;
}

/* 비밀글 본문도 일반 글과 동일하게 표시 */
#guest_up .guest-item.is-secret .guest-item-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;

    font-size: 13px;
}

#guest_up .guest-entry > .guest-item,
#guest_up .guest-entry > .guest-comments > .guest-comment {
    padding-top: 24px !important;
}

/* 글자가 흐려지는 것을 막기 위해 포스트잇 회전 제거 */
#guest_up .guest-entry > .guest-item {
    --note-rotate: 0deg !important;
}

#guest_up .guest-entry > .guest-comments > .guest-comment {
    transform: none !important;
}

/* 호버할 때는 위로만 이동 */
#guest_up .guest-entry > .guest-item:hover,
#guest_up .guest-entry > .guest-comments > .guest-comment:hover {
    transform: translateY(-3px) !important;
}

/* 포스트잇 작성란 회전 제거 */
#guest_up .guest-write-box {
    transform: none !important;
}

/* 원글·답글 닉네임 형광펜 효과 */
#guest_up .guest-entry .guest-name,
#guest_up .guest-entry .guest-comment .comment-name {
    display: inline-block;
    width: fit-content;
    padding: 0 3px;

    /* color-mix 미지원 브라우저용 기본 색 */
    background-image:
        linear-gradient(
            transparent 57%,
            rgba(246, 196, 69, 0.42) 57%,
            rgba(246, 196, 69, 0.42) 90%,
            transparent 90%
        );

    /* 포스트잇과 압정 색을 섞은 형광펜 */
    background-image:
        linear-gradient(
            transparent 57%,
            color-mix(
                in srgb,
                var(--entry-note-color) 72%,
                var(--entry-pin-color) 28%
            ) 57%,
            color-mix(
                in srgb,
                var(--entry-note-color) 72%,
                var(--entry-pin-color) 28%
            ) 90%,
            transparent 90%
        );

    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* 답글 닉네임은 그리드 왼쪽에 고정 */
#guest_up .guest-comment .comment-name {
    justify-self: start;
}

/* 원글·답글 닉네임 크기 통일 */
#guest_up .guest-name,
#guest_up .guest-name .sv_member,
#guest_up .guest-comment .comment-name {
    font-size: 16px !important;
    font-family: 'KerisKedyuche', sans-serif !important;
    font-weight: 700 !important;
}

/* 잠긴 비밀글 내부 요소 중앙 정렬 */
#guest_up .guest-pw-form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    column-gap: 7px;
    row-gap: 7px;
    text-align: center;
}

/* 안내 문구는 첫 줄 전체를 차지하며 중앙 정렬 */
#guest_up .guest-pw-form .guest-locked-msg {
    flex: 0 0 100%;
    width: 100%;

    margin: 0;
    text-align: center;
}

#guest_up .guest-title {
    padding: 20px 30px 8px;
    font-size: 3rem !important;

}