.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.75rem 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
    backdrop-filter: blur(12px);
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.2);
}

    .ranking-list::-webkit-scrollbar {
        width: 6px;
    }

    .ranking-list::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.6);
        border-radius: 999px;
    }

.ranking-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    margin: 0;
    gap: 0;
    cursor: grab;
    position: relative;
    touch-action: none;
}

.ranking-order-cell {
    background: rgba(2, 6, 23, 0.65);
    color: #e2e8f0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.ranking-row:last-child .ranking-order-cell,
.ranking-row:last-child .ranking-card {
    border-bottom: none;
}

.ranking-card {
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.85));
    backdrop-filter: blur(8px);
    cursor: grab;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: none;
}

.ranking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35),
                0 3px 8px rgba(0, 0, 0, 0.25);
}

.ranking-row.dragging .ranking-card {
    opacity: 0.6;
    transform: scale(0.98) rotate(2deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ranking-list.drop-target-end::after {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0ea5e9;
    padding: 0.5rem 0;
}

.ranking-row.drop-target .ranking-card {
    border-color: #38bdf8;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(14, 165, 233, 0.15));
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4),
                0 4px 12px rgba(14, 165, 233, 0.3);
}

.ranking-card:active {
    cursor: grabbing;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.ranking-card.card-enter {
    animation: slideInRight 0.45s ease forwards;
    opacity: 0;
    transform: translateX(46px);
}

.ranking-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.85rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    font-size: 0.85rem;
}

.lookup-heading {
    font-weight: 600;
    color: #f8fafc;
}

.ranking-result-card {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(8px);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.ranking-result-card--success {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3),
                0 2px 8px rgba(34, 197, 94, 0.2);
}

.ranking-result-card--fail {
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 4px 16px rgba(248, 113, 113, 0.3),
                0 2px 8px rgba(248, 113, 113, 0.2);
}

.ranking-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
}

.ranking-result-order {
    font-weight: 700;
    font-size: 1.1rem;
}

.ranking-result-status {
    font-weight: 600;
}

.ranking-result-card--success .ranking-result-status {
    color: #34d399;
}

.ranking-result-card--fail .ranking-result-status {
    color: #f87171;
}

.ranking-result-body {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.ranking-result-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ranking-result-actual {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.65);
}

.ranking-result-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}
