/* ===============================
   HOME LIST LAYOUT
=============================== */
.list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 0 24px;
}

.scroll-area {
    padding-bottom: 32px;
}

/* ===============================
   CHARACTER CARD
=============================== */
.char-card {
    width: 95%;
    aspect-ratio: 5 / 3;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0f0f14;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .char-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 14px 28px rgba(152, 0, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06);
    }

    .char-card:active {
        transform: translateY(-2px) scale(0.985);
        box-shadow: 0 6px 14px rgba(82, 51, 105, 0.35);
    }

.char-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 16px;
    border: 1.5px solid #6e5a86;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 6px 18px rgba(0, 0, 0, 0.42);
    display: block;
}

.char-name {
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #f3e2fe;
    padding: 0;
    background: none;
    text-shadow: -1px -1px 0 rgba(15, 15, 20, 0.95), 1px -1px 0 rgba(15, 15, 20, 0.95), -1px 1px 0 rgba(15, 15, 20, 0.95), 1px 1px 0 rgba(15, 15, 20, 0.95), 0 2px 6px rgba(0, 0, 0, 0.65);
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(15, 15, 20, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f3e2fe;
    font-size: 14px;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0.62;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .delete-btn:hover {
        opacity: 1;
    }

/* ===============================
   CREATE CARD
=============================== */
.create-card {
    border: 1.5px solid rgba(255, 255, 255, 0.74);
    background: linear-gradient(180deg, rgba(26, 26, 34, 0.96) 0%, rgba(15, 15, 20, 0.98) 100%);
    color: #f3e2fe;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
}

    .create-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 16px;
        background: radial-gradient(circle at 50% 32%, rgba(152, 0, 255, 0.14), transparent 48%);
        pointer-events: none;
    }

    .create-card:hover {
        box-shadow: 0 14px 30px rgba(152, 0, 255, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.96);
    }

    .create-card:active {
        transform: translateY(-2px) scale(0.985);
    }

.create-card-plus,
.create-card-text {
    position: relative;
    z-index: 1;
}

.create-card-plus {
    font-size: 40px;
    line-height: 1;
    font-weight: 300;
    color: #f3e2fe;
    text-shadow: 0 0 14px rgba(152, 0, 255, 0.24);
}

.create-card-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #f3e2fe;
}

/* ===============================
   HOME SKELETON
=============================== */
.skeleton-card {
    background: var(--skeleton-surface-1);
    overflow: hidden;
    cursor: default;
}

    .skeleton-card:hover,
    .skeleton-card:active {
        transform: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
    }

.skeleton-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1.5px solid var(--skeleton-border-strong);
    background: var(--skeleton-card-bg);
}

.skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: var(--skeleton-shimmer-bg);
    transform: translateX(-100%);
    animation: homeSkeletonMove 1.3s linear infinite;
}

.home-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px;
    pointer-events: none;
}

.home-skeleton-name {
    width: 34%;
    height: 16px;
    border-radius: 999px;
    background: var(--skeleton-block-bg);
    background-size: 200% 100%;
    animation: homeSkeletonPulse 1.2s infinite linear;
}

@keyframes homeSkeletonMove {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes homeSkeletonPulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* home 전용 */
.app.home-active .scroll-area::after {
    height: calc((100% - var(--top-bar-height) - var(--footer-total)) * 0.1);
}
