.boxbg {
    position: relative;
    display: block;
    border-radius: 20px;
    border: 2px solid #66028d;
    overflow: hidden;
    width: 100%;
    height: 600px;
}

.boxbg img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
}

.box-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 10px;
    pointer-events: none;
}

.box-list,
.box-grid {
    pointer-events: auto;
}

.box-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.box-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px 5px 16px;
    background: #14012471;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.box-level,
.box-name {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.box-level {
    font-size: 0.85rem;
    opacity: 0.8;
    font-family: "Atomic Age", system-ui;
    background: #14012471;
    width: fit-content;
    padding: 0.9px 6px;
    border-radius: 8px;
}

.box-name {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: "Atomic Age", system-ui;
}

.box-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 10px;
    background: #14012471;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 17px;
}

.grid-slot {
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.grid-slot img {
    position: absolute;
    width: 120px;
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.grid-slot:hover img {
    transform: scale(1.1);
}

.party-box {
    position: relative;
    
}

.party-box img {
    position: absolute;
    bottom: -25px;
    left: 95px;
    width: 120px;
    height: auto;
    pointer-events: auto;
    image-rendering: pixelated;
    user-select: none;
    transition: transform 0.2s ease;
}

.party-box:hover img {
    transform: scale(1.2);
}