/* Trade Specific Parchment-style card component */
.parchment-card {
    position: relative;
    width: 100%;
    overflow: visible;
    margin-bottom: 28px;
}

.parchment-card__sheet {
    min-height: 420px;
    padding: 40px 28px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;

    background:
        /* 은은한 종이 질감 */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        /* 얼룩 패턴 */
        radial-gradient(140px 100px at 20% 26%,
            rgba(145, 95, 40, 0.12),
            transparent 65%),
        radial-gradient(180px 130px at 78% 42%,
            rgba(145, 95, 40, 0.1),
            transparent 68%),
        radial-gradient(240px 180px at 50% 78%,
            rgba(110, 70, 30, 0.08),
            transparent 70%),
        radial-gradient(90px 70px at 86% 18%,
            rgba(160, 100, 30, 0.08),
            transparent 60%),
        radial-gradient(110px 90px at 12% 82%,
            rgba(130, 80, 25, 0.1),
            transparent 62%),
        radial-gradient(320px 240px at 50% 10%,
            rgba(120, 70, 25, 0.06),
            transparent 70%),
        /* 기본 양피지 색상 */
        linear-gradient(180deg, #f4e2ba 0%, #ecd3a6 48%, #f2dfb8 100%);

    background-blend-mode:
        soft-light, normal, normal, normal, normal, normal, normal, normal;

    box-shadow:
        /* 양 옆 닳은 느낌 */
        inset 15px 0 25px -10px rgba(100, 60, 25, 0.2),
        inset -15px 0 25px -10px rgba(100, 60, 25, 0.2),
        /* 상하단 닳은 느낌 */
        inset 0 15px 20px -10px rgba(110, 70, 28, 0.15),
        inset 0 -15px 20px -10px rgba(90, 55, 22, 0.18),
        /* 테두리 */
        inset 0 0 0 1px rgba(120, 70, 25, 0.18),
        /* 전체 비네트 */
        inset 0 0 40px rgba(120, 70, 25, 0.15),
        inset 0 0 80px rgba(100, 60, 20, 0.08),
        /* 외부 그림자 */
        0 18px 32px rgba(0, 0, 0, 0.18),
        0 6px 12px rgba(0, 0, 0, 0.1);

    filter: saturate(1.02) contrast(1.01);

    clip-path: polygon(0% 0%,
            100% 0%,
            100% 28%,
            99.8% 30%,
            100% 32%,
            100% 54%,
            99.8% 56%,
            100% 58%,
            100% 78%,
            99.7% 80%,
            100% 82%,
            100% 100%,
            0% 100%,
            0% 82%,
            0.2% 80%,
            0% 78%,
            0% 58%,
            0.2% 56%,
            0% 54%,
            0% 32%,
            0.2% 30%,
            0% 28%);
}

.parchment-card__sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        /* 구김 주름선 */
        linear-gradient(90deg,
            transparent 14%,
            rgba(110, 72, 30, 0.06) 15%,
            transparent 16%),
        linear-gradient(90deg,
            transparent 45%,
            rgba(115, 75, 32, 0.05) 46%,
            transparent 47%),
        linear-gradient(90deg,
            transparent 78%,
            rgba(108, 70, 28, 0.06) 79%,
            transparent 80%),
        /* 미세 얼룩점 */
        radial-gradient(2px 2px at 12% 18%, rgba(90, 60, 25, 0.05), transparent 70%),
        radial-gradient(2px 2px at 38% 42%,
            rgba(90, 60, 25, 0.05),
            transparent 70%),
        radial-gradient(2px 2px at 66% 28%,
            rgba(90, 60, 25, 0.04),
            transparent 70%),
        radial-gradient(2px 2px at 82% 62%,
            rgba(90, 60, 25, 0.05),
            transparent 70%),
        radial-gradient(2px 2px at 24% 74%,
            rgba(90, 60, 25, 0.04),
            transparent 70%),
        radial-gradient(2px 2px at 55% 85%,
            rgba(90, 60, 25, 0.05),
            transparent 70%),
        radial-gradient(2px 2px at 78% 35%,
            rgba(90, 60, 25, 0.04),
            transparent 70%),
        linear-gradient(0deg, rgba(120, 80, 35, 0.03), rgba(120, 80, 35, 0.03));
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.parchment-card__sheet::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        /* 은은한 비네트 효과 */
        radial-gradient(ellipse 130% 110% at 50% 50%,
            transparent 50%,
            rgba(80, 50, 18, 0.15) 90%,
            rgba(60, 38, 12, 0.22) 100%),
        /* 코너 그림자 */
        radial-gradient(180px 120px at 10% 14%,
            rgba(80, 45, 15, 0.18),
            transparent 62%),
        radial-gradient(200px 140px at 90% 18%,
            rgba(80, 45, 15, 0.18),
            transparent 62%),
        radial-gradient(220px 160px at 12% 90%,
            rgba(80, 45, 15, 0.2),
            transparent 65%),
        radial-gradient(240px 180px at 88% 86%,
            rgba(80, 45, 15, 0.2),
            transparent 65%),
        /* 중앙 얼룩 */
        radial-gradient(120px 90px at 56% 36%,
            rgba(110, 70, 25, 0.1),
            transparent 60%),
        radial-gradient(100px 80px at 36% 58%,
            rgba(110, 70, 25, 0.08),
            transparent 60%),
        linear-gradient(0deg, rgba(80, 50, 20, 0.05), rgba(80, 50, 20, 0.05));
    pointer-events: none;
    z-index: 0;
}

.scroll-curl-top {
    position: absolute;
    top: -5px;
    left: -16px;
    right: -16px;
    height: 42px;
    z-index: 10;
    pointer-events: none;
}

.curl-shadow {
    display: none;
}

.curl-highlight {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 28px;
    background:
        /* 종이 두께감을 위한 층 */
        linear-gradient(180deg,
            #f8eacf 0%,
            #f6e7c3 8%,
            #e8d4a0 25%,
            #e0c28b 50%,
            #d4b376 75%,
            #bf8f45 92%,
            #b08538 100%);
    border-radius: 10px 10px;
    box-shadow:
        /* 말린 안쪽 그림자 - 종이 두께 */
        inset 0 -2px 3px rgba(110, 75, 30, 0.25),
        inset 0 -5px 8px rgba(90, 60, 20, 0.22),
        inset 0 -8px 12px rgba(80, 50, 15, 0.15),
        /* 말린 가장자리 음영 */
        inset 0 2px 2px rgba(255, 245, 220, 0.4),
        /* 아래쪽 드롭 그림자 */
        0 1px 2px rgba(0, 0, 0, 0.12),
        0 3px 5px rgba(0, 0, 0, 0.1),
        0 5px 10px rgba(0, 0, 0, 0.06);
    filter: saturate(1.05);
}

.curl-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        /* 종이 섬유 질감 */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5 0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
        /* 미세한 가로 섬유 라인 */
        repeating-linear-gradient(180deg,
            transparent,
            transparent 2px,
            rgba(140, 90, 40, 0.03) 2px,
            rgba(140, 90, 40, 0.03) 3px);
    background-blend-mode: soft-light, normal;
    opacity: 0.6;
    border-radius: 10px 10px;
    pointer-events: none;
}

.curl-highlight::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(180deg,
            rgba(90, 60, 25, 0.25) 0%,
            rgba(80, 50, 20, 0.15) 50%,
            transparent 100%);
    filter: blur(2px);
    pointer-events: none;
}

.curl-edge {
    display: none;
}

.scroll-curl-bottom {
    position: absolute;
    bottom: -5px;
    left: -16px;
    right: -16px;
    height: 42px;
    z-index: 10;
    pointer-events: none;
    transform: scaleY(-1);
}

.parchment-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        /* 구김 주름 - 세로 라인들 */
        linear-gradient(90deg,
            transparent 0%,
            transparent 8%,
            rgba(130, 85, 35, 0.04) 8.5%,
            transparent 9%),
        linear-gradient(90deg,
            transparent 0%,
            transparent 22%,
            rgba(120, 80, 32, 0.05) 22.5%,
            transparent 23%),
        linear-gradient(90deg,
            transparent 0%,
            transparent 38%,
            rgba(135, 88, 38, 0.03) 38.5%,
            transparent 39%),
        linear-gradient(90deg,
            transparent 0%,
            transparent 56%,
            rgba(125, 82, 34, 0.04) 56.5%,
            transparent 57%),
        linear-gradient(90deg,
            transparent 0%,
            transparent 71%,
            rgba(130, 85, 36, 0.05) 71.5%,
            transparent 72%),
        linear-gradient(90deg,
            transparent 0%,
            transparent 85%,
            rgba(128, 83, 35, 0.04) 85.5%,
            transparent 86%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.parchment-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    background: linear-gradient(0deg, rgba(100, 65, 25, 0.14), transparent 80%);
    pointer-events: none;
    z-index: 2;
}

.parchment-card__content {
    position: relative;
    z-index: 1;
    color: #3b2713;
    font-family: "MedievalSharp", "Times New Roman", serif;
}

.parchment-card__content .table {
    background: linear-gradient(to bottom,
            rgba(248, 238, 215, 0.4) 0%,
            rgba(242, 232, 205, 0.45) 100%);
    border: 2px solid rgba(70, 45, 18, 0.45);
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.parchment-card__content .table thead {
    background: linear-gradient(180deg,
            rgba(107, 80, 16, 0.95) 0%,
            rgba(74, 56, 8, 0.98) 100%);
    box-shadow:
        inset 0 1px 2px rgba(255, 245, 220, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.25);
}

.parchment-card__content .table th {
    background: transparent;
    color: #fff5dc;
    font-weight: 700;
    padding: 14px 12px;
    border-bottom: 2px solid rgba(60, 45, 18, 0.6);
    border-right: 1px solid rgba(60, 40, 15, 0.3);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 0 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.03em;
    text-align: center;
    font-size: 13px;
}

.parchment-card__content .table th:last-child {
    border-right: none;
}

.parchment-card__content .table td:last-child {
    border-right: none;
}

.parchment-card__content .table .trade-col-title {
    text-align: center;
    font-weight: 700;
}

.parchment-card__content .table .trade-col-title img {
    width: 56px;
    height: 56px;
    vertical-align: middle;
    margin-right: 0;
}

.parchment-card__content .table tbody tr {
    transition: all 0.25s ease;
    background: transparent;
}

.parchment-card__content .table tbody tr:hover {
    background: linear-gradient(90deg,
            rgba(139, 105, 20, 0.12) 0%,
            rgba(139, 105, 20, 0.08) 50%,
            rgba(139, 105, 20, 0.12) 100%);
    box-shadow: inset 0 0 12px rgba(139, 105, 20, 0.08);
}

.parchment-card__content .table td {
    color: #3b2713;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(70, 45, 18, 0.22);
    border-right: 1px solid rgba(70, 45, 18, 0.15);
    text-shadow: 0 1px 0 rgba(255, 245, 220, 0.4);
    vertical-align: middle;
    font-size: 13px;
}

.parchment-card__content .table tbody tr:last-child td {
    border-bottom: none;
}

.parchment-card__content .table .title {
    color: #2f1e0d;
}

.parchment-card__content .table .table-price {
    color: #4a2f12;
}

.parchment-card__content .table .table-time {
    color: #5a3b18;
}

.parchment-card__content .table .table-empty {
    color: #6b5040;
    background: transparent;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    font-size: 13px;
}

.parchment-card__content .table-badge-img {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
    box-shadow: none;
    margin: 0 auto;
}

.parchment-card__content h3 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    text-align: center;
    color: #3a2510;
    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.parchment-card__content .trade-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.parchment-card__content .trade-column {
    background: linear-gradient(180deg,
            rgba(245, 230, 200, 0.7),
            rgba(230, 210, 175, 0.75));
    border: 1px solid rgba(120, 80, 35, 0.25);
    border-radius: 10px;
    box-shadow: inset 0 0 12px rgba(120, 70, 25, 0.08);
    overflow: hidden;
}

.parchment-card__content .trade-column-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: linear-gradient(180deg,
            rgba(155, 120, 60, 0.2),
            rgba(130, 95, 40, 0.08));
    border-bottom: 1px solid rgba(120, 80, 35, 0.2);
}

.parchment-card__content .trade-column-header img {
    width: 48px;
    height: 48px;
}

.parchment-card__content .trade-list {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
}

.parchment-card__content .trade-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    background: linear-gradient(180deg,
            rgba(255, 245, 220, 0.8),
            rgba(235, 215, 180, 0.7));
    border: 1px solid rgba(120, 80, 35, 0.25);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    min-height: 70px;
}

.parchment-card__content .trade-card img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: #000000;
    border-radius: 4px;
    border: 1px solid rgba(107, 80, 16, 0.2);
    filter: drop-shadow(0 1px 0 rgba(255, 245, 220, 0.4));
}

.parchment-card__content .trade-card-name {
    font-weight: 600;
    font-size: 12px;
    color: #2f1e0d;
    text-shadow: 0 1px 0 rgba(255, 245, 220, 0.35);
    text-align: center;
    line-height: 1.3;
}

.parchment-card__content .trade-empty {
    color: #5a3b18;
    text-align: center;
    padding: 18px 8px;
    background: rgba(255, 245, 220, 0.6);
    border: 1px dashed rgba(120, 80, 35, 0.25);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .parchment-card__sheet {
        /* 모바일에서는 복잡한 재질 효과 제거 */
        padding: 40px 10px;
        background: linear-gradient(180deg, #f4e2ba 0%, #ecd3a6 48%, #f2dfb8 100%);
        background-blend-mode: normal;
        box-shadow:
            inset 0 0 0 1px rgba(120, 70, 25, 0.18),
            0 8px 16px rgba(0, 0, 0, 0.12);
        filter: none;
        clip-path: none;
    }

    .parchment-card__sheet::before,
    .parchment-card__sheet::after {
        display: none;
    }

    .parchment-card__content .trade-board {
        grid-template-columns: 1fr;
    }

    /* 모바일에서 테이블 특정 컬럼 숨기기 */
    .parchment-card__content .table .hide-mobile {
        display: none;
    }

    /* 모바일에서 테이블 최적화 */
    .parchment-card__content .table {
        font-size: 11px;
    }

    .parchment-card__content .table th {
        padding: 10px 6px;
        font-size: 11px;
    }

    .parchment-card__content .table td {
        padding: 8px 6px;
        font-size: 11px;
    }

    /* 모바일에서 아이템 아이콘 크기 축소 */
    .parchment-card__content .table td img {
        width: 32px !important;
        height: 32px !important;
    }

    /* 모바일에서 아이콘 컬럼 너비 축소 */
    .parchment-card__content .table .col-icon {
        width: 50px;
        padding: 6px 4px;
    }

    /* 모바일에서 아이템명 줄바꿈 허용 */
    .parchment-card__content .table .col-item-name {
        word-break: keep-all;
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.3;
        font-size: 11px;
    }
}

.parchment-card__content .card-footer {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding: 14px 12px 18px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.quest-divider {
    width: 100%;
    height: 3px;
    margin: 12px 0 16px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(120, 70, 25, 0.4) 20%,
            rgba(120, 70, 25, 0.6) 50%,
            rgba(120, 70, 25, 0.4) 80%,
            transparent 100%);
    position: relative;
}

.quest-divider::before,
.quest-divider::after {
    content: "*";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(120, 70, 25, 0.5);
    font-size: 0.6rem;
}

.quest-divider::before {
    left: 25%;
}

.quest-divider::after {
    right: 25%;
}

.quest-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #5a3518;
    margin: 0 0 12px;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.quest-desc {
    margin: 0 0 20px;
    line-height: 1.65;
    font-size: 0.95rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    text-align: justify;
    color: #4b2f12;
}

.quest-reward {
    background: linear-gradient(135deg,
            rgba(180, 120, 50, 0.15) 0%,
            rgba(150, 100, 40, 0.1) 100%);
    border: 2px solid rgba(120, 70, 25, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.reward-label {
    font-size: 0.85rem;
    color: #6b4520;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(120, 70, 25, 0.2);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.reward-gold,
.reward-exp {
    font-size: 0.95rem;
    color: #5a3518;
}

.reward-gold {
    color: #8b6914;
}

.reward-exp {
    color: #2d5a1e;
}

.quest-stamp {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 69, 19, 0.4);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(139, 69, 19, 0.1) 0%,
            rgba(139, 69, 19, 0.2) 100%);
    box-shadow:
        inset 0 0 10px rgba(139, 69, 19, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.quest-stamp::before {
    content: "*";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: rgba(139, 69, 19, 0.5);
}

/* Item Detail Modal - Parchment Style */
.item-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.item-modal.is-active {
    display: flex;
}

.item-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.item-modal__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-modal__parchment {
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        radial-gradient(140px 100px at 20% 26%,
            rgba(145, 95, 40, 0.12),
            transparent 65%),
        radial-gradient(180px 130px at 78% 42%,
            rgba(145, 95, 40, 0.1),
            transparent 68%),
        linear-gradient(180deg, #f4e2ba 0%, #ecd3a6 48%, #f2dfb8 100%);
    background-blend-mode: soft-light, normal, normal, normal;
    border: 2px solid rgba(120, 80, 35, 0.4);
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(120, 70, 25, 0.18),
        0 18px 32px rgba(0, 0, 0, 0.25),
        0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 28px;
}

.item-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(120, 80, 35, 0.3);
}

.item-modal__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #3a2510;
    font-family: Georgia, "Times New Roman", serif;
    text-shadow: 0 1px 0 rgba(255, 245, 220, 0.4);
    letter-spacing: 0.5px;
}

.item-modal__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #4a4035 0%, #3d342b 100%);
    border: 1px solid #1a1510;
    border-radius: 50%;
    color: #c9b896;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.item-modal__close:hover {
    background: linear-gradient(180deg, #5a4f42 0%, #4a4035 100%);
    color: #f5e6c8;
    transform: rotate(90deg);
}

.item-modal__body {
    color: #3b2713;
}

/* Item Info Section */
.item-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(120, 80, 35, 0.2);
}

.item-info__icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle,
            rgba(201, 162, 39, 0.1) 0%,
            transparent 70%);
    border: 2px solid rgba(120, 80, 35, 0.3);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.item-info__icon img {
    max-width: 68px;
    max-height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.item-info__details {
    flex: 1;
    min-width: 0;
}

.item-info__name {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #8b6914;
    text-shadow: 0 1px 0 rgba(255, 245, 220, 0.4);
    font-family: Georgia, "Times New Roman", serif;
}

.item-info__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.item-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 4px 0;
}

.item-info__label {
    color: #6b5040;
    font-weight: 600;
    margin-right: 8px;
}

.item-info__value {
    color: #3b2713;
    font-weight: 500;
    text-align: right;
}

/* Item Section */
.item-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(120, 80, 35, 0.2);
}

.item-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-section__title {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: #8b6914;
    text-shadow: 0 1px 0 rgba(255, 245, 220, 0.4);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.3px;
}

.item-section__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 13px;
}

.item-section__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.item-section__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px;
    color: #9b8070;
    font-style: italic;
    font-size: 13px;
}

/* Monster List in Modal */
#modalMonsters {
    color: #3b2713;
    line-height: 1.6;
    font-size: 13px;
}

.item-section__content.is-full {
    grid-template-columns: 1fr;
}

/* Responsive */
@media (max-width: 768px) {
    .item-modal__content {
        max-height: 85vh;
    }

    .item-modal__parchment {
        padding: 20px;
        /* 모바일에서 필터 효과 제거 - 심플한 그라데이션만 사용 */
        background: linear-gradient(180deg, #f4e2ba 0%, #ecd3a6 48%, #f2dfb8 100%);
        background-blend-mode: normal;
    }

    .item-modal__title {
        font-size: 18px;
    }

    .item-info {
        flex-direction: column;
        gap: 16px;
    }

    .item-info__icon {
        margin: 0 auto;
    }

    .item-info__grid,
    .item-section__content,
    .item-section__grid {
        grid-template-columns: 1fr;
    }

    .item-info__name {
        font-size: 16px;
        text-align: center;
    }
}

/* Scrollbar for modal content */
.item-modal__content::-webkit-scrollbar {
    width: 10px;
}

.item-modal__content::-webkit-scrollbar-track {
    background: linear-gradient(to right, #c9b88f, #d4c4a0);
    border-radius: 5px;
    border: 1px solid #8b7355;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.item-modal__content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b7355 0%, #6b5945 100%);
    border-radius: 5px;
    border: 1px solid #5a4a3a;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

.item-modal__content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9b8365 0%, #7b6955 100%);
}

/* Firefox scrollbar */
.item-modal__content {
    scrollbar-width: thin;
    scrollbar-color: #8b7355 #d4c4a0;
}

/* Monster Card Grid */
.monster-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.monster-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: linear-gradient(180deg,
            rgba(255, 245, 220, 0.85),
            rgba(235, 215, 180, 0.75));
    border: 1px solid rgba(120, 80, 35, 0.3);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.monster-card:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(180deg,
            rgba(255, 250, 230, 0.9),
            rgba(245, 225, 190, 0.85));
}

.monster-card__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
    border-radius: 4px;
}

.monster-card__name {
    font-weight: 600;
    font-size: 11px;
    color: #2f1e0d;
    text-shadow: 0 1px 0 rgba(255, 245, 220, 0.4);
    text-align: center;
    line-height: 1.3;
    word-break: keep-all;
}

.monster-card__rate {
    font-size: 10px;
    color: #8b6914;
    font-weight: 500;
    background: rgba(139, 105, 20, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .monster-card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .monster-card {
        padding: 8px 4px;
    }

    .monster-card__img {
        width: 40px;
        height: 40px;
    }

    .monster-card__name {
        font-size: 10px;
    }

    .monster-card__rate {
        font-size: 9px;
        padding: 1px 4px;
    }
}
