.dp-style {
    background: linear-gradient(to bottom,
                rgba(255,255,255,0),
                rgba(255,255,255,0.1));
    border: 0.5px solid rgba(255, 255, 255, 0.284);
}

.avatar {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn {
    color: white;
    text-decoration: none;
    padding-inline: 12px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.item-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-image img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    overflow: hidden;
}

.item-container {
    background: linear-gradient(to bottom,
                rgba(255,255,255,0),
                rgba(255,255,255,0.1),
                rgb(153, 75, 189));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.284);

    /* square box */
    width: 100%;   /* responsive max size */
    aspect-ratio: 1 / 1;         /* lock height = width */

    overflow: hidden;            /* clip gradient + model-viewer */
    position: relative;
}

.item-meta {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    padding: 0;
    max-width: 200px;
    z-index: 10;
}

.item-meta .item-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1.6rem;
}

.item-meta .item-description {
    font-weight: 400;
    font-size: 80%;
    margin-bottom: 10px;
}

.item-meta .item-level {
    font-weight: 600;
    font-size: 80%;
}

.clickable-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-item:hover {
    
    border-color: rgba(66, 236, 255, 0.675);
    background: rgba(255, 255, 255, 0.1);
}

.clickable-item.selected {
    border-color: #64B5F6;
    background: rgba(100, 181, 246, 0.2);
}

.empty-slot {
    opacity: 0.3;
}

.item-quantity {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 20px;
    text-align: center;
}

.header-spacer {
    height: 50px;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    
    .item-container{
        border-radius: 10px;
    }

    .item-meta {
        bottom: 15px;
        left: 15px;
        font-size: 12px;
        max-width: 180px;
    }
}