/* =====================================================
   PIXEL CARD (javascript/pixel-card.js)
   React Bits' Pixel Card surface: a deep gradient, a hairline inner edge that
   brightens while the pixels are out, and the canvas underneath the content.
   Unlike the original, the card takes the size of its content rather than a
   fixed 300x400. Original styles: Copyright (c) 2026 David Haz, MIT + Commons
   Clause (see the notice in javascript/pixel-card.js).
   ===================================================== */
.pixel-card {
    --pixel-card-surface: linear-gradient(180deg, #17151c 0%, #0f0e13 100%);
    --pixel-card-edge: rgba(255, 255, 255, 0.08);
    --pixel-card-edge-active: rgba(255, 255, 255, 0.16);
    --pixel-card-highlight: rgba(255, 255, 255, 0.06);
    --pixel-card-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.85), 0 8px 18px -10px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    border-radius: var(--pixel-card-radius, 24px);
    background: var(--pixel-card-surface);
    box-shadow: var(--pixel-card-shadow);
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}

.pixel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px var(--pixel-card-edge),
        inset 0 1px 0 var(--pixel-card-highlight);
    pointer-events: none;
    transition: box-shadow 260ms ease;
}

.pixel-card[data-active]::after {
    box-shadow:
        inset 0 0 0 1px var(--pixel-card-edge-active),
        inset 0 1px 0 var(--pixel-card-highlight);
}

.pixel-card-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pixel-card > :not(.pixel-card-canvas) {
    position: relative;
    z-index: 1;
}
