/* ---------- Paint Tool Menu ---------- */
.paint-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    height: auto;
    max-height: none;
    transform: none;  /* remove the old transform */
    z-index: 40;
    background: rgba(245, 245, 240, 0.98);
    border: 3px solid var(--border-dark);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 15px;
    display: none;
    font-family: 'Press Start 2P', cursive;
    color: var(--text-dark);
}
.paint-menu h3 {
    margin-bottom: 10px;
    font-size: 12px;
    text-align: center;
}
.paint-control {
    margin-bottom: 8px;
}
.paint-control label {
    font-size: 10px;
    display: block;
    margin-bottom: 4px;
}
.paint-control input[type='range'] {
    width: 100%;
}
.paint-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.paint-actions button {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 8px 6px;
    font-family: inherit;
    font-size: 10px;
    cursor: pointer;
    background-color: var(--moss);
    color: var(--text-light);
    transition: 0.15s ease;
}
.paint-actions button:hover {
    background-color: var(--light-moss);
}
.paint-menu.show {
    display: block;
}

.paint-slot-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: pixelated;
}

.paint-slot.active {
    background-color: var(--slate);
    border-color: var(--moss);
}
.rock-visual-wrap {
    position: relative;
    display: inline-block;
    width: 250px;
    height: 250px;
}
.rock-accessory-hat {
    position: absolute;
    bottom: 60%;
    left: 30%;
    transform: translateX(-50%);
    width: 160px;
    image-rendering: pixelated;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
    display: none;
    z-index: 5;
}

.rock-accessory-face {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    image-rendering: pixelated;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
    display: none;
    z-index: 5;
}

.rock-accessory-chain {
    left: 60%;
    width: 90px;
    transform: translateX(10%) rotate(30deg);
    animation: chainFloat 3s ease-in-out infinite;
}

@keyframes chainFloat {
    0%, 100% {
        margin-top: 0;
    }

    50% {
        margin-top: -8px;
    }
}

.rock-accessory-hat.visible,
.rock-accessory-face.visible {
    display: block;
}

.rock-accessory-hand {
    position: absolute;
    bottom: 10%;
    left: 0%;
    width: 80px;
    image-rendering: pixelated;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
    display: none;
    z-index: 5;
}

.rock-accessory-room {
    width: 120px;
}

.rock-accessory-menacing {
    bottom: 28%;
    left: -10%;
    width: 120px;
}

.rock-accessory-wrist {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 80px;
    image-rendering: pixelated;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
    display: none;
    z-index: 5;
}

.rock-accessory-wrist.rock-accessory-kikoku {
    bottom: 0%;
    left: 50%;
    right: auto;
    width: 200px;
    transform-origin: center;
}

.rock-accessory-hand.visible,
.rock-accessory-wrist.visible {
    display: block;
}

.paint-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.paint-slot {
    height: 90px;
    aspect-ratio: unset;
    background-color: var(--darksand);
    border: 2px solid var(--border-dark);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.paint-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px var(--shadow-soft);
    border-color: var(--moss);
}

#btn-paint-open { display: inline-flex; }
#btn-paint-close { display: none; }

/* make paint-close visually active while menu is open */
#btn-paint-close {
    transition: 0.2s ease;
}
#btn-paint-close.active, #btn-paint-close:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px var(--shadow-soft);
    border-color: var(--moss);
}
