/* =============================================
   CHARACTER CUSTOMIZER
   ============================================= */

/* Photo frame: clip and position children */
.photo-frame {
    position: relative;
    overflow: hidden;
}

/* Character wrapper — fills frame, stacks layers */
.char-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Each layer image: absolute, fills the full frame */
.char-layer-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ─── Arrow buttons — bare ‹ › text, no circle ─── */
.char-arrow-btn {
    position: absolute; /* left/right/top set by JS */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 24px;
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;

    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    line-height: 1;
    font-family: sans-serif;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);

    transition: color 0.15s ease, transform 0.12s ease;
}

.char-arrow-btn:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.15);
}

/* Pop on click */
@keyframes char-arrow-pop {
    0%   { transform: translateY(-50%) scale(1); }
    45%  { transform: translateY(-50%) scale(1.3); }
    100% { transform: translateY(-50%) scale(1); }
}
.char-arrow-btn.char-arrow-pop {
    animation: char-arrow-pop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Light cards: dark arrows */
.id-card.light-card .char-arrow-btn {
    color: rgba(0, 0, 0, 0.45);
    text-shadow: none;
}
.id-card.light-card .char-arrow-btn:hover {
    color: rgba(0, 0, 0, 0.8);
}

/* ─── Read-only display (widget + guest book) ─── */
.widget-char-display,
.gb-char-display {
    position: relative;
    width: 100%;
    height: 100%;
}
.widget-char-display .char-wrap,
.gb-char-display .char-wrap {
    position: absolute;
    inset: 0;
}
