/* Koraalboom interactive artist canvas */

.paint-reveal-stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.paint-reveal-stage img {
    display: block;
    width: 100%;
}

.paint-reveal-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    touch-action: none;
    transition: opacity 0.65s ease;

    cursor: url("../images/shared/paintbrush-cursor.svg")
        5 35, crosshair;
}

.paint-reveal-canvas.painting-complete {
    opacity: 0;
    pointer-events: none;
}

.paint-reveal-controls {
    padding: 14px 8px 4px;
    text-align: center;
}

.paint-reveal-instruction {
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    color: #59432d;
    margin: 0 0 12px;
}

.paint-reveal-progress {
    height: 3px;
    width: 65%;
    margin: 0 auto 14px;
    background: rgba(89,67,45,0.12);
    border-radius: 10px;
    overflow: hidden;
}

.paint-reveal-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #9aa641;
    transition: width 0.3s ease;
}

.paint-reveal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.paint-reveal-buttons button {
    font-family: Georgia, serif;
    font-size: 13px;
    padding: 9px 16px;
    border: 1px solid #36502b;
    border-radius: 3px;
    background: transparent;
    color: #36502b;
    cursor: pointer;
    transition: background 0.2s ease,
                color 0.2s ease;
}

.paint-reveal-buttons button:hover {
    background: #36502b;
    color: #fff;
}

.paint-reveal-buttons [data-action="reveal"] {
    background: #36502b;
    color: #fff;
}

.paint-reveal-buttons [data-action="reveal"]:hover {
    background: #4c663e;
}

@media (max-width: 760px) {
    .paint-reveal-instruction {
        font-size: 12px;
    }

    .paint-reveal-buttons button {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .paint-reveal-canvas,
    .paint-reveal-progress span {
        transition: none;
    }
}
/* Reset canvas button visibility fix */
.paint-reveal-buttons button[data-action="reset"] {
    background: #f5f0e4 !important;
    color: #36502b !important;
    border: 1px solid #36502b !important;
    opacity: 1 !important;
}

.paint-reveal-buttons button[data-action="reset"]:hover {
    background: #36502b !important;
    color: #ffffff !important;
}
