/* Eyeshadow Palette Scroll Animation - 970220a5 */

.eps-970220a5-wrapper {
    position: relative;
    width: 100%;
}

.eps-970220a5-scroll-spacer {
    height: var(--eps-scroll-height, 400vh);
    pointer-events: none;
}

.eps-970220a5-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.eps-970220a5-scene {
    position: relative;
    width: 380px;
    height: 320px;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* === LID === */
.eps-970220a5-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    transform-origin: top center;
    transform: rotateX(0deg);
    z-index: 3;
    backface-visibility: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.eps-970220a5-lid-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    backface-visibility: hidden;
}

.eps-970220a5-lid-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 1px;
    opacity: 0.4;
}

.eps-970220a5-brand {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    z-index: 1;
}

.eps-970220a5-palette-name {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    z-index: 1;
}

/* Mirror inside lid */
.eps-970220a5-mirror {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    display: none; /* hidden, shown via JS when lid flips */
}

.eps-970220a5-mirror-glass {
    position: absolute;
    inset: 15px;
    background: linear-gradient(135deg, #e8e8e8 0%, #f8f8f8 30%, #d0d0d0 60%, #f0f0f0 100%);
    border-radius: 8px;
    border: 2px solid #ccc;
}

/* === BASE === */
.eps-970220a5-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0 12px 48px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
}

.eps-970220a5-base-rim {
    position: absolute;
    inset: 10px;
    border: 1px solid;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eps-970220a5-pans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    height: 100%;
}

/* === INDIVIDUAL PAN === */
.eps-970220a5-pan {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.eps-970220a5-pan.eps-970220a5-pan--visible {
    opacity: 1;
    transform: scale(1);
}

.eps-970220a5-pan-surface {
    position: absolute;
    inset: 0;
    background: var(--pan-color, #888);
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(0,0,0,0.15) 0%, transparent 50%);
    border-radius: inherit;
}

.eps-970220a5-pan-name {
    position: relative;
    z-index: 2;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    text-align: center;
    line-height: 1.2;
}

/* === ROTATION ANIMATION === */
.eps-970220a5-scene {
    transition: transform 0.1s linear;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .eps-970220a5-scene {
        width: 300px;
        height: 260px;
    }
    .eps-970220a5-brand {
        font-size: 16px;
        letter-spacing: 5px;
    }
    .eps-970220a5-palette-name {
        font-size: 9px;
    }
    .eps-970220a5-pans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .eps-970220a5-scene {
        width: 260px;
        height: 230px;
    }
}
