.content-txt p.item-page-intro,
p.item-page-intro {
    margin: 0 0 16px;
    color: #000 !important;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.item-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
}

.item-filter {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #5a3a1a;
    background: rgba(13, 8, 6, 0.85);
    color: #d8c898;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.item-filter:hover,
.item-filter--active {
    border-color: #e8b84a;
    color: #f5d88a;
    background: rgba(232, 184, 74, 0.12);
}

.item-search-wrap {
    text-align: center;
    margin-bottom: 18px;
}

.item-search {
    width: 100%;
    max-width: 360px;
    padding: 9px 12px;
    border: 1px solid #5a3a1a;
    border-radius: 4px;
    background: rgba(13, 8, 6, 0.92);
    color: #f0d890;
    font-family: inherit;
    font-size: 13px;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.item-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(180deg, #2a1808 0%, #120a04 100%);
    border: 1px solid #5a3a1a;
    border-radius: 6px;
    padding: 10px 8px 12px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.item-card:hover {
    border-color: #e8b84a;
    box-shadow: 0 0 14px rgba(232, 184, 74, 0.25);
    transform: translateY(-2px);
}

.item-card img {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    image-rendering: pixelated;
}

.item-card__placeholder {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    border: 1px dashed #5a3a1a;
    border-radius: 4px;
    color: #9a8458;
    font-size: 16px;
    line-height: 32px;
}

.item-card__name {
    color: #f5d88a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.item-card__meta {
    margin-top: 4px;
    color: #9a8458;
    font-size: 9px;
    line-height: 1.3;
}

.item-card__meta--comment {
    position: relative;
    color: #e8c878;
    font-style: italic;
    text-shadow: 0 0 6px rgba(255, 215, 80, 0.35);
    animation: item-comment-glow 2.4s ease-in-out infinite;
}

.item-card__star {
    display: inline-block;
    margin-right: 3px;
    color: #ffd966;
    font-size: 8px;
    vertical-align: middle;
    text-shadow:
        0 0 4px rgba(255, 220, 80, 0.95),
        0 0 8px rgba(255, 120, 60, 0.65);
    animation: item-star-twinkle 1.8s ease-in-out infinite;
}

.item-card--comment {
    border-color: rgba(232, 184, 74, 0.55);
    box-shadow: inset 0 0 12px rgba(232, 184, 74, 0.08);
}

.item-card--comment:hover {
    box-shadow:
        0 0 14px rgba(232, 184, 74, 0.35),
        inset 0 0 16px rgba(232, 184, 74, 0.12);
}

.item-detail-back {
    margin-bottom: 14px;
}

.item-detail-back a {
    color: #000 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.item-detail-back a:hover {
    color: #333 !important;
}

.item-detail {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
}

.item-detail__visual {
    background: rgba(13, 8, 6, 0.95);
    border: 2px solid #5a3a1a;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.item-detail__visual img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

.item-detail__placeholder {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border: 1px dashed #5a3a1a;
    border-radius: 6px;
    color: #9a8458;
    font-size: 11px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-detail__title {
    margin: 10px 0 0;
    color: #f5d88a;
    font-size: 16px;
    font-weight: 700;
}

.item-detail__id {
    margin-top: 4px;
    color: #9a8458;
    font-size: 11px;
}

.item-detail__comment {
    position: relative;
    margin-top: 8px;
    padding: 6px 18px;
    color: #e8c878;
    font-size: 12px;
    font-style: italic;
    text-shadow: 0 0 8px rgba(255, 215, 80, 0.35);
    animation: item-comment-glow 2.4s ease-in-out infinite;
}

.item-comment-star {
    position: absolute;
    top: 50%;
    color: #ffd966;
    font-size: 10px;
    line-height: 1;
    transform: translateY(-50%);
    text-shadow:
        0 0 4px rgba(255, 220, 80, 0.95),
        0 0 8px rgba(255, 120, 60, 0.65);
    animation: item-star-twinkle 1.8s ease-in-out infinite;
}

.item-comment-star--left {
    left: 2px;
    animation-delay: 0s;
}

.item-comment-star--right {
    right: 2px;
    animation-delay: 0.9s;
}

.item-panel {
    margin-bottom: 14px;
    background: rgba(13, 8, 6, 0.92);
    border: 1px solid #5a3a1a;
    border-radius: 6px;
    overflow: hidden;
}

.item-panel__head {
    padding: 8px 12px;
    background: linear-gradient(180deg, #3d2810 0%, #241408 100%);
    color: #e8c878;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #5a3a1a;
}

.item-panel__body {
    padding: 12px;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.item-tag {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(232, 184, 74, 0.12);
    border: 1px solid rgba(232, 184, 74, 0.35);
    color: #e8c878;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.item-tag--comment {
    background: rgba(255, 215, 80, 0.14);
    border-color: rgba(255, 215, 80, 0.55);
    color: #fff0b8;
    font-style: italic;
    text-shadow: 0 0 6px rgba(255, 215, 80, 0.4);
    box-shadow: 0 0 10px rgba(255, 200, 60, 0.15);
    animation: item-comment-glow 2.4s ease-in-out infinite;
}

.item-tag__star {
    display: inline-block;
    margin-right: 4px;
    color: #ffd966;
    font-size: 10px;
    vertical-align: middle;
    text-shadow:
        0 0 4px rgba(255, 220, 80, 0.95),
        0 0 8px rgba(255, 120, 60, 0.65);
    animation: item-star-twinkle 1.8s ease-in-out infinite;
}

@keyframes item-star-twinkle {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.85) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.15) rotate(12deg);
        color: #fff4a8;
    }
}

@keyframes item-comment-glow {
    0%, 100% {
        filter: brightness(1);
        text-shadow: 0 0 6px rgba(255, 215, 80, 0.3);
    }
    50% {
        filter: brightness(1.15);
        text-shadow: 0 0 10px rgba(255, 230, 120, 0.65);
    }
}

.item-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.item-stat {
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #3d2810;
    border-radius: 4px;
}

.item-stat__label {
    display: block;
    color: #9a8458;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.item-stat__value {
    display: block;
    margin-top: 3px;
    color: #f5d88a;
    font-size: 15px;
    font-weight: 700;
}

.item-stat--hp .item-stat__value { color: #ff6b6b; }
.item-stat--mana .item-stat__value { color: #6bb5ff; }

.item-effects {
    margin: 0;
    padding-left: 18px;
}

.item-effects li {
    margin: 0 0 6px;
    color: #d8c898;
    font-size: 12px;
}

.item-no-bonus {
    margin: 0;
    color: #9a8458;
    font-size: 12px;
    font-style: italic;
}

.item-count {
    margin: 0 0 12px;
    text-align: center;
    color: #9a8458;
    font-size: 11px;
}

.item-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    font-size: 12px;
}

.item-pagination a {
    color: #000 !important;
    font-weight: 600;
    text-decoration: none;
}

.item-pagination a:hover {
    color: #333 !important;
}

.item-pagination span {
    color: #9a8458;
}

.item-empty {
    padding: 24px 12px;
    text-align: center;
    color: #9a8458;
    font-size: 13px;
}

@media (max-width: 700px) {
    .item-detail {
        grid-template-columns: 1fr;
    }

    .item-stats {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .item-comment-star,
    .item-card__star,
    .item-tag__star,
    .item-detail__comment,
    .item-card__meta--comment,
    .item-tag--comment {
        animation: none;
    }
}
